:root {
  /* founderbro design system v1.0 — a searchbro franchise, pink path-slash */
  --bg: #0B0709;            /* void — warm near-black, rose undertone */
  --panel: #1B1016;         /* surface */
  --panel-hi: #2A1B22;      /* elevated */
  --panel-2: #0F0A0D;       /* deeper panel */
  --ink: #0F0A0D;
  --fg: #F0EAED;            /* chalk — warm off-white */
  --fg-2: #CDBFC5;          /* secondary text */
  --muted: #9A8E92;         /* fog */
  --accent: #FF4D8D;        /* riso pink — CTAs, mark, active. sparingly */
  --accent-hover: #FF77A9;
  --accent-dim: rgba(255, 77, 141, 0.35);
  --accent-soft: color-mix(in srgb, #FF4D8D 15%, transparent);
  --verified: #4ADE9E;      /* green — verified only */
  --pending: #FFC24B;       /* amber */
  --info: #5AD1FF;
  --line: rgba(240, 234, 237, 0.09);
  --line-2: rgba(240, 234, 237, 0.06);
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --grotesk: "Space Grotesk", "Helvetica Neue", sans-serif;
  /* dark-only site: native controls (select popups, spinners, scrollbars) follow */
  color-scheme: dark;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* the hidden attribute must always win, even over display rules like .pill */
[hidden] { display: none !important; }

html, body {
  width: 100%;
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--grotesk);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  /* vertical panning only — pinch-zoom breaks the fixed WebGL layout */
  touch-action: pan-y;
}

#gl { position: fixed; inset: 0; cursor: grab; touch-action: none; }
#gl canvas { touch-action: none; }
#gl.is-dragging { cursor: grabbing; }
#gl.is-hovering { cursor: pointer; }
#gl canvas { display: block; }

.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 135% 115% at 50% 50%, transparent 50%, rgba(4, 6, 10, 0.5) 80%, rgba(4, 6, 10, 0.9) 100%),
    linear-gradient(to bottom, rgba(4, 6, 10, 0.5), transparent 14%, transparent 86%, rgba(4, 6, 10, 0.5));
  z-index: 2;
}

.mono { font-family: var(--mono); }
.accent-text { color: var(--accent); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* crawlable fallback for non-JS user agents */
.seo-fallback {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px;
  font-size: 16px;
  line-height: 1.6;
}
.seo-fallback img { max-width: 280px; border-radius: 16px; }
.seo-fallback a { color: var(--accent); }

/* ===================== UI CHROME ===================== */

.ui {
  position: fixed;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  z-index: 10;
  pointer-events: none;
}
.ui > * { pointer-events: auto; }
.ui-top { top: 0; }
.ui-bottom { bottom: 0; }

.wordmark {
  font-family: var(--grotesk);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--fg);
  text-decoration: none;
}
.wordmark span { color: var(--accent); font-weight: 700; }
.wordmark i { color: var(--accent); font-style: normal; font-weight: 700; }  /* leading path-slash */
.wordmark:hover span, .wordmark:hover i { color: var(--accent-hover); }

.top-status {
  position: absolute;
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-start;
  gap: 48px;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  line-height: 1.6;
  color: var(--muted);
  text-transform: uppercase;
  white-space: nowrap;
}
.tagline { color: rgba(220, 228, 245, 0.8); }
.locale { display: inline-flex; align-items: center; gap: 7px; }
.locale .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  animation: blink 2.4s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: 0.2; } }

.me-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-right: 12px;
  padding: 4px 14px 4px 4px;
  border-radius: 999px;
  background: rgba(18, 24, 42, 0.85);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  text-decoration: none;
  transition: border-color 0.25s, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.me-link:hover { border-color: var(--accent-dim); transform: scale(1.04); }
.me-link img, .me-initials {
  width: 30px; height: 30px;
  border-radius: 50%;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a2236;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  flex: none;
}
.me-label {
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.me-link:hover .me-label { color: var(--fg); }

@media (max-width: 760px) {
  .me-link .me-label { display: none; }
  .me-link { padding: 4px; margin-right: 8px; }
}

/* right-side header actions: Sign in (existing owners) + Join the Index (new) */
.top-actions { display: flex; align-items: center; gap: 10px; }
@media (max-width: 600px) {
  .top-actions { gap: 7px; }
  .top-actions .pill { padding: 9px 13px; font-size: 12px; }
}

.pill {
  font-family: var(--grotesk);
  font-weight: 500;
  font-size: 13px;
  padding: 11px 20px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), background 0.25s, color 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.pill:hover { transform: scale(1.05); }

.pill-accent {
  background: var(--accent);
  color: var(--ink);
  box-shadow: 0 0 24px rgba(255, 77, 141, 0.18);
}
.pill-accent:hover { box-shadow: 0 0 36px rgba(255, 77, 141, 0.35); }

.pill-dark {
  background: rgba(18, 24, 42, 0.85);
  color: var(--fg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
}
.pill-dark:hover { border-color: var(--accent-dim); }
.pill-dark.is-active {
  background: var(--accent);
  color: var(--ink);
  border-color: transparent;
}

.pill-ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line);
}
.pill-ghost:hover { border-color: var(--accent); color: var(--accent); }

