/* ==========================================================================
   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;
  --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;
}

/* ---------- page canvas ---------- */
html, body {
  background: #fff !important;
  color: var(--sifor-ink);
  font-family: var(--sifor-font-ui);
  font-weight: 600;
}
.bg-fx, .cursor-glow, .bg-fx::before, .bg-fx::after { display: none !important; }
body { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
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: [icon] SIFOR [icon] ---------- */
.sf-header {
  width: 100%; box-sizing: border-box;
  position: sticky; top: 0; z-index: 50;
  display: grid; grid-template-columns: 52px 1fr 52px; align-items: center;
  padding: max(10px, env(safe-area-inset-top)) 14px 8px;
  background: #fff;
  max-width: 1200px; margin: 0 auto;
}
.sf-header .sf-logo { justify-self: center; display: block; line-height: 0; position: relative; }
.sf-header .sf-logo img, .sf-header .sf-logo .sf-logo-img { height: 44px; width: auto; 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: 46px; height: 46px; 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;
}
.sf-icon-btn:active { transform: scale(.92); }
.sf-icon-btn svg, .sf-ico { width: 22px; height: 22px; 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 #fff; }

/* ---------- bottom nav: Feed · O · Profile ---------- */
.sf-tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: end;
  height: calc(72px + env(safe-area-inset-bottom));
  padding: 6px 12px env(safe-area-inset-bottom);
  background: #fff; border-top: 2px solid #EFEAF7;
  max-width: 640px; margin: 0 auto;
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -6px 24px rgba(60,194,232,.12);
}
.sf-tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: var(--sifor-tap-min); padding: 6px 0 8px;
  color: var(--sifor-muted-text); text-decoration: none; font-weight: 800; font-size: 12px;
  background: none; border: 0; cursor: pointer; position: relative;
}
.sf-tab svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sf-tab.is-active { color: var(--sifor-brand-pink); }
.sf-tab.is-active svg { fill: var(--sifor-soft-pink); }
.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: 40px; 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) */
.sf-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sf-stat { 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; }
.sf-stat small { font-size: 11px; font-weight: 800; color: #5d566f; }
.sf-stat .sf-ico { width: 22px; height: 22px; }
.sf-stat.c1 { background: var(--sifor-soft-mint); } .sf-stat.c2 { background: #E9E4FB; }
.sf-stat.c3 { background: var(--sifor-soft-yellow); } .sf-stat.c4 { background: var(--sifor-soft-pink); }

/* 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 { background: var(--sifor-brand-yellow); border: 2px solid var(--sifor-ink); border-radius: 999px; padding: 2px 8px; font-weight: 900; font-size: 11px; }

@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 24px !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 24px !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 > *: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 { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 12px; }
.sf-social { font-size: 18px; text-decoration: none; }
.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; }
.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 { 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; }

.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: 360px;
}
.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, sfOnboardFloat 4s ease-in-out .55s infinite;
}
.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;
}
.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: 5;
}
.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; }
}

/* ---------- 3rd-time Snackable creation: Optional Ludo.ai API upgrade card ---------- */
.sf-ludo-optional-card {
  margin: 10px 0;
  padding: 12px 14px;
  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: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.sf-ludo-opt-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--sifor-ink);
  font-size: 10.5px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--sifor-brand-pink);
}
.sf-ludo-opt-badge svg { width: 13px; height: 13px; stroke: currentColor; stroke-width: 2.4; fill: none; }
.sf-ludo-opt-skip {
  background: #fff;
  border: 1.8px solid var(--sifor-ink);
  border-radius: 999px;
  padding: 3px 10px;
  font-family: var(--sifor-font-ui);
  font-size: 11px;
  font-weight: 900;
  color: var(--sifor-muted-text);
  cursor: pointer;
}
.sf-ludo-opt-title {
  margin: 0 0 3px;
  font-family: var(--sifor-font-display);
  font-size: 17px;
  line-height: 1.15;
  color: var(--sifor-ink);
}
.sf-ludo-opt-sub {
  margin: 0 0 10px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.35;
  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: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 2px solid var(--sifor-ink);
  background: var(--sifor-brand-pink);
  color: #fff !important;
  font-size: 12.5px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 3px 0 var(--sifor-ink);
}
.sf-ludo-opt-keyrow {
  display: flex;
  gap: 6px;
  width: 100%;
  margin-top: 8px;
}
.sf-ludo-opt-input {
  flex: 1;
  min-width: 0;
  min-height: 38px;
  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 {
  min-height: 38px;
  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;
  box-shadow: 0 3px 0 var(--sifor-ink);
  cursor: pointer;
}

/* ---------- 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: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.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; }
.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: 2.5px solid #fff; }
.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 { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; }
.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-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-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; } }
.sf-socials { margin: 4px 0 10px; display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.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: 40px; height: 40px; 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: 36px; 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; }
}
