/* SparoLink kit. Hex values live only in :root. Inter is SIL OFL 1.1 (fonts/OFL.txt). */
@font-face { font-family: Inter; font-weight: 100 900; font-display: swap; src: url("fonts/inter-latin-wght-normal.260c81a4759b.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20B9, U+2122, U+2212, U+FEFF; }
@font-face { font-family: Inter; font-weight: 100 900; font-display: swap; src: url("fonts/inter-latin-ext-wght-normal.1ad231aac0a8.woff2") format("woff2");
  unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20C0, U+2C60-2C7F, U+A720-A7FF; }

@font-face { font-family: "Bricolage Grotesque"; font-weight: 400 800; font-display: swap; src: url("fonts/bricolage-latin-wght.ad33cbc6d232.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20B9, U+2122, U+2212, U+FEFF; }  /* headings on Join / Create */

:root {
  --page: #f3f6fb; --card: #fff; --soft: #eef2f9; --soft-2: #d9e3f3; --line: #e6ebf3;
  --navy: #0b1f4b; --blue: #1a66f0; --sky: #8fb8ff; --ice: #dce7fd;
  --ink: #14213d; --slate: #5a6a85; --coral: #c23f27; --coral-tint: #fbe3dc;
  --lilac: #6a54d6; --green: #1f6b45; --green-tint: #ddf1e6; --violet: #3e2f7a; --violet-tint: #ece7fb;
  --amber: #9a5c0e; --amber-tint: #fff2dc; --pink: #b0245a; --pink-tint: #fde6ee; --mint: #2fd38a;
  --av-0: linear-gradient(140deg, #6aa1ff, #1a5fe0); --av-1: linear-gradient(140deg, #ff9a7a, #dd5235); --av-2: linear-gradient(140deg, #a993ff, #6a4fd6);
  --av-3: linear-gradient(140deg, #5fd3a6, #1d9468); --av-4: linear-gradient(140deg, #ff8fb6, #cf3a78); --av-5: linear-gradient(140deg, #ffc46b, #d98410);
  --av-6: linear-gradient(140deg, #6fd6f0, #1c8ab3); --av-7: linear-gradient(140deg, #9aa6c6, #3d4c75);  /* avatars without a photo: one per person (tint) */
  --sp-0: #2f74f5; --sp-1: #1fb5a6; --sp-2: #7b5cf0; --sp-3: #f2734f; --sp-4: #f5a524; --sp-5: #ec5c9a;  /* Sparo avatar colours (profiles/sparos.py) */
  --sun: #ffc145; --teal: #1fa595;  /* Rooms and Registration: badge straps and strips */
  --glass-1: #ffffffb8; --glass-2: #ffffffa6; --glass-3: #ffffffb8; --glass-edge: #ffffffe6;  /* the frosted dock: white glass */
  --arc-1: #00d4ff; --arc-2: #7a73ff; --arc-3: #ffb84d; --arc-4: #ff5996;  /* gradient arcs: cyan to violet, amber to pink */
  --linkedin: #0a66c2; --ig-1: #f9ce34; --ig-2: #ee2a7b; --ig-3: #6228d7;
  --display: "Bricolage Grotesque", Inter, system-ui, sans-serif;  /* the display face: Join / Create headings and the pass */
  --r1: 4px; --r2: 6px; --r3: 10px; --tabs: calc(76px + env(safe-area-inset-bottom));
  --lift: 0 1px 2px rgb(11 31 75 / 5%), 0 6px 18px -12px rgb(11 31 75 / 25%);
  --press: inset 0 1px 0 rgb(255 255 255 / 22%), 0 2px 6px -2px rgb(26 102 240 / 45%);
}
* { box-sizing: border-box; margin: 0; }
::selection { background: var(--ice); color: var(--navy); }  /* selected text: the soft ice, never a hard blue block */
html { scrollbar-gutter: stable; -webkit-tap-highlight-color: transparent; }  /* no blue flash on tap (phones);  the scrollbar's room is always kept, so short and long pages line up and nothing jumps sideways */
[hidden] { display: none !important; }
body { background: var(--page); color: var(--ink); font: 400 13px/1.5 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration: none; }
h1 { font-size: 18px; font-weight: 500; letter-spacing: -.2px; }
h2 { font-size: 14px; font-weight: 500; margin-bottom: 12px; }
b { font-weight: 500; }
img { display: block; }
.sprite { display: none; }
svg.i { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.site-notice { padding: 9px 16px; background: var(--navy); color: var(--card); font-size: 12.5px; text-align: center; }  /* the console's announcement bar, on every page */
.app { max-width: 460px; margin: 0 auto; padding: 20px 20px calc(var(--tabs) + 24px); }
.muted { color: var(--slate); font-size: 12px; }
.grow { flex: 1; min-width: 0; }
.top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.mascot { width: 52px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r2); padding: 18px; }
.card + .card { margin-top: 12px; }
.end { display: flex; justify-content: flex-end; margin-top: 16px; }
.toast { background: var(--navy); color: var(--card); border-radius: var(--r2); padding: 10px 14px; margin-bottom: 12px; font-size: 12px; animation: up .2s ease-out; }
.toast.error::before { content: "!"; display: inline-grid; place-items: center; width: 16px; height: 16px; margin-right: 8px; border-radius: 50%; background: var(--coral); font-weight: 500; }  /* never a red slab */
/* What the server has to say (Django messages), on every page: a small white note that drops in at the top, a soft
   mark for its kind (coral !, green tick, blue i). It leaves by itself after 5 s, or at once when its x is tapped (a
   checkbox, so it works without JS). It floats over the top bar, never over the page's own words, so nothing shifts. */
.notes { position: fixed; z-index: 600; top: 8px; left: 12px; right: 12px; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.note { position: relative; display: flex; align-items: flex-start; gap: 10px; max-width: 380px; margin: 0; padding: 10px 38px 10px 10px; pointer-events: auto; cursor: pointer; font-weight: 400; border-radius: var(--r3); background: var(--card); color: var(--ink);
  font-size: 13px; line-height: 1.45; text-align: left; box-shadow: 0 0 0 1px var(--line), 0 14px 30px -14px rgb(11 31 75 / 35%);
  animation: note-in .35s cubic-bezier(.2, .8, .3, 1) backwards, note-out .4s ease-in 5s forwards; }
.note:has(:checked) { display: none; }
.note input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.note svg.i { position: absolute; right: 12px; top: 12px; width: 14px; height: 14px; margin: 0; color: var(--slate); }
.note:hover svg.i, .note:has(:focus-visible) svg.i { color: var(--ink); }
.note:hover { animation-play-state: paused; }  /* reading it keeps it there */
.note::before { content: "i"; display: grid; flex: none; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--ice); color: var(--blue); font-size: 12px; font-weight: 500; }
.note.error::before, .note.warning::before { content: "!"; background: var(--coral-tint); color: var(--coral); }
.note.success::before { content: "\2713"; background: var(--green-tint); color: var(--green); }
@keyframes note-in { from { opacity: 0; translate: 0 -12px; } }
@keyframes note-out { to { opacity: 0; translate: 0 -8px; visibility: hidden; } }

/* Controls: compact, solid, one soft shadow. Clay only on what you press. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 14px; border: 0; border-radius: var(--r1);
  background: var(--blue); color: var(--card); font: 500 12.5px Inter, system-ui, sans-serif; box-shadow: var(--press); cursor: pointer; white-space: nowrap; }
.btn.soft, .ib { background: var(--soft); color: var(--ink); box-shadow: none; }
.ib.bare { background: none; }  /* an icon on its own, no tile behind it */
.btn.danger { color: var(--coral); }
.btn.stop { background: var(--coral); color: var(--card); }  /* the one button that ends or leaves something, after its warning */
.btn:active, .ib:active { transform: translateY(1px); }
.wave:active .fd { scale: .92; }
.btn.full { width: 100%; }
.link { background: none; border: 0; padding: 0; color: var(--ink); font: 500 13px Inter, system-ui, sans-serif; cursor: pointer; }
.ib, .wave { width: 32px; height: 32px; border: 0; border-radius: var(--r1); display: grid; place-items: center; flex: none; cursor: pointer; }
/* Wave: the app's one wave gesture (kit/hand.html): a small violet line hand (18 px), tilted like a hello, no background
   and no words (its aria-label says it; Met's first visit adds a one-time tip).
   Still until tapped: then each finger dances in turn while short lines burst out (kit.burst). Once sent the hand calms to
   grey and settles, nothing more. Design study: mockups/met-wave/ (round 12, Line · Violet). */
.wave { position: relative; width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border-radius: 0; background: none; color: var(--arc-2); }
.wave.done { color: var(--slate); cursor: default; }
.fd { width: 18px; height: 18px; rotate: -16deg; overflow: visible; transition: rotate .4s cubic-bezier(.22, 1, .36, 1), color .4s; }
.fd path { fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.wave:not(.done):hover .fd { rotate: -24deg; }
.wave.done .fd { rotate: -4deg; }
/* the finger dance: the palm never moves; each finger lifts and bobs from its own base, index to little finger and back
   (alternate), one after another, like fingers on piano keys */
.fd .f { transform-box: view-box; }
.f1 { transform-origin: 8px 13px; } .f2 { transform-origin: 12px 9px; } .f3 { transform-origin: 16px 10.5px; } .f4 { transform-origin: 20px 8px; }
.wave.go .f { animation: dance .5s ease-in-out 2 alternate; }  /* only on tap */
.wave.go .f2 { animation-delay: .12s; } .wave.go .f3 { animation-delay: .24s; } .wave.go .f4 { animation-delay: .36s; }  /* after the shorthand, or it resets them */
/* The first-visit guide (tour.js): the page dims except the control being shown, and a small card with Sparo says what
   it does, a pointer towards it; dots for where you are, Skip and Next. One soft rise, still with reduced motion. */
.tour-back { position: fixed; z-index: 700; inset: 0; }
.tour-hole { position: fixed; z-index: 701; border-radius: var(--r3); box-shadow: 0 0 0 200vmax rgb(20 33 61 / 45%); pointer-events: none; transition: all .25s ease-out; }
.tour { position: fixed; z-index: 702; display: flex; gap: 10px; width: min(300px, calc(100vw - 24px)); padding: 12px 12px 10px; border-radius: var(--r3);
  background: var(--card); box-shadow: var(--lift); animation: up .25s ease-out; }
.tour::before { content: ""; position: absolute; left: var(--x); width: 12px; height: 12px; background: var(--card); translate: -50% 0; rotate: 45deg; }
.tour[data-side=below]::before { top: -6px; }
.tour[data-side=above]::before { bottom: -6px; }
.tour img { flex: none; width: 34px; height: 34px; }
.tour > div { flex: 1; min-width: 0; }
.tour p { margin: 2px 0 10px; color: var(--ink); font-size: 13.5px; line-height: 1.45; }
.tour-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.tour-foot { display: flex; align-items: center; gap: 12px; }
.tour-dots { display: flex; gap: 4px; margin-right: auto; }
.tour-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--soft-2); transition: width .2s; }
.tour-dots i.on { width: 14px; border-radius: 3px; background: var(--blue); }
.tour .link { color: var(--slate); font-size: 12.5px; }
.tour .btn { height: 30px; padding: 0 14px; border-radius: 15px; }
@media (prefers-reduced-motion: reduce) { .tour, .tour-hole { animation: none; transition: none; } }
.ray { position: fixed; z-index: 900; width: 2px; height: 6px; border-radius: 2px; pointer-events: none; }
.ray.c0 { background: var(--arc-1); } .ray.c1 { background: var(--arc-2); } .ray.c2 { background: var(--arc-3); } .ray.c3 { background: var(--arc-4); }
@keyframes dance { 0% { translate: 0 0; rotate: 0deg; } 45% { translate: 0 -2.4px; rotate: -7deg; } 100% { translate: 0 0; rotate: 0deg; } }
.switch { appearance: none; width: 32px; height: 20px; border: 0; border-radius: 10px; background: var(--soft-2); position: relative; flex: none; cursor: pointer; }
.switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--card); transition: transform .15s; box-shadow: 0 1px 2px rgb(11 31 75 / 25%); }
.switch[aria-checked="true"] { background: var(--blue); }
.switch[aria-checked="true"]::after { transform: translateX(12px); }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 0 20px 2px;
  mask: linear-gradient(90deg, rgb(0 0 0) calc(100% - 36px), transparent); }  /* the right edge fades: there is more to scroll */
.chip { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border: 0; border-radius: var(--r2); background: var(--card); color: var(--ink); font: 400 11.5px Inter, system-ui, sans-serif;
  white-space: nowrap; cursor: pointer; box-shadow: var(--lift); }
.chip.on { background: var(--ice); color: var(--navy); box-shadow: inset 0 0 0 1px var(--sky); }

/* Forms: Django field groups, pill choices, prefixed links, switch checkbox */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }
label, .label { font-size: 12px; font-weight: 500; color: var(--slate); margin-bottom: 6px; }
.field label { margin: 0; }
input, textarea { width: 100%; height: 36px; border: 1px solid transparent; border-radius: var(--r2); background: var(--soft); padding: 0 12px; color: var(--ink);
  font: 400 13px Inter, system-ui, sans-serif; }
textarea { height: auto; padding: 10px 14px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--slate); opacity: .7; }
input:-webkit-autofill { -webkit-text-fill-color: var(--ink); box-shadow: 0 0 0 40px var(--card) inset; transition: background-color 600000s; }  /* keep our look */
input:focus, textarea:focus { outline: none; border-color: var(--slate); background: var(--card); }  /* a crisp grey edge, never a blue glow */
.btn:focus-visible, .ib:focus-visible, .chip:focus-visible, .pills label:has(:focus-visible) { outline: 2px solid var(--soft-2); outline-offset: 2px; }  /* keyboard only: a quiet grey ring */
.pills > div { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label { display: inline-flex; align-items: center; height: 30px; margin: 0; padding: 0 12px; border-radius: var(--r2); background: var(--soft);
  color: var(--ink); font-size: 12.5px; font-weight: 400; cursor: pointer; }
.pills input { position: absolute; opacity: 0; pointer-events: none; width: 1px; }
.pills label:has(:checked) { background: var(--ice); color: var(--navy); box-shadow: inset 0 0 0 1px var(--sky); }
h2.next { margin-top: 20px; }
.affix { display: flex; align-items: center; gap: 2px; margin: 0 0 10px; padding-left: 12px; border-radius: var(--r2); background: var(--soft); color: var(--slate); font-weight: 400; }
.affix svg.i { margin-right: 6px; }
.affix span { font-size: 12.5px; white-space: nowrap; }
.affix input { padding-left: 1px; border: 0; background: none; }
.affix:focus-within { box-shadow: 0 0 0 1px var(--slate); background: var(--card); }
.hint { margin-top: 4px; }
.errorlist { list-style: none; padding: 0; margin: 6px 0 0; color: var(--coral); font-size: 12px; }
.inline { display: flex; gap: 8px; }
.join label { display: block; }

/* Lists */
.list { list-style: none; padding: 0; }
.row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; padding-top: 0; }
.who { flex: 1; min-width: 0; background: none; border: 0; padding: 0; text-align: left; color: inherit; font: inherit; cursor: pointer; }
.who b, .who span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who span { font-size: 12px; color: var(--slate); }
/* The person row (kit/person.html, Met and People here): the name shrinks first, then the bare links right after it */
.row .av { width: 44px; height: 44px; }
.row .who b { font-size: 14.5px; }
.row .who { cursor: pointer; }
.nm { display: flex; align-items: center; gap: 4px; min-width: 0; }
.nb { min-width: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.lnk { display: flex; flex: none; }
.lnk .ib { width: 24px; height: 24px; background: none; }
.lnk .i { width: 14px; height: 14px; }
.lnk [data-f=linkedin] { color: var(--linkedin); }
.lnk .ig { color: var(--ig-2); }
.act { display: flex; flex: none; }
.who .what { display: inline; font-weight: 500; }  /* where things stand leads the line under the name (kit.line) */
.what.got { color: var(--blue); }
.av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; flex: none;
  background: var(--av-0); color: var(--card); font-weight: 500; font-size: 13px; letter-spacing: .3px; text-shadow: 0 1px 2px rgb(11 31 75 / 20%); }
.av[data-t="1"] { background: var(--av-1); } .av[data-t="2"] { background: var(--av-2); } .av[data-t="3"] { background: var(--av-3); }
.av[data-t="4"] { background: var(--av-4); } .av[data-t="5"] { background: var(--av-5); } .av[data-t="6"] { background: var(--av-6); }
.av[data-t="7"] { background: var(--av-7); }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av.lg { width: 52px; height: 52px; font-size: 17px; }

/* The tab pages (Rooms, Met, Me, Settings) share one top: the title centred in the display face, a back arrow on its left
   and one control on its right, if any. List pages then have a bare search (a lens and words, no box) and one row with
   compact underline tabs on the left and a small segmented filter on the right. */
.page-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; min-height: 32px; margin: 0 2px 10px; }
.page-head > * { grid-row: 1; }
.page-head > :first-child:not(h1, h2) { grid-column: 1; justify-self: start; }
.page-head > :last-child:not(h1, h2) { grid-column: 3; justify-self: end; }
.page-head :is(h1, h2) { grid-column: 2; margin: 0; font: 700 21px/1.2 var(--display); letter-spacing: -.5px; text-align: center; }
.find { position: relative; display: block; margin-bottom: 6px; }
.find svg.i { position: absolute; left: 2px; top: 50%; width: 15px; height: 15px; translate: 0 -50%; color: var(--slate); pointer-events: none; }
.find input, .find input:focus { width: 100%; height: 36px; padding: 0 4px 0 25px; border: 0; border-radius: 0; background: none; box-shadow: none;
  color: var(--ink); font-size: 14px; outline: none; }  /* bare: just the lens and the words */