.nav-pill {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(18, 24, 42, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
}
.nav-item {
  font-family: var(--grotesk);
  font-weight: 500;
  font-size: 13px;
  color: var(--muted);
  background: transparent;
  border: none;
  border-radius: 999px;
  padding: 8px 18px;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.25s, background 0.25s;
}
.nav-item:hover { color: var(--fg); }
.nav-item.is-active { background: var(--accent); color: var(--ink); }

.bottom-left {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.counter {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.counter b { color: var(--accent); font-weight: 500; }
.home-legal {
  font-size: 8px;
  letter-spacing: 0.14em;
  color: rgba(154, 142, 146, 0.35);
}
.home-legal a {
  color: rgba(154, 142, 146, 0.45);
  text-decoration: none;
}
.home-legal a:hover { color: var(--accent); }

/* footer social icons (Instagram + LinkedIn) */
.social-links { display: inline-flex; align-items: center; gap: 13px; margin: 2px 0; }
.social-links a { color: var(--muted); display: inline-flex; line-height: 0; transition: color 0.2s, transform 0.2s; }
.social-links a:hover { color: var(--accent); transform: translateY(-1px); }
.social-links svg { width: 16px; height: 16px; }

.hint {
  position: fixed;
  bottom: 76px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: rgba(154, 142, 146, 0.35);
  z-index: 10;
  pointer-events: none;
}

/* ===================== FILTER PANEL ===================== */

#filter-panel {
  position: fixed;
  right: 24px;
  bottom: 76px;
  width: 380px;
  max-width: calc(100vw - 48px);
  max-height: min(560px, calc(100vh - 140px));
  overflow-y: auto;
  z-index: 15;
  background: rgba(13, 18, 32, 0.92);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px 20px 14px;
  transform-origin: bottom right;
  visibility: hidden;
}
#filter-panel::-webkit-scrollbar { width: 0; }

.filter-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.filter-title { font-size: 10px; letter-spacing: 0.16em; color: var(--fg); }
#filter-clear {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}
#filter-clear:hover { color: var(--accent); }

.filter-group-label {
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin: 14px 0 8px;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(205, 215, 235, 0.85);
  background: transparent;
  border: 1px solid rgba(154, 142, 146, 0.22);
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.fchip:hover { border-color: var(--accent-dim); color: var(--fg); }
.fchip.is-on {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}

.filter-foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--accent);
}

/* ===================== PAGES (shared) ===================== */

.page {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: linear-gradient(135deg, #0a0e18 0%, #0B0709 60%);
  overflow-y: auto;
  visibility: hidden;
  clip-path: inset(0 0 0 100%);
}
.page::-webkit-scrollbar { width: 0; }

.page-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 26px 32px 120px;
}
.page-inner--narrow { max-width: 880px; }

.page-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

/* consistent section nav under every page header */
.page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6vh;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.page-nav a {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: 7px 15px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}
.page-nav a:hover { color: var(--fg); background: rgba(154, 142, 146, 0.08); }
.page-nav a.is-active { color: var(--ink); background: var(--accent); }
@media (max-width: 560px) {
  /* keep the nav on ONE line — scroll horizontally rather than wrap */
  .page-nav {
    gap: 4px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .page-nav::-webkit-scrollbar { display: none; }
  .page-nav a { padding: 6px 10px; font-size: 10px; letter-spacing: 0.06em; flex: 0 0 auto; white-space: nowrap; }
}
.page-label, .profile-counter {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.page-title {
  font-size: clamp(38px, 5.6vw, 80px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 26px;
  max-width: 18ch;
}
.page-title i { color: var(--accent); font-style: normal; }

.page-lede {
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.6;
  color: rgba(228, 234, 246, 0.85);
  max-width: 56ch;
  margin-bottom: 56px;
}

/* ===================== PROFILE PAGE ===================== */

.profile-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 64px;
  align-items: start;
}

.profile-photo {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 5;
  background: var(--panel);
  margin-bottom: 22px;
}
.profile-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.profile-stats {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
}
.stat + .stat { border-top: 1px solid var(--line); }
.stat-label { font-size: 9px; letter-spacing: 0.14em; color: var(--muted); }
.stat-value { font-size: 14px; font-weight: 500; }

.rank-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.profile-rank {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--accent);
}
.profile-name {
  font-size: clamp(42px, 6.5vw, 92px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.profile-role {
  font-size: clamp(16px, 1.6vw, 22px);
  color: var(--muted);
  margin-bottom: 28px;
}
.profile-role b { color: var(--fg); font-weight: 500; }

/* "is this you?" claim callout — prominent, near the top, unclaimed only */
.profile-claim { margin-bottom: 30px; }
.claim-cta {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: rgba(255, 77, 141, 0.07);
  border: 1px solid var(--accent-dim);
  border-radius: 16px;
  padding: 18px 22px;
}
.claim-cta-text { flex: 1; min-width: 200px; }
.claim-cta-text b { display: block; font-family: var(--grotesk); font-size: 17px; color: var(--fg); margin-bottom: 4px; }
.claim-cta-text span { font-size: 13.5px; color: rgba(228, 234, 246, 0.75); line-height: 1.5; }
.claim-cta-btn { flex: none; }

/* "Find your profile" modal — signed in but no claim yet (user-driven search) */
.fp-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 14vh 20px 20px;
  background: rgba(6, 9, 16, 0.72);
  backdrop-filter: blur(6px);
  animation: fp-fade 0.2s ease;
}
@keyframes fp-fade { from { opacity: 0; } }
.fp-modal {
  position: relative;
  width: 100%; max-width: 460px;
  background: var(--panel, #0F0A0D);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 24px 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.fp-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; color: var(--muted);
  font-size: 24px; line-height: 1; cursor: pointer;
}
.fp-close:hover { color: var(--fg); }
.fp-title { font-family: var(--grotesk); font-size: 20px; color: var(--fg); margin: 0 0 6px; }
.fp-sub { font-size: 13px; color: rgba(228, 234, 246, 0.7); line-height: 1.5; margin: 0 0 16px; }
.fp-sub a { color: var(--accent); cursor: pointer; }
.fp-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--fg);
  font-size: 15px;
}
.fp-input:focus { outline: none; border-color: var(--accent-dim); }
.fp-results { margin-top: 10px; max-height: 46vh; overflow-y: auto; }
.fp-hit {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 10px; border-radius: 10px;
  text-decoration: none; cursor: pointer;
}
.fp-hit:hover { background: rgba(255, 77, 141, 0.08); }
.fp-hit img, .fp-initials {
  width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: #1a2236; color: var(--accent); font-size: 13px; font-weight: 700;
}
.fp-hit-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fp-hit-text b { color: var(--fg); font-family: var(--grotesk); font-size: 15px; }
.fp-hit-text span { font-size: 10.5px; letter-spacing: 0.06em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp-empty { font-size: 12px; color: var(--muted); padding: 14px 4px; }
.fp-empty a { color: var(--accent); cursor: pointer; }

.profile-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 42px; }
.profile-tags span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  border-radius: 999px;
  padding: 7px 13px;
}
/* DESK availability — filled accent chip stands apart from outline tag chips */
.profile-tags span.avail-chip {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
  font-weight: 600;
}

/* DESK owner availability toggle */
.acct-availability,
.acct-notify {
  display: flex; flex-direction: column;
  width: 100%;
  padding: 16px 18px;
  background: rgba(255, 77, 141, 0.05);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.acct-notify { margin-top: 12px; }
.acct-notify .field { margin-top: 4px; max-width: 220px; }
.avail-head { display: flex; justify-content: space-between; align-items: center; }
.acct-avail-label { font-size: 10px; letter-spacing: 0.14em; color: var(--accent); }
.avail-sub { font-size: 12.5px; line-height: 1.5; color: var(--muted); margin: 3px 0 8px; }
.avail-toggle {
  display: flex; align-items: flex-start; gap: 13px;
  cursor: pointer; padding: 7px 0;
}
/* visually-hidden native checkbox; the switch + knob are drawn below */
.avail-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.avail-switch {
  position: relative; flex: none; margin-top: 1px;
  width: 40px; height: 23px; border-radius: 999px;
  background: rgba(154, 142, 146, 0.2); border: 1px solid var(--line);
  transition: background 0.2s, border-color 0.2s;
}
.avail-switch::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 17px; height: 17px; border-radius: 50%;
  background: #c3cde1; transition: transform 0.2s, background 0.2s;
}
.avail-toggle input:checked + .avail-switch { background: var(--accent); border-color: var(--accent); }
.avail-toggle input:checked + .avail-switch::after { transform: translateX(17px); background: var(--ink); }
.avail-toggle input:focus-visible + .avail-switch { outline: 2px solid var(--accent-dim); outline-offset: 2px; }
.avail-text b { display: block; font-weight: 500; font-size: 14px; color: var(--fg); }
.avail-text em { display: block; font-style: normal; font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.avail-saved { font-size: 10px; letter-spacing: 0.1em; color: var(--accent); }
/* seeding nudge — louder box until the owner has set availability once */
.acct-availability.is-nudge { background: rgba(255, 77, 141, 0.09); border-color: var(--accent-dim); }

.profile-bio { max-width: 620px; margin-bottom: 44px; }
.profile-bio p, .profile-bio div, .profile-bio li {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.65;
  color: rgba(228, 234, 246, 0.88);
  margin-bottom: 18px;
}
.profile-bio li { margin-bottom: 6px; }
.profile-bio ul, .profile-bio ol { padding-left: 24px; margin-bottom: 18px; }
.profile-bio a { color: var(--accent); }

/* ===================== ABOUT PAGE ===================== */

.about-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 72px;
}
.about-col h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.about-col h3 .mono { font-size: 11px; letter-spacing: 0.1em; }
.about-col p {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(210, 220, 240, 0.7);
}

.about-stats {
  display: flex;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 56px;
  max-width: 720px;
}
.about-stat {
  flex: 1;
  padding: 26px 30px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.about-stat + .about-stat { border-left: 1px solid var(--line); }
.about-stat b {
  font-size: clamp(30px, 3.4vw, 48px);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.about-stat .mono {
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

/* ===================== SUBMIT PAGE ===================== */

#submit-form { max-width: 720px; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field {
  display: block;
  margin-bottom: 18px;
}
.field > .mono {
  display: block;
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 8px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  font-family: var(--grotesk);
  font-size: 16px;
  color: var(--fg);
  background: rgba(18, 24, 42, 0.6);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 16px;
  outline: none;
  resize: vertical;
  /* render native bits (the option popup, number spinners, autofill) dark */
  color-scheme: dark;
  transition: border-color 0.2s, background 0.2s;
}
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  padding-right: 42px;
  /* custom chevron — appearance:none removes the native one */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5l3.5 3.5 3.5-3.5' fill='none' stroke='%23c3cde1' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 12px;
}
.field select:focus { border-color: var(--accent-dim); background-color: rgba(18, 24, 42, 0.9); }
/* option rows — honored on Windows/Linux; macOS uses color-scheme above */
select option { background: var(--panel); color: var(--fg); }
select option:checked { background: var(--accent); color: var(--ink); }

/* Customizable select (Chromium 135+): render the option list as a themed
   popover anchored BELOW the field, instead of the native popup that overlays
   it with system colors. Stays a real <select> (form value + a11y unchanged);
   browsers without support ignore `base-select` and keep the native list. */
.field select { appearance: base-select; }
.field select::picker-icon { display: none; } /* keep the bg-image chevron above */
.field select::picker(select) {
  appearance: base-select;
  width: anchor-size(width);
  margin-top: 6px;
  padding: 6px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}
.field select option {
  display: flex;
  align-items: center;
  padding: 11px 14px;
  border-radius: 8px;
  color: var(--fg);
  background: transparent;
}
.field select option:hover,
.field select option:focus { background: rgba(255, 77, 141, 0.12); }
.field select option:checked { background: var(--accent); color: var(--ink); }
.field select option::checkmark { content: none; } /* selection shown by row highlight */
.field input::placeholder,
.field textarea::placeholder { color: rgba(154, 142, 146, 0.3); }
.field input:focus,
.field textarea:focus {
  border-color: var(--accent-dim);
  background: rgba(18, 24, 42, 0.9);
}
.field input.is-invalid { border-color: rgba(255, 110, 110, 0.55); }

.form-error {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #ff8d8d;
  margin-bottom: 16px;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 8px;
}
/* keep the submit button its natural pill shape — never let the long note
   squeeze it (flex item) into a wrapped blob */
.form-actions .pill { flex: none; white-space: nowrap; }
.form-note {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: rgba(154, 142, 146, 0.35);
}
.form-note-link { color: rgba(154, 142, 146, 0.5); }
.form-note-link:hover { color: var(--accent); }

/* DESK — post a brief form */
.brief-specialties { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.field-hint { font-style: normal; color: var(--muted); text-transform: none; letter-spacing: 0; }
.brief-tag-picker { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.brief-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(205, 215, 235, 0.85);
  border: 1px solid rgba(154, 142, 146, 0.22);
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.brief-tag input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.brief-tag:hover { border-color: var(--accent-dim); color: var(--fg); }
.brief-tag:has(input:checked) {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}
.brief-checkbox {
  display: flex; align-items: center; gap: 9px;
  font-size: 13.5px; color: rgba(228, 234, 246, 0.85);
  cursor: pointer; margin-bottom: 18px;
}
.brief-checkbox input { accent-color: var(--accent); width: 15px; height: 15px; }

/* FAQ — native <details> accordion on the submit + desk pages */
.faq { margin-top: 48px; border-top: 1px solid var(--line); padding-top: 28px; }
.faq-title { font-size: 11px; letter-spacing: 0.16em; color: var(--accent); margin-bottom: 8px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 2px; font-size: 15.5px; font-weight: 500; color: var(--fg);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; flex: none;
  font-size: 20px; font-weight: 400; line-height: 1; color: var(--muted);
  transition: transform 0.2s, color 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.faq-item summary:hover { color: var(--accent); }
.faq-item p {
  margin: -2px 2px 18px; padding-right: 28px;
  font-size: 14px; line-height: 1.6; color: var(--muted);
}

/* DESK — "free for a limited time" callout above the brief form */
.brief-free {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px;
  font-size: 13px; line-height: 1.5; color: rgba(228, 234, 246, 0.85);
  padding: 11px 14px; margin: 0 0 22px;
  background: rgba(255, 77, 141, 0.06);
  border: 1px solid var(--accent-dim); border-radius: 12px;
}
.brief-free-tag {
  flex: none;
  font-size: 9.5px; letter-spacing: 0.12em;
  color: var(--ink); background: var(--accent);
  padding: 3px 7px; border-radius: 999px;
}

/* DESK — "your briefs" inbox */
.acct-briefs-badge {
  display: inline-block; margin-left: 7px;
  font-family: var(--mono); font-size: 10px;
  background: var(--accent); color: var(--ink);
  border-radius: 999px; padding: 1px 7px; line-height: 1.6;
}
.bi-empty { color: var(--muted); font-size: 12px; line-height: 1.6; padding: 8px 0; }
.bi-card {
  border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 18px; margin-bottom: 12px;
  background: rgba(18, 24, 42, 0.4);
}
.bi-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.bi-head b { font-size: 15px; color: var(--fg); }
.bi-type {
  font-size: 9px; letter-spacing: 0.1em;
  background: var(--accent); color: var(--ink);
  border-radius: 999px; padding: 3px 8px;
}
.bi-scope { font-size: 13.5px; line-height: 1.6; color: rgba(228, 234, 246, 0.82); margin: 0 0 10px; white-space: pre-wrap; }
.bi-meta { display: flex; flex-direction: column; gap: 3px; font-size: 11px; color: var(--muted); margin-bottom: 12px; }
.bi-actions { display: flex; gap: 10px; }
.bi-actions .pill { font-size: 12px; padding: 9px 16px; }
.bi-state { font-size: 11px; letter-spacing: 0.08em; color: var(--accent); margin: 0; }

/* Bro (AI persona) badge — shown in place of the verified rosette */
.sp-ai-badge {
  display: inline-block;
  vertical-align: middle;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #0F0A0D;
  background: var(--accent);
  border-radius: 5px;
  padding: 1px 5px;
  margin-left: 2px;
}
.sp-name-bot { color: var(--fg); cursor: default; }

/* reCAPTCHA Enterprise (App Check) badge — hidden per Google's terms; the
   required attribution is shown in the footer instead (see .recaptcha-attr) */
.grecaptcha-badge { visibility: hidden; }
.recaptcha-attr {
  font-size: 8.5px;
  letter-spacing: 0.06em;
  color: rgba(154, 142, 146, 0.4);
}
.recaptcha-attr a { color: inherit; text-decoration: underline; }
.recaptcha-attr a:hover { color: var(--accent); }

.about-help {
  margin-top: 22px;
  font-size: 14px;
  color: var(--muted);
}
.about-help a {
  color: var(--accent);
  text-decoration: none;
}
.about-help a:hover { text-decoration: underline; }

.legal-links {
  margin-top: 18px;
  font-size: 9px;
  letter-spacing: 0.14em;
}
.legal-links a {
  color: var(--muted);
  text-decoration: none;
}
.legal-links a:hover { color: var(--accent); }

/* ===================== CLAIM / VERIFIED / ACCOUNT ===================== */

.name-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.name-row .profile-name { margin-bottom: 0; }
.verified-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--ink);
  background: var(--accent);
  border-radius: 999px;
  padding: 6px 16px 6px 7px;
  white-space: nowrap;
  box-shadow: 0 0 28px rgba(255, 77, 141, 0.35);
}
.verified-chip svg { flex: none; display: block; }

.profile-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* LinkedIn-branded button (official #0A66C2, hover #004182) */
.btn-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #0a66c2;
  color: #fff;
  font-family: var(--grotesk);
  font-weight: 500;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.25s, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-linkedin:hover { background: #004182; transform: scale(1.04); }
.btn-linkedin svg { flex: none; display: block; }
/* owner controls drop to their own full-width block below View LinkedIn / Share */
#profile-account { flex-basis: 100%; display: flex; flex-direction: column; align-items: stretch; gap: 16px; margin-top: 2px; }
.acct-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.acct-tools .acct-signout { margin-left: auto; }
.claim-hint, .claim-pending {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.claim-pending { color: var(--accent); }
.acct-signout {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: rgba(154, 142, 146, 0.35);
  background: none; border: none; cursor: pointer;
}
.acct-signout:hover { color: #ff8d8d; }
.acct-owner-signin {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--muted);
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.acct-owner-signin:hover { color: var(--accent); border-color: var(--accent-dim); }

/* ===================== SHOWCASE ===================== */

#profile-showcase { margin-top: 64px; }
.showcase-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 22px;
}
.showcase-title i { color: var(--accent); font-style: normal; }
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.showcase-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.25s, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.showcase-card[data-sc] { cursor: pointer; }
.showcase-card[data-sc]:hover {
  border-color: var(--accent-dim);
  transform: translateY(-3px);
}
.showcase-view { color: var(--accent); }

.showcase-detail .sd-img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 18px;
  display: block;
}
.showcase-detail .sd-title { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.showcase-detail .sd-date {
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 16px;
}
.showcase-detail .sd-desc {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(228, 234, 246, 0.85);
  margin-bottom: 24px;
}
.showcase-img { aspect-ratio: 16 / 9; background: #0d1320; }
.showcase-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.showcase-body { padding: 16px 18px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.showcase-body h3 { font-size: 16px; font-weight: 700; }
.showcase-body p { font-size: 13.5px; line-height: 1.55; color: rgba(210, 220, 240, 0.7); }
.showcase-meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--muted);
  padding-top: 8px;
}
.showcase-meta a { color: var(--accent); text-decoration: none; }

/* ===================== MODALS (edit / showcase manager) ===================== */

.sb-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(4, 6, 10, 0.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.sb-modal-card {
  width: 640px;
  max-width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  background: linear-gradient(135deg, #0e1322 0%, #0a0d16 70%);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px 22px 26px;
}
.sb-modal-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.sb-modal-close {
  background: none; border: none;
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}
.sb-modal-close:hover { color: #fff; }
.field-label {
  display: block;
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 8px;
}
.tag-picker { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.sm-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.sm-item-title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm-thumb {
  width: 44px; height: 32px;
  border-radius: 6px;
  object-fit: cover;
  flex: none;
  background: #0d1320;
  display: block;
}
.sm-thumb-empty { border: 1px dashed var(--line); }
.sm-edit {
  font-size: 9px; letter-spacing: 0.1em;
  color: var(--muted);
  background: none; border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 11px; cursor: pointer;
}
.sm-edit:hover { color: var(--accent); border-color: var(--accent-dim); }
.sm-delete {
  font-size: 9px; letter-spacing: 0.1em;
  color: rgba(255, 141, 141, 0.7);
  background: none; border: 1px solid rgba(255, 141, 141, 0.25);
  border-radius: 999px; padding: 5px 11px; cursor: pointer;
}
.sm-delete:hover { color: #ff8d8d; border-color: rgba(255, 141, 141, 0.5); }
.sm-empty { font-size: 10px; color: var(--muted); letter-spacing: 0.12em; }
.sm-rule { border: none; border-top: 1px solid var(--line); margin: 18px 0; }
.sm-form-head { display: flex; justify-content: space-between; align-items: baseline; }
.sm-cancel-edit {
  font-size: 9px; letter-spacing: 0.1em;
  color: var(--muted); background: none; border: none; cursor: pointer;
}
.sm-cancel-edit:hover { color: var(--accent); }
.sm-count { font-style: normal; color: rgba(154, 142, 146, 0.3); float: right; }
.sm-actions { display: flex; align-items: center; gap: 16px; margin-top: 6px; }
.sm-progress { font-size: 9px; letter-spacing: 0.12em; color: var(--accent); }

/* profile photo change (edit panel) */
.ef-photo-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}
#ef-photo-preview {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #0d1320;
  flex: none;
}
#ef-photo-preview.is-empty { visibility: hidden; }
.ef-photo-ctrl { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.ef-photo-note { font-size: 8px; letter-spacing: 0.12em; color: rgba(154, 142, 146, 0.35); }

/* character counters on editors */
.wys-count {
  font-style: normal;
  float: right;
  color: rgba(154, 142, 146, 0.3);
}
.wys-count.is-over { color: #ff8d8d; }

/* WYSIWYG editor */
.wysiwyg-bar {
  display: flex; gap: 4px;
  margin-bottom: 6px;
}
.wysiwyg-bar button {
  width: 32px; height: 28px;
  background: rgba(18, 24, 42, 0.6);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--fg);
  font-size: 13px;
  cursor: pointer;
}
.wysiwyg-bar button:hover { border-color: var(--accent-dim); }
.wysiwyg {
  min-height: 96px;
  max-height: 220px;
  overflow-y: auto;
  font-family: var(--grotesk);
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg);
  background: rgba(18, 24, 42, 0.6);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 16px;
  outline: none;
  margin-bottom: 18px;
}
.wysiwyg:focus { border-color: var(--accent-dim); background: rgba(18, 24, 42, 0.9); }
.wysiwyg:empty::before { content: attr(data-placeholder); color: rgba(154, 142, 146, 0.3); }
.wysiwyg a { color: var(--accent); }
.wysiwyg ul, .wysiwyg ol { padding-left: 22px; }

/* link popover (WYSIWYG) */
.link-pop {
  background: #131a2e;
  border: 1px solid var(--accent-dim);
  border-radius: 12px;
  padding: 14px;
  margin: 8px 0 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}
.link-pop-label {
  display: block;
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 8px;
}
.link-pop input {
  width: 100%;
  font-family: var(--grotesk);
  font-size: 14px;
  color: var(--fg);
  background: rgba(10, 14, 22, 0.8);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 12px;
  outline: none;
}
.link-pop input:focus { border-color: var(--accent-dim); }
.link-pop-err { font-size: 9px; letter-spacing: 0.1em; color: #ff8d8d; margin-top: 8px; }
.link-pop-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}
.link-pop-actions .pill { padding: 8px 16px; font-size: 12px; }
.link-pop-cancel {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--muted);
  background: none; border: none; cursor: pointer;
}
.link-pop-cancel:hover { color: var(--fg); }

/* image dropzone + previews */
.dropzone {
  border: 1.5px dashed rgba(154, 142, 146, 0.25);
  border-radius: 12px;
  padding: 22px;
  text-align: center;
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  margin-bottom: 12px;
}
.dropzone:hover, .dropzone.is-over {
  border-color: var(--accent-dim);
  background: rgba(255, 77, 141, 0.04);
  color: var(--fg);
}
.drop-hint {
  display: block;
  margin-top: 8px;
  font-size: 8px;
  letter-spacing: 0.1em;
  color: rgba(154, 142, 146, 0.3);
}
.img-previews {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 16px;
}
.img-preview { position: relative; }
.img-preview img {
  width: 92px; height: 64px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  display: block;
}
.img-remove {
  position: absolute; top: -7px; right: -7px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #1a2236;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px; line-height: 1;
  cursor: pointer;
}
.img-remove:hover { color: #ff8d8d; border-color: rgba(255, 141, 141, 0.5); }

/* detail gallery */
.img-count {
  position: absolute; right: 8px; bottom: 8px;
  font-size: 9px; letter-spacing: 0.08em;
  background: rgba(7, 10, 16, 0.75);
  color: var(--fg);
  border-radius: 999px;
  padding: 3px 8px;
}
.showcase-img { position: relative; }
.sd-thumbs { display: flex; gap: 8px; margin: -8px 0 16px; }
.sd-thumbs img {
  width: 64px; height: 44px;
  object-fit: cover;
  border-radius: 6px;
  border: 1.5px solid var(--line);
  cursor: pointer;
  opacity: 0.6;
}
.sd-thumbs img.is-active, .sd-thumbs img:hover { opacity: 1; border-color: var(--accent-dim); }
.sd-desc ul, .sd-desc ol { padding-left: 22px; margin-bottom: 12px; }
.sd-desc a { color: var(--accent); }
.sd-desc p { margin-bottom: 10px; }

@media (max-width: 900px) {
  /* name & title above the fold: flatten the two columns into one flow and
     reorder so the heading sits before the (now smaller) photo */
  .profile-grid { display: flex; flex-direction: column; gap: 0; }
  .profile-side, .profile-main { display: contents; }
  .rank-row { order: 1; }
  .name-row { order: 2; }
  .profile-role { order: 3; margin-bottom: 22px; }
  .profile-claim { order: 3; } /* ties with role -> renders just after it (source order) */
  .profile-photo { order: 4; max-width: 320px; }
  .profile-tags { order: 5; }
  .profile-stats { order: 6; margin-bottom: 38px; width: 100%; }
  .profile-bio { order: 7; }
  .profile-actions { order: 8; }
  #profile-showcase { order: 9; width: 100%; }
  #profile-space { order: 10; width: 100%; }
  .top-status { display: none; }
  .about-cols { grid-template-columns: 1fr; gap: 28px; }
  .about-stats { flex-direction: column; }
  .about-stat + .about-stat { border-left: none; border-top: 1px solid var(--line); }
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 760px) {
  .ui { padding: 14px 14px; }

  /* bottom bar: nav + filter share the row side by side, nothing overlaps */
  .bottom-left { display: none; }
  .nav-pill {
    position: static;
    transform: none;
    flex: 1;
    justify-content: center;
    margin-right: 8px;
  }
  .nav-item { padding: 8px 8px; font-size: 12px; }
  .pill { padding: 10px 15px; font-size: 12px; }
  /* keep the Filter button whole next to the 5 nav items */
  .filter-btn { flex-shrink: 0; white-space: nowrap; padding: 10px 13px; }

  .hint { bottom: 78px; font-size: 8px; width: 100%; text-align: center; }

  .wordmark { font-size: 18px; }

  /* filter panel hugs the small screen */
  #filter-panel {
    right: 12px;
    left: 12px;
    bottom: 72px;
    width: auto;
    max-width: none; /* desktop cap would break the symmetric 12px gutters */
  }

  /* pages breathe less but consistently */
  .page-inner { padding: 18px 18px 90px; }
  .page-top { margin-bottom: 5vh; }

  /* submit form: button and note stack instead of cramming one line */
  .form-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .form-actions .pill {
    width: 100%;
    text-align: center;
    padding: 14px 20px;
    font-size: 14px;
    white-space: nowrap;
  }
  .form-note { text-align: center; }
}

/* ============================================================
   SPACE — verified specialists' microblog
   ============================================================ */

.space-empty { color: var(--muted); letter-spacing: 0.1em; font-size: 11px; padding: 26px 0; }
.space-empty a { text-decoration: none; }

.sp-card {
  background: rgba(18, 24, 42, 0.55);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 22px 14px;
  margin-bottom: 16px;
  transition: border-color 0.18s ease, background 0.18s ease;
}
#space-feed .sp-card { cursor: pointer; }
#space-feed .sp-card:hover { border-color: var(--accent-dim); background: rgba(18, 24, 42, 0.85); }

.sp-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.sp-ava {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  overflow: hidden; background: #1a2236;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--grotesk); font-weight: 700; font-size: 15px; color: var(--accent);
  border: 1.5px solid rgba(154, 142, 146, 0.22);
  text-decoration: none;
}
.sp-ava img { width: 100%; height: 100%; object-fit: cover; }
.sp-ava-bot { background: #0e1424; }
.bro-info { cursor: pointer; }
.sp-ava-bot svg { width: 100%; height: 100%; display: block; }

/* profile edit: submitted-for-review state + owner pending banner */
.edit-submitted { text-align: center; padding: 14px 8px 8px; }
.edit-submitted-mark {
  width: 52px; height: 52px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--accent); color: #0F0A0D; font-size: 28px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.edit-submitted h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.edit-submitted p { font-size: 14.5px; line-height: 1.6; color: rgba(228,234,246,0.8); margin-bottom: 22px; }
.edit-pending-note {
  width: 100%; box-sizing: border-box; margin-bottom: 12px;
  font-size: 10px; letter-spacing: 0.1em; color: var(--accent);
  background: rgba(255, 77, 141,0.1); border: 1px solid var(--accent-dim);
  border-radius: 10px; padding: 10px 12px;
}

/* branded confirm dialog (replaces window.confirm) */
.sb-confirm { max-width: 380px; }
.sb-confirm-msg { font-size: 15.5px; line-height: 1.5; color: var(--fg); margin: 4px 0 22px; }
.sb-confirm-actions { display: flex; justify-content: flex-end; gap: 10px; }
.pill-danger { background: #ff6b6b; color: #1a0606; border: none; }
.pill-danger:hover { background: #ff8585; }

/* "who is Bro" modal */
.bro-modal { max-width: 420px; }
.bro-modal-head { display: flex; align-items: center; gap: 13px; margin-bottom: 16px; }
.bro-modal-ava { width: 52px; height: 52px; }
.bro-modal-name { font-family: var(--grotesk); font-weight: 700; font-size: 19px; color: var(--fg); }
.bro-modal .sb-modal-body p { font-size: 14.5px; line-height: 1.65; color: rgba(228, 234, 246, 0.85); margin-bottom: 12px; }
.bro-modal-note { font-size: 9.5px; letter-spacing: 0.12em; color: var(--muted); margin-top: 16px; }
.sp-who { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sp-name {
  font-family: var(--grotesk); font-weight: 700; font-size: 15.5px; color: var(--fg);
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none; cursor: pointer;
}
.sp-name:hover { color: var(--accent); }
.sp-when { font-size: 9.5px; letter-spacing: 0.12em; color: var(--muted); }

.sp-body { font-size: 15px; line-height: 1.65; color: rgba(228, 234, 246, 0.92); overflow-wrap: anywhere; }
.sp-body p { margin-bottom: 8px; }
.sp-body a { color: var(--accent); }
.sp-link { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }
.sp-link:hover { text-decoration: none; }
.sp-body ul, .sp-body ol { padding-left: 22px; margin: 8px 0; }

.sp-foot {
  display: flex; align-items: center; gap: 18px;
  margin-top: 12px; padding-top: 10px;
  border-top: 1px solid rgba(154, 142, 146, 0.08);
  font-size: 11px;
}
.sp-like, .sp-comments {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; padding: 4px 0;
  color: var(--muted); font-family: var(--mono); font-size: 11px;
}
.sp-like { cursor: pointer; transition: color 0.15s ease, transform 0.15s ease; }
.sp-like:hover { color: #ff8d8d; }
.sp-like:active { transform: scale(1.2); }
.sp-like.is-liked { color: #ff6b6b; }
.sp-delete {
  margin-left: auto;
  background: none; border: none; cursor: pointer;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em;
  color: rgba(255, 141, 141, 0.55);
}
.sp-delete:hover { color: #ff8d8d; }
.sp-comment-meta .sp-delete { margin-left: 8px; }

.sp-gate {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  background: rgba(18, 24, 42, 0.55);
  border: 1px dashed rgba(255, 77, 141, 0.25);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 26px;
}
.sp-gate .mono { font-size: 10.5px; letter-spacing: 0.12em; color: var(--muted); }

.sp-composer {
  background: rgba(18, 24, 42, 0.55);
  border: 1px solid var(--accent-dim);
  border-radius: 18px;
  padding: 20px 22px;
  margin-bottom: 30px;
}
.sp-composer .wysiwyg { margin-bottom: 10px; min-height: 72px; }
.sp-compose-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sp-err { color: #ff8d8d; font-size: 10px; letter-spacing: 0.1em; margin-top: 10px; }

/* composer attachments: image + poll toggles (mutually exclusive) */
.sp-attach { display: flex; gap: 8px; margin-right: auto; }
.sp-attach-btn {
  background: none; border: 1px solid var(--line); border-radius: 10px;
  color: var(--muted); cursor: pointer; padding: 5px 11px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.sp-attach-btn:hover { border-color: var(--accent-dim); color: var(--accent); }

.sp-img-zone, .sp-poll-editor { margin: 2px 0 12px; }
.sp-poll-opts { display: flex; flex-direction: column; gap: 8px; }
.sp-poll-opt-row { display: flex; align-items: center; gap: 8px; }
.sp-poll-opt-input {
  flex: 1; background: rgba(18, 24, 42, 0.6); border: 1px solid var(--line);
  border-radius: 10px; color: var(--fg); font-family: var(--grotesk);
  font-size: 14px; padding: 9px 12px; outline: none;
}
.sp-poll-opt-input:focus { border-color: var(--accent-dim); }
.sp-poll-opt-del {
  background: none; border: 1px solid var(--line); border-radius: 8px;
  color: rgba(255, 141, 141, 0.7); cursor: pointer; width: 30px; height: 30px;
  font-size: 16px; line-height: 1; flex: none;
}
.sp-poll-opt-del:hover { color: #ff8d8d; border-color: rgba(255, 141, 141, 0.5); }
.sp-poll-controls { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 12px; }
.sp-poll-add, .sp-poll-remove {
  background: none; border: none; cursor: pointer;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
}
.sp-poll-add { color: var(--accent); }
.sp-poll-remove { color: rgba(255, 141, 141, 0.6); margin-left: auto; }
.sp-poll-remove:hover { color: #ff8d8d; }
.sp-poll-dur { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.sp-poll-dur select {
  background: rgba(18, 24, 42, 0.9); border: 1px solid var(--line); border-radius: 8px;
  color: var(--fg); font-family: var(--mono); font-size: 11px; padding: 5px 8px; cursor: pointer;
}

/* post images: gallery grid (1–4) */
.sp-images { display: grid; gap: 4px; margin-top: 12px; border-radius: 14px; overflow: hidden; }
.sp-images-1 { grid-template-columns: 1fr; }
.sp-images-2, .sp-images-3, .sp-images-4 { grid-template-columns: 1fr 1fr; }
.sp-images-3 .sp-img:first-child { grid-column: 1 / -1; }
.sp-img { display: block; overflow: hidden; cursor: zoom-in; }
.sp-img img { width: 100%; display: block; }

/* full-image lightbox */
.sp-lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(4, 6, 12, 0.92); padding: 24px; cursor: zoom-out;
}
.sp-lightbox img {
  max-width: 100%; max-height: 100%; border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); cursor: default;
}
.sp-lightbox-close {
  position: absolute; top: 16px; right: 20px;
  background: none; border: none; color: #fff;
  font-size: 30px; line-height: 1; cursor: pointer; opacity: 0.8;
}
.sp-lightbox-close:hover { opacity: 1; }
.sp-images-1 .sp-img img { max-height: 520px; object-fit: cover; }
.sp-images:not(.sp-images-1) .sp-img { aspect-ratio: 16 / 10; }
.sp-images:not(.sp-images-1) .sp-img img { width: 100%; height: 100%; object-fit: cover; }

/* post polls: bars always visible; vote to lock in your choice */
.sp-poll { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.sp-poll-opt {
  position: relative; display: flex; align-items: center; gap: 10px;
  width: 100%; text-align: left; cursor: pointer; overflow: hidden;
  background: rgba(18, 24, 42, 0.6); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 14px;
  color: var(--fg); font-family: var(--grotesk); font-size: 14px;
  transition: border-color 0.15s ease;
}
.sp-poll-opt:hover:not(:disabled) { border-color: var(--accent-dim); }
.sp-poll-opt:disabled { cursor: default; }
.sp-poll-bar {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: rgba(255, 77, 141, 0.14); transition: width 0.45s ease; z-index: 0;
}
.sp-poll-text, .sp-poll-pct { position: relative; z-index: 1; }
.sp-poll-text { flex: 1; overflow-wrap: anywhere; }
.sp-poll-pct { color: var(--muted); font-size: 11px; }
.sp-poll-opt.is-choice { border-color: var(--accent); }
.sp-poll-opt.is-choice .sp-poll-bar { background: rgba(255, 77, 141, 0.26); }
.sp-poll-opt.is-choice .sp-poll-pct { color: var(--accent); }
.sp-poll-meta { font-size: 9.5px; letter-spacing: 0.12em; color: var(--muted); margin-top: 2px; }

.sp-thread { margin-top: 28px; }
.sp-thread-label { font-size: 10px; letter-spacing: 0.16em; color: var(--muted); margin-bottom: 16px; }
.sp-comment { display: flex; gap: 12px; margin-bottom: 16px; }
.sp-comment .sp-ava { width: 34px; height: 34px; font-size: 12px; }
.sp-comment-main { min-width: 0; flex: 1; }
.sp-comment-meta { display: block; font-size: 9.5px; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 4px; }
.sp-comment-main p { font-size: 14px; line-height: 1.55; color: rgba(228, 234, 246, 0.88); overflow-wrap: anywhere; }

.sp-comment-box { margin-top: 20px; display: flex; gap: 10px; align-items: flex-start; }
/* wraps the textarea so the @-suggest strip (inserted as its sibling) stays out
   of the flex row and overlays instead of squeezing the input into a column */
.sp-comment-field { flex: 1; min-width: 0; position: relative; }
.sp-comment-box textarea {
  width: 100%;
  background: rgba(18, 24, 42, 0.6);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--fg);
  font-family: var(--grotesk);
  font-size: 14px;
  padding: 11px 14px;
  resize: vertical;
  min-height: 44px;
  outline: none;
}
.sp-comment-box textarea:focus { border-color: var(--accent-dim); }
.sp-comment-box .sp-gate { flex: 1; margin-bottom: 0; }
/* drop the suggestions ABOVE the comment box (it sits near the bottom / above
   the mobile keyboard), as a floating overlay rather than inline content */
.sp-comment-field .sp-suggest {
  position: absolute; left: 0; right: 0; bottom: calc(100% + 6px);
  margin: 0; z-index: 40; max-height: 240px; overflow-y: auto;
}

@media (max-width: 560px) {
  .sp-card { padding: 16px 16px 12px; }
  .sp-composer { padding: 16px; }
}

/* mentions */
.sp-mention { color: var(--accent); text-decoration: none; font-weight: 500; cursor: pointer; }
.sp-mention:hover { text-decoration: underline; }

/* @ autocomplete strip */
.sp-suggest {
  display: flex; flex-direction: column; gap: 2px;
  background: #131a2e;
  border: 1px solid var(--accent-dim);
  border-radius: 12px;
  padding: 6px;
  margin: -6px 0 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}
.sp-suggest button {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: none; border: none; border-radius: 8px;
  padding: 8px 10px; cursor: pointer; text-align: left;
}
.sp-suggest button:hover { background: rgba(255, 77, 141, 0.08); }
.sp-suggest b { font-family: var(--grotesk); font-size: 13.5px; font-weight: 500; color: var(--fg); }
.sp-suggest .mono { font-size: 10px; color: var(--muted); letter-spacing: 0.06em; }

/* notification bell + panel */
.notif-bell {
  position: relative;
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(18, 24, 42, 0.7);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--fg);
  cursor: pointer;
  margin-right: 10px;
}
.notif-bell:hover { border-color: var(--accent-dim); }
.notif-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 17px; height: 17px;
  background: var(--accent); color: var(--ink);
  border-radius: 999px;
  font-family: var(--mono); font-size: 9px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}
.notif-panel {
  position: fixed;
  top: 64px; right: 18px;
  width: min(360px, calc(100vw - 24px));
  max-height: 70vh;
  overflow-y: auto;
  background: #10141f;
  border: 1px solid var(--accent-dim);
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.6);
  z-index: 60;
}
.notif-panel header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--line);
}
.notif-panel header .mono { font-size: 10px; letter-spacing: 0.16em; color: var(--muted); }
.notif-readall {
  background: none; border: none; cursor: pointer;
  color: var(--accent); font-size: 9px; letter-spacing: 0.12em;
}
.notif-list { padding: 6px; }
.notif-item {
  display: flex; flex-direction: column; gap: 3px; width: 100%;
  background: none; border: none; border-radius: 10px;
  padding: 10px 12px; cursor: pointer; text-align: left;
}
.notif-item:hover { background: rgba(255, 77, 141, 0.06); }
.notif-item.is-unread { background: rgba(255, 77, 141, 0.07); }
.notif-item.is-unread:hover { background: rgba(255, 77, 141, 0.12); }
.notif-line { font-family: var(--grotesk); font-size: 13.5px; color: var(--fg); }
.notif-line b { font-weight: 700; }
.notif-snippet {
  font-family: var(--grotesk); font-size: 12.5px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.notif-when { font-size: 8.5px; letter-spacing: 0.12em; color: rgba(154, 142, 146, 0.4); }
.notif-empty { padding: 22px 16px; font-size: 10px; letter-spacing: 0.1em; color: var(--muted); }

@media (max-width: 760px) {
  .notif-panel { top: 58px; right: 10px; }
}

/* profile "Space" posts section */
#profile-space { margin-top: 40px; }
#profile-space .profile-space-list { display: flex; flex-direction: column; }
#profile-space .sp-card { cursor: pointer; }
#profile-space .sp-card:hover { border-color: var(--accent-dim); background: rgba(18, 24, 42, 0.85); }
.profile-space-more { margin-top: 4px; }

/* bell inside page headers (Space, profile) */
.page-top .notif-bell { margin-right: 0; margin-left: 14px; flex-shrink: 0; }

/* "new posts" pill — appears when realtime posts arrive while scrolled down */
.sp-newpill {
  position: sticky;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: block;
  background: var(--accent);
  color: var(--ink);
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
  z-index: 40;
}
.sp-newpill:hover { filter: brightness(1.08); }

/* city hub rows */
#city-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 36px; }
.city-row {
  display: flex; align-items: center; gap: 16px;
  background: rgba(18, 24, 42, 0.55);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 18px;
  text-decoration: none; color: var(--fg);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.city-row:hover { transform: translateX(4px); border-color: var(--accent-dim); }
.city-rank { font-size: 12px; color: var(--accent); min-width: 46px; }
.city-ava {
  width: 52px; height: 52px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 1.5px solid rgba(154, 142, 146, 0.22);
  background: #1a2236;
}
.city-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.city-name { font-family: var(--grotesk); font-weight: 700; font-size: 17px; display: flex; align-items: center; gap: 7px; }
.city-role { font-size: 10px; letter-spacing: 0.1em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.city-tags { display: flex; gap: 6px; flex-shrink: 0; }
.city-tags i {
  font-style: normal; font-size: 9px; letter-spacing: 0.1em;
  border: 1px solid rgba(154, 142, 146, 0.25); border-radius: 999px;
  padding: 4px 10px; color: rgba(205, 215, 235, 0.8);
}
.stat-city-link { color: inherit; text-decoration: none; cursor: pointer; border-bottom: 1px dotted var(--accent-dim); }
.stat-city-link:hover { color: var(--accent); }
@media (max-width: 560px) {
  .city-tags { display: none; }
  .city-rank { min-width: 38px; font-size: 10px; }
}

/* verified filter chip */
.fchip-verified.is-on { background: var(--verified); color: var(--bg); border-color: var(--verified); }

/* share card modal */
.share-modal { max-width: 420px; }
.share-preview {
  width: 100%; max-height: 56vh; object-fit: contain;
  border-radius: 14px; border: 1px solid var(--line);
  background: #0B0709; display: block; margin-bottom: 16px;
}
.share-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.share-actions .pill {
  text-decoration: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  text-align: center; white-space: nowrap;
}
.share-actions #share-download { grid-column: 1 / -1; }
.share-hint { margin-top: 12px; font-size: 9px; letter-spacing: 0.1em; color: var(--muted); }

/* cities index */
#cities-list { display: flex; flex-direction: column; gap: 14px; }
.cities-avas { display: flex; flex-shrink: 0; }
.cities-avas img {
  width: 44px; height: 44px; border-radius: 50%;
  object-fit: cover; background: #1a2236;
  border: 2px solid #0d1119;
  position: relative;
}
.cities-avas img + img { margin-left: -14px; }
.home-legal a { cursor: pointer; }
#about-cities { margin-bottom: 40px; }

/* cookie-consent banner (analytics gate) */
.sb-consent {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 70;
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  max-width: 720px; margin: 0 auto;
  background: #10141f;
  border: 1px solid var(--accent-dim);
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.6);
}
.sb-consent-text { font-family: var(--grotesk); font-size: 13px; line-height: 1.5; color: rgba(228, 234, 246, 0.85); margin: 0; flex: 1; min-width: 200px; }
.sb-consent-text b { color: var(--fg); }
.sb-consent-text a { color: var(--accent); }
.sb-consent-actions { display: flex; gap: 10px; flex-shrink: 0; }
.sb-consent-btn {
  font-family: var(--grotesk); font-size: 13px; font-weight: 500;
  border-radius: 999px; padding: 9px 20px; cursor: pointer; border: 1px solid var(--line);
}
.sb-consent-decline { background: transparent; color: var(--muted); }
.sb-consent-decline:hover { color: var(--fg); border-color: var(--muted); }
.sb-consent-accept { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.sb-consent-accept:hover { filter: brightness(1.08); }
@media (max-width: 520px) {
  .sb-consent { flex-direction: column; align-items: stretch; gap: 12px; }
  .sb-consent-actions { justify-content: flex-end; }
}

/* submit success state */
.submit-done { padding: 12px 0; }
.submit-done h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 14px; }
.submit-done h2 i { color: var(--accent); font-style: normal; }
.submit-done p { font-size: 15.5px; line-height: 1.7; color: rgba(228, 234, 246, 0.85); margin-bottom: 22px; max-width: 520px; }
.submit-done .pill { text-decoration: none; }

/* shared footer on non-home pages */
.page-foot {
  margin-top: 8vh;
  padding: 32px 0 8px;
  border-top: 1px solid var(--line);
}
.page-foot-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.page-foot-brand { display: flex; align-items: center; gap: 14px; }
.page-foot .wordmark { font-size: 22px; }
.page-foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.page-foot-links a {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease;
}
.page-foot-links a:hover { color: var(--accent); }
.page-foot-meta {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(154, 142, 146, 0.4);
}
@media (max-width: 560px) {
  .page-foot-top { flex-direction: column; align-items: flex-start; gap: 14px; }
  .page-foot-links { gap: 8px 14px; }
}

/* PWA install chip (Chrome beforeinstallprompt) */
.sb-install {
  position: fixed;
  left: 16px; bottom: 88px;
  z-index: 65;
  display: flex; align-items: center; gap: 2px;
  background: var(--accent);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5), 0 0 24px rgba(255, 77, 141, 0.25);
}
.sb-install-go {
  font-family: var(--grotesk); font-weight: 700; font-size: 13px;
  color: var(--ink); background: none; border: none;
  padding: 11px 8px 11px 18px; cursor: pointer;
}
.sb-install-x {
  font-size: 17px; line-height: 1; color: var(--ink);
  background: none; border: none; cursor: pointer;
  padding: 8px 14px 8px 6px; opacity: 0.7;
}
.sb-install-x:hover { opacity: 1; }
@media (max-width: 560px) { .sb-install { bottom: 96px; } }

/* Embed mode — a page (esp. a Space thread) loaded with ?embed=1 is stripped of
   its site chrome so it can be iframed cleanly (the /party watch page embeds the
   live Q&A thread this way). Toggled by the head script in index.html. */
html[data-embed] .ui-top,
html[data-embed] .ui-bottom,
html[data-embed] #filter-panel,
html[data-embed] .page-top,
html[data-embed] .page-nav,
html[data-embed] .page-foot { display: none !important; }
html[data-embed] #space { padding: 14px 14px 24px !important; }

/* Filter panel — talent name search + results */
.filter-search-wrap { margin: 4px 0 20px; }
.filter-search {
  width: 100%; box-sizing: border-box; font-family: var(--grotesk); font-size: 14px;
  background: rgba(255, 255, 255, 0.04); color: var(--fg);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; outline: none;
  transition: border-color 0.15s ease;
}
.filter-search::placeholder { color: var(--muted); }
.filter-search:focus { border-color: var(--accent-dim); }
.filter-results { margin-top: 8px; max-height: 264px; overflow-y: auto; display: flex; flex-direction: column; gap: 3px; }
.filter-result {
  display: flex; flex-direction: column; gap: 2px; text-align: left; width: 100%;
  background: transparent; border: 0; border-radius: 10px; padding: 9px 11px; cursor: pointer;
}
.filter-result:hover { background: rgba(255, 77, 141, 0.10); }
.filter-result-name { font-family: var(--grotesk); font-weight: 600; font-size: 14px; color: var(--fg); }
.filter-result .fr-check { color: var(--accent); font-style: normal; font-size: 12px; }
.filter-result-role { font-size: 10.5px; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; }
.filter-noresult, .filter-more { font-size: 11px; letter-spacing: 1px; color: var(--muted); padding: 8px 11px; }

/* ============================================================================
   founderbro components — appended over the forked searchbro base.
   Styles the founderbro shell (topbar, HUD, cards, profile/startup/notes/
   launchpad/invest/about) that searchbro's own DOM didn't provide.
   ============================================================================ */

/* --- top chrome (persistent over sphere + page overlays) --- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  display: flex; align-items: center; gap: 20px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: linear-gradient(180deg, rgba(7,10,16,0.82), rgba(7,10,16,0));
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.wordmark i { color: var(--accent); font-style: normal; }
.topnav { display: flex; gap: 4px; margin-left: auto; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.clock { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: 0.06em; }
.nav-toggle { display: none; background: none; border: 0; color: var(--fg); font-size: 20px; cursor: pointer; }

.home-hud {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 8;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 0 20px 22px; text-align: center; pointer-events: none;
}
.hud-stats { font-size: 14px; color: var(--muted); }
.hud-stats strong { color: var(--fg); }
.hud-hint { font-family: var(--mono); font-size: 11px; color: rgba(154, 142, 146,0.4); }
body.page-open .home-hud { display: none; }

/* per-page nav sits at the top of each overlay (searchbro model) */
.page-nav { margin-bottom: 4vh; }

/* --- generic page bits --- */
.page-head { margin-bottom: 26px; }
.page-head h2 { font-size: clamp(24px, 4vw, 36px); letter-spacing: -0.03em; }
.lede { color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 640px; }
.muted { color: var(--muted); }
.accent-text { color: var(--accent); }
.back { display: inline-block; font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 20px; text-decoration: none; }
.back:hover { color: var(--accent); }
.block { margin-top: 32px; }
.block-title { font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 14px; font-weight: 500; }
.verified { font-family: var(--mono); font-size: 12px; color: var(--verified); margin-left: 8px; font-weight: 500; }
.empty { padding: 40px 0; text-align: center; }

/* --- chips --- */
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
/* DS chips: soft filled-tint pills, no outlines */
.chip { display: inline-block; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.05em; color: var(--fg-2); background: var(--panel-hi); border: 0; border-radius: 999px; padding: 4px 11px; text-transform: uppercase; }
.chip-stage { color: var(--accent); background: var(--accent-soft); }
.chip-raising { color: var(--pending); background: color-mix(in srgb, var(--pending) 15%, transparent); }
.chip-ok { color: var(--verified); background: color-mix(in srgb, var(--verified) 15%, transparent); }

/* --- cards --- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.card { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: 15px; padding: 16px; text-decoration: none; color: inherit; transition: border-color .2s, transform .2s, background .2s; }
.card:hover { border-color: var(--accent-dim); transform: translateY(-2px); background: #241620; }
.card-top { display: flex; gap: 12px; align-items: center; }
.card-logo { width: 46px; height: 46px; border-radius: 12px; flex: none; }
.card-id { min-width: 0; }
.card-name { font-size: 16px; font-weight: 600; }
.card-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.card-line { font-size: 13.5px; color: var(--muted); line-height: 1.5; margin-top: 12px; }
.card-foot { display: flex; align-items: center; gap: 8px; margin-top: 13px; font-size: 12.5px; color: var(--muted); }
.ask { margin-left: auto; font-family: var(--mono); font-size: 12px; color: #FFC24B; }

/* --- profile --- */
.profile-head { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.profile-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none; }
.profile-id h2 { font-size: clamp(24px, 4vw, 34px); letter-spacing: -0.02em; }
.profile-role { color: var(--muted); margin-top: 4px; font-size: 15px; }
.profile-role a { color: var(--accent); text-decoration: none; }
.profile-tags { margin-top: 12px; }
.profile-links { display: flex; gap: 10px; margin-top: 12px; }
.ext { font-family: var(--mono); font-size: 12.5px; color: var(--accent); border-bottom: 1px solid var(--accent-dim); padding-bottom: 1px; text-decoration: none; }
.ext:hover { border-color: var(--accent); }
.profile-bio { margin-top: 22px; max-width: 680px; }
.profile-bio p { color: #CDBFC5; line-height: 1.7; margin-bottom: 12px; font-size: 15.5px; }

/* --- startup --- */
.startup-head { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.startup-logo { width: 84px; height: 84px; border-radius: 20px; object-fit: cover; flex: none; }
.startup-id h2 { font-size: clamp(24px, 4vw, 34px); letter-spacing: -0.02em; }
.startup-line { color: #CDBFC5; font-size: 16px; margin: 6px 0 12px; max-width: 560px; line-height: 1.5; }
.startup-tags { margin-bottom: 12px; }
.startup-body { margin-top: 20px; max-width: 680px; }
.startup-body p { color: #CDBFC5; line-height: 1.7; font-size: 15.5px; }
.meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin-top: 16px; }
.meta-item { background: #0F0A0D; border: 1px solid var(--line-2, rgba(154, 142, 146,0.08)); border-radius: 11px; padding: 13px 15px; }
.meta-k { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.meta-v { font-size: 16px; font-weight: 600; margin-top: 5px; }
.raise-block .meta-v { color: #FFC24B; }
.use-of-funds { margin-top: 12px; font-size: 14px; line-height: 1.6; color: #CDBFC5; }
.people-row { display: flex; flex-wrap: wrap; gap: 12px; }
.person { display: flex; align-items: center; gap: 11px; background: #0F0A0D; border: 1px solid rgba(154, 142, 146,0.08); border-radius: 12px; padding: 10px 16px 10px 10px; text-decoration: none; color: inherit; }
.person:hover { border-color: var(--accent-dim); }
.person-photo { width: 44px; height: 44px; border-radius: 50%; flex: none; }
.person-name { font-size: 14.5px; font-weight: 600; }
.person-role { font-size: 12px; color: var(--muted); }

/* --- filters --- */
.filters { display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; }
.filter-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.filter-label { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(154, 142, 146,0.4); width: 54px; flex: none; }
.filterbar { display: flex; flex-wrap: wrap; gap: 6px; }
.filterbar .filter { background: var(--panel); border: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; padding: 6px 11px; border-radius: 999px; cursor: pointer; transition: all .16s; }
.filterbar .filter:hover { color: var(--fg); border-color: var(--accent-dim); }
.filterbar .filter.on { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.fineprint { margin-top: 28px; font-size: 12.5px; color: rgba(154, 142, 146,0.4); line-height: 1.6; max-width: 560px; }

/* --- notes: filter rail + timeline (Direction B) --- */
.notes-board { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 30px; align-items: start; max-width: 800px; }
.note-rail { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 2px; }
.note-rail-title { font-family: var(--mono); font-size: 10px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px 10px; }
.note-filter { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 7px 10px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; text-align: left; transition: background .15s ease, color .15s ease; }
.note-filter:hover { background: rgba(240, 234, 237, 0.04); color: var(--fg); }
.note-filter.active { background: rgba(255, 77, 141, 0.1); color: var(--accent); }
.rail-label { display: inline-flex; align-items: center; gap: 8px; }
.rail-count { font-family: var(--mono); font-size: 11px; opacity: 0.7; }
.rail-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.rail-dot.milestone { background: #4ADE9E; }
.rail-dot.lesson { background: #5AD1FF; }
.rail-dot.update { background: var(--accent); }
.rail-dot.launch { background: #FFC24B; }

.note-tl { position: relative; border-left: 1px solid var(--line); padding-left: 22px; }
.tl-group-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.tl-group-label:not(:first-child) { margin-top: 28px; }
.tl-item { position: relative; padding-bottom: 22px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; left: -26px; top: 5px; width: 9px; height: 9px; border-radius: 50%; box-shadow: 0 0 0 4px var(--bg); }
.tl-dot.milestone { background: #4ADE9E; }
.tl-dot.lesson { background: #5AD1FF; }
.tl-dot.update { background: var(--accent); }
.tl-dot.launch { background: #FFC24B; }
.tl-meta { display: flex; align-items: baseline; gap: 10px; }
.tl-who { font-size: 13.5px; color: var(--fg); }
.tl-author { font-weight: 600; color: var(--fg); text-decoration: none; }
.tl-author:hover { color: var(--accent); }
.tl-startup { color: var(--accent); font-family: var(--mono); font-size: 12px; text-decoration: none; }
.tl-sep { color: var(--muted); }
.tl-when { font-family: var(--mono); font-size: 11px; color: rgba(154, 142, 146, 0.55); }
.tl-meta .mini-kind { margin-left: auto; }
.tl-body { margin: 8px 0 0; line-height: 1.6; color: #CDBFC5; font-size: 14.5px; }
.tl-foot { margin-top: 9px; }
.tl-empty { padding: 8px 0; }
.note-likes { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; padding: 2px 0; color: var(--muted); font-family: var(--mono); font-size: 12px; cursor: pointer; transition: color .15s ease; }
.note-likes:hover:not(:disabled) { color: var(--fg); }
.note-likes.is-liked { color: var(--accent); }
.note-likes:disabled { cursor: default; }
@media (max-width: 760px) {
  .notes-board { grid-template-columns: 1fr; gap: 18px; }
  .note-rail { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .note-rail-title { display: none; }
  .note-filter { width: auto; }
}
.note-list { display: flex; flex-direction: column; gap: 8px; }
.mini-note { display: flex; align-items: center; gap: 12px; background: #0F0A0D; border: 1px solid rgba(154, 142, 146,0.08); border-radius: 11px; padding: 11px 14px; }
.mini-kind { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; padding: 2px 7px; border-radius: 5px; flex: none; }
.mini-kind.update { color: var(--accent); background: var(--accent-soft, rgba(255, 77, 141,0.1)); }
.mini-kind.lesson { color: #5AD1FF; background: rgba(90, 209, 255,0.1); }
.mini-kind.milestone { color: #4ADE9E; background: rgba(74, 222, 158,0.1); }
.mini-kind.launch { color: #FFC24B; background: rgba(255, 194, 75,0.1); }
.mini-body { flex: 1; font-size: 13.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --- about --- */
.about-body { margin-top: 20px; max-width: 680px; }
.about-body p { line-height: 1.7; margin-bottom: 14px; color: #CDBFC5; font-size: 15.5px; }
.about-body a { color: var(--accent); text-decoration: none; }
.gate-block { margin-top: 30px; padding: 20px 22px; border-left: 2px solid var(--accent); background: var(--accent-soft, rgba(255, 77, 141,0.08)); border-radius: 0 12px 12px 0; max-width: 680px; }
.gate-k { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); }
.gate-block p { margin-top: 8px; color: #CDBFC5; line-height: 1.6; font-size: 14.5px; }
.about-owner { margin-top: 34px; font-family: var(--mono); font-size: 12px; color: rgba(154, 142, 146,0.4); }

/* --- site footer --- */
.sitefooter { display: none; }   /* legacy element; footers now live inside each page */
.page-footer {
  margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; gap: 8px 40px; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
}
.page-footer .foot-brand { font-weight: 700; font-size: 18px; }
.page-footer .foot-meta { font-family: var(--mono); font-size: 12px; color: var(--muted); line-height: 1.7; text-align: right; }
.page-footer .foot-meta a { color: var(--accent); text-decoration: none; }
@media (max-width: 560px) {
  .page-footer { flex-direction: column; gap: 6px; }
  .page-footer .foot-meta { text-align: left; }
}

/* --- responsive --- */
@media (max-width: 720px) {
  .topnav { position: fixed; top: 56px; right: 12px; left: 12px; flex-direction: column; gap: 2px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 8px; display: none; }
  body.nav-open .topnav { display: flex; }
  .nav-toggle { display: block; }
  .home-hud { padding-bottom: 16px; }
}

/* --- robust page transitions (CSS-driven, not gsap) -------------------------
   The page reveal is declarative: adding .is-open sets the final clip-path and
   the browser transitions to it. Even if JS animation stalls, the end state
   still applies, so navigation can never leave a page stuck half-open. --- */
.page { transition: clip-path 0.7s cubic-bezier(0.7, 0, 0.2, 1); }
.page.is-open { clip-path: inset(0 0 0 0%); }
#gl { transition: filter 0.55s ease, transform 0.55s ease; }
body.page-open #gl { filter: blur(8px); transform: scale(0.92); }

/* --- filter panel open state (class-toggled, gsap-independent) --- */
#filter-panel { opacity: 0; transform: translateY(10px) scale(0.98); transition: opacity .22s ease, transform .22s ease, visibility .22s; }
#filter-panel.is-open { visibility: visible; opacity: 1; transform: none; }
.filter-foot { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 10.5px; color: var(--muted); letter-spacing: 0.06em; }

/* --- submit / join the index form --- */
.submit-form { margin-top: 8px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { margin-top: 14px; }
.field > span { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); }
.field input, .field select {
  background: var(--panel-2, #0F0A0D); border: 1px solid var(--line); border-radius: 10px;
  color: var(--fg); font-family: var(--grotesk); font-size: 14.5px; padding: 11px 13px; width: 100%;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field input::placeholder { color: rgba(154, 142, 146,0.3); }
.form-actions { display: flex; align-items: center; gap: 16px; margin-top: 22px; flex-wrap: wrap; }
.form-note { font-size: 12.5px; color: var(--muted); }
.form-note.ok { color: var(--accent); }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* --- sign-in toast --- */
.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%);
  z-index: 40; max-width: 360px; background: rgba(13,18,32,0.96); backdrop-filter: blur(14px);
  border: 1px solid var(--accent-dim); border-radius: 14px; padding: 14px 18px;
  font-size: 13.5px; line-height: 1.5; color: #CDBFC5; box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.toast b { color: var(--accent); }

/* --- tighten the bottom bar so nav + Filter fit small screens (founderbro's
   nav labels are longer than searchbro's) --- */
@media (max-width: 560px) {
  .ui.ui-bottom { padding: 10px 10px; gap: 6px; }
  .nav-pill { gap: 0; padding: 3px; margin-right: 6px; }
  .nav-item { padding: 7px 6px; font-size: 10.5px; letter-spacing: 0.02em; }
  .filter-btn { padding: 8px 11px; font-size: 11px; }
  .top-actions { gap: 6px; }
  .top-actions .pill { padding: 9px 12px; font-size: 12px; }
  .wordmark { font-size: 17px; }
}

/* --- legal pages (terms / privacy) --- */
.legal-body { max-width: 680px; }
.legal-updated { margin-top: 6px; font-size: 11px; letter-spacing: 0.08em; }
.legal-body h3 { margin: 30px 0 10px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.legal-body p { color: var(--fg-2); line-height: 1.7; font-size: 15px; margin-bottom: 12px; }
.legal-body a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-dim); }
.legal-body a:hover { border-color: var(--accent); }

/* --- consistent page header on every overlay (codebro model) --- */
.page-chrome { margin-bottom: 5vh; }
.page-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-bottom: 20px; }
.back-pill { justify-self: start; display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); font-family: var(--grotesk); font-size: 13px; color: var(--fg-2); text-decoration: none; transition: border-color .18s, color .18s; cursor: pointer; }
.back-pill:hover { border-color: var(--accent-dim); color: var(--fg); }
.page-top-title { justify-self: center; font-size: 11px; letter-spacing: 0.18em; color: var(--muted); text-transform: uppercase; }
.page-top-spacer { justify-self: end; }
.page-chrome .page-nav { margin-bottom: 0; }
@media (max-width: 560px) {
  .page-top { grid-template-columns: auto 1fr; margin-bottom: 16px; }
  .page-top-title, .page-top-spacer { display: none; }
  .back-pill { font-size: 12px; padding: 8px 13px; }
}

/* --- account layer: claim CTA, owner tools, edit modal --- */
.profile-claim { margin: 4px 0 18px; }
.claim-cta { display: flex; align-items: center; gap: 18px; background: var(--panel); border: 1px solid var(--accentDim, rgba(255, 77, 141, 0.35)); border-radius: 14px; padding: 16px 18px; }
.claim-cta.owner-cta { border-color: var(--line); }
.claim-cta-text { display: flex; flex-direction: column; gap: 4px; }
.claim-cta-text b { font-size: 15px; font-weight: 600; }
.claim-cta-text span { font-size: 13px; color: var(--muted); line-height: 1.5; }
.claim-cta-btn { margin-left: auto; white-space: nowrap; flex: none; }
.claim-pending { display: inline-block; margin: 4px 0 18px; padding: 8px 13px; border-radius: 8px; background: rgba(255, 194, 75, 0.1); color: var(--pending, #FFC24B); font-size: 11px; letter-spacing: 0.04em; }

.acct-host { margin: 0 0 16px; }
.acct-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.acct-you { color: var(--verified, #4ADE9E); font-size: 11px; letter-spacing: 0.06em; }
.acct-signout { margin-left: auto; background: none; border: 0; color: var(--muted); font-size: 11px; letter-spacing: 0.04em; cursor: pointer; }
.acct-signout:hover { color: var(--fg); }
.edit-pending-note { margin: 12px 0 0; color: var(--pending, #FFC24B); font-size: 11px; letter-spacing: 0.04em; }

.acct-menu { position: fixed; z-index: 1200; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 5px; box-shadow: 0 12px 40px rgba(0,0,0,0.5); }
.acct-menu-item { display: block; width: 100%; text-align: left; background: none; border: 0; color: var(--fg); font: inherit; font-size: 13px; padding: 8px 14px; border-radius: 7px; cursor: pointer; }
.acct-menu-item:hover { background: rgba(240, 234, 237, 0.05); }

.fb-modal { position: fixed; inset: 0; z-index: 1300; display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; background: rgba(5, 3, 4, 0.72); overflow-y: auto; }
.fb-modal-card { width: 100%; max-width: 560px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; }
.fb-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.fb-modal-head .mono { font-size: 12px; letter-spacing: 0.08em; color: var(--muted); }
.fb-modal-x { background: none; border: 0; color: var(--muted); font-size: 15px; cursor: pointer; }
.fb-modal-x:hover { color: var(--fg); }
.fb-modal-body { padding: 20px; }
.fb-modal-body .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.fb-modal-body .field > .mono { font-size: 10px; letter-spacing: 0.07em; color: var(--muted); }
.fb-modal-body input, .fb-modal-body textarea { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; color: var(--fg); font: inherit; font-size: 14px; }
.fb-modal-body textarea { resize: vertical; line-height: 1.6; }
.fb-modal-body input:focus, .fb-modal-body textarea:focus { outline: none; border-color: var(--accentDim, rgba(255, 77, 141, 0.5)); }
.field-row { display: flex; gap: 12px; }
.field-row .field { flex: 1; }
.form-error { color: #FF6B6B; font-size: 11px; letter-spacing: 0.04em; margin: 0 0 12px; }
.sm-actions { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.sm-progress { font-size: 10px; color: var(--muted); letter-spacing: 0.06em; }
.edit-submitted { text-align: center; padding: 16px 8px 8px; }
.edit-submitted-mark { width: 46px; height: 46px; margin: 0 auto 14px; border-radius: 50%; background: rgba(74, 222, 158, 0.12); color: var(--verified, #4ADE9E); font-size: 22px; display: flex; align-items: center; justify-content: center; }
.edit-submitted h3 { font-size: 17px; font-weight: 600; margin: 0 0 8px; }
.edit-submitted p { font-size: 13.5px; color: var(--muted); line-height: 1.6; margin: 0 0 18px; }
@media (max-width: 560px) {
  .claim-cta { flex-direction: column; align-items: flex-start; gap: 12px; }
  .claim-cta-btn { margin-left: 0; }
  .field-row { flex-direction: column; gap: 0; }
}

/* --- live Notes composer --- */
.notes-composer { max-width: 800px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin: 0 0 22px; }
.nc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.nc-you { font-size: 10px; letter-spacing: 0.06em; color: var(--verified, #4ADE9E); }
.nc-kind, .nc-startup { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; color: var(--fg); font: inherit; font-size: 12.5px; padding: 6px 10px; }
.nc-kind { margin-left: auto; }
.nc-text { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; color: var(--fg); font: inherit; font-size: 14.5px; line-height: 1.6; padding: 11px 13px; resize: vertical; }
.nc-text:focus, .nc-kind:focus, .nc-startup:focus { outline: none; border-color: var(--accentDim, rgba(255, 77, 141, 0.5)); }
.nc-foot { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.nc-foot .pill { margin-left: auto; }
.nc-error { color: #FF6B6B; font-size: 11px; letter-spacing: 0.04em; margin: 10px 0 0; }
