/* Shared organizer system, inherited from the approved /dashboard. */
.workspace, .workspace-auth {
  /* Palette colours come from themes.css; these are the semantic states shared by every style. */
  --success: #2f4fa3;
  --warning: #4b5366;
  --danger: #b42323;
  --status-attending: #5b7fd6;
  --status-pending: #98a1b3;
  --status-declined: #e05252;
  --workspace-gap-caption: 0.25rem;
  --workspace-gap-tight: 0.5rem;
  --workspace-gap-inline: 0.75rem;
  --workspace-gap-group: 1rem;
  --workspace-gap-section: 1.5rem;
  --workspace-gap-page: 2rem;
  --workspace-card-padding: 1.5rem;
  --workspace-surface-shadow: var(--shadow-ambient);
  /* The one column every workspace page is laid out in; My events sets the measure. */
  --workspace-column: 46rem;
}
.workspace .page-shell--workspace { grid-template-columns: 16.5rem minmax(0, 1fr); }
.workspace .app-content { max-width: 94rem; padding: 3.5rem 3rem 2.5rem; }
.workspace .dashboard-sidebar { border-right: 0; padding: 2rem 1.25rem; }
.workspace .dashboard-brand { padding: 0 0.5rem; }
.workspace .dashboard-nav { gap: 0.75rem; margin-top: 1rem; }
.workspace .dashboard-nav__link { border-radius: 12px; font-size: 1rem; gap: 1rem; min-height: 3rem; padding: 0.625rem 1rem; }
.workspace .dashboard-nav__link svg { height: 1.375rem; width: 1.375rem; }
.workspace .dashboard-sidebar__bottom { border-top: 0; padding-top: 1.5rem; }
/* Tips at the foot of the sidebar: a tip's icon and words in the middle, a round arrow on each side, a timer
   line under them, and the place in the list in the corner while the card is pointed at (sidebar-tips.js).
   The card has little room to spare: a wider arrow or margin would give the longest tip another line. */
