/* Syncc UI. All colours/radii come from theme.css tokens (this file has no literal colours).
 * Effects are written from scratch for Syncc in plain CSS + public/site.js (no React, no third-party code):
 *   aurora + dot-grid backdrop, cursor spotlight cards, a travelling border beam, shimmer text,
 *   blur-in reveals, an animated check + spark burst, and toasts. All motion stops under prefers-reduced-motion. */
@property --beam-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; font-family: var(--font-sans); font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; font-feature-settings: 'ss01', 'cv11'; }
a { color: inherit; }
a:not([class]) { text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 0.18em; transition: text-decoration-color .15s; }
a:not([class]):hover { text-decoration-color: currentColor; }
::selection { background: var(--accent-tint); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 0.35rem; }
h1, h2, h3 { letter-spacing: var(--tracking-tight); font-weight: 600; line-height: 1.12; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); }
h2 { font-size: 1.2rem; letter-spacing: -0.025em; }
h3 { font-size: 1.05rem; letter-spacing: -0.02em; }
p { margin: 0; text-wrap: pretty; }
code { font-family: var(--font-mono); font-size: 0.85em; background: var(--surface); border: 1px solid var(--line); border-radius: 0.35rem; padding: 0.05em 0.35em; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 0.8125rem; }
.num { font-variant-numeric: tabular-nums; }
.eyebrow { font-family: var(--font-sans); font-size: 0.7rem; text-transform: uppercase; letter-spacing: var(--tracking-eyebrow); color: var(--accent-ink); font-weight: 500; }
[data-theme="dark"] .eyebrow { color: var(--accent); }
.stack > * + * { margin-top: var(--space-4); }
.stack-lg > * + * { margin-top: var(--space-6); }
.row { display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.icon { width: 1em; height: 1em; flex: 0 0 auto; display: inline-block; vertical-align: -0.125em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Backdrop: soft aurora blobs over a masked dot grid ---------- */
.bg-fx { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: linear-gradient(180deg, var(--bg-2), var(--bg) 40rem); }
.bg-grid { position: absolute; inset: -2px; background-image: radial-gradient(var(--grid-dot) 1px, transparent 1.4px); background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, var(--ink) 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, var(--ink) 20%, transparent 75%); }
.bg-aurora { position: absolute; inset: -20% -10% auto; height: 46rem; filter: blur(70px) saturate(130%); opacity: .9; }
.bg-aurora span { position: absolute; border-radius: 50%; mix-blend-mode: normal; will-change: transform; }
.bg-aurora span:nth-child(1) { width: 38rem; height: 24rem; left: 8%; top: 4rem; background: var(--aurora-1); animation: drift-a 22s ease-in-out infinite alternate; }
.bg-aurora span:nth-child(2) { width: 30rem; height: 22rem; right: 6%; top: 0; background: var(--aurora-2); animation: drift-b 26s ease-in-out infinite alternate; }
.bg-aurora span:nth-child(3) { width: 34rem; height: 18rem; left: 36%; top: 12rem; background: var(--aurora-3); animation: drift-c 30s ease-in-out infinite alternate; }
.is-admin .bg-aurora { opacity: .45; height: 30rem; }
.is-admin .bg-grid { opacity: .6; }
@keyframes drift-a { to { transform: translate3d(14%, 18%, 0) scale(1.15); } }
@keyframes drift-b { to { transform: translate3d(-18%, 22%, 0) scale(.9); } }
@keyframes drift-c { to { transform: translate3d(-10%, -16%, 0) scale(1.2); } }

/* ---------- Shell ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--topbar-bg); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent); }
.topbar-inner { max-width: 75rem; margin: 0 auto; padding: 0.75rem 1.5rem; display: flex; align-items: center; gap: var(--space-6); }
.wordmark { font-weight: 650; letter-spacing: var(--tracking-mark); font-size: 1.15rem; text-decoration: none; display: inline-flex; align-items: center; gap: 0.55rem; }
.wordmark .mark { position: relative; width: 1.6rem; height: 1.6rem; border-radius: 0.5rem; background: var(--btn); display: grid; place-items: center; box-shadow: var(--shadow-xs); }
.wordmark .mark::after { content: ''; width: 0.62rem; height: 0.62rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--glow); animation: ping 3.2s cubic-bezier(.2,.7,.3,1) infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 var(--glow); } 70%, 100% { box-shadow: 0 0 0 0.55rem transparent; } }
.nav { display: flex; gap: 0.15rem; padding: 0.2rem; border-radius: 0.7rem; background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid var(--line); }
.nav a { position: relative; text-decoration: none; color: var(--muted); font-size: 0.85rem; font-weight: 500; padding: 0.38rem 0.75rem; border-radius: 0.5rem; transition: color .15s, background .2s, box-shadow .2s; white-space: nowrap; }
.nav a:hover { color: var(--ink); }
.nav a.active { color: var(--ink); background: var(--card); box-shadow: var(--shadow-xs), 0 0 0 1px var(--line); }
.topbar .actions { display: flex; align-items: center; gap: var(--space-2); }
.topbar .actions form { margin: 0; }
.container { width: 100%; max-width: 75rem; margin: 0 auto; padding: var(--space-12) 1.5rem 4rem; flex: 1; }
.narrow { max-width: 48rem; }
.footer { text-align: center; padding: var(--space-8) 1rem var(--space-12); color: var(--faint); font-size: 0.8rem; display: flex; gap: 0.5rem; align-items: center; justify-content: center; }
.footer .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); opacity: .6; }

/* Theme toggle: mirrors botlane.io's ThemeToggle (40px icon button, hairline ring, sun in dark / moon in light) */
.theme-toggle { width: 2.5rem; height: 2.5rem; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 0.6rem; background: var(--card-glass); color: var(--ink); box-shadow: 0 0 0 1px var(--line), var(--shadow-xs); cursor: pointer; transition: background .15s, transform .2s; }
.theme-toggle:hover { background: var(--surface); }
.theme-toggle:active { transform: scale(.94); }
.theme-toggle svg { width: 18px; height: 18px; display: block; animation: spin-in .45s cubic-bezier(.2,.8,.2,1); }
@keyframes spin-in { from { transform: rotate(-90deg) scale(.6); opacity: 0; } }
.theme-toggle .icon-moon, [data-theme="dark"] .theme-toggle .icon-sun { display: block; }
.theme-toggle .icon-sun, [data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ---------- Page header ---------- */
.page-head { display: flex; align-items: flex-end; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-8); }
.page-head h1 { font-size: clamp(1.6rem, 2.6vw, 2rem); }
.page-head p { margin-top: 0.4rem; }
.page-head .spacer { min-width: 1rem; }
.back-link { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--muted); font-size: 0.8125rem; text-decoration: none; margin-bottom: var(--space-3); transition: color .15s, gap .2s; }
.back-link:hover { color: var(--ink); gap: 0.5rem; }

