/* ==========================================================================
   SIFOR UI — "Sticker Hive" design system (single light theme)
   Source of truth: SIFOR_UI_Kit/Tokens/design_tokens.css + reference screens.
   Loaded AFTER style.css / css/sticker-hive.css on every page, so it remaps
   legacy variables and restyles legacy markup without touching their logic.
   ========================================================================== */

:root,
html[data-theme],
[data-theme="light"],
[data-theme="dark"] {
  color-scheme: light;

  --sifor-ink: #171719;
  --sifor-background: #FFFFFF;
  --sifor-brand-cyan: #3CC2E8;
  --sifor-brand-pink: #FF1694;
  --sifor-brand-mint: #50F5BC;
  --sifor-brand-purple: #9B4DFF;
  --sifor-brand-yellow: #FFE24C;
  --sifor-soft-lilac: #F5F1FF;
  --sifor-soft-pink: #FFE6F3;
  --sifor-soft-mint: #DDFBEF;
  --sifor-soft-yellow: #FFF6BF;
  --sifor-soft-cyan: #DDF5FC;
  --sf-surface-neutral: #F7F6FA;
  --sifor-card-outline: #28252D;
  --sifor-muted-text: #817A95;
  --sifor-positive: #26D99D;
  --sifor-radius-card: 24px;
  --sifor-radius-input: 28px;
  --sifor-radius-pill: 999px;
  --sifor-tap-min: 44px;
  --sifor-border: 2.5px;
  --sifor-font-display: 'Lilita One', 'Fredoka', system-ui, sans-serif;
  --sifor-font-ui: 'Nunito', 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* remap the legacy tokens used all over style.css */
  --color-bg: #FFFFFF;
  --color-surface: #FFFFFF;
  --color-surface-2: var(--sifor-soft-lilac);
  --color-surface-3: var(--sifor-soft-pink);
  --color-border: #E7E1F2;
  --color-border-strong: var(--sifor-ink);
  --border-ink: var(--sifor-ink);
  --border-w: 2.5px;
  --color-text: var(--sifor-ink);
  --color-text-muted: var(--sifor-muted-text);
  --color-text-soft: #A59EB8;
  --color-primary: var(--sifor-brand-pink);
  --color-primary-hover: #E60F85;
  --color-primary-ink: #B00C66;
  --color-primary-soft: var(--sifor-soft-pink);
  --color-accent: var(--sifor-brand-yellow);
  --color-accent-ink: #B89A00;
  --color-accent-soft: var(--sifor-soft-yellow);
  --color-teal: var(--sifor-brand-mint);
  --color-teal-soft: var(--sifor-soft-mint);
  --color-grape: var(--sifor-brand-purple);
  --color-grape-soft: var(--sifor-soft-lilac);
  --color-success: var(--sifor-positive);
  --font-display: var(--sifor-font-display);
  --font-body: var(--sifor-font-ui);
  --radius-lg: 20px;
  --radius-xl: 24px;

  /* Shared layout & safe-area variables */
  --sf-safe-top: env(safe-area-inset-top, 0px);
  --sf-safe-bottom: env(safe-area-inset-bottom, 0px);
  --sf-header-h: 54px;
  --sf-tabbar-base-h: 62px;
  --sf-tabbar-h: 62px;
  --sf-footer-total-h: calc(var(--sf-tabbar-base-h) + var(--sf-safe-bottom));
  --sf-footer-offset: var(--sf-footer-total-h);
}

/* ---------- page canvas ---------- */
html, body {
  background: #fff !important;
  color: var(--sifor-ink);
  font-family: var(--sifor-font-ui);
  font-weight: 600;
  /* No UA 8px margin: the shared header/tab bar must be edge-to-edge on every page. */
  margin: 0;
}
.bg-fx, .cursor-glow, .bg-fx::before, .bg-fx::after { display: none !important; }
body { padding-bottom: calc(var(--sf-footer-total-h, 62px) + 34px); }
h1, h2, h3, .sf-display { font-family: var(--sifor-font-display); font-weight: 400; letter-spacing: .01em; }

/* old chrome that the new header/tab bar replaces */
.app-header .brand-tagline,
.app-header .header-chips,
.app-header .model-badge,
.sifor-shell-header .brand-tagline,
.sifor-shell-header .sifor-nav,
.sifor-shell-header .sifor-menu-btn,
.theme-toggle, .logo-for-dark,
.sifor-hive-tap-hint,
.footer-nav, .sifor-tabbar { display: none !important; }

/* ---------- header: [spacer] Snackables [share] ---------- */
.sf-header {
  width: 100%; box-sizing: border-box;
  position: sticky; top: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: max(4px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right, 0px)) 4px max(12px, env(safe-area-inset-left, 0px));
  min-height: 50px;
  background: #0B0C14;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.12);
  max-width: none; margin: 0; left: 0; right: 0; align-self: stretch;
}
.sf-header > :first-child { justify-self: start; }
.sf-header .sf-header-spacer { grid-column: 1; justify-self: start; width: 44px; height: 1px; pointer-events: none; }
.sf-header a.sf-logo, .sf-header .sf-logo { grid-column: 2; justify-self: center; display: block; line-height: 0; position: relative; }
.sf-header > :last-child, .sf-header .sf-header-right { grid-column: 3; justify-self: end; display: inline-flex; align-items: center; gap: 6px; }
.sf-header .sf-logo img, .sf-header .sf-logo .sf-logo-img { height: auto; max-height: 36px; width: auto; max-width: min(176px, 44vw); object-fit: contain; display: block; }
.sf-header .sf-deco, .sf-header .sf-deco-swirl, .sf-header .sf-deco-star, .sf-header .sf-deco-burst, .sf-header .sf-deco-heart, .sf-header .sf-deco-bolt { display: none !important; }
.app-header { display: none !important; }

