/* ==========================================================================
   Gibsurveys public site
   Tokens follow docs/brand/Gibsurveys_AI_Brand_Guide.md (v2):
   Gib Coral = brand/display/bars, Action Red = buttons & small red text,
   one canonical charcoal and off-white.
   ========================================================================== */
:root {
  /* Brand */
  --gib-coral: #FF3B30;
  --gib-action: #D7261F;
  --gib-action-hover: #B81F19;
  --gib-gold: #F6B51B;

  /* Neutrals */
  --ink: #16161D;
  --ink-muted: #6F6B66;
  --canvas: #FAF9F6;
  --surface: #FFFFFF;
  --surface-soft: #F4F1EC;
  --surface-dark: #111119;
  --border: #E9E5DF;
  --border-strong: #D9D3CA;

  /* Data tints */
  --coral-soft: #FFE1DC;
  --mint-soft: #DDF4E8;
  --gold-soft: #FFF1C7;
  --ok: #1E7A55;
  --err: #B42318;

  --radius-sm: 12px;
  --radius-btn: 14px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;
  --shadow-card: 0 12px 40px rgba(22, 22, 29, .07);
  --shadow-lift: 0 18px 48px rgba(22, 22, 29, .11);
  --container: 1280px;
  --ease: 180ms ease;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 400 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[x-cloak] { display: none !important; }
:focus-visible { outline: 3px solid var(--gib-action); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); }
.skip:focus { left: 8px; }
.wrap { width: min(var(--container), 100% - 48px); margin-inline: auto; }
@media (max-width: 640px) { .wrap { width: calc(100% - 32px); } }
.center { text-align: center; }
.mt-12 { margin-top: 12px; } .mt-24 { margin-top: 24px; }
.num { font-variant-numeric: tabular-nums; }
main { min-height: 60vh; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 1px solid transparent; border-radius: var(--radius-btn); padding: 11px 20px; font-weight: 600; font-size: 15px; line-height: 1.1; text-decoration: none; cursor: pointer; transition: background var(--ease), border-color var(--ease), transform var(--ease), box-shadow var(--ease); white-space: nowrap; }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn--sm { min-height: 40px; padding: 9px 15px; font-size: 14px; border-radius: var(--radius-sm); }
.btn--lg { min-height: 52px; padding: 15px 26px; font-size: 16px; }
.btn--block { width: 100%; }
/* Primary = Action Red: white text on Gib Coral fails AA, so buttons never use it. */
.btn--brand { background: var(--gib-action); color: #fff; }
.btn--brand:hover { background: var(--gib-action-hover); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #2B2B35; }
.btn--ghost { background: var(--surface); border-color: var(--border-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.28); }
.btn--light:hover { background: rgba(255,255,255,.16); }

/* ---------- Header ---------- */
.hdr { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--canvas) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--border); transition: box-shadow var(--ease); }
.hdr.is-scrolled { box-shadow: 0 6px 24px rgba(22, 22, 29, .06); }
.hdr__in { display: flex; align-items: center; gap: 32px; height: 72px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.logo-img { height: auto; }
.hdr .logo-img { height: 50px; width: auto; }
.hdr__nav { display: flex; gap: 2px; }
.hdr__nav a { text-decoration: none; color: var(--ink-muted); font-weight: 500; font-size: 15px; padding: 10px 14px; border-radius: var(--radius-sm); transition: color var(--ease), background var(--ease); }
.hdr__nav a:hover { color: var(--ink); background: var(--surface-soft); }
.hdr__nav a[aria-current] { color: var(--ink); background: var(--surface-soft); font-weight: 600; }
.hdr__end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.hdr__login { text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 12px; border-radius: var(--radius-sm); }
.hdr__login:hover { background: var(--surface-soft); }
.hdr__burger { display: none; width: 44px; height: 44px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; place-items: center; }
.hdr__burger svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.mnav { display: none; }
.avatar { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; display: grid; place-items: center; }
.umenu { position: relative; }
.umenu__pop { position: absolute; right: 0; top: calc(100% + 10px); width: 250px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: 8px; display: grid; }
.umenu__pop a, .umenu__pop button { text-align: left; text-decoration: none; padding: 11px 12px; border-radius: 10px; border: 0; background: none; cursor: pointer; font-size: 15px; width: 100%; }
.umenu__pop a:hover, .umenu__pop button:hover { background: var(--surface-soft); }
.umenu__who { margin: 0 0 6px; padding: 8px 12px 12px; border-bottom: 1px solid var(--border); display: grid; font-size: 14px; }
.umenu__who span { color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 960px) {
  .hdr__nav, .hdr__login, .hdr__signup { display: none; }
  .hdr__burger { display: grid; }
  .mnav { display: grid; gap: 4px; padding: 8px 16px 18px; border-top: 1px solid var(--border); background: var(--canvas); }
  .mnav a { text-decoration: none; padding: 12px 10px; font-weight: 600; border-radius: var(--radius-sm); }
  .mnav a[aria-current] { background: var(--surface-soft); }
  .mnav .btn { margin-top: 6px; }
}
@media (max-width: 440px) { .hdr .logo-img { height: 42px; } .hdr__create { padding-inline: 12px; } .hdr__in { gap: 12px; } }

/* ---------- Tags & chips ---------- */
.tag { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: var(--radius-pill); background: var(--surface-soft); color: var(--ink); font-size: 12px; font-weight: 600; letter-spacing: .01em; text-decoration: none; }
a.tag:hover { background: var(--border); }
.tag--muted { background: transparent; border: 1px solid var(--border-strong); color: var(--ink-muted); }
.tag--brand { background: var(--coral-soft); color: var(--ink); }
.tag--gold { background: var(--gold-soft); color: var(--ink); }
.live { display: inline-flex; align-items: center; gap: 6px; color: var(--gib-action); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--gib-coral); box-shadow: 0 0 0 0 rgba(255, 59, 48, .5); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(255, 59, 48, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); } }
.closed { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.closed i { width: 8px; height: 8px; border-radius: 2px; background: var(--ink-muted); }
@media (prefers-reduced-motion: reduce) { .live i { animation: none; } }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border-radius: var(--radius-pill); border: 1px solid var(--border-strong); background: var(--surface); text-decoration: none; font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: border-color var(--ease), background var(--ease); }
.chip:hover { border-color: var(--ink); }
.chip--on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 56px; }
.hero__in { display: grid; grid-template-columns: 1.08fr .92fr; gap: 64px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px; color: var(--ink-muted); font-size: 14px; font-weight: 500; }
.hero__title { margin: 0; font-size: clamp(42px, 6.2vw, 80px); line-height: .98; font-weight: 800; letter-spacing: -.045em; text-wrap: balance; }
.hero__title em { font-style: normal; color: var(--gib-coral); }
.hero__title--md { font-size: clamp(36px, 4.4vw, 56px); }
.hero__sub { margin: 24px 0 0; font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-muted); max-width: 34em; text-wrap: pretty; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__points { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 0; margin: 28px 0 0; list-style: none; color: var(--ink-muted); font-size: 14px; }
.hero__points li { display: inline-flex; align-items: center; gap: 8px; }
.hero__points svg { width: 16px; height: 16px; fill: none; stroke: var(--ok); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hero__poll { position: relative; }
.hero__poll .poll { box-shadow: var(--shadow-lift); }
@media (max-width: 960px) { .hero { padding: 40px 0 40px; } .hero__in { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Stats & topics ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.stats div { padding: 24px 28px; display: grid; gap: 4px; }
.stats div + div { border-left: 1px solid var(--border); }
.stats b { font-size: clamp(30px, 3vw, 40px); line-height: 1; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stats span { color: var(--ink-muted); font-size: 14px; }
.stats small { color: var(--ink-muted); font-size: 12px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } .stats div:nth-child(3) { border-left: 0; } .stats div:nth-child(n+3) { border-top: 1px solid var(--border); } .stats div { padding: 18px 20px; } }
.topics { display: flex; gap: 8px; overflow-x: auto; padding: 28px 0 4px; scrollbar-width: none; }
.topics::-webkit-scrollbar { display: none; }
.topics--flush { padding-top: 0; margin-bottom: 28px; }

/* ---------- Sections ---------- */
.sec { padding: 96px 0 0; }
.sec--band { padding: 96px 0; }
.sec__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.sec__eyebrow { margin: 0 0 10px; color: var(--gib-action); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.sec__title { margin: 0; font-size: clamp(28px, 3.2vw, 44px); line-height: 1.05; font-weight: 800; letter-spacing: -.035em; }
.sec__title--sm { font-size: 24px; margin: 32px 0 16px; letter-spacing: -.02em; }
.sec__sub { margin: 10px 0 0; color: var(--ink-muted); font-size: 17px; max-width: 40em; }
.more { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; text-decoration: none; white-space: nowrap; color: var(--gib-action); }
.more:hover { text-decoration: underline; text-underline-offset: 4px; }
.band { background: var(--surface-soft); border-block: 1px solid var(--border); margin-top: 96px; }
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--feature > :first-child { grid-column: span 2; grid-row: span 2; }
@media (max-width: 1040px) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid--feature > :first-child { grid-row: auto; } }
@media (max-width: 640px) { .grid--3 { grid-template-columns: 1fr; } .grid--feature > :first-child { grid-column: auto; } .sec__head { flex-direction: column; align-items: start; gap: 8px; } .sec { padding-top: 64px; } .sec--band { padding: 64px 0; } .band { margin-top: 64px; } }
.empty { color: var(--ink-muted); }
.empty--box { background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); padding: 40px; text-align: center; }

/* ---------- Poll card ---------- */
.poll { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow-card); min-width: 0; transition: transform var(--ease), box-shadow var(--ease); }
.grid .poll:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.poll--full { padding: 32px; border-radius: var(--radius-xl); }
.poll--empty { align-items: start; }
.poll__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 26px; }
.poll__q { margin: 0; font-size: 21px; line-height: 1.22; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
.poll__q a { text-decoration: none; }
.poll__q a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.poll__q--xl { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.06; letter-spacing: -.035em; font-weight: 800; }
.poll__desc { margin: 0; color: var(--ink-muted); }
.poll__hint { margin: -6px 0 0; color: var(--ink-muted); font-size: 13px; }
.poll__opts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.opt { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 12px 16px; border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); text-align: left; font-size: 15px; font-weight: 500; cursor: pointer; transition: border-color var(--ease), background var(--ease), transform var(--ease); }
button.opt:hover, label.opt:hover { border-color: var(--ink); }
button.opt:active { transform: scale(.99); }
.opt--static { cursor: default; border-color: var(--border); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt__box { width: 20px; height: 20px; flex: none; border: 2px solid var(--border-strong); border-radius: 6px; display: grid; place-items: center; }
.opt--on { border-color: var(--ink); }
.opt--on .opt__box { background: var(--ink); border-color: var(--ink); }
.opt--on .opt__box::after { content: ""; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.opt__label { flex: 1; display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.opt__check { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--gib-action); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
/* Percentages are always text, in charcoal: never rely on the bar colour alone. */
.opt__pct { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.opt__bar { position: absolute; inset: 0 auto 0 0; z-index: -1; width: var(--w); background: var(--surface-soft); transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.opt--lead .opt__bar { background: var(--coral-soft); box-shadow: inset 4px 0 0 var(--gib-coral); }
.opt--lead .opt__pct { font-weight: 800; }
.opt--lead .opt__label { font-weight: 600; }
.opt--mine { border-color: var(--ink); }
.poll--voted .opt__bar { animation: grow .9s cubic-bezier(.2, .8, .2, 1); }
@keyframes grow { from { width: 0; } }
@media (prefers-reduced-motion: reduce) { .opt__bar, .poll--voted .opt__bar { transition: none; animation: none; } .grid .poll:hover, .scard:hover { transform: none; } }
.poll__err { margin: 0; padding: 10px 14px; border-radius: var(--radius-sm); background: #FDECEB; color: var(--err); font-size: 14px; }
.poll__note { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-muted); }
.poll__note a { color: var(--gib-action); font-weight: 600; }
.poll__note--ok { color: var(--ok); font-weight: 500; }
.poll__foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-muted); }
.poll__foot b { color: var(--ink); font-variant-numeric: tabular-nums; }
.poll__acts { display: inline-flex; gap: 4px; }
.poll__acts a, .poll__acts button { background: none; border: 0; padding: 8px 10px; min-height: 36px; border-radius: 10px; cursor: pointer; font-weight: 600; color: var(--ink); text-decoration: none; font-size: 14px; }
.poll__acts a:hover, .poll__acts button:hover { background: var(--surface-soft); }

/* ---------- Survey card ---------- */
.scard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow-card); transition: transform var(--ease), box-shadow var(--ease); }
.scard:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.scard__preview { margin: 8px 0 4px; padding: 20px 22px; border-radius: var(--radius-md); background: var(--canvas); border: 1px solid var(--border); }
.scard__preview-h { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.scard__preview ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-weight: 500; }
.scard__preview li::marker { color: var(--gib-action); font-weight: 700; }
.scard__preview-more { margin: 10px 0 0; color: var(--ink-muted); font-size: 14px; }
.scard--feature { padding: 40px; min-height: 100%; border-radius: var(--radius-xl); background: var(--surface) linear-gradient(135deg, transparent 60%, var(--coral-soft) 160%); }
.scard--feature .scard__name { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -.03em; font-weight: 800; }
.scard--feature .scard__desc { font-size: 17px; max-width: 34em; }
.scard__top { display: flex; gap: 8px; flex-wrap: wrap; }
.scard__name { margin: 0; font-size: 21px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
.scard__name a { text-decoration: none; }
.scard__name a:hover { text-decoration: underline; text-underline-offset: 4px; }
.scard__desc { margin: 0; color: var(--ink-muted); font-size: 15px; }
.scard__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--ink-muted); font-size: 14px; }
.scard__meta b { color: var(--ink); font-variant-numeric: tabular-nums; }
.scard__foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.by { color: var(--ink-muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Featured community question ---------- */
.feature { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 48px; box-shadow: var(--shadow-card); }
.feature__copy .sec__title { font-size: clamp(30px, 3.4vw, 48px); }
.feature__meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px; color: var(--ink-muted); font-size: 14px; }
.feature__meta b { color: var(--ink); }
.feature .poll { box-shadow: none; background: var(--canvas); }
@media (max-width: 960px) { .feature { grid-template-columns: 1fr; padding: 28px; gap: 28px; } }

/* ---------- Community pulse ---------- */
.pulse { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; align-items: start; }
.pulse__list { display: grid; gap: 12px; }
.pulse__item { display: grid; gap: 8px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); text-decoration: none; transition: border-color var(--ease); }
.pulse__item:hover { border-color: var(--ink); }
.pulse__q { font-weight: 700; line-height: 1.3; }
.pulse__lead { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-muted); }
.pulse__lead b { color: var(--ink); font-variant-numeric: tabular-nums; }
.pulse__bar { flex: 1; height: 8px; border-radius: var(--radius-pill); background: var(--surface-soft); overflow: hidden; }
.pulse__bar i { display: block; height: 100%; width: var(--w); background: var(--gib-coral); border-radius: inherit; }
@media (max-width: 960px) { .pulse { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */
.cta { margin: 96px 0; background: var(--ink); color: #fff; border-radius: var(--radius-xl); padding: 56px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.cta__mark { position: absolute; right: -40px; bottom: -60px; width: 260px; opacity: .08; pointer-events: none; }
.cta__title { margin: 0; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.04; font-weight: 800; letter-spacing: -.035em; }
.cta__title em { font-style: normal; color: var(--gib-coral); }
.cta__sub { margin: 16px 0 0; color: rgba(255,255,255,.76); font-size: 17px; }
.cta__acts { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; position: relative; z-index: 1; }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; padding: 32px; margin: 64px 0; } .cta__acts { justify-content: flex-start; } }

/* ---------- Pages ---------- */
.page { padding: 56px 0 72px; }
.page__head { margin-bottom: 32px; }
.page__title { margin: 0; font-size: clamp(38px, 5vw, 64px); line-height: 1.02; font-weight: 800; letter-spacing: -.04em; }
.page__title em { font-style: normal; color: var(--gib-coral); }
.page__sub { margin: 14px 0 0; color: var(--ink-muted); font-size: 18px; max-width: 40em; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 18px; }
.tabs { display: inline-flex; background: var(--surface-soft); border: 1px solid var(--border); border-radius: var(--radius-btn); padding: 4px; }
.tabs button, .tabs a { display: inline-flex; align-items: center; text-decoration: none; border: 0; background: none; padding: 9px 18px; min-height: 38px; border-radius: 10px; font-weight: 600; font-size: 14px; cursor: pointer; color: var(--ink-muted); }
.tabs a[aria-selected="true"], .tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(22,22,29,.12); }
.search { flex: 1; min-width: 200px; position: relative; display: block; }
.search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--ink-muted); stroke-width: 2; stroke-linecap: round; }
.search input { width: 100%; height: 46px; padding: 0 16px 0 42px; border: 1px solid var(--border-strong); border-radius: var(--radius-btn); background: var(--surface); }
.sort select { height: 46px; padding: 0 36px 0 16px; border: 1px solid var(--border-strong); border-radius: var(--radius-btn); background: var(--surface); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--ink-muted); margin-bottom: 20px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.pollpage { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.pollpage__meta { margin: 18px 4px 0; color: var(--ink-muted); font-size: 14px; }
.pollpage__meta a { color: var(--gib-action); font-weight: 600; }
.pollpage__fine { margin: 6px 4px 0; color: var(--ink-muted); font-size: 13px; }
.pollpage__side { display: grid; gap: 12px; }
.pollpage__side .sec__title { margin-top: 0; }
.mini { display: grid; gap: 8px; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); text-decoration: none; transition: border-color var(--ease); }
.mini:hover { border-color: var(--ink); }
.mini .tag { justify-self: start; }
.mini span:last-child { color: var(--ink-muted); font-size: 13px; }
.sidecta { margin-top: 8px; padding: 22px; border-radius: var(--radius-lg); background: var(--coral-soft); display: grid; gap: 6px; justify-items: start; }
.sidecta p { margin: 0 0 8px; color: var(--ink); font-size: 14px; }
@media (max-width: 960px) { .pollpage { grid-template-columns: 1fr; } }
.banner { margin: 0 0 16px; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--gold-soft); border: 1px solid #F1DE9E; color: var(--ink); font-size: 14px; }