/* ---------- Text effects ---------- */
.text-gradient { background: linear-gradient(180deg, var(--ink) 30%, var(--heading-fade)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.shimmer { background: linear-gradient(100deg, var(--ink) 0 40%, var(--accent) 50%, var(--ink) 60% 100%); background-size: 250% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 5s ease-in-out 1s infinite; }
@keyframes shimmer { 0% { background-position: 100% 0; } 35%, 100% { background-position: 0% 0; } }
.pill { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.32rem 0.8rem 0.32rem 0.45rem; border-radius: var(--radius-pill); font-size: 0.78rem; font-weight: 500; color: var(--ink-2);
  background: var(--card-glass); border: 1px solid var(--line); box-shadow: var(--shadow-xs); backdrop-filter: blur(8px); }
.pill .live { width: 0.5rem; height: 0.5rem; margin-left: 0.3rem; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 var(--ok-tint); animation: live 2s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 var(--ok); } 80%, 100% { box-shadow: 0 0 0 0.4rem transparent; } }

/* ---------- Reveal on load (blur + rise), staggered by position ---------- */
.reveal > * { animation: rise .7s cubic-bezier(.2,.75,.2,1) both; }
.reveal > :nth-child(2) { animation-delay: .06s; } .reveal > :nth-child(3) { animation-delay: .12s; } .reveal > :nth-child(4) { animation-delay: .18s; }
.reveal > :nth-child(5) { animation-delay: .24s; } .reveal > :nth-child(6) { animation-delay: .3s; } .reveal > :nth-child(n+7) { animation-delay: .36s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* ---------- Cards ---------- */
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card); padding: var(--space-8); box-shadow: var(--shadow-soft), var(--inner-hi); }
.card.soft { background: color-mix(in srgb, var(--surface) 40%, var(--card)); }
.card.flush { padding: 0; overflow: hidden; }
.card.hover { transition: border-color .3s, box-shadow .35s, transform .35s cubic-bezier(.2,.8,.2,1); }
.card.hover:hover { box-shadow: var(--shadow-lift), var(--inner-hi); transform: translateY(-3px); border-color: var(--line-strong); }
.card.accent { border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.card-head { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.card-head .icon-tile { margin-right: 0.15rem; }
.card-sub { margin-top: 0.3rem; }
.grid { display: grid; gap: var(--space-6); }
@media (min-width: 48rem) { .grid.cols-2 { grid-template-columns: repeat(2, 1fr); } .grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.divider { height: 1px; background: var(--line); border: 0; margin: var(--space-6) 0; }
.icon-tile { width: 2.5rem; height: 2.5rem; border-radius: 0.75rem; display: grid; place-items: center; flex: 0 0 auto; color: var(--accent-ink);
  background: linear-gradient(180deg, var(--accent-tint), color-mix(in srgb, var(--accent-tint) 40%, var(--card))); border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent); }
[data-theme="dark"] .icon-tile { color: var(--accent); }
.icon-tile .icon { width: 1.15rem; height: 1.15rem; }
.icon-tile.neutral { color: var(--ink-2); background: var(--surface); border-color: var(--line); }

/* Spotlight: a soft accent glow that follows the pointer (site.js sets --mx / --my). */
.spotlight { isolation: isolate; overflow: hidden; }
.spotlight::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(22rem circle at var(--mx, 50%) var(--my, 0%), var(--spot), transparent 65%); }
.spotlight:hover::before, .spotlight:focus-within::before { opacity: 1; }

/* Border beam: a short bright arc that travels around the card edge. */
.beam::after { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--beam-angle), transparent 0 70%, color-mix(in srgb, var(--beam) 15%, transparent) 78%, var(--beam) 88%, transparent 96%);
  -webkit-mask: linear-gradient(var(--ink) 0 0) content-box, linear-gradient(var(--ink) 0 0); -webkit-mask-composite: xor; mask: linear-gradient(var(--ink) 0 0) content-box exclude, linear-gradient(var(--ink) 0 0);
  animation: beam 7s linear infinite; }