.sf-icon-btn {
  width: 44px; height: 44px; min-width: 44px; min-height: 44px; border-radius: 999px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: var(--sifor-ink);
  border: var(--sifor-border) solid var(--sifor-ink);
  box-shadow: 0 2px 0 rgba(23,23,25,.12);
  cursor: pointer; position: relative; text-decoration: none;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.sf-header .sf-icon-btn {
  background: #191B28;
  color: #F8FAFC;
  border: 2px solid rgba(255, 255, 255, 0.32);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.65);
}
.sf-header .sf-icon-btn:hover,
.sf-header .sf-icon-btn:focus-visible {
  background: #242738;
  border-color: rgba(255, 255, 255, 0.55);
}
.sf-icon-btn.is-active,
body.sf-search-open .sf-header [data-sf-search],
body.sf-searching .sf-header [data-sf-search] {
  background: #2D1832;
  color: #FF2E9B;
  border-color: #FF2E9B;
}
.sf-icon-btn:active { transform: scale(.92); }
.sf-icon-btn svg, .sf-ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.sf-icon-btn .sf-dot { position: absolute; top: 4px; right: 4px; width: 11px; height: 11px; border-radius: 50%; background: var(--sifor-brand-pink); border: 2px solid #0B0C14; }

/* ---------- bottom nav: Discover · + Create · My Post ---------- */
.sf-tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px;
  height: calc(62px + env(safe-area-inset-bottom));
  padding: 4px max(12px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom) max(12px, env(safe-area-inset-left, 0px));
  background: #0B0C14; border-top: 1.5px solid rgba(255, 255, 255, 0.14);
  max-width: 640px; margin: 0 auto;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -8px 26px rgba(0, 0, 0, 0.55);
  box-sizing: border-box;
}
.sf-tab-create-pill {
  flex-direction: row !important;
  gap: 6px !important;
  min-height: 44px;
  padding: 0 18px !important;
  border-radius: 999px !important;
  background: var(--sifor-brand-pink, #FF1694) !important;
  color: #FFFFFF !important;
  border: 2px solid #FFFFFF !important;
  box-shadow: 0 3px 0 #171719, 0 6px 16px rgba(255, 22, 148, 0.42);
  font-family: var(--sifor-font-ui, 'Fredoka', system-ui, sans-serif);
  font-size: 14px !important;
  font-weight: 900 !important;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transform: translateY(-2px);
  transition: transform .14s ease, filter .14s ease, box-shadow .14s ease !important;
}
.sf-tab-create-pill .sf-create-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}
.sf-tab-create-pill:hover,
.sf-tab-create-pill:focus-visible {
  background: #FF2E9B !important;
  color: #FFFFFF !important;
  filter: brightness(1.05);
}
.sf-tab-create-pill:active {
  transform: translateY(1px) scale(0.97);
  box-shadow: 0 1px 0 #171719;
}
.sf-tab-create-pill.is-active {
  background: #FFE24C !important;
  color: #171719 !important;
  border-color: #171719 !important;
}
.sf-tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 44px; min-width: 44px; padding: 4px 8px 6px;
  color: rgba(255, 255, 255, 0.88); text-decoration: none; font-weight: 800; font-size: 11.5px;
  background: none; border: 0; border-radius: 14px; cursor: pointer; position: relative;
  transition: color .15s ease, background .15s ease;
}
.sf-tab:hover, .sf-tab:focus-visible {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
}
.sf-tab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.sf-tab.is-active { color: #FF2E9B; }
.sf-tab.is-active svg { fill: rgba(255, 22, 148, 0.28); stroke: #FF2E9B; }
.sf-tab-create { justify-content: flex-end; padding-bottom: 4px; }
.sf-tab-create { overflow: visible; background: none; border: 0; padding: 0; }
.sf-tab-create img { width: 68px; height: 92px; object-fit: contain; margin-top: -36px; filter: drop-shadow(0 4px 0 rgba(255,22,148,.35)); transition: transform .18s var(--ease-bounce, ease); pointer-events: none; }
.sf-tab-create:active img { transform: scale(.9) rotate(-4deg); }
.sf-tab-create .sf-open { display: none; }
.sf-tab-create.is-active .sf-open, .sf-tab-create.is-pressed .sf-open { display: block; }
.sf-tab-create.is-active .sf-closed, .sf-tab-create.is-pressed .sf-closed { display: none; }
.sf-tab-create.is-pressed img { transform: scale(.88) rotate(-4deg); }

/* ---------- buttons, chips, fields ---------- */
.sf-btn, .btn, .sifor-hive-cta-btn {
  min-height: var(--sifor-tap-min);
  border-radius: 999px !important;
  border: var(--sifor-border) solid var(--sifor-ink) !important;
  font-family: var(--sifor-font-ui); font-weight: 900; font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 20px; cursor: pointer; text-decoration: none;
  box-shadow: 0 3px 0 var(--sifor-ink) !important;
  background: #fff; color: var(--sifor-ink);
  transition: transform .12s ease, box-shadow .12s ease;
}
.sf-btn:active, .btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--sifor-ink) !important; }
.sf-btn-primary, .btn-primary { background: var(--sifor-brand-pink) !important; color: #fff !important; }
.sf-btn-soft, .btn-soft { background: var(--sifor-soft-lilac) !important; }
.btn-ghost { background: transparent !important; box-shadow: none !important; border-color: transparent !important; }
.btn-accent { background: var(--sifor-brand-yellow) !important; }
.btn-danger { background: #fff !important; color: #D8164D !important; border-color: #D8164D !important; box-shadow: 0 3px 0 #D8164D !important; }

.sf-chip, .keys-chip, .sifor-hive-chip, .sifor-hive-stage-pill {
  min-height: 44px; padding: 0 16px; border-radius: 999px !important;
  border: 2px solid #E7E1F2 !important; background: #F7F5FA !important; color: var(--sifor-ink) !important;
  font-family: var(--sifor-font-ui); font-weight: 800; font-size: 14px; box-shadow: none !important; outline: none !important;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.sf-chip:focus, .sf-chip:focus-visible, .sifor-hive-chip:focus, .sifor-hive-chip:focus-visible, .keys-chip:focus, .keys-chip:focus-visible, .sifor-hive-stage-pill:focus, .sifor-hive-stage-pill:focus-visible {
  outline: none !important; box-shadow: none !important;
}
.sf-chip.is-active, .sifor-hive-chip.is-active, .keys-chip.is-active {
  background: var(--sifor-brand-pink) !important; color: #fff !important; border-color: var(--sifor-brand-pink) !important;
  box-shadow: none !important; outline: none !important;
}

.sf-field, .sifor-hive-search, .platform-key-input, input[type="search"], input[type="text"], input[type="email"], textarea, select {
  font-family: var(--sifor-font-ui); font-weight: 700; color: var(--sifor-ink);
}
.sifor-hive-search, .sf-field-input {
  width: 100%; min-height: 52px; border-radius: var(--sifor-radius-input) !important;
  border: var(--sifor-border) solid var(--sifor-ink) !important; background: #fff !important;
  padding: 0 18px 0 48px !important; font-size: 16px; box-shadow: 0 3px 0 rgba(23,23,25,.12);
}
.sifor-hive-search::placeholder, .sf-field-input::placeholder { color: #B3ADC6; font-weight: 700; }
.sf-field { position: relative; display: flex; align-items: center; background: #fff; border: var(--sifor-border) solid var(--sifor-ink); border-radius: var(--sifor-radius-input); min-height: 56px; padding: 6px 8px 6px 14px; gap: 10px; box-shadow: 0 3px 0 rgba(23,23,25,.12); }
.sf-field .sf-ico { color: var(--sifor-ink); flex: none; }
.sf-field input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 15px; font-weight: 800; min-width: 0; }
.sf-send { width: 44px; height: 44px; border-radius: 50%; background: var(--sifor-brand-pink); color: #fff; border: 2px solid var(--sifor-ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.sf-send svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.sf-card { background: #fff; border: var(--sifor-border) solid var(--sifor-ink); border-radius: var(--sifor-radius-card); padding: 16px; box-shadow: 0 4px 0 rgba(23,23,25,.1); }
.sf-pill-note { display: inline-block; background: #FFC7E4; color: var(--sifor-ink); font-weight: 800; font-size: 13px; padding: 6px 14px; border-radius: 6px 14px 8px 14px; transform: rotate(-.6deg); }

/* stat tiles (profile) — unified neutral surface with restrained brand pink accent */
.sf-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sf-stat,
.sf-stat.c1,
.sf-stat.c2,
.sf-stat.c3,
.sf-stat.c4 {
  background: var(--sf-surface-neutral, #F7F6FA);
  border: 2px solid var(--sifor-ink, #171719);
  box-shadow: 0 3px 0 rgba(23,23,25,.12);
  border-radius: 18px;
  padding: 10px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-weight: 900;
  font-size: 18px;
  line-height: 1.1;
  color: var(--sifor-ink, #171719);
  transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease, background .14s ease;
}
.sf-stat small { font-size: 11px; font-weight: 800; color: #5d566f; }
.sf-stat .sf-ico { width: 22px; height: 22px; color: var(--sifor-ink, #171719); }
.sf-stat[data-sf-open-connections],
.sf-stat[role="button"] { cursor: pointer; }
.sf-stat[data-sf-open-connections]:hover,
.sf-stat[role="button"]:hover,
.sf-stat[data-sf-open-connections]:focus-visible,
.sf-stat[role="button"]:focus-visible,
.sf-stat.is-active {
  border-color: var(--sifor-brand-pink, #FF1694);
  box-shadow: 0 3px 0 var(--sifor-brand-pink, #FF1694);
  outline: none;
}
.sf-stat[data-sf-open-connections]:active,
.sf-stat[role="button"]:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--sifor-brand-pink, #FF1694);
}

/* toggles */
.sf-toggle { position: relative; width: 56px; height: 32px; flex: none; }
.sf-toggle input { opacity: 0; position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.sf-toggle i { position: absolute; inset: 0; border-radius: 999px; background: #E7E1F2; border: 2px solid var(--sifor-ink); transition: background .2s; }
.sf-toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--sifor-ink); transition: transform .2s; }
.sf-toggle input:checked + i { background: var(--sifor-brand-pink); }
.sf-toggle input:checked + i::after { transform: translateX(24px); }

/* made-with + eye badges (feed) */
.sf-badge-eye { display: inline-flex; align-items: center; gap: 4px; background: rgba(255,255,255,.95); border-radius: 999px; padding: 3px 9px; font-weight: 900; font-size: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.sf-badge-eye svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.sf-made { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 3px 10px; font-weight: 900; font-size: 11px; line-height: 1.1; }
.sf-made.chatgpt { background: var(--sifor-brand-mint); color: var(--sifor-ink); }
.sf-made.grok { background: var(--sifor-ink); color: #fff; }

/* ---------- feed hive (existing JS renders .sifor-hive-row/cell) ---------- */
.gallery-home, #galleryHome { max-width: 1200px; margin: 0 auto; }
.sifor-hive-hero, .sifor-hive-hero-card { display: none !important; }
.sifor-hive-controls { display: flex; flex-direction: column; gap: 10px; padding: 0 14px; }
.sifor-hive-filter-row { display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px 6px; }
.sifor-hive-filter-row::-webkit-scrollbar { display: none; }
.sifor-hive-search-wrap { position: relative; display: flex; flex-direction: column; gap: 6px; }
.sifor-hive-search-wrap::before {
  content: ""; position: absolute; left: 17px; top: 16px; width: 22px; height: 22px; z-index: 2; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23171719' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") center/contain no-repeat;
}
.sifor-hive-style-select, #siforHiveCount, .sifor-hive-subtitle { display: none !important; }

.sifor-honeycomb-grid {
  padding: 8px 10px 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}
.sifor-hive-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 0 !important;
  width: 100%;
}
.sifor-hive-row + .sifor-hive-row {
  margin-top: 0 !important;
}
.sifor-hive-row.is-hero-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.sifor-hive-row.is-staggered-duo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 0 4%;
}
.sifor-hive-row.is-collage-lanes {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.94fr) minmax(0, 1.04fr);
  gap: 8px;
  align-items: start;
  width: 100%;
}
.sifor-collage-lane {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  width: 100%;
}
.sifor-collage-lane.lane-0 { padding-top: 0; }
.sifor-collage-lane.lane-1 { padding-top: 38px; }
.sifor-collage-lane.lane-2 { padding-top: 12px; }

.sifor-hive-cell {
  position: relative;
  flex: 1 1 0;
  width: 100% !important;
  max-width: 260px;
  margin: 0 !important;
  margin-top: var(--cell-stagger-y, var(--cell-extra-gap, 0px)) !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 6px 4px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible !important;
}
.sifor-hive-row.is-hero-pair > .sifor-hive-cell,
.sifor-hive-row.is-staggered-duo > .sifor-hive-cell,
.sifor-collage-lane > .sifor-hive-cell {
  flex: none !important;
  max-width: 100% !important;
}

/* Strictly NO colored circles behind stickers */
.sifor-hive-cell::before,
.sifor-hive-cell::after,
.sifor-hive-sticker-diecut::before {
  display: none !important;
  content: none !important;
}

/* Halo removed: no colored wash behind feed stickers */
.sf-sticker-aura { display: none !important; animation: none !important; }

.sf-cell-sparkle { position: absolute; z-index: 2; pointer-events: none; opacity: .88; animation: sf-sparkle-float 3.4s ease-in-out infinite; }
.sf-cell-sparkle.s1 { width: 15px; height: 15px; top: 5%; right: 6%; }
.sf-cell-sparkle.s2 { width: 12px; height: 12px; bottom: 24%; left: 5%; animation-delay: 1.4s; }
@keyframes sf-sparkle-float {
  0%, 100% { transform: translateY(0) scale(1) rotate(-6deg); }
  50% { transform: translateY(-5px) scale(1.15) rotate(8deg); }
}
.sifor-hive-creator-row span[title] { display: none; }
.sifor-hive-constellation-partner-orb { display: none; }
.sifor-hive-section, .gallery-home .sifor-hive-section { padding-top: 0 !important; margin-top: 0 !important; }
.gallery-home { padding-top: 4px !important; }
.sifor-hive-sticker-diecut {
  position: relative;
  z-index: 1;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: none !important;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  background: transparent !important;
  border: 0 !important;
  transform: translate3d(var(--sticker-dx, 0px), var(--sticker-dy, 0px), 0) rotate(var(--sticker-rot, 0deg)) scale(var(--sticker-scale, 1));
  transition: transform .26s cubic-bezier(.34,1.56,.64,1);
}
.sifor-hive-cell:hover .sifor-hive-sticker-diecut {
  transform: translate3d(var(--sticker-dx, 0px), calc(var(--sticker-dy, 0px) - 5px), 0) rotate(calc(var(--sticker-rot, 0deg) * -0.4)) scale(calc(var(--sticker-scale, 1) * 1.05));
}
/* Neutral grounding shadow only (colored halos removed) */
.sifor-hive-sticker-inner {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 5px 8px rgba(23, 23, 25, 0.16));
  animation: none !important;
  transition: transform .2s cubic-bezier(.34,1.56,.64,1);
}
.sifor-hive-sticker-inner svg, .sifor-hive-sticker-inner img { width: 100%; height: auto; display: block; max-height: 220px; margin: 0 auto; filter: none !important; }
.sifor-hive-cell-footer { position: relative; z-index: 3; display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 2px; font-size: 11.5px; font-weight: 900; flex-wrap: wrap; }
.sifor-hive-creator-link, .sifor-hive-creator-row span { background: rgba(255,255,255,.95); border-radius: 999px; padding: 3px 9px; color: var(--sifor-ink); text-decoration: none; box-shadow: 0 1px 4px rgba(0,0,0,.14); max-width: 112px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; }
.sifor-hive-social-icons { display: none; }
.sifor-hive-constellation-pill, .sifor-hive-constellation-partner-orb { display: none !important; }

@media (max-width: 639px) {
  .sifor-hive-row.is-collage-lanes .sifor-hive-cell-footer {
    font-size: 10.5px;
    gap: 3px;
  }
  .sifor-hive-row.is-collage-lanes .sifor-hive-creator-link,
  .sifor-hive-row.is-collage-lanes .sifor-hive-creator-row span {
    padding: 2px 7px;
    max-width: 96px;
    font-size: 10.5px;
  }
  .sifor-hive-row.is-collage-lanes .sf-made {
    padding: 2.5px 7px;
    font-size: 9.5px;
  }
  .sifor-hive-row.is-collage-lanes .sf-badge-eye {
    padding: 2px 7px;
    font-size: 10.5px;
  }
}

@media (min-width: 640px) {
  .sifor-hive-row.is-hero-pair { gap: 20px; padding: 0 6%; }
  .sifor-hive-row.is-collage-lanes { gap: 18px; }
  .sifor-collage-lane { gap: 20px; }
  .sifor-collage-lane.lane-1 { padding-top: 48px; }
  .sifor-collage-lane.lane-2 { padding-top: 18px; }
}
@media (min-width: 900px) {
  .sifor-honeycomb-grid { padding: 16px 24px 44px; gap: 14px; }
  .sifor-hive-row.is-collage-lanes { gap: 24px; }
}

/* ---------- app main + floating deco ---------- */
.app { width: 100%; max-width: 100vw; min-width: 0; padding: 0 !important; }
.app-main { width: 100%; max-width: 1200px; min-width: 0; margin: 0 auto; padding: 0 0 calc(var(--sf-footer-total-h, 62px) + 28px) !important; }

/* ---------- Create sheet (grok-bot-bridge modal) ---------- */
#sifor-grok-bot-modal { background: rgba(60,194,232,.55) !important; padding: 0 !important; align-items: flex-end !important; }
.sf-sheet {
  width: min(100vw, 520px); max-height: 96vh; overflow-y: auto; background: #fff; color: var(--sifor-ink);
  border: var(--sifor-border) solid var(--sifor-ink); border-bottom: 0; border-radius: 32px 32px 0 0;
  padding: 18px 18px calc(22px + env(safe-area-inset-bottom)); font-family: var(--sifor-font-ui);
  position: relative; animation: sf-rise .28s var(--ease-bounce, ease);
}
@keyframes sf-rise { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sf-sheet-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.sf-sheet h2, .sf-outline { font-size: 38px; line-height: 1; text-align: center; margin: 6px 0 8px; color: #fff; letter-spacing: .02em;
  text-shadow: -3px -3px 0 var(--sifor-ink), 3px -3px 0 var(--sifor-ink), -3px 3px 0 var(--sifor-ink), 3px 3px 0 var(--sifor-ink), 0 -3px 0 var(--sifor-ink), 0 4px 0 var(--sifor-ink), -3px 0 0 var(--sifor-ink), 3px 0 0 var(--sifor-ink), 0 7px 0 rgba(23,23,25,.15); }
.sf-sheet h2 em, .sf-outline em { font-style: normal; color: var(--sifor-brand-pink); display: block; }
.sf-sheet .sf-sub { text-align: center; font-size: 14px; font-weight: 700; color: #3d3850; margin: 0 0 10px; }
.sf-sheet .sf-center { text-align: center; margin-bottom: 12px; }
.sf-steps { display: flex; justify-content: center; gap: 8px; margin: 6px 0 12px; }
.sf-steps i { width: 34px; height: 8px; border-radius: 6px; background: #E7E1F2; } .sf-steps i.on { background: var(--sifor-brand-pink); }
.sf-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 130px; text-align: center;
  border: 3px dashed var(--sifor-ink); border-radius: 26px; background: var(--sifor-soft-yellow); cursor: pointer; font-weight: 900; padding: 14px;
}
.sf-drop .sf-ico { width: 40px; height: 40px; color: var(--sifor-brand-pink); }
.sf-drop small { font-weight: 700; color: #6d6683; }
.sf-drop.is-done { background: var(--sifor-soft-mint); border-style: solid; }
.sf-thumbs { display: flex; gap: 10px; justify-content: center; margin-top: 10px; }
.sf-thumbs img { width: 76px; height: 76px; border-radius: 20px; object-fit: cover; border: var(--sifor-border) solid var(--sifor-ink); background: #fff; }
.sf-consent { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 22px; background: var(--sifor-soft-lilac); border: var(--sifor-border) solid var(--sifor-ink); margin: 12px 0; font-weight: 800; font-size: 13px; }
.sf-consent .sf-ico { width: 26px; height: 26px; color: var(--sifor-brand-purple); flex: none; }
.sf-consent > span:not(.sf-toggle) { flex: 1; }
.sf-launch { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; transition: opacity .2s; }
.sf-launch a { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 66px; padding: 0 14px; border-radius: 22px; border: var(--sifor-border) solid var(--sifor-ink); box-shadow: 0 4px 0 var(--sifor-ink); text-decoration: none; font-weight: 900; font-size: 14px; line-height: 1.15; }
.sf-launch a svg { width: 34px; height: 34px; flex: none; }
.sf-launch .chatgpt { background: var(--sifor-brand-mint); color: var(--sifor-ink); }
.sf-launch .grok { background: var(--sifor-ink); color: #fff; }
.sf-launch a b { display: block; font-size: 11px; font-weight: 800; opacity: .8; }
.sf-launch a:active { transform: translateY(4px); box-shadow: none; }
.sf-vibe { margin-top: 12px; }
.sf-mini { text-align: center; margin-top: 10px; font-size: 12px; font-weight: 800; color: var(--sifor-muted-text); }
.sf-mini a, .sf-mini button { color: var(--sifor-ink); background: none; border: 0; font: inherit; text-decoration: underline; cursor: pointer; }
.sf-deco { position: absolute; pointer-events: none; width: 34px; }
.sf-sheet .sf-prompt { display: none; }

/* ---------- misc legacy surfaces inherit the look ---------- */
.library-card, .hero-card, .timeline-card, .assets-card, .refine-card, .feedback-card, .legal-card, .cn-card {
  border: var(--sifor-border) solid var(--sifor-ink) !important; border-radius: var(--sifor-radius-card) !important; background: #fff !important;
  box-shadow: 0 4px 0 rgba(23,23,25,.1) !important;
}
a { color: var(--sifor-brand-pink); }
:focus-visible { outline: 3px solid var(--sifor-brand-cyan); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* match notifications live in a sheet opened from the bell, not inline in the feed */
.sifor-match-notif-banner { display: none !important; }
body.sf-notif-open .sifor-match-notif-banner {
  display: block !important; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; max-width: 520px; margin: 0 auto;
  max-height: 70vh; overflow-y: auto; border: var(--sifor-border) solid var(--sifor-ink) !important; border-bottom: 0 !important;
  border-radius: 28px 28px 0 0 !important; background: #fff !important; padding: 16px !important; box-shadow: 0 -10px 40px rgba(60,194,232,.4) !important;
}
html, body { overflow-x: clip; }

/* ==========================================================================
   Profile + directory (kit "Profile" screen)
   ========================================================================== */
.agent-profile, .app-main.agent-profile { padding: 0 14px calc(var(--sf-footer-total-h, 62px) + 36px) !important; }
.sf-profile, .sf-section, .sf-dir { max-width: 640px; margin: 0 auto; }
.sf-section { margin-top: 18px; }
.sf-center { text-align: center; margin: 8px 0 12px; }
.sf-prof-head { display: flex; gap: 14px; align-items: center; padding-top: 6px; }
.sf-avatar { position: relative; flex: none; width: 112px; height: 112px; border-radius: 50%; padding: 5px; background: conic-gradient(from 200deg, #FF1694, #9B4DFF, #3CC2E8, #50F5BC, #FF1694); }
.sf-avatar.is-playable, .sf-avatar[data-snackable-json] { cursor: pointer; transition: transform .16s cubic-bezier(.34,1.56,.64,1), box-shadow .16s ease; -webkit-tap-highlight-color: transparent; }
.sf-avatar.is-playable:hover, .sf-avatar[data-snackable-json]:hover { transform: scale(1.04) rotate(-2deg); box-shadow: 0 5px 0 rgba(23,23,25,.18); }
.sf-avatar.is-playable:active, .sf-avatar[data-snackable-json]:active { transform: scale(.94); }
.sf-avatar.is-playable:focus-visible, .sf-avatar[data-snackable-json]:focus-visible { outline: 3px solid var(--sifor-brand-pink, #FF1694); outline-offset: 3px; }
.sf-avatar > *:first-child { width: 100% !important; height: 100% !important; border-radius: 50% !important; border: 3px solid #fff !important; object-fit: cover; font-size: 30px; display: flex; align-items: center; justify-content: center; margin: 0 !important; }
.sf-avatar .sf-online { position: absolute; right: 6px; bottom: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--sifor-positive); border: 3px solid #fff; }
.sf-avatar-sm { width: 62px; height: 62px; padding: 3px; }
.sf-avatar-sm > *:first-child { font-size: 18px; border-width: 2px !important; }
.sf-avatar-sm .sf-online { width: 13px; height: 13px; right: 1px; bottom: 1px; border-width: 2px; }
.sf-prof-id { min-width: 0; }
.sf-handle { font-size: 30px; line-height: 1; margin: 30px 0 6px; word-break: break-word; }
.sf-bio { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.3; color: #302c3b; }
.sf-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.sf-tag { padding: 5px 13px; border-radius: 999px; border: 2px solid var(--sifor-ink); font-size: 13px; font-weight: 800; }
.sf-tag.c-mint { background: var(--sifor-soft-mint); } .sf-tag.c-pink { background: var(--sifor-soft-pink); } .sf-tag.c-lilac { background: #E9E4FB; }
.sf-tag.c-cyan { background: var(--sifor-soft-cyan); } .sf-tag.c-yellow { background: var(--sifor-soft-yellow); }
.sf-socials, .sf-profile .sf-socials { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; margin: 4px 0 12px; }
.sf-social { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 0; border-radius: 50%; font-size: 18px; text-decoration: none; box-sizing: border-box; flex: 0 0 44px; }
.sf-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0; }
.sf-actions .sf-btn[hidden] { display: none; }
.sf-actions:has(.sf-btn[hidden]) { grid-template-columns: 1fr; }
.sf-btn .sf-ico { width: 20px; height: 20px; }
.sf-btn.is-copied::after { content: ""; }
.sf-meet { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 22px; border: var(--sifor-border) solid var(--sifor-ink); background: linear-gradient(90deg, var(--sifor-soft-pink), var(--sifor-soft-lilac)); text-decoration: none; color: var(--sifor-ink); box-shadow: 0 3px 0 rgba(23,23,25,.12); }
.sf-meet > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; font-size: 15px; }
.sf-meet small { font-size: 12px; font-weight: 700; color: var(--sifor-muted-text); }
.sf-meet-ico { width: 44px; height: 44px; border-radius: 14px; background: #fff; display: flex; align-items: center; justify-content: center; flex: none; color: var(--sifor-brand-pink); }
.sf-meet > svg { width: 22px; height: 22px; flex: none; }
.sf-section-head { display: flex; align-items: center; justify-content: space-between; }
.sf-outline.sf-left { text-align: left; font-size: 30px; margin: 4px 0 10px; color: var(--sifor-ink); text-shadow: none; }
.sf-search-row { margin: 6px 0 10px; }
.sf-dir .sf-outline { color: var(--sifor-ink); text-shadow: none; font-size: 38px; margin: 10px 0 12px; }
.sf-dir .sf-outline em { font-size: 26px; }

.sf-met-rail { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: none; }
.sf-met { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--sifor-ink); flex: none; width: 76px; max-width: 76px; overflow: hidden; }
.sf-met > *:first-child { width: 60px !important; height: 60px !important; border-radius: 50% !important; border: var(--sifor-border) solid var(--sifor-ink) !important; margin: 0 !important; }
.sf-met b, .sf-met strong { display: block; font-size: 12px; font-weight: 900; max-width: 76px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sf-met-info span { display: none; }
.sf-met-info { display: block; width: 100%; max-width: 76px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }

.sf-people { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 760px) { .sf-people { grid-template-columns: 1fr 1fr; } .sf-dir { max-width: 980px; } }
.sf-person { background: #fff; border: var(--sifor-border) solid var(--sifor-ink); border-radius: var(--sifor-radius-card); padding: 12px; box-shadow: 0 4px 0 rgba(23,23,25,.1); }
.sf-person-top { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--sifor-ink); }
.sf-person-id { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sf-person-id b { font-size: 17px; font-weight: 900; }
.sf-person-id small { font-size: 12.5px; font-weight: 700; color: var(--sifor-muted-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sf-person-top > svg { width: 22px; height: 22px; flex: none; }
.sf-person .agent-card-showcase { padding: 0 !important; }
.sf-person .sifor-hive-cell { max-width: 200px; margin: 0 auto !important; }
.sf-person-stats { display: flex; justify-content: space-around; border-top: 2px dashed #E7E1F2; padding-top: 8px; font-weight: 900; font-size: 14px; }
.sf-person-stats span { display: inline-flex; align-items: center; gap: 6px; }
.sf-person-stats .sf-ico { width: 18px; height: 18px; }

/* profile hive: natural collage grid */
.sifor-profile-hive .sifor-hive-row:not(.is-collage-lanes):not(.is-hero-pair) { flex-wrap: wrap; gap: 18px 14px; }
.sifor-profile-hive .sifor-hive-row:not(.is-collage-lanes):not(.is-hero-pair) .sifor-hive-cell { flex: 0 0 calc(50% - 8px); max-width: calc(50% - 8px); }
@media (min-width: 640px) { .sifor-profile-hive .sifor-hive-row:not(.is-collage-lanes):not(.is-hero-pair) .sifor-hive-cell { flex: 0 0 calc(33.333% - 10px); max-width: calc(33.333% - 10px); } }
.sifor-hive-cell-footer .sf-badge-eye { order: 2; }

/* fixes after first visual pass */
.sifor-manifesto-corner-btn { display: none !important; }
.sf-section, .sf-profile, .sf-dir { width: 100%; box-sizing: border-box; }
.sf-section h2, .sf-section .sf-outline { text-align: left !important; }
.sf-search-row { width: 100%; box-sizing: border-box; }
.sf-search-row input { width: 100%; }
.sifor-hive-sticker-inner { width: 100%; }
.sifor-hive-sticker-inner svg { width: 100% !important; height: auto !important; max-height: 220px; }
.sf-person .agent-card-showcase, .sf-person .sifor-hive-cell, .sf-person .sifor-hive-sticker-diecut { background: transparent !important; border: 0 !important; box-shadow: none !important; }
.sf-person .agent-card-showcase { display: block !important; }
.sifor-profile-hive .sifor-hive-sticker-inner svg { max-height: 190px; }

*, *::before, *::after { box-sizing: border-box; }

/* ---------- smooth scrolling with drifting low-opacity pastel auras ---------- */
.sifor-hive-cell, .sifor-hive-sticker-diecut { animation: none !important; }
.sifor-hive-cell { overflow: visible; }
.sifor-hive-sticker-inner svg * { animation: none !important; }
.sifor-hive-sticker-diecut:hover .sifor-hive-sticker-inner { transform: translate(var(--sticker-dx, 0px), calc(var(--sticker-dy, 0px) - 3px)) rotate(var(--sticker-rot, 0deg)) scale(calc(var(--sticker-scale, 1) * 1.03)); }
.sifor-hive-sticker-diecut:active .sifor-hive-sticker-inner { transform: translate(var(--sticker-dx, 0px), var(--sticker-dy, 0px)) rotate(var(--sticker-rot, 0deg)) scale(.96); }
.sifor-honeycomb-grid, .sifor-hive-section { -webkit-overflow-scrolling: touch; }
html { scroll-behavior: auto; overscroll-behavior-y: auto; }
body { min-height: 100dvh; }

/* ---------- Feed banner (kit hero_create_snackable_condensed) ---------- */
.sf-banner {
  display: block;
  width: min(calc(100% - 28px), 400px);
  max-width: 400px;
  margin: 4px auto 10px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transition: transform .15s cubic-bezier(.34,1.56,.64,1);
}
.sf-banner img {
  display: block;
  width: 100%;
  max-width: 400px;
  height: auto;
  aspect-ratio: 720 / 170;
  object-fit: contain;
  margin: 0 auto;
}
.sf-banner:hover { transform: translateY(-1px) scale(1.01); }
.sf-banner:active { transform: scale(.97); }

/* ---------- First-visits onboarding sticker (tap to poof + haptics) ---------- */
.sf-onboard-wrap {
  position: relative;
  width: min(calc(100% - 24px), 380px);
  max-width: 380px;
  margin: 4px auto 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  overflow: visible;
  transition: max-height .32s cubic-bezier(.22,1,.36,1), margin .32s ease, opacity .28s ease;
  max-height: 420px;
}
.sf-onboard-wrap[hidden] {
  display: none !important;
}
.sf-onboard-wrap.is-collapsing {
  max-height: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  opacity: 0;
  pointer-events: none;
}
.sf-onboard-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transform-origin: center center;
  animation: sfOnboardIn .52s cubic-bezier(.34,1.56,.64,1) forwards;
}
.sf-onboard-btn > img,
.sf-onboard-btn > .sf-feed-loader-card {
  animation: sfOnboardFloat 4s ease-in-out .55s infinite !important;
}
.sf-onboard-btn img {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(23,23,25,.14));
  pointer-events: none;
}
.sf-onboard-hint {
  margin-top: -4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--sifor-soft-yellow);
  border: 2px solid var(--sifor-ink);
  box-shadow: 0 2px 0 var(--sifor-ink);
  color: var(--sifor-ink);
  font-family: var(--sifor-font-ui);
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: .02em;
  pointer-events: none;
  position: relative;
  z-index: 3;
}
.sf-onboard-hint svg {
  width: 13px;
  height: 13px;
  stroke: var(--sifor-brand-pink);
  stroke-width: 2.6;
  fill: none;
}
.sf-onboard-wrap.is-poofing .sf-onboard-btn {
  animation: sfOnboardPoof .38s cubic-bezier(.22,1,.36,1) forwards !important;
  pointer-events: none;
}
@keyframes sfOnboardIn {
  0% { transform: scale(.62) rotate(-5deg); opacity: 0; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
@keyframes sfOnboardFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-4px) rotate(-1deg); }
}
@keyframes sfOnboardPoof {
  0% { transform: scale(1) rotate(0deg); opacity: 1; filter: blur(0px); }
  28% { transform: scale(1.12) rotate(2.5deg); opacity: 1; filter: blur(0px); }
  100% { transform: scale(.22) rotate(-8deg); opacity: 0; filter: blur(6px); }
}
.sf-poof-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
  z-index: 6;
}
.sf-poof-particle {
  position: absolute;
  left: 50%;
  top: 48%;
  width: var(--sz, 22px);
  height: var(--sz, 22px);
  margin-left: calc(var(--sz, 22px) * -0.5);
  margin-top: calc(var(--sz, 22px) * -0.5);
  border-radius: 50%;
  background: var(--bg, #FFE24C);
  border: 2.5px solid var(--sifor-ink);
  box-shadow: 0 2px 0 var(--sifor-ink);
  animation: sfPoofBurst .42s cubic-bezier(.16,1,.3,1) forwards;
}
.sf-poof-particle.is-star {
  border-radius: 6px;
  transform: rotate(45deg);
}
@keyframes sfPoofBurst {
  0% { transform: translate3d(0, 0, 0) scale(.4) rotate(0deg); opacity: 1; }
  55% { opacity: 1; }
  100% { transform: translate3d(var(--tx, 0px), var(--ty, 0px), 0) scale(0) rotate(95deg); opacity: 0; }
}

/* ---------- Branded Snackables Feed Loader Sticker (poofs when tapped or when feed loads) ---------- */
.sf-feed-loader-wrap {
  width: min(calc(100% - 20px), 410px);
  max-width: 410px;
  margin: 24px auto 22px;
  max-height: 460px;
  z-index: 4;
}
.sf-feed-loader-card {
  position: relative;
  width: 100%;
  padding: 22px 22px 18px;
  background: #fff;
  border: 4px solid var(--sifor-ink);
  border-radius: 36px 42px 34px 40px;
  box-shadow:
    0 0 0 5px #fff,
    0 7px 0 var(--sifor-ink),
    0 14px 28px rgba(23, 23, 25, 0.16);
  transform: rotate(-1.6deg);
  text-align: left;
  overflow: visible;
}
.sf-feed-loader-card::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 26px;
  width: 126px;
  height: 22px;
  background: #fff;
  border-top: 4px solid var(--sifor-ink);
  border-left: 4px solid var(--sifor-ink);
  border-right: 4px solid var(--sifor-ink);
  border-radius: 24px 28px 0 0;
  box-shadow: 0 -4px 0 #fff;
  pointer-events: none;
}
.sf-feed-loader-deco {
  position: absolute;
  pointer-events: none;
  z-index: 2;
  filter: drop-shadow(0 2px 0 rgba(23, 23, 25, 0.15));
}
.sf-feed-loader-deco.d-cyan-tl {
  top: -14px;
  left: -12px;
  width: 44px;
  height: 44px;
  animation: sfLoaderTwinkle 2.2s ease-in-out infinite;
}
.sf-feed-loader-deco.d-mint-tl {
  top: -22px;
  left: 28px;
  width: 26px;
  height: 26px;
  animation: sfLoaderTwinkle 2.4s ease-in-out .45s infinite;
}
.sf-feed-loader-deco.d-yellow-tr {
  top: -18px;
  right: 8px;
  width: 42px;
  height: 42px;
  animation: sfLoaderTwinkle 2.1s ease-in-out .25s infinite;
}
.sf-feed-loader-deco.d-pink-tr {
  top: -10px;
  right: 42px;
  width: 30px;
  height: 30px;
  animation: sfLoaderTwinkle 2.5s ease-in-out .7s infinite;
}
.sf-feed-loader-deco.d-yellow-bl {
  bottom: 10px;
  left: -10px;
  width: 32px;
  height: 32px;
  animation: sfLoaderTwinkle 2.3s ease-in-out .6s infinite;
}
.sf-feed-loader-deco.d-heart-br {
  bottom: 6px;
  right: -8px;
  width: 36px;
  height: 36px;
  animation: sfLoaderHeartBeat 1.8s ease-in-out infinite;
}
@keyframes sfLoaderTwinkle {
  0%, 100% { transform: scale(1) rotate(-6deg); }
  50% { transform: scale(1.18) rotate(10deg); }
}
@keyframes sfLoaderHeartBeat {
  0%, 100% { transform: scale(1) rotate(8deg); }
  50% { transform: scale(1.16) rotate(-5deg); }
}
.sf-feed-loader-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.sf-feed-loader-titles {
  flex: 1;
  min-width: 0;
}
.sf-feed-loader-kicker {
  display: block;
  font-family: var(--sifor-font-display);
  font-size: clamp(24px, 6.2vw, 31px);
  line-height: 1.02;
  color: var(--sifor-ink);
  letter-spacing: -0.01em;
  transform: rotate(-1deg);
}
.sf-feed-loader-main {
  display: block;
  font-family: var(--sifor-font-display);
  font-size: clamp(27px, 7vw, 35px);
  line-height: 1.04;
  color: var(--sifor-brand-pink);
  letter-spacing: -0.01em;
  margin-top: 2px;
  transform: rotate(-1deg);
}
.sf-feed-loader-swoop {
  display: block;
  width: 88%;
  height: 10px;
  margin: 3px 0 6px;
}
.sf-feed-loader-mascot {
  position: relative;
  width: 58px;
  height: 74px;
  flex: none;
  margin-top: -6px;
  animation: sfLoaderMascotBob 1.3s ease-in-out infinite;
}
.sf-feed-loader-mascot img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  filter: drop-shadow(0 3px 0 rgba(255, 22, 148, 0.32)) !important;
}
.sf-feed-loader-mascot .m-open {
  animation: sfLoaderChompOpen 1.1s steps(1, end) infinite;
}
.sf-feed-loader-mascot .m-closed {
  animation: sfLoaderChompClosed 1.1s steps(1, end) infinite;
}
@keyframes sfLoaderMascotBob {
  0%, 100% { transform: translateY(0) rotate(3deg); }
  50% { transform: translateY(-6px) rotate(-5deg) scale(1.05); }
}
@keyframes sfLoaderChompOpen {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@keyframes sfLoaderChompClosed {
  0%, 49% { opacity: 0; }
  50%, 100% { opacity: 1; }
}
.sf-feed-loader-sub {
  margin: 0 0 10px;
  font-family: var(--sifor-font-ui);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  color: #4E4A63;
}
.sf-feed-loader-dots {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.sf-feed-loader-dots i {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2.2px solid var(--sifor-ink);
  box-shadow: 0 2px 0 var(--sifor-ink);
  display: inline-block;
  animation: sfLoaderDotBounce .95s ease-in-out infinite;
}
.sf-feed-loader-dots i:nth-child(1) { background: var(--sifor-brand-pink); animation-delay: 0s; }
.sf-feed-loader-dots i:nth-child(2) { background: var(--sifor-brand-cyan); animation-delay: .14s; }
.sf-feed-loader-dots i:nth-child(3) { background: var(--sifor-brand-yellow); animation-delay: .28s; }
.sf-feed-loader-dots i:nth-child(4) { background: var(--sifor-brand-mint); animation-delay: .42s; }
@keyframes sfLoaderDotBounce {
  0%, 80%, 100% { transform: translateY(0) scale(1); }
  40% { transform: translateY(-6px) scale(1.18); }
}

/* ---------- Create sheet poofable title sticker ---------- */
.sf-create-title-wrap {
  width: min(100%, 420px);
  max-width: 420px;
  margin: 6px auto 6px;
  max-height: 390px;
}
.sf-create-title-btn .sf-hero,
.sf-create-title-btn .sf-discover {
  margin: 0 auto !important;
  animation: sfOnboardFloat 4s ease-in-out .55s infinite !important;
}
.sf-sheet-x ~ .sf-create-title-wrap {
  margin-top: 12px;
}
#sifor-modal-hero-wrap[hidden] + #sifor-modal-discover-wrap[hidden] + #sifor-modal-photo-thumbs,
#sifor-modal-hero-wrap.is-collapsing + #sifor-modal-discover-wrap[hidden] + #sifor-modal-photo-thumbs,
#sifor-modal-hero-wrap[hidden] + #sifor-modal-discover-wrap.is-collapsing + #sifor-modal-photo-thumbs {
  margin-top: 42px;
  transition: margin-top .28s ease;
}

/* ---------- 3rd-time Snackable creation: Optional Ludo.ai API upgrade card ---------- */
.sf-ludo-optional-card {
  margin: 10px 0;
  padding: 11px 13px 12px;
  border-radius: 22px;
  border: var(--sifor-border) solid var(--sifor-ink);
  background: linear-gradient(135deg, var(--sifor-soft-yellow) 0%, var(--sifor-soft-lilac) 100%);
  box-shadow: 0 4px 0 var(--sifor-ink);
  color: var(--sifor-ink);
  animation: sfDiscoverIn .36s cubic-bezier(.34,1.56,.64,1);
}
.sf-ludo-optional-card[hidden] { display: none !important; }
.sf-ludo-opt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: nowrap;
}
.sf-ludo-opt-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  background: var(--sifor-ink);
  border: 2px solid var(--sifor-ink);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--sifor-brand-yellow);
  line-height: 1;
  white-space: nowrap;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sf-ludo-opt-badge svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 2.4; fill: none; flex: none; }
.sf-ludo-opt-logo {
  display: block;
  height: 15px;
  width: auto;
  object-fit: contain;
  flex: none;
}
.sf-ludo-opt-badge-sep {
  opacity: .55;
  color: #fff;
}
.sf-ludo-opt-skip {
  flex: 0 0 auto !important;
  width: auto !important;
  min-height: 0 !important;
  height: auto !important;
  align-self: center;
  background: #fff;
  border: 1.8px solid var(--sifor-ink);
  border-radius: 999px;
  padding: 5px 11px;
  font-family: var(--sifor-font-ui);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
  color: var(--sifor-muted-text);
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(23,23,25,.12);
}
.sf-ludo-opt-skip:active {
  transform: translateY(1px);
  box-shadow: none;
}
.sf-ludo-opt-body {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.sf-ludo-opt-character {
  flex: 0 0 76px;
  width: 76px;
  height: 88px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 2px solid var(--sifor-ink);
  box-shadow: 0 2px 0 rgba(23, 23, 25, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  position: relative;
}
.sf-ludo-opt-character img {
  width: 82px;
  height: 94px;
  object-fit: contain;
  display: block;
  margin-top: -6px;
  pointer-events: none;
  filter:
    drop-shadow(0 1.5px 0 #fff)
    drop-shadow(0 -1.5px 0 #fff)
    drop-shadow(1.5px 0 0 #fff)
    drop-shadow(-1.5px 0 0 #fff)
    drop-shadow(0 4px 6px rgba(23, 23, 25, 0.2));
}
.sf-ludo-opt-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.sf-ludo-opt-title {
  margin: 0 0 2px;
  font-family: var(--sifor-font-display);
  font-size: 16.5px;
  line-height: 1.12;
  color: var(--sifor-ink);
}
.sf-ludo-opt-sub {
  margin: 0 0 7px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  color: #3d3850;
}
.sf-ludo-opt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.sf-ludo-opt-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  border: 2px solid var(--sifor-ink);
  background: var(--sifor-brand-pink);
  color: #fff !important;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 3px 0 var(--sifor-ink);
}
.sf-ludo-opt-cta-logo {
  height: 13px;
  width: auto;
  object-fit: contain;
  display: block;
}
.sf-ludo-opt-keyrow {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin-top: 6px;
}
.sf-ludo-opt-input {
  flex: 1;
  min-width: 0;
  min-height: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 2px solid var(--sifor-ink);
  background: #fff;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--sifor-ink);
}
.sf-ludo-opt-save {
  flex: 0 0 auto !important;
  width: auto !important;
  min-height: 36px !important;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 2px solid var(--sifor-ink);
  background: var(--sifor-brand-mint);
  color: var(--sifor-ink);
  font-family: var(--sifor-font-ui);
  font-size: 12.5px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 3px 0 var(--sifor-ink);
  cursor: pointer;
}
@media (max-width: 420px) {
  .sf-ludo-optional-card { padding: 10px 11px 11px; }
  .sf-ludo-opt-character { flex: 0 0 68px; width: 68px; height: 80px; }
  .sf-ludo-opt-character img { width: 74px; height: 86px; }
  .sf-ludo-opt-title { font-size: 15.5px; }
  .sf-ludo-opt-sub { font-size: 11.5px; }
}

/* ---------- Create sheet v2 (kit hero card + slots + kit buttons) ---------- */
.sf-sheet { padding-top: 10px; background: #fff; }
.sf-sheet-x { position: absolute; top: 10px; right: 12px; z-index: 3; width: 40px; height: 40px; }
.sf-hero { display: block; width: min(100%, 420px); height: auto; margin: 6px auto 4px; }
.sf-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 6px 0 2px; }
.sf-slot { aspect-ratio: 1; border-radius: 20px; border: 3px dashed var(--sifor-ink); background: var(--sifor-soft-yellow); display: flex; align-items: center; justify-content: center; cursor: pointer; overflow: hidden; position: relative; color: var(--sifor-brand-pink); transition: transform .12s ease; }
.sf-slot:nth-child(2) { background: var(--sifor-soft-cyan); } .sf-slot:nth-child(3) { background: var(--sifor-soft-pink); } .sf-slot:nth-child(4) { background: var(--sifor-soft-mint); }
.sf-slot:active { transform: scale(.94); }
.sf-slot .sf-ico { width: 34px; height: 34px; stroke-width: 3; }
.sf-slot.is-filled { border-style: solid; background: #fff; cursor: pointer; }
.sf-slot.is-filled img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sf-slot-rm { position: absolute; top: 4px; right: 4px; z-index: 2; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--sifor-ink); background: rgba(255,255,255,.94); color: var(--sifor-ink); display: flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; box-shadow: 0 2px 0 rgba(23,23,25,.2); }
.sf-slot-rm .sf-ico, .sf-slot-rm svg { width: 13px; height: 13px; stroke-width: 3; fill: none; stroke: currentColor; stroke-linecap: round; }
.sf-slot-rm:active { transform: scale(.9); }
.sf-slot.is-busy::after { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.55); animation: sf-pulse 1s ease-in-out infinite; }
@keyframes sf-pulse { 50% { opacity: .2; } }
.sf-slot-cap { text-align: center; font-size: 13px; font-weight: 800; color: var(--sifor-muted-text); margin: 4px 0 10px; min-height: 18px; }
.sf-launch { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.sf-launch .sf-kitbtn { display: block; padding: 0; border: 0; background: none; box-shadow: none; min-height: 0; border-radius: 0; transition: transform .12s ease; }
.sf-launch .sf-kitbtn img { display: block; width: 100%; height: auto; }
.sf-launch .sf-kitbtn:active { transform: scale(.95); }
.sf-consent { padding: 8px 12px; margin: 10px 0; }
.sf-consent-t { font-size: 13px; }
.sf-vibe-in { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.sf-vibe-in input { width: 100%; font-size: 15px; font-weight: 800; padding: 0; }
.sf-vibe-in small { font-size: 11px; font-weight: 700; color: var(--sifor-muted-text); }
.sf-vibe { margin-top: 10px; background: var(--sifor-soft-lilac); }
.sf-sheet h2, .sf-sheet-top, .sf-steps, .sf-drop { display: none; }

/* ---------- animated profile bubble ---------- */
.sf-bubble {
  position: relative; display: block; margin: 4px 0 14px 12px; cursor: pointer;
  width: max-content; max-width: 100%; min-width: 96px; padding: 9px 14px 10px;
  background: #fff; color: var(--sifor-ink); border: 2.5px solid var(--sifor-ink); border-radius: 20px 20px 20px 20px;
  font: 400 16px/1.12 var(--sifor-font-display); letter-spacing: .01em; text-align: left; white-space: normal; word-break: break-word;
  box-shadow: 0 3px 0 rgba(23,23,25,.16); transform-origin: 0% 100%; -webkit-tap-highlight-color: transparent;
  transform: scale(.4) rotate(-6deg); opacity: 0; min-height: 44px;
}
.sf-bubble::before, .sf-bubble::after { /* thought dots pointing back to the avatar */
  content: ""; position: absolute; border-radius: 50%; background: #fff; border: 2.5px solid var(--sifor-ink);
}
.sf-bubble::before { left: -14px; bottom: 6px; width: 11px; height: 11px; }
.sf-bubble::after { left: -24px; bottom: -2px; width: 6px; height: 6px; }
.sf-bubble.is-in { animation: sfBubIn .5s cubic-bezier(.34,1.56,.64,1) forwards, sfBubWobble 4.2s ease-in-out .5s infinite; }
.sf-bubble.is-out { animation: sfBubOut .24s ease-in forwards; }
@keyframes sfBubIn { 0% { transform: scale(.4) rotate(-6deg); opacity: 0; } 100% { transform: scale(1) rotate(1.5deg); opacity: 1; } }
@keyframes sfBubOut { 0% { transform: scale(1) rotate(1.5deg); opacity: 1; } 100% { transform: scale(.55) rotate(-5deg); opacity: 0; } }
@keyframes sfBubWobble { 0%,100% { transform: scale(1) rotate(1.5deg); } 50% { transform: scale(1.025) rotate(-1deg); } }
@media (prefers-reduced-motion: reduce) { .sf-bubble, .sf-bubble.is-in { animation: none !important; transform: none; opacity: 1; } }
.sf-handle { margin-top: 0 !important; }
.sf-brand-instagram { color: #E1306C; } .sf-brand-x { color: #171719; } .sf-brand-tiktok { color: #171719; } .sf-brand-youtube { color: #E62117; }
.sf-brand-linkedin { color: #0A66C2; } .sf-brand-github { color: #171719; } .sf-brand-spotify { color: #1DB954; } .sf-brand-discord { color: #5865F2; }
.sf-social .sf-ico { width: 24px; height: 24px; }

/* ---------- logo decorations removed per design request ---------- */
.sf-logo { position: relative; }
.sf-deco,
.sf-deco-star,
.sf-deco-burst,
.sf-deco-heart,
.sf-deco-bolt,
.sf-deco-swirl,
.sf-swirl-l,
.sf-swirl-r {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
}
.sf-tab.is-active::before, .sf-tab.is-active::after { content: ""; position: absolute; top: 9px; width: 14px; height: 14px; background: center / contain no-repeat; pointer-events: none; filter: drop-shadow(1px 0 0 #FFFFFF) drop-shadow(-1px 0 0 #FFFFFF) drop-shadow(0 1px 0 #FFFFFF) drop-shadow(0 -1px 0 #FFFFFF); }
.sf-tab.is-active::before { left: calc(50% - 34px); background-image: url("/ui-kit/deco-star.png"); }
.sf-tab.is-active::after { right: calc(50% - 34px); background-image: url("/ui-kit/deco-burst.png"); }
.sf-tab-create.is-active::before, .sf-tab-create.is-active::after { display: none; }
@media (prefers-reduced-motion: reduce) { .sf-deco, .sf-deco-swirl { animation: none !important; } }

/* ---------- bell badge + matches sheet ---------- */
.sf-icon-btn .sf-count {
  position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 5px; box-sizing: border-box;
  border-radius: 11px; background: #FF1694; color: #fff; border: 2.5px solid #fff; font: 900 11px/17px var(--sifor-font-ui); text-align: center;
  animation: sfPulse 1.8s ease-in-out infinite;
}
.sf-icon-btn .sf-count[hidden] { display: none; }
@keyframes sfPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.18); } }
.sf-tab { position: relative; }
.sf-tab-dot { position: absolute; top: 4px; left: calc(50% + 6px); width: 12px; height: 12px; border-radius: 50%; background: #FF1694; border: 2px solid #0B0C14; box-shadow: 0 0 0 1.5px #FFFFFF; }
.sf-tab-dot[hidden] { display: none; }
.sf-matches { position: fixed; inset: 0; z-index: 90; background: rgba(60,194,232,.55); display: flex; align-items: flex-end; justify-content: center; }
.sf-matches[hidden] { display: none; }
.sf-matches-card { position: relative; width: min(100vw, 520px); max-height: 82dvh; overflow-y: auto; background: #fff; border: 2.5px solid #171719; border-bottom: 0; border-radius: 32px 32px 0 0; padding: 18px 16px calc(24px + env(safe-area-inset-bottom)); animation: sf-rise .28s cubic-bezier(.34,1.56,.64,1); }
.sf-matches-card .sf-sheet-x { width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
.sf-matches-card:has(> .sf-sheet-sticky-top) { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.sf-sheet-sticky-top { position: relative; flex: 0 0 auto; z-index: 6; margin: 0; padding: 14px 16px 10px; background: #FFFDF9; border-bottom: 1.5px solid rgba(23, 23, 25, 0.14); box-shadow: 0 3px 10px rgba(23, 23, 25, 0.06); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sf-sheet-sticky-top .sf-sheet-x { position: static; flex: none; width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
.sf-matches-head { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 6px; border-radius: 999px; background: var(--sifor-soft-pink, #FFE6F3); border: 2px solid #171719; box-shadow: 0 2px 0 #171719; font: 900 14px/1 var(--sifor-font-ui); color: #171719; }
.sf-matches-head:not(:has(.sf-matches-head-mascot)):not(.sf-share-post-head) { padding: 6px 14px; }
#sfAnNotificationsSheet .sf-matches-head { padding: 4px 4px 4px 14px; }
.sf-matches-head-mascot { width: 28px; height: 28px; object-fit: contain; display: block; filter: drop-shadow(0 2px 0 rgba(255,22,148,.35)); pointer-events: none; }
.sf-matches-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.sf-matches-card:has(> .sf-sheet-sticky-top) > .sf-matches-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; margin-top: 0; padding: 14px 16px calc(24px + env(safe-area-inset-bottom)); }
.sf-match { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 2.5px solid #171719; border-radius: 22px; background: #fff; box-shadow: 0 3px 0 rgba(23,23,25,.1); }
.sf-match.is-pending { background: #FFF6FB; border-color: #FF1694; }
.sf-match-av { width: 48px; height: 48px; border-radius: 50%; border: 2.5px solid #171719; display: flex; align-items: center; justify-content: center; font: 400 22px var(--sifor-font-display); flex: none; }
.sf-match-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sf-match-txt b { font-weight: 900; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sf-match-txt small { font-size: 12px; font-weight: 800; color: #817A95; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sf-match .sf-yes { background: #FF1694; color: #fff; }
.sf-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 26px 12px; font-weight: 800; }
.sf-empty svg { width: 44px; height: 44px; color: #FF1694; stroke-width: 2.2; }
.sf-empty .sf-match-mascot-ico, .sf-match-mascot-ico { width: 58px; height: 74px; object-fit: contain; display: block; filter: drop-shadow(0 4px 0 rgba(255,22,148,.35)); pointer-events: none; }
.sf-chip-mascot-ico { width: 22px; height: 26px; object-fit: contain; display: block; flex: none; margin: -2px 0; filter: drop-shadow(0 1px 0 rgba(23,23,25,.28)); pointer-events: none; }
.sifor-hive-chip[data-hive-platform="connected"] svg { display: none !important; }
.sf-empty span { font-size: 13px; color: #817A95; }

/* ---------- create sheet: discovery sticker + handles ---------- */
.sf-discover { display: block; width: min(76%, 300px); height: auto; margin: 22px auto 2px; animation: sfDiscoverIn .5s cubic-bezier(.34,1.56,.64,1); }
.sf-discover[hidden], .sf-hero[hidden] { display: none; }
@keyframes sfDiscoverIn { from { transform: scale(.7) rotate(-4deg); opacity: 0; } to { transform: none; opacity: 1; } }
#sifor-modal-socials.sf-socials, .sf-matches-card .sf-socials { margin: 4px 0 10px; display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.sf-profile .sf-socials { display: flex !important; flex-direction: row !important; flex-wrap: wrap !important; align-items: center !important; gap: 10px !important; }
.sf-socials[hidden] { display: none; }
.sf-soc-row { display: flex; flex-direction: column; gap: 6px; }
.sf-soc-picks { display: flex; gap: 8px; justify-content: center; }
.sf-soc-pick { width: 44px; height: 44px; border-radius: 50%; border: 2.5px solid #E7E1F2; background: #fff; color: #817A95; display: inline-flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; transition: transform .12s, border-color .12s; }
.sf-soc-pick svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sf-soc-pick.is-on { border-color: #171719; color: #FF1694; background: #FFE6F3; transform: scale(1.06); box-shadow: 0 3px 0 #171719; }
.sf-soc-in { width: 100%; min-height: 52px; box-sizing: border-box; border: 2.5px solid #171719; border-radius: 26px; background: #fff; padding: 0 18px; font: 800 16px var(--sifor-font-ui); color: #171719; outline: 0; }
.sf-soc-in:focus { border-color: #FF1694; }
.sf-soc-add { align-self: center; width: 44px; height: 44px; border-radius: 50%; border: 2.5px dashed #171719; background: #fff; color: #FF1694; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.sf-soc-add[hidden] { display: none; }
.sf-soc-add svg { width: 20px; height: 20px; }
.sf-sheet-x ~ .sf-discover { margin-top: 36px; }

/* Filter chips: brand/UI SVG icons sit centred next to labels */
.sifor-hive-chip { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.sifor-hive-chip .sf-ico { width: 20px; height: 20px; flex: none; }

/* ---------- consent + legal links in the Create sheet (opt-in, unticked by default) ---------- */
.sf-note { display: flex; align-items: center; gap: 8px; justify-content: center; margin: 8px 0 0; font-size: 12px; font-weight: 800; color: var(--sifor-muted-text); }
.sf-note .sf-ico { width: 16px; height: 16px; flex: none; color: var(--sifor-brand-purple); }
.sf-note a, .sf-legal-fine a { color: var(--sifor-ink); text-decoration: underline; }
.sf-legal { margin: 12px 0 12px; }
.sf-legal .sf-consent { margin: 0 0 8px; align-items: center; }
.sf-consent-t { display: flex; flex-direction: column; gap: 1px; line-height: 1.2; }
.sf-consent-t small { font-size: 11px; font-weight: 700; color: var(--sifor-muted-text); }
.sf-legal-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.sf-pill-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 2px solid var(--sifor-ink); background: #fff; color: var(--sifor-ink); font-size: 12.5px; font-weight: 900; text-decoration: none; box-shadow: 0 2px 0 var(--sifor-ink); transition: transform .12s, box-shadow .12s; }
.sf-pill-link .sf-ico { width: 15px; height: 15px; }
.sf-pill-link:active { transform: translateY(2px); box-shadow: none; }
.sf-legal-fine { margin: 8px 6px 0; text-align: center; font-size: 11px; line-height: 1.35; font-weight: 700; color: var(--sifor-muted-text); }
.sf-launch.is-locked .sf-kitbtn { opacity: .5; filter: grayscale(.4); }
.sf-consent.is-nudge { animation: sfNudge .5s ease; background: #FFE6F3; }
@keyframes sfNudge { 0%,100% { transform: none; } 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
@media (prefers-reduced-motion: reduce) { .sf-consent.is-nudge { animation: none; } }

/* ---------- legal pages ---------- */
.legal-short { margin: 16px 0 20px; padding: 14px 16px; border-radius: 22px; background: var(--sifor-soft-lilac, #E9E4FB); border: var(--sifor-border, 3px) solid var(--sifor-ink, #171719); }
.legal-short strong { display: block; margin-bottom: 6px; font-size: 16px; }
.legal-short ul { margin: 0; padding-left: 20px; }
.legal-short li { margin: 4px 0; font-weight: 700; }
.legal-inline-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; font-weight: 800; text-decoration: underline; cursor: pointer; }
.legal-card h2[id] { scroll-margin-top: 72px; }

/* ---------- SIFOR Manifesto (universal modal + subtle emblem triggers) ---------- */
.sifor-manifesto-whisper-wrap { display: flex; justify-content: center; margin-top: 16px; padding: 8px 0 18px; }
.sifor-manifesto-whisper-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px;
  border: 1.5px dashed rgba(23,23,25,.25); background: transparent; color: var(--sifor-muted-text, #817A95);
  font-family: var(--sifor-font-display); font-size: 12px; font-weight: 400; letter-spacing: .08em;
  opacity: .38; cursor: pointer; transition: opacity .22s ease, transform .22s ease, border-color .22s ease, color .22s ease;
}
.sifor-manifesto-whisper-btn:hover, .sifor-manifesto-whisper-btn:focus-visible {
  opacity: 1; transform: scale(1.05); border-style: solid; border-color: var(--sifor-ink, #171719); color: var(--sifor-ink, #171719); outline: none;
}
.sifor-manifesto-whisper-logo { width: 30px; height: 30px; object-fit: contain; display: block; }
.sifor-manifesto-foot-seal {
  display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 0;
  padding: 4px; margin: 4px auto 0; opacity: .32; cursor: pointer; transition: opacity .22s ease, transform .22s ease;
}
.sifor-manifesto-foot-seal:hover, .sifor-manifesto-foot-seal:focus-visible { opacity: 1; transform: scale(1.12); outline: none; }
.sifor-manifesto-foot-seal img { width: 24px; height: 24px; object-fit: contain; display: block; }

.sifor-manifesto-modal { position: fixed; inset: 0; z-index: 9800; display: flex; align-items: center; justify-content: center; padding: 20px 14px; box-sizing: border-box; }
.sifor-manifesto-modal[hidden] { display: none !important; }
.sifor-manifesto-backdrop { position: absolute; inset: 0; background: rgba(11,11,16,.86); }
.sifor-manifesto-card {
  position: relative; z-index: 1; width: min(680px, 100%); max-height: min(88dvh, 860px); overflow-y: auto;
  border-radius: 26px; background: #0b0b10; color: #fff; border: 2.5px solid #3CC2E8;
  box-shadow: 0 12px 42px rgba(0,0,0,.65), 0 0 0 1px rgba(255,22,148,.35); padding: 24px 30px 34px; box-sizing: border-box;
}
.sifor-manifesto-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.sifor-manifesto-lang-switch { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.08); padding: 4px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.22); }
.sifor-manifesto-lang-btn {
  min-height: 30px; padding: 0 14px; border-radius: 999px; border: 0; background: transparent; color: rgba(255,255,255,.78);
  font-family: var(--sifor-font-ui); font-size: 13px; font-weight: 800; cursor: pointer; transition: background .16s ease, color .16s ease;
}
.sifor-manifesto-lang-btn:hover, .sifor-manifesto-lang-btn:focus-visible { color: #fff; outline: none; }
.sifor-manifesto-lang-btn.is-active { background: #FF1694; color: #fff; box-shadow: 0 2px 8px rgba(255,22,148,.45); }
.sifor-manifesto-close {
  width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.4); background: rgba(255,255,255,.06);
  color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background .15s ease, color .15s ease;
}
.sifor-manifesto-close svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2.4; fill: none; }
.sifor-manifesto-close:hover, .sifor-manifesto-close:focus-visible { background: #fff; color: #0b0b10; border-color: #fff; outline: none; }
.sifor-manifesto-logo-wrap { display: flex; justify-content: center; align-items: center; margin: 4px auto 14px; text-align: center; }
.sifor-manifesto-logo { display: block; width: 168px; height: 164px; object-fit: contain; background: transparent; filter: drop-shadow(0 6px 18px rgba(60,194,232,.28)); }
.sifor-manifesto-body[hidden] { display: none !important; }
.sifor-manifesto-title { margin: 0 0 6px; font-family: var(--sifor-font-display); font-size: clamp(24px, 3.8vw, 32px); line-height: 1.2; color: #fff !important; text-align: center; }
.sifor-manifesto-subtitle { margin: 0 0 22px !important; text-align: center; font-size: 16px !important; line-height: 1.45 !important; color: #3CC2E8 !important; letter-spacing: .02em; }
.sifor-manifesto-subtitle strong { color: #3CC2E8 !important; font-weight: 800; }
.sifor-manifesto-body p { margin: 0 0 15px; font-size: 15.5px; line-height: 1.68; color: rgba(255,255,255,.94); }
.sifor-manifesto-body strong { color: #fff; font-weight: 800; }
.sifor-manifesto-highlight {
  margin: 22px 0 0 !important; padding: 12px 18px; border-left: 3.5px solid #FFE24C;
  background: rgba(255,226,76,.08); border-radius: 0 12px 12px 0; font-size: 17px !important; color: #FFE24C !important;
}
.sifor-manifesto-highlight strong { color: #FFE24C !important; }
.sifor-manifesto-body-ar { direction: rtl; text-align: right; font-family: 'Nunito', 'Segoe UI', Tahoma, 'Geeza Pro', 'Arial', system-ui, sans-serif; }
.sifor-manifesto-body-ar .sifor-manifesto-title { font-family: 'Segoe UI', Tahoma, 'Geeza Pro', 'Nunito', system-ui, sans-serif; font-weight: 900; line-height: 1.35; }
.sifor-manifesto-body-ar p { font-size: 16.5px; line-height: 1.85; }
.sifor-manifesto-body-ar .sifor-manifesto-highlight { border-left: 0; border-right: 3.5px solid #FFE24C; border-radius: 12px 0 0 12px; }
@media (max-width: 639px) {
  .sifor-manifesto-card { padding: 20px 18px 26px; border-radius: 22px; }
  .sifor-manifesto-logo { width: 136px; height: 133px; }
  .sifor-manifesto-body p { font-size: 14.5px; line-height: 1.64; }
  .sifor-manifesto-body-ar p { font-size: 15.5px; line-height: 1.82; }
}

/* ---------- PWA Install Button + Sticker Hive Install Sheet ---------- */
.sf-install-top-btn,
.sf-header .sf-install-top-btn {
  width: auto;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  gap: 5px;
  background: #132A38;
  color: #3CC2E8;
  border-color: #3CC2E8;
  font: 900 13px/1 var(--sifor-font-ui);
}
.sf-header .sf-install-top-btn:hover,
.sf-header .sf-install-top-btn:focus-visible {
  background: #1B3B4E;
  border-color: #70E4FF;
  color: #70E4FF;
}
.sf-install-top-btn[hidden],
.sf-install-chip[hidden] {
  display: none !important;
}
@media (max-width: 519px) {
  .sf-install-top-btn {
    width: 42px;
    padding: 0;
  }
  .sf-install-top-btn .sf-install-lbl {
    display: none;
  }
}
.sf-install-chip {
  background: var(--sifor-soft-cyan, #DDF5FC) !important;
  border-color: var(--sifor-ink, #171719) !important;
  color: var(--sifor-ink, #171719) !important;
}
.sf-install-chip svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (display-mode: standalone), (display-mode: fullscreen), (display-mode: window-controls-overlay) {
  [data-sf-install] {
    display: none !important;
  }
}
.sf-install-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}
.sf-install-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 22px;
  border: 2.5px solid #171719;
  background: var(--sifor-soft-cyan, #DDF5FC);
  margin-top: 14px;
}
.sf-install-hero img {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  border: 2px solid #171719;
  background: #fff;
  object-fit: contain;
  flex: none;
}
.sf-install-hero-txt {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sf-install-hero-txt b {
  font-size: 16px;
  font-weight: 900;
  color: #171719;
}
.sf-install-hero-txt span {
  font-size: 13px;
  font-weight: 700;
  color: #5d566f;
}
.sf-install-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 2.5px solid #171719;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 3px 0 rgba(23,23,25,.1);
}
.sf-install-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2.5px solid #171719;
  background: var(--sifor-brand-yellow, #FFE24C);
  color: #171719;
  font: 400 18px/1 var(--sifor-font-display);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.sf-install-step-txt {
  flex: 1;
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.35;
  color: #171719;
}
.sf-install-step-txt svg {
  width: 18px;
  height: 18px;
  vertical-align: -4px;
  margin: 0 2px;
  fill: none;
  stroke: #FF1694;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sf-install-cta {
  width: 100%;
  margin-top: 14px;
}

/* ---------- Subtle iPhone Safari Full-Screen App Prompt Pill ---------- */
.sf-ios-fs-pill-wrap {
  position: fixed;
  top: calc(max(var(--sf-header-h, 54px), 52px) + env(safe-area-inset-top, 0px) + 8px);
  left: 0;
  right: 0;
  z-index: 48;
  display: flex;
  justify-content: center;
  padding: 0 12px;
  pointer-events: none;
  box-sizing: border-box;
}
.sf-ios-fs-pill-wrap[hidden] {
  display: none !important;
}
@media (display-mode: standalone), (display-mode: fullscreen), (display-mode: window-controls-overlay) {
  .sf-ios-fs-pill-wrap {
    display: none !important;
  }
}
.sf-ios-fs-pill {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: min(360px, calc(100vw - 24px));
  padding: 4px 6px 4px 8px;
  border-radius: 999px;
  border: 2.5px solid #171719;
  background: #FFFDF9;
  color: #171719;
  box-shadow: 0 4px 0 #171719, 0 8px 20px rgba(11, 12, 20, 0.22);
  box-sizing: border-box;
}
.sf-ios-fs-pill-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 2px 6px 2px 2px;
  border: 0;
  background: transparent;
  color: #171719;
  font-family: var(--sifor-font-ui);
  cursor: pointer;
  text-align: left;
  min-width: 0;
}
.sf-ios-fs-pill-main:active {
  transform: scale(0.98);
}
.sf-ios-fs-pill-ico {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #171719;
  background: var(--sifor-brand-yellow, #FFE24C);
  color: #171719;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sf-ios-fs-pill-ico svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sf-ios-fs-pill-txt {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-size: 12.5px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sf-ios-fs-pill-txt b {
  font-weight: 900;
  color: #171719;
}
.sf-ios-fs-pill-txt span {
  font-weight: 800;
  color: #5d566f;
}
.sf-ios-fs-pill-close {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  border-radius: 50%;
  border: 2px solid #171719;
  background: #F5F1FF;
  color: #171719;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}
.sf-ios-fs-pill-close:active {
  transform: scale(0.92);
}
.sf-ios-fs-pill-close svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- iPhone ChatGPT Paste Handoff Panel ---------- */
.sf-sheet.is-ios-handoff > *:not(.sf-sheet-x):not(.sf-ios-chatgpt-panel) {
  display: none !important;
}
.sf-ios-chatgpt-panel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 11px;
  padding: 8px 2px 4px;
  animation: sfDiscoverIn .34s cubic-bezier(.34,1.56,.64,1);
}
.sf-ios-chatgpt-panel[hidden] {
  display: none !important;
}
.sf-ios-copied-pill {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--sifor-brand-mint, #50F5BC);
  border: 2px solid var(--sifor-ink, #171719);
  box-shadow: 0 2px 0 var(--sifor-ink, #171719);
  font: 900 11.5px/1 var(--sifor-font-ui);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--sifor-ink, #171719);
}
.sf-ios-copied-pill svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 3;
  fill: none;
}
.sf-ios-handoff-title {
  margin: 2px 0 0;
  font: 400 clamp(25px, 6.5vw, 31px)/1.05 var(--sifor-font-display);
  text-align: center;
  color: var(--sifor-ink, #171719);
  letter-spacing: .01em;
}
.sf-ios-handoff-sub {
  margin: -4px 6px 2px;
  font: 800 13.5px/1.35 var(--sifor-font-ui);
  text-align: center;
  color: #4E4A63;
}
.sf-ios-paste-demo {
  position: relative;
  padding: 36px 14px 12px;
  border-radius: 22px;
  border: 2.5px solid var(--sifor-ink, #171719);
  background: linear-gradient(145deg, var(--sifor-soft-cyan, #DDF5FC) 0%, var(--sifor-soft-mint, #E6FFF5) 100%);
  box-shadow: 0 4px 0 rgba(23,23,25,.12);
}
.sf-ios-paste-bubble {
  position: absolute;
  top: 7px;
  left: 34px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  border-radius: 10px;
  background: var(--sifor-ink, #171719);
  color: var(--sifor-brand-mint, #50F5BC);
  font: 900 13px/1 var(--sifor-font-ui);
  box-shadow: 0 3px 0 rgba(23,23,25,.22);
  animation: sfPasteBounce 1.2s ease-in-out infinite;
}
.sf-ios-paste-bubble::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 18px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--sifor-ink, #171719);
}
@keyframes sfPasteBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.05); }
}
.sf-ios-chatbox-mock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 9px 8px 14px;
  border-radius: 999px;
  border: 2.5px solid var(--sifor-ink, #171719);
  background: #fff;
  box-shadow: 0 2px 0 rgba(23,23,25,.1);
}
.sf-ios-chatbox-placeholder {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font: 800 13.5px/1 var(--sifor-font-ui);
  color: #817A95;
}
.sf-ios-chatbox-caret {
  display: inline-block;
  width: 2.5px;
  height: 16px;
  border-radius: 2px;
  background: var(--sifor-brand-pink, #FF1694);
  animation: sfCaretBlink 1s steps(2, start) infinite;
}
@keyframes sfCaretBlink {
  to { visibility: hidden; }
}
.sf-ios-chatbox-send {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--sifor-ink, #171719);
  background: #10a37f;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.sf-ios-chatbox-send svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 2.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sf-ios-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sf-ios-step {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 13px;
  border-radius: 18px;
  border: 2.5px solid var(--sifor-ink, #171719);
  background: #fff;
  box-shadow: 0 3px 0 rgba(23,23,25,.1);
  font: 800 14px/1.3 var(--sifor-font-ui);
  color: var(--sifor-ink, #171719);
}
.sf-ios-step-badge {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--sifor-ink, #171719);
  background: var(--sifor-brand-yellow, #FFE24C);
  color: var(--sifor-ink, #171719);
  font: 400 16px/1 var(--sifor-font-display);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.sf-ios-step:nth-child(2) .sf-ios-step-badge {
  background: var(--sifor-brand-mint, #50F5BC);
}
.sf-ios-step kbd {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 7px;
  background: var(--sifor-ink, #171719);
  color: var(--sifor-brand-mint, #50F5BC);
  font: 900 12.5px/1.1 var(--sifor-font-ui);
  margin: 0 2px;
}
.sf-ios-go-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  margin-top: 2px;
  border-radius: 22px;
  border: 3px solid var(--sifor-ink, #171719);
  background: var(--sifor-brand-mint, #50F5BC);
  color: var(--sifor-ink, #171719) !important;
  box-shadow: 0 4px 0 var(--sifor-ink, #171719);
  font: 400 20px/1 var(--sifor-font-display);
  letter-spacing: .01em;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.sf-ios-go-btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--sifor-ink, #171719);
}
.sf-ios-secondary-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.sf-ios-sec-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 2px solid var(--sifor-ink, #171719);
  background: #fff;
  color: var(--sifor-ink, #171719);
  font: 900 12.5px/1 var(--sifor-font-ui);
  box-shadow: 0 2px 0 var(--sifor-ink, #171719);
  cursor: pointer;
}
.sf-ios-sec-btn:active {
  transform: translateY(2px);
  box-shadow: none;
}

/* ---------- 3-Destination Primary Navigation: My Snackable tab mascot ---------- */
.sf-tab-my-snackable .sf-tab-mascot-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
}
.sf-tab-my-snackable .sf-tab-mascot-mini img {
  width: 24px;
  height: 28px;
  object-fit: contain;
  display: block;
  filter:
    drop-shadow(1.4px 0 0 #FFFFFF)
    drop-shadow(-1.4px 0 0 #FFFFFF)
    drop-shadow(0 1.4px 0 #FFFFFF)
    drop-shadow(0 -1.4px 0 #FFFFFF)
    drop-shadow(0 2px 6px rgba(255, 22, 148, 0.35));
  pointer-events: none;
}
.sf-tab-my-snackable .sf-open { display: none !important; }
.sf-tab-my-snackable.is-active .sf-open,
.sf-tab-my-snackable.is-pressed .sf-open { display: block !important; }
.sf-tab-my-snackable.is-active .sf-closed,
.sf-tab-my-snackable.is-pressed .sf-closed { display: none !important; }

/* ---------- First-Screen Interactive Snackable Hero Stage (R1 Portrait Desktop + R2 Single Snackable Discover) ---------- */
:root {
  --sf-header-h: 54px;
  --sf-tabbar-h: 62px;
  --sf-search-open-h: 0px;
}
body.sf-search-open:not(.sf-searching) {
  --sf-search-open-h: 52px;
}
#galleryHome[data-reveal],
body:has(#siforFirstScreenHero) [data-reveal] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* R2: Hide feed grid, filter chips, counts & footer clutter on default Discover when not actively searching */
body:not(.sf-searching) #siforHoneycombGrid,
body:not(.sf-searching) .sifor-hive-filter-row,
body:not(.sf-searching) #siforHiveCount,
body:not(.sf-searching) .sifor-hive-tap-hint,
body:has(#siforFirstScreenHero):not(.sf-searching) .sifor-manifesto-whisper-wrap,
body:has(#siforFirstScreenHero):not(.sf-searching) .sifor-manifesto-corner-btn,
body:has(#siforFirstScreenHero):not(.sf-searching) .app-footer {
  display: none !important;
}
body:not(.sf-search-open):not(.sf-searching) .sifor-hive-controls {
  display: none !important;
}
body.sf-searching #siforFirstScreenHero {
  display: none !important;
}

/* Search bar drawer when opened or actively searching */
.sifor-hive-controls {
  order: -1;
  width: min(calc(100% - 16px), 520px);
  margin: 0 auto 4px !important;
  padding: 0 !important;
  gap: 6px;
}
.sifor-hive-search-wrap {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  gap: 6px;
}
.sifor-hive-search-wrap::before {
  top: 50%;
  left: 14px;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
}
.sifor-hive-search {
  min-height: 42px !important;
  height: 42px !important;
  padding: 0 38px 0 40px !important;
  font-size: 14.5px !important;
}
.sifor-hive-search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--sifor-ink, #171719);
  background: var(--sifor-soft-lilac, #F5F1FF);
  color: var(--sifor-ink, #171719);
  font: 900 16px/1 var(--sifor-font-ui);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

/* Full-viewport single-Snackable lock between .sf-header and .sf-tabbar */
body:has(#siforFirstScreenHero):not(.sf-searching) {
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  padding-bottom: 0 !important;
  margin: 0 !important;
  overflow: hidden;
}
body:has(#siforFirstScreenHero):not(.sf-searching) .app {
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  gap: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
}
body:has(#siforFirstScreenHero):not(.sf-searching) .app-main {
  flex: 1 1 0%;
  min-height: 0;
  width: 100%;
  padding: 0 !important;
  margin: 0 auto !important;
  display: flex;
  flex-direction: column;
}
body:has(#siforFirstScreenHero):not(.sf-searching) .gallery-home {
  flex: 1 1 0%;
  min-height: 0;
  width: 100%;
  padding: 0 !important;
  margin: 0 auto !important;
  display: flex;
  flex-direction: column;
}
body:has(#siforFirstScreenHero):not(.sf-searching) #siforStickerHive {
  flex: 1 1 0%;
  min-height: 0;
  width: 100%;
  padding: 2px 6px calc(var(--sf-tabbar-h, 62px) + env(safe-area-inset-bottom, 0px) + 4px) !important;
  margin: 0 auto !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-sizing: border-box;
}

.sifor-first-screen-hero {
  --sf-hero-avail-h: calc(100vh - var(--sf-header-h, 54px) - var(--sf-tabbar-h, 62px) - var(--sf-search-open-h, 0px) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  --sf-hero-avail-h: calc(100dvh - var(--sf-header-h, 54px) - var(--sf-tabbar-h, 62px) - var(--sf-search-open-h, 0px) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  --sf-hero-chrome-h: 0px;
  --sf-player-max-h: var(--sf-hero-avail-h);
  --sf-player-max-w: min(100vw, 440px);
  --sf-player-w: min(var(--sf-player-max-w), calc(var(--sf-player-max-h) * 9 / 16));
  --sf-player-h: min(var(--sf-player-max-h), calc(var(--sf-player-max-w) * 16 / 9));
  width: 100%;
  max-width: 100vw;
  max-height: var(--sf-hero-avail-h);
  margin: 0 auto;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: #0B0C14;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  box-sizing: border-box;
  overscroll-behavior: none;
}
body:has(#siforFirstScreenHero):not(.sf-searching) .sifor-first-screen-copy,
body:has(#siforFirstScreenHero):not(.sf-searching) .sifor-first-screen-actions {
  display: none !important;
}
.sifor-first-screen-copy {
  width: 0;
  min-width: 100%;
  text-align: center;
  padding: 0 2px;
  overflow: hidden;
}
.sifor-first-screen-headline {
  margin: 0;
  font-family: var(--sifor-font-display);
  font-size: clamp(11.5px, 1.7vh, 14.5px);
  line-height: 1.15;
  color: var(--sifor-ink, #171719);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sifor-first-screen-sub {
  display: none !important;
}
.sifor-first-screen-stage-wrap {
  width: var(--sf-player-w);
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  background: #0B0C14;
}
.sifor-first-screen-wavelength {
  display: none !important;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(11, 12, 20, 0.92);
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  font-size: 12.5px;
  font-weight: 900;
  color: #F8FAFC;
}
.sifor-wavelength-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--sifor-brand-pink, #FF1694);
  box-shadow: 0 0 0 3px rgba(255, 22, 148, 0.22);
  flex: none;
}
.sifor-wavelength-reason {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--sifor-soft-yellow, #FFF6BF);
  border: 1.5px solid var(--sifor-ink, #171719);
  font-size: 11.5px;
  font-weight: 900;
  color: var(--sifor-ink, #171719);
}
.sifor-wavelength-reason[hidden] {
  display: none !important;
}
.sifor-first-screen-player-box {
  position: relative;
  width: var(--sf-player-w);
  height: var(--sf-player-h);
  aspect-ratio: 9 / 16;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 0;
  border: 0;
  background: #0B0C14;
  overflow: hidden;
  box-shadow: none;
  flex: 0 0 auto;
  overscroll-behavior: none;
  overscroll-behavior-y: none;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}
.sifor-first-screen-stage-loader {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #0B0C14;
  color: #F8FAFC;
  font-family: var(--sifor-font-ui);
  font-size: 13px;
  font-weight: 900;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.sifor-first-screen-stage-loader.is-loaded {
  opacity: 0;
}
.sifor-first-screen-stage-orb {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 4px solid #FFD6EC;
  border-top-color: var(--sifor-brand-pink, #FF1694);
  animation: sfHeroOrbSpin 0.85s linear infinite;
}
@keyframes sfHeroOrbSpin {
  to { transform: rotate(360deg); }
}
.sifor-first-screen-iframe {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: transparent;
}
.sifor-first-screen-hint-pill {
  display: none !important;
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 5;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--sifor-brand-yellow, #FFE24C);
  color: var(--sifor-ink, #171719);
  border: 2px solid var(--sifor-ink, #171719);
  box-shadow: 0 3px 0 var(--sifor-ink, #171719);
  font-size: 12.5px;
  font-weight: 900;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.sifor-first-screen-hint-pill.is-dismissed {
  opacity: 0;
  transform: translate(-50%, 8px);
}
.sifor-first-screen-fs-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 6;
  padding: 5px 11px;
  border-radius: 999px;
  border: 2px solid var(--sifor-ink, #171719);
  background: rgba(255, 255, 255, 0.94);
  color: var(--sifor-ink, #171719);
  font: 900 11.5px/1 var(--sifor-font-ui);
  box-shadow: 0 2px 0 var(--sifor-ink, #171719);
  cursor: pointer;
}
.sifor-first-screen-actions {
  width: 0;
  min-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.sifor-first-screen-actions .sf-btn,
.sifor-first-screen-make-btn {
  width: 100%;
  min-height: 32px !important;
  height: 32px !important;
  padding: 0 14px !important;
  font-size: 13px !important;
  box-shadow: 0 2px 0 var(--sifor-ink, #171719) !important;
}
.sifor-first-screen-helper {
  display: none !important;
}

/* ==========================================================================
   Immersive Post Viewer: Edge-to-Edge Stage + Dynamic Header & Footer Visibility
   ========================================================================== */
body.sf-immersive-post:not(.sf-searching),
body:has(#siforFirstScreenHero):not(.sf-searching) {
  background: #0B0C14 !important;
  padding-bottom: 0 !important;
  margin: 0 !important;
  height: 100vh;
  height: 100svh;
  height: var(--sf-vv-height, 100dvh);
  max-height: var(--sf-vv-height, 100dvh);
  overflow: hidden;
  overscroll-behavior-y: none;
}

body:has(#siforFirstScreenHero):not(.sf-searching) .app,
body:has(#siforFirstScreenHero):not(.sf-searching) .app-main,
body:has(#siforFirstScreenHero):not(.sf-searching) .gallery-home,
body:has(#siforFirstScreenHero):not(.sf-searching) #siforStickerHive {
  width: 100vw !important;
  max-width: 100vw !important;
  height: 100vh !important;
  height: 100svh !important;
  height: var(--sf-vv-height, 100dvh) !important;
  max-height: var(--sf-vv-height, 100dvh) !important;
  padding: 0 !important;
  margin: 0 !important;
  background: #0B0C14 !important;
  overscroll-behavior-y: contain !important;
}

body:has(#siforFirstScreenHero):not(.sf-searching) .sifor-first-screen-hero,
body:has(#siforFirstScreenHero):not(.sf-searching) .sifor-first-screen-stage-wrap,
body:has(#siforFirstScreenHero):not(.sf-searching) .sifor-first-screen-player-box {
  width: 100vw !important;
  max-width: 100vw !important;
  height: 100vh !important;
  height: 100svh !important;
  height: var(--sf-vv-height, 100dvh) !important;
  max-height: var(--sf-vv-height, 100dvh) !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  aspect-ratio: auto !important;
  background: #0B0C14 !important;
  touch-action: none !important;
  overscroll-behavior: none !important;
  overscroll-behavior-y: none !important;
}

body.sf-immersive-post:not(.sf-searching) .sf-header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  max-width: 100vw;
  background: #0B0C14 !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.26s ease;
}

body.sf-immersive-post:not(.sf-searching) .sf-tabbar {
  position: fixed !important;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  background: #0B0C14 !important;
  border-top: 1.5px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.26s ease, visibility 0.26s ease;
}

body.sf-immersive-post.sf-chrome-hidden:not(.sf-searching):not(.sf-search-open):not(.sf-notif-open) {
  --sf-footer-offset: 0px;
}

body.sf-immersive-post.sf-chrome-hidden:not(.sf-searching):not(.sf-search-open):not(.sf-notif-open) .sf-header {
  transform: translateY(-115%);
  opacity: 0;
  pointer-events: none;
}

body.sf-immersive-post.sf-chrome-hidden:not(.sf-searching):not(.sf-search-open):not(.sf-notif-open) .sf-tabbar {
  transform: translateY(115%);
  opacity: 0;
  pointer-events: none;
}

/* Always hide the footer when Stickers picker, Connections sheet, Info drawer, Hub composer, or any bottom sheet is open */
body.sf-stickers-open .sf-tabbar,
body.sf-matches-open .sf-tabbar,
body.sf-sheet-open .sf-tabbar,
body.sf-hub-composing .sf-tabbar,
body.sf-info-drawer-open .sf-tabbar,
body:has(#sfHubFeed.is-composing) .sf-tabbar,
body:has(.sf-hub-compose.is-open) .sf-tabbar,
body:has(.sf-hub-create.is-open) .sf-tabbar,
body:has(#sfStickersSheet.is-open) .sf-tabbar,
body:has(#sfMatches:not([hidden])) .sf-tabbar,
body:has(#sfMySnackableSheet:not([hidden])) .sf-tabbar,
body:has(#sfSecondaryMenu:not([hidden])) .sf-tabbar,
body:has(#sifor-info-drawer:not([hidden])) .sf-tabbar {
  transform: translateY(115%) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.sf-chrome-reveal-handle,
.sf-chrome-reveal-bottom,
body.sf-immersive-post.sf-chrome-hidden:not(.sf-searching):not(.sf-search-open):not(.sf-notif-open):not(.sf-stickers-open):not(.sf-matches-open):not(.sf-info-drawer-open) .sf-chrome-reveal-handle,
body.sf-immersive-post.sf-chrome-hidden:not(.sf-searching):not(.sf-search-open):not(.sf-notif-open):not(.sf-stickers-open):not(.sf-matches-open):not(.sf-info-drawer-open) .sf-chrome-reveal-bottom,
body:has(#sifor-info-drawer:not([hidden])) .sf-chrome-reveal-handle,
body:has(#sifor-info-drawer:not([hidden])) .sf-chrome-reveal-bottom,
body:has(#sfStickersSheet.is-open) .sf-chrome-reveal-handle,
body:has(#sfStickersSheet.is-open) .sf-chrome-reveal-bottom {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Prevent parent stage floating pills/avatars/hints from overlapping an active Snackable doorway inside the iframe */
body.sf-doorway-active #sifor-creator-avatar-btn,
body.sf-doorway-active .sf-creator-corner-avatar,
body.sf-doorway-active .sifor-creator-avatar-btn,
body.sf-doorway-active [data-sifor-creator-avatar="1"],
body.sf-doorway-active #sifor-first-visit-hint,
body.sf-doorway-active .sifor-first-visit-hint,
body.sf-doorway-active #siforHeroPeelHint,
body.sf-doorway-active .sifor-first-screen-hint-pill,
body.sf-doorway-active #siforDiscoveryOnboarding,
body.sf-doorway-active .sifor-discovery-onboarding,
body.sf-doorway-active #siforOnboardingReplayBtn,
body.sf-doorway-active .sifor-onboard-replay-btn,
body.sf-doorway-active #sfFeedPopSticker,
body.sf-doorway-open #sfCookie {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.16s ease, visibility 0.16s ease;
}

/* ==========================================================================
   Stickers Bottom Sheet (Guest Snackables Tray + 1-4 Word Composer + Pad)
   ========================================================================== */
#sfStickersSheet {
  position: fixed;
  top: var(--sf-vv-top, 0px);
  left: 0;
  right: 0;
  bottom: auto;
  height: var(--sf-vv-height, 100dvh);
  max-height: var(--sf-vv-height, 100dvh);
  z-index: 95;
  background: rgba(11, 13, 19, 0.14);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
}
#sfStickersSheet.is-open {
  display: flex;
}
body.sf-stickers-open .sf-header,
body.sf-stickers-open #sifor-share-header,
body.sf-stickers-open .sifor-share-back,
body.sf-stickers-open [data-sf-back] {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
#sfStickersQuotaPill {
  display: none !important;
}
#sfGuestPlacementStage {
  position: relative;
  width: min(100vw, 540px);
  flex: 1 1 auto;
  min-height: 200px;
  border-radius: 0;
  border: 0;
  background: transparent center/cover no-repeat;
  overflow: hidden;
  touch-action: none;
  user-select: none;
}
.sf-slap-stage-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 14px 8px;
  background: linear-gradient(180deg, rgba(11, 12, 20, 0.56) 0%, rgba(11, 12, 20, 0) 100%);
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.sf-slap-stage-circle-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  background: rgba(23, 25, 35, 0.68);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  padding: 0;
}
.sf-slap-stage-circle-btn[hidden] {
  display: none !important;
}
.sf-slap-stage-circle-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sf-slap-stage-grab {
  width: 44px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}
#sfStickersSheet.is-living-answer-mode #sfGuestPlacementStage {
  cursor: pointer;
}
#sfGuestDraggableSticker {
  position: absolute;
  left: 36%;
  top: 58%;
  width: 104px;
  height: 104px;
  transform: translate(-50%, -50%);
  z-index: 8;
  cursor: grab;
  border-radius: 14px;
  border: 2.5px solid #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
}
#sfGuestDraggableSticker.is-tap-gliding {
  transition: left 0.22s cubic-bezier(0.22, 1, 0.36, 1), top 0.22s cubic-bezier(0.22, 1, 0.36, 1), transform 0.16s ease;
}
#sfGuestDraggableSticker.is-actively-dragging {
  transition: none !important;
}
#sfGuestDraggableSticker:active {
  cursor: grabbing;
  transform: translate(-50%, -50%) scale(1.04);
}
#sfGuestDraggableSticker img,
#sfGuestDraggableSticker .sf-guest-draggable-svg svg {
  width: 86px;
  height: 86px;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}
.sf-guest-draggable-svg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  pointer-events: none;
}
.sf-guest-draggable-svg[hidden] {
  display: none !important;
}
@keyframes sfStampRigFloat {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-6px) rotate(1.5deg); }
}
@keyframes sfStampRigBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  45% { transform: translateY(-8px) scale(1.04, 0.96); }
}
@keyframes sfStampRigWiggle {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(4deg); }
}
@keyframes sfStampRigSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes sfStampRigPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
@keyframes sfStampRigJelly {
  0%, 100% { transform: scale(1, 1); }
  35% { transform: scale(1.08, 0.92); }
  65% { transform: scale(0.94, 1.06); }
}
@keyframes sfStampRigGlitch {
  0%, 92%, 100% { transform: translate(0, 0); }
  94% { transform: translate(-2px, 1px) skewX(2deg); }
  97% { transform: translate(2px, -1px) skewX(-2deg); }
}
#sfGuestDraggableSticker.sf-rig-float img,
#sfGuestDraggableSticker.sf-rig-float .sf-guest-draggable-svg { animation: sfStampRigFloat 2.6s ease-in-out infinite; }
#sfGuestDraggableSticker.sf-rig-bounce img,
#sfGuestDraggableSticker.sf-rig-bounce .sf-guest-draggable-svg { animation: sfStampRigBounce 1.7s ease-in-out infinite; }
#sfGuestDraggableSticker.sf-rig-wiggle img,
#sfGuestDraggableSticker.sf-rig-wiggle .sf-guest-draggable-svg { animation: sfStampRigWiggle 1.8s ease-in-out infinite; }
#sfGuestDraggableSticker.sf-rig-spin img,
#sfGuestDraggableSticker.sf-rig-spin .sf-guest-draggable-svg { animation: sfStampRigSpin 7s linear infinite; }
#sfGuestDraggableSticker.sf-rig-pulse img,
#sfGuestDraggableSticker.sf-rig-pulse .sf-guest-draggable-svg { animation: sfStampRigPulse 2s ease-in-out infinite; }
#sfGuestDraggableSticker.sf-rig-jelly img,
#sfGuestDraggableSticker.sf-rig-jelly .sf-guest-draggable-svg { animation: sfStampRigJelly 2.2s ease-in-out infinite; }
#sfGuestDraggableSticker.sf-rig-glitch img,
#sfGuestDraggableSticker.sf-rig-glitch .sf-guest-draggable-svg { animation: sfStampRigGlitch 2.8s steps(2, end) infinite; }
#sfGuestDraggableSticker.sf-finish-neon img { filter: drop-shadow(0 0 10px rgba(80, 245, 188, 0.72)) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35)); }
#sfGuestDraggableSticker.sf-finish-glitter img,
#sfGuestDraggableSticker.sf-finish-holo img { filter: drop-shadow(0 0 10px rgba(255, 226, 76, 0.68)) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35)); }
#sfGuestDraggableSticker.sf-finish-chrome img,
#sfGuestDraggableSticker.sf-finish-rgb img { filter: drop-shadow(0 0 10px rgba(255, 22, 148, 0.62)) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35)); }
@media (prefers-reduced-motion: reduce) {
  #sfGuestDraggableSticker img,
  #sfGuestDraggableSticker .sf-guest-draggable-svg {
    animation: none !important;
  }
}
.sf-slap-corner {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: #FFFFFF;
  border: 1.5px solid #171719;
  pointer-events: none;
}
.sf-slap-corner.is-tl { top: -6px; left: -6px; }
.sf-slap-corner.is-tr { top: -6px; right: -6px; }
.sf-slap-corner.is-bl { bottom: -6px; left: -6px; }
.sf-slap-corner.is-br { bottom: -6px; right: -6px; }
#sfGuestSnackableComposer.sf-slap-speech-popover {
  position: absolute;
  left: 50%;
  top: 56px;
  transform: translate(-50%, 0);
  width: min(90vw, 318px);
  max-height: calc(100% - 62px);
  overflow-y: auto;
  box-sizing: border-box;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #FFFFFF;
  color: #171719;
  border: 2px solid #171719;
  border-radius: 20px;
  padding: 12px 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}
#sfGuestSnackableComposer.sf-slap-speech-popover::after {
  content: "";
  position: absolute;
  bottom: -9px;
  left: calc(50% + var(--sf-pop-arrow-x, 0px) - 9px);
  width: 18px;
  height: 18px;
  background: #FFFFFF;
  transform: rotate(45deg);
  border-radius: 3px;
  z-index: -1;
}
#sfGuestSnackableComposer.sf-slap-speech-popover.is-below::after {
  bottom: auto;
  top: -9px;
}
.sf-slap-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.sf-slap-popover-title {
  font-family: var(--sifor-font-ui, "Nunito", sans-serif);
  font-size: 14px;
  font-weight: 900;
  color: #171719;
}
.sf-guest-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #F3F4F8;
  border: 1.5px solid #D1D5DB;
  border-radius: 13px;
  padding: 5px 11px;
  min-height: 42px;
}
.sf-guest-input-row:focus-within {
  border-color: #FF1694;
  background: #FFFFFF;
}
#sfGuestSnackableInput {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: 800 15px/1.2 var(--sifor-font-ui, "Nunito", sans-serif);
  color: #171719;
}
.sf-guest-char-counter {
  font-size: 11.5px;
  font-weight: 800;
  color: #6B7280;
  white-space: nowrap;
}
#sfGuestWordCounter,
.sf-guest-word-counter {
  font-size: 11px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 999px;
  background: #EFEAF7;
  color: #171719;
  white-space: nowrap;
}
#sfGuestWordCounter.is-valid {
  background: #DDFBEF;
  color: #065F46;
}
#sfGuestWordCounter.is-over {
  background: #FEE2E2;
  color: #B91C1C;
}
.sf-slap-popover-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}
#sfSlapCancelBtn.sf-slap-cancel-btn {
  flex: 0 0 auto;
  min-height: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 2px solid #171719;
  background: #F3F4F8;
  color: #171719;
  font-family: var(--sifor-font-ui, "Nunito", sans-serif);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
#sfSlapSnackableBtn.sf-slap-add-btn {
  flex: 1 1 auto;
  width: 100%;
  min-height: 44px;
  height: 44px;
  border-radius: 999px;
  border: 2px solid #171719;
  background: #FF1694;
  color: #FFFFFF;
  font-family: "Fredoka", var(--sifor-font-ui, "Nunito", sans-serif);
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 3px 0 #171719;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
}
#sfSlapSnackableBtn.sf-slap-add-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #171719;
}
#sfSlapSnackableBtn.sf-slap-add-btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  box-shadow: none;
}
/* Living Answer Streamlined Stamp Mode (#sfStickersSheet.is-living-answer-mode) */
#sfStickersSheet.is-living-answer-mode #sfGuestSnackableComposer {
  display: none !important;
}
#sfLivingAnswerStampBar {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  width: min(94vw, 396px);
  max-width: calc(100vw - 16px);
  z-index: 32;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #FFFDF5;
  color: #171719;
  border: 2.5px solid #171719;
  border-radius: 22px;
  padding: 10px 12px;
  box-shadow: 0 6px 0 #171719, 0 14px 30px rgba(0, 0, 0, 0.42);
  box-sizing: border-box;
  transition: top 0.2s ease, bottom 0.2s ease;
}
#sfLivingAnswerStampBar[hidden] {
  display: none !important;
}
#sfLivingAnswerStampBar.is-docked-top {
  bottom: auto;
  top: calc(58px + env(safe-area-inset-top, 0px));
}
.sf-la-stamp-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
.sf-la-stamp-quote-wrap {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sf-la-stamp-quote {
  font-family: "Fredoka", var(--sifor-font-ui, "Nunito", sans-serif);
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.25;
  color: #171719;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
}
.sf-la-stamp-cue {
  font-family: var(--sifor-font-ui, "Nunito", sans-serif);
  font-size: 11.5px;
  font-weight: 800;
  color: #4B5563;
}
.sf-la-stage-banner,
#sfLivingAnswerStageBanner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  max-width: 100%;
  background: #FFE24C;
  border: 1.5px solid #171719;
  border-radius: 999px;
  padding: 3px 10px;
  font-family: "Fredoka", var(--sifor-font-ui, "Nunito", sans-serif);
  font-size: 11.5px;
  font-weight: 900;
  color: #171719;
  line-height: 1.2;
  box-sizing: border-box;
}
.sf-la-stamp-edit-btn {
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  border: 2px solid #171719;
  background: #FFE24C;
  color: #171719;
  font-family: "Fredoka", var(--sifor-font-ui, "Nunito", sans-serif);
  font-size: 12.5px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 2px 0 #171719;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sf-la-stamp-edit-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 2px solid #171719;
  border-radius: 14px;
  padding: 4px 10px;
  min-height: 44px;
}
.sf-la-stamp-edit-row[hidden] {
  display: none !important;
}
#sfLivingAnswerEditInput {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: 800 14.5px/1.25 var(--sifor-font-ui, "Nunito", sans-serif);
  color: #171719;
}
#sfLivingAnswerCharCounter {
  font-size: 11.5px;
  font-weight: 800;
  color: #6B7280;
  white-space: nowrap;
}
#sfLivingAnswerStatus {
  font-size: 12px;
  font-weight: 800;
  color: #065F46;
}
#sfLivingAnswerStatus:empty {
  display: none;
}
#sfLivingAnswerStatus.is-error {
  color: #B91C1C;
}
#sfLivingAnswerChangeStickerBtn {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 2px solid #50F5BC;
  background: rgba(80, 245, 188, 0.14);
  color: #50F5BC;
  font-family: "Fredoka", var(--sifor-font-ui, "Nunito", sans-serif);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}
#sfStickersSheet.is-living-answer-mode #sfLivingAnswerChangeStickerBtn {
  display: inline-flex;
}
#sfStickersSheet.is-living-answer-mode .sf-stickers-sheet.is-collapsed #sfSlapSheetToggleBtn {
  display: none !important;
}
#sfStickersSheet.is-living-answer-mode .sf-stickers-sheet.is-collapsed .sf-stickers-sheet-title {
  font-size: 15px !important;
}
.sf-stickers-sheet {
  width: min(100vw, 540px);
  max-height: min(44dvh, 326px);
  flex: 0 0 auto;
  background: rgba(11, 12, 20, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #FFFFFF;
  border-top: 1.5px solid rgba(255, 255, 255, 0.14);
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  padding: 8px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), padding 0.2s ease, gap 0.2s ease;
  touch-action: pan-y;
}
.sf-stickers-sheet.is-dragging-sheet {
  transition: none !important;
}
.sf-stickers-sheet-grab {
  position: relative;
  width: 44px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  margin: 0 auto 2px;
  cursor: grab;
  touch-action: none;
}
.sf-stickers-sheet-grab::before {
  content: "";
  position: absolute;
  inset: -14px -80px;
}
.sf-stickers-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex: 0 0 auto;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.sf-stickers-sheet-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.sf-slap-sheet-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  font-family: var(--sifor-font-ui, "Nunito", sans-serif);
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.sf-slap-sheet-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}
.sf-stickers-sheet.is-collapsed {
  padding: 8px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  gap: 4px;
}
.sf-stickers-sheet.is-collapsed .sf-stickers-sheet-sub,
.sf-stickers-sheet.is-collapsed #sfOwnerSnackableSettings,
.sf-stickers-sheet.is-collapsed #sfSlapCatPills,
.sf-stickers-sheet.is-collapsed .sf-slap-catalog-strip-wrap,
.sf-stickers-sheet.is-collapsed .sf-slap-ludo-promo-row,
.sf-stickers-sheet.is-collapsed #sfSlapShuffleBtn {
  display: none !important;
}
/* When virtual keyboard is open, hide bottom tray completely so there are never two overlapping sheets */
body.sf-kb-open #sfStickersSheet .sf-stickers-sheet,
#sfStickersSheet.is-kb-open .sf-stickers-sheet {
  display: none !important;
}
.sf-slap-undo-toast {
  position: fixed;
  left: 50%;
  bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 98;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: calc(100vw - 16px);
  padding: 8px 12px;
  border-radius: 24px;
  background: #171719;
  color: #FFFFFF;
  border: 2px solid #FFE24C;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.42);
  font-family: var(--sifor-font-ui, "Nunito", sans-serif);
  font-size: 13px;
  font-weight: 800;
  box-sizing: border-box;
}
.sf-slap-share-toast-btn {
  min-height: 44px;
  min-width: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 2px solid #171719;
  background: #50F5BC;
  color: #171719;
  font-family: "Fredoka", var(--sifor-font-ui, "Nunito", sans-serif);
  font-size: 12.5px;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.sf-slap-undo-toast-btn {
  min-height: 44px;
  min-width: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 0;
  background: #FF1694;
  color: #FFFFFF;
  font-family: var(--sifor-font-ui, "Nunito", sans-serif);
  font-size: 12.5px;
  font-weight: 900;
  cursor: pointer;
}
#sfStickersSheet .sf-stickers-sheet-title,
.sf-stickers-sheet-title {
  display: block !important;
  margin: 0 !important;
  font-family: var(--sifor-font-ui, "Nunito", sans-serif);
  font-size: 20px !important;
  font-weight: 900 !important;
  line-height: 1.15 !important;
  color: #FFFFFF !important;
  text-shadow: none !important;
  text-align: left !important;
  white-space: nowrap;
}
.sf-stickers-sheet-sub {
  margin: 2px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: #9CA3AF;
  white-space: nowrap;
}
.sf-slap-shuffle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  height: auto;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #2A2D3A;
  color: #FFFFFF;
  font-family: var(--sifor-font-ui, "Nunito", sans-serif);
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.sf-slap-shuffle-btn:hover {
  background: #343848;
}
.sf-stickers-quota-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #2A2D3A;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 11.5px;
  font-weight: 800;
  color: #FFFFFF;
  white-space: nowrap;
}
#sfOwnerSnackableSettings {
  background: #262936;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 0 0 auto;
  color: #FFFFFF;
}
#sfOwnerSnackableSettings[hidden] {
  display: none !important;
}
.sf-owner-settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  font-weight: 800;
}
.sf-owner-limit-pills {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sf-owner-limit-pill {
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: #1C1E26;
  color: #FFFFFF;
  font: 800 12.5px/1 var(--sifor-font-ui);
  cursor: pointer;
}
.sf-owner-limit-pill.is-active,
.sf-owner-limit-pill[aria-pressed="true"] {
  background: #FF1694;
  color: #FFFFFF;
  border-color: #FF1694;
}
.sf-slap-catalog-strip-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.sf-slap-ludo-promo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  flex-shrink: 0;
  gap: 4px 10px;
  width: 100%;
  margin-top: 2px;
  padding: 5px 10px;
  border-radius: 12px;
  background: rgba(255, 226, 76, 0.10);
  border: 1px solid rgba(255, 226, 76, 0.30);
  font-size: 11.5px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.88);
}
.sf-slap-ludo-promo-lbl {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.86);
}
.sf-slap-ludo-promo-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.sf-slap-ludo-promo-links a {
  font-weight: 800;
  text-decoration: none;
  color: #50F5BC;
}
.sf-slap-ludo-promo-links a#sfSlapLudoAffiliateLink {
  color: #FFE24C;
  text-decoration: underline;
  text-underline-offset: 2px;
}
#sfStickersCatalogGrid {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-height: 76px;
  max-height: 84px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 2px;
  scrollbar-width: none;
}
#sfStickersCatalogGrid::-webkit-scrollbar {
  display: none;
}
.sf-sticker-pick-tile {
  flex: 0 0 68px;
  width: 68px;
  height: 68px;
  min-height: 68px;
  min-width: 68px;
  padding: 8px;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  background: #282B38;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}
.sf-sticker-pick-tile img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  display: block;
  pointer-events: none;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}
.sf-sticker-pick-tile span {
  display: none;
}
.sf-sticker-pick-tile:hover,
.sf-sticker-pick-tile:focus-visible {
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}
.sf-sticker-pick-tile.is-selected,
.sf-sticker-pick-tile[aria-pressed="true"] {
  background: #30263A;
  border: 2.5px solid #FF1694;
  box-shadow: 0 0 12px rgba(255, 22, 148, 0.38);
}
.sf-slap-catalog-next-btn {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #2A2D3A;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.sf-placement-hint {
  position: absolute;
  left: 12px;
  bottom: 10px;
  z-index: 2;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(23, 23, 25, 0.72);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  pointer-events: none;
}
#sfGuestCreatorConsentWrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 800;
  color: #4B5563;
}
#sfGuestCreatorConsentWrap[hidden] {
  display: none !important;
}
.sf-guest-consent-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  cursor: pointer;
}
#sfGuestCreatorConsentWrap input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: #FF1694;
  cursor: pointer;
}
.sf-guest-handle-aux {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}
#sfGuestSlapHandleBtn {
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1.5px solid #171719;
  background: #FFF6BF;
  color: #171719;
  font: 900 11.5px/1.15 var(--sifor-font-ui, "Nunito", sans-serif);
  cursor: pointer;
}
#sfGuestSlapHandleRow {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
#sfGuestSlapHandleRow[hidden] {
  display: none !important;
}
#sfGuestSlapHandleInput {
  width: 100%;
  min-height: 44px;
  padding: 6px 12px;
  border-radius: 12px;
  border: 1.5px solid #171719;
  background: #FFFFFF;
  color: #171719;
  font-family: var(--sifor-font-ui, "Nunito", sans-serif);
  font-size: 16px;
  font-weight: 800;
  box-sizing: border-box;
}
#sfGuestSlapHandleHint {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  color: #6B7280;
}
#sfGuestSlapStatus {
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  min-height: 16px;
  color: #171719;
}
#sfGuestSlapStatus:empty {
  display: none;
}
#sfGuestSlapStatus.is-error {
  color: #D8164D;
}
#sfGuestSlapStatus.is-ok {
  color: #0e6f4f;
}
.sf-guest-undo-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 14px;
  background: #DDFBEF;
  border: 1.5px solid #10B981;
  font-size: 12px;
  font-weight: 900;
  color: #065F46;
}
@media (prefers-reduced-motion: reduce) {
  body.sf-immersive-post:not(.sf-searching) .sf-header,
  body.sf-immersive-post:not(.sf-searching) .sf-tabbar,
  .sf-chrome-reveal-handle,
  .sf-chrome-reveal-bottom,
  .sf-sticker-pick-tile {
    transition: none !important;
    animation: none !important;
  }
}

/* ==========================================================================
   Clean My Snackables Sheet (#sfMySnackableSheet) — Clear, Smooth Action Cards
   ========================================================================== */
#sfMySnackableSheet.sf-mypost-clean-modal {
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
#sfMySnackableSheet .sf-mypost-clean-card {
  width: min(100vw, 460px);
  background: #FFFFFF;
  border: 1.5px solid #E5E7EB;
  border-bottom: 0;
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -10px 34px rgba(15, 23, 42, 0.18);
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
#sfMySnackableSheet .sf-mypost-clean-head {
  background: #FFF0F7;
  border: 1.5px solid #FBCFE8;
  box-shadow: none;
  padding: 5px 14px 5px 8px;
  font-size: 14.5px;
  font-weight: 900;
  color: #171719;
}
#sfMySnackableSheet .sf-sheet-sticky-top {
  background: #FFFDF9;
  border-bottom-color: #E5E7EB;
}
#sfMySnackableSheet .sf-mypost-clean-x {
  position: static;
  flex: none;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border: 1.5px solid #E5E7EB;
  background: #F8FAFC;
  color: #374151;
  box-shadow: none;
}
#sfMySnackableSheet .sf-mypost-clean-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 0;
  padding: 14px 16px calc(22px + env(safe-area-inset-bottom, 0px));
}
#sfMySnackableSheet[data-mypost-view="settings"] #sfMyPostNavList {
  display: none !important;
}
#sfMySnackableSheet[data-mypost-view="settings"] #sfMyPostSettingsPanel {
  margin-top: 0 !important;
}
#sfLivingAnswerQuestionPill.sf-la-question-pill {
  padding: 5px 10px;
  border-radius: 12px;
  background: #FFFDF0;
  border: 1.5px solid #171719;
  font-family: var(--sifor-font-ui, "Nunito", sans-serif);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.3;
  color: #171719;
  word-break: break-word;
}
#sfLivingAnswerQuestionPill[hidden] {
  display: none !important;
}
.sf-mypost-action {
  width: 100%;
  min-height: 60px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1.5px solid #E5E7EB;
  background: #F8FAFC;
  color: #171719 !important;
  text-decoration: none !important;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  box-sizing: border-box;
  text-align: left;
  font-family: var(--sifor-font-ui, "Nunito", sans-serif);
  transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease, box-shadow 0.14s ease;
  -webkit-tap-highlight-color: transparent;
}
.sf-mypost-action:hover,
.sf-mypost-action:focus-visible {
  background: #F1F5F9;
  border-color: #CBD5E1;
  transform: translateY(-1px);
  outline: none;
}
.sf-mypost-action:active {
  transform: translateY(1px);
}
.sf-mypost-action.is-primary {
  background: linear-gradient(135deg, #FF1694 0%, #FF3B8D 100%);
  border-color: #E60F85;
  color: #FFFFFF !important;
  box-shadow: 0 6px 18px rgba(255, 22, 148, 0.26);
}
.sf-mypost-action.is-primary:hover,
.sf-mypost-action.is-primary:focus-visible {
  background: linear-gradient(135deg, #F0128B 0%, #FF2A83 100%);
  border-color: #D80D7C;
}
.sf-mypost-action-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  color: #FF1694;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sf-mypost-action.is-primary .sf-mypost-action-ico {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
  color: #FFFFFF;
}
.sf-mypost-action-ico svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sf-mypost-action-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sf-mypost-action-copy b {
  font-size: 15.5px;
  font-weight: 900;
  line-height: 1.2;
  color: inherit;
}
.sf-mypost-action-copy small {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.25;
  color: #64748B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sf-mypost-action.is-primary .sf-mypost-action-copy small {
  color: rgba(255, 255, 255, 0.88);
}
.sf-mypost-chev {
  flex-shrink: 0;
  opacity: 0.55;
}
.sf-mypost-action.is-primary .sf-mypost-chev {
  opacity: 0.9;
}
#sfMySnackableSheet .sf-mypost-clean-settings {
  margin-top: 2px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1.5px solid #E5E7EB;
  background: #F8FAFC;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #1E293B;
}
#sfMySnackableSheet .sf-mypost-clean-toggle i {
  border: 1.5px solid #CBD5E1;
  background: #E2E8F0;
}
#sfMySnackableSheet .sf-mypost-clean-toggle i::after {
  border: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
#sfMySnackableSheet .sf-mypost-clean-toggle input:checked + i {
  background: #FF1694;
  border-color: #FF1694;
}
#sfMySnackableSheet .sf-owner-limit-pill {
  background: #FFFFFF;
  color: #334155;
  border: 1.5px solid #CBD5E1;
  font-weight: 800;
}
#sfMySnackableSheet .sf-owner-limit-pill.is-active,
#sfMySnackableSheet .sf-owner-limit-pill[aria-pressed="true"] {
  background: #FF1694;
  color: #FFFFFF;
  border-color: #FF1694;
}

/* ---------- Pop-on-Tap Feed Sticker Overlay (#sfFeedPopSticker) — Disabled on Feed ---------- */
#sfFeedPopSticker,
.sf-onboard-wrap.sf-onboard-feed-overlay {
  display: none !important;
  pointer-events: none !important;
}

/* ---------- Compact Guest Snackable Panel (#sfStickersCatalogGrid & #sfSlapCatPills) ---------- */
.sf-slap-cat-pills {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 2px 4px;
  max-width: 100%;
  scrollbar-width: none;
}
.sf-slap-cat-pills::-webkit-scrollbar {
  display: none;
}
.sf-slap-cat-pill {
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #F8FAFC;
  padding: 4px 12px;
  font-family: var(--sifor-font-ui, "Nunito", sans-serif);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.14s ease;
}
.sf-slap-cat-pill.is-active {
  background: #FFE24C;
  border-color: #171719;
  color: #171719;
  font-weight: 900;
}
#sfStickersSheet #sfStickersCatalogGrid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)) !important;
  gap: 8px !important;
  max-height: 132px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 4px !important;
  scrollbar-width: thin;
}
#sfStickersSheet .sf-sticker-pick-tile {
  width: 100% !important;
  min-width: 58px !important;
  height: 62px !important;
  min-height: 62px !important;
}

/* ---------- Share Post Sheet (#sfSharePostSheet) ---------- */
.sf-share-post-card {
  max-width: 420px;
  width: min(calc(100vw - 20px), 420px);
  max-height: 92dvh;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
}
.sf-share-post-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 36px;
}
.sf-share-post-head-ico {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #FFF0F7;
  border: 2px solid #171719;
  color: #FF1694;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sf-share-post-head-ico svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2.4;
  fill: none;
}
.sf-share-post-head b {
  display: block;
  font-size: 17px;
  line-height: 1.15;
}
.sf-share-post-head small {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #64748B;
  margin-top: 2px;
  overflow-wrap: anywhere;
}
.sf-share-post-q-banner {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 2px solid #171719;
  background: #FFFDF5;
  box-shadow: 0 3px 0 #171719;
  box-sizing: border-box;
}
.sf-share-post-q-banner[hidden] {
  display: none !important;
}
.sf-share-post-q-copy {
  flex: 1;
  min-width: 0;
}
.sf-share-post-q-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1.5px solid #171719;
  background: #FFE24C;
  color: #171719;
  font-family: var(--sifor-font-display, "Fredoka", sans-serif);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1.2;
  margin-bottom: 5px;
}
.sf-share-post-q-text {
  margin: 0;
  color: #171719;
  font-family: var(--sifor-font-display, "Fredoka", sans-serif);
  font-size: 14.5px;
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.sf-share-post-q-qr-wrap {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  border-radius: 12px;
  border: 2px solid #171719;
  background: #FBF1E0;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.sf-share-post-q-qr {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 8px;
}
.sf-share-post-preview-wrap {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #0F111A 0%, #1C2030 100%);
  border: 2px solid #171719;
  border-radius: 16px;
  padding: 8px;
  min-height: 148px;
  max-height: min(32dvh, 224px);
  overflow: hidden;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
}
.sf-share-post-preview-img {
  display: block;
  width: auto;
  height: 100%;
  max-height: min(29dvh, 206px);
  max-width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}
.sf-share-post-preview-img[hidden] {
  display: none !important;
}
.sf-share-post-preview-loading {
  font-family: var(--sifor-font-display, "Fredoka", sans-serif);
  font-size: 12.5px;
  font-weight: 800;
  color: #FFE24C;
  text-align: center;
  padding: 14px 10px;
}
.sf-share-post-preview-loading[hidden] {
  display: none !important;
}
.sf-share-post-toast {
  margin-top: 8px;
  padding: 7px 12px;
  border-radius: 12px;
  border: 2px solid #171719;
  background: #50F5BC;
  color: #171719;
  font-family: var(--sifor-font-display, "Fredoka", sans-serif);
  font-size: 12.5px;
  font-weight: 900;
  text-align: center;
  box-sizing: border-box;
}
.sf-share-post-toast[hidden] {
  display: none !important;
}
.sf-share-post-url-box {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 6px;
  border-radius: 14px;
  border: 2px solid #171719;
  background: #F8FAFC;
  box-sizing: border-box;
}
.sf-share-post-url-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 6px 8px;
  font-family: var(--sifor-font-ui, "Nunito", sans-serif);
  font-size: 13px;
  font-weight: 800;
  color: #171719;
  outline: none;
}
.sf-share-post-copy-btn {
  flex-shrink: 0;
  min-height: 44px;
  min-width: 44px;
  padding: 6px 14px;
  border-radius: 10px;
  border: 2px solid #171719;
  background: #FFE24C;
  color: #171719;
  font-family: var(--sifor-font-display, "Fredoka", sans-serif);
  font-size: 12.5px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 0 #171719;
}
.sf-share-post-actions {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.sf-share-post-action-btn {
  min-height: 44px;
  min-width: 44px;
  padding: 7px 10px;
  border-radius: 14px;
  border: 2px solid #171719;
  background: #FFFFFF;
  color: #171719 !important;
  text-decoration: none !important;
  font-family: var(--sifor-font-display, "Fredoka", sans-serif);
  font-size: 12.5px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 3px 0 #171719;
  box-sizing: border-box;
}
.sf-share-post-action-btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  stroke: currentColor;
  stroke-width: 2.4;
  fill: none;
}
.sf-share-post-action-btn.is-primary {
  grid-column: 1 / -1;
  background: #FF1694;
  color: #FFFFFF !important;
  font-size: 14px;
}
@media (max-width: 359px) {
  .sf-share-post-card {
    padding: 14px 12px;
  }
  .sf-share-post-action-btn {
    font-size: 11.5px;
    padding: 6px 6px;
    gap: 5px;
  }
  .sf-share-post-copy-btn {
    padding: 6px 10px;
    font-size: 11.5px;
  }
}
body:has(#sfSharePostSheet:not([hidden])) .sf-tabbar,
body:has(#sfSharePostSheet:not([hidden])) .sf-slap-undo-toast {
  transform: translateY(115%) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
#studioMain[data-v2-slap="1"] #studioUrlsBox,
#studioMain[data-v2-slap="1"] #studioCopyBtn {
  display: none !important;
}

/* ---------- Phase 2: "SIFOR has a message for you" Onboarding & Mobile Clarity ---------- */
#studioMysteryInviteBanner,
.studio-mystery-invite-banner {
  background: linear-gradient(135deg, #FFFDF5 0%, #FFF0F7 100%);
  border: 2px solid #171719;
  border-radius: 16px;
  padding: 9px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  box-shadow: 0 3px 0 rgba(23, 23, 25, 0.1);
}
#studioMysteryHeaderHook,
.studio-mystery-header-hook {
  margin: 0;
  font-family: var(--sifor-font-display, "Fredoka", sans-serif);
  font-size: 15px;
  font-weight: 900;
  color: #171719;
  line-height: 1.18;
}
#studioMysteryHeaderSub,
.studio-mystery-header-sub {
  margin: 0;
  font-family: var(--sifor-font-ui, "Nunito", sans-serif);
  font-size: 12px;
  font-weight: 800;
  color: #374151;
  line-height: 1.3;
}
.studio-snackable-def {
  display: block;
  font-family: var(--sifor-font-ui, "Nunito", sans-serif);
  font-size: 11px;
  font-weight: 800;
  color: #4B5563;
  line-height: 1.25;
}
#studioGuideNextBtn,
#studioGuideSkipBtn,
.studio-msg-mode-btn,
.studio-msg-regen-btn,
.studio-cat-pill,
#studioTrayExpandBtn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
#studioHowItWorksBtn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.studio-msg-mode-btn:focus-visible,
.studio-msg-regen-btn:focus-visible,
.studio-cat-pill:focus-visible,
#studioTrayExpandBtn:focus-visible,
#studioGuideNextBtn:focus-visible,
#studioGuideSkipBtn:focus-visible,
#studioHowItWorksBtn:focus-visible,
.studio-guide-pill:focus-visible {
  outline: 2.5px solid #FF1694;
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  #studioFirstVisitGuide,
  #studioFirstVisitGuide *,
  #studioMysteryInviteBanner,
  #studioMysteryInviteBanner *,
  .studio-msg-mode-btn,
  .studio-msg-regen-btn,
  .studio-cat-pill,
  .studio-sticker-tile,
  .studio-sticker-item,
  .studio-sticker-item *,
  #siforDiscoveryOnboarding,
  #siforDiscoveryOnboarding *,
  .sifor-onboard-swipe-motion,
  .sifor-onboard-tap-pulse,
  .sifor-onboard-tap-ring {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .sifor-onboard-tap-ring {
    opacity: 0.45 !important;
  }
}

/* ---------- Wave 3B: V3.4 Onboarding Copy Fit, Cookie Clearance & Secret Sheet Chrome (320 / 375 / 430) ---------- */
.sifor-discovery-onboarding .sifor-onboard-cue-swipe,
.sifor-discovery-onboarding .sifor-onboard-cue-tap {
  width: max-content;
  max-width: min(calc(100vw - 20px), 392px);
  box-sizing: border-box;
}

.sifor-discovery-onboarding .sifor-onboard-cue-pill {
  max-width: 100%;
  box-sizing: border-box;
  border-radius: 22px;
  padding: 8px 10px 8px 11px;
  gap: 9px;
}

.sifor-discovery-onboarding .sifor-onboard-cue-copy {
  min-width: 0;
  flex: 1 1 auto;
  gap: 1px;
}

.sifor-discovery-onboarding .sifor-onboard-cue-title,
.sifor-discovery-onboarding .sifor-onboard-cue-sub {
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}

.sifor-discovery-onboarding .sifor-onboard-skip-btn {
  flex: 0 0 auto;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sifor-discovery-onboarding .sifor-onboard-skip-btn:focus-visible,
#siforOnboardingReplayBtn:focus-visible {
  outline: 2.5px solid #FFE24C;
  outline-offset: 2px;
}

/* Keep cookie banner within 320px viewport bounds and stack creator avatar + onboarding cleanly above it */
#sfCookie.sf-cc:not(.sf-cc-docked) {
  max-width: min(calc(100vw - 16px), 520px);
  box-sizing: border-box;
}

@media (max-width: 768px) {
  body:has(#sfCookie:not([hidden]):not(.sf-cc-docked)) #siforHeroPlayerBox > .sifor-creator-avatar-btn {
    bottom: calc(var(--sf-footer-offset, 62px) + 80px);
  }
  body:has(#sfCookie:not([hidden]):not(.sf-cc-docked)) .sifor-discovery-onboarding .sifor-onboard-cue-swipe,
  body:has(#sfCookie:not([hidden]):not(.sf-cc-docked)) .sifor-discovery-onboarding .sifor-onboard-cue-tap,
  body:has(#sfCookie:not([hidden]):not(.sf-cc-docked)) .sifor-discovery-onboarding .sifor-onboard-cue-avatar {
    bottom: calc(var(--sf-footer-offset, 62px) + 136px);
  }
}

@media (max-width: 768px) and (max-height: 600px) {
  #siforHeroPlayerBox > .sifor-creator-avatar-btn {
    min-width: 44px;
    min-height: 44px;
    height: 44px;
    bottom: calc(var(--sf-footer-offset, 58px) + 8px);
  }
  .sifor-discovery-onboarding .sifor-onboard-cue-swipe,
  .sifor-discovery-onboarding .sifor-onboard-cue-tap,
  .sifor-discovery-onboarding .sifor-onboard-cue-avatar {
    bottom: calc(var(--sf-footer-offset, 58px) + 58px);
  }
  body:has(#sfCookie:not([hidden]):not(.sf-cc-docked)) #siforHeroPlayerBox > .sifor-creator-avatar-btn {
    bottom: calc(var(--sf-footer-offset, 58px) + 80px);
  }
  body:has(#sfCookie:not([hidden]):not(.sf-cc-docked)) .sifor-discovery-onboarding .sifor-onboard-cue-swipe,
  body:has(#sfCookie:not([hidden]):not(.sf-cc-docked)) .sifor-discovery-onboarding .sifor-onboard-cue-tap,
  body:has(#sfCookie:not([hidden]):not(.sf-cc-docked)) .sifor-discovery-onboarding .sifor-onboard-cue-avatar {
    bottom: calc(var(--sf-footer-offset, 58px) + 132px);
  }
  body:has(#sfCookie:not([hidden]):not(.sf-cc-docked)) .sifor-discovery-onboarding .sifor-onboard-tap-ring {
    display: none;
  }
}

@media (max-width: 359px) {
  .sifor-discovery-onboarding .sifor-onboard-cue-swipe,
  .sifor-discovery-onboarding .sifor-onboard-cue-tap {
    max-width: calc(100vw - 16px);
  }
  .sifor-discovery-onboarding .sifor-onboard-cue-pill {
    padding: 7px 8px 7px 9px;
    gap: 7px;
    border-radius: 18px;
  }
  .sifor-discovery-onboarding .sifor-onboard-gesture-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
  }
  .sifor-discovery-onboarding .sifor-onboard-cue-title {
    font-size: 12px;
    line-height: 1.2;
  }
  .sifor-discovery-onboarding .sifor-onboard-cue-sub {
    font-size: 10.5px;
    line-height: 1.22;
  }
  .sifor-discovery-onboarding .sifor-onboard-skip-btn {
    padding: 4px 8px;
    font-size: 11px;
  }
}

/* Suppress bottom tabbar, cookie bar & onboarding cues when Send a Secret sheet is open */
body:has(#sfSecretInviteSheet:not([hidden])) .sf-tabbar,
body:has(#sfSecretInviteSheet:not([hidden])) #sfCookie.sf-cc,
body:has(#sfSecretInviteSheet:not([hidden])) #siforDiscoveryOnboarding,
body:has(#sfSecretInviteSheet:not([hidden])) #siforOnboardingReplayBtn {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
body:has(#sfSecretInviteSheet:not([hidden])) .sf-tabbar {
  transform: translateY(115%) !important;
}

/* ---------- Studio Step 2 Visual Icon-Pick Socials (/create) ---------- */
#studioSocialPlatformIcons.studio-social-icon-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  overflow: visible;
  padding: 6px 2px 4px;
}
#studioSocialPlatformIcons .studio-social-icon-btn {
  position: relative;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  padding: 0;
  border-radius: 15px;
  border: 2px solid #D1D5DB;
  background: #FFFFFF;
  color: #171719;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: visible;
  box-shadow: 0 2px 0 rgba(23, 23, 25, 0.08);
  transition: transform 0.12s ease, background 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}
#studioSocialPlatformIcons .studio-social-icon-btn.is-active {
  background: #FFE24C;
  border: 2.5px solid #171719;
  box-shadow: 0 3px 0 #171719;
}
#studioSocialPlatformIcons .studio-social-icon-btn.has-value:not(.is-active) {
  background: #ECFEF6;
  border: 2px solid #171719;
  box-shadow: 0 2px 0 #171719;
}
#studioSocialPlatformIcons .studio-social-icon-btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  pointer-events: none;
}
.studio-social-filled-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #50F5BC;
  border: 2px solid #171719;
  color: #171719;
  font-family: var(--sifor-font-display, "Fredoka", sans-serif);
  font-size: 10.5px;
  font-weight: 900;
  line-height: 1;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 0 #171719;
  pointer-events: none;
  z-index: 2;
}
.studio-social-icon-btn.has-value .studio-social-filled-badge,
.studio-social-icon-btn[data-filled="1"] .studio-social-filled-badge {
  display: inline-flex;
}
#studioActiveSocialInputWrap .studio-social-inline-pill {
  min-height: 50px;
  padding: 2px 3px 2px 12px;
  border-radius: 999px;
  border: 2px solid #171719;
  background: #FFFFFF;
  box-shadow: 0 2px 0 #171719;
  display: flex;
  align-items: center;
  gap: 8px;
}
#studioActiveSocialInputWrap .studio-social-inline-pill:focus-within {
  border-color: #FF1694;
  box-shadow: 0 2px 0 #FF1694;
}
.studio-active-social-ico {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #FFF6BF;
  border: 1.5px solid #171719;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.studio-active-social-ico svg {
  width: 15px;
  height: 15px;
  display: block;
}
.studio-clear-social-btn {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 999px;
  border: 1.5px solid #171719;
  background: #F3F4F6;
  color: #171719;
  font-family: var(--sifor-font-display, "Fredoka", sans-serif);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.studio-clear-social-btn[hidden] {
  display: none !important;
}

/* ==========================================================================
   Living Answers 2.0 — 3-Question Discovery, Outbound Tap Opt-In & Connect Sheet
   ========================================================================== */

.studio-q-discovery-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  width: 100%;
}

.studio-suggest-triad-btn,
#studioSuggestTriadBtn {
  width: 100%;
  min-height: 46px;
  min-width: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 2.5px solid #171719;
  background: #50F5BC;
  color: #171719;
  font-family: var(--sifor-font-display, "Fredoka", sans-serif);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  box-shadow: 0 3px 0 #171719;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease;
}

.studio-suggest-triad-btn:hover,
#studioSuggestTriadBtn:hover {
  background: #FFE24C;
}

.studio-suggest-triad-btn:active,
#studioSuggestTriadBtn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #171719;
}

.studio-suggest-triad-btn:focus-visible,
#studioSuggestTriadBtn:focus-visible {
  outline: 3px solid #FF1694;
  outline-offset: 2px;
}

.studio-q-triad-panel,
#studioQuestionSuggestionsPanel {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 12px;
  border-radius: 18px;
  border: 2.5px solid #171719;
  background: #FFFDF7;
  box-shadow: 0 4px 0 #171719;
  box-sizing: border-box;
}

.studio-q-triad-panel[hidden],
#studioQuestionSuggestionsPanel[hidden],
.studio-q-triad-notice[hidden],
#studioQTriadNotice[hidden] {
  display: none !important;
}

.studio-q-triad-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.studio-q-triad-kicker {
  font-family: var(--sifor-font-display, "Fredoka", sans-serif);
  font-size: 13.5px;
  font-weight: 800;
  color: #171719;
  line-height: 1.25;
}

.studio-q-personalize-drawer {
  border-radius: 14px;
  border: 2px solid #171719;
  background: #FFFFFF;
  padding: 0 10px;
}

.studio-q-personalize-drawer summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--sifor-font-display, "Fredoka", sans-serif);
  font-size: 12.5px;
  font-weight: 800;
  color: #171719;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.studio-q-personalize-drawer summary::-webkit-details-marker {
  display: none;
}

.studio-q-personalize-body {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 4px 0 10px;
  border-top: 1.5px dashed rgba(23, 23, 25, 0.2);
}

.studio-q-ctx-input {
  width: 100%;
  min-height: 44px;
  padding: 8px 11px;
  border-radius: 12px;
  border: 2px solid #171719;
  background: #FFFDF7;
  color: #171719;
  font-family: var(--sifor-font-body, "Nunito", sans-serif);
  font-size: 14px;
  font-weight: 700;
  box-sizing: border-box;
}

.studio-q-ctx-input:focus {
  outline: none;
  border-color: #FF1694;
  background: #FFFFFF;
}

.studio-q-apply-ctx-btn,
#studioQApplyContextBtn {
  min-height: 44px;
  min-width: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 2px solid #171719;
  background: #FFE24C;
  color: #171719;
  font-family: var(--sifor-font-display, "Fredoka", sans-serif);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 2px 0 #171719;
  cursor: pointer;
  touch-action: manipulation;
}

.studio-q-triad-notice {
  margin: 0;
  padding: 8px 10px;
  border-radius: 12px;
  border: 2px solid #171719;
  background: #FFF6BF;
  color: #171719;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.studio-q-triad-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.studio-q-triad-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 15px;
  border: 2px solid #171719;
  background: #FFFFFF;
  box-shadow: 0 2.5px 0 #171719;
  transition: transform 0.12s ease, background-color 0.12s ease, border-color 0.12s ease;
}

.studio-q-triad-card.is-selected {
  background: #ECFEF6;
  border-color: #171719;
  box-shadow: 0 3px 0 #FF1694;
}

.studio-q-triad-cat-pill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1.5px solid #171719;
  background: #FFE24C;
  color: #171719;
  font-family: var(--sifor-font-display, "Fredoka", sans-serif);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.studio-q-triad-card[data-category="creative_playful"] .studio-q-triad-cat-pill {
  background: #FFD6EE;
}

.studio-q-triad-card[data-category="meaningful_social"] .studio-q-triad-cat-pill {
  background: #50F5BC;
}

.studio-q-triad-text {
  margin: 0;
  font-family: var(--sifor-font-body, "Nunito", sans-serif);
  font-size: 14.5px;
  font-weight: 800;
  color: #171719;
  line-height: 1.35;
}

.studio-q-triad-select-btn {
  align-self: flex-start;
  min-height: 44px;
  min-width: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 2px solid #171719;
  background: #50F5BC;
  color: #171719;
  font-family: var(--sifor-font-display, "Fredoka", sans-serif);
  font-size: 12.5px;
  font-weight: 800;
  box-shadow: 0 2px 0 #171719;
  cursor: pointer;
  touch-action: manipulation;
}

.studio-q-triad-card.is-selected .studio-q-triad-select-btn {
  background: #FF1694;
  color: #FFFFFF;
}

.studio-q-triad-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.studio-q-action-btn,
#studioQRefreshTriadBtn,
#studioQWriteOwnBtn {
  flex: 1 1 140px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 12px;
  border-radius: 999px;
  border: 2px solid #171719;
  background: #FFFFFF;
  color: #171719;
  font-family: var(--sifor-font-display, "Fredoka", sans-serif);
  font-size: 12.5px;
  font-weight: 800;
  box-shadow: 0 2px 0 #171719;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  touch-action: manipulation;
}

#studioQRefreshTriadBtn {
  background: #FFE24C;
}

/* Player Reveal: Connect with this person, Outbound Tap Opt-In & Mutual-Consent Sheet */
.sf-v3-connect-person-btn,
#sfV3ConnectPersonBtn {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 46px;
  min-width: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 2.5px solid #171719;
  background: #50F5BC;
  color: #171719;
  font-family: var(--sifor-font-display, "Fredoka", sans-serif);
  font-size: 14.5px;
  font-weight: 900;
  box-shadow: 3px 3px 0 #171719;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
  touch-action: manipulation;
  transition: transform 0.12s ease, background-color 0.12s ease;
}

#sfV3ConnectPersonBtn[hidden],
#sfV3SocialTapOptInWrap[hidden],
#sfConnectReviewSheet[hidden],
#sfConnectStatusMsg[hidden] {
  display: none !important;
}

#sfV3ConnectPersonBtn:focus-visible {
  outline: 3px solid #FF1694;
  outline-offset: 2px;
}

#sfV3ConnectPersonBtn[disabled] {
  background: #ECFEF6;
  color: #171719;
  opacity: 0.92;
  cursor: default;
  box-shadow: 1.5px 1.5px 0 #171719;
}

#sfV3SocialTapOptInWrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 14px;
  border: 2px solid #171719;
  background: #FFFDF7;
  box-shadow: 2px 2px 0 #171719;
  box-sizing: border-box;
  text-align: left;
}

.sf-tap-optin-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
}

.sf-tap-optin-copy {
  font-family: var(--sifor-font-body, "Nunito", sans-serif);
  font-size: 12px;
  font-weight: 800;
  color: #171719;
  line-height: 1.3;
}

#sfV3SocialTapOptInToggle,
#sfV3SocialTapWithdrawBtn,
.sf-tap-optin-btn {
  min-height: 44px;
  min-width: 44px;
  padding: 0 12px;
  border-radius: 999px;
  border: 2px solid #171719;
  background: #FFE24C;
  color: #171719;
  font-family: var(--sifor-font-display, "Fredoka", sans-serif);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 2px 2px 0 #171719;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  touch-action: manipulation;
}

#sfV3SocialTapWithdrawBtn,
#sfV3SocialTapCancelBtn {
  background: #FFFFFF;
}

#sfV3SocialTapConfirmBtn {
  background: #50F5BC;
}

#sfV3SocialTapOptInForm {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  padding-top: 4px;
  border-top: 1.5px dashed rgba(23, 23, 25, 0.2);
}

.sf-tap-optin-plat-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.sf-tap-optin-plat-btn {
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 12px;
  border: 2px solid #171719;
  background: #FFFFFF;
  color: #171719;
  font-family: var(--sifor-font-display, "Fredoka", sans-serif);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
}

.sf-tap-optin-plat-btn.is-active {
  background: #50F5BC;
  box-shadow: 2px 2px 0 #171719;
}

.sf-tap-optin-input-row {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}

#sfV3SocialTapHandleInput {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0 11px;
  border-radius: 12px;
  border: 2px solid #171719;
  background: #FFFFFF;
  color: #171719;
  font-family: var(--sifor-font-body, "Nunito", sans-serif);
  font-size: 16px;
  font-weight: 700;
  outline: none;
  box-sizing: border-box;
}

.sf-tap-optin-err {
  font-size: 11.5px;
  font-weight: 800;
  color: #9F1239;
  margin: 0;
}

#sfConnectReviewSheet {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  background: rgba(11, 13, 19, 0.64);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 12px calc(12px + env(safe-area-inset-bottom, 0px) + var(--sf-kb-inset, 0px));
  box-sizing: border-box;
}

@media (min-width: 560px) {
  #sfConnectReviewSheet {
    align-items: center;
  }
}

.sf-connect-sheet-card {
  width: min(100%, 420px);
  max-height: calc(100dvh - 28px);
  overflow-y: auto;
  background: #FFFDF7;
  color: #171719;
  border: 3px solid #171719;
  border-radius: 24px;
  box-shadow: 0 6px 0 #171719, 0 18px 40px rgba(0, 0, 0, 0.45);
  padding: 16px 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
}

.sf-connect-sheet-title {
  margin: 0;
  font-family: var(--sifor-font-display, "Fredoka", sans-serif);
  font-size: 18px;
  font-weight: 900;
  color: #171719;
  line-height: 1.2;
}

.sf-connect-sheet-sub {
  margin: 0;
  font-family: var(--sifor-font-body, "Nunito", sans-serif);
  font-size: 12.5px;
  font-weight: 800;
  color: #374151;
  line-height: 1.35;
}

.sf-connect-plat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  width: 100%;
}

@media (max-width: 374px) {
  .sf-connect-plat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.sf-connect-plat-btn {
  min-height: 44px;
  min-width: 44px;
  padding: 4px 6px;
  border-radius: 14px;
  border: 2px solid #171719;
  background: #FFFFFF;
  color: #171719;
  font-family: var(--sifor-font-display, "Fredoka", sans-serif);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-sizing: border-box;
  touch-action: manipulation;
}

.sf-connect-plat-btn.is-active {
  background: #FFE24C;
  box-shadow: 2px 2px 0 #171719;
}

.sf-connect-plat-btn:focus-visible {
  outline: 3px solid #FF1694;
  outline-offset: 2px;
}

#sfConnectHandleInput,
#sfConnectIntroInput {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 2px solid #171719;
  background: #FFFFFF;
  color: #171719;
  font-family: var(--sifor-font-body, "Nunito", sans-serif);
  font-size: 16px;
  font-weight: 700;
  box-sizing: border-box;
  outline: none;
}

#sfConnectHandleInput:focus,
#sfConnectIntroInput:focus {
  border-color: #FF1694;
  box-shadow: 0 0 0 3px rgba(255, 22, 148, 0.18);
}

.sf-connect-intro-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.sf-connect-intro-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  color: #4B5563;
}

#sfConnectReviewSummary {
  padding: 9px 11px;
  border-radius: 14px;
  border: 2px solid #171719;
  background: #ECFEF6;
  color: #171719;
  font-family: var(--sifor-font-body, "Nunito", sans-serif);
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.35;
}

#sfConnectStatusMsg {
  margin: 0;
  padding: 8px 11px;
  border-radius: 12px;
  border: 2px solid #171719;
  background: #FFE4E6;
  color: #9F1239;
  font-family: var(--sifor-font-body, "Nunito", sans-serif);
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.3;
}