.how { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.how__card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.how__card h2 { margin: 14px 0 8px; font-size: 22px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
.how__card p { margin: 0; color: var(--ink-muted); }
.how__n { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--coral-soft); color: var(--ink); font-weight: 800; }
@media (max-width: 720px) { .how { grid-template-columns: 1fr; } }
.faq { margin-top: 56px; max-width: 800px; }
.faq .sec__title { margin-bottom: 16px; }
.faq details { border-top: 1px solid var(--border); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; min-height: 28px; }
.faq details p { margin: 10px 0 0; color: var(--ink-muted); }
.prose { max-width: 780px; }
.prose h2 { font-size: 24px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; margin: 36px 0 10px; }
.prose p, .prose li { color: var(--ink-muted); font-size: 17px; }
.prose a { color: var(--gib-action); font-weight: 600; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 32px 0; }
.values div { padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.values b { display: block; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.values span { color: var(--ink-muted); font-size: 15px; }
@media (max-width: 720px) { .values { grid-template-columns: 1fr; } }

/* ---------- Auth ---------- */
.authp { padding: 56px 0 88px; display: grid; place-items: center; }
.authp--split { grid-template-columns: 1fr 460px; gap: 72px; align-items: center; place-items: center stretch; }
.authp__pitch .ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; font-size: 17px; color: var(--ink); }
.ticks li { display: flex; gap: 12px; align-items: center; }
.ticks li::before { content: "✓"; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--mint-soft); color: var(--ok); font-weight: 700; font-size: 13px; flex: none; }
@media (max-width: 960px) { .authp--split { grid-template-columns: 1fr; gap: 32px; } }
.authcard { width: min(460px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 36px; box-shadow: var(--shadow-card); display: grid; gap: 16px; }
.authcard__logo { justify-self: start; margin-bottom: 4px; }
.authcard__title { margin: 0; font-size: 30px; line-height: 1.1; font-weight: 800; letter-spacing: -.03em; }
.authcard__sub { margin: -8px 0 4px; color: var(--ink-muted); }
.authcard__alt { margin: 4px 0 0; text-align: center; color: var(--ink-muted); font-size: 15px; }
.authcard__alt a, .check a, .field__row a { color: var(--gib-action); font-weight: 600; }
.field { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.field__row { display: flex; justify-content: space-between; gap: 10px; }
.field__row a { font-weight: 500; }
.field__hint { color: var(--ink-muted); font-weight: 400; }
.field input { height: 50px; padding: 0 14px; border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); font-weight: 400; font-size: 16px; transition: border-color var(--ease), box-shadow var(--ease); }
.field input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(22,22,29,.08); }
.check { display: flex; gap: 10px; align-items: start; font-size: 14px; color: var(--ink-muted); }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--gib-action); flex: none; }
.note { margin: 0; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 14px; }
.note--err { background: #FDECEB; color: var(--err); }
.note--ok { background: var(--mint-soft); color: var(--ok); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.ftr { border-top: 1px solid var(--border); background: var(--surface); }
.ftr__in { display: grid; grid-template-columns: 1.2fr 2fr; gap: 48px; padding: 56px 0 36px; }
.ftr .logo-img { height: 50px; width: auto; }
.ftr__line { margin: 18px 0 6px !important; color: var(--ink) !important; font-weight: 700; font-size: 17px !important; }
.ftr__brand p { color: var(--ink-muted); max-width: 30em; margin: 0; font-size: 15px; }
.ftr__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ftr__cols a { display: block; text-decoration: none; color: var(--ink-muted); padding: 6px 0; font-size: 15px; }
.ftr__cols a:hover { color: var(--ink); }
.ftr__h { margin: 0 0 8px; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .09em; color: var(--ink); }
.ftr__legal { padding: 20px 0 32px; border-top: 1px solid var(--border); color: var(--ink-muted); font-size: 13px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
@media (max-width: 820px) { .ftr__in { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .ftr__cols { grid-template-columns: 1fr 1fr; } }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 80; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Entrance motion (GSAP adds .js-motion; content is visible without it) ---------- */
.js-motion [data-reveal] { opacity: 0; transform: translateY(16px); }
@media (prefers-reduced-motion: reduce) { .js-motion [data-reveal] { opacity: 1; transform: none; } }

/* ==========================================================================
   Homepage v3: illustrated, warmer layout (spot illustrations, Rock scene,
   doodles, stat cards with real sparklines).
   ========================================================================== */
.home { position: relative; overflow-x: clip; }
.home::before { content: ""; position: absolute; z-index: -1; left: -260px; top: -200px; width: 640px; height: 640px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 225, 220, .7), transparent 68%); pointer-events: none; }
.chip--on { background: var(--gib-action); border-color: var(--gib-action); color: #fff; }
.chip--on:hover { border-color: var(--gib-action-hover); background: var(--gib-action-hover); }

/* Header search */
.hsearch { position: relative; }
.hsearch__btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface); cursor: pointer; }
.hsearch__btn:hover { border-color: var(--ink); }
.hsearch__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.hsearch__pop { position: absolute; right: 0; top: calc(100% + 10px); width: min(380px, 86vw); display: flex; gap: 8px; padding: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-card); z-index: 50; }
.hsearch__pop input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); }
@media (max-width: 520px) { .hsearch { display: none; } }