@keyframes beam { to { --beam-angle: 360deg; } }

/* ---------- Buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; height: 2.75rem; padding: 0 1.15rem; border-radius: var(--radius-btn); border: 1px solid transparent;
  font: inherit; font-size: 0.875rem; font-weight: 550; letter-spacing: -0.005em; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, filter .15s, border-color .15s, transform .15s, box-shadow .2s; background: var(--btn); color: var(--btn-ink); box-shadow: var(--shadow-xs); }
.btn:hover { background: var(--btn-hover); }
.btn:active:not([disabled]) { transform: translateY(1px) scale(.985); }
.btn .icon { width: 1rem; height: 1rem; transition: transform .2s; }
.btn:hover .icon.arrow { transform: translateX(3px); }
.btn.primary { color: var(--on-accent); border-color: color-mix(in srgb, var(--accent-fill) 60%, var(--ink));
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent-fill) 88%, var(--on-accent)), var(--accent-fill) 55%);
  box-shadow: var(--shadow-accent), inset 0 1px 0 color-mix(in srgb, var(--on-accent) 25%, transparent); overflow: hidden; }
.btn.primary::before { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, color-mix(in srgb, var(--on-accent) 28%, transparent) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.btn.primary:hover { filter: brightness(1.04); box-shadow: 0 0.4rem 1.4rem var(--glow), inset 0 1px 0 color-mix(in srgb, var(--on-accent) 25%, transparent); }
.btn.primary:hover::before { transform: translateX(120%); }
.btn.ghost { background: var(--card-glass); color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--surface); border-color: var(--line-strong); }
.btn.quiet { background: transparent; color: var(--muted); box-shadow: none; }
.btn.quiet:hover { background: var(--surface); color: var(--ink); }
.btn.danger { background: transparent; color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent) 35%, transparent); box-shadow: none; }
[data-theme="dark"] .btn.danger { color: var(--accent-ink); }
.btn.danger:hover { background: var(--accent-tint); }
.btn.sm { height: 2.15rem; padding: 0 0.85rem; font-size: 0.8125rem; border-radius: 0.5rem; }
.btn.icon-only { width: 2.5rem; padding: 0; }
.btn.block { width: 100%; }
.btn.lg { height: 3.1rem; font-size: 0.95rem; border-radius: 0.65rem; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.btn .spinner { width: 1rem; height: 1rem; border-radius: 50%; border: 2px solid color-mix(in srgb, currentColor 30%, transparent); border-top-color: currentColor; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 0.35rem; border-radius: var(--radius-pill); padding: 0.18rem 0.6rem; font-family: var(--font-sans); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  background: var(--surface); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.badge .dot { width: 0.4rem; height: 0.4rem; border-radius: 50%; background: currentColor; }
.badge.ok { background: var(--ok-tint); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 20%, transparent); }
.badge.accent { background: var(--accent-tint); color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent) 20%, transparent); }
.badge.warn { background: var(--warn-tint); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 20%, transparent); }
.chip { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8125rem; color: var(--ink-2); padding: 0.3rem 0.65rem; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--line); }
.chip .icon { color: var(--muted); }

/* ---------- Forms ---------- */
label { display: block; font-size: 0.8125rem; font-weight: 550; color: var(--ink-2); margin-bottom: 0.4rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--card); border: 1px solid var(--line-strong);
  border-radius: var(--radius-input); padding: 0.66rem 0.85rem; box-shadow: var(--shadow-xs); transition: border-color .15s, box-shadow .2s, background .2s; }
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--ink) 22%, var(--line-strong)); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }
select { appearance: none; -webkit-appearance: none; padding-right: 2.25rem; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 1.1rem) 52%, calc(100% - 0.8rem) 52%; background-size: 0.3rem 0.3rem; background-repeat: no-repeat; }
::placeholder { color: var(--faint); opacity: 1; }
textarea { min-height: 6.5rem; resize: vertical; }
.field + .field { margin-top: var(--space-4); }
.hint { font-size: 0.75rem; color: var(--faint); margin-top: 0.35rem; }
.fields-2 { display: grid; gap: var(--space-4); }
@media (min-width: 40rem) { .fields-2 { grid-template-columns: 1fr 1fr; } }
.check { display: flex; align-items: center; gap: 0.55rem; font-weight: 500; cursor: pointer; }
.check input { width: 1.05rem; height: 1.05rem; accent-color: var(--accent-fill); margin: 0; }
.input-icon { position: relative; }
.input-icon .icon { position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.input-icon input, .input-icon select { padding-left: 2.4rem; }
/* Toggle switch (a styled checkbox: still a real <input>, keyboard and form friendly) */
.switch { display: inline-flex; align-items: center; gap: 0.65rem; cursor: pointer; font-weight: 550; margin: 0; }
.switch input { appearance: none; -webkit-appearance: none; width: 2.3rem; height: 1.35rem; margin: 0; border-radius: 999px; background: var(--line-strong); position: relative; cursor: pointer; transition: background .2s; flex: 0 0 auto; }
.switch input::after { content: ''; position: absolute; top: 0.15rem; left: 0.15rem; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--card); box-shadow: var(--shadow-xs); transition: transform .25s cubic-bezier(.3,.9,.3,1.2); }
.switch input:checked { background: var(--accent-fill); }
.switch input:checked::after { transform: translateX(0.95rem); }
.switch input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Alerts + toasts ---------- */
.alert { display: flex; gap: 0.6rem; align-items: flex-start; border-radius: var(--radius-input); padding: 0.75rem 1rem; font-size: 0.875rem; border: 1px solid var(--line); background: var(--surface); }
.alert .icon { margin-top: 0.15rem; }
.alert.ok { background: var(--ok-tint); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 20%, transparent); }
.alert.error { background: var(--accent-tint); color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent) 20%, transparent); }
.alert.warn { background: var(--warn-tint); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 22%, transparent); }
.toasts { position: fixed; z-index: 50; top: 4.5rem; right: 1.25rem; display: grid; gap: 0.6rem; width: min(24rem, calc(100vw - 2rem)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.85rem 0.9rem 0.85rem 1rem; border-radius: 0.9rem; font-size: 0.875rem; color: var(--ink);
  background: var(--card-glass); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); border: 1px solid var(--line); box-shadow: var(--shadow-lift);
  animation: toast-in .5s cubic-bezier(.2,.9,.25,1.15) both; }