.find-open { width: 100%; height: 36px; padding: 0 4px 0 25px; border: 0; background: none; color: var(--slate); font: 400 14px Inter, system-ui, sans-serif; text-align: left; cursor: pointer; }  /* looks like the search; opens it */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.toolbar .utabs { margin: 0; border-bottom: 0; }
.toolbar .utabs button, .toolbar .utabs a { flex: none; height: 38px; padding: 0 10px; font-size: 13.5px; }
.toolbar .utabs [aria-selected=true]::after, .toolbar .utabs [aria-current=page]::after { left: 8px; right: 8px; }
.whose { display: flex; flex: none; padding: 2px; border-radius: var(--r2); background: var(--soft); }
.whose a, .whose button { display: flex; align-items: center; gap: 4px; height: 24px; padding: 0 7px; border: 0; border-radius: var(--r1); background: none; color: var(--slate);
  font: 500 11.5px Inter, system-ui, sans-serif; cursor: pointer; }
.whose a:hover, .whose button:hover { color: var(--ink); }
.whose [aria-current], .whose [aria-pressed=true] { background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.whose a:focus-visible, .whose button:focus-visible { outline: 2px solid var(--soft-2); outline-offset: 1px; }
.whose small { color: var(--slate); font-size: 11px; font-weight: 400; }
.whose[hidden] { display: none; }
@media (max-width: 360px) { .whose small { display: none; } .toolbar .utabs button, .toolbar .utabs a { padding: 0 8px; } }  /* small phones: the row still fits */

/* Underline tabs (Met, Rooms): words across the page, the chosen one in ink over a blue underline, a quiet count beside
   each (a coral number where someone waits on you, 10+ past ten). No backgrounds. */
.utabs { display: flex; margin: 0 -4px; border-bottom: 1px solid var(--line); }
.utabs button, .utabs a { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0;
  border: 0; background: none; color: var(--slate); font: 500 14px Inter, system-ui, sans-serif; cursor: pointer; }
.utabs [aria-selected=true], .utabs [aria-current=page] { color: var(--ink); }
.utabs [aria-selected=true]::after, .utabs [aria-current=page]::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: -1px; height: 2px; border-radius: 2px; background: var(--blue); }
.utabs button:focus-visible, .utabs a:focus-visible { outline: 2px solid rgb(20 33 61 / 25%); outline-offset: -2px; border-radius: var(--r1); }
.utabs small { color: var(--slate); font-size: 12px; font-weight: 400; }
.utabs .badge { color: var(--coral); font-size: 12px; font-weight: 500; }  /* plain coral number, no box; 10+ past ten */
.tab-empty { display: grid; justify-items: center; gap: 8px; padding: 48px 24px; text-align: center; }
.tab-empty p { max-width: 260px; color: var(--slate); font-size: 13px; }

