/* The Social Kit's own styles: the pieces every social page shares. Colours come from tokens (tokens.css) and from
   the page's --c (its circle). Two themes: paper (light pages) and night (dark pages). */

/* ---------- the calendar ---------- */
.kit-cal { --kit-event: #1e9e57; --kit-rsvp: #c8263f; --kit-ink: #13233f; --kit-dim: #8592a8; --kit-line: rgba(19, 35, 63, .12); --kit-panel: rgba(255, 255, 255, .6); --kit-off: #c3cad6;
  display: grid; gap: 8px; padding: 12px; border: 1px solid var(--kit-line); border-radius: 12px; background: var(--kit-panel); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: var(--kit-ink); }
.kit-cal.is-night { --kit-event: #3fe08a; --kit-rsvp: #ff5a78; --kit-ink: #eaf1ff; --kit-dim: #8fa3bd; --kit-line: rgba(143, 227, 255, .2); --kit-panel: rgba(8, 12, 22, .72); --kit-off: #4a5870; }
.kit-cal-head { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; align-items: center; text-align: center; }
.kit-cal-head b { font: 600 16px/1.2 Inter, system-ui, sans-serif; }
.kit-cal-nav { width: 40px; height: 40px; border: 1px solid var(--kit-line); border-radius: 10px; background: transparent; color: inherit; font-size: 20px; cursor: pointer; transition: background .15s ease; }
.kit-cal-nav:hover { background: color-mix(in srgb, var(--c, #1d8fc4) 12%, transparent); }
.kit-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; text-align: center; }
.kit-cal-grid small { padding: 4px 0; color: var(--kit-dim); font: 700 10px/1 ui-monospace, Menlo, monospace; }
.kit-cal-day { position: relative; height: 40px; padding: 0; border: 0; border-radius: 9px; background: transparent; color: inherit; font: 500 15px/1 Inter, system-ui, sans-serif; cursor: pointer; transition: background .15s ease, transform .12s ease; }
.kit-cal-day:hover:not(:disabled):not(.is-event):not(.is-rsvp):not(.is-on) { background: color-mix(in srgb, var(--c, #1d8fc4) 12%, transparent); }
.kit-cal-day.is-event:hover, .kit-cal-day.is-rsvp:hover, .kit-cal-day.is-on:hover { filter: brightness(1.08); }
.kit-cal-day:active:not(:disabled) { transform: scale(.92); }
.kit-cal-day.is-today { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--kit-ink) 35%, transparent); }
.kit-cal-day.is-on { background: var(--c, #1d8fc4); color: #fff; font-weight: 700; }
.kit-cal-day:disabled { color: var(--kit-off); cursor: default; }
.kit-cal-day.is-after { text-decoration: line-through; color: color-mix(in srgb, var(--kit-rsvp) 45%, transparent); }
.kit-cal-day.is-event { background: var(--kit-event); color: #fff; font-weight: 700; }
.kit-cal-day.is-rsvp { background: var(--kit-rsvp); color: #fff; font-weight: 700; }
.kit-cal-day.is-event.is-rsvp { background: linear-gradient(135deg, var(--kit-rsvp) 50%, var(--kit-event) 50%); }
.kit-cal-day.is-between { background: color-mix(in srgb, var(--kit-rsvp) 9%, transparent); }
.kit-cal-day.is-event:disabled, .kit-cal-day.is-rsvp:disabled { color: #fff; }
.kit-cal.is-night .kit-cal-day.is-event { box-shadow: 0 0 14px color-mix(in srgb, var(--kit-event) 60%, transparent); color: #04121c; }
.kit-cal.is-night .kit-cal-day.is-rsvp { box-shadow: 0 0 14px color-mix(in srgb, var(--kit-rsvp) 60%, transparent); }
/* a month of what is on: dots under the days that have something */
.kit-cal.is-view .kit-cal-day { height: 44px; padding-bottom: 8px; }
.kit-cal.is-view .kit-cal-day.is-empty { color: var(--kit-dim); cursor: default; }
.kit-cal.is-view .kit-cal-day.is-past { opacity: .55; }
.kit-cal.is-view .kit-cal-day.has-marks { font-weight: 700; }
.kit-cal-dots { position: absolute; left: 0; right: 0; bottom: 6px; display: flex; justify-content: center; gap: 3px; }
.kit-cal-dots u, .kit-cal-key u { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--kit-event); text-decoration: none; }
.kit-cal u.is-rsvp { background: var(--kit-rsvp); } .kit-cal u.is-mine { background: var(--c, #1d8fc4); box-shadow: 0 0 0 2px color-mix(in srgb, var(--c, #1d8fc4) 30%, transparent); }
.kit-cal.is-view .kit-cal-day.is-on .kit-cal-dots u { background: #fff; box-shadow: none; }
.kit-cal-key { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 2px 0 0; color: var(--kit-dim); font-size: 12.5px; }
.kit-cal-key span { display: inline-flex; align-items: center; gap: 6px; } .kit-cal-key u { width: 10px; height: 10px; border-radius: 3px; }

/* ---------- time: three square buttons ---------- */
.kit-time { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) minmax(0, 1fr); gap: 6px; align-items: center; }
.kit-time-part { min-height: 46px; padding: 0 8px; border: 1px solid rgba(19, 35, 63, .18); border-radius: 10px; background: #fff; color: #13233f; font: 600 17px/1 Inter, system-ui, sans-serif; font-variant-numeric: tabular-nums; cursor: pointer;
  transition: border-color .15s ease, transform .12s ease; }
.kit-time-part:hover { border-color: var(--c, #1d8fc4); } .kit-time-part:active { transform: scale(.96); }
.kit-time-part.is-ampm { font-size: 15px; letter-spacing: .04em; }
.kit-time-sep { font: 700 17px/1 Inter, system-ui, sans-serif; opacity: .6; }
@media (prefers-reduced-motion: reduce) { .kit-cal-day, .kit-time-part { transition: none; } }

/* ---------- finding a place: one search box, one map, one list ---------- */
.kit-places { --c: #1d8fc4; --kp-ink: #13233f; --kp-dim: #5d6c84; --kp-line: rgba(19, 35, 63, .14); --kp-card: #fff; --kp-field: #fff; display: grid; gap: 10px; min-width: 0; color: var(--kp-ink); }
.kit-places.is-night { --kp-ink: #eef4ff; --kp-dim: #9fb0c9; --kp-line: rgba(143, 227, 255, .2); --kp-card: rgba(12, 18, 32, .82); --kp-field: rgba(8, 12, 22, .8); }
.kit-places-q { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--kp-line); border-radius: 12px; background: var(--kp-field); color: var(--kp-ink); font: 16px/1.2 Inter, system-ui, sans-serif; transition: border-color .2s ease, box-shadow .2s ease; }
.kit-places-q::placeholder { color: var(--kp-dim); }
.kit-places-q:focus { outline: none; border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent); }
.kit-places-radii { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.kit-places-radii small { color: var(--kp-dim); font: 700 10px/1 ui-monospace, Menlo, monospace; letter-spacing: .14em; text-transform: uppercase; margin-right: 2px; }
.kit-chip { min-height: 38px; padding: 0 12px; border: 1px solid var(--kp-line, rgba(19, 35, 63, .14)); border-radius: 10px; background: var(--kp-card, #fff); color: inherit; font: 600 14px/1 Inter, system-ui, sans-serif; cursor: pointer; transition: transform .12s ease, border-color .15s ease; }
.kit-chip.is-on { border-color: var(--c); background: var(--c); color: #fff; } .kit-chip:active { transform: scale(.95); }
.kit-places-map { height: 220px; border: 1px solid var(--kp-line); border-radius: 12px; overflow: hidden; background: color-mix(in srgb, var(--c) 6%, var(--kp-card)); z-index: 0; }
.kit-places.is-night .kit-places-map { height: 240px; }
.kit-pin { display: grid; place-items: center; width: 22px; height: 22px; margin: 4px; border: 2px solid #fff; border-radius: 50%; background: var(--pc, #1d8fc4); box-shadow: 0 3px 10px rgba(0, 0, 0, .3); font-size: 12px; line-height: 1; transition: transform .2s cubic-bezier(.16, 1, .3, 1); }
.kit-pin.is-open { background: #fff; border-color: var(--pc, #1d8fc4); }
.kit-pin.is-partner { width: 28px; height: 28px; margin: 1px; background: #ffd24a; border-color: #fff; }
.kit-pin.is-big { transform: scale(1.35); box-shadow: 0 0 0 5px color-mix(in srgb, var(--pc, #1d8fc4) 30%, transparent), 0 6px 16px rgba(0, 0, 0, .35); }
.kit-places-bar { position: relative; display: grid; gap: 10px; padding: 12px 40px 12px 14px; border: 1px solid var(--c); border-radius: 12px; background: var(--kp-card); box-shadow: 0 10px 28px color-mix(in srgb, var(--c) 22%, transparent); animation: kit-rise .3s cubic-bezier(.16, 1, .3, 1) both; }
.kit-places-bar-text { display: grid; gap: 2px; min-width: 0; }
.kit-places-bar-text small { color: var(--c); font: 700 10.5px/1.2 ui-monospace, Menlo, monospace; letter-spacing: .12em; text-transform: uppercase; }
.kit-places-bar-text b { font: 600 17px/1.25 "Source Serif 4", Georgia, serif; overflow-wrap: anywhere; } .kit-places-bar-text span { color: var(--kp-dim); font-size: 13.5px; overflow-wrap: anywhere; }
.kit-places-bar-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.kit-places-bar-x { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: var(--kp-dim); font-size: 20px; cursor: pointer; }
.kit-btn { min-height: 42px; padding: 0 14px; border: 1px solid var(--kp-line, rgba(19, 35, 63, .14)); border-radius: 10px; background: transparent; color: inherit; font: 600 15px/1 Inter, system-ui, sans-serif; cursor: pointer; transition: transform .12s ease, box-shadow .2s ease; }
.kit-btn.is-main { border-color: var(--c); background: var(--c); color: #fff; box-shadow: 0 8px 20px color-mix(in srgb, var(--c) 30%, transparent); } .kit-btn:active { transform: scale(.96); }
.kit-link { border: 0; background: none; padding: 4px 0; color: var(--c); font: 600 14px/1 Inter, system-ui, sans-serif; cursor: pointer; }
.kit-places-list { display: grid; gap: 14px; min-width: 0; }
.kit-places-note { margin: 0; color: var(--kp-dim); font-size: 14.5px; line-height: 1.45; }
.kit-shelf { display: grid; gap: 8px; min-width: 0; }
.kit-shelf-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.kit-shelf-head b { font: 600 17px/1.2 "Source Serif 4", Georgia, serif; } .kit-shelf-head small { color: var(--kp-dim); font-size: 12.5px; } .kit-shelf-head .kit-link { margin-left: auto; }
.kit-place { --pc: var(--c); position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; border: 1px solid var(--kp-line); border-radius: 12px; background: var(--kp-card); overflow: hidden;
  animation: kit-rise .35s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(var(--i, 0) * 30ms); transition: border-color .15s ease, box-shadow .2s ease; }
.kit-place::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--pc); }
.kit-place:hover { border-color: var(--pc); box-shadow: 0 8px 22px color-mix(in srgb, var(--pc) 18%, transparent); }
.kit-place.is-partner { border-color: #e2a72e; } .kit-place.is-partner::before { background: linear-gradient(#ffd24a, #e2a72e); }
.kit-place.is-open::before { background: repeating-linear-gradient(var(--pc) 0 5px, transparent 5px 9px); }
.kit-place-main { display: grid; gap: 4px; min-width: 0; padding: 11px 12px 11px 16px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.kit-place-main:active { background: color-mix(in srgb, var(--pc) 8%, transparent); }
.kit-place-top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; } .kit-place-top b { font: 600 16px/1.25 Inter, system-ui, sans-serif; overflow-wrap: anywhere; }
.kit-place-main small { color: var(--kp-dim); font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; }
.kit-place-deal { color: #8a5d00; font: 500 13.5px/1.35 Inter, system-ui, sans-serif; overflow-wrap: anywhere; } .kit-places.is-night .kit-place-deal { color: #ffe08a; }
.kit-tag { padding: 3px 7px; border-radius: 7px; background: color-mix(in srgb, var(--pc) 14%, transparent); color: inherit; font: 600 11.5px/1.2 Inter, system-ui, sans-serif; font-style: normal; }
.kit-tag.is-partner { background: #ffd24a; color: #3a2a00; } .kit-tag.is-live { background: #1e9e57; color: #fff; }
.kit-place-page { display: grid; place-items: center; padding: 0 12px; border-left: 1px solid var(--kp-line); color: var(--c); font: 600 13px/1 Inter, system-ui, sans-serif; text-decoration: none; white-space: nowrap; }
.kit-place-create { display: grid; gap: 4px; padding: 13px 14px; border: 1px dashed var(--c); border-radius: 12px; background: color-mix(in srgb, var(--c) 6%, transparent); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.kit-place-create b { font: 600 15.5px/1.3 Inter, system-ui, sans-serif; overflow-wrap: anywhere; } .kit-place-create small { color: var(--kp-dim); font-size: 13px; }
@keyframes kit-rise { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .kit-place, .kit-places-bar { animation: none; } }

/* ---------- effects ---------- */
.kit-confetti { position: fixed; inset: 0; z-index: 2147483600; pointer-events: none; overflow: hidden; }
.kit-confetti i { position: absolute; top: -24px; width: var(--z, 14px); height: var(--z, 14px); opacity: 0; animation: kit-confetti var(--s, 2s) cubic-bezier(.2, .7, .3, 1) var(--d, 0s) forwards; }
.kit-confetti svg { display: block; width: 100%; height: 100%; }
@keyframes kit-confetti { 0% { opacity: 1; transform: translate3d(0, 0, 0) rotate(0); } 100% { opacity: 0; transform: translate3d(var(--x, 0), 105vh, 0) rotate(var(--r, 360deg)); } }
.kit-ripple { position: fixed; z-index: 2147483000; border-radius: 50%; pointer-events: none; border: 2px solid var(--rc, #1d8fc4); opacity: .6; transform: scale(.1); animation: kit-ripple .65s cubic-bezier(.16, 1, .3, 1) forwards; }
@keyframes kit-ripple { to { transform: scale(1); opacity: 0; } }
.kit-fx-glow { animation: kit-glow .9s ease-out; }
@keyframes kit-glow { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c, #1d8fc4) 70%, transparent); } 40% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--c, #1d8fc4) 30%, transparent), 0 0 28px color-mix(in srgb, var(--c, #1d8fc4) 60%, transparent); } 100% { box-shadow: 0 0 0 16px transparent; } }
.kit-fx-push { animation: kit-push .26s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes kit-push { 0% { transform: scale(1); } 40% { transform: scale(.94); } 100% { transform: scale(1); } }
.kit-fx-shake { animation: kit-shake .42s ease; }
@keyframes kit-shake { 0%, 100% { transform: translateY(0); } 20% { transform: translateY(-3px) rotate(-1.2deg); } 40% { transform: translateY(2px) rotate(1.2deg); } 60% { transform: translateY(-2px) rotate(-.8deg); } 80% { transform: translateY(1px) rotate(.6deg); } }
.kit-fx-poof { animation: kit-poof .32s ease forwards; pointer-events: none; }
@keyframes kit-poof { to { opacity: 0; transform: scale(.9); filter: blur(4px); } }

/* ---------- buttons ---------- */
.kit-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.kit-btn small { font-weight: 500; opacity: .8; }
.kit-btn.is-primary { border-color: var(--c, #1d8fc4); background: var(--c, #1d8fc4); color: #fff; }
.kit-btn.is-quiet { min-height: 36px; padding: 0 6px; border-color: transparent; color: var(--c, #1d8fc4); }
.kit-btn.is-danger { border-color: #c8263f; color: #c8263f; }
.kit-btn.is-ai { border-color: #e2a72e; background: linear-gradient(135deg, rgba(255, 210, 74, .22), rgba(255, 62, 165, .12)); }
.kit-btn.is-pay { border-color: #635bff; background: #635bff; color: #fff; }
.kit-btn.is-verify { border-color: #1e9e57; color: #1e9e57; }
.kit-btn.is-icon { width: 44px; min-height: 44px; padding: 0; }
.kit-btn.is-busy { opacity: .65; cursor: progress; }
.kit-btn-ai { font-style: normal; }

/* ---------- loaders ---------- */
.kit-loader { display: grid; place-items: center; min-height: 64px; color: var(--c, #1d8fc4); }
.kit-loader.is-mark svg { width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; animation: kit-breathe 1.6s ease-in-out infinite; }
@keyframes kit-breathe { 0%, 100% { transform: scale(.92); opacity: .55; } 50% { transform: scale(1.04); opacity: 1; } }
.kit-loader.is-ball { position: relative; width: 120px; height: 34px; margin: 0 auto; min-height: 0; }
.kit-loader.is-ball i { position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid currentColor; box-shadow: inset -3px -3px 0 color-mix(in srgb, currentColor 18%, transparent); animation: kit-roll 1.1s cubic-bezier(.5, 0, .5, 1) infinite alternate; }
.kit-loader.is-ball u { position: absolute; left: 6px; right: 6px; bottom: 6px; height: 2px; border-radius: 2px; background: color-mix(in srgb, currentColor 25%, transparent); }
@keyframes kit-roll { to { transform: translateX(98px) rotate(360deg); } }
.kit-loader.is-line { min-height: 0; height: 3px; border-radius: 3px; background: color-mix(in srgb, currentColor 14%, transparent); overflow: hidden; }
.kit-loader.is-line i { display: block; width: 40%; height: 100%; border-radius: 3px; background: currentColor; box-shadow: 0 0 12px currentColor; animation: kit-run 1s ease-in-out infinite; }
@keyframes kit-run { from { transform: translateX(-110%); } to { transform: translateX(280%); } }

/* ---------- skeletons ---------- */
.kit-skel { display: grid; gap: 10px; }
.kit-skel-item { display: grid; gap: 8px; padding: 12px; border-radius: 12px; background: color-mix(in srgb, currentColor 5%, transparent); animation: kit-rise .35s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(var(--i, 0) * 60ms); }
.kit-skel.is-row .kit-skel-item { grid-template-columns: 36px minmax(0, 1fr); align-items: center; } .kit-skel.is-text .kit-skel-item { padding: 0; background: none; }
.kit-skel i { display: block; height: 12px; width: 55%; border-radius: 6px; background: linear-gradient(100deg, color-mix(in srgb, currentColor 8%, transparent) 30%, color-mix(in srgb, currentColor 18%, transparent) 50%, color-mix(in srgb, currentColor 8%, transparent) 70%) 0 0 / 220% 100%; animation: kit-shine 1.2s linear infinite; }
.kit-skel i.is-wide { width: 85%; } .kit-skel i.is-art { height: 96px; width: 100%; border-radius: 10px; } .kit-skel i.is-dot { width: 36px; height: 36px; border-radius: 50%; }
@keyframes kit-shine { from { background-position: 150% 0; } to { background-position: -50% 0; } }
@media (prefers-reduced-motion: reduce) { .kit-loader svg, .kit-loader i, .kit-skel i, .kit-skel-item { animation: none; } }

/* ---------- layers: everything that opens over a page ---------- */
.kit-layer { position: fixed; inset: 0; display: grid; pointer-events: none; }
.kit-layer-veil { position: absolute; inset: 0; background: rgba(3, 7, 16, .62); -webkit-backdrop-filter: blur(12px) saturate(1.1); backdrop-filter: blur(12px) saturate(1.1); opacity: 0; transition: opacity .24s ease; pointer-events: auto; }
.kit-layer-panel { position: relative; align-self: end; justify-self: center; width: 100%; max-width: 520px; max-height: 100dvh; overflow-y: auto; overscroll-behavior: contain; padding: 14px 16px calc(env(safe-area-inset-bottom, 0px) + 18px);
  opacity: 0; transform: translateY(26px) scale(.98); transition: opacity .26s ease, transform .34s cubic-bezier(.16, 1.2, .3, 1); pointer-events: auto; }
.kit-layer.is-open .kit-layer-veil { opacity: 1; } .kit-layer.is-open .kit-layer-panel { opacity: 1; transform: none; }
@media (min-width: 760px) { .kit-layer-panel { align-self: center; } .kit-layer.is-sheet .kit-layer-panel { justify-self: end; align-self: stretch; max-width: 460px; transform: translateX(28px); } .kit-layer.is-sheet.is-open .kit-layer-panel { transform: none; } }
.kit-layer-body.is-next { animation: kit-rise .3s cubic-bezier(.16, 1, .3, 1) both; } .kit-layer-body.is-back { animation: kit-fall .3s cubic-bezier(.16, 1, .3, 1) both; }
.kit-layer-body.is-up { animation: kit-rise .32s cubic-bezier(.16, 1, .3, 1) both; } .kit-layer-body.is-down { animation: kit-fall .32s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes kit-fall { from { opacity: 0; transform: translateY(-10px); } }
.kit-layer-x { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 12px; background: rgba(10, 16, 28, .7); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.kit-layer-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
/* the avatar view */
.kit-layer.is-deck .kit-layer-body { display: grid; gap: 12px; justify-items: center; }
.kit-deck-head { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; width: min(360px, 88vw); color: #fff; }
.kit-deck-trail { margin: 0; min-width: 0; font: 500 14px/1.3 Inter, system-ui, sans-serif; color: #b9c6dc; overflow-wrap: anywhere; } .kit-deck-trail b { color: #fff; font: 600 17px/1.2 "Source Serif 4", Georgia, serif; }
.kit-deck-count { color: #9fb0c9; font: 600 12px/1 ui-monospace, Menlo, monospace; letter-spacing: .08em; white-space: nowrap; }
.kit-deck-stage { display: grid; justify-items: center; min-height: 320px; }
.kit-deck-stage.is-many { touch-action: pan-x pinch-zoom; }
.kit-deck-nav { display: flex; gap: 10px; }
.kit-deck-btn { display: grid; place-items: center; width: 56px; height: 46px; border: 1px solid rgba(255, 255, 255, .24); border-radius: 12px; background: rgba(10, 16, 28, .7); color: #fff; cursor: pointer; transition: transform .12s ease, border-color .2s ease; }
.kit-deck-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.kit-deck-btn:hover:not(:disabled) { border-color: #4be3ff; } .kit-deck-btn:active:not(:disabled) { transform: scale(.94); } .kit-deck-btn:disabled { opacity: .35; cursor: default; }
.kit-deck-page { color: #9fe9ff; font: 600 14px/1 Inter, system-ui, sans-serif; text-decoration: none; padding: 6px; } .kit-deck-none { color: #dfe8f7; }
/* a sheet */
.kit-layer.is-sheet .kit-layer-panel { padding: 0; } .kit-layer.is-sheet .kit-layer-body { min-height: 40dvh; padding: 16px 16px calc(env(safe-area-inset-bottom, 0px) + 20px); border-radius: 18px 18px 0 0; background: #fff; color: #13233f; box-shadow: 0 -18px 50px rgba(0, 0, 0, .35); }
@media (min-width: 760px) { .kit-layer.is-sheet .kit-layer-body { min-height: 100%; border-radius: 0; } }
.kit-sheet-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: start; margin-bottom: 12px; } .kit-sheet-head h2 { margin: 0; font: 600 22px/1.2 "Source Serif 4", Georgia, serif; overflow-wrap: anywhere; }
.kit-sheet-kicker { margin: 0 0 4px; color: var(--c, #1d8fc4); font: 700 10.5px/1 ui-monospace, Menlo, monospace; letter-spacing: .14em; text-transform: uppercase; }
.kit-layer.is-sheet .kit-layer-x { border-color: rgba(19, 35, 63, .16); background: #fff; color: #13233f; }
/* a photo */
.kit-layer.is-lightbox .kit-layer-veil { background: rgba(0, 0, 0, .9); } .kit-layer.is-lightbox .kit-layer-panel { max-width: none; align-self: center; }
.kit-layer.is-lightbox .kit-layer-body { display: grid; gap: 10px; justify-items: center; } .kit-layer.is-lightbox .kit-layer-x { justify-self: end; }
.kit-lightbox-media { max-width: 100%; max-height: 78dvh; border-radius: 10px; } .kit-lightbox-cap { margin: 0; color: #dfe8f7; font-size: 14px; text-align: center; overflow-wrap: anywhere; }
/* a notice */
.kit-toast { position: fixed; left: 16px; right: 16px; bottom: calc(env(safe-area-inset-bottom, 0px) + 84px); z-index: 2147483200; display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 460px; margin: 0 auto; padding: 12px 14px;
  border: 1px solid rgba(143, 227, 255, .3); border-radius: 12px; background: rgba(8, 12, 22, .94); color: #fff; font: 500 15px/1.35 Inter, system-ui, sans-serif; box-shadow: 0 14px 40px rgba(0, 0, 0, .45); opacity: 0; transform: translateY(10px); transition: opacity .24s ease, transform .3s cubic-bezier(.16, 1, .3, 1); }
.kit-toast.is-open { opacity: 1; transform: none; } .kit-toast button { flex: none; min-height: 36px; padding: 0 10px; border: 1px solid #4be3ff; border-radius: 9px; background: none; color: #9fe9ff; font: 600 14px/1 Inter, system-ui, sans-serif; cursor: pointer; }
@media (min-width: 760px) { .kit-toast { left: 24px; right: auto; margin: 0; bottom: 24px; } }
@media (prefers-reduced-motion: reduce) { .kit-layer-veil, .kit-layer-panel, .kit-toast { transition: none; } .kit-layer-body { animation: none !important; } }

/* ---------- the petal, wearing a theme ----------
   widgets.js sets data-theme (the area's theme) and data-motion on the petal. Everything below reads the theme's
   tokens (--t-*, from tokens.css), so the same rules draw Night, Paper, Club, Fairway and Terminal. Without a theme
   (pages outside the social side) the petal keeps its own look. */
.wg-petal[data-theme] .wg-petal-veil { background: var(--t-veil); -webkit-backdrop-filter: blur(18px) saturate(1.15); backdrop-filter: blur(18px) saturate(1.15); }
.wg-petal[data-theme] .wg-kicker { color: var(--c, var(--t-accent)); }
.wg-petal[data-theme] .wg-petal-head h2 { font-family: var(--t-display); color: var(--t-ink); text-shadow: none; }
.wg-petal[data-theme="night"] .wg-petal-head h2, .wg-petal[data-theme="club"] .wg-petal-head h2 { background: var(--t-title); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wg-petal[data-theme="night"] .wg-kicker { text-shadow: 0 0 14px color-mix(in srgb, var(--c, var(--t-accent)) 60%, transparent); }
.wg-petal[data-theme] .wg-petal-option { color: var(--t-ink); border: 1px solid var(--t-line); border-radius: var(--t-radius); background: var(--t-panel); box-shadow: var(--t-shadow); }
.wg-petal[data-theme] .wg-petal-option:hover { border-color: var(--c, var(--t-accent)); }
.wg-petal[data-theme] .wg-petal-option small { color: var(--t-dim); }
.wg-petal[data-theme] .wg-petal-option.is-on { background: var(--t-panel-on); border-color: transparent; color: var(--t-on-ink); box-shadow: var(--t-glow); }
.wg-petal[data-theme] .wg-petal-option.is-on small { color: color-mix(in srgb, var(--t-on-ink) 82%, transparent); }
.wg-petal[data-theme] .wg-petal-option.is-skel { background: linear-gradient(100deg, color-mix(in srgb, var(--t-ink) 5%, transparent) 30%, color-mix(in srgb, var(--t-ink) 13%, transparent) 50%, color-mix(in srgb, var(--t-ink) 5%, transparent) 70%); background-size: 200% 100%; }
.wg-petal[data-theme] .wg-petal-empty, .wg-petal[data-theme] .wg-petal-note { color: var(--t-dim); }
.wg-petal[data-theme] .wg-petal-back { border: 1px solid var(--t-line); border-radius: 10px; background: var(--t-field); color: var(--t-ink); }
.wg-petal[data-theme] .wg-petal-custom input, .wg-petal[data-theme] .wg-petal-write textarea, .wg-petal[data-theme] .wg-petal-content input, .wg-petal[data-theme] .wg-petal-content textarea, .wg-petal[data-theme] .wg-petal-content select {
  border: 1px solid var(--t-line); border-radius: calc(var(--t-radius) - 2px); background: var(--t-field); color: var(--t-ink); }
.wg-petal[data-theme] .wg-petal-custom input:focus, .wg-petal[data-theme] .wg-petal-write textarea:focus { border-color: var(--c, var(--t-accent)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c, var(--t-accent)) 20%, transparent); }
.wg-petal[data-theme] .wg-petal-write, .wg-petal[data-theme] .wg-petal-content { border: 1px solid var(--t-line); border-radius: calc(var(--t-radius) + 2px); background: var(--t-panel); box-shadow: var(--t-shadow); color: var(--t-ink); }
.wg-petal[data-theme] .wg-petal-content label { color: var(--t-dim); }
.wg-petal[data-theme] .wg-petal-custom button, .wg-petal[data-theme] .wg-petal-write button, .wg-petal[data-theme] .wg-petal-content .wg-actions .is-primary { background: var(--c, var(--t-accent)); color: var(--t-on-ink); border-color: transparent; }
.wg-petal[data-theme="night"] .wg-petal-custom button, .wg-petal[data-theme="night"] .wg-petal-write button, .wg-petal[data-theme="terminal"] .wg-petal-write button { color: #04121c; box-shadow: 0 0 22px color-mix(in srgb, var(--c, var(--t-accent)) 45%, transparent); }
.wg-petal[data-theme] .wg-petal-content .wg-actions button { border-color: var(--t-line); background: transparent; color: var(--t-ink); }
/* Night: each option carries a hairline of light along its top edge */
.wg-petal[data-theme="night"] .wg-petal-option::before { content: ""; position: absolute; left: 14px; right: 14px; top: 0; height: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--c, var(--t-accent)) 85%, #fff), transparent); opacity: .7; }
.wg-petal[data-theme="night"] .wg-petal-option:hover { box-shadow: var(--t-shadow), 0 0 22px color-mix(in srgb, var(--c, var(--t-accent)) 28%, transparent); }
.wg-petal[data-theme="terminal"] .wg-petal-option b, .wg-petal[data-theme="terminal"] .wg-kicker { font-family: ui-monospace, "JetBrains Mono", Menlo, monospace; }
/* A light theme around a form that was built for the dark (a ping composer, a venue's edit sheet): the form keeps
   its dark glass card, as one inset panel, until its page is templated. */
.wg-petal[data-theme="paper"] .wg-petal-content, .wg-petal[data-theme="fairway"] .wg-petal-content { border: 1px solid rgba(140, 200, 255, .22); background: linear-gradient(160deg, rgba(22, 36, 64, .97), rgba(10, 16, 32, .98)); box-shadow: 0 18px 44px rgba(19, 35, 63, .28); color: #eef4ff; color-scheme: dark; }
.wg-petal[data-theme="paper"] .wg-petal-content label, .wg-petal[data-theme="fairway"] .wg-petal-content label { color: #8ea2bf; }
.wg-petal[data-theme="paper"] .wg-petal-content input, .wg-petal[data-theme="paper"] .wg-petal-content textarea, .wg-petal[data-theme="paper"] .wg-petal-content select,
.wg-petal[data-theme="fairway"] .wg-petal-content input, .wg-petal[data-theme="fairway"] .wg-petal-content textarea, .wg-petal[data-theme="fairway"] .wg-petal-content select { border: 1px solid rgba(140, 200, 255, .25); background: rgba(255, 255, 255, .06); color: #fff; }
.wg-petal[data-theme="paper"] .wg-petal-content .wg-actions button, .wg-petal[data-theme="fairway"] .wg-petal-content .wg-actions button { border-color: rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); color: #fff; }

/* how the choices arrive (data-motion) */
.wg-petal[data-motion="rise"] .wg-petal-option { animation-name: kit-m-rise; } .wg-petal[data-motion="fade"] .wg-petal-option { animation-name: kit-m-fade; }
.wg-petal[data-motion="drop"] .wg-petal-option { animation-name: kit-m-drop; } .wg-petal[data-motion="swing"] .wg-petal-option { animation-name: kit-m-swing; transform-origin: 50% 0; }
.wg-petal[data-motion="zoom"] .wg-petal-option { animation-name: kit-m-zoom; }
.wg-petal[data-motion]:not([data-motion="bloom"]) .wg-petal-option { transform: none; }
@keyframes kit-m-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes kit-m-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes kit-m-drop { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: none; } }
@keyframes kit-m-swing { from { opacity: 0; transform: perspective(600px) rotateX(-55deg); } to { opacity: 1; transform: none; } }
@keyframes kit-m-zoom { from { opacity: 0; transform: scale(1.5); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
/* layers and cards follow their own motion setting (set as data-motion by the kit) */
.kit-layer[data-motion="fade"] .kit-layer-panel { transform: none; } .kit-layer[data-motion="drop"] .kit-layer-panel { transform: translateY(-26px); } .kit-layer[data-motion="zoom"] .kit-layer-panel { transform: scale(1.12); }
.kit-layer[data-motion="swing"] .kit-layer-panel { transform: perspective(900px) rotateX(-22deg); transform-origin: 50% 100%; } .kit-layer[data-motion="bloom"] .kit-layer-panel { transform: scale(.9); }
.kit-layer.is-open[data-motion] .kit-layer-panel { transform: none; }

/* ---------- cards arrive the way the admin chose (the "card" motion; "rise" keeps each card's own) ---------- */
:is([data-card^="venue"], [data-card^="place"], [data-card^="event"], [data-card^="ping"])[data-motion]:not([data-motion="rise"]) { animation: kit-m-fade .45s cubic-bezier(.16, 1, .3, 1) backwards; animation-delay: calc(var(--i, 0) * 40ms); }
:is([data-card^="venue"], [data-card^="place"], [data-card^="event"], [data-card^="ping"])[data-motion="bloom"] { animation-name: kit-m-bloom; animation-timing-function: cubic-bezier(.34, 1.56, .64, 1); }
:is([data-card^="venue"], [data-card^="place"], [data-card^="event"], [data-card^="ping"])[data-motion="drop"] { animation-name: kit-m-drop; }
:is([data-card^="venue"], [data-card^="place"], [data-card^="event"], [data-card^="ping"])[data-motion="swing"] { animation-name: kit-m-swing; transform-origin: 50% 0; }
:is([data-card^="venue"], [data-card^="place"], [data-card^="event"], [data-card^="ping"])[data-motion="zoom"] { animation-name: kit-m-zoom; }
@keyframes kit-m-bloom { from { opacity: 0; transform: scale(.7) translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { [data-card][data-motion] { animation: none !important; } }

/* ---------- a page's shell: its toolbar, its width, its drawer (data-toolbar, data-width, data-drawer on <body>; siteapp/social/pages.py) ----------
   Nothing is ever taken out of the page: the chat controls stay in the toolbar, only out of sight, so every script
   that reads or drives them works as before. */
.toolbar-page { display: none; }
/* social: the toolbar is the site's own, untouched. The social button floats at the right under it, glass in the
   circle's colour; its buttons come out beside it over the page (nothing is pushed down) and stay there as the page
   scrolls. kit/drawer.js fills them. */
.social-bar { --bc: #4be3ff; position: fixed; z-index: 48; top: calc(var(--toolbar-height, 60px) + 8px); right: 10px; display: flex; flex-direction: row-reverse; align-items: center; gap: 8px; max-width: calc(100vw - 20px); pointer-events: none; }
.social-bar[hidden] { display: none; }
.social-bar > * { pointer-events: auto; }
.social-bar-toggle { position: relative; flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; color: #fff;
  border: 1px solid color-mix(in srgb, var(--bc) 60%, rgba(255, 255, 255, .2)); background: radial-gradient(circle at 32% 26%, rgba(255, 255, 255, .34), color-mix(in srgb, var(--bc) 34%, transparent) 46%, rgba(6, 10, 18, .7) 100%);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 -8px 14px color-mix(in srgb, var(--bc) 30%, transparent), 0 8px 24px rgba(0, 0, 0, .45), 0 0 22px color-mix(in srgb, var(--bc) 40%, transparent); transition: transform .2s ease, box-shadow .3s ease; }
.social-bar-toggle:hover, .social-bar-toggle:focus-visible { transform: scale(1.05); outline: none; }
.social-bar-toggle svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--bc) 80%, transparent)); transition: transform .34s cubic-bezier(.16, 1, .3, 1); }
.social-bar:not(.is-shut) .social-bar-toggle svg { transform: rotate(90deg) scale(.86); }
.social-bar-toggle-count { position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center; border-radius: 10px; background: #ff5b6b; color: #fff; font: 700 11px/1 Inter, system-ui, sans-serif; font-style: normal; box-shadow: 0 0 0 2px rgba(6, 10, 18, .9); }
.social-bar-toggle-count[hidden] { display: none; }
/* the buttons: a glass pill beside the button */
.social-bar-items { display: flex; align-items: center; gap: 4px; min-width: 0; padding: 5px 6px; border-radius: 30px; border: 1px solid color-mix(in srgb, var(--bc) 40%, rgba(255, 255, 255, .14));
  background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .03) 50%), rgba(7, 11, 20, .66); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 10px 30px rgba(0, 0, 0, .45), 0 0 26px color-mix(in srgb, var(--bc) 18%, transparent);
  transform-origin: 100% 50%; transition: transform .36s cubic-bezier(.16, 1, .3, 1), opacity .24s ease; }
.social-bar.is-shut .social-bar-items { transform: scaleX(.2) translateX(20px); opacity: 0; pointer-events: none; }
.social-bar-link { position: relative; flex: none; display: grid; justify-items: center; align-content: center; gap: 2px; width: 50px; height: 50px; border-radius: 50%; color: #dfe8f6; text-decoration: none; transition: background .2s ease, transform .18s ease; }
.social-bar-link svg { width: 27px; height: 27px; color: var(--sc, var(--bc)); filter: drop-shadow(0 0 7px color-mix(in srgb, var(--sc, var(--bc)) 65%, transparent)); animation: social-bob 3.6s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -.55s); }
@keyframes social-bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-2.5px) rotate(-3deg); } }
.social-bar-link span { display: none; }
.social-bar-link:hover, .social-bar-link:focus-visible { background: color-mix(in srgb, var(--sc, var(--bc)) 20%, transparent); outline: none; transform: translateY(-1px); }
.social-bar-link:hover svg, .social-bar-link:focus-visible svg { animation: social-pop .5s ease; }
@keyframes social-pop { 40% { transform: scale(1.22) rotate(6deg); } }
.social-bar-link.is-here { background: color-mix(in srgb, var(--sc, var(--bc)) 24%, transparent); box-shadow: inset 0 0 0 1.5px var(--sc, var(--bc)), 0 0 16px color-mix(in srgb, var(--sc, var(--bc)) 40%, transparent); }
/* a count on its button: something is waiting there */
.social-bar-count { position: absolute; top: 0; right: -2px; min-width: 19px; height: 19px; padding: 0 5px; display: grid; place-items: center; border-radius: 10px; background: #ff5b6b; color: #fff; font: 700 10px/1 Inter, system-ui, sans-serif; font-style: normal; white-space: nowrap;
  box-shadow: 0 0 0 2px rgba(7, 11, 20, .9), 0 0 10px rgba(255, 91, 107, .7); animation: social-ping 2.2s ease-in-out infinite; }
@keyframes social-ping { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.14); } }
.social-bar-count[hidden], .social-bar-count:empty { display: none; }
.social-bar-count .ev-badge { all: unset; } .social-bar-count .ev-badge:nth-child(n+2) { display: none; }
.social-bar-link:has(.social-bar-count:not([hidden]):not(:empty)) svg { animation: social-bob 1.6s ease-in-out infinite; }
@media (min-width: 900px) { .social-bar-link { width: auto; height: 50px; grid-auto-flow: column; gap: 8px; padding: 0 14px; border-radius: 26px; } .social-bar-link span { display: block; font: 600 14px/1 Inter, system-ui, sans-serif; white-space: nowrap; } .social-bar-count { position: static; box-shadow: none; } }
@media (max-width: 430px) { .social-bar { gap: 6px; } .social-bar-items { gap: 2px; padding: 4px 5px; min-width: 0; } .social-bar-link { width: 44px; height: 48px; } .social-bar-link svg { width: 25px; height: 25px; } }
@media (max-width: 360px) { .social-bar-link { width: 38px; } .social-bar-link svg { width: 22px; height: 22px; } .social-bar-toggle { width: 44px; height: 44px; } }
@media (min-width: 900px) { body[data-toolbar="social"] #toolbar .toolbar-page { display: block; flex: none; max-width: 24vw; margin: 0 8px; color: #eaf1ff; font: 600 17px/1.2 "Source Serif 4", Georgia, serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } }
@media (prefers-reduced-motion: reduce) { .social-bar-items, .social-bar-toggle, .social-bar-toggle svg, .social-bar-link { transition: none; } .social-bar-link svg, .social-bar-count { animation: none !important; } }

/* none: the whole screen. The toolbar is out of sight (still in the page); kit.js adds Back where a page has none. */
body[data-toolbar="none"] #toolbar { visibility: hidden; pointer-events: none; height: 0; min-height: 0; padding: 0; border: 0; overflow: hidden; }
body[data-toolbar="none"] { --toolbar-height: 0px; }
.kit-back { position: fixed; z-index: 45; top: calc(env(safe-area-inset-top, 0px) + 10px); left: 12px; }

/* width on a desktop: narrow is one reading column; wide is the full screen */
@media (min-width: 900px) {
  body[data-width="narrow"] #main > * { max-width: 640px; margin-left: auto; margin-right: auto; }
  body[data-width="wide"] #main, body[data-width="wide"] #main > * { max-width: none !important; width: 100%; margin-left: 0; margin-right: 0; }
  /* the columns each page caps for itself (1180px, 860px): let them run to the edges, keeping the page's own side padding */
  body[data-width="wide"] #main :is(.cc-events, .cc-members, .cc-courses, .cc-tiles, .ev-live, .ev-calendar, .ev-month-bar, .ms-shell, .vn-detail, .co-detail,
    .mc-page > .mc-roombar, .mc-page > .mc-matches, .mc-page > .mc-grid, .mc-page > .mc-grid-label, .mc-page > .mc-status, .mc-page > .mc-gate, .mc-page > .mc-companies, .mc-page > .mc-company-filter) { max-width: none !important; }
  body[data-width="wide"] #main .mc-sheet { padding-left: var(--pad, 48px) !important; padding-right: var(--pad, 48px) !important; }
}

/* the drawer standing open beside the page, on a desktop (kit.js opens it without the veil; the menu button closes and opens it).
   It takes the left of the screen from top to bottom; the toolbar and the page share the rest. */
@media (min-width: 1000px) {
  body.kit-docked { --dock-w: min(340px, 28vw); }
  body.kit-docked #menuDrawer { position: fixed; inset: 0 auto 0 0; margin: 0; width: var(--dock-w); height: auto; max-height: none; animation: none !important; z-index: 60;
    border-right: 1px solid rgba(140, 180, 230, .16); box-shadow: none; }
  body.kit-docked #app { margin-left: var(--dock-w); transform: none !important; filter: none !important; transition: margin-left .3s cubic-bezier(.16, 1, .3, 1); }
  body.kit-docked .toolbar { left: var(--dock-w); }
  /* the welcome and the chats: their screen is a fixed grid, so it is made narrower, not pushed */
  body.kit-docked.chat-home #app { width: calc(100% - var(--dock-w)); }
  body.kit-docked.chat-home .toolbar { left: auto; }
  body.kit-docked #main :is(.mc-backlink, .kit-back) { left: calc(var(--dock-w) + 14px); }
  body.kit-docked #main { overflow-x: clip; }                 /* a page's edge-to-edge bands stop at the page's own edge */
}
@media (prefers-reduced-motion: reduce) { body.kit-docked #app { transition: none; } }
/* the welcome page's social sections, hidden by the admin (data-welcome-hide on <body>) */
body[data-welcome-hide~="buttons"] .welcome .welcome-club-row, body[data-welcome-hide~="events"] .welcome [data-events-rail],
body[data-welcome-hide~="pings"] .welcome [data-pings-home], body[data-welcome-hide~="messages"] .welcome .ms-recent { display: none !important; }

/* a wizard step in the petal: no "Recent" label over its choices */
.wg-petal[data-plain] .wg-petal-head + .wg-petal-write + .wg-petal-options:not(:empty)::before { content: none; }

/* a checklist in the petal: done, next, to do */
.wg-petal-option.tone-done { opacity: .78; cursor: default; } .wg-petal-option.tone-done b { color: #3fe08a; } .wg-petal[data-theme="paper"] .wg-petal-option.tone-done b, .wg-petal[data-theme="fairway"] .wg-petal-option.tone-done b { color: #17804a; }
.wg-petal-option.tone-next { border-color: var(--c, var(--t-accent, #4be3ff)) !important; box-shadow: var(--t-glow, 0 0 0 1px rgba(75, 227, 255, .6), 0 0 24px rgba(75, 227, 255, .3)) !important; }
.wg-petal-option.tone-next::after { content: "Next"; position: absolute; right: 12px; top: 12px; padding: 3px 8px; border-radius: 8px; background: var(--c, var(--t-accent, #4be3ff)); color: var(--t-on-ink, #04121c); font: 700 11px/1.2 Inter, system-ui, sans-serif; }
.wg-petal[data-theme="night"] .wg-petal-option.tone-next::after { color: #04121c; }
.wg-petal-option.tone-more { border-style: dashed; }

/* the Admin link in the toolbar (admins only) */
.toolbar .toolbar-admin { flex: none; display: grid; place-items: center; color: #ffd95b; border-color: rgba(255, 217, 91, .5); box-shadow: 0 0 14px rgba(255, 217, 91, .18); text-decoration: none; }
.toolbar .toolbar-admin[hidden] { display: none; }
.toolbar .toolbar-admin svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 430px) { body:not([data-toolbar="social"]) .toolbar:has(.toolbar-admin:not([hidden])) .chat-mode span { display: none; } body:not([data-toolbar="social"]) .toolbar:has(.toolbar-admin:not([hidden])) .chat-mode { padding-left: 12px; padding-right: 12px; } }
/* where the chat box sits at the foot of the page, a toast shows under the toolbar instead, so it never covers the box */
body:has(#chatComposer) .kit-toast { bottom: auto; top: calc(env(safe-area-inset-top, 0px) + var(--toolbar-height, 60px) + 10px); }

/* the verified mark on a face: a small green check at its lower right (kit.js adds the class) */
.kit-verified { overflow: visible !important; }
.kit-verified-rel { position: relative; }
.kit-verified > img { border-radius: 50%; }
.kit-verified::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 38%; min-width: 11px; max-width: 18px; aspect-ratio: 1; border-radius: 50%;
  background: #17a673 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 72% no-repeat;
  box-shadow: 0 0 0 1.5px #fff; pointer-events: none; }
/* ---------- rich text: the editor (Quill, kit/rich.js) and what it wrote, on a page ---------- */
.kit-rich { display: grid; gap: 4px; width: 100%; min-width: 0; }
.kit-rich .ql-toolbar.ql-snow { border: 1px solid rgba(20, 30, 50, .18); border-radius: 10px 10px 0 0; background: #f4f6fa; padding: 6px; }
.kit-rich .ql-toolbar.ql-snow .ql-formats { margin-right: 4px; }
.kit-rich .ql-editor li { padding-left: .6em; }
.kit-rich .ql-toolbar.ql-snow button { width: 34px; height: 34px; padding: 7px; border-radius: 8px; }
.kit-rich .ql-container.ql-snow { border: 1px solid rgba(20, 30, 50, .18); border-top: 0; border-radius: 0 0 10px 10px; background: #fff; color: #172033; font: 400 16px/1.5 Inter, system-ui, sans-serif; }
.kit-rich .ql-editor { min-height: 150px; max-height: 46vh; overflow-y: auto; padding: 12px 14px; font-size: 16px; }
.kit-rich .ql-editor.ql-blank::before { color: #8892a6; font-style: normal; left: 14px; right: 14px; }
.kit-rich .ql-editor h2 { font: 600 20px/1.25 "Source Serif 4", Georgia, serif; margin: 8px 0 4px; }
.kit-rich .ql-tooltip { z-index: 5; border-radius: 10px; left: 8px !important; max-width: calc(100% - 16px); }
.kit-rich .ql-tooltip input[type=text] { font-size: 16px; max-width: 46vw; }
.kit-rich-count { justify-self: end; color: #6b7690; font: 500 12px/1 Inter, system-ui, sans-serif; }
.kit-rich-count.is-over { color: #c0392b; }
.kit-rich-plain { width: 100%; min-height: 150px; padding: 12px 14px; border: 1px solid rgba(20, 30, 50, .18); border-radius: 10px; background: #fff; color: #172033; font: 400 16px/1.5 Inter, system-ui, sans-serif; }
.kit-rich-view { display: grid; gap: 10px; }
.kit-rich-view p, .kit-rich-view li, .kit-rich-view blockquote { margin: 0; overflow-wrap: anywhere; }
.kit-rich-view h2, .kit-rich-view h3 { margin: 6px 0 0; font: 600 20px/1.25 "Source Serif 4", Georgia, serif; }
.kit-rich-view ol, .kit-rich-view ul { margin: 0; padding-left: 22px; display: grid; gap: 4px; }
.kit-rich-view li[data-list="bullet"] { list-style-type: disc; }
.kit-rich-view li[data-list="ordered"] { list-style-type: decimal; }
.kit-rich-view blockquote { padding-left: 12px; border-left: 3px solid currentColor; opacity: .85; }
.kit-rich-view a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- a photo gallery on a page (kit/gallery.js): square thumbs; Remove sits under a photo, never on it ---------- */
.kit-gallery { display: grid; gap: 10px; }
.kit-gallery[hidden] { display: none; }
.kit-gallery-head { display: grid; gap: 8px; }
.kit-gallery-add { justify-self: start; position: relative; cursor: pointer; }
.kit-gallery-add input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.kit-gallery-note { margin: 0; font: 400 14px/1.4 Inter, system-ui, sans-serif; opacity: .8; }
.kit-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.kit-gallery-photo { display: grid; gap: 2px; margin: 0; }
.kit-gallery-open { aspect-ratio: 1; padding: 0; border: 1px solid rgba(20, 30, 50, .14); border-radius: 10px; overflow: hidden; background: #e9edf3; cursor: pointer; }
.kit-gallery-open img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kit-gallery-remove { justify-self: start; min-height: 28px; padding: 0; border: 0; background: none; color: inherit; font: 600 13px/1 Inter, system-ui, sans-serif; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
/* ---------- the cover picker (kit/cover.js): preview, then drawings, stock photos, your own, filters: one under another ---------- */
.kit-cover { display: grid; gap: 16px; }
.kit-cover-preview { aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #0c1424; border: 1px solid rgba(140, 180, 230, .3); }
.kit-cover-preview > *, .kit-cover-thumb > * { width: 100%; height: 100%; object-fit: cover; display: block; }
.kit-cover-part { display: grid; gap: 8px; } .kit-cover-part[hidden] { display: none; }
.kit-cover-part h3 { margin: 0; color: #8ea2bf; font: 600 11px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; text-transform: uppercase; }
.kit-cover-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.kit-cover-thumb { aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: #0c1424; cursor: pointer; }
.kit-cover-thumb.is-on { border-color: #4be3ff; box-shadow: 0 0 0 2px rgba(75, 227, 255, .25); }
.kit-cover-more, .kit-cover-upload { justify-self: start; min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; border: 1px solid rgba(140, 180, 230, .35); border-radius: 10px; background: rgba(140, 180, 230, .08); color: inherit; font: 600 15px/1 Inter, system-ui, sans-serif; cursor: pointer; position: relative; }
.kit-cover-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.kit-cover-note { margin: 0; font: 400 14px/1.4 Inter, system-ui, sans-serif; opacity: .85; }
.kit-cover-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.kit-cover-filter { display: grid; justify-items: center; gap: 4px; padding: 8px 2px; border: 1px solid rgba(140, 180, 230, .25); border-radius: 10px; background: none; color: inherit; font: 500 12px/1.1 Inter, system-ui, sans-serif; cursor: pointer; }
.kit-cover-filter i { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, #39c27a, #2f8fe6 55%, #ffb347); }
.kit-cover-filter.is-on { border-color: #4be3ff; background: rgba(75, 227, 255, .1); }
.kit-cover-use { min-height: 48px; border: 0; border-radius: 12px; background: #4be3ff; color: #06202b; font: 700 16px/1 Inter, system-ui, sans-serif; cursor: pointer; }
/* upload buttons inside a petal are buttons, not field labels: plain words at a readable size */
.wg-petal label.kit-cover-upload, .wg-petal label.stu-pick-upload, .wg-petal label.kit-gallery-add { min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; border: 1px solid rgba(140, 180, 230, .45); border-radius: 10px;
  background: rgba(140, 180, 230, .1); color: #eaf1ff !important; font: 600 15px/1 Inter, system-ui, sans-serif !important; letter-spacing: 0 !important; text-transform: none !important; }

/* ---------- the menu button counts what is waiting on the social side ---------- */
.toolbar [data-open-menu] { position: relative; }
.toolbar-menu-count { position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; padding: 0 4px; display: grid; place-items: center; border-radius: 8px; background: #ffb347; color: #06121c; font: 700 10px/1 Inter, system-ui, sans-serif; font-style: normal; }
.toolbar-menu-count[hidden] { display: none; }
/* on a phone the social pages keep the toolbar's own controls but as icons, so they all fit */
@media (max-width: 430px) { body[data-toolbar="social"] #toolbar .chat-mode span { display: none; } body[data-toolbar="social"] #toolbar .chat-mode { padding-left: 12px; padding-right: 12px; } body[data-toolbar="social"] #toolbar .account-chip-text { display: none; } }

/* ---------- the drawer's circles (menu.js): All, then the five; a circle's drawer wears its colours ---------- */
.drawer-circles { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0 0 12px; }
.drawer-circles[hidden] { display: none; }
.drawer-circle { display: flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 8px; border: 1px solid rgba(140, 180, 230, .2); border-radius: 17px; background: rgba(8, 14, 26, .5); color: #c9d6ea; font: 600 13px/1 Inter, system-ui, sans-serif; cursor: pointer; min-width: 0; transition: border-color .2s ease, background .2s ease, color .2s ease; }
.drawer-circle i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0, var(--cc) 45%); box-shadow: 0 0 10px var(--cc); }
.drawer-circle span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer-circle.is-on { border-color: var(--cc); background: color-mix(in srgb, var(--cc) 18%, transparent); color: #fff; box-shadow: 0 0 14px color-mix(in srgb, var(--cc) 30%, transparent); }
/* the same rising bubbles and icons, in the circle's colour */
.drawer.is-circle { background: radial-gradient(120% 60% at 0% 0%, color-mix(in srgb, var(--dk) 30%, transparent), transparent 60%), radial-gradient(90% 60% at 100% 100%, color-mix(in srgb, var(--dk) 16%, transparent), transparent 65%), linear-gradient(180deg, rgba(8, 14, 26, .97), rgba(3, 6, 12, .98)); }
.drawer.is-circle .df-icon svg { stroke: color-mix(in srgb, var(--dk) 70%, #fff); filter: drop-shadow(0 0 6px var(--dk)) drop-shadow(0 0 14px color-mix(in srgb, var(--dk) 50%, transparent)); }
.drawer.is-circle .df-bubble { background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .55), color-mix(in srgb, var(--dk) 55%, transparent) 42%, transparent 70%); box-shadow: 0 0 14px color-mix(in srgb, var(--dk) 45%, transparent); }
.drawer.is-circle .drawer-switch { display: none; }           /* a circle's projects are chat projects */

/* ---------- the chooser (kit/choose.js): dark glass, the circle's colour, rising bubbles, premium buttons ----------
   Its template comes from the Studio (data-buttons: glass | solid | outline; data-backdrop: bubbles | glow | plain; data-columns). */
.kit-choose { --c: #4be3ff; position: fixed; inset: 0; z-index: 2147483300; display: grid; place-items: center; padding: calc(env(safe-area-inset-top, 0px) + 16px) 14px calc(env(safe-area-inset-bottom, 0px) + 16px);
  background: radial-gradient(90% 60% at 50% 0%, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%), rgba(3, 6, 12, .82); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
  opacity: 0; transition: opacity .26s ease; overflow: hidden; }
.kit-choose.is-in { opacity: 1; }
.kit-choose[data-backdrop="plain"] { background: rgba(3, 6, 12, .9); }
.kit-choose-field { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.kit-choose-field i { position: absolute; left: var(--x); bottom: -60px; width: var(--s); height: var(--s); border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .55), color-mix(in srgb, var(--c) 40%, transparent) 40%, transparent 72%); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
  box-shadow: inset 0 0 8px color-mix(in srgb, var(--c) 45%, transparent), 0 0 16px color-mix(in srgb, var(--c) 25%, transparent); animation: kit-choose-rise var(--d) linear var(--w) infinite; }
@keyframes kit-choose-rise { from { transform: translateY(0) scale(.8); opacity: 0; } 12% { opacity: .9; } 88% { opacity: .7; } to { transform: translateY(-112vh) scale(1.15); opacity: 0; } }
.kit-choose-panel { position: relative; width: min(560px, 100%); max-height: 100%; overflow-y: auto; overscroll-behavior: contain; display: grid; gap: 14px; padding: 20px 16px 18px; border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--c) 34%, rgba(255, 255, 255, .1)); background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .02) 40%), rgba(8, 13, 24, .72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 30px 80px rgba(0, 0, 0, .6), 0 0 60px color-mix(in srgb, var(--c) 16%, transparent); transform: translateY(14px) scale(.98); transition: transform .34s cubic-bezier(.16, 1, .3, 1); }
.kit-choose.is-in .kit-choose-panel { transform: none; }
.kit-choose-x { justify-self: end; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; background: rgba(255, 255, 255, .06); color: #eaf1ff; cursor: pointer; }
.kit-choose-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.kit-choose-head { display: grid; gap: 6px; margin-top: -40px; padding-right: 52px; }
.kit-choose-kicker { margin: 0; color: var(--c); font: 700 11px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .16em; text-transform: uppercase; text-shadow: 0 0 14px color-mix(in srgb, var(--c) 60%, transparent); }
.kit-choose-head h2 { margin: 0; color: #fff; font: 600 clamp(24px, 6vw, 30px)/1.15 "Source Serif 4", Georgia, serif; }
.kit-choose-grid { display: grid; gap: 10px; }
.kit-choose[data-columns="two"] .kit-choose-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.kit-choose-label { grid-column: 1 / -1; margin: 6px 0 0; color: #8ea2bf; font: 600 11px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; text-transform: uppercase; }
.kit-choice { --c: inherit; position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr) 18px; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; border-radius: 14px; text-align: left; cursor: pointer; color: #fff; overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--c) 45%, rgba(255, 255, 255, .12)); background: linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .03) 46%, color-mix(in srgb, var(--c) 14%, transparent));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -10px 22px color-mix(in srgb, var(--c) 12%, transparent), 0 8px 22px rgba(0, 0, 0, .35);
  animation: kit-choice-in .42s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(var(--i, 0) * 34ms); transition: transform .16s ease, border-color .2s ease, box-shadow .2s ease; }
@keyframes kit-choice-in { from { opacity: 0; transform: translateY(12px) scale(.97); } }
.kit-choice::before { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .16) 46%, transparent 62%); transform: translateX(-120%); transition: transform .7s ease; pointer-events: none; }
.kit-choice:hover::before, .kit-choice:focus-visible::before { transform: translateX(120%); }
.kit-choice:hover, .kit-choice:focus-visible { border-color: var(--c); outline: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26), 0 0 0 1px color-mix(in srgb, var(--c) 60%, transparent), 0 0 28px color-mix(in srgb, var(--c) 34%, transparent), 0 8px 22px rgba(0, 0, 0, .35); }
.kit-choice:active { transform: scale(.985); }
.kit-choice-orb { width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 34% 28%, #fff 0, color-mix(in srgb, var(--c) 80%, #fff) 26%, var(--c) 58%, color-mix(in srgb, var(--c) 55%, #000) 100%);
  box-shadow: 0 0 16px color-mix(in srgb, var(--c) 60%, transparent), inset 0 -4px 8px rgba(0, 0, 0, .3); }
.kit-choice-text { display: grid; gap: 3px; min-width: 0; }
.kit-choice-text b { font: 600 17px/1.2 Inter, system-ui, sans-serif; }
.kit-choice-text small { color: #b8c6dc; font: 400 13px/1.35 Inter, system-ui, sans-serif; }
.kit-choice-go { width: 9px; height: 9px; border-right: 2px solid color-mix(in srgb, var(--c) 80%, #fff); border-top: 2px solid color-mix(in srgb, var(--c) 80%, #fff); transform: rotate(45deg); justify-self: center; opacity: .8; }
.kit-choice.is-picked { border-color: var(--c); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 46%, transparent), color-mix(in srgb, var(--c) 22%, transparent)); box-shadow: 0 0 0 2px var(--c), 0 0 40px color-mix(in srgb, var(--c) 55%, transparent); transform: scale(1.01); }
.kit-choice.is-quiet { background: rgba(255, 255, 255, .04); border-style: dashed; box-shadow: none; } .kit-choice.is-quiet .kit-choice-orb { opacity: .45; box-shadow: none; }
.kit-choice.is-small { min-height: 48px; } .kit-choice.is-small .kit-choice-orb { width: 20px; height: 20px; justify-self: center; } .kit-choice.is-small .kit-choice-text b { font-size: 15px; }
.kit-choose[data-buttons="solid"] .kit-choice:not(.is-quiet) { background: linear-gradient(180deg, color-mix(in srgb, var(--c) 78%, #fff 0%), color-mix(in srgb, var(--c) 62%, #000)); color: #04121c; border-color: transparent; }
.kit-choose[data-buttons="solid"] .kit-choice:not(.is-quiet) small { color: rgba(4, 18, 28, .8); } .kit-choose[data-buttons="solid"] .kit-choice:not(.is-quiet) .kit-choice-go { border-color: #04121c; }
.kit-choose[data-buttons="outline"] .kit-choice { background: rgba(6, 10, 18, .5); box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .kit-choose, .kit-choose-panel, .kit-choice { transition: none; animation: none; } .kit-choose-field i { animation: none; opacity: .5; bottom: 20%; } .kit-choice::before { display: none; } }

/* the circle's name at the top of its drawer */
.drawer-circle-name { display: flex; align-items: center; gap: 8px; margin: 0; padding: 7px 12px; border: 1px solid color-mix(in srgb, var(--cc) 45%, transparent); border-radius: 12px; background: color-mix(in srgb, var(--cc) 14%, transparent); color: #fff; font: 600 14px/1 Inter, system-ui, sans-serif; }
.drawer-circle-name i { width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0, var(--cc) 45%); box-shadow: 0 0 12px var(--cc); }
.drawer-circles { grid-template-columns: minmax(0, 1fr) !important; }