.toast .t-icon { width: 1.5rem; height: 1.5rem; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; }
.toast .t-icon .icon { width: 0.9rem; height: 0.9rem; }
.toast.ok .t-icon { background: var(--ok-tint); color: var(--ok); }
.toast.error .t-icon { background: var(--accent-tint); color: var(--accent-ink); }
.toast .t-body { flex: 1; padding-top: 0.12rem; }
.toast .t-close { font-size: 1.1rem; border: 0; background: transparent; color: var(--faint); cursor: pointer; padding: 0.15rem; border-radius: 0.35rem; line-height: 0; }
.toast .t-close:hover { color: var(--ink); background: var(--surface); }
.toast.leaving { animation: toast-out .3s ease-in both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(20px); } }

/* ---------- Tables / lists ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
th { text-align: left; font-weight: 500; color: var(--faint); font-family: var(--font-sans); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; padding: 0.7rem 0.75rem; border-bottom: 1px solid var(--line); }
td { padding: 0.9rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }

/* Booking rows (admin) */
.blist { list-style: none; margin: 0; padding: 0; }
.bitem { display: grid; grid-template-columns: 3.6rem minmax(0, 1.1fr) minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: var(--space-4); align-items: center; padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line); transition: background .2s; }
.bitem:last-child { border-bottom: 0; }
.bitem:hover { background: color-mix(in srgb, var(--surface) 55%, transparent); }
.datebox { width: 3.6rem; text-align: center; border-radius: 0.8rem; border: 1px solid var(--line); background: var(--card); overflow: hidden; box-shadow: var(--shadow-xs); }
.datebox .m { display: block; font-family: var(--font-sans); font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: var(--on-accent); background: var(--accent-fill); padding: 0.15rem 0; }
.datebox .d { display: block; font-size: 1.35rem; font-weight: 650; letter-spacing: -0.03em; line-height: 1.6; font-variant-numeric: tabular-nums; }
.datebox.dim .m { background: var(--surface); color: var(--muted); }
.bitem .when strong { display: block; font-weight: 600; }
.person { display: flex; align-items: center; gap: 0.7rem; min-width: 0; }
.avatar { width: 2.2rem; height: 2.2rem; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center; font-size: 0.75rem; font-weight: 650; letter-spacing: 0.02em;
  color: var(--ink); background: linear-gradient(135deg, var(--accent-tint), var(--surface)); border: 1px solid var(--line); }