/* Hero doodles */
.hero__title { position: relative; }
.scribble { position: relative; display: inline-block; }
.scribble svg { position: absolute; left: -2%; right: -2%; bottom: -.12em; width: 104%; height: .32em; overflow: visible; }
.scribble path { fill: none; stroke: var(--gib-coral); stroke-width: 5; stroke-linecap: round; opacity: .9; }
.scribble path + path { stroke: var(--gib-gold); stroke-width: 3; opacity: .8; }
.hero__spark { display: inline-block; width: .5em; height: .5em; vertical-align: top; margin-left: .08em; }
.hero__spark svg, .hero__dashes svg, .cta__dashes svg { width: 100%; height: 100%; fill: none; stroke: var(--gib-gold); stroke-width: 4; stroke-linecap: round; }
.hero__ctas .btn span[aria-hidden] { transition: transform var(--ease); }
.hero__ctas .btn:hover span[aria-hidden] { transform: translateX(3px); }

/* Hero scene: the Rock behind the featured poll */
.hero__poll { position: relative; padding: 8px 120px 8px 0; }
.hero__scene { position: absolute; z-index: -1; right: -250px; top: -50px; bottom: -50px; width: 460px; }
.hero__rock { width: 100%; height: 100%; border-radius: 46% 54% 42% 58% / 52% 38% 62% 48%; display: block; box-shadow: 0 30px 60px -30px rgba(22,22,29,.25); }
.hero__dashes { position: absolute; left: -10px; top: 0; width: 44px; height: 44px; }
.hero__poll > .poll, .hero__poll > div > .poll { position: relative; }
@media (max-width: 1180px) { .hero__poll { padding-right: 60px; } .hero__scene { right: -120px; width: 340px; } }
@media (max-width: 960px) { .hero__poll { padding: 0; } .hero__scene { display: none; } }