.workspace .dashboard-sidebar__note { background: radial-gradient(85% 70% at 50% 0%, rgb(var(--accent-rgb) / 17%), transparent 72%), linear-gradient(165deg, rgb(var(--glass-rgb) / 94%), rgb(var(--glass-rgb) / 62%)); border: 1px solid rgb(255 255 255 / 90%); border-radius: 22px; box-shadow: 0 10px 24px rgb(var(--shadow-rgb) / 11%), 0 1px 3px rgb(var(--shadow-rgb) / 8%); column-gap: 0.1875rem; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; margin: 0 0 1rem; padding: 0.625rem 0.3125rem 1.125rem; position: relative; }
.sidebar-tips__stage { display: grid; grid-column: 2; grid-row: 1; grid-template-columns: minmax(0, 1fr); }
/* Every tip lies in the same cell, so the card is as tall as the longest and nothing below it moves. */
.sidebar-tip { align-content: start; display: grid; gap: var(--workspace-gap-tight); grid-area: 1 / 1; justify-items: center; text-align: center; visibility: hidden; }
.sidebar-tip[data-current] { visibility: visible; }
.sidebar-tip__icon { align-items: center; background: var(--accent-gradient); border-radius: 12px; box-shadow: 0 6px 14px rgb(var(--accent-rgb) / 30%), inset 0 1px 0 rgb(255 255 255 / 28%); color: #fff; display: inline-flex; height: 2rem; justify-content: center; width: 2rem; }
.sidebar-tip svg, .sidebar-tips__arrow svg { fill: none; flex: none; height: 1.125rem; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; width: 1.125rem; }
.sidebar-tip p { color: var(--ink); font-size: 0.8125rem; line-height: 1.25rem; margin: 0; text-wrap: balance; }
/* The arrows stand level with the middle of the text, under the icon's row. The element in the selector
   outranks the workspace's wider, padded buttons further down. */
.workspace .dashboard-sidebar button.sidebar-tips__arrow { align-items: center; align-self: center; background: rgb(255 255 255 / 85%); border: 1px solid rgb(var(--shadow-rgb) / 10%); border-radius: 999px; box-shadow: 0 2px 6px rgb(var(--shadow-rgb) / 12%); color: var(--ink-soft); display: inline-flex; grid-row: 1; height: 1.375rem; justify-content: center; margin: 2.5rem 0 0; min-height: 0; padding: 0; position: relative; width: 1.375rem; }
/* Easier to hit than it looks: 44 pixels each way. */
.sidebar-tips__arrow::after { content: ""; inset: -0.75rem; position: absolute; }
.sidebar-tips__arrow svg { height: 0.875rem; stroke-width: 2.2; width: 0.875rem; }
.workspace .dashboard-sidebar button.sidebar-tips__arrow[data-tips-previous] { grid-column: 1; }
.workspace .dashboard-sidebar button.sidebar-tips__arrow[data-tips-next] { grid-column: 3; }
.workspace .dashboard-sidebar button.sidebar-tips__arrow:hover { background: var(--accent-gradient); border-color: transparent; box-shadow: var(--accent-shadow); color: #fff; }
.workspace .dashboard-sidebar button.sidebar-tips__arrow[hidden], .sidebar-tips [hidden] { display: none; }
.sidebar-tips__position { background: rgb(255 255 255 / 90%); border-radius: 999px; box-shadow: 0 2px 6px rgb(var(--shadow-rgb) / 10%); color: var(--ink-soft); font-size: 0.6875rem; font-variant-numeric: tabular-nums; font-weight: 700; line-height: 1.25rem; opacity: 0; padding: 0 0.4375rem; pointer-events: none; position: absolute; right: 0.5rem; top: 0.5rem; }
.sidebar-tips:hover .sidebar-tips__position, .sidebar-tips:has(:focus-visible) .sidebar-tips__position { opacity: 1; }
/* The timer: a thin line that fills while the tip is shown. */
.sidebar-tips__timer { background: rgb(var(--accent-rgb) / 13%); border-radius: 999px; bottom: 0.5rem; height: 3px; left: 2rem; overflow: hidden; position: absolute; right: 2rem; }
.sidebar-tips__timer span { background: linear-gradient(90deg, rgb(var(--accent-rgb) / 45%), var(--accent)); display: block; height: 100%; transform: scaleX(0); transform-origin: left; }
@media (prefers-reduced-motion: no-preference) {
  .sidebar-tip { opacity: 0; transform: translateY(6px); transition: opacity 400ms ease, transform 400ms ease; }
  .sidebar-tip[data-current] { opacity: 1; transform: none; }
  .sidebar-tips__position { transform: translateY(-4px); transition: opacity 300ms ease, transform 300ms ease; }
  .sidebar-tips:hover .sidebar-tips__position, .sidebar-tips:has(:focus-visible) .sidebar-tips__position { transform: none; }
  .workspace .dashboard-sidebar button.sidebar-tips__arrow { transition: background-color 150ms ease, color 150ms ease; }
}
.workspace .dashboard-logout { font-size: 1rem; gap: 1rem; padding: 0.75rem 1rem; }

/* ---------- the sidebar's way through: Create event, the events with the open one, an administrator's tools ----------
   One look marks where the person is (a soft tint in the accent); the filled accent is kept for the one main
   action, Create event, which turns into a quiet outlined button inside an event. Everything may shrink but
   never widen the sidebar, and long names wrap. */
.workspace .sidebar-create { align-items: center; background: var(--accent-gradient); border-radius: 999px; box-shadow: var(--accent-shadow); color: #fff; display: flex; font-size: 1rem; font-weight: 700; gap: 0.625rem; justify-content: center; margin-top: 1.75rem; min-height: 3rem; padding: 0.625rem 1.25rem; text-decoration: none; }
.workspace .sidebar-create:hover { background: var(--accent-hover); color: #fff; }
.workspace .sidebar-create.sidebar-create--quiet { background: rgb(255 255 255 / 72%); box-shadow: inset 0 0 0 1.5px rgb(var(--accent-rgb) / 32%); color: var(--accent-hover); }
.workspace .sidebar-create.sidebar-create--quiet:hover { background: #fff; box-shadow: inset 0 0 0 1.5px rgb(var(--accent-rgb) / 60%); color: var(--accent-hover); }
.sidebar-create svg { fill: none; flex: none; height: 1.25rem; stroke: currentColor; stroke-linecap: round; stroke-width: 2.2; width: 1.25rem; }
.sidebar-list { display: grid; gap: 0.25rem; grid-template-columns: minmax(0, 1fr); list-style: none; margin: 0; min-width: 0; padding: 0; }
.sidebar-list > li { min-width: 0; }
.sidebar-list--admin { border-top: 1px solid rgb(var(--shadow-rgb) / 12%); padding-top: 0.75rem; }
/* The events entry while one of them is open: it leads there, the page itself is marked further down. */
.workspace .dashboard-nav__link--open { color: var(--ink); font-weight: 700; }

/* The open event: its name and date on a light surface, Switch event, then its sections along a thin line. */
.event-nav { display: grid; gap: 0.375rem; grid-template-columns: minmax(0, 1fr); margin: 0.25rem 0 0.25rem 1.5rem; min-width: 0; padding-left: 0.625rem; position: relative; }
.event-nav::before { background: rgb(var(--accent-rgb) / 22%); bottom: 0.75rem; content: ""; left: 0; position: absolute; top: 0; width: 1px; }
.event-nav__head { background: rgb(var(--glass-rgb) / 80%); border: 1px solid rgb(255 255 255 / 92%); border-radius: 16px; display: grid; min-width: 0; padding: 0.75rem 0.75rem 0.75rem 0.875rem; }
.event-nav__title { color: var(--ink); font-size: 1rem; font-weight: 700; line-height: 1.375rem; margin: 0; overflow-wrap: anywhere; }
.event-nav__meta { color: var(--ink-soft); font-size: 0.8125rem; font-variant-numeric: tabular-nums; line-height: 1.25rem; margin: 0.125rem 0 0; }
.event-nav__badge { align-items: center; background: var(--gold-soft); border-radius: 999px; color: var(--gold-ink); display: inline-flex; font-size: 0.75rem; font-weight: 700; gap: 0.375rem; justify-self: start; line-height: 1.25rem; margin: 0.5rem 0 0; padding: 0.125rem 0.625rem 0.125rem 0.5rem; }
.event-nav__badge svg { fill: none; height: 0.875rem; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; width: 0.875rem; }
.event-nav__switch { margin-top: 0.625rem; min-width: 0; }
.event-nav__switch > summary { align-items: center; background: rgb(255 255 255 / 75%); border: 1px solid rgb(var(--shadow-rgb) / 16%); border-radius: 999px; color: var(--ink); cursor: pointer; display: flex; font-size: 0.875rem; font-weight: 600; gap: 0.5rem; list-style: none; min-height: 2.5rem; padding: 0.375rem 0.75rem; }
.event-nav__switch > summary::-webkit-details-marker { display: none; }
.event-nav__switch > summary:hover, .event-nav__switch[open] > summary { background: #fff; border-color: rgb(var(--accent-rgb) / 40%); color: var(--accent-hover); }
.event-nav__switch > summary svg, .event-nav__events svg, .event-nav__sections svg { fill: none; flex: none; height: 1.125rem; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.9; width: 1.125rem; }
.workspace .event-nav .event-nav__chevron { height: 1rem; margin-left: auto; width: 1rem; }
.event-nav__switch[open] .event-nav__chevron { transform: rotate(180deg); }
/* Many events scroll inside the list; the page around it does not move. */
.event-nav__events { display: grid; gap: 0.125rem; margin: 0.375rem -0.375rem 0; max-height: min(18rem, 45vh); overflow-y: auto; overscroll-behavior: contain; padding: 0 0.125rem; scrollbar-color: rgb(var(--shadow-rgb) / 25%) transparent; scrollbar-width: thin; }
.event-nav__events ul { display: grid; gap: 0.125rem; list-style: none; margin: 0; padding: 0; }
.event-nav__group { color: var(--ink-soft); font-size: 0.75rem; font-weight: 700; line-height: 1.25rem; margin: 0.375rem 0.625rem 0; }
.workspace .event-nav__events a { align-items: center; border-radius: 12px; color: var(--ink); display: flex; gap: 0.5rem; min-height: 2.75rem; padding: 0.375rem 0.625rem; text-decoration: none; }
.workspace .event-nav__events a:hover { background: rgb(var(--shadow-rgb) / 6%); }
.workspace .event-nav__events a[aria-current] { background: var(--accent-soft); color: var(--accent-hover); }
.event-nav__events a > svg { margin-left: auto; stroke-width: 2.2; }
.event-nav__event { display: grid; min-width: 0; }
.event-nav__event > span { font-size: 0.875rem; font-weight: 600; line-height: 1.25rem; overflow-wrap: anywhere; }
.event-nav__event small { color: var(--ink-soft); font-size: 0.75rem; font-variant-numeric: tabular-nums; line-height: 1.125rem; }
.event-nav__events a[aria-current] small { color: inherit; }
.event-nav__past { background: rgb(var(--shadow-rgb) / 9%); border-radius: 999px; color: var(--ink-soft); font-size: 0.6875rem; font-weight: 700; line-height: 1rem; margin-left: 0.375rem; padding: 0 0.375rem; }

.event-nav__sections { display: grid; gap: 0.125rem; list-style: none; margin: 0; padding: 0; }
.event-nav__row { align-items: center; display: flex; gap: 0.25rem; }
.event-nav__row > a:first-child { flex: 1; min-width: 0; }
.workspace .event-nav__sections a { align-items: center; border-radius: 999px; color: var(--ink-soft); display: flex; font-size: 0.9375rem; font-weight: 600; gap: 0.75rem; min-height: 2.75rem; padding: 0.5rem 0.875rem; text-decoration: none; transition: background-color 150ms ease, color 150ms ease; }
.workspace .event-nav__sections a:hover { background: rgb(255 255 255 / 60%); color: var(--ink); }
.workspace .event-nav__sections a[aria-current] { background: var(--accent-soft); color: var(--accent-hover); font-weight: 700; }
/* The step-by-step guide, after the sections. */
.workspace .event-nav__guide { align-items: center; border-radius: 999px; color: var(--ink-soft); display: flex; font-size: 0.9375rem; font-weight: 600; gap: 0.75rem; min-height: 2.75rem; padding: 0.5rem 0.875rem; text-decoration: none; }
.workspace .event-nav__guide:hover { background: rgb(255 255 255 / 60%); color: var(--ink); }
.event-nav__guide svg { fill: none; flex: none; height: 1.125rem; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.9; width: 1.125rem; }
/* Add guests: a small labelled button beside Guests, not a lone icon. */
.workspace .event-nav__sections a.event-nav__add { border: 1px solid rgb(var(--accent-rgb) / 30%); color: var(--accent-hover); flex: none; font-size: 0.8125rem; font-weight: 700; gap: 0.25rem; min-height: 2rem; padding: 0 0.75rem 0 0.5rem; }
.workspace .event-nav__sections a.event-nav__add:hover { background: #fff; border-color: rgb(var(--accent-rgb) / 55%); color: var(--accent-hover); }
.workspace .event-nav__sections a.event-nav__add[aria-current] { background: var(--accent-soft); border-color: transparent; }
.event-nav__add svg { height: 0.875rem; stroke-width: 2.4; width: 0.875rem; }
@media (pointer: coarse) {
  .workspace .event-nav__sections a.event-nav__add { min-height: 2.75rem; padding-inline: 0.75rem 0.875rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .event-nav__chevron { transition: transform 180ms ease; }
}
@media (prefers-reduced-motion: reduce) {
  .workspace .event-nav__sections a { transition: none; }
}

/* ---------- the foot of the sidebar: who is signed in, a link to their settings, and Log out ---------- */
.workspace .sidebar-account { align-items: center; border-radius: 18px; color: var(--ink); display: flex; gap: 0.75rem; min-height: 3.25rem; padding: 0.5rem 0.75rem; text-decoration: none; }
.workspace .sidebar-account:hover { background: rgb(255 255 255 / 60%); }
.workspace .sidebar-account[aria-current] { background: var(--accent-soft); color: var(--accent-hover); }
.sidebar-account__avatar { align-items: center; background: var(--accent-soft); border-radius: 50%; color: var(--accent-hover); display: inline-flex; flex: none; font-size: 0.9375rem; font-weight: 700; height: 2.25rem; justify-content: center; width: 2.25rem; }
.sidebar-account[aria-current] .sidebar-account__avatar { background: #fff; }
.sidebar-account__text { display: grid; min-width: 0; }
.sidebar-account__label { align-items: center; display: flex; flex-wrap: wrap; font-size: 1rem; font-weight: 600; gap: 0.25rem 0.5rem; line-height: 1.375rem; }
.sidebar-account__role { background: var(--gold-soft); border-radius: 999px; color: var(--gold-ink); font-size: 0.6875rem; font-weight: 700; line-height: 1.125rem; padding: 0 0.5rem; }
.sidebar-account__email { color: var(--ink-soft); font-size: 0.75rem; line-height: 1.125rem; overflow-wrap: anywhere; }
.sidebar-account[aria-current] .sidebar-account__email { color: inherit; }
.workspace-role { color: var(--ink-soft); font-size: 0.75rem; font-weight: 600; line-height: 1.25rem; }
.dashboard-access { align-items: center; display: flex; flex-wrap: wrap; gap: var(--workspace-gap-group); margin: var(--workspace-gap-tight) 0 0; }
.dashboard-access a { font-size: 0.75rem; line-height: 1.25rem; min-height: 2.75rem; padding-block: var(--workspace-gap-inline); }

.workspace-page {
  container-name: workspace-page;
  container-type: inline-size;
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
  max-width: var(--workspace-column);
  min-width: 0;
  width: 100%;
}
.workspace-header { align-items: center; display: flex; gap: var(--workspace-gap-section); justify-content: space-between; margin-bottom: var(--workspace-gap-page); }
.workspace-header > div { min-width: 0; }
.workspace-header h1 { font-size: 2.5rem; font-weight: 700; letter-spacing: -0.03em; line-height: 3rem; margin: 0; overflow-wrap: anywhere; }
.workspace-header__description { color: var(--ink-soft); font-size: 1rem; line-height: 1.5rem; margin: var(--workspace-gap-caption) 0 0; max-width: 65ch; overflow-wrap: anywhere; }
.workspace-header__actions { align-items: center; display: flex; flex: none; flex-wrap: wrap; gap: var(--workspace-gap-inline); }
.workspace-card { background: var(--surface); border-radius: 16px; box-shadow: var(--workspace-surface-shadow); min-width: 0; padding: var(--workspace-card-padding); }
.workspace-card h2, .workspace-list-heading h2 { font-size: 1.25rem; font-weight: 700; line-height: 1.75rem; margin: 0; }
.workspace-card__description { color: var(--ink-soft); line-height: 1.25rem; margin: var(--workspace-gap-caption) 0 0; max-width: 65ch; }
.workspace-stack { display: grid; gap: var(--workspace-gap-section); }
.workspace-page form { margin: 0; }
.workspace-page label, .workspace-auth label { font-size: 0.875rem; font-weight: 600; line-height: 1.25rem; margin: 0 0 var(--workspace-gap-tight); }
.workspace-page :is(input, select, textarea), .workspace-auth :is(input, select, textarea) { border-color: var(--border-strong); font-size: 0.875rem; line-height: 1.25rem; min-height: 2.75rem; min-width: 0; padding: 0.6875rem 0.75rem; }
.workspace-page :is(input, textarea), .workspace-auth input { caret-color: var(--accent); }
.workspace-page :is(input, textarea)::placeholder, .workspace-auth input::placeholder { color: var(--ink-soft); opacity: 1; }
.workspace-page textarea { min-height: 8rem; }
.workspace-page input[type="color"] { height: 2.75rem; padding: 0.25rem; width: 5rem; }
.workspace-page input[readonly] { background: var(--surface-muted); }
.workspace-page :is(.button, button), .workspace-auth :is(.button, button) { font-size: 0.875rem; font-weight: 600; line-height: 1.25rem; margin: 0; min-height: 2.75rem; padding: 0.6875rem 1rem; }
.workspace-page button:not(.button--secondary):not(.button--danger), .workspace-auth button { background: var(--accent-gradient); border-color: transparent; box-shadow: var(--accent-shadow); }
.workspace-page button:not(.button--secondary):not(.button--danger):hover, .workspace-auth button:hover { background: var(--accent-hover); }
.workspace-page .button--secondary { background: var(--surface); border-color: var(--border-strong); color: var(--ink); }
.workspace-page .button--secondary:hover { background: var(--surface-muted); border-color: var(--accent); color: var(--accent-hover); }
.workspace-page button.button--danger { background: #fdeaea; border-color: transparent; color: var(--danger); }
.workspace-page button.button--danger:hover { background: #fad7d7; color: #8f1d1d; }
.workspace-page .button svg, .workspace-page button svg { fill: none; flex: none; height: 1rem; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; width: 1rem; }
.workspace-page button:disabled, .workspace-auth button:disabled { background: var(--surface-muted); box-shadow: none; border-color: var(--border); color: var(--ink-soft); cursor: not-allowed; }
.workspace-page .error, .workspace-auth .error { background: #fdeaea; border: 0; color: var(--danger); line-height: 1.5rem; margin-bottom: var(--workspace-gap-section); padding: var(--workspace-gap-inline) var(--workspace-gap-group); }
.workspace-page .form-actions { gap: var(--workspace-gap-inline); margin-top: var(--workspace-gap-section); }
.workspace-page .form-actions > button { min-width: 7rem; }

.event-editor { align-items: start; display: grid; gap: var(--workspace-gap-section); }
.workspace-fields { display: grid; gap: var(--workspace-gap-section); margin-top: var(--workspace-gap-section); }
.workspace-field { min-width: 0; }
.workspace-fields--split { display: grid; gap: var(--workspace-gap-section); }
.workspace-page .template-color-note { font-size: 0.75rem; line-height: 1.25rem; margin-top: var(--workspace-gap-tight); max-width: 65ch; }

.workspace-page .invitee-add { border-bottom: 0; margin: 0 0 var(--workspace-gap-section); padding: var(--workspace-card-padding); }
.invitee-add .inline-form { align-items: center; gap: var(--workspace-gap-inline); margin-top: var(--workspace-gap-group); max-width: 42rem; }
.workspace-list-heading { align-items: center; display: flex; gap: var(--workspace-gap-inline); margin: var(--workspace-gap-page) 0 var(--workspace-gap-group); }
.workspace-count { background: var(--accent-soft); border-radius: 10px; color: var(--accent-hover); font-size: 0.875rem; font-variant-numeric: tabular-nums; font-weight: 600; line-height: 1.25rem; min-width: 2rem; padding: var(--workspace-gap-caption) var(--workspace-gap-tight); text-align: center; }
.workspace-page .invitee-list { background: var(--surface); border-radius: 16px; box-shadow: var(--workspace-surface-shadow); gap: 0; margin: 0; }
.invitee-list__columns { display: none; }
.workspace-page .invitee-card { align-items: center; border: 0; border-radius: 0; display: grid; gap: var(--workspace-gap-section); grid-template-columns: minmax(0, 1fr); padding: var(--workspace-card-padding); }
.workspace-page .invitee-card + .invitee-card { border-top: 1px solid var(--border); }
.invitee-card__identity, .invitee-card__response { min-width: 0; }
.invitee-card__identity .inline-form { align-items: center; flex-wrap: nowrap; gap: var(--workspace-gap-inline); }
.invitee-card__identity .inline-form input { flex: 1; }
.workspace-page .invitee-card .status { align-items: center; border-radius: 8px; display: inline-flex; gap: var(--workspace-gap-tight); line-height: 1.25rem; margin: 0; padding: var(--workspace-gap-tight) var(--workspace-gap-inline); }
.invitee-card .status::before { background: currentColor; border-radius: 50%; content: ""; flex: none; height: 0.5rem; width: 0.5rem; }
.invitee-card .status-attending { background: #e4ebf9; }
.invitee-card .status-pending { background: #eceff4; }
.invitee-card .status-not_attending { background: #fbe6e6; }
.invitee-card__wishlist { align-items: start; color: var(--ink-soft); display: flex; font-size: 0.8125rem; gap: var(--workspace-gap-tight); line-height: 1.25rem; margin: var(--workspace-gap-tight) 0 0; overflow-wrap: anywhere; }
.invitee-card__wishlist svg { color: var(--accent); fill: none; flex: none; height: 1rem; margin-top: 0.125rem; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; width: 1rem; }
.invitee-card__wishlist span { min-width: 0; }
.invitee-card__party, .invitee-card__note { align-items: start; color: var(--ink-soft); display: flex; font-size: 0.8125rem; gap: var(--workspace-gap-tight); line-height: 1.25rem; margin: var(--workspace-gap-tight) 0 0; overflow-wrap: anywhere; }
.invitee-card__note span { min-width: 0; white-space: pre-line; }
.invitee-card__party svg, .invitee-card__note svg, .invitee-people svg { color: var(--accent); fill: none; flex: none; height: 1rem; margin-top: 0.125rem; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; width: 1rem; }
.invitee-people { align-items: center; color: var(--ink-soft); display: inline-flex; font-size: 0.875rem; font-weight: 600; gap: var(--workspace-gap-tight); margin-left: auto; }
.invitee-seats { align-items: center; color: var(--ink-soft); display: inline-flex; flex: none; font-size: 0.75rem; font-weight: 600; gap: var(--workspace-gap-tight); margin: 0; }
.invitee-seats input, .inline-form .invitee-seats input, .invitee-card__identity .inline-form .invitee-seats input { flex: none; font-variant-numeric: tabular-nums; width: 4.5rem; }
.invitee-add__note { color: var(--ink-soft); font-size: 0.8125rem; line-height: 1.25rem; margin: var(--workspace-gap-tight) 0 0; }
.workspace-page .invitee-card .inline-actions { gap: var(--workspace-gap-tight); margin: 0; }
.workspace-empty { align-items: center; display: flex; flex-direction: column; padding: 3rem var(--workspace-card-padding); text-align: center; }
.workspace-empty > svg { color: var(--accent); fill: none; height: 2rem; margin-bottom: var(--workspace-gap-section); stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; width: 2rem; }
.workspace-empty p { color: var(--ink-soft); line-height: 1.5rem; margin: var(--workspace-gap-tight) 0 0; max-width: 42ch; }

.workspace-page .account-details { margin: var(--workspace-gap-section) 0 0; }
.workspace-page .account-details div { padding: 0; }
.workspace-page .account-details div + div { margin-top: var(--workspace-gap-group); }
.workspace-page .account-details dt { line-height: 1.25rem; }
.workspace-page .account-details dd { font-size: 1rem; line-height: 1.5rem; margin-top: var(--workspace-gap-caption); }
.workspace-page .account-danger { border: 0; margin: 0; padding: var(--workspace-card-padding); }
.workspace-page .account-danger h2 { font-size: 1.25rem; line-height: 1.75rem; }
.workspace-page .account-danger p { font-size: 0.875rem; line-height: 1.5rem; margin: var(--workspace-gap-tight) 0 var(--workspace-gap-section); }
.workspace-link__guest { color: var(--accent-hover); overflow-wrap: anywhere; }
.workspace-link > p { color: var(--ink-soft); line-height: 1.5rem; max-width: 65ch; }
.workspace-link__field { margin-top: var(--workspace-gap-section); }
.workspace-link__controls { align-items: center; display: flex; gap: var(--workspace-gap-inline); }
.workspace-link__controls input { flex: 1; font-family: var(--font-mono); }
.workspace-link__controls button { flex: none; min-width: 6rem; }
.workspace-link .copy-status { min-height: 1.25rem; font-size: 0.75rem; line-height: 1.25rem; margin: var(--workspace-gap-tight) 0 0; }
.workspace-notice { background: var(--surface-muted); border-radius: 12px; font-size: 0.875rem; margin: var(--workspace-gap-section) 0 0; padding: var(--workspace-gap-inline) var(--workspace-gap-group); }
.workspace-link .form-actions { border-top: 1px solid var(--border); padding-top: var(--workspace-gap-section); }
/* Send the link from an app: each button is a plain link that opens the app with the message written. */
.share-actions { display: grid; gap: var(--workspace-gap-inline); margin-top: var(--workspace-gap-section); }
.share-actions h3 { font-size: 1rem; font-weight: 700; line-height: 1.5rem; margin: 0; }
.share-actions__note { color: var(--ink-soft); line-height: 1.25rem; margin: 0; }
.share-actions__row { display: flex; flex-wrap: wrap; gap: var(--workspace-gap-inline); }
.workspace-page .share-button { align-items: center; display: inline-flex; flex: 1 1 8rem; gap: 0.5rem; justify-content: center; min-width: 0; padding-inline: 0.75rem; text-decoration: none; white-space: nowrap; }
.workspace-page .share-button[hidden] { display: none; }
.share-button svg { fill: none; flex: none; height: 1rem; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; width: 1rem; }

.workspace-auth .page-shell--public { width: min(100% - 4rem, 68rem); }
.workspace-auth .public-content { padding: 2rem 0 3rem; }
.workspace-auth .auth-panel { border: 0; border-radius: 16px; box-shadow: var(--workspace-surface-shadow); font-size: 0.875rem; max-width: 28rem; padding: 2rem; }
.workspace-auth .auth-panel h1 { font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; line-height: 2.5rem; margin: 0; text-wrap: balance; }
.auth-panel__description { color: var(--ink-soft); line-height: 1.5rem; margin: var(--workspace-gap-tight) 0 0; max-width: 65ch; }
/* Sign-in, registration and code entry: the logo sits in the middle, the promise under it between two gold threads,
   and both stay together with the form in the middle of the screen. */
.workspace-auth.auth-entry .page-column { justify-content: center; }
.workspace-auth.auth-entry .public-content { flex: 0 0 auto; }
.workspace-auth .auth-masthead { flex-direction: column; gap: var(--workspace-gap-inline); text-align: center; }
.workspace-auth .auth-masthead .dashboard-brand__logo { width: 16rem; }
.auth-masthead__tagline { align-items: center; color: var(--ink); display: flex; font-size: 1.25rem; font-weight: 600; gap: var(--workspace-gap-inline); justify-content: center; line-height: 1.75rem; margin: 0; text-wrap: balance; }
.auth-masthead__tagline strong { color: var(--accent); font-weight: 700; white-space: nowrap; }
.auth-masthead__tagline::before, .auth-masthead__tagline::after { background: linear-gradient(90deg, transparent, var(--gold)); border-radius: 2px; content: ""; flex: none; height: 2px; width: 3rem; }
.auth-masthead__tagline::after { transform: scaleX(-1); }
.workspace-auth .template-color-note { color: var(--ink-soft); font-size: 0.75rem; line-height: 1.25rem; margin: var(--workspace-gap-tight) 0 0; }
.auth-panel__notice { background: var(--surface-muted, rgba(127, 127, 127, 0.08)); border-radius: 10px; color: var(--ink-soft); line-height: 1.5rem; margin: var(--workspace-gap-section) 0 0; padding: 0.75rem 1rem; }
.workspace-auth .auth-panel form { display: grid; gap: var(--workspace-gap-section); margin-top: var(--workspace-gap-section); }
.workspace-auth .auth-panel form button { width: 100%; }
.workspace-auth .auth-panel .auth-remember { align-items: center; cursor: pointer; display: flex; font-weight: 500; gap: 0.75rem; line-height: 1.25rem; margin: 0; min-height: 2.75rem; }
.auth-remember input { flex: none; height: 1.25rem; margin: 0; width: 1.25rem; }
.account-legal { display: flex; flex-wrap: wrap; font-size: 0.8125rem; gap: 0 1.25rem; margin: 0; }
.account-legal a { align-items: center; display: inline-flex; min-height: 2.75rem; }
.auth-panel__terms { color: var(--ink-soft); font-size: 0.8125rem; line-height: 1.25rem; margin: 0; text-align: center; }
.workspace-auth .auth-panel .error { margin: var(--workspace-gap-section) 0 0; }
.auth-panel__footer { border-top: 1px solid var(--border); color: var(--ink-soft); line-height: 1.5rem; margin: var(--workspace-gap-section) 0 0; padding-top: var(--workspace-gap-section); }
.workspace-auth .auth-panel__footer a { display: inline-block; font-weight: 600; min-height: 2.75rem; padding-block: var(--workspace-gap-inline); }
/* Sign-in code: the address it went to, a wide spaced field for the digits and a text-style resend. */
.auth-panel__email { color: var(--ink); overflow-wrap: anywhere; }
.workspace-auth input.auth-code { font-size: 1.5rem; font-variant-numeric: tabular-nums; letter-spacing: 0.3em; line-height: 2rem; text-align: center; }
.workspace-auth .auth-panel form.auth-panel__resend { display: block; margin-top: var(--workspace-gap-group); }
.auth-panel__resend p { color: var(--ink-soft); line-height: 1.5rem; margin: 0; }
.workspace-auth .auth-panel form.auth-panel__resend button.button--link { background: none; border: 0; box-shadow: none; color: var(--accent); display: inline; font: inherit; font-weight: 600; margin: 0; min-height: 0; padding: 0.25rem 0; text-decoration: underline; text-underline-offset: 0.15em; width: auto; }
.workspace-auth .auth-panel form.auth-panel__resend button.button--link:hover { background: none; color: var(--accent-hover); }
/* Cloudflare Turnstile. The slot stays empty and takes no room unless Cloudflare asks for a click. */
.captcha:empty { display: none; }
.captcha { margin-top: var(--workspace-gap-tight); }
.captcha-box:has(.captcha:empty):has(.captcha__status[hidden]) { display: none; }
.captcha-box { margin-top: var(--workspace-gap-group); }
/* Under the button of a sign-in form, which is a grid with its own gap. */
.workspace-auth .auth-panel form > button ~ .captcha-box { margin-top: calc(-1 * var(--workspace-gap-tight)); }
.captcha__status, .workspace-page .account-danger .captcha__status { color: var(--ink-soft); font-size: 0.875rem; line-height: 1.5rem; margin: var(--workspace-gap-tight) 0 0; }
.captcha__status[hidden] { display: none; }
button[aria-busy] { cursor: progress; }
/* Account: sign out everywhere beside delete, and the deletion code page. */
.account-danger .form-actions form { display: flex; flex-direction: column; }
.account-page input.auth-code { font-size: 1.5rem; font-variant-numeric: tabular-nums; letter-spacing: 0.3em; line-height: 2rem; max-width: 16rem; text-align: center; }
.account-page form.auth-panel__resend { margin-top: var(--workspace-gap-group); }
.account-page form.auth-panel__resend button.button--link { background: none; border: 0; box-shadow: none; color: var(--accent); display: inline; font: inherit; font-weight: 600; margin: 0; min-height: 0; min-width: 0; padding: 0.25rem 0; text-decoration: underline; text-underline-offset: 0.15em; width: auto; }
.account-page form.auth-panel__resend button.button--link:hover { background: none; color: var(--accent-hover); }

@container workspace-page (min-width: 50rem) {
  .event-editor { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .workspace-fields--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .invitee-list__columns, .workspace-page .invitee-card { grid-template-columns: minmax(0, 1fr) 10rem auto; }
  .invitee-list__columns { border-bottom: 1px solid var(--border); color: var(--ink-soft); display: grid; gap: var(--workspace-gap-section); line-height: 1.25rem; padding: var(--workspace-gap-group) var(--workspace-card-padding); }
  .invitee-list__columns > :last-child { width: 13.75rem; }
  .invitee-card__identity > label { height: 0; margin: 0; overflow: hidden; position: absolute; width: 0; }
  .workspace-page .invitee-card .inline-actions { width: 13.75rem; }
}
@media (max-width: 79.999rem) {
  .workspace .app-content { padding: 2.5rem 2rem; }
}
@media (max-width: 63.999rem) {
  .workspace .page-shell--workspace { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 42rem) {
  .workspace, .workspace-auth { --workspace-card-padding: 1.25rem; }
  /* Text fields stay at 16px or larger on phones: smaller ones make iOS Safari zoom the page on focus. */
  :is(.workspace, .workspace-auth) :is(input:not([type=checkbox], [type=radio], [type=range], [type=color], [type=file]), select, textarea) { font-size: 1rem; }
  .workspace .app-content { padding: 1.5rem 1rem; }
  .workspace-header { align-items: stretch; flex-direction: column; gap: var(--workspace-gap-group); margin-bottom: var(--workspace-gap-section); }
  .workspace-header h1 { font-size: 2rem; line-height: 2.5rem; }
  .workspace-header__actions { gap: var(--workspace-gap-tight); }
  .workspace-card h2, .workspace-list-heading h2 { font-size: 1.125rem; line-height: 1.5rem; }
  .workspace-page .form-actions { align-items: stretch; }
  .workspace-page .form-actions > * { width: 100%; }
  .invitee-add .inline-form { align-items: stretch; }
  .invitee-card__identity .inline-form { flex-direction: row; }
  .invitee-card__identity .inline-form input { width: 0; }
  .invitee-card__identity .inline-form button { width: auto; }
  .workspace-page .invitee-card .inline-actions { align-items: stretch; border-top: 1px solid var(--border); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding-top: var(--workspace-gap-group); }
  .workspace-page .invitee-card .inline-actions button { padding-inline: var(--workspace-gap-tight); width: 100%; }
  .workspace-link__controls { align-items: stretch; flex-direction: column; }
  .workspace-link__controls input { flex: none; }
  .workspace-auth .page-shell--public { width: calc(100% - 2rem); }
  .workspace-auth .public-content { padding: 1.5rem 0; }
  .workspace-auth .auth-panel { padding: var(--workspace-card-padding); }
  .workspace-auth .auth-panel h1 { font-size: 1.75rem; line-height: 2.25rem; }
  .workspace-auth .auth-masthead .dashboard-brand__logo { width: 13rem; }
  .auth-masthead__tagline { font-size: 1.0625rem; line-height: 1.5rem; }
  .auth-masthead__tagline::before, .auth-masthead__tagline::after { width: 1.25rem; }
}

/* ---------- look: warm festive canvas, glass panels with large radii, pill controls ---------- */
.workspace, .workspace-auth { background: var(--canvas-bg); min-height: 100vh; }
.workspace .dashboard-sidebar { background: transparent; }
.workspace .dashboard-nav__link, .workspace .dashboard-logout { border-radius: 999px; padding-inline: 1.25rem; }
.workspace .dashboard-nav__link:hover, .workspace .dashboard-logout:hover { background: rgb(255 255 255 / 60%); }
.workspace .dashboard-nav__link--active, .workspace .dashboard-nav__link--active:hover { background: var(--accent-soft); box-shadow: none; color: var(--accent-hover); font-weight: 700; }
.workspace :is(.workspace-card, .analytics-card, .event-list-panel, .overview-fact, .invitee-list, .dashboard-empty, .helpers-list) {
  background: rgb(var(--glass-rgb) / 72%);
  border: 1px solid rgb(255 255 255 / 85%);
  border-radius: 28px;
  box-shadow: var(--shadow-card);
}
.workspace .overview-fact { border-radius: 24px; }
.workspace .workspace-notice { background: rgb(var(--glass-rgb) / 75%); border-radius: 18px; }
.workspace :is(.button, button):not(.dashboard-logout) { border-radius: 999px; padding-inline: 1.25rem; }
.workspace-page :is(input, select, textarea), .workspace .event-search__field input { border-radius: 14px; }
.workspace .analytics-icon { background: #fff; border: 1px solid var(--border); border-radius: 50%; }
.workspace .event-thumbnail { border-radius: 18px; }
.workspace .workspace-count, .workspace .event-count { border-radius: 999px; }

/* ---------- sidebar magic: ambient holiday particles below the navigation ----------
   Decorative only: hidden from assistive tech, never takes pointer input, and off on narrow
   layouts, short screens and for reduced motion. Layers, back to front: a breathing glow at the
   foot, large soft bokeh drifting down, snow-like sparkles falling in two depth layers (far ones
   small, dim and slow; near ones larger, brighter and quicker) and twinkling as they go, and a
   few four-point glints, like the logo's, that flash in place. Colours follow the style; only
   transform and opacity animate. */
.sidebar-magic { display: none; }
@media (min-width: 64rem) and (prefers-reduced-motion: no-preference) {
  .workspace :is(.dashboard-nav, .dashboard-sidebar__bottom) { position: relative; z-index: 1; }
  .workspace .sidebar-magic { container-type: size; display: block; flex: 1 1 0; min-height: 0; pointer-events: none; position: relative; }
  @container (max-height: 6rem) { .sidebar-magic > * { display: none; } }
  .sidebar-magic > * { inset: 0; position: absolute; }
  .sidebar-magic span { position: absolute; }

  /* Aurora: wide, soft pools of light that drift and breathe. */
  .sidebar-magic__aurora span {
    animation: magic-breathe var(--magic-time) ease-in-out var(--magic-delay) infinite alternate;
    background: radial-gradient(closest-side, var(--magic-color), transparent);
    border-radius: 50%;
    opacity: 0.6;
  }
  .sidebar-magic__aurora span:nth-child(1) { --magic-color: var(--accent-tint); --magic-time: 10s; --magic-delay: 0s;  bottom: -22cqh; height: 74cqh; left: -22%; width: 136%; }
  .sidebar-magic__aurora span:nth-child(2) { --magic-color: var(--gold-soft);   --magic-time: 12s; --magic-delay: -4s; bottom: -10cqh; height: 52cqh; left: 8%;   width: 100%; }
  .sidebar-magic__aurora span:nth-child(3) { --magic-color: var(--accent-soft); --magic-time: 14s; --magic-delay: -7s; bottom: 18cqh;  height: 44cqh; left: -12%; width: 86%; }

  /* Light beam: a soft shaft of light falling from above the navigation. */
  .sidebar-magic__beam {
    animation: magic-beam 11s ease-in-out infinite alternate;
    background: radial-gradient(ellipse 34% 60% at 50% -14%, rgb(255 255 255 / 0.8), rgb(255 255 255 / 0) 74%);
    height: 90%;
    left: 0;
    opacity: 0.6;
    right: 0;
    top: 0;
  }

  /* Soft orbs: out-of-focus light that drifts slowly. */
  .sidebar-magic__bokeh span {
    animation: magic-wander var(--magic-time) ease-in-out var(--magic-delay) infinite alternate;
    background: radial-gradient(circle closest-side, rgb(255 255 255 / 0.9) 0 34%, rgb(255 255 255 / 0.3) 72%, rgb(255 255 255 / 0));
    border-radius: 50%;
    filter: blur(1.5px);
    height: var(--magic-size);
    left: var(--magic-x);
    opacity: 0.75;
    top: var(--magic-y);
    width: var(--magic-size);
  }
  .sidebar-magic__bokeh span:nth-child(1) { --magic-x: 14%; --magic-y: 22%; --magic-size: 26px; --magic-time: 30s; --magic-delay: -5s; --magic-dx: 1.0rem; --magic-dy: 1.4rem; }
  .sidebar-magic__bokeh span:nth-child(2) { --magic-x: 62%; --magic-y: 18%; --magic-size: 16px; --magic-time: 36s; --magic-delay: -18s; --magic-dx: 0.6rem; --magic-dy: 0.9rem; }
  .sidebar-magic__bokeh span:nth-child(3) { --magic-x: 84%; --magic-y: 40%; --magic-size: 30px; --magic-time: 28s; --magic-delay: -9s; --magic-dx: 1.2rem; --magic-dy: 1.6rem; }
  .sidebar-magic__bokeh span:nth-child(4) { --magic-x: 30%; --magic-y: 50%; --magic-size: 14px; --magic-time: 40s; --magic-delay: -26s; --magic-dx: 0.5rem; --magic-dy: 0.7rem; }
  .sidebar-magic__bokeh span:nth-child(5) { --magic-x: 56%; --magic-y: 68%; --magic-size: 20px; --magic-time: 33s; --magic-delay: -14s; --magic-dx: 0.9rem; --magic-dy: 1.2rem; }
  .sidebar-magic__bokeh span:nth-child(6) { --magic-x: 10%; --magic-y: 86%; --magic-size: 24px; --magic-time: 38s; --magic-delay: -22s; --magic-dx: 0.8rem; --magic-dy: 1.0rem; }

  /* Dust: fine specks of light in loose clusters, each drifting a little and glimmering on its own. */
  .sidebar-magic__motes span {
    animation: magic-wander var(--magic-time) ease-in-out var(--magic-delay) infinite alternate;
    border-radius: 50%;
    height: var(--magic-size);
    left: var(--magic-x);
    top: var(--magic-y);
    width: var(--magic-size);
  }
  .sidebar-magic__motes span::before {
    animation: magic-twinkle var(--magic-twinkle) ease-in-out var(--magic-delay) infinite;
    background: #fffdf8;
    border-radius: 50%;
    box-shadow: 0 0 4px 1px rgb(255 255 255 / 0.8);
    content: "";
    inset: 0;
    position: absolute;
  }
  .sidebar-magic__motes span:nth-child(1) { --magic-x: 30%; --magic-y: 33%; --magic-size: 2.5px; --magic-time: 28.9s; --magic-delay: -13.1s; --magic-dx: 0.8rem; --magic-dy: 0.45rem; --magic-twinkle: 4.9s; }
  .sidebar-magic__motes span:nth-child(2) { --magic-x: 61%; --magic-y: 56%; --magic-size: 2.5px; --magic-time: 18.6s; --magic-delay: -5.6s; --magic-dx: 0.26rem; --magic-dy: 0.95rem; --magic-twinkle: 4.5s; }
  .sidebar-magic__motes span:nth-child(3) { --magic-x: 44%; --magic-y: 83%; --magic-size: 3px; --magic-time: 29.5s; --magic-delay: -19.2s; --magic-dx: 0.64rem; --magic-dy: 0.97rem; --magic-twinkle: 2.4s; }
  .sidebar-magic__motes span:nth-child(4) { --magic-x: 76%; --magic-y: 91%; --magic-size: 2.5px; --magic-time: 24.4s; --magic-delay: -8s; --magic-dx: 0.61rem; --magic-dy: 0.46rem; --magic-twinkle: 3s; }
  .sidebar-magic__motes span:nth-child(5) { --magic-x: 40%; --magic-y: 31%; --magic-size: 2px; --magic-time: 17.2s; --magic-delay: -7s; --magic-dx: 0.59rem; --magic-dy: 1.05rem; --magic-twinkle: 2.5s; }
  .sidebar-magic__motes span:nth-child(6) { --magic-x: 72%; --magic-y: 67%; --magic-size: 1.5px; --magic-time: 23.2s; --magic-delay: -1.6s; --magic-dx: 0.74rem; --magic-dy: 0.62rem; --magic-twinkle: 5s; }
  .sidebar-magic__motes span:nth-child(7) { --magic-x: 7%; --magic-y: 90%; --magic-size: 1.5px; --magic-time: 27.9s; --magic-delay: -5.9s; --magic-dx: 0.85rem; --magic-dy: 0.34rem; --magic-twinkle: 3.4s; }
  .sidebar-magic__motes span:nth-child(8) { --magic-x: 58%; --magic-y: 81%; --magic-size: 2px; --magic-time: 23.9s; --magic-delay: -18.6s; --magic-dx: 0.39rem; --magic-dy: 0.37rem; --magic-twinkle: 3.3s; }
  .sidebar-magic__motes span:nth-child(9) { --magic-x: 53%; --magic-y: 27%; --magic-size: 2px; --magic-time: 17.7s; --magic-delay: -12.5s; --magic-dx: 0.21rem; --magic-dy: 0.67rem; --magic-twinkle: 3.8s; }
  .sidebar-magic__motes span:nth-child(10) { --magic-x: 70%; --magic-y: 51%; --magic-size: 2px; --magic-time: 23.1s; --magic-delay: -9.7s; --magic-dx: 0.47rem; --magic-dy: 0.62rem; --magic-twinkle: 5.5s; }
  .sidebar-magic__motes span:nth-child(11) { --magic-x: 38%; --magic-y: 78%; --magic-size: 3px; --magic-time: 29.6s; --magic-delay: -9s; --magic-dx: 0.82rem; --magic-dy: 0.47rem; --magic-twinkle: 3.5s; }
  .sidebar-magic__motes span:nth-child(12) { --magic-x: 67%; --magic-y: 80%; --magic-size: 2px; --magic-time: 17.4s; --magic-delay: -3.7s; --magic-dx: 0.38rem; --magic-dy: 0.92rem; --magic-twinkle: 3.3s; }
  .sidebar-magic__motes span:nth-child(13) { --magic-x: 39%; --magic-y: 33%; --magic-size: 3px; --magic-time: 17.3s; --magic-delay: -11s; --magic-dx: 0.21rem; --magic-dy: 0.59rem; --magic-twinkle: 4.3s; }
  .sidebar-magic__motes span:nth-child(14) { --magic-x: 79%; --magic-y: 62%; --magic-size: 2px; --magic-time: 27.7s; --magic-delay: -24s; --magic-dx: 0.33rem; --magic-dy: 0.42rem; --magic-twinkle: 5.2s; }
  .sidebar-magic__motes span:nth-child(15) { --magic-x: 25%; --magic-y: 73%; --magic-size: 3px; --magic-time: 18.7s; --magic-delay: -3.7s; --magic-dx: 0.87rem; --magic-dy: 1.01rem; --magic-twinkle: 4.2s; }
  .sidebar-magic__motes span:nth-child(16) { --magic-x: 57%; --magic-y: 90%; --magic-size: 2px; --magic-time: 16.5s; --magic-delay: -3.9s; --magic-dx: 0.69rem; --magic-dy: 0.51rem; --magic-twinkle: 4.9s; }
  .sidebar-magic__motes span:nth-child(17) { --magic-x: 35%; --magic-y: 27%; --magic-size: 1.5px; --magic-time: 18.5s; --magic-delay: -2.3s; --magic-dx: 0.54rem; --magic-dy: 0.82rem; --magic-twinkle: 4.2s; }
  .sidebar-magic__motes span:nth-child(18) { --magic-x: 77%; --magic-y: 57%; --magic-size: 1.5px; --magic-time: 28.8s; --magic-delay: -2s; --magic-dx: 0.49rem; --magic-dy: 0.5rem; --magic-twinkle: 2.4s; }
  .sidebar-magic__motes span:nth-child(19) { --magic-x: 20%; --magic-y: 86%; --magic-size: 1.5px; --magic-time: 29.6s; --magic-delay: -10.7s; --magic-dx: 0.82rem; --magic-dy: 1.08rem; --magic-twinkle: 4.4s; }
  .sidebar-magic__motes span:nth-child(20) { --magic-x: 56%; --magic-y: 79%; --magic-size: 1.5px; --magic-time: 18s; --magic-delay: -16.6s; --magic-dx: 0.53rem; --magic-dy: 0.59rem; --magic-twinkle: 3.2s; }
  .sidebar-magic__motes span:nth-child(21) { --magic-x: 51%; --magic-y: 32%; --magic-size: 1.5px; --magic-time: 17s; --magic-delay: -12.5s; --magic-dx: 0.42rem; --magic-dy: 1.1rem; --magic-twinkle: 2.4s; }
  .sidebar-magic__motes span:nth-child(22) { --magic-x: 59%; --magic-y: 52%; --magic-size: 2px; --magic-time: 28.6s; --magic-delay: -22.7s; --magic-dx: 0.84rem; --magic-dy: 0.58rem; --magic-twinkle: 4.5s; }
  .sidebar-magic__motes span:nth-child(23) { --magic-x: 35%; --magic-y: 70%; --magic-size: 1.5px; --magic-time: 21.8s; --magic-delay: -18.9s; --magic-dx: 0.6rem; --magic-dy: 0.8rem; --magic-twinkle: 3.5s; }
  .sidebar-magic__motes span:nth-child(24) { --magic-x: 50%; --magic-y: 83%; --magic-size: 1.5px; --magic-time: 17.1s; --magic-delay: -17s; --magic-dx: 0.82rem; --magic-dy: 0.88rem; --magic-twinkle: 3.5s; }
  .sidebar-magic__motes span:nth-child(25) { --magic-x: 39%; --magic-y: 21%; --magic-size: 3px; --magic-time: 22.2s; --magic-delay: -1.9s; --magic-dx: 0.73rem; --magic-dy: 0.32rem; --magic-twinkle: 4.2s; }
  .sidebar-magic__motes span:nth-child(26) { --magic-x: 66%; --magic-y: 56%; --magic-size: 2.5px; --magic-time: 25.8s; --magic-delay: -20.1s; --magic-dx: 0.66rem; --magic-dy: 0.69rem; --magic-twinkle: 5.2s; }
  .sidebar-magic__motes span:nth-child(27) { --magic-x: 19%; --magic-y: 81%; --magic-size: 3px; --magic-time: 24.6s; --magic-delay: -4.2s; --magic-dx: 0.83rem; --magic-dy: 0.83rem; --magic-twinkle: 3.7s; }
  .sidebar-magic__motes span:nth-child(28) { --magic-x: 66%; --magic-y: 84%; --magic-size: 2px; --magic-time: 25.3s; --magic-delay: -16.1s; --magic-dx: 0.76rem; --magic-dy: 0.9rem; --magic-twinkle: 2.9s; }
  .sidebar-magic__motes span:nth-child(29) { --magic-x: 41%; --magic-y: 35%; --magic-size: 2px; --magic-time: 28.9s; --magic-delay: -3.9s; --magic-dx: 0.55rem; --magic-dy: 0.97rem; --magic-twinkle: 5s; }
  .sidebar-magic__motes span:nth-child(30) { --magic-x: 67%; --magic-y: 38%; --magic-size: 2px; --magic-time: 19.9s; --magic-delay: -2.2s; --magic-dx: 0.53rem; --magic-dy: 1.04rem; --magic-twinkle: 4.9s; }
  .sidebar-magic__motes span:nth-child(31) { --magic-x: 15%; --magic-y: 84%; --magic-size: 3px; --magic-time: 25.4s; --magic-delay: -11.5s; --magic-dx: 0.25rem; --magic-dy: 0.33rem; --magic-twinkle: 5.1s; }
  .sidebar-magic__motes span:nth-child(32) { --magic-x: 72%; --magic-y: 91%; --magic-size: 2px; --magic-time: 24s; --magic-delay: -15.6s; --magic-dx: 0.59rem; --magic-dy: 0.81rem; --magic-twinkle: 3.5s; }
  .sidebar-magic__motes span:nth-child(33) { --magic-x: 45%; --magic-y: 41%; --magic-size: 2px; --magic-time: 19.7s; --magic-delay: -15.7s; --magic-dx: 0.89rem; --magic-dy: 0.39rem; --magic-twinkle: 2.6s; }
  .sidebar-magic__motes span:nth-child(34) { --magic-x: 61%; --magic-y: 53%; --magic-size: 1.5px; --magic-time: 21.2s; --magic-delay: -14.5s; --magic-dx: 0.34rem; --magic-dy: 0.68rem; --magic-twinkle: 2.8s; }
  .sidebar-magic__motes span:nth-child(35) { --magic-x: 4%; --magic-y: 47%; --magic-size: 2px; --magic-time: 26s; --magic-delay: -5.9s; --magic-dx: 0.75rem; --magic-dy: 0.73rem; --magic-twinkle: 5.3s; }
  .sidebar-magic__motes span:nth-child(36) { --magic-x: 50%; --magic-y: 97%; --magic-size: 2px; --magic-time: 18.2s; --magic-delay: -1.6s; --magic-dx: 0.85rem; --magic-dy: 0.88rem; --magic-twinkle: 2.6s; }
  .sidebar-magic__motes span:nth-child(37) { --magic-x: 46%; --magic-y: 62%; --magic-size: 2.5px; --magic-time: 28.7s; --magic-delay: -15.8s; --magic-dx: 0.66rem; --magic-dy: 0.7rem; --magic-twinkle: 4.9s; }
  .sidebar-magic__motes span:nth-child(38) { --magic-x: 35%; --magic-y: 34%; --magic-size: 1.5px; --magic-time: 29.8s; --magic-delay: -21.5s; --magic-dx: 0.77rem; --magic-dy: 0.81rem; --magic-twinkle: 4.6s; }
  .sidebar-magic__motes span:nth-child(39) { --magic-x: 23%; --magic-y: 88%; --magic-size: 2px; --magic-time: 29.7s; --magic-delay: -16s; --magic-dx: 0.75rem; --magic-dy: 0.56rem; --magic-twinkle: 5.2s; }
  .sidebar-magic__motes span:nth-child(40) { --magic-x: 83%; --magic-y: 36%; --magic-size: 2.5px; --magic-time: 17.2s; --magic-delay: -5.9s; --magic-dx: 0.49rem; --magic-dy: 0.52rem; --magic-twinkle: 5.2s; }
  .sidebar-magic__motes span:nth-child(41) { --magic-x: 24%; --magic-y: 85%; --magic-size: 1.5px; --magic-time: 22s; --magic-delay: -3.8s; --magic-dx: 0.43rem; --magic-dy: 0.93rem; --magic-twinkle: 2.7s; }
  .sidebar-magic__motes span:nth-child(42) { --magic-x: 17%; --magic-y: 52%; --magic-size: 2.5px; --magic-time: 26.1s; --magic-delay: -24.7s; --magic-dx: 0.54rem; --magic-dy: 1.06rem; --magic-twinkle: 2.5s; }
  .sidebar-magic__motes span:nth-child(43) { --magic-x: 24%; --magic-y: 53%; --magic-size: 3px; --magic-time: 20.1s; --magic-delay: -12.8s; --magic-dx: 0.57rem; --magic-dy: 0.97rem; --magic-twinkle: 4s; }
  .sidebar-magic__motes span:nth-child(44) { --magic-x: 32%; --magic-y: 39%; --magic-size: 3px; --magic-time: 27.8s; --magic-delay: -5.8s; --magic-dx: 0.8rem; --magic-dy: 1.07rem; --magic-twinkle: 3.9s; }
  .sidebar-magic__motes span:nth-child(45) { --magic-x: 57%; --magic-y: 22%; --magic-size: 3px; --magic-time: 23.5s; --magic-delay: -0.1s; --magic-dx: 0.46rem; --magic-dy: 0.73rem; --magic-twinkle: 2.3s; }
  .sidebar-magic__motes span:nth-child(46) { --magic-x: 89%; --magic-y: 54%; --magic-size: 1.5px; --magic-time: 29.9s; --magic-delay: -14.7s; --magic-dx: 0.68rem; --magic-dy: 0.35rem; --magic-twinkle: 4s; }

  /* Glints: four-point stars with a soft halo that flash and turn in place, one at a time. */
  .sidebar-magic__glints span {
    animation: magic-glint var(--magic-time) ease-in-out var(--magic-delay) infinite;
    height: var(--magic-size);
    left: var(--magic-x);
    opacity: 0;
    top: var(--magic-y);
    width: var(--magic-size);
  }
  .sidebar-magic__glints span::before, .sidebar-magic__glints span::after { content: ""; inset: 0; position: absolute; }
  .sidebar-magic__glints span::before { background: radial-gradient(closest-side, color-mix(in srgb, var(--gold) 55%, transparent), transparent); border-radius: 50%; inset: -110%; }
  .sidebar-magic__glints span::after { background: linear-gradient(135deg, var(--gold), var(--brand-a)); clip-path: polygon(50% 0, 57% 43%, 100% 50%, 57% 57%, 50% 100%, 43% 57%, 0 50%, 43% 43%); }
  .sidebar-magic__glints span:nth-child(1) { --magic-x: 70%; --magic-y: 22%; --magic-size: 20px; --magic-time: 7s;   --magic-delay: -1s; }
  .sidebar-magic__glints span:nth-child(2) { --magic-x: 18%; --magic-y: 46%; --magic-size: 15px; --magic-time: 8.5s; --magic-delay: -5s; }
  .sidebar-magic__glints span:nth-child(3) { --magic-x: 52%; --magic-y: 64%; --magic-size: 18px; --magic-time: 9s;   --magic-delay: -3s; }
  .sidebar-magic__glints span:nth-child(4) { --magic-x: 34%; --magic-y: 12%; --magic-size: 14px; --magic-time: 7.5s; --magic-delay: -6s; }
  .sidebar-magic__glints span:nth-child(5) { --magic-x: 82%; --magic-y: 52%; --magic-size: 16px; --magic-time: 10s;  --magic-delay: -8s; }
}
@keyframes magic-breathe {
  from { opacity: 0.2; transform: translate(-6%, 4%) scale(0.92); }
  to { opacity: 0.42; transform: translate(6%, -4%) scale(1.08); }
}
/* Beam: breathes gently and sways a touch. */
@keyframes magic-beam {
  from { opacity: 0.45; transform: translateX(-2%); }
  to { opacity: 0.85; transform: translateX(2%); }
}
/* Drift: each piece slowly wanders around its own place. */
@keyframes magic-wander {
  from { translate: calc(var(--magic-dx) * -1) calc(var(--magic-dy) * -1); }
  to { translate: var(--magic-dx) var(--magic-dy); }
}
/* Glimmer: each speck brightens and dims on its own schedule. */
@keyframes magic-twinkle {
  0%, 100% { opacity: 0.12; scale: 0.7; }
  50% { opacity: 0.95; scale: 1; }
}
@keyframes magic-glint {
  0%, 50%, 100% { opacity: 0; rotate: 0deg; scale: 0.2; }
  66% { opacity: 0.9; rotate: 45deg; scale: 1; }
  86% { opacity: 0; rotate: 90deg; scale: 0.4; }
}

/* ---------- narrow screens: a slim top bar with a burger that opens the navigation as a drawer ----------
   The drawer is a popover (Escape and a tap outside close it, no script needed). On wide screens it is
   display: contents, so its children lay out as the ordinary sidebar. Browsers without popover support
   skip the @supports block and show the navigation inline under the bar. */
.dashboard-sidebar .workspace-menu-button, .workspace-drawer__head { display: none; }
@media (min-width: 64rem) {
  .workspace .workspace-drawer { display: contents; }
  /* Only up and down: the drifting sparkles would otherwise bring up a sideways scrollbar at times. */
  .workspace .dashboard-sidebar { height: 100vh; height: 100svh; overflow: hidden auto; overscroll-behavior: contain; scrollbar-color: rgb(var(--shadow-rgb) / 22%) transparent; scrollbar-width: thin; }
}
@media (max-width: 63.999rem) {
  html:has(> body.workspace) { scroll-padding-top: 4.5rem; }
  .workspace .dashboard-sidebar { align-items: center; backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); background: rgb(var(--glass-rgb) / 80%); border-bottom: 1px solid rgb(var(--shadow-rgb) / 8%); flex-direction: row; flex-wrap: wrap; gap: 0.75rem; justify-content: space-between; min-height: 3.75rem; padding: 0.5rem 0.5rem 0.5rem 1rem; position: sticky; top: 0; z-index: 40; }
  .workspace .dashboard-brand { padding: 0; }
  .workspace .dashboard-brand__logo { width: 8rem; }
  .workspace .workspace-drawer { flex: 1 0 100%; }
  .workspace .dashboard-nav { margin: 0; }
}
@supports selector(:popover-open) {
  @media (max-width: 63.999rem) {
    .workspace .dashboard-sidebar .workspace-menu-button { align-items: center; background: rgb(255 255 255 / 70%); border: 1px solid rgb(var(--shadow-rgb) / 14%); border-radius: 999px; box-shadow: none; color: var(--ink); display: inline-flex; font-size: 0.9375rem; font-weight: 700; gap: 0.5rem; height: 2.75rem; justify-content: center; margin: 0; min-height: 0; padding: 0 1rem 0 0.75rem; }
    .workspace .dashboard-sidebar .workspace-menu-button:hover, .workspace .dashboard-sidebar .workspace-menu-button:active { background: rgb(var(--shadow-rgb) / 6%); color: var(--ink); }
    .workspace-menu-button svg, .workspace-drawer__close svg { fill: none; height: 1.5rem; stroke: currentColor; stroke-linecap: round; stroke-width: 1.9; width: 1.5rem; }

    /* The drawer slides in from the right, next to the burger, and covers at most 86% of the screen so
       the page behind stays visible as the way back. */
    .workspace .workspace-drawer { background: var(--canvas-bg); border: 0; border-radius: 24px 0 0 24px; box-shadow: -24px 0 60px rgb(var(--shadow-rgb) / 22%); color: var(--ink); display: none; flex-direction: column; height: 100dvh; inset: 0 0 0 auto; margin: 0; max-height: none; overflow-y: auto; overscroll-behavior: contain; padding: 0.5rem 1rem calc(1rem + env(safe-area-inset-bottom)); position: fixed; transform: translateX(100%); transition: transform 300ms cubic-bezier(0.2, 0.75, 0.2, 1), overlay 300ms allow-discrete, display 300ms allow-discrete; width: min(20rem, 86vw); }
    .workspace .workspace-drawer:popover-open { display: flex; transform: none; }
    @starting-style { .workspace .workspace-drawer:popover-open { transform: translateX(100%); } }
    .workspace .workspace-drawer::backdrop { background: rgb(var(--shadow-rgb) / 0%); transition: background-color 300ms ease, overlay 300ms allow-discrete, display 300ms allow-discrete; }
    .workspace .workspace-drawer:popover-open::backdrop { background: rgb(var(--shadow-rgb) / 34%); }
    @starting-style { .workspace .workspace-drawer:popover-open::backdrop { background: rgb(var(--shadow-rgb) / 0%); } }
    body.workspace:has(.workspace-drawer:popover-open) { overflow: hidden; }

    .workspace .workspace-drawer__head { align-items: center; display: flex; justify-content: space-between; min-height: 3.25rem; padding-left: 0.5rem; }
    .workspace-drawer__title { color: var(--ink-soft); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
    .workspace .dashboard-sidebar .workspace-drawer__close { align-items: center; background: transparent; border: 0; border-radius: 14px; box-shadow: none; color: var(--ink); display: inline-flex; height: 2.75rem; justify-content: center; margin: 0; min-height: 0; padding: 0; width: 2.75rem; }
    .workspace .dashboard-sidebar .workspace-drawer__close:hover { background: rgb(var(--shadow-rgb) / 6%); color: var(--ink); }

    .workspace .workspace-drawer .dashboard-nav { display: grid; gap: 0.375rem; margin: 0.5rem 0 0; }
    .workspace .workspace-drawer .dashboard-nav__link { font-size: 1rem; gap: 1rem; justify-content: flex-start; min-height: 3.25rem; padding: 0.75rem 1.25rem; }
    .workspace .workspace-drawer .dashboard-nav__link svg { height: 1.375rem; width: 1.375rem; }
    .workspace .workspace-drawer :is(.event-nav__sections a, .event-nav__guide) { font-size: 1rem; min-height: 3rem; }
    .workspace .workspace-drawer .event-nav__sections a.event-nav__add { font-size: 0.875rem; min-height: 2.75rem; }
    .workspace .workspace-drawer .event-nav__events a { min-height: 3rem; }
    .workspace .workspace-drawer .sidebar-create { margin-top: 0.5rem; }
    .workspace .workspace-drawer .dashboard-nav { margin-top: 1rem; }
    .workspace .workspace-drawer .event-nav__switch > summary { min-height: 2.75rem; }
    .workspace .workspace-drawer .dashboard-sidebar__bottom { margin-top: auto; padding-top: 1.5rem; }
    .workspace .workspace-drawer .dashboard-sidebar__note { display: grid; }
    .workspace .workspace-drawer .dashboard-logout { width: 100%; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .workspace .workspace-drawer, .workspace .workspace-drawer::backdrop { transition: none; }
}

/* Messages: one shape everywhere, and an even gap to whatever follows.
   A message between the page header and the content is as wide as the content column; inside a
   stack the grid gap does the spacing; two messages in a row do not touch. */
.workspace-page .error, .workspace .workspace-notice { border-radius: 16px; line-height: 1.5rem; padding: var(--workspace-gap-inline) var(--workspace-gap-group); }
.workspace-page > .error, .workspace-page > .workspace-notice { margin: 0 0 var(--workspace-gap-section); }
.workspace-stack > .error, .workspace-stack > .workspace-notice { margin: 0; }
.workspace-page :is(.error, .workspace-notice) + :is(.error, .workspace-notice) { margin-top: var(--workspace-gap-group); }
.workspace-stack > :is(.error, .workspace-notice) + :is(.error, .workspace-notice) { margin-top: 0; }
/* A bought design that is switched off: above the page, in the warning colors. */
.workspace .app-content .switched-off { background: #fdeaea; color: var(--danger); margin: 0 0 var(--workspace-gap-section); max-width: var(--workspace-column); }

/* ---------- hints: one look for every explanation set apart on a page ---------- */
:is(body.workspace, body.workspace-auth) :is(.workspace-notice:not(.switched-off), .auth-panel__notice, .hint, .event-hint, .content-note, .guest-link__older) {
  background: rgb(var(--accent-rgb) / 7%); border: 1px solid rgb(var(--accent-rgb) / 18%); border-radius: 16px; box-shadow: none; color: var(--ink);
  font-size: 0.875rem; font-weight: 400; line-height: 1.375rem; max-width: none; overflow-wrap: anywhere; padding: 0.8125rem 1rem 0.8125rem 3.25rem; position: relative; text-align: start;
}
/* The "i" mark, drawn with the style's accent. */
:is(body.workspace, body.workspace-auth) :is(.workspace-notice:not(.switched-off), .auth-panel__notice, .hint, .event-hint, .content-note, .guest-link__older)::before {
  background: linear-gradient(#fff, #fff) 50% 72% / 2px 7px no-repeat, radial-gradient(circle at 50% 28%, #fff 0 1.3px, transparent 1.8px), var(--accent);
  border-radius: 50%; content: ""; height: 1.25rem; left: 1rem; position: absolute; top: 0.875rem; width: 1.25rem;
}
/* Something done (saved, selected): the same box with a tick. */
:is(body.workspace, body.workspace-auth) .hint--done.hint--done::before { background: var(--accent); }
:is(body.workspace, body.workspace-auth) .hint--done.hint--done::after { border: solid #fff; border-width: 0 2px 2px 0; content: ""; height: 0.5rem; left: 1.4375rem; position: absolute; top: 1.125rem; transform: rotate(45deg); width: 0.25rem; }
:is(body.workspace, body.workspace-auth) :is(.event-hint, .content-note) { margin-block: 0; }
/* Captions under a field or a control: one small size everywhere. */
:is(body.workspace, body.workspace-auth) :is(.field-note, .template-color-note, .guest-edit__note, .guest-tray__note, .guest-block__hint, .share-actions__note, .start-order__hint, .invitee-add__notes p) { color: var(--ink-soft); font-size: 0.8125rem; line-height: 1.25rem; }

/* With the sidebar in sight its "My events" is the way back; the header's button is for phones. */
@media (min-width: 64rem) {
  .workspace .workspace-header .header-back { display: none; }
}

/* Laptop screens: the open event's sections, Account and Log out must be in reach without hunting. The tip
   gives up its place, the rows draw closer, and whatever still has to scroll passes under Account and Log out. */
@media (min-width: 64rem) and (max-height: 62rem) {
  .workspace .dashboard-sidebar { padding-block: 1.25rem 0.5rem; scroll-padding-bottom: 8rem; }
  .workspace .dashboard-sidebar:has(.event-nav) .sidebar-tips { display: none; }
  .workspace .dashboard-sidebar .dashboard-sidebar__bottom { background: rgb(var(--glass-rgb) / 94%); border-radius: 18px; bottom: -0.5rem; margin-top: auto; padding: 0.25rem 0 0.5rem; position: sticky; z-index: 2; }
}
@media (min-width: 64rem) and (max-height: 52rem) {
  .workspace .dashboard-sidebar .sidebar-tips { display: none; }
  .workspace .dashboard-sidebar .sidebar-create { margin-top: 0.75rem; min-height: 2.75rem; }
  .workspace .dashboard-sidebar .dashboard-nav { gap: 0.5rem; margin-top: 0.5rem; }
  .workspace .dashboard-sidebar .dashboard-nav__link { min-height: 2.75rem; padding-block: 0.375rem; }
  .workspace .dashboard-sidebar .event-nav { gap: 0.25rem; margin-block: 0; }
  .workspace .dashboard-sidebar .event-nav__head { padding-block: 0.5rem; }
  .workspace .dashboard-sidebar .event-nav__switch { margin-top: 0.375rem; }
  .workspace .dashboard-sidebar .event-nav__sections { gap: 0; }
  .workspace .dashboard-sidebar :is(.event-nav__sections a, .event-nav__guide) { min-height: 2.375rem; padding-block: 0.25rem; }
  .workspace .dashboard-sidebar .event-nav__sections a.event-nav__add { min-height: 2rem; }
}

/* ---------- the parts of "Edit invitation": tabs that stay at the top of its page ---------- */
.workspace .invitation-tabs { background: var(--canvas); display: flex; flex-wrap: wrap; gap: var(--workspace-gap-tight); margin: calc(var(--workspace-gap-tight) * -1) 0 var(--workspace-gap-section); padding: var(--workspace-gap-tight) 0; position: sticky; top: 0; z-index: 5; }
.workspace .invitation-tabs a { align-items: center; background: var(--surface); border-radius: 999px; box-shadow: inset 0 0 0 1px var(--border-strong); color: var(--ink-soft); display: inline-flex; flex: none; font-size: 0.875rem; font-weight: 600; min-height: 2.75rem; padding: 0 var(--workspace-gap-group); text-decoration: none; transition: background-color 150ms ease, color 150ms ease, box-shadow 150ms ease; }
.workspace .invitation-tabs a:hover { box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent-hover); }
.workspace .invitation-tabs a[aria-current] { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-soft); color: var(--accent-hover); font-weight: 700; }
/* Under the top bar on narrower screens. */
@media (max-width: 63.999rem) { .workspace .invitation-tabs { top: 3.75rem; } }
/* A phone has one row that scrolls sideways, fading at the edges to say there is more; the marked tab is
   brought into sight by event-form.js. */
@media (max-width: 39.999rem) {
  .workspace .invitation-tabs { -webkit-mask-image: linear-gradient(90deg, transparent, #000 1rem, #000 calc(100% - 2rem), transparent); mask-image: linear-gradient(90deg, transparent, #000 1rem, #000 calc(100% - 2rem), transparent); flex-wrap: nowrap; margin-inline: -1rem; overflow-x: auto; overscroll-behavior-x: contain; padding-inline: 1rem 2rem; position: sticky; scrollbar-width: none; }
}
@media (prefers-reduced-motion: reduce) { .workspace .invitation-tabs a { transition: none; } }