.person .who { min-width: 0; }
.person .who a, .person .who strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quote { margin-top: 0.3rem; font-size: 0.8rem; color: var(--faint); font-style: italic; max-width: 22rem; }
.bitem .loc { display: flex; flex-direction: column; gap: 0.3rem; align-items: flex-start; min-width: 0; }
.bitem .act { justify-self: end; }
details.pop { position: relative; }
details.pop > summary { list-style: none; }
details.pop > summary::-webkit-details-marker { display: none; }
details.pop[open] > summary { background: var(--accent-tint); }
details.pop .pop-body { position: absolute; right: 0; top: calc(100% + 0.4rem); z-index: 5; width: 17rem; padding: 0.9rem; border-radius: 0.9rem; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-lift); animation: rise .25s ease both; }
.pop-body .row { margin-top: 0.6rem; }
@media (max-width: 56rem) {
  .bitem { grid-template-columns: 3.6rem 1fr; row-gap: 0.75rem; }
  .bitem .person, .bitem .loc { grid-column: 2; }
  .bitem .act { grid-column: 2; justify-self: start; }
  details.pop .pop-body { left: 0; right: auto; }
}

/* Stat cards */
.stats { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); margin-bottom: var(--space-6); }
.stat { padding: 1.15rem 1.25rem; }
.stat .label { display: flex; align-items: center; gap: 0.45rem; font-size: 0.78rem; color: var(--muted); font-weight: 500; }
.stat .value { margin-top: 0.4rem; font-size: 1.7rem; font-weight: 650; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat .value.sm { font-size: 1.05rem; letter-spacing: -0.02em; line-height: 1.6; }

/* Segmented tabs */
.segmented { display: inline-flex; gap: 0.15rem; padding: 0.2rem; border-radius: 0.7rem; background: var(--surface); border: 1px solid var(--line); }
.segmented a { text-decoration: none; font-size: 0.82rem; font-weight: 500; color: var(--muted); padding: 0.38rem 0.85rem; border-radius: 0.5rem; transition: color .15s, background .2s; }
.segmented a:hover { color: var(--ink); }
.segmented a.active { background: var(--card); color: var(--ink); box-shadow: var(--shadow-xs), 0 0 0 1px var(--line); }

/* Empty state */
.empty-state { text-align: center; padding: 3.5rem 1.5rem; display: grid; justify-items: center; gap: 0.5rem; }
.empty-state .halo { position: relative; width: 3.5rem; height: 3.5rem; border-radius: 1rem; display: grid; place-items: center; margin-bottom: 0.6rem; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.empty-state .halo::before { content: ''; position: absolute; inset: -0.9rem; border-radius: 1.6rem; border: 1px dashed var(--line-strong); opacity: .8; }
.empty-state .halo .icon { width: 1.4rem; height: 1.4rem; }
.empty-state h3 { font-size: 1rem; }
.empty-state p { max-width: 24rem; font-size: 0.875rem; }
.empty { color: var(--faint); font-size: 0.875rem; padding: var(--space-6) 0; text-align: center; }

/* ---------- Public: hero + event cards ---------- */
.hero { text-align: center; display: grid; justify-items: center; gap: var(--space-4); padding: var(--space-8) 0 var(--space-12); }
.hero .avatar-lg { width: 4.5rem; height: 4.5rem; border-radius: 1.4rem; display: grid; place-items: center; font-size: 1.4rem; font-weight: 650; letter-spacing: -0.03em; color: var(--btn-ink);
  background: var(--btn); box-shadow: var(--shadow-lift), 0 0 0 6px color-mix(in srgb, var(--card) 70%, transparent), 0 0 3rem var(--glow); }
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); letter-spacing: -0.05em; line-height: 1.02; }
.hero p.lead { font-size: 1.08rem; color: var(--muted); max-width: 32rem; }
.et-list { display: grid; gap: var(--space-4); }
@media (min-width: 48rem) { .et-list.multi { grid-template-columns: repeat(2, 1fr); } }
.et-link { display: block; text-decoration: none; border-radius: var(--radius-card); }
.et-card { display: grid; gap: var(--space-4); padding: 1.6rem; height: 100%; }
.et-card .top { display: flex; gap: var(--space-4); align-items: flex-start; }
.et-card h3 { font-size: 1.15rem; }
.et-card .go { margin-left: auto; width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; color: var(--muted); border: 1px solid var(--line); background: var(--card);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), color .2s, background .2s, border-color .2s; }
.et-link:hover .go, .et-link:focus-visible .go { transform: rotate(-45deg); color: var(--on-accent); background: var(--accent-fill); border-color: transparent; }
.et-meta { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.trust { display: flex; gap: 1.25rem; justify-content: center; flex-wrap: wrap; margin-top: var(--space-8); color: var(--faint); font-size: 0.8rem; }
.trust span { display: inline-flex; align-items: center; gap: 0.4rem; }

/* ---------- Booking widget ---------- */
.booker-card { padding: 0; overflow: visible; }
.booker { display: grid; }
.booker > section, .booker > form { padding: var(--space-8); min-width: 0; }
.booker-info { border-bottom: 1px solid var(--line); }
@media (min-width: 60rem) {
  .booker { grid-template-columns: 19rem 1fr 15.5rem; }
  .booker-info { border-bottom: 0; border-right: 1px solid var(--line); }
  #step-time { border-left: 1px solid var(--line); }
  .booker.form-mode { grid-template-columns: 19rem 1fr; }
}
.booker.form-mode #step-date, .booker.form-mode #step-time { display: none; }
.booker-info .host { display: flex; align-items: center; gap: 0.6rem; }
.booker-info .host .avatar { width: 2rem; height: 2rem; font-size: 0.7rem; }
/* The owner's logo (Account → Logo) in place of the initials: never stretched, never cropped. */
.hero .hero-logo { display: block; width: auto; height: auto; max-height: 6rem; max-width: min(16rem, 70vw); object-fit: contain;
  filter: drop-shadow(0 0.6rem 1.6rem var(--glow)); }
.booker-info .host .host-logo { display: block; width: auto; height: 2rem; max-width: 7rem; object-fit: contain; }
/* Account → Logo card */
.logo-row { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: var(--space-6); align-items: center; }
.logo-preview { width: 9rem; height: 9rem; border-radius: 1.2rem; display: grid; place-items: center; padding: 0.9rem;
  background: var(--surface); border: 1px solid var(--line); }
.logo-preview img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.logo-preview .avatar-lg { width: 4.5rem; height: 4.5rem; border-radius: 1.4rem; display: grid; place-items: center; font-size: 1.4rem; font-weight: 650; color: var(--btn-ink); background: var(--btn); }
.logo-form input[type=file] { width: 100%; }
.error-text { color: var(--accent-ink); }
@media (max-width: 560px) { .logo-row { grid-template-columns: 1fr; } }
.booker-info h1 { font-size: 1.65rem; margin-top: var(--space-4); }
.booker-info .desc { margin-top: 0.75rem; font-size: 0.92rem; }
.booker-info .meta { display: grid; gap: 0.65rem; margin-top: var(--space-6); color: var(--ink-2); font-size: 0.875rem; font-weight: 500; }
.booker-info .meta span { display: flex; gap: 0.6rem; align-items: center; }
.booker-info .meta .icon { width: 1.05rem; height: 1.05rem; color: var(--muted); }
.booker-info .selected-time { display: none; margin-top: var(--space-6); padding: 0.85rem 1rem; border-radius: 0.8rem; background: var(--accent-tint); color: var(--accent-ink); font-weight: 600; font-size: 0.875rem; gap: 0.6rem; align-items: flex-start; }
[data-theme="dark"] .booker-info .selected-time { color: var(--accent-ink); }
.booker.form-mode .selected-time { display: flex; animation: rise .4s ease both; }
.tz-select { margin-top: var(--space-6); }
.step-title { font-size: 1rem; font-weight: 600; letter-spacing: -0.02em; }
.cal-head { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-4); }
.cal-head h2 { font-size: 1.05rem; margin-right: auto; }
.cal-head .btn { width: 2.25rem; height: 2.25rem; padding: 0; border-radius: 0.6rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.4rem; text-align: center; }
.cal-grid.anim { animation: cal-in .4s cubic-bezier(.2,.8,.2,1) both; }
.cal-grid.anim.back { animation-name: cal-in-back; }
@keyframes cal-in { from { opacity: 0; transform: translateX(14px); } }
@keyframes cal-in-back { from { opacity: 0; transform: translateX(-14px); } }
.cal-grid .dow { font-family: var(--font-sans); font-size: 0.64rem; color: var(--faint); text-transform: uppercase; letter-spacing: 0.08em; padding-bottom: 0.4rem; }
.day { position: relative; aspect-ratio: 1; max-height: 3.4rem; border-radius: 0.7rem; border: 1px solid transparent; background: transparent; font: inherit; font-size: 0.92rem; font-variant-numeric: tabular-nums; color: var(--ink-disabled); cursor: default; transition: background .15s, color .15s, transform .15s, box-shadow .2s; }
.day.avail { background: var(--surface); color: var(--ink); font-weight: 600; cursor: pointer; border-color: color-mix(in srgb, var(--line) 60%, transparent); }
.day.avail::after { content: ''; position: absolute; left: 50%; bottom: 18%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); opacity: .85; }
.day.avail:hover { background: var(--accent-tint); color: var(--accent-ink); transform: translateY(-1px); }
.day.selected { background: var(--accent-fill) !important; color: var(--on-accent) !important; box-shadow: 0 0.4rem 1.2rem var(--glow); border-color: transparent; }
.day.selected::after { background: var(--on-accent); }
.day.today:not(.selected) { box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.cal-legend { display: flex; gap: 1rem; margin-top: var(--space-4); font-size: 0.75rem; color: var(--faint); }
.cal-legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.cal-legend i { width: 0.6rem; height: 0.6rem; border-radius: 0.2rem; background: var(--surface); border: 1px solid var(--line); display: inline-block; }
.cal-legend i.sel { background: var(--accent-fill); border-color: transparent; }
.slots { display: grid; gap: 0.5rem; max-height: 26.5rem; overflow-y: auto; padding: 0.15rem 0.35rem 0.25rem 0.15rem; margin-top: var(--space-4); scrollbar-width: thin; }
@media (max-width: 59.99rem) { .slots { grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr)); max-height: none; } }
.slot { height: 2.75rem; border-radius: 0.65rem; border: 1px solid var(--line-strong); background: var(--card); color: var(--ink); font: inherit; font-weight: 600; font-size: 0.9rem; font-variant-numeric: tabular-nums;
  cursor: pointer; transition: border-color .15s, background .15s, color .15s, transform .15s, box-shadow .2s; animation: rise .45s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 30ms); }