#sfConnectStatusMsg.is-ok {
  background: #50F5BC;
  color: #171719;
}

.sf-connect-sheet-actions {
  display: flex;
  gap: 8px;
  width: 100%;
  margin-top: 2px;
}

#sfConnectCancelBtn,
#sfConnectConfirmBtn {
  min-height: 46px;
  min-width: 44px;
  border-radius: 999px;
  border: 2.5px solid #171719;
  font-family: var(--sifor-font-display, "Fredoka", sans-serif);
  font-size: 14px;
  font-weight: 900;
  box-shadow: 3px 3px 0 #171719;
  cursor: pointer;
  touch-action: manipulation;
}

#sfConnectCancelBtn {
  flex: 0 0 auto;
  padding: 0 16px;
  background: #FFFFFF;
  color: #171719;
}

#sfConnectConfirmBtn {
  flex: 1 1 auto;
  padding: 0 16px;
  background: #FF1694;
  color: #FFFFFF;
}

#sfConnectConfirmBtn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (prefers-reduced-motion: reduce) {
  .studio-suggest-triad-btn,
  #studioSuggestTriadBtn,
  .studio-q-triad-card,
  .studio-q-triad-select-btn,
  .studio-q-action-btn,
  #sfV3ConnectPersonBtn,
  #sfConnectReviewSheet,
  .sf-connect-sheet-card {
    animation: none !important;
    transition: none !important;
  }
}