/* Poll kebab menu */
.kebab { position: relative; margin-left: auto; }
.kebab__btn { width: 36px; height: 36px; display: grid; place-items: center; border: 0; background: none; border-radius: 10px; cursor: pointer; color: var(--ink-muted); }
.kebab__btn:hover { background: var(--surface-soft); color: var(--ink); }
.kebab__btn svg { width: 20px; height: 20px; fill: currentColor; }
.kebab__menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; width: 220px; display: grid; padding: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-card); }
.kebab__menu a, .kebab__menu button { text-align: left; padding: 10px 12px; border: 0; background: none; border-radius: 8px; font-size: 14px; text-decoration: none; cursor: pointer; }
.kebab__menu a:hover, .kebab__menu button:hover { background: var(--surface-soft); }

/* Spot illustrations in cards */
.poll { position: relative; }
.poll__art { position: absolute; top: 14px; right: 14px; width: 84px; height: 84px; pointer-events: none; }
.poll--art .poll__top, .poll--art .poll__q { padding-right: 88px; }
.poll--art .poll__q { min-height: 52px; }
.poll__acts a, .poll__acts button { display: inline-flex; align-items: center; white-space: nowrap; }
.poll__acts svg { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; vertical-align: -3px; margin-right: 4px; }
.poll__note--ok { display: flex; align-items: center; gap: 8px; }
.poll__ok { width: 20px; height: 20px; flex: none; fill: var(--ok); stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.scard { position: relative; }
.scard__art { position: absolute; top: 16px; right: 16px; width: 76px; height: 76px; pointer-events: none; }
.scard__top, .scard__name { padding-right: 84px; }
.scard--feature .scard__art { width: 120px; height: 120px; top: 24px; right: 24px; }
.scard--feature .scard__top, .scard--feature .scard__name { padding-right: 132px; }
.scard__meta span { display: inline-flex; align-items: center; gap: 6px; }
.scard__meta svg { width: 16px; height: 16px; fill: none; stroke: var(--ink-muted); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* Stat cards with real sparklines */
.statgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
.statcard { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-items: center; gap: 4px 14px; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.statcard__icon { grid-row: span 2; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; }
.statcard__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.statcard__icon--coral { background: var(--coral-soft); } .statcard__icon--coral svg { stroke: var(--gib-action); }
.statcard__icon--lavender { background: #E9E2FF; }
.statcard__icon--gold { background: var(--gold-soft); }
.statcard__icon--mint { background: var(--mint-soft); }
.statcard__text { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.statcard__text b { font-size: clamp(26px, 2.4vw, 32px); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.statcard__text span { color: var(--ink-muted); font-size: 14px; }
.statcard__trend { display: flex; align-items: center; gap: 10px; }
.statcard__trend small { color: var(--ink-muted); font-size: 12px; white-space: nowrap; }
.spark { width: 88px; height: 26px; flex: none; overflow: visible; }
.spark__area { fill: var(--coral-soft); opacity: .7; }
.spark__line { fill: none; stroke: var(--gib-coral); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
@media (max-width: 1040px) { .statgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .statgrid { gap: 10px; }
  .statcard { grid-template-columns: 1fr; padding: 16px; gap: 8px; }
  .statcard__icon { grid-row: auto; width: 40px; height: 40px; border-radius: 12px; }
  .statcard__icon svg { width: 20px; height: 20px; }
  .statcard__trend small { display: none; }
  .spark { width: 100%; }
}

/* Section icons */
.sec__title--icon { display: flex; align-items: center; gap: 14px; }
.sec__icon { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 14px; background: var(--gib-coral); }
.sec__icon svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Soft coral panel for surveys */
.panel-soft { padding: 40px; border-radius: var(--radius-xl); background: linear-gradient(160deg, #FFF0EC 0%, #FDF5F1 60%, var(--canvas) 100%); border: 1px solid #F8DDD6; }
@media (max-width: 640px) { .panel-soft { padding: 22px 16px; border-radius: var(--radius-lg); } }

/* Featured question art */
.feature__copy { position: relative; }
.feature__art { width: 140px; height: 140px; margin-top: 24px; }

/* Latest results showcase */
.showcase { display: grid; grid-template-columns: 1.1fr .9fr; gap: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-card); overflow: hidden; }
.showcase .poll { border: 0; box-shadow: none; border-radius: 0; }
.showcase__art { display: grid; place-items: center; background: linear-gradient(160deg, var(--gold-soft), var(--coral-soft)); padding: 32px; }
.showcase__illo { width: min(300px, 80%); height: auto; aspect-ratio: 1; filter: drop-shadow(0 18px 30px rgba(22,22,29,.12)); }
.pulse__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.pulse__item { position: relative; padding-right: 76px; }
.pulse__art { position: absolute; right: 12px; top: 12px; width: 56px; height: 56px; }
@media (max-width: 960px) { .showcase { grid-template-columns: 1fr; } .showcase__art { display: none; } .pulse__list { grid-template-columns: 1fr; } }

/* CTA glow + doodle */
.cta { background: radial-gradient(120% 140% at 0% 0%, rgba(255, 59, 48, .38), transparent 46%), radial-gradient(60% 90% at 100% 100%, rgba(255, 59, 48, .18), transparent 60%), var(--ink); }
.cta__dashes { position: absolute; right: 28px; top: 20px; width: 48px; height: 48px; }

/* Footer extras */
.socials { display: flex; gap: 8px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--border-strong); color: var(--ink); }
.socials a:hover { border-color: var(--ink); }
.socials svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ftr { position: relative; }
.ftr__rockwrap { display: flex; justify-content: flex-end; margin-top: -24px; color: var(--ink); opacity: .22; pointer-events: none; }
.ftr__rock { width: min(420px, 70%); height: auto; }

/* ==========================================================================
   Social layer: mobile tab bar, reels feed, comments, saved polls
   ========================================================================== */

/* ---------- Mobile bottom tabs ---------- */
.tabbar { display: none; }
@media (max-width: 900px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; height: calc(64px + env(safe-area-inset-bottom)); padding: 4px 6px env(safe-area-inset-bottom); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: saturate(1.4) blur(14px); border-top: 1px solid var(--border); }
  .tabbar__item { display: grid; justify-items: center; align-content: center; gap: 3px; text-decoration: none; color: var(--ink-muted); font-size: 11px; font-weight: 600; min-height: 56px; border-radius: 12px; }
  .tabbar__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar__item[aria-current] { color: var(--gib-action); }
  .tabbar__item[aria-current] .tabbar__icon svg { stroke-width: 2.4; }
  .tabbar__item--feed .tabbar__icon { display: grid; place-items: center; width: 46px; height: 34px; border-radius: 12px; background: var(--gib-action); color: #fff; margin-bottom: -1px; }
  .tabbar__item--feed .tabbar__icon svg { width: 22px; height: 22px; }
  .tabbar__item--feed[aria-current] { color: var(--ink); }
  .mnav .btn { display: none; }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
}

/* ---------- Immersive pages (feed) ---------- */
.is-immersive .ftr { display: none; }
.is-immersive main { min-height: 0; }
@media (max-width: 900px) {
  .is-immersive .hdr { display: none; }
  .is-immersive { padding-bottom: 0; }
}

/* ---------- Reels feed ---------- */
.feed { position: relative; }
.reels { height: calc(100dvh - 73px); overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior-y: contain; scrollbar-width: none; display: grid; justify-items: center; gap: 0; padding: 0; }
.reels::-webkit-scrollbar { display: none; }
.reel { position: relative; isolation: isolate; width: min(520px, 100%); height: calc(100dvh - 73px); scroll-snap-align: start; scroll-snap-stop: always; display: flex; align-items: center; padding: 20px 84px 20px 20px; overflow: hidden; }
.reel::before { content: ""; position: absolute; z-index: -2; inset: 12px 0; border-radius: var(--radius-xl); background: linear-gradient(170deg, var(--tint, var(--coral-soft)) 0%, color-mix(in srgb, var(--tint, var(--coral-soft)) 45%, var(--canvas)) 62%, var(--canvas) 100%); border: 1px solid var(--border); }
.reel__art { position: absolute; z-index: -1; right: -20px; top: 2%; width: 62%; max-width: 300px; height: auto; aspect-ratio: 1; opacity: .5; pointer-events: none; }
.reel__inner { width: 100%; display: grid; gap: 14px; }
.reel__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tag--on-tint { background: rgba(255, 255, 255, .78); }
.reel__by { margin: -4px 0 0; color: var(--ink-muted); font-size: 14px; }
.reel__by b { color: var(--ink); }
.reel__q { margin: 0; font-size: clamp(28px, 7vw, 38px); line-height: 1.08; font-weight: 800; letter-spacing: -.035em; text-wrap: balance; }
.reel__sub { margin: 0; color: var(--ink-muted); font-size: 16px; }
.reel__opts { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.opt--reel { min-height: 56px; font-size: 16px; font-weight: 600; background: rgba(255, 255, 255, .92); border-color: rgba(22, 22, 29, .14); box-shadow: 0 6px 18px -12px rgba(22, 22, 29, .35); }
.opt--reel.opt--static { background: rgba(255, 255, 255, .82); }
.reel__foot { margin: 6px 0 0; display: flex; justify-content: space-between; gap: 12px; color: var(--ink-muted); font-size: 14px; }
.reel__foot b { color: var(--ink); }
.reel__foot a { color: var(--gib-action); font-weight: 600; text-decoration: none; }
.reel--empty, .reel--end { padding-right: 20px; }
.reel--end .reel__inner, .reel--empty .reel__inner { text-align: center; justify-items: center; }
.reel__endacts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.reels__more { height: 120px; display: grid; place-items: center; scroll-snap-align: end; }
.reels__spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--gib-action); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.reels__hint { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); margin: 0; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--radius-pill); background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; pointer-events: none; }
.reels__hint svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; animation: nudge 1.4s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .reels__hint svg, .reels__spinner { animation: none; } }

/* Action rail */
.rail { position: absolute; right: 14px; bottom: 15%; display: grid; gap: 14px; justify-items: center; }
.rail__item { display: grid; justify-items: center; gap: 3px; border: 0; background: none; padding: 0; cursor: pointer; color: var(--ink); font: inherit; }
.rail__btn { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); box-shadow: 0 8px 20px -10px rgba(22, 22, 29, .45); border: 1px solid var(--border); transition: transform var(--ease), background var(--ease); }
.rail__item:hover .rail__btn { transform: scale(1.06); }
.rail__item:active .rail__btn { transform: scale(.94); }
.rail__btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.rail__item--stat .rail__btn { background: var(--gib-action); border-color: var(--gib-action); color: #fff; cursor: default; }
.rail__item--stat:hover .rail__btn { transform: none; }
.rail__item.is-on .rail__btn { background: var(--ink); border-color: var(--ink); color: #fff; }
.rail__item.is-on .rail__btn svg { fill: currentColor; }
.rail__n { font-size: 14px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.rail__l { font-size: 11px; font-weight: 600; color: var(--ink-muted); line-height: 1; }

@media (max-width: 900px) {
  .reels { height: calc(100dvh - 64px - env(safe-area-inset-bottom)); }
  .reel { height: calc(100dvh - 64px - env(safe-area-inset-bottom)); padding: 16px 76px 16px 16px; }
  .reel::before { inset: 0; border-radius: 0; border: 0; }
  .rail { right: 10px; bottom: 12%; gap: 12px; }
  .rail__btn { width: 48px; height: 48px; }
  .reels__hint { bottom: 16px; }
}

/* Bottom sheet */
.sheet { position: fixed; inset: 0; z-index: 80; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(22, 22, 29, .45); }
.sheet__panel { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: min(560px, 100%); height: min(78dvh, 720px); display: flex; flex-direction: column; background: var(--surface); border-radius: 24px 24px 0 0; box-shadow: 0 -20px 50px rgba(22, 22, 29, .25); padding-bottom: env(safe-area-inset-bottom); }
.sheet__grab { width: 44px; height: 5px; border-radius: 3px; background: var(--border-strong); margin: 10px auto 0; flex: none; }
.sheet-enter { transition: transform .28s cubic-bezier(.2, .8, .2, 1); }
.sheet-from { transform: translate(-50%, 100%); }

/* ---------- Comments ---------- */
.comments { display: flex; flex-direction: column; min-height: 0; }
.comments--sheet { flex: 1; }
.pollpage__comments { margin-top: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.comments__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 10px; border-bottom: 1px solid var(--border); }
.comments__title { margin: 0; font-size: 17px; font-weight: 700; }
.comments__close { width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: var(--surface-soft); border-radius: 50%; cursor: pointer; }
.comments__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.comments__list { padding: 14px 20px; display: grid; gap: 16px; align-content: start; }
.comments--sheet .comments__list { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.comments__empty { margin: 8px 0; color: var(--ink-muted); text-align: center; padding: 24px 0; }
.comments__more { justify-self: center; }
.cmt { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; }
.cmt__av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--av, var(--coral-soft)); color: var(--ink); font-size: 13px; font-weight: 700; flex: none; }
.cmt__av--sm { width: 30px; height: 30px; font-size: 11px; }
.cmt__main { min-width: 0; }
.cmt__bubble { display: inline-block; max-width: 100%; padding: 9px 14px; border-radius: 18px; background: var(--surface-soft); }
.cmt__name { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.cmt__badge { padding: 1px 7px; border-radius: 999px; background: var(--coral-soft); font-size: 11px; font-weight: 700; }
.cmt__body { margin: 2px 0 0; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.cmt__at { color: var(--gib-action); }
.cmt__meta { display: flex; gap: 14px; align-items: center; padding: 4px 6px 0; font-size: 12.5px; color: var(--ink-muted); }
.cmt__meta button { border: 0; background: none; padding: 4px 0; font: inherit; font-weight: 700; color: var(--ink-muted); cursor: pointer; }
.cmt__meta button:hover { color: var(--ink); text-decoration: underline; }
.cmt__replies { display: grid; gap: 10px; margin-top: 10px; }
.cmt__more { justify-self: start; border: 0; background: none; padding: 2px 0 2px 40px; font: inherit; font-size: 13px; font-weight: 700; color: var(--ink-muted); cursor: pointer; }
.cmt__more:hover { color: var(--ink); }
.comments__compose { border-top: 1px solid var(--border); padding: 10px 14px 12px; background: var(--surface); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.compose { display: flex; align-items: flex-end; gap: 10px; }
.compose textarea { flex: 1; min-height: 42px; max-height: 140px; resize: none; padding: 10px 14px; border: 1.5px solid var(--border-strong); border-radius: 21px; font-size: 15px; line-height: 1.4; background: var(--canvas); }
.compose textarea:focus { outline: none; border-color: var(--ink); background: var(--surface); }
.compose__send { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--gib-action); color: #fff; cursor: pointer; }
.compose__send:hover { background: var(--gib-action-hover); }
.compose__send svg { width: 18px; height: 18px; fill: currentColor; }
.compose__replying { margin: 0 0 8px; font-size: 13px; color: var(--ink-muted); }
.compose__replying button { border: 0; background: none; font: inherit; font-weight: 700; color: var(--gib-action); cursor: pointer; margin-left: 6px; }
.compose__err { margin: 6px 0 0; color: var(--err); font-size: 13px; }
.compose--guest { flex-wrap: wrap; align-items: center; justify-content: center; text-align: center; gap: 8px; }
.compose--guest p { margin: 0 0 4px; width: 100%; font-weight: 600; }

/* ---------- Poll card additions ---------- */
.poll__save { color: var(--ink-muted) !important; }
.poll__save svg { margin: 0 !important; }
.poll__save.is-saved { color: var(--ink) !important; }
.poll__save.is-saved svg { fill: currentColor; }
.poll__cm { color: var(--ink-muted); font-weight: 600; }
.feedlink { display: flex; align-items: center; gap: 14px; margin-top: 20px; padding: 16px 18px; border-radius: var(--radius-md); background: var(--ink); color: #fff; text-decoration: none; }
.feedlink svg { width: 28px; height: 28px; flex: none; fill: none; stroke: var(--gib-coral); stroke-width: 2; stroke-linejoin: round; }
.feedlink span:nth-child(2) { flex: 1; display: grid; }
.feedlink small { color: rgba(255,255,255,.7); }

/* ---------- Me page ---------- */
.me__head { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-bottom: 28px; }
.me__av { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--av); font-size: 24px; font-weight: 800; }
.me__name { font-size: clamp(30px, 4vw, 44px); }
.me__head .page__sub { margin-top: 4px; font-size: 15px; }
.me__acts { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.me__tabs { margin-bottom: 24px; }
.me__count { margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: var(--surface-soft); font-size: 12px; }
.mycomments { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.mycomments li { padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); }
.mycomments a { text-decoration: none; }
.mycomments p { margin: 6px 0; color: var(--ink); }
.mycomments small { color: var(--ink-muted); }
@media (max-width: 640px) { .me__acts { margin-left: 0; } }

.hint--keys { display: none; }
@media (hover: hover) and (pointer: fine) { .hint--keys { display: inline; } .hint--touch { display: none; } }

/* ---------- Comment reactions ---------- */
.cmt__bubble { position: relative; }
.cmt__reacts { position: absolute; right: -6px; bottom: -12px; display: inline-flex; align-items: center; gap: 1px; padding: 2px 7px 2px 4px; border-radius: 999px; background: var(--surface); box-shadow: 0 2px 8px rgba(22, 22, 29, .14); font-size: 12px; line-height: 1.2; }
.cmt__reacts i { font-style: normal; font-size: 13px; margin-right: -2px; }
.cmt__reacts b { margin-left: 5px; font-weight: 600; color: var(--ink-muted); }
.cmt__bubble:has(.cmt__reacts) { margin-bottom: 8px; }
.react { position: relative; display: inline-flex; align-items: center; gap: 2px; }
.react__btn { border: 0; background: none; padding: 4px 0; font: inherit; font-weight: 700; color: var(--ink-muted); cursor: pointer; }
.react__btn:hover { color: var(--ink); text-decoration: underline; }
.react__btn--like, .react__btn--love, .react__btn--angry { color: var(--gib-action); }
.react__btn--haha, .react__btn--wow, .react__btn--sad { color: #8A5A00; }
.react__more { width: 24px; height: 24px; display: grid; place-items: center; border: 0; background: none; border-radius: 50%; color: var(--ink-muted); cursor: pointer; }
.react__more:hover { background: var(--surface-soft); color: var(--ink); }
.react__more svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.react__pick { position: absolute; z-index: 30; left: -6px; bottom: calc(100% + 6px); display: flex; gap: 2px; padding: 5px 6px; border-radius: 999px; background: var(--surface); box-shadow: 0 10px 28px rgba(22, 22, 29, .2); border: 1px solid var(--border); }
.react__pick button { width: 38px; height: 38px; display: grid; place-items: center; border: 0; background: none; border-radius: 50%; font-size: 22px; cursor: pointer; transition: transform var(--ease); }
.react__pick button:hover { transform: scale(1.25) translateY(-2px); }
.react__pick button.is-on { background: var(--coral-soft); }
@media (prefers-reduced-motion: reduce) { .react__pick button:hover { transform: none; } }

/* ---- Motion: GSAP drives the results reveal, so the CSS fallback steps aside ---- */
.js-motion .opt__bar, .js-motion .poll--voted .opt__bar { animation: none; transition: none; }
.opt__pct { display: inline-block; transform-origin: right center; }
@keyframes pop { 0% { transform: scale(.7); } 55% { transform: scale(1.18); } 100% { transform: scale(1); } }
.rail__item.is-on .rail__btn { animation: pop .38s cubic-bezier(.2, .9, .3, 1.4); }
.react__btn--like, .react__btn--love, .react__btn--haha, .react__btn--wow, .react__btn--sad, .react__btn--angry { display: inline-block; animation: pop .34s cubic-bezier(.2, .9, .3, 1.4); }
@media (prefers-reduced-motion: reduce) { .rail__item.is-on .rail__btn, [class*="react__btn--"] { animation: none; } }

/* ---- Feed: "..." menu, why you're seeing this, not interested ---- */
.reel__menu { position: relative; margin-left: auto; }
.reel__more { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .78); color: var(--ink); cursor: pointer; }
.reel__more:hover { background: #fff; }
.reel__more svg { width: 18px; height: 18px; fill: currentColor; }
.pop { position: absolute; z-index: 40; right: 0; top: calc(100% + 8px); width: min(280px, 78vw); padding: 6px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 16px 40px rgba(22, 22, 29, .18); display: grid; gap: 2px; }
.pop__why { display: grid; gap: 2px; padding: 10px 12px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--border); font-size: 14px; font-weight: 600; color: var(--ink); }
.pop__eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-muted); }
.pop__item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); text-align: left; cursor: pointer; }
.pop__item:hover { background: var(--surface-soft); }
.pop__item svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.reel--hidden .reel__inner, .reel--hidden .rail, .reel--hidden .reel__art { opacity: .18; filter: grayscale(1); pointer-events: none; transition: opacity .3s, filter .3s; }
.reel__hidden { position: absolute; z-index: 5; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(320px, 86%); padding: 18px 20px; border-radius: 18px; background: var(--surface); box-shadow: 0 18px 44px rgba(22, 22, 29, .2); text-align: center; display: grid; gap: 12px; justify-items: center; }
.reel__hidden p { margin: 0; font-size: 15px; color: var(--ink); }

/* ---- "For you" row on the homepage ---- */
.foryou { display: grid; gap: 8px; align-content: start; }
.foryou__why { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-muted); }
.foryou__why svg { width: 14px; height: 14px; fill: var(--gib-coral); }
.topics { display: flex; flex-wrap: wrap; gap: 8px; }
.me__feed { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.me__feedtitle { margin: 0 0 4px; font-size: 17px; font-weight: 800; }
.me__feedsub { margin: 0 0 10px; color: var(--ink-muted); font-size: 14px; max-width: 56ch; }
.me__feedacts { display: flex; flex-wrap: wrap; gap: 8px; }
.reel--round .reel__inner { text-align: center; justify-items: center; }
.reel__roundicon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: var(--coral-soft); color: var(--gib-action); }
.reel__roundicon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Surveys you've already taken */
.tag--done { display: inline-flex; align-items: center; gap: 4px; background: var(--mint-soft); color: #11603A; }
.tag--done svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.scard--taken .scard__name a { color: var(--ink-muted); }
.scard__done { font-size: 13px; font-weight: 600; color: var(--ink-muted); }

/* ---- Notifications ---- */
.bell { position: relative; }
.bell__btn { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer; }
.bell__btn:hover { border-color: var(--ink); }
.bell__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.bell__n { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--gib-action); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--surface); }
.bell__panel { position: absolute; z-index: 60; right: 0; top: calc(100% + 10px); width: min(380px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-card); overflow: hidden; }
.bell__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px; }
.bell__head button, .link-btn { border: 0; background: none; padding: 0; font: inherit; font-size: 13px; font-weight: 600; color: var(--gib-action); cursor: pointer; }
.link-btn:hover, .bell__head button:hover { text-decoration: underline; }
.bell__list { max-height: min(60vh, 460px); overflow-y: auto; padding: 0 6px 6px; }
.bell__empty { margin: 0; padding: 18px 12px 22px; color: var(--ink-muted); font-size: 14px; }
.bell__all { display: block; padding: 12px; border-top: 1px solid var(--border); text-align: center; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; }
.bell__all:hover { background: var(--surface-soft); }
.note { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 10px; border-radius: 12px; color: var(--ink); text-decoration: none; }
.note:hover { background: var(--surface-soft); }
.note--unread { background: #FFF6F5; }
.note__av, .note__icon { position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 800; background: var(--av, var(--surface-soft)); color: var(--ink); }
.note__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.note__kind { position: absolute; right: -3px; bottom: -3px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; box-shadow: 0 0 0 2px var(--surface); }
.note__kind svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.note__icon.note__kind--milestone, .note__icon.note__kind--closed { background: var(--gold-soft); }
.note__icon.note__kind--report { background: var(--coral-soft); color: var(--gib-action); }
.note__kind--reaction, .note__kind--follow { background: var(--gib-action); }
.note__main { flex: 1; min-width: 0; display: grid; gap: 3px; }
.note__text { font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.note__time { font-size: 12px; color: var(--ink-muted); }
.note__dot { flex: none; width: 9px; height: 9px; margin-top: 6px; border-radius: 50%; background: var(--gib-action); }
.notes { max-width: 720px; }
.notes__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.notes__group { margin-bottom: 20px; }
.notes__label { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.notes__list { display: grid; gap: 2px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 6px; }
.tabbar__icon { position: relative; }
.tabbar__dot { position: absolute; top: -2px; right: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--gib-action); box-shadow: 0 0 0 2px var(--surface); display: none; }
.tabbar__dot.is-on { display: block; }
@media (max-width: 640px) { .bell__btn { width: 38px; height: 38px; } }

/* ---- Profiles and following ---- */
.profile__head { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 22px; margin-bottom: 26px; }
.profile__av { flex: none; width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; background: var(--av); font-size: 34px; font-weight: 800; }
.profile__who { flex: 1; min-width: 220px; }
.profile__name { margin: 0; }
.profile__handle { margin: 4px 0 0; color: var(--ink-muted); font-size: 15px; }
.profile__bio { margin: 10px 0 0; font-size: 16px; max-width: 60ch; }
.profile__stats { display: flex; gap: 26px; margin: 16px 0 0; }
.profile__stats div { display: flex; flex-direction: column-reverse; }
.profile__stats dt { font-size: 13px; color: var(--ink-muted); }
.profile__stats dd { margin: 0; font-size: 22px; font-weight: 800; }
.profile__acts { display: flex; align-items: center; gap: 8px; }
.reel__more--line { border: 1px solid var(--border); background: var(--surface); }
.follow__btn .follow__off { display: none; }
.follow__btn.is-on:hover .follow__on { display: none; }
.follow__btn.is-on:hover .follow__off { display: inline; }
.reel__by a { color: inherit; text-decoration: none; }
.reel__by a:hover b { text-decoration: underline; }
.reel__follow { margin-left: 6px; padding: 3px 10px; border: 1.5px solid var(--gib-action); border-radius: 999px; background: var(--gib-action); color: #fff; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.reel__follow.is-on { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.cmt__name a { color: inherit; text-decoration: none; }
.cmt__name a:hover { text-decoration: underline; }
.by a, .pollpage__meta a { color: inherit; }
.feedtabs { position: absolute; z-index: 20; top: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .82); backdrop-filter: blur(8px); box-shadow: 0 4px 16px rgba(22, 22, 29, .08); }
.feedtabs a { padding: 7px 16px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--ink-muted); text-decoration: none; }
.feedtabs a[aria-current="page"] { background: var(--ink); color: #fff; }
.suggest { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 8px; width: min(420px, 100%); text-align: left; }
.suggest li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.suggest__who { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-width: 0; }
.suggest__who b { display: block; font-size: 15px; }
.suggest__who small { color: var(--ink-muted); }
.suggest__av { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--av); font-weight: 800; font-size: 13px; }
.me__bio { margin: 6px 0 0; }
.me__edit { margin-bottom: 20px; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); display: grid; gap: 14px; }
.me__fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.me__fields label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.me__fields input, .me__fields textarea { width: 100%; padding: 11px 12px; border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm); font: inherit; font-weight: 400; background: var(--surface); }
.me__fields small { color: var(--ink-muted); font-weight: 400; }
.me__wide { grid-column: 1 / -1; }
.me__at { display: flex; align-items: center; }
.me__at i { font-style: normal; padding: 0 8px 0 2px; color: var(--ink-muted); }
.field-err { color: var(--err); font-size: 13px; font-weight: 500; }

/* ---- Reporting ---- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(22, 22, 29, .45); }
.modal__panel { position: relative; width: min(480px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 22px; border-radius: 20px; background: var(--surface); box-shadow: 0 24px 60px rgba(22, 22, 29, .25); }
.modal__title, .modal__done h2 { margin: 0 0 4px; font-size: 20px; font-weight: 800; }
.modal__sub { margin: 0 0 14px; color: var(--ink-muted); font-size: 14px; }
.modal__reasons { display: grid; gap: 6px; margin-bottom: 14px; }
.reason { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 12px; font-size: 15px; cursor: pointer; }
.reason input { accent-color: var(--gib-action); }
.reason.is-on { border-color: var(--ink); }
.modal__label { display: block; margin: 4px 0 6px; font-size: 14px; font-weight: 600; }
.modal__label span { color: var(--ink-muted); font-weight: 400; }
.modal__text { width: 100%; padding: 10px 12px; border: 1.5px solid var(--border-strong); border-radius: 12px; font: inherit; resize: vertical; }
.modal__acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.modal__done { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 10px 0; }
.modal__done p { margin: 0 0 6px; color: var(--ink-muted); }
.modal__tick { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--mint-soft); color: #11603A; }
.modal__tick svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.cmt__hidden { margin: 6px 0 0; padding: 6px 10px; border-radius: 8px; background: var(--gold-soft); font-size: 12.5px; color: var(--ink); }
.cmt__meta .cmt__report { font-weight: 600; opacity: .8; }

/* ---- Share to story ---- */
.reel__story { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--gib-action); cursor: pointer; }
.reel__story svg, .poll__acts [data-story] svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
[data-story][aria-busy="true"] { opacity: .5; pointer-events: none; }