.slot:hover { border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 3px var(--accent-tint); }
[data-theme="dark"] .slot:hover { color: var(--accent-ink); }
.slot:active { transform: scale(.97); }
.skeleton { border-radius: 0.65rem; background: linear-gradient(90deg, var(--surface) 0 40%, var(--card) 50%, var(--surface) 60% 100%); background-size: 300% 100%; animation: sk 1.3s ease-in-out infinite; }
.cal-grid .skeleton { aspect-ratio: 1; max-height: 3.4rem; }
.slots .skeleton { height: 2.75rem; }
@keyframes sk { from { background-position: 100% 0; } to { background-position: 0 0; } }
.book-form .form-head { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.book-form .form-head .step-title { margin-right: auto; }
.book-form .fields { max-width: 34rem; margin-top: var(--space-6); }
.book-form .fine { margin-top: var(--space-3); text-align: center; }

/* Confirmation */
.done { text-align: center; padding: 3.5rem 1.5rem; display: grid; justify-items: center; gap: 0.6rem; }
.success-burst { position: relative; width: 5rem; height: 5rem; margin-bottom: var(--space-4); }
.success-mark { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; color: var(--ok); background: var(--ok-tint); box-shadow: 0 0 0 8px color-mix(in srgb, var(--ok-tint) 50%, transparent); animation: pop .6s cubic-bezier(.2,1.4,.4,1) both; }
.success-mark svg { width: 2.2rem; height: 2.2rem; }
.success-mark path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .5s .3s ease-out forwards; }
.success-burst .ray { position: absolute; left: 50%; top: 50%; width: 3px; height: 0.8rem; margin: -0.4rem 0 0 -1.5px; border-radius: 2px; background: var(--ok); opacity: 0;
  transform: rotate(var(--r)) translateY(-2.4rem); animation: ray .7s .35s ease-out forwards; }