/* ==========================================================================
   SIFOR 3.0 — Answer Network App Shell (Header, Solid Black Footer & Scroll Unlock)
   Active ONLY when `answer_network_enabled !== false` adds `body.sf-answer-network-scroll`
   ========================================================================== */
:root {
  --sf-footer-total-h: calc(74px + env(safe-area-inset-bottom, 0px));
}

html[data-answer-network="1"]:not([data-hub-v2="1"]):not([data-create-v3="1"]):not(:has(body.sf-hub-on)),
body.sf-answer-network-scroll,
body.sf-answer-network-scroll:has(#siforFirstScreenHero):not(.sf-searching) {
  background: #FAF9FC !important;
  color: #171719;
  height: auto !important;
  min-height: 100dvh !important;
  max-height: none !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior-y: auto !important;
  padding-bottom: calc(var(--sf-footer-total-h, 76px) + 28px) !important;
}

body.sf-answer-network-scroll .app,
body.sf-answer-network-scroll .app-main,
body.sf-answer-network-scroll:has(#siforFirstScreenHero):not(.sf-searching) .app,
body.sf-answer-network-scroll:has(#siforFirstScreenHero):not(.sf-searching) .app-main {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  overscroll-behavior-y: auto !important;
}

body.sf-answer-network-scroll:has(#siforAnswerNetworkRoot:not([hidden])) #galleryHome {
  display: none !important;
}

/* Answer Network Sticky Header */
.sf-header.sf-header-an {
  position: sticky !important;
  top: 0;
  z-index: 65;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 54px;
  padding: max(6px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) 6px max(12px, env(safe-area-inset-left, 0px));
  background: #0B0C14 !important;
  width: 100%; max-width: none; margin: 0; left: 0; right: 0; box-sizing: border-box;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.16);
}