/* ---- Comments sheet: skeleton while switching polls ---- */
.sheet__body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.cskel { flex: 1; padding: 6px 20px 20px; display: grid; gap: 18px; align-content: start; }
.cskel__head { padding: 12px 0 14px; border-bottom: 1px solid var(--border); }
.cskel__row { display: grid; grid-template-columns: 40px 1fr; gap: 10px; }
.cskel__lines { display: grid; gap: 8px; padding: 12px 14px; border-radius: 16px; background: var(--surface-soft); }
.sk { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, #ECE8E1 0%, #F6F3EE 50%, #ECE8E1 100%); background-size: 200% 100%; animation: sk 1.1s ease-in-out infinite; }
.sk--title { width: 120px; height: 18px; }
.sk--av { width: 40px; height: 40px; border-radius: 50%; }
.sk--name { width: 34%; height: 13px; }
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }
.sheet__body .comments--sheet { min-height: 0; }

/* Cookie policy page */
.cookie-choice { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.cookie-note { font-size: 14px; color: var(--ink-muted); }
.cookie-table { overflow-x: auto; }
.cookie-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cookie-table th, .cookie-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.cookie-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-muted); }

/* Explore: tab counts, section rows and a clear switch between tabs */
.tabs__n { margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: var(--border); color: var(--ink-muted); font-size: 12px; font-weight: 700; }
.tabs [aria-selected="true"] .tabs__n { background: var(--gib-action); color: #fff; }
.sec__row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 32px 0 16px; }
.sec__row .sec__title--sm { margin: 0; }
.sec__n { margin-left: 6px; color: var(--ink-muted); font-size: 16px; font-weight: 600; letter-spacing: 0; }
button.more { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; cursor: pointer; }
.results { margin-top: 8px; transition: opacity .15s ease; animation: results-in .35s ease-out; }
.results.is-loading { opacity: .45; pointer-events: none; }
.results__count { margin: 24px 0 14px; color: var(--ink-muted); font-size: 14px; font-weight: 600; }
.results__none { margin: 0 0 8px; padding: 18px; border: 1px dashed var(--border); border-radius: 14px; color: var(--ink-muted); }
/* All / Polls / Surveys switch in the browser: everything is on the page, CSS shows the right part. */
.explore .results__count, .explore .xsec__more { display: none; }
.explore[data-tab="polls"] .xsec--surveys, .explore[data-tab="surveys"] .xsec--polls { display: none; }
.explore[data-tab="all"] .xsec .grid > :nth-child(n+7) { display: none; }
.explore:not([data-tab="all"]) .sec__row { display: none; }
.explore:not([data-tab="all"]) .results__count, .explore:not([data-tab="all"]) .xsec__more { display: block; }
.results.is-switch { animation: results-in .3s ease-out; }
@keyframes results-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .results { animation: none; } }

/* Explore endless scroll */
.xsec__more { min-height: 1px; padding: 28px 0 8px; text-align: center; }
.explore:not([data-tab="all"]) .xsec__more[data-next=""] { display: none; }
.xsec__spin { display: none; width: 28px; height: 28px; margin: 0 auto; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--gib-action); animation: xspin .7s linear infinite; }
.xsec__more.is-busy .xsec__spin { display: block; }
.xsec__retry { display: none; }
.xsec__more.is-failed .xsec__retry, .no-io .xsec__retry { display: inline-flex; }
@keyframes xspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .xsec__spin { animation-duration: 2s; } }
