/* ChatSpark — bright, calm chats where Aven ✨ and people's agents feel like part of the conversation. */
:root {
  --bg: #f6f5fb; --surface: #ffffff; --surface-2: #f0eff7; --text: #16151d; --muted: #6e6c80; --line: #e7e5f0;
  --accent: #7c5cff; --grad: linear-gradient(135deg, #7c5cff 0%, #b86bff 52%, #ff7aa8 100%);
  --aven: conic-gradient(from 210deg, #7c5cff, #c86bff, #ff7aa8, #ffb86b, #7c5cff);
  --mine: linear-gradient(135deg, #6d5dfc, #9b5cff); --gold: #f5a524; --green: #12b886; --red: #f03e5e;
  --shadow: 0 10px 30px rgba(36, 24, 90, .08); --shadow-strong: 0 22px 60px rgba(36, 24, 90, .16);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0d0c13; --surface: #17161f; --surface-2: #211f2c; --text: #f2f1f7; --muted: #9d9bb0; --line: #2b2938;
          --shadow: 0 10px 30px rgba(0, 0, 0, .35); --shadow-strong: 0 22px 60px rgba(0, 0, 0, .55); }
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.sp { background: var(--bg); color: var(--text); font: 15px/1.45 var(--font); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
          background-image: radial-gradient(900px 500px at 110% -10%, rgba(124, 92, 255, .10), transparent 60%), radial-gradient(700px 420px at -20% 0%, rgba(255, 122, 168, .08), transparent 60%);
          background-attachment: fixed; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { opacity: .55; cursor: default; }
a { color: var(--accent); }
[hidden] { display: none !important; }
.sp-app { min-height: 100vh; min-height: 100dvh; }

/* Buttons and inputs */
.sp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 16px; border-radius: 999px; border: 1px solid transparent;
          background: var(--surface-2); font-weight: 650; text-decoration: none; color: var(--text); transition: transform .12s, box-shadow .2s, background .2s; white-space: nowrap; }
.sp-btn:active:not(:disabled) { transform: scale(.97); }
.sp-btn.is-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(124, 92, 255, .28); }
.sp-btn.is-ghost { background: transparent; border-color: var(--line); }
.sp-btn.is-gold { background: linear-gradient(135deg, #ffb238, #ff7a59); color: #fff; }
.sp-btn.is-danger { background: transparent; color: var(--red); border-color: color-mix(in srgb, var(--red) 35%, var(--line)); }
.sp-btn.is-small { padding: 6px 12px; font-size: 13px; }
.sp-btn.is-big { width: 100%; padding: 15px 18px; font-size: 16.5px; }
.sp-link { border: none; background: none; color: var(--accent); font-weight: 650; padding: 4px 0; font-size: 13.5px; }
.sp-link.is-muted { color: var(--muted); }
.sp-link.is-danger { color: var(--red); }
.sp-x { border: none; background: none; font-size: 20px; color: var(--muted); padding: 0 4px; line-height: 1; }
.sp-icon-btn { border: none; background: var(--surface); border: 1px solid var(--line); height: 38px; min-width: 38px; padding: 0 10px; border-radius: 999px; font-size: 15px;
               display: inline-grid; place-items: center; box-shadow: 0 2px 8px rgba(36, 24, 90, .05); }
.sp-input { width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 16px;
            outline: none; resize: vertical; transition: border-color .15s, box-shadow .15s; }
.sp-input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.sp-input:disabled { opacity: .7; }
.sp-label { font-size: 11.5px; font-weight: 750; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 6px 0 0; }
.sp-muted { color: var(--muted); }
.sp-center { text-align: center; }
.sp-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sp-row.is-center { justify-content: center; }
.sp-row .sp-input { flex: 1; min-width: 140px; }
.sp-tag { font-size: 11px; padding: 1px 7px; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.sp-mini-tag { font-size: 11px; padding: 1px 7px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--accent); white-space: nowrap; font-weight: 650; }
.sp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sp-chips.is-center { justify-content: center; }
.sp-chip { padding: 6px 12px; border-radius: 999px; background: var(--surface-2); font-size: 13px; border: 1.5px solid transparent; }
.sp-chip.is-on, .sp-chip.is-mine { border-color: var(--c, var(--accent)); background: color-mix(in srgb, var(--c, var(--accent)) 12%, var(--surface)); }
.sp-chip-input { width: 150px; padding: 6px 12px; border-radius: 999px; font-size: 13px; }
.sp-segmented { display: flex; gap: 4px; padding: 4px; border-radius: 16px; background: var(--surface-2); }
.sp-seg { flex: 1; border: none; background: none; padding: 8px 10px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 13.5px; }
.sp-seg span { font-size: 11.5px; color: var(--muted); text-align: center; line-height: 1.3; }
.sp-seg.is-on { background: var(--surface); box-shadow: 0 2px 10px rgba(36, 24, 90, .10); }
.sp-seg.is-on b { color: var(--accent); }
.sp-segmented.is-stack { flex-direction: column; }
.sp-segmented.is-stack .sp-seg { flex-direction: row; justify-content: space-between; gap: 10px; text-align: left; padding: 10px 12px; }
.sp-segmented.is-stack .sp-seg span { text-align: right; }

/* Faces and Aven */
.sp-face { width: var(--s); height: var(--s); border-radius: 50%; flex: none; display: inline-grid; place-items: center; position: relative;
           background: linear-gradient(135deg, #ffe7d6, #e6e0ff); }
.sp-face canvas { width: 100% !important; height: 100% !important; border-radius: 50%; }
.sp-face-letter { font-weight: 800; font-size: calc(var(--s) * .45); color: #6d5dfc; }
.sp-face-badge { position: absolute; right: -5px; bottom: -4px; font-size: calc(min(var(--s), 64px) * .32); line-height: 1; background: var(--surface); border-radius: 50%; padding: 2px; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }
.sp-face-dot { position: absolute; right: 1px; bottom: 1px; width: calc(var(--s) * .26); height: calc(var(--s) * .26); max-width: 14px; max-height: 14px; border-radius: 50%;
               background: var(--green); border: 2px solid var(--surface); }
.sp-aven { width: var(--s); height: var(--s); border-radius: 50%; flex: none; display: inline-grid; place-items: center; position: relative; background: var(--aven);
           box-shadow: 0 4px 16px rgba(124, 92, 255, .35); animation: sp-spin 9s linear infinite; }
.sp-aven::after { content: ""; position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .95), rgba(255, 255, 255, .25) 55%, transparent 70%); }
.sp-aven-star { position: relative; z-index: 1; color: #fff; font-size: calc(var(--s) * .52); line-height: 1; animation: sp-spin 9s linear infinite reverse; text-shadow: 0 1px 6px rgba(80, 40, 200, .5); }
.sp-faces { display: inline-flex; align-items: center; }
.sp-faces .sp-face { border: 2px solid var(--surface); margin-left: -7px; box-sizing: content-box; }
.sp-faces .sp-face:first-child { margin-left: 0; }
.sp-faces-more { font-size: 11px; color: var(--muted); margin-left: 4px; }
.sp-room-emoji { width: var(--s, 52px); height: var(--s, 52px); border-radius: 30%; display: inline-grid; place-items: center; font-size: calc(var(--s, 52px) * .5); flex: none;
                 background: linear-gradient(135deg, #efeaff, #ffe6ef); }
@media (prefers-color-scheme: dark) { .sp-room-emoji { background: linear-gradient(135deg, #2a2440, #3a2233); } }
.sp-room-emoji.is-big { --s: 84px; border-radius: 28px; box-shadow: var(--shadow); }

/* Welcome and onboarding */
.sp-welcome, .sp-onboard { max-width: 560px; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 28px) 18px calc(env(safe-area-inset-bottom) + 36px); display: flex; flex-direction: column; gap: 18px; }
.sp-hero { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.sp-hero-title { font-size: clamp(36px, 10vw, 50px); line-height: 1.04; margin: 4px 0 0; letter-spacing: -.03em; font-weight: 850; background: var(--grad);
                 -webkit-background-clip: text; background-clip: text; color: transparent; }
.sp-hero-sub { color: var(--muted); margin: 0 auto; max-width: 420px; font-size: 16.5px; }
.sp-demo { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 28px; background: var(--surface); box-shadow: var(--shadow-strong); border: 1px solid var(--line);
           animation: sp-float 7s ease-in-out infinite; }
.sp-demo-msg { display: flex; gap: 8px; align-items: flex-end; animation: sp-in .5s both; }
.sp-demo-msg:nth-child(2) { animation-delay: .5s; }
.sp-demo-msg.is-agent { animation-delay: 1.2s; align-items: flex-start; }
.sp-demo-msg.is-card { animation-delay: 2s; align-items: flex-start; }
.sp-demo-msg .sp-bubble { font-size: 14px; }
.sp-demo-offer { display: flex; flex-direction: column; gap: 6px; max-width: 86%; }
.sp-demo-card { flex: 1; max-width: 86%; padding: 12px 14px; border-radius: 18px; border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); display: flex; flex-direction: column; gap: 6px;
                background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 7%, var(--surface)), var(--surface)); }
.sp-demo-card-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; color: var(--accent); }
.sp-demo-options { display: flex; gap: 6px; flex-wrap: wrap; }
.sp-features { display: flex; flex-direction: column; gap: 12px; }
.sp-feature { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.sp-feature-mark { font-size: 24px; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); flex: none; }
.sp-feature p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.sp-cta { display: flex; flex-direction: column; align-items: center; gap: 4px; position: sticky; bottom: 0; margin: 0 -18px; padding: 22px 18px calc(env(safe-area-inset-bottom) + 12px);
          background: linear-gradient(to bottom, transparent, var(--bg) 34%); z-index: 3; }
.sp-foot { display: flex; justify-content: center; gap: 8px; font-size: 12.5px; color: var(--muted); padding-top: 4px; }
.sp-foot a { color: var(--muted); }
.sp-onboard-top { display: flex; justify-content: space-between; align-items: center; }
.sp-title { margin: 0; font-size: 26px; letter-spacing: -.02em; text-align: center; }
.sp-onboard > .sp-muted { margin: -8px 0 0; text-align: center; }
.sp-profile-form { display: flex; flex-direction: column; gap: 12px; }
.sp-face-pick { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.sp-face-preview { padding: 6px; border-radius: 50%; background: var(--grad); box-shadow: 0 10px 30px rgba(124, 92, 255, .3); animation: sp-pop .35s both; }
.sp-face-preview .sp-face { border: 3px solid var(--surface); box-sizing: content-box; }
.sp-looks { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.sp-look { border: 2px solid transparent; background: none; padding: 2px; border-radius: 50%; transition: transform .12s; }
.sp-look.is-on { border-color: var(--accent); transform: scale(1.08); }
.sp-name-input { font-size: 18px; font-weight: 650; text-align: center; }
.sp-form-more, .sp-more-about { display: flex; flex-direction: column; gap: 8px; }
.sp-more-about { padding: 10px 14px; border-radius: 16px; border: 1px dashed var(--line); }
.sp-more-about summary { cursor: pointer; color: var(--accent); font-weight: 650; font-size: 13.5px; }
.sp-more-about[open] summary { margin-bottom: 4px; }
.sp-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); }
.sp-consent input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; margin: 0; }
.sp-consent.is-shake { animation: sp-nudge .4s; color: var(--red); }
.sp-invite-head { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.sp-invite-head .sp-label { margin: 6px 0 0; }
.sp-invite-aven { display: flex; gap: 8px; align-items: center; padding: 10px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; color: var(--muted); text-align: left; }

/* Tabs and lists */
.sp-page { max-width: 640px; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 10px) 14px calc(env(safe-area-inset-bottom) + 96px); display: flex; flex-direction: column; gap: 12px; }
.sp-head { display: flex; justify-content: space-between; align-items: center; padding: 6px 2px; }
.sp-head h1 { margin: 0; font-size: 30px; letter-spacing: -.025em; }
.sp-head-actions { display: flex; gap: 8px; }
.sp-tabs { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom) + 12px); display: flex; gap: 4px; padding: 6px; border-radius: 999px;
           background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
           border: 1px solid var(--line); box-shadow: var(--shadow-strong); z-index: 20; }
.sp-tab { position: relative; border: none; background: none; display: flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 999px; font-weight: 650; font-size: 14px; color: var(--muted); }
.sp-tab.is-on { background: var(--text); color: var(--surface); }
.sp-tab-mark { font-size: 16px; }
.sp-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--red); color: #fff; font-size: 11.5px; font-weight: 800; display: inline-grid; place-items: center; }
.sp-tab .sp-badge { position: absolute; top: -4px; right: -2px; }
.sp-list { display: flex; flex-direction: column; gap: 2px; }
.sp-room-row, .sp-person-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 8px; border: none; background: none; border-radius: 18px; text-align: left; min-width: 0; transition: background .15s; }
.sp-room-row:hover, .sp-person-row:hover { background: var(--surface); }
.sp-room-row.is-twin { background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 8%, var(--surface)), var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line)); margin-bottom: 6px; }
.sp-room-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sp-room-line { display: flex; align-items: center; gap: 6px; min-width: 0; }
.sp-room-line b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15.5px; }
.sp-room-time { margin-left: auto; font-size: 12px; color: var(--muted); flex: none; }
.sp-room-preview { flex: 1; min-width: 0; color: var(--muted); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-room-row.is-unread .sp-room-preview { color: var(--text); font-weight: 550; }
.sp-online { font-size: 11.5px; color: var(--green); font-weight: 650; }
.sp-section { margin: 14px 8px 2px; }
.sp-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 28px 16px; }
.sp-empty.is-small { padding: 8px; }
.sp-empty p { margin: 0; }
.sp-empty-mark { font-size: 42px; width: 84px; height: 84px; border-radius: 28px; display: grid; place-items: center; background: var(--surface); box-shadow: var(--shadow); }
.sp-link-card { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.sp-link-text { flex: 1; min-width: 180px; display: flex; flex-direction: column; font-size: 14px; }
.sp-link-text .sp-muted { font-size: 12.5px; }
.sp-banner { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 20px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); box-shadow: var(--shadow); }
.sp-banner > div { flex: 1; display: flex; flex-direction: column; font-size: 14px; }
.sp-banner .sp-muted { font-size: 12.5px; }
.sp-banner-mark { font-size: 22px; animation: sp-ring 3s infinite; }
.sp-me-card { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 20px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.sp-me-card h2 { margin: 4px 0 0; }
.sp-me-card p { margin: 0; }
.sp-panel { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.sp-panel h3 { margin: 0; font-size: 16px; }
.sp-panel p { margin: 0; }
.sp-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.sp-notes { display: flex; flex-direction: column; gap: 6px; }
.sp-note { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: var(--surface-2); font-size: 14px; }
.sp-note span { flex: 1; }
.sp-save { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.sp-person { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.sp-person h2 { margin: 2px 0 0; }
.sp-person p { margin: 0; }
.sp-person-actions { display: flex; flex-direction: column; gap: 8px; }
.sp-person-actions > .sp-btn { width: 100%; }
.sp-pick-list { display: flex; flex-direction: column; gap: 2px; max-height: 46vh; overflow: auto; }
.sp-pick-row { display: flex; align-items: center; gap: 10px; padding: 8px; border: none; background: none; border-radius: 14px; text-align: left; }
.sp-pick-row b { flex: 1; }
.sp-check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex: none; display: grid; place-items: center; font-size: 13px; color: #fff; }
.sp-pick-row.is-on { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.sp-pick-row.is-on .sp-check { background: var(--accent); border-color: var(--accent); }
.sp-pick-row.is-on .sp-check::after { content: "✓"; }

/* Room */
.sp-room-view { position: fixed; inset: 0; display: flex; flex-direction: column; max-width: 780px; margin: 0 auto; }
.sp-room-top { display: flex; align-items: center; gap: 6px; padding: calc(env(safe-area-inset-top) + 8px) 10px 8px; border-bottom: 1px solid var(--line);
               background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); z-index: 2; }
.sp-back { font-size: 32px; line-height: 1; border: none; background: none; width: 34px; padding: 0 0 4px; color: var(--accent); }
.sp-room-title { flex: 1; display: flex; align-items: center; gap: 10px; border: none; background: none; text-align: left; min-width: 0; padding: 0; }
.sp-room-title > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.sp-room-title b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 16px; }
.sp-room-people { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-room-people.is-online { color: var(--green); }
.sp-scroll { flex: 1; overflow-y: auto; padding: 14px 12px 10px; overscroll-behavior: contain; }
.sp-older { display: flex; justify-content: center; margin-bottom: 8px; }
.sp-messages { display: flex; flex-direction: column; gap: 10px; }
.sp-dock { position: relative; padding: 6px 10px calc(env(safe-area-inset-bottom) + 10px); }
.sp-divider { display: flex; align-items: center; gap: 10px; font-size: 11.5px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; margin: 4px 0; }
.sp-divider::before, .sp-divider::after { content: ""; flex: 1; height: 1px; background: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.sp-hint:empty { display: none; }
.sp-day { align-self: center; font-size: 11.5px; font-weight: 650; color: var(--muted); background: color-mix(in srgb, var(--surface) 80%, transparent);
          backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: 999px; padding: 3px 11px; margin: 6px 0 2px; box-shadow: 0 1px 2px rgb(0 0 0 / .05); }
.sp-seen { align-self: flex-end; display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); margin: -6px 4px 0; animation: sp-in .25s both; }
.sp-seen .sp-faces { --s: 16px; }
.sp-seen.is-left { align-self: flex-start; margin-left: 48px; }
.sp-catchup { display: block; margin: 0 auto 8px; border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); background: var(--surface); color: var(--accent); font-weight: 650;
              border-radius: 999px; padding: 7px 14px; font-size: 13px; box-shadow: var(--shadow); animation: sp-in .3s both; }

.sp-msg { display: flex; gap: 8px; align-items: flex-end; animation: sp-in .22s ease both; }
.sp-msg.is-mine { justify-content: flex-end; }
.sp-msg:has(.sp-card-slot), .sp-msg.is-offer { align-items: flex-start; }
.sp-msg-body { min-width: 0; max-width: min(80%, 520px); display: flex; flex-direction: column; gap: 4px; position: relative; }
.sp-msg.is-mine .sp-msg-body { align-items: flex-end; }
.sp-msg.is-agent .sp-msg-body { max-width: min(92%, 480px); }
.sp-msg.is-grouped { margin-top: -6px; }
.sp-msg.is-grouped > .sp-face, .sp-msg.is-grouped > .sp-aven { visibility: hidden; }
.sp-msg.is-grouped .sp-msg-name { display: none; }
.sp-msg.is-sending { opacity: .65; }
.sp-msg-name { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); padding-left: 4px; flex-wrap: wrap; }
.sp-msg-name b { color: var(--text); font-weight: 650; }
.sp-msg.is-agent .sp-msg-name b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }
.sp-msg-time { opacity: 0; transition: opacity .2s; font-size: 11px; }
.sp-msg:hover .sp-msg-time, .sp-activity:hover .sp-msg-time { opacity: 1; }
.sp-bubble { padding: 9px 13px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); white-space: pre-wrap; word-break: break-word;
             -webkit-user-select: text; user-select: text; -webkit-touch-callout: none; margin: 0; }