.sf-header-an .sf-header-left {
  grid-column: 1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.sf-header-an .sf-humans-only-btn {
  min-height: 44px;
  padding: 0 11px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.34);
  background: #191B28;
  color: #F8FAFC;
  font-family: var(--sifor-font-ui, 'Nunito', sans-serif);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.65);
  -webkit-tap-highlight-color: transparent;
}

.sf-header-an .sf-humans-only-btn[aria-pressed="true"],
.sf-header-an .sf-humans-only-btn.is-active {
  background: #50F5BC;
  color: #0B0C14;
  border-color: #FFFFFF;
}

@media (max-width: 390px) {
  .sf-header-an .sf-humans-only-btn {
    padding: 0 9px;
    font-size: 11px;
  }
  .sf-header-an .sf-logo img {
    height: auto;
    max-height: 30px;
    max-width: min(148px, 40vw);
  }
}

/* Answer Network Solid Black Footer — Mandatory Contract */
.sf-tabbar.sf-tabbar-an {
  position: fixed !important;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 68;
  max-width: 100%;
  width: 100%;
  margin: 0;
  border-radius: 0;
  background: #0B0C14 !important;
  border-top: 1.5px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 -6px 22px rgba(0, 0, 0, 0.48);
  height: auto;
  min-height: calc(70px + env(safe-area-inset-bottom, 0px));
  padding: 7px max(14px, env(safe-area-inset-right, 0px)) calc(7px + env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
}

.sf-tabbar-an .sf-an-tab-discover {
  justify-self: center;
  min-width: 72px;
  min-height: 48px;
  padding: 2px 10px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none;
  color: #FF2D8A !important;
  font-family: var(--sifor-font-ui, 'Nunito', sans-serif);
  font-size: 12px;
  font-weight: 900;
  position: relative;
  border-radius: 14px;
}

.sf-tabbar-an .sf-an-discover-ico-wrap {
  position: relative;
  width: 30px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sf-tabbar-an .sf-an-discover-ico-wrap svg {
  width: 24px;
  height: 24px;
  stroke: #FF2D8A;
  fill: rgba(255, 45, 138, 0.18);
  stroke-width: 2.4;
}

.sf-tabbar-an .sf-an-sparkle {
  position: absolute;
  pointer-events: none;
  object-fit: contain;
}

.sf-tabbar-an .sf-an-sparkle--star {
  top: -3px;
  right: -5px;
  width: 12px;
  height: 12px;
}

.sf-tabbar-an .sf-an-sparkle--burst {
  bottom: -1px;
  left: -5px;
  width: 11px;
  height: 11px;
}

/* Center Dominant + Create Pill */
.sf-tabbar-an .sf-an-create-pill {
  justify-self: center;
  min-height: 48px;
  min-width: 132px;
  padding: 0 22px;
  border-radius: 999px;
  background: #FF2D8A;
  border: 2.5px solid #FFFFFF;
  box-shadow: 0 0 18px rgba(255, 45, 138, 0.52), 0 3px 0 #000000;
  color: #FFFFFF !important;
  font-family: var(--sifor-font-ui, 'Nunito', sans-serif);
  font-size: 15.5px;
  font-weight: 900;
  letter-spacing: 0.01em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.sf-tabbar-an .sf-an-create-pill svg {
  width: 20px;
  height: 20px;
  stroke: #FFFFFF;
  stroke-width: 3;
  fill: none;
}

.sf-tabbar-an .sf-an-create-pill:active {
  transform: translateY(2px);
  box-shadow: 0 0 10px rgba(255, 45, 138, 0.4), 0 1px 0 #000000;
}

/* On Hub Discover, keep + Create calm & secondary so Question Cloud's Answer CTA owns primary focus */
body.sf-hub-on .sf-tabbar-an .sf-an-create-pill,
html[data-hub-v2="1"] body:not(.sf-create-route) .sf-tabbar-an .sf-an-create-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1.8px solid rgba(255, 255, 255, 0.34);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.65);
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 14px;
  font-weight: 800;
  min-width: 112px;
  padding: 0 18px;
}

body.sf-hub-on .sf-tabbar-an .sf-an-create-pill svg,
html[data-hub-v2="1"] body:not(.sf-create-route) .sf-tabbar-an .sf-an-create-pill svg {
  width: 17px;
  height: 17px;
  stroke: rgba(255, 255, 255, 0.88);
  stroke-width: 2.6;
}

body.sf-hub-on .sf-tabbar-an .sf-an-create-pill:active,
html[data-hub-v2="1"] body:not(.sf-create-route) .sf-tabbar-an .sf-an-create-pill:active {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(1px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.65);
}

/* Right My Post Mascot Tab */
.sf-tabbar-an .sf-an-tab-mypost {
  justify-self: center;
  min-width: 72px;
  min-height: 48px;
  padding: 2px 10px;
  background: transparent;
  border: 0;
  color: #FFFFFF !important;
  font-family: var(--sifor-font-ui, 'Nunito', sans-serif);
  font-size: 12px;
  font-weight: 900;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  border-radius: 14px;
}

.sf-tabbar-an .sf-an-tab-mypost .sf-tab-mascot-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
}

.sf-tabbar-an .sf-an-tab-mypost .sf-tab-mascot-mini img {
  width: 26px;
  height: 30px;
  object-fit: contain;
}

.sf-tabbar-an .sf-an-tab-mypost .sf-open { display: none; }
.sf-tabbar-an .sf-an-tab-mypost.is-pressed .sf-open,
.sf-tabbar-an .sf-an-tab-mypost.is-active .sf-open { display: block; }
.sf-tabbar-an .sf-an-tab-mypost.is-pressed .sf-closed,
.sf-tabbar-an .sf-an-tab-mypost.is-active .sf-closed { display: none; }

/* Hide tabbar cleanly while any Answer Network bottom sheet, Hub composer, or Notifications drawer is open */
body:has(.an-sheet-backdrop:not([hidden])) .sf-tabbar,
body:has(#sfAnNotificationsSheet:not([hidden])) .sf-tabbar,
body.sf-hub-composing .sf-cc,
body:has(#sfHubFeed.is-composing) .sf-cc {
  transform: translateY(115%) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .sf-tabbar-an .sf-an-create-pill {
    transition: none !important;
  }
}