@keyframes pop { from { scale: .6; } }  /* scale only: a paused animation never hides anything */
.empty { text-align: center; color: var(--slate); padding: 8px 0; }
.vis { display: flex; align-items: center; gap: 6px; color: var(--slate); font-size: 11.5px; }
.empty .sparo { width: 96px; margin: 0 auto 6px; }

/* Floating notes (toasts) over a page */
.float { position: fixed; z-index: 500; left: 12px; right: 12px; max-width: 436px; margin: 0 auto; }

/* Sheets (native <dialog>) */
.sheet { width: 100%; max-width: 460px; margin: auto auto 0; border: 0; border-radius: var(--r3) var(--r3) 0 0; padding: 22px 20px calc(20px + env(safe-area-inset-bottom));
  background: var(--card); color: var(--ink); box-shadow: 0 -12px 32px -12px rgb(11 31 75 / 30%);
  transition: translate .42s cubic-bezier(.22, 1, .36, 1), scale .42s cubic-bezier(.22, 1, .36, 1), opacity .3s, display .42s allow-discrete, overlay .42s allow-discrete; }
/* open: rises from the bottom edge and settles; close: sinks back the same way; the backdrop fades with it */
.sheet:not([open]) { translate: 0 100%; opacity: 0; }
@starting-style { .sheet[open] { translate: 0 100%; opacity: 0; } }
.sheet:focus { outline: none; }
.sheet::backdrop { background: rgb(11 31 75 / 35%); transition: background .3s, display .42s allow-discrete, overlay .42s allow-discrete; }
.sheet:not([open])::backdrop { background: transparent; }
@starting-style { .sheet[open]::backdrop { background: transparent; } }
@keyframes up { from { transform: translateY(24px); opacity: 0; } }
.sheet.center { text-align: center; }
@media (min-width: 560px) { .sheet { margin: auto; border-radius: var(--r3); box-shadow: 0 24px 48px -16px rgb(11 31 75 / 35%); } }  /* wide screens: a centred card, never on the edge */
@media (min-width: 560px) { .sheet:not([open]) { translate: 0 24px; scale: .97; } @starting-style { .sheet[open] { translate: 0 24px; scale: .97; } } }  /* the card lifts in */
/* The profile sheet: a banner, the avatar over it, who they are, their own words, who they want to meet, then connect */
.person { padding-top: 0; }
.p-banner { height: 96px; margin: 0 -20px; border-radius: var(--r3) var(--r3) 0 0; overflow: hidden;
  background: url("img/world.f9ecfa327fc1.svg") center / cover, linear-gradient(var(--ice), var(--soft)); }