.success-burst .ray:nth-child(even) { background: var(--accent); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes ray { 0% { opacity: 0; transform: rotate(var(--r)) translateY(-1.8rem) scaleY(.4); } 40% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--r)) translateY(-3.4rem) scaleY(1); } }
.done h2 { font-size: 1.75rem; }
.done .when-card { margin-top: var(--space-4); padding: 1rem 1.25rem; border-radius: 0.9rem; border: 1px solid var(--line); background: var(--surface); display: inline-flex; gap: 0.7rem; align-items: center; font-weight: 550; }
.done .when-card .icon { color: var(--accent); }
.done .actions { display: flex; gap: var(--space-2); justify-content: center; flex-wrap: wrap; margin-top: var(--space-4); }

/* Manage booking */
.ticket { padding: 0; overflow: hidden; }
.ticket .t-top { padding: var(--space-8); }
.ticket .t-bottom { padding: var(--space-6) var(--space-8) var(--space-8); border-top: 1px dashed var(--line-strong); background: color-mix(in srgb, var(--surface) 45%, var(--card)); }
.detail-list { display: grid; gap: 0.85rem; margin-top: var(--space-6); }
.detail-list > div { display: flex; gap: 0.8rem; align-items: flex-start; }
.detail-list .icon-tile { width: 2.2rem; height: 2.2rem; border-radius: 0.65rem; }
.detail-list .icon-tile .icon { width: 1rem; height: 1rem; }
.detail-list .k { font-size: 0.75rem; color: var(--faint); }
.detail-list .v { font-weight: 550; overflow-wrap: anywhere; }