.sp-msg:not(.is-mine) .sp-bubble { border-bottom-left-radius: 7px; }
.sp-msg.is-mine .sp-bubble { background: var(--mine); color: #fff; border: none; border-bottom-right-radius: 7px; }
.sp-bubble.is-aven { position: relative; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; border: 1.5px solid transparent; }
.sp-msg.is-offer .sp-bubble.is-aven { box-shadow: 0 10px 26px rgba(124, 92, 255, .16); }
.sp-msg.is-twin .sp-bubble { border-style: dashed; background: var(--surface-2); }
.sp-msg.is-twin.is-mine .sp-bubble, .sp-msg.is-twin .sp-msg-body:has(.sp-msg-name) .sp-bubble { color: var(--text); }
.sp-bubble.is-deleted { font-style: italic; color: var(--muted); background: transparent; border-style: dashed; }
.sp-msg.is-mine .sp-bubble.is-deleted { background: transparent; color: var(--muted); border: 1px dashed var(--line); }
.sp-msg.is-private .sp-bubble { box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent); }
.sp-text a { color: inherit; text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }
.sp-mention { color: var(--accent); font-weight: 650; }
.sp-msg.is-mine .sp-mention { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.sp-quote { display: flex; gap: 4px; max-width: 100%; font-size: 12.5px; color: var(--muted); padding: 4px 10px; border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0;
            background: var(--surface-2); border-top: none; border-right: none; border-bottom: none; text-align: left; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sp-quote span { overflow: hidden; text-overflow: ellipsis; }
.sp-reactions { display: flex; gap: 4px; flex-wrap: wrap; }
.sp-reaction { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 1px 8px; font-size: 13px; }
.sp-reaction.is-mine { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.sp-more { position: absolute; top: 2px; right: -30px; width: 26px; height: 26px; border-radius: 50%; border: none; background: var(--surface-2); color: var(--muted); opacity: 0; transition: opacity .15s; }
.sp-msg.is-mine .sp-more { right: auto; left: -30px; }
@media (hover: hover) { .sp-msg:hover .sp-more { opacity: 1; } }
@media (hover: none) { .sp-more { display: none; } }
.sp-ref { align-self: flex-start; font-size: 12px; padding: 0 4px; }
.sp-system { text-align: center; font-size: 12px; color: var(--muted); margin: 2px 0; }
.sp-trigger { align-self: center; display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); background: var(--surface-2); padding: 4px 10px 4px 4px;
              border-radius: 999px; max-width: 94%; flex-wrap: wrap; justify-content: center; animation: sp-in .3s both; }
.sp-trigger b { color: var(--text); }
.sp-trigger-arrow { color: var(--accent); font-weight: 800; }
.sp-activity { align-self: stretch; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 16px; background: var(--surface-2); font-size: 13px; flex-wrap: wrap; animation: sp-in .3s both; }
.sp-activity-mark { font-size: 16px; }
.sp-activity-text { flex: 1; min-width: 160px; color: var(--muted); display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.sp-activity .sp-link { font-size: 12.5px; }
.sp-offer-actions { display: flex; gap: 6px; flex-wrap: wrap; padding-left: 2px; }
.sp-offer-state { font-size: 12.5px; color: var(--accent); font-weight: 650; padding-left: 4px; }
.sp-offer-state.is-muted { color: var(--muted); font-weight: 500; }

/* Photos and voice */
.sp-photo { display: block; width: min(300px, 70vw); max-height: 380px; border-radius: 18px; overflow: hidden; border: none; padding: 0; background: var(--surface-2); position: relative; }
.sp-photo img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .25s; }
.sp-photo.is-loaded img { opacity: 1; }
.sp-photo:not(.is-loaded)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
                                     background-size: 200% 100%; animation: sp-shimmer 1.2s infinite; }
.sp-photo.is-broken::after { content: "📷"; display: grid; place-items: center; animation: none; background: none; font-size: 28px; opacity: .4; }
.sp-lightbox { position: fixed; inset: 0; background: rgba(5, 4, 12, .92); z-index: 80; display: grid; place-items: center; padding: 16px; animation: sp-in .2s both; }
.sp-lightbox img { max-width: 100%; max-height: 86vh; border-radius: 12px; }
.sp-lightbox-bar { position: absolute; top: calc(env(safe-area-inset-top) + 12px); right: 12px; display: flex; gap: 8px; }
.sp-sending { position: relative; display: inline-flex; align-items: center; gap: 8px; }
.sp-photo-preview { width: min(220px, 60vw); border-radius: 16px; display: block; }
.sp-progress-ring { width: 26px; height: 26px; border-radius: 50%; flex: none; background: conic-gradient(var(--accent) var(--p, 0%), var(--line) 0); mask: radial-gradient(circle, transparent 54%, #000 56%);
                    -webkit-mask: radial-gradient(circle, transparent 54%, #000 56%); }
.sp-voice { display: flex; flex-direction: column; gap: 6px; padding: 8px 10px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); min-width: 220px; max-width: 320px; }
.sp-voice.is-mine { background: var(--mine); color: #fff; border: none; }
.sp-voice-row { display: flex; align-items: center; gap: 8px; }
.sp-voice-play { width: 34px; height: 34px; border-radius: 50%; border: none; background: var(--accent); color: #fff; flex: none; display: grid; place-items: center; font-size: 13px; }
.sp-voice.is-mine .sp-voice-play { background: #fff; color: #6d5dfc; }
.sp-wave { --p: 0%; flex: 1; height: 26px; display: flex; align-items: center; gap: 2px; position: relative;
           -webkit-mask: linear-gradient(90deg, #000 var(--p), rgba(0, 0, 0, .45) var(--p)); mask: linear-gradient(90deg, #000 var(--p), rgba(0, 0, 0, .45) var(--p)); }
.sp-wave i { flex: 1; min-height: 3px; border-radius: 2px; background: currentColor; opacity: .85; }
.sp-voice:not(.is-mine) .sp-wave i { background: var(--accent); }
.sp-voice-time { font-size: 12px; font-variant-numeric: tabular-nums; opacity: .8; flex: none; }
.sp-voice-text { font-size: 13.5px; line-height: 1.4; white-space: pre-wrap; word-break: break-word; }
.sp-voice-text.is-pending { opacity: .7; font-style: italic; }
.sp-voice-text.is-pending::after { content: "…"; animation: sp-dots 1.2s infinite; }

/* Dock */
.sp-busy { display: flex; flex-direction: column; gap: 4px; }
.sp-typing { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); padding: 2px 6px 6px; animation: sp-in .2s both; }
.sp-typing.is-aven span:nth-child(2) { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }
.sp-dots::after { content: "•••"; letter-spacing: 2px; animation: sp-dots 1.2s infinite; }
.sp-host-bar { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 8px; margin-bottom: 8px; border-radius: 999px; background: var(--surface);
               border: 1.5px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; box-shadow: var(--shadow); font-size: 13px; }
.sp-host-text { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sp-offline { text-align: center; font-size: 12px; color: var(--muted); padding: 4px; }
.sp-new { display: block; margin: 0 auto 6px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); font-weight: 800; color: var(--accent); }
.sp-composer { position: relative; }
.sp-reply-chip { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; padding: 6px 12px; margin-bottom: 6px; border-radius: 14px; background: var(--surface-2); }
.sp-reply-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-compose-row, .sp-rec { display: flex; align-items: flex-end; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 5px; box-shadow: var(--shadow); }
.sp-field { flex: 1; border: none; outline: none; resize: none; background: transparent; color: var(--text); font: inherit; font-size: 16px; padding: 8px 4px; max-height: 140px; min-width: 0; }
.sp-spark-btn, .sp-tool, .sp-send { width: 38px; height: 38px; border-radius: 50%; border: none; flex: none; display: grid; place-items: center; font-size: 17px; }
.sp-spark-btn { background: var(--aven); color: #fff; font-size: 19px; box-shadow: 0 6px 16px rgba(124, 92, 255, .35); animation: sp-glow 3.2s infinite; text-shadow: 0 1px 6px rgba(80, 40, 200, .5); }
.sp-tool { background: transparent; font-size: 19px; }
.sp-tool:hover { background: var(--surface-2); }
.sp-send { background: var(--grad); color: #fff; font-weight: 900; font-size: 19px; animation: sp-pop .2s both; }
.sp-rec { align-items: center; padding: 5px 5px 5px 8px; animation: sp-in .2s both; }
.sp-rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); animation: sp-dots 1s infinite; flex: none; }
.sp-rec-time { font-variant-numeric: tabular-nums; font-weight: 650; font-size: 14px; min-width: 38px; }
.sp-rec-bars { flex: 1; height: 30px; display: flex; align-items: center; gap: 2px; }
.sp-rec-bars i { flex: 1; height: 10%; min-height: 3px; border-radius: 2px; background: var(--grad); transition: height .1s; }
.sp-mention-pop { position: absolute; bottom: calc(100% + 6px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
                  box-shadow: var(--shadow-strong); padding: 6px; display: flex; flex-direction: column; max-height: 300px; overflow: auto; z-index: 5; }
.sp-mention-row { display: flex; align-items: center; gap: 8px; padding: 8px; border: none; background: none; border-radius: 12px; text-align: left; min-width: 0; }
.sp-mention-row:hover, .sp-mention-row:focus { background: var(--surface-2); }
.sp-mention-row .sp-muted { font-size: 12px; margin-left: auto; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 55%; }

/* Sheets */
.sp-backdrop { position: fixed; inset: 0; background: rgba(10, 8, 22, .42); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; align-items: flex-end;
               justify-content: center; opacity: 0; transition: opacity .2s; z-index: 50; }
.sp-backdrop.is-on { opacity: 1; }
.sp-sheet { width: min(560px, 100%); max-height: 88vh; overflow: auto; background: var(--surface); border-radius: 28px 28px 0 0; padding: 6px 16px calc(env(safe-area-inset-bottom) + 18px);
            display: flex; flex-direction: column; gap: 12px; transform: translateY(30px); transition: transform .28s cubic-bezier(.2, .8, .2, 1); }
.sp-backdrop.is-on .sp-sheet { transform: none; }
@media (min-width: 700px) { .sp-backdrop { align-items: center; } .sp-sheet { border-radius: 28px; padding-bottom: 20px; } }
.sp-grip { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 6px auto 2px; flex: none; }
.sp-sheet-title { margin: 0; font-size: 19px; }
.sp-aven-head { display: flex; align-items: center; gap: 12px; }
.sp-aven-head > div { display: flex; flex-direction: column; }
.sp-aven-head b { font-size: 17px; }
.sp-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 8px; }
.sp-actions.is-compact { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.sp-actions.is-compact .sp-action { align-items: center; text-align: center; padding: 10px 6px; }
.sp-action { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); text-align: left; transition: border-color .15s, transform .1s; }
.sp-action:hover { border-color: var(--accent); }
.sp-action:active { transform: scale(.97); }
.sp-action b { font-size: 13.5px; }
.sp-action-mark { font-size: 22px; }
.sp-action span:last-child:not(.sp-action-mark) { font-size: 12px; color: var(--muted); }
.sp-reaction-bar { display: flex; justify-content: space-between; padding: 6px 8px; border-radius: 999px; background: var(--surface-2); }
.sp-react-pick { font-size: 25px; border: none; background: none; transition: transform .12s; padding: 2px; }
.sp-react-pick:hover { transform: scale(1.25); }
.sp-preview { padding: 10px 12px; border-radius: 14px; background: var(--surface-2); font-size: 13.5px; }
.sp-preview p { margin: 2px 0 0; }
.sp-tool-row { display: flex; gap: 8px; flex-wrap: wrap; }
.sp-info-head { display: flex; align-items: center; gap: 14px; }
.sp-info-head h2 { margin: 0; }
.sp-info-head .sp-input { flex: 1; font-weight: 650; }
.sp-people { display: flex; flex-direction: column; gap: 2px; }
.sp-person-line { display: flex; align-items: center; gap: 10px; border: none; background: none; padding: 6px 4px; border-radius: 12px; text-align: left; }
.sp-person-line > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; font-size: 14px; }
.sp-person-line .sp-muted { font-size: 12px; }
.sp-online-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.sp-toggle { display: flex; align-items: center; gap: 12px; padding: 12px 0 2px; border-top: 1px solid var(--line); cursor: pointer; position: relative; }
.sp-toggle > span { flex: 1; display: flex; flex-direction: column; font-size: 14px; }
.sp-toggle > span .sp-muted { font-size: 12.5px; }
.sp-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.sp-toggle i { width: 46px; height: 28px; border-radius: 999px; background: var(--line); position: relative; transition: background .2s; flex: none; }
.sp-toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s; }
.sp-toggle input:checked + i { background: var(--accent); }
.sp-toggle input:checked + i::after { transform: translateX(18px); }
.sp-invite-link { padding: 12px 14px; border-radius: 14px; background: var(--surface-2); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; word-break: break-all; }
.sp-toast { position: fixed; left: 50%; top: calc(env(safe-area-inset-top) + 14px); transform: translate(-50%, -16px); background: var(--text); color: var(--surface); padding: 10px 16px;
            border-radius: 999px; font-size: 14px; opacity: 0; transition: .25s; z-index: 90; pointer-events: none; max-width: 90vw; text-align: center; }
.sp-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.sp-card-photo { margin: 0 -2px; border-radius: 14px; overflow: hidden; max-height: 220px; }
.sp-card-photo img { width: 100%; max-height: 220px; object-fit: cover; display: block; }

/* Cards */
.sp-card-slot { width: 100%; }
.sp-card { --c: #7c5cff; position: relative; overflow: hidden; width: min(100%, 440px); background: var(--surface); border-radius: 22px; padding: 16px 14px 14px;
           border: 1px solid color-mix(in srgb, var(--c) 20%, var(--line)); box-shadow: var(--shadow); animation: sp-pop .35s both; }
.sp-card.is-redrawn { animation: none; }
.sp-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--c), color-mix(in srgb, var(--c) 30%, #ff7aa8)); }
.sp-card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sp-card-kind { font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--c); }
.sp-card-title { margin: 4px 0 10px; font-size: 18.5px; line-height: 1.25; letter-spacing: -.01em; }
.sp-card-sub { margin: -6px 0 0; color: var(--muted); font-size: 13.5px; }
.sp-card-body { display: flex; flex-direction: column; gap: 10px; }
.sp-card-input { font-size: 15px; }
.sp-card-foot { display: flex; gap: 16px; justify-content: flex-end; margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--line); }
.sp-pill { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.sp-pill.is-busy { color: var(--c); background: color-mix(in srgb, var(--c) 12%, var(--surface)); }
.sp-pill.is-done { color: var(--green); }
.sp-q { font-weight: 700; font-size: 16px; margin: 0; }
.sp-q-small { font-weight: 650; font-size: 13.5px; margin: 0; }
.sp-q-count { font-size: 12px; color: var(--muted); font-weight: 750; font-variant-numeric: tabular-nums; }
.sp-a { margin: 0; font-weight: 650; color: var(--green); }
.sp-question { display: flex; flex-direction: column; gap: 8px; }
.sp-options { display: grid; gap: 8px; }
.sp-option { text-align: left; padding: 11px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 650; transition: transform .1s, border-color .15s, background .15s; }
.sp-option:hover { border-color: color-mix(in srgb, var(--c) 55%, var(--line)); }
.sp-option:active { transform: scale(.98); }
.sp-option.is-picked { border-color: var(--c); background: color-mix(in srgb, var(--c) 13%, var(--surface)); }
.sp-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sp-tiles .sp-option { text-align: center; min-height: 54px; }
.sp-feedback { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 16px; animation: sp-pop .35s both; }
.sp-feedback.is-right { background: color-mix(in srgb, var(--green) 13%, var(--surface)); }
.sp-feedback.is-wrong { background: color-mix(in srgb, var(--red) 11%, var(--surface)); }
.sp-feedback-mark { font-weight: 800; font-size: 17px; }
.sp-feedback-answer { font-weight: 650; }
.sp-next { align-self: flex-end; }
.sp-fact { font-size: 13px; color: var(--muted); margin: 0; }
.sp-score { font-size: 24px; font-weight: 850; text-align: center; padding: 6px 0; }
.sp-note { margin: 0; padding: 8px 12px; border-radius: 12px; background: color-mix(in srgb, var(--c, var(--accent)) 10%, var(--surface)); font-size: 13.5px; }
.sp-wait { display: flex; align-items: center; gap: 10px; color: var(--muted); padding: 8px 0; }
.sp-progress { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.sp-subject { display: flex; align-items: center; gap: 8px; }
.sp-board { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.sp-board li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; animation: sp-in .3s both; }
.sp-board li:nth-child(2) { animation-delay: .08s; } .sp-board li:nth-child(3) { animation-delay: .16s; }
.sp-board li:first-child { background: linear-gradient(90deg, rgba(245, 165, 36, .2), transparent); }
.sp-board li.is-me { box-shadow: inset 0 0 0 1.5px var(--c); }
.sp-board-name { flex: 1; font-weight: 650; }
.sp-medal { width: 24px; text-align: center; font-weight: 800; color: var(--muted); }
.sp-review { font-size: 13.5px; }
.sp-review summary { cursor: pointer; color: var(--muted); font-size: 13px; padding: 4px 0; }
.sp-review-row { display: flex; gap: 8px; padding: 6px 0; border-top: 1px dashed var(--line); }
.sp-review-row p { margin: 0; }
.sp-bars { display: flex; flex-direction: column; gap: 6px; }
.sp-bar { position: relative; border-radius: 12px; overflow: hidden; background: var(--surface-2); cursor: pointer; }
.sp-bar-fill { position: absolute; inset: 0 auto 0 0; width: var(--p); background: color-mix(in srgb, var(--c) 22%, transparent); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.sp-bar.is-top .sp-bar-fill { background: color-mix(in srgb, var(--c) 36%, transparent); }
.sp-bar-row { position: relative; display: flex; align-items: center; gap: 8px; padding: 9px 12px; }
.sp-bar-label { flex: 1; font-weight: 650; }
.sp-bar.is-mine .sp-bar-label::after { content: " ✓"; color: var(--c); }
.sp-bar-count { font-variant-numeric: tabular-nums; }
.sp-scale { display: flex; gap: 4px; flex-wrap: wrap; justify-content: space-between; }
.sp-scale-dot { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); font-weight: 750; font-size: 13px; padding: 0; }
.sp-scale-dot.is-mine { background: var(--c); color: #fff; border-color: var(--c); }
.sp-scale-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.sp-track { position: relative; height: 30px; margin: 6px 14px 0; border-radius: 999px; background: linear-gradient(90deg, #74c0fc, #b197fc, #ff8787); }
.sp-track .sp-face { position: absolute; top: 3px; transform: translateX(-50%); box-shadow: 0 0 0 2px #fff; }
.sp-avg { margin: 0; text-align: center; font-weight: 750; }
.sp-spicy { margin: 0; font-weight: 650; }
.sp-rank { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.sp-rank li { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); overflow: hidden; }
.sp-rank-label { flex: 1; font-weight: 650; }
.sp-rank-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: var(--p); background: var(--c); border-radius: 2px; }
.sp-stake { margin: 0; font-weight: 650; }
.sp-guesses { display: flex; flex-wrap: wrap; gap: 6px; }
.sp-guess { display: inline-flex; gap: 5px; align-items: center; padding: 3px 9px 3px 3px; border-radius: 999px; background: var(--surface-2); font-size: 12.5px; }
.sp-number { max-width: 160px; }
.sp-settle { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 16px; background: var(--surface-2); }
.sp-outcome { text-align: center; padding: 16px; border-radius: 20px; background: var(--grad); color: #fff; animation: sp-pop .5s both; }
.sp-outcome-emoji { font-size: 46px; line-height: 1.1; }
.sp-outcome h4 { font-size: 23px; margin: 2px 0 4px; }
.sp-outcome p { margin: 0; }
.sp-outcome .sp-muted { color: rgba(255, 255, 255, .85); }
.sp-outcomes { display: flex; flex-direction: column; }
.sp-outcome-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.sp-versus { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 8px; }
.sp-versus .sp-option { text-align: center; min-height: 76px; font-size: 16px; display: grid; place-items: center; }
.sp-vs { align-self: center; font-weight: 900; font-size: 14px; color: var(--c); }
.sp-winner { display: flex; align-items: center; gap: 10px; justify-content: center; padding: 14px; border-radius: 18px; text-align: center;
             background: linear-gradient(135deg, rgba(245, 165, 36, .2), rgba(255, 122, 168, .15)); font-size: 18px; animation: sp-pop .5s both; flex-wrap: wrap; }
.sp-trophy { font-size: 30px; }
.sp-motion, .sp-prompt { margin: 0; padding: 10px 14px; border-left: 3px solid var(--c); background: var(--surface-2); border-radius: 0 14px 14px 0; font-weight: 650; }
.sp-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sp-side { background: var(--surface-2); border-radius: 14px; padding: 8px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sp-side.is-0 { border-top: 3px solid #4dabf7; } .sp-side.is-1 { border-top: 3px solid #ff6b6b; }
.sp-side-head { display: flex; justify-content: space-between; align-items: center; gap: 4px; }
.sp-arg { display: flex; gap: 6px; font-size: 13px; align-items: flex-start; }
.sp-arg p { margin: 0; min-width: 0; word-break: break-word; }
.sp-side-pick { gap: 6px; }
.sp-side-pick .sp-option { padding: 7px 12px; }
.sp-duel { display: flex; height: 36px; border-radius: 999px; overflow: hidden; background: #ff6b6b; color: #fff; font-size: 13px; font-weight: 700; }
.sp-duel-a { width: var(--p); min-width: 30%; background: #4dabf7; display: flex; align-items: center; gap: 6px; padding: 0 12px; transition: width .6s; }
.sp-duel-b { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: 6px; padding: 0 12px; }
.sp-duel .is-win b::after { content: " 👑"; }
.sp-ruling { margin: 0; font-style: italic; line-height: 1.55; }
.sp-forfeit { margin: 0; padding: 8px 12px; border-radius: 12px; background: color-mix(in srgb, var(--gold) 15%, var(--surface)); font-size: 14px; }
.sp-claims { display: grid; gap: 8px; }
.sp-claim { padding: 10px 12px; border-radius: 14px; background: var(--surface-2); }
.sp-claim p { margin: 4px 0 0; font-size: 13.5px; }
.sp-claim.is-win { box-shadow: inset 0 0 0 2px var(--gold); }
.sp-claim-head { display: flex; justify-content: space-between; align-items: center; }
.sp-score-badge { font-weight: 800; color: var(--c); font-variant-numeric: tabular-nums; }
.sp-entries { display: grid; gap: 8px; }
.sp-entry { padding: 10px 12px; border-radius: 14px; background: var(--surface-2); display: flex; flex-direction: column; gap: 4px; }
.sp-entry p { margin: 0; white-space: pre-wrap; word-break: break-word; }
.sp-entry.is-anon { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; }
.sp-entry.is-mine { box-shadow: inset 0 0 0 1.5px var(--c); }
.sp-entry.is-win { background: linear-gradient(135deg, rgba(245, 165, 36, .22), rgba(255, 122, 168, .14)); }
.sp-entry-head { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.sp-entry-votes { margin-left: auto; color: var(--muted); font-size: 12px; }
.sp-comment { font-size: 12.5px; color: var(--muted); }
.sp-made { padding: 14px; border-radius: 18px; background: linear-gradient(135deg, color-mix(in srgb, var(--c) 14%, var(--surface)), var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 25%, var(--line)); animation: sp-pop .45s both; }
.sp-made h4 { margin: 0 0 6px; font-size: 16px; }
.sp-made-text { white-space: pre-wrap; margin: 0; line-height: 1.55; }
.sp-answers { display: flex; flex-direction: column; gap: 6px; }
.sp-answer { display: flex; gap: 8px; font-size: 13.5px; align-items: flex-start; }
.sp-answer p { margin: 0; }
.sp-statements { display: grid; gap: 6px; }
.sp-statement { margin: 0; padding: 9px 12px; border-radius: 12px; background: var(--surface-2); text-align: left; border: 1.5px solid transparent; font-size: 14px; }
.sp-statement.is-button:hover { border-color: var(--c); }
.sp-statement.is-lie { border-color: var(--red); }
.sp-statement.is-lie::after { content: " 🤥"; }
.sp-statement.is-true::after { content: " ✓"; color: var(--green); }
.sp-statement.is-picked { box-shadow: 0 0 0 2px var(--c); }
.sp-set { display: flex; flex-direction: column; gap: 6px; }
.sp-set-head { display: flex; align-items: center; gap: 6px; }
.sp-lie { width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); flex: none; }
.sp-lie.is-on { border-color: var(--red); background: color-mix(in srgb, var(--red) 10%, var(--surface)); }
.sp-secret-box { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px; border-radius: 18px;
                 background: repeating-linear-gradient(45deg, var(--surface-2), var(--surface-2) 10px, var(--surface) 10px, var(--surface) 20px); }
.sp-secret { font-size: 20px; font-weight: 850; padding: 10px 20px; border-radius: 14px; border: none; background: var(--text); color: var(--surface); }
.sp-secret.is-on { background: var(--grad); color: #fff; font-size: 24px; letter-spacing: .04em; }
.sp-santa { font-size: 17px; }
.sp-players { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.sp-player { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 6px; border-radius: 16px; background: var(--surface-2); font-size: 12.5px; text-align: center; border: 1.5px solid transparent; }
.sp-player i { font-size: 12px; word-break: break-word; }
.sp-player.is-button { cursor: pointer; }
.sp-player.is-button:hover { border-color: color-mix(in srgb, var(--c) 50%, transparent); }
.sp-player.is-picked { border-color: var(--c); }
.sp-player.is-spy { background: linear-gradient(135deg, #26242f, #4a4458); color: #fff; }
.sp-book { max-height: 380px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 16px; background: #fbf6ea; color: #3b2f1e;
           font-family: "Iowan Old Style", Palatino, "Songti SC", "STSong", Georgia, serif; }
@media (prefers-color-scheme: dark) { .sp-book { background: #2a2419; color: #efe3c8; } }
.sp-page p, .sp-scene p { margin: 0; line-height: 1.65; font-size: 15px; }
.sp-scene + .sp-scene { padding-top: 12px; border-top: 1px dashed color-mix(in srgb, currentColor 16%, transparent); }
.sp-scene .sp-option { font-family: var(--font); font-size: 14px; background: rgba(255, 255, 255, .7); color: #3b2f1e; }
@media (prefers-color-scheme: dark) { .sp-scene .sp-option { background: rgba(0, 0, 0, .25); color: #efe3c8; } }
.sp-scene .sp-options { margin-top: 10px; }
.sp-chosen { font-style: italic; opacity: .75; margin-top: 6px !important; }
.sp-the-end { text-align: center; font-family: Georgia, serif; letter-spacing: .3em; margin: 0; color: var(--muted); }
.sp-draw { min-height: 72px; display: grid; place-items: center; position: relative; width: 100%; }
.sp-reel { font-size: 26px; font-weight: 850; animation: sp-shake .08s infinite alternate; }
.sp-teams { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; width: 100%; }
.sp-team { padding: 10px; border-radius: 14px; background: var(--surface-2); display: flex; flex-direction: column; gap: 6px; }
.sp-team-member { display: flex; gap: 6px; align-items: center; font-size: 13.5px; }
.sp-meter { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.sp-meter span { display: block; height: 100%; width: var(--p); background: var(--grad); transition: width .4s; }
.sp-checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.sp-checklist li { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 1px solid var(--line); }
.sp-checklist li.is-done .sp-list-text { text-decoration: line-through; color: var(--muted); }
.sp-list-text { flex: 1; min-width: 0; }
.sp-check { width: 26px; height: 26px; border-radius: 8px; border: 1.5px solid var(--line); background: var(--surface); padding: 0; flex: none; font-weight: 800; color: #fff; }
.sp-check.is-on { background: var(--green); border-color: var(--green); }
.sp-claimed { display: flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--muted); }
.sp-plan-head { display: flex; gap: 10px; align-items: center; }
.sp-plan-head p { margin: 0; }
.sp-plan-emoji { font-size: 32px; }
.sp-locked { padding: 10px 12px; border-radius: 14px; background: color-mix(in srgb, var(--green) 14%, var(--surface)); display: flex; flex-direction: column; gap: 2px; }
.sp-locked p { margin: 0; }
.sp-best { display: flex; flex-direction: column; }
.sp-small { font-size: 12.5px; margin: 0; }
.sp-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; animation: sp-in .25s both; }
.sp-quick[hidden] { display: none; }
.sp-quick-chip { border: 1.5px solid color-mix(in srgb, var(--accent) 45%, var(--line)); background: var(--surface); color: var(--accent); border-radius: 999px;
                 padding: 7px 13px; font: inherit; font-size: 13.5px; font-weight: 650; box-shadow: 0 2px 8px rgba(124, 92, 255, .08); }
.sp-quick-chip:active { transform: scale(.96); }
.sp-q.is-emoji { font-size: 38px; letter-spacing: .08em; text-align: center; padding: 6px 0 2px; }
/* Trips: facts, a day-by-day timeline, what to book */
.sp-trip-facts { display: flex; flex-wrap: wrap; gap: 6px; }
.sp-trip-fact { font-size: 12.5px; font-weight: 650; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--c) 10%, var(--surface)); color: var(--text); }
.sp-trip-summary { margin: 0; color: var(--muted); font-size: 14px; }
.sp-trip-day { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; }
.sp-trip-day[open] { border-color: color-mix(in srgb, var(--c) 35%, var(--line)); box-shadow: 0 6px 18px rgba(36, 24, 90, .06); }
.sp-trip-day summary { display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; list-style: none; font-size: 14px; }
.sp-trip-day summary::-webkit-details-marker { display: none; }
.sp-trip-day summary::after { content: "›"; margin-left: auto; color: var(--muted); font-size: 18px; transition: transform .2s; }
.sp-trip-day[open] summary::after { transform: rotate(90deg); }
.sp-trip-n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 12px; font-weight: 800; flex: none; }
.sp-timeline { list-style: none; margin: 0; padding: 2px 14px 14px; display: flex; flex-direction: column; gap: 14px; }
.sp-timeline li { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 12px; align-items: start; position: relative; }
.sp-timeline li:not(:last-child)::before { content: ""; position: absolute; left: 4px; top: 16px; bottom: -16px; width: 2px; border-radius: 2px;
                                           background: color-mix(in srgb, var(--c) 18%, var(--line)); }
.sp-dot { width: 10px; height: 10px; margin-top: 4px; border-radius: 50%; background: var(--c); position: relative; z-index: 1;
          box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 14%, var(--surface)); }
.sp-time { font-size: 11.5px; font-weight: 750; color: var(--c); letter-spacing: .02em; }
.sp-stop { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sp-stop-what { font-size: 14.5px; line-height: 1.35; overflow-wrap: anywhere; }
.sp-stop-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.sp-stop-meta .sp-place-link { max-width: 100%; }
.sp-cost-tag { font-size: 12px; color: var(--muted); background: var(--surface-2); border-radius: 999px; padding: 1px 8px; font-variant-numeric: tabular-nums; }
.sp-stop-line { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 14px; }
.sp-stop-line > b { flex: 1; min-width: 0; }
.sp-cost { font-size: 12px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; flex: none; max-width: 45%; overflow: hidden; text-overflow: ellipsis; }
.sp-place-link { font-size: 12.5px; font-weight: 650; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-tip { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.sp-tobook-link { font-weight: 650; text-decoration: none; color: var(--text); }
.sp-tobook li { gap: 10px; }
.sp-trip-tips ul { margin: 4px 0 0; padding-left: 18px; font-size: 13.5px; display: flex; flex-direction: column; gap: 4px; }
.sp-refine { flex-wrap: nowrap; }
.sp-refine .sp-input { padding: 9px 12px; font-size: 14px; }
.sp-sources { margin: 0; font-size: 11.5px; color: var(--muted); }
.sp-sources a { color: var(--muted); }
/* Meetups: tap the times that work, pick a place, it locks itself */
.sp-meet-what { margin: -4px 0 0; font-size: 14px; }
.sp-slots, .sp-places { display: flex; flex-direction: column; gap: 8px; }
.sp-slot { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); font: inherit;
           color: var(--text); text-align: left; transition: transform .1s, border-color .15s, background .15s; }
.sp-slot:active, .sp-place:active { transform: scale(.98); }
.sp-slot.is-on { border-color: var(--c); background: color-mix(in srgb, var(--c) 11%, var(--surface)); }
.sp-slot-check { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line); display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #fff; flex: none; }
.sp-slot.is-on .sp-slot-check { background: var(--c); border-color: var(--c); }
.sp-slot-label { flex: 1; font-weight: 650; font-size: 14.5px; }
.sp-slot-n { font-size: 13px; color: var(--c); min-width: 14px; text-align: right; }
.sp-none { align-self: flex-start; font-size: 12.5px; }
.sp-place { display: flex; justify-content: space-between; gap: 10px; padding: 11px 12px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface);
            font: inherit; color: var(--text); text-align: left; transition: transform .1s, border-color .15s, background .15s; }
.sp-place.is-on { border-color: var(--c); background: color-mix(in srgb, var(--c) 11%, var(--surface)); }
.sp-place-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sp-place-main p { margin: 2px 0 0; color: var(--text); }
.sp-place-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 6px; flex: none; }
.sp-meet-locked { gap: 6px; padding: 14px; }
.sp-meet-locked b { font-size: 17px; }
/* Ask Aven: one box, plus what Aven suggests for this moment */
.sp-ask-row { display: flex; gap: 8px; align-items: flex-end; }
.sp-ask-row .sp-input { flex: 1; min-height: 52px; }
.sp-ask-send { width: 48px; height: 48px; padding: 0; font-size: 20px; flex: none; }
.sp-ideas { display: flex; flex-direction: column; gap: 8px; }
.sp-idea { text-align: left; padding: 12px 14px; border-radius: 16px; border: 1.5px solid color-mix(in srgb, var(--accent) 22%, var(--line)); background: var(--surface);
           font: inherit; font-weight: 650; font-size: 15px; color: var(--text); box-shadow: 0 2px 10px rgba(124, 92, 255, .06); transition: transform .1s, border-color .15s; }
.sp-idea:hover { border-color: var(--accent); }
.sp-idea:active { transform: scale(.98); }
.sp-ideas.is-new .sp-idea { animation: sp-in .25s both; }
.sp-ideas-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.sp-ideas-head .sp-label { margin: 0; }
.sp-ideas-thinking { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); animation: sp-in .2s both; }
.sp-ideas-thinking[hidden] { display: none; }
.sp-ask-aven { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; border-radius: 18px; border: 1.5px solid color-mix(in srgb, var(--accent) 35%, var(--line));
               background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, var(--surface)), var(--surface)); font: inherit; color: var(--text); text-align: left; }
.sp-ask-aven b { flex: 1; font-size: 15px; }
/* The board: one line under the title */
.sp-board-bar { padding: 6px 12px 0; }
.sp-board-bar[hidden] { display: none; }
.sp-board-pill { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 12px; border-radius: 14px; border: 1px solid var(--line); font: inherit; color: var(--text);
                 background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); text-align: left;
                 box-shadow: 0 4px 14px rgba(36, 24, 90, .06); animation: sp-in .3s both; }
.sp-board-text { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-board-count { min-width: 20px; height: 20px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11.5px; font-weight: 800; display: grid; place-items: center; padding: 0 6px; }
.sp-board-section { display: flex; flex-direction: column; gap: 2px; }
.sp-board-dot { width: 26px; text-align: center; flex: none; }
.sp-pinned { align-self: center; border: 1px dashed color-mix(in srgb, var(--accent) 40%, var(--line)); background: color-mix(in srgb, var(--accent) 6%, var(--surface));
             color: var(--text); font: inherit; font-size: 12.5px; font-weight: 650; border-radius: 999px; padding: 5px 12px; animation: sp-pop .35s both; }
/* Picks: researched options to vote on, Aven's crowned */
.sp-picks { display: flex; flex-direction: column; gap: 8px; }
.sp-pick { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); font: inherit;
           color: var(--text); text-align: left; transition: transform .1s, border-color .15s, background .15s; }
.sp-pick:active:not(:disabled) { transform: scale(.98); }
.sp-pick.is-top { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); }
.sp-pick.is-on { border-color: var(--c); background: color-mix(in srgb, var(--c) 9%, var(--surface)); }
.sp-pick.is-winner { border-color: var(--green); background: color-mix(in srgb, var(--green) 10%, var(--surface)); }
.sp-pick:disabled { opacity: 1; cursor: default; }
.sp-pick-emoji { font-size: 28px; line-height: 1; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--surface-2); flex: none; }
.sp-pick-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.sp-pick-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 15px; }
.sp-crown { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: linear-gradient(135deg, #ffd166, #ff9f43); color: #4a2a00; }
.sp-pick-why { margin: 0; font-size: 13.5px; color: var(--muted); }
.sp-pick-meta { display: flex; flex-wrap: wrap; gap: 5px; }
.sp-meta { font-size: 11.5px; font-weight: 650; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); max-width: 100%;
           overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-pick-foot { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.sp-pick-foot .sp-place-link { margin-left: auto; }
.sp-verdict-line { margin: 0; font-size: 13.5px; font-weight: 650; color: var(--text); }
/* Guides: what you need, then steps each person ticks off */
.sp-guide-progress { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: center; }
.sp-guide-progress b { justify-self: end; font-size: 13px; color: var(--c); }
.sp-meter { grid-column: 1 / -1; height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.sp-meter-fill { display: block; height: 100%; width: var(--p, 0%); background: var(--grad); transition: width .4s; }
.sp-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sp-step { display: flex; gap: 12px; width: 100%; padding: 12px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); font: inherit;
           color: var(--text); text-align: left; transition: background .15s, border-color .15s; }
.sp-step.is-on { background: color-mix(in srgb, var(--green) 8%, var(--surface)); border-color: color-mix(in srgb, var(--green) 45%, var(--line)); }
.sp-step.is-on .sp-step-main { opacity: .65; }
.sp-step-n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--surface-2); flex: none; }
.sp-step.is-on .sp-step-n { background: var(--green); color: #fff; }
.sp-step-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sp-step-main p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.sp-along { display: flex; align-items: center; gap: 8px; }
/* Sync: secret answers, then who's most in sync */
.sp-sync-pairs { display: flex; flex-direction: column; gap: 8px; }
.sp-sync-pair { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; border: 1px solid var(--line); overflow: hidden; }
.sp-sync-pair::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); background: color-mix(in srgb, #ff7aa8 16%, transparent); }
.sp-sync-pair > * { position: relative; }
.sp-sync-pair.is-me { border-color: color-mix(in srgb, #ff7aa8 50%, var(--line)); }
.sp-sync-names { flex: 1; font-weight: 650; font-size: 14px; }
.sp-sync-score { font-size: 18px; color: #e64980; }
.sp-sync-rows { display: flex; flex-direction: column; gap: 6px; }
.sp-sync-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); }
.sp-sync-row.is-same { background: color-mix(in srgb, #ff7aa8 12%, var(--surface)); }
.sp-sync-row .sp-q-small { grid-column: 1; }
.sp-sync-answers { grid-column: 1; display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; }
.sp-sync-answer { display: inline-flex; align-items: center; gap: 5px; }
.sp-sync-mark { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 18px; }
.sp-best-row { display: flex; align-items: center; gap: 8px; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.sp-best-row > span:first-child { flex: 1; font-weight: 650; }
.sp-activity { font-size: 12.5px; color: var(--muted); margin: 0; }
.sp-remind { display: flex; gap: 12px; align-items: center; }
.sp-remind p { margin: 0; }
.sp-remind-bell { font-size: 32px; animation: sp-ring 2.6s infinite; transform-origin: 50% 10%; }
.sp-confetti { position: absolute; left: 50%; top: 45%; pointer-events: none; z-index: 3; }
.sp-confetti i { position: absolute; font-style: normal; font-size: 18px; animation: sp-burst 1.3s cubic-bezier(.1, .8, .3, 1) forwards; }

@keyframes sp-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes sp-pop { 0% { transform: scale(.94); opacity: 0; } 65% { transform: scale(1.015); opacity: 1; } 100% { transform: none; } }
@keyframes sp-float { 50% { transform: translateY(-6px); } }
@keyframes sp-dots { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes sp-glow { 50% { box-shadow: 0 6px 24px rgba(255, 122, 168, .5); } }
@keyframes sp-burst { to { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 0; } }
@keyframes sp-ring { 0%, 78%, 100% { transform: rotate(0); } 84% { transform: rotate(14deg); } 90% { transform: rotate(-12deg); } 96% { transform: rotate(6deg); } }
@keyframes sp-shake { from { transform: translateY(-1px); filter: blur(.4px); } to { transform: translateY(1px); filter: blur(0); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@keyframes sp-spin { to { transform: rotate(360deg); } }
@keyframes sp-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes sp-nudge { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
/* A card inside the iOS app */
body.sp.sp-embed { background: transparent; background-image: none; overflow: hidden; -webkit-user-select: none; user-select: none; }
.sp-embed #card { padding: 2px 1px 6px; }
.sp-embed .sp-card { margin: 0; box-shadow: none; }