.p-banner img { width: 100%; height: 100%; object-fit: cover; }
.p-av { width: 72px; height: 72px; margin: -36px 0 8px; font-size: 22px; box-shadow: 0 0 0 4px var(--card); }
.p-name { margin: 0; font-size: 19px; font-weight: 500; letter-spacing: -.3px; }
.p-handle { margin: 0; color: var(--slate); font-size: 12.5px; }
.p-handle:empty { display: none; }
.p-meta { margin: 2px 0 0; color: var(--slate); font-size: 12.5px; }
.p-meta [data-f="seen"]:not(:empty)::before { content: " · "; }
.p-about { margin: 12px 0 0; color: var(--ink); font-size: 13.5px; line-height: 1.55; overflow-wrap: anywhere; }
.p-about:not(.open) { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.p-about.open { overflow: hidden; }  /* while it eases open or shut */
.p-more { padding: 2px 0; border: 0; background: none; color: var(--blue); font: 500 13px Inter, system-ui, sans-serif; cursor: pointer; }
.p-more:hover { color: var(--navy); }
.p-k { margin: 18px 0 8px; color: var(--slate); font-size: 11.5px; font-weight: 500; }
.p-wants { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.p-wants span { padding: 5px 12px; border: 1px solid var(--line); border-radius: 99px; color: var(--ink); font-size: 12px; }  /* plain hairline pills, no highlight */
.p-contact { display: grid; margin-top: 16px; }  /* their email, only when they show it */
.p-contact a { display: flex; align-items: center; gap: 10px; height: 36px; color: var(--ink); font-size: 13px; text-decoration: none; }  /* no lines: space only */
.p-contact a:hover span { text-decoration: underline; }
.p-contact svg.i { flex: none; color: var(--slate); }
.p-contact span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-contact:has(a:not([hidden])) + .p-actions { margin-top: 8px; }
.p-actions { display: flex; gap: 8px; align-items: center; margin-top: 20px; }
.p-actions .btn { height: 40px; border-radius: var(--r2); box-shadow: none; outline: none; transition: filter .15s, background .15s; }
.p-actions .btn:first-child { flex: 1; }
.p-remove { display: block; margin: 14px auto 0; padding: 6px 10px; border: 0; border-radius: var(--r1); background: none; color: var(--slate); font: 500 12.5px Inter, system-ui, sans-serif; cursor: pointer; }  /* the host, in their room */
.p-remove:hover, .p-remove.sure { color: var(--coral); }
.p-remove.sure { background: var(--coral-tint); }
.p-in { background: var(--linkedin); }  /* LinkedIn in its own blue */
.p-in:hover { filter: brightness(.92); }
.p-ig { border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.p-ig svg.i { color: var(--ig-2); }
.p-ig:hover { background: var(--page); }
.p-actions .btn:focus-visible { outline: 2px solid var(--soft-2); outline-offset: 2px; }  /* keyboard only, a quiet grey ring */
.prof { display: flex; align-items: center; gap: 12px; }
.prof h2 { margin: 0; }
.looking { margin: 14px 0; font-size: 12px; color: var(--slate); }
.looking [data-f="seen"]:not(:empty)::before { content: " · "; }
.actions { display: flex; gap: 8px; align-items: center; }
.center .actions { margin-top: 16px; }
.art { width: 132px; margin: 0 auto 8px; }
.center .muted { margin: 4px 0 16px; }
.qr { width: 196px; margin: 0 auto; border-radius: var(--r2); }
.code { font-size: 22px; font-weight: 500; letter-spacing: 6px; margin-top: 8px; }

/* Message pages (ended room, 404, 500, empty Met) */
.hero { text-align: center; padding: 32px 0 8px; }
.hero .sparo { width: 150px; margin: 0 auto 14px; }
.hero.small .sparo { width: 104px; }
.hero .actions { justify-content: center; }
.hero h1 + p, .hero h2 + p { margin-top: 6px; }
.hero h2 { font-size: 18px; font-weight: 500; letter-spacing: -.3px; }
/* 404: a thin bar fills while the page counts down, then the meta refresh takes them home */
.hero .homeward { margin: 18px auto 0; font-size: 12px; }
.homeward i { display: block; width: 120px; height: 2px; margin: 8px auto 0; border-radius: 1px; background: var(--line); overflow: hidden; }
.homeward i::after { content: ""; display: block; height: 100%; background: var(--blue); transform-origin: left; animation: homeward 8s linear both; }
@keyframes homeward { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero p { color: var(--slate); font-size: 14px; max-width: 320px; margin: 6px auto 22px; }
.google { padding: 0 20px; background: var(--card); box-shadow: var(--lift); }
.google svg { width: 16px; height: 16px; }


/* Bottom tabs: a small frosted ticket floating over the page (chosen as "6 · Aurora frost" in mockups/tabbar/ticket.html):
   white frosted glass the page blurs through, and Join / Create on its own stub, a violet + square cut off by two notches
   and a solid hairline, like the Join / Create passes. Icons only; the current tab turns violet with a small dot under it.
   The names stay for screen readers (.lbl). --tabs is its height plus its gap, so pages and toasts keep clear of it. */
.tabs { --n: 54px; position: fixed; z-index: 600; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); translate: -50% 0; display: flex; align-items: center;
  width: min(calc(100% - 64px), 270px); height: 50px; padding-right: 6px; border-radius: 14px;
  background: linear-gradient(100deg, var(--glass-1), var(--glass-2) 45%, var(--glass-3)); backdrop-filter: blur(16px) saturate(1.6); -webkit-backdrop-filter: blur(16px) saturate(1.6);
  box-shadow: inset 0 0 0 1px var(--glass-edge), 0 0 0 1px var(--line), 0 14px 28px -16px rgb(11 31 75 / 45%);
  --cuts: radial-gradient(circle 6px at var(--n) 0, #0000 98%, #000), radial-gradient(circle 6px at var(--n) 100%, #0000 98%, #000), radial-gradient(circle 6px at 100% 50%, #0000 98%, #000);  /* the tear notches by the stub, and one cut on the right edge */
  -webkit-mask: var(--cuts); -webkit-mask-composite: source-in;
  mask: var(--cuts); mask-composite: intersect; }
.tabs::before { content: ""; position: absolute; left: var(--n); top: 8px; bottom: 8px; width: 1px; background: var(--line); }  /* the tear line, solid */
.tabs a { position: relative; flex: 1; display: grid; place-items: center; height: 40px; color: var(--slate); transition: color .25s; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--arc-2); }
.tabs a.on::after { content: ""; position: absolute; bottom: 0; width: 4px; height: 4px; border-radius: 50%; background: var(--arc-2); }
.tabs a:first-child { flex: none; width: var(--n); }  /* the stub: Join / Create, always a violet + */
.tabs a:first-child svg.i { box-sizing: content-box; padding: 7px; border-radius: 10px; background: var(--arc-2); color: var(--card); transition: box-shadow .25s; }
.tabs a:first-child.on::after { display: none; }
.tabs a:first-child.on svg.i { box-shadow: 0 0 0 3px var(--glass-edge), 0 0 0 5px var(--arc-2); }
.tabs a:focus-visible { outline: 2px solid rgb(20 33 61 / 25%); outline-offset: -2px; }
.tabs svg.i { width: 18px; height: 18px; flex: none; }
.tabs .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }  /* read out, not shown */
@keyframes rise { from { opacity: 0; translate: 0 28px; } }
@supports (animation-timeline: view()) { .rise { animation: rise linear both; animation-timeline: view(); animation-range: entry 0px entry 160px; } }

/* Match: confetti bursts out from behind Sparo when both of you wave */
.burst { position: absolute; left: 50%; top: 88px; }
.burst i { position: absolute; width: 7px; height: 11px; border-radius: 2px; background: var(--coral); opacity: 0;
  animation: confetti 1.1s cubic-bezier(.2, .7, .4, 1) .15s; }
.burst i:nth-child(even) { background: var(--blue); }
.burst i:nth-child(3n) { background: var(--sky); }
.burst i:nth-child(2) { rotate: 45deg; } .burst i:nth-child(3) { rotate: 90deg; } .burst i:nth-child(4) { rotate: 135deg; }
.burst i:nth-child(5) { rotate: 180deg; } .burst i:nth-child(6) { rotate: 225deg; } .burst i:nth-child(7) { rotate: 270deg; }
.burst i:nth-child(8) { rotate: 315deg; }
@keyframes confetti { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-96px) rotate(240deg); } }