/* Availability editor */
.avail-row { display: grid; grid-template-columns: 9rem 1fr; gap: var(--space-4); align-items: center; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.avail-row:last-child { border-bottom: 0; }
.avail-row:has(input[type=checkbox]:not(:checked)) input[type=text] { opacity: .45; }
@media (max-width: 40rem) { .avail-row { grid-template-columns: 1fr; gap: 0.5rem; } }

/* Integrations */
.integ-card { display: flex; flex-direction: column; gap: var(--space-4); }
.integ-card .foot { margin-top: auto; padding-top: var(--space-2); }
.status-dot { display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--ink-disabled); }
.status-dot.on { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-tint); }

/* Auth */
.auth { min-height: 70vh; display: grid; place-items: center; padding: 1rem 0; }
.auth .card { width: 100%; max-width: 25rem; padding: 2.5rem 2.25rem; }
.auth .brand-mark { width: 3rem; height: 3rem; border-radius: 0.9rem; background: var(--btn); display: grid; place-items: center; margin-bottom: var(--space-6); box-shadow: var(--shadow-lift), 0 0 2.5rem var(--glow); }
.auth .brand-mark::after { content: ''; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--accent); }
.auth h1 { font-size: 1.6rem; }

/* Error page */
.error-wrap { text-align: center; display: grid; justify-items: center; gap: var(--space-3); padding: var(--space-12) 0; }
.error-wrap .code { font-size: clamp(4rem, 12vw, 7rem); font-weight: 700; letter-spacing: -0.07em; line-height: 1; }

.hidden { display: none !important; }

@media (width < 40rem) {
  html { font-size: 93%; }
  .card { padding: var(--space-6); }
  .booker > section, .booker > form { padding: var(--space-6); }
  .container { padding-top: var(--space-6); padding-left: 1rem; padding-right: 1rem; }
  .topbar-inner { gap: var(--space-3); padding: 0.65rem 1rem; flex-wrap: wrap; }
  .topbar .nav { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; }
  .hide-sm, .topbar .actions .btn.hide-sm { display: none; }
  .hero { padding-top: var(--space-4); padding-bottom: var(--space-8); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
  .stats .stat:last-child { grid-column: 1 / -1; }
  .toasts { top: auto; bottom: 1rem; right: 1rem; }
  .ticket .t-top, .ticket .t-bottom { padding: var(--space-6); }
}

/* Motion off: keep every state change, drop the movement. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .bg-aurora span, .beam::after, .shimmer, .wordmark .mark::after, .pill .live { animation: none !important; }
  .shimmer { background: none; color: var(--ink); }
  .success-mark path { stroke-dashoffset: 0; }
  .success-burst .ray { display: none; }
}
@media print { .bg-fx, .topbar, .toasts, .theme-toggle { display: none !important; } }

/* Tabular figures (Inter 'tnum') wherever numbers should line up: slot times, calendar days,
   date boxes, stats, booking times and the chosen/confirmed time lines. */
.num, .slot, .day, .datebox .d, .stat .value, .selected-time, .when-card { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum'; }