/* Pages cross-fade into each other; the tab bar stays put */
@view-transition { navigation: auto; }
.tabs { view-transition-name: tabs; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { animation: none !important; transition: none !important; }
  @view-transition { navigation: none; }
}

/* The cropper (kit/crop.html + crop.js; Me, and room covers): drag to move, slide or scroll to zoom; the round frame shows
   how your photo will sit */
.crop h3 { font-size: 16px; font-weight: 500; }
.crop .sub { margin: 2px 0 12px; color: var(--slate); font-size: 12.5px; }
.crop-stage { position: relative; overflow: hidden; width: 100%; border-radius: var(--r2); background: var(--soft); touch-action: none; user-select: none; cursor: grab; }
.crop-stage:active { cursor: grabbing; }
.crop-stage.round { width: min(100%, 280px); margin: 0 auto; }
.crop-stage img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; pointer-events: none; }
.crop-stage.round::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 999px rgb(255 255 255 / 55%), inset 0 0 0 2px var(--card); pointer-events: none; }
.crop-zoom { display: flex; align-items: center; gap: 10px; margin: 14px 4px 0; color: var(--slate); }
.crop-zoom input, .crop-zoom input:focus { height: 20px; padding: 0; border: 0; background: none; accent-color: var(--blue); }
.crop-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
