/* ==========================================================================
   FOLQIN design system
   Navy theme: deep navy (#10264A) and steel blue (#244A7C) on white and cool
   grey (#EEF2F7), with champagne (#C4A574) kept for premium details only.
   Mobile first; breakpoints at 600, 768, 1024 and 1280 px. Served as-is, no build step.
   ========================================================================== */

:root {
  color-scheme: light;
  /* Brand palette */
  --primary: #10264A;
  --secondary: #244A7C;
  --navy-950: #060E1C;
  --navy-900: #0A1730;
  --navy-700: #1A3561;
  --blue-500: #3A64A0;
  --blue-400: #5F8BCB;
  --blue-300: #8DB2EA;
  --blue-200: #B9CFF2;
  --champagne: #C4A574;
  --champagne-2: #DCC69E;
  --champagne-ink: #8A6B3A;
  --champagne-soft: rgba(196, 165, 116, .16);
  --champagne-gradient: linear-gradient(135deg, #E2CDA4 0%, #C4A574 52%, #A7864F 100%);

  --bg: #F4F6FA;
  --bg-2: #E6ECF4;
  --surface: #ffffff;
  --surface-2: #F7F9FC;
  --surface-3: #EEF2F7;
  --panel: #ffffff;
  --line: #E3E9F1;
  --line-strong: #CCD7E5;
  --text: #0E1A2E;
  --text-2: #3A4A63;
  --muted: #6B7A90;
  --accent: #10264A;
  --accent-ink: #244A7C;
  --accent-soft: #E5ECF6;
  --accent-softer: #F1F5FA;
  --accent-gradient: linear-gradient(180deg, #1C3A6B 0%, #10264A 100%);
  --accent-gradient-diag: linear-gradient(135deg, #3A64A0 0%, #244A7C 45%, #10264A 100%);
  --on-accent: #ffffff;
  --verified: #2F6BD8;
  --success: #2f7d4f;
  --success-soft: #e5f3ea;
  --danger: #b4372f;
  --danger-soft: #fbe9e7;
  --heart: #e0453b;
  --shadow-sm: 0 1px 2px rgba(16, 38, 74, .06);
  --shadow: 0 1px 2px rgba(16, 38, 74, .05), 0 10px 30px -12px rgba(16, 38, 74, .16);
  --shadow-lg: 0 24px 60px -20px rgba(10, 23, 48, .38);
  --glow: rgba(36, 74, 124, .14);
  --scrim: linear-gradient(180deg, rgba(6, 14, 28, 0) 35%, rgba(6, 14, 28, .78) 100%);
  --input-bg: #F3F6FA;

  --ink: #0A1730;
  --ink-2: #10264A;
  --ink-line: #23395E;
  --ink-text: #F2F5FA;
  --ink-muted: #9DAAC0;

  --font-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --sidebar: 264px;
  --rail: 352px;
  --topbar: 76px;
  --bottomnav: 68px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #05080F;
  --bg-2: #080D17;
  --surface: #0E192B;
  --surface-2: #132136;
  --surface-3: #192A43;
  --panel: #0A1424;
  --line: #1C2C45;
  --line-strong: #2A3F60;
  --text: #EEF2F7;
  --text-2: #C3CEDD;
  --muted: #8B99B0;
  --accent: #8DB2EA;
  --accent-ink: #A9C6F2;
  --accent-soft: rgba(110, 154, 222, .16);
  --accent-softer: rgba(110, 154, 222, .08);
  --accent-gradient: linear-gradient(180deg, #3A69B0 0%, #244A7C 100%);
  --on-accent: #ffffff;
  --verified: #7FA9F0;
  --champagne-ink: #DCC69E;
  --success-soft: rgba(47, 125, 79, .18);
  --danger-soft: rgba(180, 55, 47, .16);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .45);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 34px -16px rgba(0, 0, 0, .7);
  --glow: rgba(110, 154, 222, .14);
  --input-bg: #132136;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #05080F;
    --bg-2: #080D17;
    --surface: #0E192B;
    --surface-2: #132136;
    --surface-3: #192A43;
    --panel: #0A1424;
    --line: #1C2C45;
    --line-strong: #2A3F60;
    --text: #EEF2F7;
    --text-2: #C3CEDD;
    --muted: #8B99B0;
    --accent: #8DB2EA;
    --accent-ink: #A9C6F2;
    --accent-soft: rgba(110, 154, 222, .16);
    --accent-softer: rgba(110, 154, 222, .08);
    --accent-gradient: linear-gradient(180deg, #3A69B0 0%, #244A7C 100%);
    --on-accent: #ffffff;
    --verified: #7FA9F0;
    --champagne-ink: #DCC69E;
    --success-soft: rgba(47, 125, 79, .18);
    --danger-soft: rgba(180, 55, 47, .16);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .45);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 34px -16px rgba(0, 0, 0, .7);
    --glow: rgba(110, 154, 222, .14);
    --input-bg: #132136;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent-soft); color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.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; }
[hidden] { display: none !important; }

/* Thin scrollbars for the side panels and scrolling rows */
.scroll-y { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: transparent transparent; }
.scroll-y:hover { scrollbar-color: var(--line-strong) transparent; }
.scroll-y::-webkit-scrollbar { width: 6px; }
.scroll-y::-webkit-scrollbar-thumb { background: transparent; border-radius: 6px; }
.scroll-y:hover::-webkit-scrollbar-thumb { background: var(--line-strong); }
.scroll-x { display: flex; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; scroll-behavior: smooth; }
.scroll-x::-webkit-scrollbar { display: none; }

.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 24px; height: 24px; }
.icon--xl { width: 32px; height: 32px; }
.icon--fill { fill: currentColor; }

.serif { font-family: var(--font-display); }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.gold, .accent { color: var(--accent); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.nowrap { white-space: nowrap; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; align-items: center; gap: 10px; }
.row--between { justify-content: space-between; }
.row--wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.num { font-variant-numeric: lining-nums tabular-nums; }

/* ---------- Wordmark ---------- */
.wordmark { display: inline-flex; flex-direction: column; color: var(--text); line-height: 1; }
.wordmark__name { font-family: var(--font-display); font-size: 40px; font-weight: 500; letter-spacing: .06em; }
.wordmark__tag { font-size: 8.5px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--text-2); margin-top: 6px; white-space: nowrap; }
.wordmark--sm .wordmark__name { font-size: 28px; }
.wordmark--sm .wordmark__tag { font-size: 7px; letter-spacing: .22em; margin-top: 4px; }
.wordmark--lg .wordmark__name { font-size: 64px; }
.wordmark--lg .wordmark__tag { font-size: 10.5px; margin-top: 10px; color: var(--accent-ink); }
.wordmark__by { font-family: var(--font-display); font-style: italic; font-size: 15px; color: var(--accent); margin-top: 10px; letter-spacing: .02em; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text);
  font-weight: 600; font-size: 14px; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s, color .25s;
}
.btn:hover { border-color: var(--accent); color: var(--accent-ink); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.btn--accent {
  background: var(--accent-gradient); border: 0; color: var(--on-accent);
  box-shadow: 0 8px 20px -10px rgba(47, 87, 147, .7), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn--accent:hover { color: var(--on-accent); box-shadow: 0 14px 28px -12px rgba(47, 87, 147, .85), inset 0 1px 0 rgba(255, 255, 255, .22); }
.btn--accent::after, .btn--dark::after {
  content: ""; position: absolute; inset: -2px; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .9s var(--ease);
}
.btn--accent:hover::after, .btn--dark:hover::after { transform: translateX(120%); }
.btn--dark { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn--dark:hover { color: var(--bg); border-color: var(--text); box-shadow: var(--shadow); }
.btn--outline { background: transparent; border-color: var(--accent); color: var(--accent-ink); }
.btn--outline:hover { background: var(--accent-soft); }
.btn--soft { background: var(--accent-soft); border-color: transparent; color: var(--accent-ink); }
.btn--ghost { background: transparent; border-color: transparent; }
.btn--ghost:hover { background: var(--surface-3); border-color: transparent; transform: none; }
.btn--danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, transparent); background: var(--surface); }
.btn--danger:hover { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }
.btn--sm { height: 34px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.btn--lg { height: 52px; padding: 0 26px; font-size: 15.5px; border-radius: 14px; }
.btn--block { width: 100%; }
.btn--icon { width: 42px; padding: 0; }
.btn--icon.btn--sm { width: 34px; }
.btn.is-on { background: var(--surface-3); color: var(--text); border-color: var(--line-strong); }

/* ---------- Forms ---------- */
.field { display: block; }
.field + .field { margin-top: 16px; }
.field__label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); margin-bottom: 8px; }
.field__hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.field__error { font-size: 13px; color: var(--danger); margin-top: 6px; display: flex; gap: 6px; align-items: center; }
.input, .select, .textarea {
  width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--input-bg); color: var(--text);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--line-strong); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px var(--glow); }
.input::placeholder, .textarea::placeholder { color: var(--muted); }
.input.has-error, .textarea.has-error { border-color: var(--danger); }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap > .icon { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.input-wrap > .input { padding-left: 44px; }
.input-wrap__end { position: absolute; right: 8px; display: flex; align-items: center; gap: 4px; }
.reveal { background: none; border: 0; color: var(--muted); padding: 6px; display: inline-flex; border-radius: 8px; }
.counter { font-size: 12px; color: var(--muted); }
.form-grid { display: grid; gap: 16px; }
.form-grid > .field + .field { margin-top: 0; }
@media (min-width: 600px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } .form-grid .span-2 { grid-column: 1 / -1; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }

/* ---------- Avatars ---------- */
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; background: var(--surface-3); }
.avatar--xs { width: 26px; height: 26px; }
.avatar--sm { width: 36px; height: 36px; }
.avatar--md { width: 44px; height: 44px; }
.avatar--lg { width: 60px; height: 60px; }
.avatar--xl { width: 112px; height: 112px; }
.avatar--xxl { width: 132px; height: 132px; }
.avatar--mono {
  display: inline-flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 30% 25%, #18273e, #080d14 72%); color: #91b2e4;
  font-family: var(--font-display); font-weight: 500; letter-spacing: .04em;
}
.avatar--xs.avatar--mono { font-size: 10px; }
.avatar--sm.avatar--mono { font-size: 13px; }
.avatar--md.avatar--mono { font-size: 16px; }
.avatar--lg.avatar--mono { font-size: 22px; }
.avatar--xl.avatar--mono { font-size: 40px; }
.avatar--xxl.avatar--mono { font-size: 48px; }
.avatar--ring { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--accent); }
.avatar-stack { display: inline-flex; }
.avatar-stack > * { margin-left: -9px; box-shadow: 0 0 0 2px var(--surface); }
.avatar-stack > :first-child { margin-left: 0; }

/* ---------- Badges & chips ---------- */
.verified { display: inline-flex; color: var(--verified); vertical-align: -3px; }
.verified .icon { width: 17px; height: 17px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); transition: background .2s, border-color .2s, color .2s, transform .2s var(--ease); }
a.chip:hover, a:hover > .chip { border-color: var(--accent); color: var(--accent-ink); }
.chip--accent { background: var(--accent-soft); border-color: transparent; color: var(--accent-ink); }
.chip--dark { background: var(--text); border-color: var(--text); color: var(--bg); }
.chip--success { background: var(--success-soft); border-color: transparent; color: var(--success); }
.chip--danger { background: var(--danger-soft); border-color: transparent; color: var(--danger); }
.chip .icon { width: 14px; height: 14px; }
.count-badge { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--accent-gradient); color: var(--on-accent); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-style: normal; }
.dot-badge { position: absolute; top: 5px; right: 5px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: #d64533; color: #fff; font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--bg); }
.level { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }

/* ---------- Cards and effects ---------- */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  transition: box-shadow .35s var(--ease), transform .35s var(--ease), border-color .35s, background-color .4s;
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), var(--glow), transparent 45%);
  transition: opacity .4s var(--ease);
}
.card:hover::after { opacity: 1; }
.card--lift:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card__body { padding: 20px; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 4px; }
.card__title { font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; }
.card__link { font-size: 13px; font-weight: 600; color: var(--accent); position: relative; }
.card__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.card__link:hover::after { transform: scaleX(1); transform-origin: left; }
.card + .card { margin-top: 16px; }
.people-grid > .card, .stat-grid > .card, .rail__inner > .card, .event-grid > .card, .cat-grid > *, .trend-cards > * { margin-top: 0; }
.section-title { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.page-title { font-size: clamp(26px, 3.4vw, 32px); font-weight: 700; letter-spacing: -.02em; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 2px 0 18px; flex-wrap: wrap; }
.page-head p { color: var(--muted); margin-top: 4px; }
.page-head > div:first-child { flex: 1 1 260px; min-width: 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 22px 0 12px; }
.divider { height: 1px; background: var(--line); margin: 16px 0; border: 0; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty .icon { width: 40px; height: 40px; color: var(--accent); margin: 0 auto 12px; display: block; }
.empty h3 { font-size: 19px; color: var(--text); margin-bottom: 6px; }
.empty p { max-width: 380px; margin: 0 auto 16px; }

/* Image containers: shimmer until loaded, zoom on hover */
.media { position: relative; display: block; overflow: hidden; background: var(--surface-3); }
.media::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%); background-size: 220% 100%; animation: shimmer 1.4s linear infinite; }
.media.is-loaded::before { display: none; }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), opacity .6s var(--ease); }
.fx-ready .media:not(.is-loaded) img { opacity: 0; }
.zoom:hover img, a:hover > .media img, .media:hover img.zoomable { transform: scale(1.05); }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }

/* Scroll reveal (enabled by app.js) */
.fx-ready [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0ms); }
.fx-ready [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Flash / toast ---------- */
.flash { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 14px; margin-bottom: 16px; border: 1px solid; animation: drop-in .5s var(--ease); }
.flash--success { background: var(--success-soft); border-color: transparent; color: var(--success); }
.flash--error { background: var(--danger-soft); border-color: transparent; color: var(--danger); }
.flash--info { background: var(--accent-soft); border-color: transparent; color: var(--accent-ink); }
a.flash:hover { filter: brightness(.98); }
@keyframes drop-in { from { opacity: 0; transform: translateY(-8px); } }
.toast-zone { position: fixed; left: 50%; bottom: calc(var(--bottomnav) + 18px + var(--safe-bottom)); transform: translateX(-50%); z-index: 95; display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { background: var(--text); color: var(--bg); padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 500; animation: toast-in .35s var(--ease); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }

/* ==========================================================================
   Auth & onboarding (always dark)
   ========================================================================== */
.theme-dark { background: var(--ink); color: var(--ink-text); }
.theme-dark .muted { color: var(--ink-muted); }
.auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 1fr; background: var(--ink); }
.auth__panel { position: relative; z-index: 1; display: flex; flex-direction: column; padding: 28px 22px 32px; width: 100%; max-width: 560px; margin: 0 auto; }
.auth__hero { position: relative; overflow: hidden; display: none; }
.auth__mobile-art {
  position: absolute; inset: 0 0 auto 0; height: 340px; z-index: 0; pointer-events: none;
  background: url("../auth/p02.webp") center 22% / cover no-repeat; opacity: .55;
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent); mask-image: linear-gradient(to bottom, #000 40%, transparent);
}
.auth__top { display: flex; align-items: center; justify-content: space-between; min-height: 40px; }
.auth__back { color: var(--ink-text); display: inline-flex; padding: 8px; margin-left: -8px; border-radius: 8px; }
.auth__brand { margin: 10px auto 34px; text-align: center; color: var(--ink-text); align-items: center; }
.auth__brand .wordmark__tag { color: #7d9bc9; }
.auth__title { font-family: var(--font-display); font-size: clamp(32px, 6.4vw, 42px); font-weight: 500; line-height: 1.08; letter-spacing: -.01em; }
.auth__rule { width: 56px; height: 2px; background: var(--accent-gradient-diag); border: 0; margin: 16px 0; }
.auth__lead { color: var(--ink-muted); font-size: 16px; margin-top: 10px; max-width: 420px; }
.auth__form { margin-top: 26px; }
.auth__alt { margin-top: 26px; text-align: center; color: var(--ink-muted); font-size: 14.5px; }
.auth__alt a, .link-gold { color: #85a9e0; font-weight: 600; }
.auth__footer { margin-top: auto; padding-top: 28px; display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; font-size: 12.5px; color: #616d80; }
.auth__footer a:hover { color: var(--ink-text); }
.secure-note { display: flex; gap: 8px; justify-content: center; align-items: center; margin-top: 16px; font-size: 13px; color: var(--ink-muted); }
.secure-note .icon { width: 16px; height: 16px; }
.theme-dark .field__label { color: #b5bfcf; }
.theme-dark .field__hint { color: var(--ink-muted); }
.theme-dark .field__error { color: #f0938a; }
.theme-dark .input, .theme-dark .select, .theme-dark .textarea { background: var(--ink-2); border-color: var(--ink-line); color: var(--ink-text); }
.theme-dark .input::placeholder, .theme-dark .textarea::placeholder { color: #576374; }
.theme-dark .input:focus, .theme-dark .select:focus, .theme-dark .textarea:focus { border-color: #648cc9; box-shadow: 0 0 0 4px rgba(100, 140, 201, .18); background: var(--ink-2); }
.theme-dark .input-wrap > .icon, .theme-dark .reveal { color: #738196; }
.theme-dark .check { color: #b5bfcf; }
.theme-dark .btn { background: var(--ink-2); border-color: var(--ink-line); color: var(--ink-text); }
.theme-dark .btn--accent { background: linear-gradient(180deg, #7299d4 0%, #3f69a8 100%); color: #0a101a; border: 0; }
.theme-dark .btn--outline { background: transparent; border-color: #648cc9; color: #85a9e0; }
.theme-dark .flash--error { background: rgba(180, 55, 47, .14); color: #f4b0a9; }
.theme-dark .flash--success { background: rgba(47, 125, 79, .16); color: #a8dcb9; }
.theme-dark .flash--info { background: rgba(100, 140, 201, .12); color: #85a9e0; }
.row-between-sm { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; font-size: 14px; }
.dark-card { background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .015)); border: 1px solid var(--ink-line); border-radius: var(--radius-lg); padding: 18px; }
.gem { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(100, 140, 201, .5); color: #7299d4; background: rgba(100, 140, 201, .07); flex: none; }
.gem .icon { width: 24px; height: 24px; }

.stepper { display: flex; align-items: flex-start; margin: 26px 0 8px; }
.stepper__item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; font-size: 13.5px; color: var(--ink-muted); text-align: center; }
.stepper__item::before { content: ""; position: absolute; top: 19px; left: calc(-50% + 26px); right: calc(50% + 26px); height: 1.5px; background: var(--ink-line); }
.stepper__item:first-child::before { display: none; }
.stepper__dot { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--ink-line); color: var(--ink-muted); font-weight: 600; background: var(--ink); position: relative; z-index: 1; }
.stepper__item.is-done .stepper__dot { border-color: #648cc9; color: #7299d4; }
.stepper__item.is-done::before, .stepper__item.is-current::before { background: #648cc9; }
.stepper__item.is-current { color: #85a9e0; }
.stepper__item.is-current .stepper__dot { border-color: #648cc9; color: #85a9e0; box-shadow: 0 0 0 5px rgba(100, 140, 201, .14); }
.stepper .icon { width: 16px; height: 16px; }

.tiles { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 420px) { .tiles--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tile { position: relative; display: block; cursor: pointer; }
.tile input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.tile__box { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 16px 8px; border-radius: 14px; border: 1px solid var(--ink-line); background: var(--ink-2); transition: border-color .25s, background .25s, transform .3s var(--ease); min-height: 96px; }
.tile:hover .tile__box { transform: translateY(-2px); border-color: #243b5e; }
.tile__box .icon { width: 28px; height: 28px; color: #a3adbd; stroke-width: 1.4; transition: transform .35s var(--ease), color .25s; }
.tile:hover .tile__box .icon { transform: scale(1.1); }
.tile__name { font-size: 14px; font-weight: 500; color: var(--ink-text); }
.tile__desc { font-size: 12px; line-height: 1.4; color: var(--ink-muted); }
.tile__check { position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; border-radius: 50%; background: #648cc9; color: #0a101a; display: none; place-items: center; }
.tile__check .icon { width: 13px; height: 13px; stroke-width: 3; }
.tile input:checked + .tile__box { border-color: #648cc9; background: rgba(100, 140, 201, .08); }
.tile input:checked + .tile__box .icon { color: #7299d4; }
.tile input:checked ~ .tile__check { display: grid; animation: pop .35s var(--ease); }
.tile input:focus-visible + .tile__box { outline: 2px solid #648cc9; outline-offset: 2px; }
.tiles--lg .tile__box { min-height: 150px; padding: 18px 12px; }

.upload { position: relative; display: flex; align-items: center; gap: 18px; padding: 18px; border-radius: var(--radius-lg); border: 1px dashed #1c2e4a; background: var(--ink-2); cursor: pointer; overflow: hidden; transition: border-color .25s; }
.upload:hover { border-color: #648cc9; }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload__avatar { width: 124px; height: 124px; border-radius: 50%; flex: none; background: radial-gradient(circle at 50% 35%, #1a2b44, #0a111b); display: grid; place-items: center; position: relative; border: 1px solid rgba(100, 140, 201, .4); overflow: hidden; }
.upload__avatar img { width: 100%; height: 100%; object-fit: cover; }
.upload__avatar > .icon { width: 44px; height: 44px; color: #495361; }
.upload__badge { position: absolute; right: -2px; bottom: 2px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); border: 1.5px solid #648cc9; color: #7299d4; }
.upload__badge .icon { width: 16px; height: 16px; }
.upload__cover { min-height: 170px; background-size: cover; background-position: center; }
.upload__plus { width: 52px; height: 52px; border-radius: 50%; border: 1px solid #243b5e; display: grid; place-items: center; flex: none; background: rgba(4, 7, 12, .6); }
.upload__title { font-size: 17px; font-weight: 600; }
.upload__text { color: var(--ink-muted); font-size: 14px; margin-top: 4px; }
.upload__meta { color: #616d80; font-size: 12px; margin-top: 8px; }
.progress-ring { --p: 0; width: 82px; height: 82px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#648cc9 calc(var(--p) * 1%), #142134 0); flex: none; }
.progress-ring__inner { width: 66px; height: 66px; border-radius: 50%; background: var(--ink-2); display: grid; place-items: center; text-align: center; line-height: 1.05; }
.progress-ring strong { font-size: 18px; }
.progress-ring span { display: block; font-size: 10px; color: var(--ink-muted); }
.celebrate { text-align: center; }
.celebrate__seal { width: 180px; height: 180px; margin: 10px auto 22px; border-radius: 50%; border: 1.5px solid rgba(100, 140, 201, .55); display: grid; place-items: center; box-shadow: 0 0 60px rgba(100, 140, 201, .22), inset 0 0 40px rgba(100, 140, 201, .08); position: relative; animation: float 6s ease-in-out infinite; }
.celebrate__seal .icon { width: 84px; height: 84px; color: #7299d4; stroke-width: 1.2; }
@keyframes float { 50% { transform: translateY(-8px); } }
.confetti { position: absolute; inset: -60px; pointer-events: none; background:
  radial-gradient(2px 7px at 10% 20%, #7299d4 50%, transparent 52%), radial-gradient(2px 7px at 85% 15%, #85a9e0 50%, transparent 52%),
  radial-gradient(2px 6px at 20% 80%, #648cc9 50%, transparent 52%), radial-gradient(2px 6px at 92% 70%, #3f69a8 50%, transparent 52%),
  radial-gradient(3px 3px at 50% 5%, #85a9e0 50%, transparent 52%), radial-gradient(3px 3px at 4% 50%, #7299d4 50%, transparent 52%); opacity: .8; animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.next-list li + li { border-top: 1px solid var(--ink-line); }
.next-list a { display: flex; align-items: center; gap: 14px; padding: 14px 4px; transition: transform .3s var(--ease); }
.next-list a:hover { transform: translateX(4px); }
.next-list .gem { width: 46px; height: 46px; }
.next-list strong { font-weight: 500; display: block; }
.next-list span { color: var(--ink-muted); font-size: 13px; }

/* Sign-in slideshow: films and photos crossfade behind the brand story; stays put while the form scrolls */
.auth-slides { position: absolute; inset: 0; background: #060a10; }
.auth-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.4s var(--ease); }
.auth-slide.is-active { opacity: 1; }
.auth-slide img, .auth-slide video { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.auth-slide img { transform: scale(1.04); }
.auth-slide.is-active img { animation: auth-zoom 9s linear forwards; }
@keyframes auth-zoom { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.16) translate(-1.5%, -1%); } }
.auth-shade { position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(180deg, rgba(6, 10, 16, .55) 0%, transparent 22%, transparent 42%, rgba(6, 10, 16, .7) 70%, rgba(6, 10, 16, .94) 100%),
  linear-gradient(90deg, rgba(6, 10, 16, .55), transparent 40%); }
.auth-show { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 34px 56px 44px; color: #e6ecf6; }
.auth-show__bars { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.auth-show__bars span { height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.auth-show__bars i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #85a9e0, #e9eff9); }
.auth-show__bars span.is-done i { width: 100%; }
.auth-show__bars span.is-active i { animation: auth-bar var(--slide-ms, 7000ms) linear forwards; }
@keyframes auth-bar { to { width: 100%; } }
.auth-show__now { display: flex; align-items: baseline; gap: 12px; margin-top: 16px; }
.auth-show__label { padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #0a101a; background: linear-gradient(180deg, #85a9e0, #4f79b8); }
.auth-show__caption { font-family: var(--font-display); font-style: italic; font-size: 18px; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.auth-show__now.is-changing > * { animation: auth-caption .7s var(--ease); }
@keyframes auth-caption { from { opacity: 0; transform: translateY(8px); } }
.auth-show__eyebrow { display: flex; align-items: center; gap: 12px; font-size: 11.5px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: #9dbbe7; text-shadow: 0 1px 2px rgba(0, 0, 0, .7), 0 0 14px rgba(0, 0, 0, .55); }
.auth-show__eyebrow span { width: 34px; height: 1px; background: currentColor; }
.auth-show__title { margin-top: 16px; font-family: var(--font-display); font-size: clamp(46px, 4.8vw, 74px); font-weight: 500; line-height: .98; letter-spacing: -.01em; text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.auth-show__title em { font-style: italic; color: #9dbbe7; }
.auth-show__lead { margin-top: 18px; max-width: 460px; font-size: 15.5px; line-height: 1.6; color: rgba(230, 236, 246, .82); }
.auth-show__glass { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 28px; max-width: 640px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(9, 15, 23, .38); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .7); }
.auth-show__glass > div { padding: 18px 20px; }
.auth-show__glass > div + div { border-left: 1px solid rgba(255, 255, 255, .1); }
.auth-show__glass .icon { width: 22px; height: 22px; color: #85a9e0; }
.auth-show__glass strong { display: block; margin-top: 8px; font-family: var(--font-display); font-size: 19px; font-weight: 500; }
.auth-show__glass span { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.45; color: rgba(230, 236, 246, .7); }
@media (prefers-reduced-motion: reduce) { .auth-slide.is-active img { animation: none; } }
@media (min-width: 960px) {
  .auth { grid-template-columns: minmax(440px, 40%) 1fr; }
  .auth__panel { max-width: none; padding: 40px 56px; border-right: 1px solid var(--ink-line); }
  .auth__panel > .auth__inner { width: 100%; max-width: 400px; margin: 0 auto; }
  .auth__hero { display: block; position: sticky; top: 0; height: 100vh; height: 100dvh; align-self: start; }
  .auth__mobile-art { display: none; }
  .auth--wide .auth__panel > .auth__inner { max-width: 520px; }
}

/* ==========================================================================
   App shell
   ========================================================================== */
.app { min-height: 100vh; }
.app__body { min-width: 0; }
.sidebar { display: none; }

.topbar {
  position: sticky; top: 0; z-index: 40; height: 64px; display: flex; align-items: center; gap: 6px;
  padding: 0 14px; background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background-color .4s;
}
.topbar.is-scrolled { border-bottom-color: var(--line); }
.topbar__brand { display: flex; min-width: 0; overflow: hidden; }
.topbar__search { display: none; }
.topbar__actions { margin-left: auto; flex: none; display: flex; align-items: center; gap: 2px; }
@media (max-width: 400px) {
  .topbar { padding: 0 10px; }
  .topbar .icon-btn { width: 38px; }
}
@media (max-width: 479px) { .topbar__brand .wordmark__tag { display: none; } }
.icon-btn { position: relative; width: 42px; height: 42px; border-radius: 12px; display: inline-grid; place-items: center; color: var(--text); background: transparent; border: 0; transition: background .2s, transform .25s var(--ease); }
.icon-btn:hover { background: var(--surface-3); }
.icon-btn:active { transform: scale(.94); }
.icon-btn .icon { width: 23px; height: 23px; }
.topbar__me { display: flex; align-items: center; gap: 10px; padding: 4px; border-radius: 14px; background: none; border: 0; text-align: left; transition: background .2s; }
.topbar__me:hover { background: var(--surface-3); }
.topbar__me-text, .topbar__me .icon { display: none; }
.topbar__me strong { display: block; font-size: 14px; line-height: 1.2; }
.topbar__me span span { font-size: 12px; color: var(--muted); }
.topbar__create { display: none; }
.topbar__mobile-only { display: inline-grid; }

.content { padding: 12px 12px calc(var(--bottomnav) + 26px + var(--safe-bottom)); }
.main { max-width: 760px; margin: 0 auto; min-width: 0; }
.rail { display: none; }

.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; height: calc(var(--bottomnav) + var(--safe-bottom));
  padding: 0 6px var(--safe-bottom); display: grid; grid-template-columns: repeat(5, 1fr);
  background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.bottomnav a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 500; color: var(--muted); transition: color .2s; }
.bottomnav a .bn-icon { width: 40px; height: 30px; border-radius: 15px; display: grid; place-items: center; transition: background .3s var(--ease), transform .3s var(--ease); }
.bottomnav a .icon { width: 23px; height: 23px; }
.bottomnav a.is-active { color: var(--accent); font-weight: 600; }
.bottomnav a.is-active .bn-icon { background: var(--accent-soft); }
.bottomnav a:active .bn-icon { transform: scale(.9); }
.bottomnav .dot-badge { top: 4px; right: calc(50% - 22px); }
.bottomnav__create { gap: 2px !important; }
.bottomnav__create .plus { width: 42px; height: 42px; margin-top: 0; border-radius: 50%; display: grid; place-items: center; background: var(--accent-gradient); color: var(--on-accent); box-shadow: 0 10px 22px -8px rgba(47, 87, 147, .8); transition: transform .3s var(--ease); }
.bottomnav__create:hover .plus { transform: rotate(90deg) scale(1.04); }
.bottomnav__create .plus .icon { width: 22px; height: 22px; stroke-width: 2.2; }

.drawer-backdrop { position: fixed; inset: 0; background: rgba(4, 7, 12, .55); z-index: 70; opacity: 0; pointer-events: none; transition: opacity .3s; }
.drawer { position: fixed; top: 0; bottom: 0; left: 0; width: min(86vw, 320px); z-index: 71; transform: translateX(-102%); transition: transform .38s var(--ease); background: var(--panel); }
body.drawer-open .drawer { transform: none; }
body.drawer-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
body.drawer-open { overflow: hidden; }

/* Navigation panel (desktop sidebar and mobile drawer) */
.nav-panel { height: 100%; display: flex; flex-direction: column; padding: 22px 16px 16px; background: var(--panel); }
.nav-panel > * { flex-shrink: 0; }
.nav-panel__brand { padding: 4px 10px 26px; }
.nav-panel__me { display: flex; align-items: center; gap: 12px; margin: -8px 0 16px; padding: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--text); transition: border-color .25s, transform .3s var(--ease), box-shadow .3s; }
.nav-panel__me:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.nav-panel__me-text { flex: 1; min-width: 0; display: grid; }
.nav-panel__me strong { font-size: 15px; line-height: 1.25; }
.nav-panel__me-text > span { font-size: 12.5px; color: var(--muted); }
.nav-panel__me small { margin-top: 3px; font-size: 12px; font-weight: 600; color: var(--accent); }
.nav-panel__me > .icon { color: var(--muted); width: 18px; height: 18px; }
.sidebar .nav-panel__me { display: none; }
.nav { display: grid; gap: 3px; }
.nav a { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 12px; color: var(--text-2); font-size: 15px; font-weight: 500; position: relative; transition: background .25s var(--ease), color .25s; }
.nav a .icon { width: 22px; height: 22px; stroke-width: 1.6; color: var(--text-2); transition: transform .35s var(--ease), color .25s; }
.nav a:hover { background: var(--surface-3); color: var(--text); }
.nav a:hover .icon { transform: translateX(2px); color: var(--accent); }
.nav a.is-active { background: var(--accent-soft); color: var(--text); font-weight: 600; }
.nav a.is-active .icon { color: var(--accent); }
.nav a.is-active::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent-gradient); }
.nav .count-badge { margin-left: auto; }
.nav-label { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); padding: 16px 14px 6px; }
.pro-card { position: relative; overflow: hidden; margin-top: 18px; padding: 18px; border-radius: 16px; color: #e4eaf4; background: radial-gradient(120% 90% at 100% 0%, #17273e 0%, #0a101a 55%, #070b11 100%); border: 1px solid #131f32; }
.pro-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 40%, rgba(187, 207, 238, .1) 50%, transparent 60%); background-size: 250% 100%; animation: sheen 6s ease-in-out infinite; pointer-events: none; }
@keyframes sheen { from { background-position: 150% 0; } to { background-position: -150% 0; } }
.pro-card__title { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .04em; font-size: 15px; }
.pro-card__title .icon { color: #85a9e0; width: 24px; height: 24px; }
.pro-card ul { margin: 12px 0 14px; display: grid; gap: 7px; }
.pro-card li { display: flex; gap: 8px; align-items: center; font-size: 13px; color: #bfc9d9; }
.pro-card li .icon { width: 15px; height: 15px; color: #85a9e0; stroke-width: 2.4; }
.pro-card .btn { width: 100%; }
.side-banner { position: relative; display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; transition: transform .35s var(--ease), border-color .3s; }
.side-banner:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.side-banner .media { width: 56px; height: 64px; border-radius: 10px; flex: none; }
.side-banner__text { font-family: var(--font-display); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; line-height: 1.35; flex: 1; }
.side-banner .arrow { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: transform .35s var(--ease), background .25s; }
.side-banner:hover .arrow { transform: translateX(3px); background: var(--accent-soft); }
.nav-panel__foot { margin-top: auto; padding: 18px 10px 0; font-size: 12px; color: var(--muted); }

/* User menu */
.menu { position: relative; }
.menu__panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: min(300px, calc(100vw - 24px)); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; opacity: 0; transform: translateY(-6px) scale(.98); pointer-events: none; transition: opacity .2s var(--ease), transform .25s var(--ease); }
.menu.is-open .menu__panel { opacity: 1; transform: none; pointer-events: auto; }
.menu__panel a, .menu__panel button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 12px; border: 0; background: none; border-radius: 10px; font-size: 14px; text-align: left; color: var(--text); transition: background .2s; }
.menu__panel a:hover, .menu__panel button:hover { background: var(--surface-3); }
.menu__panel .danger { color: var(--danger); }
.menu__panel hr { border: 0; height: 1px; background: var(--line); margin: 6px 4px; }
.menu__head { display: flex; gap: 10px; align-items: center; padding: 10px 12px 12px; }
.theme-switch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 6px; margin: 4px; border-radius: 12px; background: var(--surface-3); }
.theme-switch button, .theme-switch a { justify-content: center; gap: 6px; padding: 7px 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.theme-switch button.is-active, .theme-switch a.is-active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.theme-switch .icon { width: 15px; height: 15px; }
.theme-switch--2 { grid-template-columns: repeat(2, 1fr); }

/* Social / Professional wall toggle (top bar) */
.wall-toggle { flex: none; width: 40px; height: 40px; margin: 0 4px; border-radius: 50%; display: inline-grid; place-items: center; color: var(--text); background: var(--surface-3); border: 1px solid var(--line-strong); transition: background .25s var(--ease), color .2s, border-color .25s, transform .25s var(--ease); }
.wall-toggle:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.wall-toggle:active { transform: scale(.92); }
.wall-toggle .icon { width: 20px; height: 20px; }
@media (max-width: 400px) { .wall-toggle { width: 36px; height: 36px; margin: 0 2px; } .wall-toggle .icon { width: 18px; height: 18px; } }

/* ---------- Breakpoints for the shell ---------- */
@media (min-width: 768px) {
  .app { display: grid; grid-template-columns: 84px minmax(0, 1fr); }
  .sidebar { display: block; position: sticky; top: 0; height: 100vh; border-right: 1px solid var(--line); background: var(--panel); }
  .sidebar .nav-panel { overflow-y: auto; }
  .bottomnav { display: none; }
  .topbar { height: var(--topbar); padding: 0 24px; gap: 14px; }
  .topbar__brand, .topbar__mobile-only { display: none; }
  .topbar__search { display: flex; flex: 1; max-width: 640px; position: relative; align-items: center; }
  .topbar__search .icon-left { position: absolute; left: 16px; color: var(--muted); }
  .topbar__search .icon-right { position: absolute; right: 14px; color: var(--muted); }
  .topbar__search input { width: 100%; height: 48px; padding: 0 46px 0 48px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); transition: border-color .2s, box-shadow .25s, background .2s; }
  .topbar__search input:hover { border-color: var(--line-strong); }
  .topbar__search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--glow); }
  .topbar__create { display: inline-flex; height: 46px; padding: 0 20px; border-radius: 14px; }
  .topbar__me-text, .topbar__me .icon { display: block; }
  .content { padding: 22px 24px 48px; }
  .toast-zone { bottom: 24px; }
}
@media (min-width: 768px) and (max-width: 1023.98px) {
  .sidebar .nav-panel { padding: 18px 10px; }
  .sidebar .wordmark__tag, .sidebar .nav a span, .sidebar .nav-label, .sidebar .pro-card, .sidebar .side-banner, .sidebar .nav-panel__foot { display: none; }
  .sidebar .nav-panel__brand { padding: 2px 0 18px; display: flex; justify-content: center; }
  .sidebar .wordmark__name { font-size: 19px; letter-spacing: .02em; }
  .sidebar .nav a { justify-content: center; padding: 12px; }
  .sidebar .nav .count-badge { position: absolute; top: 3px; right: 6px; min-width: 18px; height: 18px; font-size: 10px; }
}
@media (min-width: 1024px) {
  .app { grid-template-columns: var(--sidebar) minmax(0, 1fr); }
}
@media (min-width: 1280px) {
  .content { display: grid; grid-template-columns: minmax(0, 1fr) var(--rail); gap: 24px; max-width: 1240px; margin: 0 auto; }
  .content .main { max-width: none; margin: 0; }
  .rail { display: block; min-width: 0; }
  .rail__inner { position: sticky; top: calc(var(--topbar) + 20px); max-height: calc(100vh - var(--topbar) - 40px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding-bottom: 8px; }
  .content--wide { grid-template-columns: minmax(0, 1fr); }
}
.content--wide .main { max-width: 1200px; }

/* ==========================================================================
   Home: stories, featured carousel, composer, tabs
   ========================================================================== */
.stories { position: relative; margin: 0 -12px 14px; }
.stories__row { gap: 10px; padding: 2px 12px 8px; scroll-padding-inline: 12px; }
.story { position: relative; flex: none; width: 92px; height: 124px; border-radius: 16px; overflow: hidden; scroll-snap-align: start; color: #fff; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.story:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.story .media { position: absolute; inset: 0; }
.story::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(4, 7, 12, .78)); pointer-events: none; }
.story__label { position: absolute; left: 8px; right: 8px; bottom: 9px; z-index: 1; font-size: 12px; font-weight: 600; line-height: 1.2; text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.story--create { background: var(--surface); color: var(--text); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.story--create::after { display: none; }
.story--create .plus { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--accent); color: var(--accent); transition: transform .45s var(--ease), background .3s; }
.story--create:hover .plus { transform: rotate(90deg); background: var(--accent-soft); }
.story--create .story__label { position: static; color: var(--text); text-shadow: none; text-align: center; }
.story.is-active { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
.stories__next { position: absolute; right: 8px; top: 44px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); display: none; place-items: center; box-shadow: var(--shadow); z-index: 2; transition: transform .25s var(--ease); }
.stories__next:hover { transform: scale(1.08); }
@media (min-width: 768px) {
  .stories { margin: 0 0 16px; }
  .stories__row { padding: 2px 0 6px; scroll-padding-inline: 0; }
  .story { width: 104px; height: 138px; }
  .stories__next { display: grid; }
}

.featured { margin-bottom: 18px; }
.featured__row { gap: 12px; }
.feature-card { position: relative; flex: 0 0 100%; height: 300px; border-radius: 22px; overflow: hidden; scroll-snap-align: center; color: #fff; }
.feature-card .media { position: absolute; inset: 0; }
.feature-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(95deg, rgba(8, 13, 20, .78) 0%, rgba(8, 13, 20, .35) 55%, transparent 80%); }
.feature-card__body { position: absolute; inset: 0; z-index: 1; padding: 22px; display: flex; flex-direction: column; justify-content: center; max-width: 72%; }
.feature-card__eyebrow { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; opacity: .85; }
.feature-card__title { font-family: var(--font-display); font-size: 25px; line-height: 1.08; text-transform: uppercase; letter-spacing: .04em; margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.feature-card__by { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; opacity: .85; margin-top: 10px; }
.feature-card .btn { margin-top: 16px; align-self: flex-start; }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.dots span { width: 6px; height: 6px; border-radius: 3px; background: var(--line-strong); transition: width .35s var(--ease), background .3s; }
.dots span.is-active { width: 18px; background: var(--accent); }

.trend-cards { gap: 10px; padding-bottom: 6px; }
.trend-card { flex: 0 0 132px; border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); scroll-snap-align: start; transition: transform .35s var(--ease), box-shadow .35s; }
.trend-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.trend-card .media { height: 96px; }
.trend-card__body { display: block; padding: 9px 11px 11px; }
.trend-card strong { display: block; font-size: 13px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trend-card span { font-size: 12px; color: var(--muted); }
@media (min-width: 768px) { .only-mobile { display: none !important; } }
@media (max-width: 767.98px) { .desktop-only { display: none !important; } }
@media (min-width: 1280px) { .below-xl { display: none !important; } }

.composer-card { padding: 16px 18px; margin-bottom: 14px; }
.composer-card__top { display: flex; gap: 12px; align-items: center; }
.composer-card__prompt { flex: 1; display: flex; align-items: center; height: 48px; padding: 0 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); font-size: 14.5px; transition: border-color .25s, background .25s; }
.composer-card__prompt:hover { border-color: var(--accent); background: var(--surface); }
.composer-card__actions { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.composer-card__actions > button, .composer-card__actions > a:not(.btn) { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border: 0; background: none; border-radius: 10px; font-size: 13.5px; font-weight: 500; color: var(--text-2); transition: background .2s, color .2s; }
.composer-card__actions > button:hover, .composer-card__actions > a:not(.btn):hover { background: var(--accent-softer); color: var(--text); }
.composer-card__actions .icon { color: var(--accent); }
.composer-card__actions .btn { margin-left: auto; height: 40px; padding: 0 26px; color: var(--on-accent); }

.pills { display: flex; gap: 4px; padding: 5px; margin: 0 0 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.pills::-webkit-scrollbar { display: none; }
.pills a { flex: none; padding: 8px 16px; border-radius: 12px; font-size: 14px; font-weight: 500; color: var(--text-2); transition: background .25s var(--ease), color .2s; }
.pills a:hover { background: var(--surface-3); color: var(--text); }
.pills a.is-active { background: var(--accent-gradient); color: var(--on-accent); font-weight: 600; box-shadow: 0 6px 14px -8px rgba(47, 87, 147, .8); }
.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin: 18px 0 14px; overflow-x: auto; scrollbar-width: none; }
.tabs a { position: relative; padding: 10px 0 12px; font-weight: 600; color: var(--muted); white-space: nowrap; font-size: 14.5px; transition: color .2s; }
.tabs a:hover { color: var(--text); }
.tabs a.is-active { color: var(--accent-ink); }
.tabs a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent-gradient); border-radius: 2px; transform: scaleX(0); transition: transform .35s var(--ease); }
.tabs a.is-active::after, .tabs a:hover::after { transform: scaleX(1); }
.tabs a:hover:not(.is-active)::after { opacity: .35; }

/* ==========================================================================
   Posts
   ========================================================================== */
.post + .post { margin-top: 16px; }
.post__head { display: flex; gap: 12px; align-items: center; padding: 16px 18px 0; }
.post__who { flex: 1; min-width: 0; }
.post__name { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 5px; }
.post__name a:hover { color: var(--accent-ink); }
.post__meta { font-size: 13px; color: var(--muted); display: flex; gap: 6px; align-items: center; min-width: 0; }
.post__meta > * { flex: none; }
.post__meta > .truncate { flex: 0 1 auto; min-width: 0; }
.post__meta .icon { width: 13px; height: 13px; }
.post__follow { height: 34px; padding: 0 16px; border-radius: 10px; font-size: 13px; }
.post__body { padding: 12px 18px 0; font-size: 15px; line-height: 1.6; word-wrap: break-word; overflow-wrap: anywhere; }
.post__body a.tag, .post__body a.mention, .comment a.tag, .comment a.mention { color: var(--accent); font-weight: 600; }
.post__body a.tag:hover { text-decoration: underline; text-underline-offset: 3px; }
.post__media { margin: 14px 18px 0; display: grid; gap: 8px; border-radius: 16px; overflow: hidden; }
.post__media .media { display: block; border-radius: 12px; cursor: pointer; }
.post__media img { min-height: 100%; }
.post__media--1 .media { border-radius: 16px; max-height: 620px; }
.post__media--1 img { height: auto; max-height: 620px; }
.post__media--2 { grid-template-columns: 1fr 1fr; aspect-ratio: 4 / 3; }
.post__media--3, .post__media--4 { grid-template-columns: 2.4fr 1fr; grid-template-rows: repeat(3, minmax(0, 1fr)); aspect-ratio: 4 / 3; }
.post__media--3 > :first-child, .post__media--4 > :first-child { grid-row: 1 / -1; }
.post__media--3 > :nth-child(2) { grid-row: span 2; }
.post__media-more::after { content: attr(data-more); position: absolute; inset: 0; display: grid; place-items: center; background: rgba(6, 10, 15, .5); color: #fff; font-size: 26px; font-weight: 600; pointer-events: none; backdrop-filter: blur(1px); }
.post__video { position: relative; margin: 14px 18px 0; border-radius: 16px; overflow: hidden; background: #000; }
.post__video video { display: block; width: 100%; max-height: 540px; }
.player { isolation: isolate; }
.player::before { content: ""; position: absolute; inset: -40px; z-index: -1; background: var(--poster, none) center / cover no-repeat; filter: blur(36px) brightness(.55) saturate(1.2); }
.player video { cursor: pointer; background: transparent; }
.player__toggle { position: absolute; left: 50%; top: 50%; z-index: 2; width: 68px; height: 68px; margin: -34px 0 0 -34px; border: 0; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(0, 0, 0, .45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .55); transition: opacity .3s, transform .35s var(--ease), background .2s; }
.player__toggle .icon { width: 28px; height: 28px; stroke: none; }
.player.is-paused .player__toggle .icon { margin-left: 4px; }
.player__toggle:hover { background: rgba(0, 0, 0, .62); transform: scale(1.07); }
.player.is-playing .player__toggle { opacity: 0; transform: scale(.8); pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .player.is-playing:hover .player__toggle { opacity: .92; transform: none; pointer-events: auto; } }
.player__mute { position: absolute; right: 12px; bottom: 16px; z-index: 2; width: 36px; height: 36px; border: 0; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(0, 0, 0, .45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .2s, transform .25s var(--ease); }
.player__mute:hover { background: rgba(0, 0, 0, .65); transform: scale(1.06); }
.player__mute .icon { width: 18px; height: 18px; }
.player__progress { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 4px; background: rgba(255, 255, 255, .25); cursor: pointer; opacity: 0; transition: opacity .3s, height .2s var(--ease); }
.player__progress::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18px; }
.player__progress:hover { height: 7px; }
.player__progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #648cc9, #c5d5ee); }
.player.has-played .player__progress { opacity: 1; }
.post img, .post video, .reel video, .lightbox img { -webkit-touch-callout: none; -webkit-user-drag: none; user-select: none; }
.post__reel-link { position: absolute; z-index: 2; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(0, 0, 0, .5); color: #fff; font-size: 12.5px; font-weight: 600; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .2s, transform .25s var(--ease); }
.post__reel-link:hover { background: rgba(0, 0, 0, .72); transform: translateY(-1px); }
.post__stack { margin: 14px 18px 0; display: grid; gap: 10px; }
.post__frame { position: relative; margin: 0; border-radius: 16px; overflow: hidden; background: var(--surface-3); cursor: zoom-in; scroll-margin-top: calc(var(--topbar) + 14px); }
.post__frame img { display: block; width: 100%; height: auto; max-height: 86vh; object-fit: contain; }
.post__frame:target { animation: frame-glow 1.8s var(--ease); }
@keyframes frame-glow { 0%, 40% { box-shadow: 0 0 0 3px var(--accent); } 100% { box-shadow: 0 0 0 3px transparent; } }
.post__count { position: absolute; top: 12px; right: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 12px; font-weight: 600; font-variant-numeric: lining-nums tabular-nums; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.more-like { margin-top: 30px; }
.more-like__head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.post + .more-like__head { margin-top: 30px; }
.more-like__head h2 { font-family: var(--font-display); font-size: 22px; font-weight: 500; letter-spacing: .02em; white-space: nowrap; }
.more-like__line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }
.feed-more { justify-content: center; margin: 18px 0; }

.credits { margin: 14px 18px 0; padding: 12px 14px; border-radius: 14px; background: var(--accent-softer); border: 1px solid var(--accent-soft); }
.credits__title { display: flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.credits__title .icon { width: 14px; height: 14px; }
.credits__list { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.credit { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; max-width: 100%; transition: border-color .2s, transform .25s var(--ease); }
.credit:hover { border-color: var(--accent); transform: translateY(-1px); }
.credit .avatar { width: 24px; height: 24px; }
.credit .avatar--mono { font-size: 10px; }
.credit > span:not(.credit__role) { white-space: nowrap; }
.credit__role { color: var(--muted); white-space: nowrap; }
.credit--pending { border-style: dashed; opacity: .78; }

.post__foot { display: flex; align-items: center; gap: 4px; padding: 10px 10px 10px; margin-top: 10px; }
.post__foot > button, .post__foot > a { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px; border: 0; background: none; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--text-2); transition: background .2s, color .2s; }
.post__foot > button:hover, .post__foot > a:hover { background: var(--surface-3); color: var(--text); }
.post__foot .spacer { flex: 1; }
.post__foot--media { margin-top: 4px; padding-bottom: 2px; }
.post__text--below { padding-bottom: 16px; }
.post__text--below .post__body { padding-top: 0; }
.post__text:not(.post__text--below) + .post__foot { margin-top: 6px; }
.post__foot .like.is-on { color: var(--heart); }
.post__foot .like.is-on .icon { fill: currentColor; animation: pop .45s var(--ease); }
.post__foot .save.is-on { color: var(--accent); }
.post__foot .save.is-on .icon { fill: currentColor; }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
.burst { position: absolute; pointer-events: none; width: 1px; height: 1px; }
.burst i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--heart); animation: burst .6s var(--ease) forwards; }
@keyframes burst { from { transform: translate(0, 0) scale(1); opacity: 1; } to { transform: translate(var(--bx), var(--by)) scale(.2); opacity: 0; } }
.post__comments { border-top: 1px solid var(--line); padding: 14px 18px 18px; background: var(--surface-2); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.comment { display: flex; gap: 10px; animation: drop-in .4s var(--ease); }
.comment + .comment { margin-top: 12px; }
.comment__bubble { flex: 1; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 4px 14px 14px 14px; padding: 9px 12px; font-size: 14px; }
.comment__bubble strong { font-size: 13.5px; }
.comment__bubble p { margin-top: 2px; overflow-wrap: anywhere; }
.comment__meta { font-size: 12px; color: var(--muted); margin-top: 4px; display: flex; gap: 10px; }
.comment__meta button { background: none; border: 0; padding: 0; color: var(--muted); font-size: 12px; }
.comment-form { display: flex; gap: 10px; align-items: flex-end; margin-top: 12px; }
.comment-form .textarea { min-height: 44px; height: 44px; padding: 11px 16px; line-height: 20px; border-radius: 22px; resize: none; overflow-y: hidden; scrollbar-width: thin; }
.comment-form .textarea.is-multiline, .thread__form .textarea.is-multiline { border-radius: 18px; }
.comments-fit { overflow-y: auto; overscroll-behavior: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 28px), transparent); }
.comments-fit.is-end { -webkit-mask-image: none; mask-image: none; }
.comments-fit::-webkit-scrollbar, .reel-panel__list::-webkit-scrollbar { display: none; }

/* Modal (composer) and lightbox */
.modal { position: fixed; inset: 0; z-index: 80; display: none; align-items: flex-end; justify-content: center; background: rgba(4, 7, 12, .55); backdrop-filter: blur(3px); }
.modal.is-open, .modal:target { display: flex; animation: fade .25s var(--ease); }
@keyframes fade { from { opacity: 0; } }
/* The dialog keeps its rounded corners: only the body between the fixed head and foot scrolls,
   so the scrollbar never runs into a corner. */
.modal__dialog { width: 100%; max-height: 94dvh; display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border-radius: 22px 22px 0 0; box-shadow: var(--shadow-lg); animation: sheet-in .38s var(--ease); }
.modal__dialog > form { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.modal__dialog .modal__head, .modal__dialog .modal__foot { flex: none; }
.modal__dialog .modal__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.modal__dialog .modal__body::-webkit-scrollbar { width: 6px; }
.modal__dialog .modal__body::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 6px; }
.modal__dialog .modal__body::-webkit-scrollbar-track { background: transparent; }
@keyframes sheet-in { from { transform: translateY(30px) scale(.98); opacity: 0; } }
.modal__head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--surface); }
.modal__title { font-size: 19px; font-weight: 700; }
.modal__body { padding: 18px; }
.modal__foot { position: sticky; bottom: 0; display: flex; gap: 10px; justify-content: flex-end; padding: 12px 18px calc(12px + var(--safe-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
.card-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 20px; border-top: 1px solid var(--line); }
.photo-pickers { display: grid; gap: 22px; }
@media (min-width: 900px) { .photo-pickers { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 28px; } }
.photo-picker { display: flex; align-items: center; gap: 18px; }
.photo-picker strong { display: block; font-size: 15px; }
.photo-picker p { margin-top: 4px; max-width: 320px; }
.photo-picker--cover { flex-wrap: wrap; }
.pick { position: relative; display: block; flex: none; cursor: pointer; }
.pick input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.pick input:focus-visible ~ .pick__badge { box-shadow: 0 0 0 3px var(--glow); }
.pick--avatar, .pick--avatar .avatar { width: 136px; height: 136px; border-radius: 50%; }
.pick--avatar .avatar { box-shadow: 0 0 0 4px var(--surface), 0 0 0 5px var(--line); }
.pick--avatar .avatar--mono { font-size: 42px; }
.pick--cover { width: 360px; max-width: 100%; height: 150px; border-radius: 16px; overflow: hidden; background: #0c131e; box-shadow: 0 0 0 1px var(--line); }
.pick--cover .media { position: absolute; inset: 0; }
.pick--cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.pick--cover:hover img { transform: scale(1.05); }
.pick__overlay { position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; justify-items: center; gap: 4px; border-radius: inherit; background: rgba(6, 10, 16, .5); color: #fff; font-size: 12.5px; font-weight: 600; opacity: 0; transition: opacity .25s var(--ease); pointer-events: none; }
.pick__overlay .icon { width: 24px; height: 24px; }
.pick:hover .pick__overlay, .pick:focus-within .pick__overlay { opacity: 1; }
.pick__badge { position: absolute; z-index: 2; right: 2px; bottom: 2px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-gradient); color: var(--on-accent); box-shadow: 0 0 0 3px var(--surface), var(--shadow-sm); pointer-events: none; transition: transform .3s var(--ease); }
.pick__badge .icon { width: 17px; height: 17px; }
.pick:hover .pick__badge { transform: scale(1.08); }
.pick--cover .pick__badge { right: 10px; bottom: 10px; box-shadow: var(--shadow-sm); }
.link-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 0; border: 0; background: none; color: var(--accent); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.profile__avatar .pick--avatar, .profile__avatar .pick--avatar .avatar { width: 112px; height: 112px; }
.profile__avatar .pick--avatar .avatar { box-shadow: 0 0 0 5px var(--surface), var(--shadow); }
.profile__cover .pick--cover { position: absolute; inset: 0; width: auto; height: auto; border-radius: 0; box-shadow: none; background: none; }
.profile__cover .pick--cover .pick__badge { top: auto; right: 14px; bottom: 14px; }
.avatar-editor__dialog { max-width: 440px; }
.avatar-editor__stage { position: relative; width: min(340px, 100%); aspect-ratio: 1; margin: 0 auto; overflow: hidden; border-radius: 18px; background: #060a10; cursor: grab; touch-action: none; user-select: none; outline: none; }
.avatar-editor__stage:focus-visible { box-shadow: 0 0 0 3px var(--glow); }
.avatar-editor__stage.is-dragging { cursor: grabbing; }
.avatar-editor__stage img { position: absolute; left: 0; top: 0; max-width: none; height: auto; transform-origin: 0 0; pointer-events: none; -webkit-user-drag: none; }
.avatar-editor__ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .9); box-shadow: 0 0 0 999px rgba(6, 10, 16, .58); pointer-events: none; }
.avatar-editor__zoom { display: flex; align-items: center; gap: 12px; width: min(340px, 100%); margin: 18px auto 0; color: var(--muted); }
.avatar-editor__zoom input { flex: 1; accent-color: var(--accent); }
.avatar-editor__hint { text-align: center; margin-top: 10px; }
.avatar-editor.is-cover .avatar-editor__dialog { max-width: 720px; }
.avatar-editor.is-cover .avatar-editor__stage { width: 100%; aspect-ratio: 1500 / 560; border-radius: 14px; }
.avatar-editor.is-cover .avatar-editor__ring { inset: 0; border-radius: 14px; box-shadow: none; border-color: rgba(255, 255, 255, .7); }
.avatar-editor.is-cover .avatar-editor__zoom { width: min(420px, 100%); }
@media (max-width: 599.98px) {
  .photo-picker--cover .pick--cover { width: 100%; height: auto; aspect-ratio: 1500 / 560; }
}
@media (min-width: 640px) {
  .modal { align-items: center; padding: 24px; }
  .modal__dialog { max-width: 640px; border-radius: 22px; }
  .modal__foot { padding-bottom: 12px; }
}
.composer__text { width: 100%; border: 0; resize: none; min-height: 140px; font-size: 17px; line-height: 1.55; background: transparent; color: var(--text); }
.composer__text:focus { outline: none; }
.composer__previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 8px; margin-top: 10px; }
.composer__previews:empty { display: none; }
.composer__previews figure { margin: 0; position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--surface-3); animation: pop .35s var(--ease); }
.composer__previews img, .composer__previews video { width: 100%; height: 100%; object-fit: cover; }
.composer__tools { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.credit-editor { margin-top: 16px; padding: 14px; border-radius: 16px; border: 1px solid var(--accent-soft); background: var(--accent-softer); }
.credit-editor__head { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.credit-editor__head .icon { color: var(--accent); margin-top: 2px; }
.credit-editor__head strong { display: block; font-size: 14.5px; }
.credit-editor__head p { font-size: 13px; color: var(--muted); }
.credit-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 34px; gap: 8px; align-items: center; }
.credit-row + .credit-row { margin-top: 8px; }
.credit-row .input, .credit-row .select { min-height: 40px; padding: 8px 12px; font-size: 14px; background: var(--surface); }
.autocomplete { position: relative; }
.autocomplete__list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 10; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); max-height: 240px; overflow-y: auto; }
.autocomplete__list button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; background: none; text-align: left; font-size: 14px; color: var(--text); }
.autocomplete__list button:hover { background: var(--surface-3); }
.autocomplete__list small { display: block; color: var(--muted); font-size: 12px; }
.select-inline { height: 34px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); font-size: 13px; color: var(--text); }
.lightbox { background: rgba(2, 4, 6, .94); align-items: center; }
.lightbox img { max-width: 94vw; max-height: 90vh; object-fit: contain; border-radius: 8px; animation: zoom-in .35s var(--ease); }
@keyframes zoom-in { from { transform: scale(.94); opacity: 0; } }
.lightbox__close { position: absolute; top: 14px; right: 14px; color: #fff; }

/* ==========================================================================
   Right panel widgets
   ========================================================================== */
.profile-hero { overflow: hidden; }
.profile-hero__media { position: relative; height: 220px; color: #fff; }
.profile-hero__media .media { position: absolute; inset: 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.profile-hero__media::after { content: ""; position: absolute; inset: 0; background: var(--scrim); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.profile-hero__avatar { position: absolute; left: 18px; top: 18px; z-index: 1; }
.profile-hero__info { position: absolute; left: 18px; right: 18px; bottom: 14px; z-index: 1; }
.profile-hero__name { font-size: 21px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.profile-hero__role { font-size: 13.5px; opacity: .92; }
.profile-hero__loc { font-size: 12.5px; opacity: .8; display: flex; align-items: center; gap: 5px; margin-top: 4px; }
.profile-hero__loc .icon { width: 13px; height: 13px; }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); padding: 14px 4px 4px; }
.stats-row > div { padding: 0 14px; }
.stats-row > div + div { border-left: 1px solid var(--line); }
.stats-row strong { display: block; font-size: 19px; font-weight: 700; font-variant-numeric: lining-nums tabular-nums; }
.stats-row span { font-size: 12.5px; color: var(--muted); }
.profile-hero__actions { display: flex; gap: 8px; padding: 14px 16px 16px; }
.profile-hero__actions .btn--accent { flex: 1; }

.rank-list a { display: flex; align-items: center; gap: 12px; padding: 9px 18px; transition: background .2s; }
.rank-list a:hover { background: var(--surface-2); }
.rank-list__n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); font-size: 12.5px; font-weight: 700; flex: none; }
.rank-list .media { width: 44px; height: 44px; border-radius: 10px; flex: none; }
.rank-list strong { display: block; font-size: 14px; font-weight: 600; }
.rank-list span { font-size: 12.5px; color: var(--muted); }
.rank-list .trend { color: var(--accent); margin-left: auto; transition: transform .3s var(--ease); }
.rank-list a:hover .trend { transform: translate(2px, -2px); }

.event-row { display: flex; align-items: center; gap: 12px; padding: 10px 18px; transition: background .2s; }
.event-row:hover { background: var(--surface-2); }
.event-row .media { width: 52px; height: 52px; border-radius: 10px; flex: none; }
.event-row__body { flex: 1; min-width: 0; }
.event-row__title { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event-row__meta { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.event-row__meta .icon { width: 12px; height: 12px; }
.date-tile { width: 50px; height: 56px; border-radius: 12px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--text); line-height: 1; }
.date-tile small { font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.date-tile strong { font-size: 21px; font-weight: 700; margin-top: 3px; font-variant-numeric: lining-nums; }
.date-tile--lg { width: 72px; height: 80px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.date-tile--lg strong { font-size: 30px; }
.save-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; color: var(--text-2); flex: none; transition: border-color .2s, color .2s, transform .25s var(--ease); }
.save-btn:hover { border-color: var(--accent); color: var(--accent); }
.save-btn.is-on { color: var(--accent); border-color: var(--accent); }
.save-btn.is-on .icon { fill: currentColor; animation: pop .45s var(--ease); }

.person-row { display: flex; gap: 12px; align-items: center; padding: 10px 18px; transition: background .2s; }
.person-row:hover { background: var(--surface-2); }
.person-row + .person-row { border-top: 1px solid var(--line); }
.person-row__who { flex: 1; min-width: 0; }
.person-row__name { font-weight: 600; font-size: 14.5px; display: flex; gap: 4px; align-items: center; }
.person-row__line { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-foot { font-size: 12px; color: var(--muted); padding: 0 6px; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.rail-foot a:hover { color: var(--accent); }

/* ==========================================================================
   Passport / profile
   ========================================================================== */
.profile { overflow: hidden; }
.profile__cover { position: relative; height: 210px; }
.profile__cover .media { position: absolute; inset: 0; }
.profile__cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 7, 12, .25), transparent 35%, transparent 65%, rgba(4, 7, 12, .25)); pointer-events: none; }
.profile__cover-actions { position: absolute; left: 12px; right: 12px; top: 12px; z-index: 1; display: flex; justify-content: space-between; }
.glass-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(6, 10, 15, .35); border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(8px); transition: background .25s, transform .25s var(--ease); }
.glass-btn:hover { background: rgba(6, 10, 15, .55); transform: scale(1.05); }
.glass-btn.is-on .icon { fill: currentColor; }
.profile__head { position: relative; padding: 0 20px 18px; }
.profile__avatar { margin-top: -56px; position: relative; z-index: 1; }
.profile__avatar .avatar { box-shadow: 0 0 0 5px var(--surface), var(--shadow); }
.profile__top { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; }
.profile__name { font-size: 25px; font-weight: 700; letter-spacing: -.02em; display: flex; align-items: center; gap: 7px; margin-top: 10px; }
.profile__name .verified .icon { width: 21px; height: 21px; }
.profile__role { color: var(--text-2); font-weight: 500; }
.profile__companies { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.profile__company { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 4px 11px 4px 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-3); color: var(--text); font-size: 13px; font-weight: 600; transition: border-color .2s, background .2s; }
.profile__company:hover { border-color: var(--accent); background: var(--accent-soft); }
.profile__company .company-logo--xs { width: 24px; height: 24px; border-radius: 50%; font-size: 9.5px; }
.profile__company--more { padding-left: 11px; color: var(--muted); }
.profile__facts { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.profile__facts span, .profile__facts a { display: inline-flex; align-items: center; gap: 5px; }
.profile__facts a:hover { color: var(--accent); }
.profile__facts .icon { width: 14px; height: 14px; }
.profile__bio { margin-top: 12px; color: var(--text-2); white-space: pre-line; max-width: 640px; }
.profile__stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.profile__stats > div { padding-right: 8px; }
.profile__stats > div + div { border-left: 1px solid var(--line); padding-left: 14px; }
.profile__stats strong { display: block; font-size: 20px; font-weight: 700; font-variant-numeric: lining-nums tabular-nums; }
.profile__stats span { font-size: 12.5px; color: var(--muted); }
.profile__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.profile__actions .btn--accent { flex: 1 1 160px; max-width: 260px; }
@media (max-width: 599.98px) {
  .profile__cover { height: 240px; }
  .profile__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 12px; }
  .profile__stats > div:nth-child(4) { border-left: 0; padding-left: 0; }
  .profile__actions .btn--accent { max-width: none; }
}

/* The Fashion Passport card */
.passport-card { position: relative; margin: 0 0 16px; padding: 18px 20px; border-radius: 18px; color: #e4eaf4; overflow: hidden; background: radial-gradient(140% 120% at 100% 0%, #1a2a43 0%, #0a111c 48%, #060a10 100%); border: 1px solid #17273e; box-shadow: var(--shadow); transform-style: preserve-3d; transition: transform .6s var(--ease), box-shadow .4s; }
.passport-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(115deg, rgba(114, 153, 212, .04) 0 2px, transparent 2px 10px); }
.passport-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(500px circle at var(--mx, 70%) var(--my, 0%), rgba(187, 207, 238, .14), transparent 40%); }
.passport-card__top { display: flex; justify-content: space-between; gap: 12px; position: relative; }
.passport-card__issuer { font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: #7299d4; }
.passport-card__number { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 13.5px; letter-spacing: .14em; color: #ccdaef; margin-top: 4px; }
.passport-card__mark { font-family: var(--font-display); font-size: 22px; letter-spacing: .08em; color: #85a9e0; }
.passport-card__seals { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; position: relative; }
.seal { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 9px; font-size: 12.5px; font-weight: 600; border: 1px solid; }
.seal .icon { width: 15px; height: 15px; }
.seal--verified { color: #9fe0b6; border-color: rgba(120, 200, 150, .4); background: rgba(47, 125, 79, .18); }
.seal--trust { color: #85a9e0; border-color: rgba(114, 153, 212, .45); background: rgba(114, 153, 212, .1); }
.seal--founder { color: #acc5ea; border-color: rgba(172, 197, 234, .35); background: rgba(172, 197, 234, .08); }
.seal--muted { color: var(--ink-muted); border-color: var(--ink-line); background: rgba(255, 255, 255, .03); }
.passport-card__mrz { margin-top: 14px; font-family: "SFMono-Regular", Consolas, monospace; font-size: 11px; letter-spacing: .18em; color: rgba(204, 218, 239, .32); white-space: nowrap; overflow: hidden; position: relative; }

.section-card .card__body { padding-top: 12px; }
.timeline { display: grid; gap: 16px; }
.timeline__item { display: flex; gap: 14px; }
.timeline__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.timeline__title { font-weight: 600; }
.timeline__sub { color: var(--text-2); font-size: 14px; }
.timeline__when { color: var(--muted); font-size: 13px; }
.timeline__desc { font-size: 14px; color: var(--text-2); margin-top: 6px; white-space: pre-line; }
.skill-list { display: flex; flex-wrap: wrap; gap: 8px; }
.skill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); font-size: 13.5px; font-weight: 500; transition: border-color .2s, transform .25s var(--ease); }
.skill:hover { border-color: var(--accent); transform: translateY(-1px); }
.skill form { display: inline-flex; }
.skill button { border: 0; background: none; padding: 0; color: var(--muted); display: inline-flex; }
.grid-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.grid-tiles a { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; display: block; }
.grid-tiles .media { position: absolute; inset: 0; }
.grid-tiles a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(4, 7, 12, .35)); opacity: 0; transition: opacity .35s; }
.grid-tiles a:hover::after { opacity: 1; }
.grid-tiles__badge { position: absolute; top: 8px; right: 8px; z-index: 1; color: #fff; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5)); }
.grid-tiles__credit { position: absolute; left: 8px; bottom: 8px; z-index: 1; padding: 2px 8px; border-radius: 999px; background: rgba(4, 7, 12, .7); color: #85a9e0; font-size: 11px; font-weight: 600; }
.reel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.reel-tile { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: #060a10; color: #fff; }
.reel-tile .media { position: absolute; inset: 0; }
.reel-tile .media img, .reel-tile .media video { width: 100%; height: 100%; object-fit: cover; }
.reel-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(4, 7, 12, .65)); transition: background .35s; }
.reel-tile:hover::after { background: linear-gradient(180deg, rgba(4, 7, 12, .15), rgba(4, 7, 12, .7)); }
.reel-tile__play { position: absolute; z-index: 1; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transform: scale(.7); transition: opacity .3s, transform .35s var(--ease); }
.reel-tile__play .icon { width: 22px; height: 22px; margin-left: 3px; stroke: none; }
.reel-tile:hover .reel-tile__play { opacity: 1; transform: none; }
.reel-tile__count { position: absolute; z-index: 1; left: 10px; bottom: 9px; display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.reel-tile__count .icon { width: 15px; height: 15px; stroke: none; }
.collab { display: flex; gap: 12px; align-items: center; padding: 12px 0; transition: transform .3s var(--ease); }
.collab:hover { transform: translateX(3px); }
.collab + .collab { border-top: 1px solid var(--line); }
.collab__thumb { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--surface-3); flex: none; display: grid; place-items: center; color: var(--muted); }
.checklist li { display: flex; gap: 10px; align-items: center; padding: 7px 0; font-size: 14px; color: var(--text-2); }
.checklist .icon { color: var(--accent); }
.meter { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--accent-gradient); border-radius: 999px; transform-origin: left; animation: grow 1.2s var(--ease); }
@keyframes grow { from { transform: scaleX(0); } }
.edit-list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; }
.edit-list li + li { border-top: 1px solid var(--line); }
details.add-form { margin-top: 12px; border: 1px dashed var(--line-strong); border-radius: 14px; padding: 0 14px; transition: border-color .2s; }
details.add-form:hover { border-color: var(--accent); }
details.add-form[open] { padding-bottom: 14px; }
details.add-form summary { cursor: pointer; padding: 12px 0; font-weight: 600; font-size: 14px; color: var(--accent); list-style: none; display: flex; gap: 8px; align-items: center; }
details.add-form summary::-webkit-details-marker { display: none; }

/* ==========================================================================
   Explore, network, events, credits, notifications, search
   ========================================================================== */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 4px; margin-bottom: 14px; }
.chips::-webkit-scrollbar { display: none; }
.chips a { flex: none; height: 36px; padding: 0 16px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); font-size: 13.5px; font-weight: 500; color: var(--text-2); transition: background .25s var(--ease), color .2s, border-color .2s; }
.chips a:hover { border-color: var(--accent); color: var(--text); }
.chips a.is-active { background: var(--accent-gradient); border-color: transparent; color: var(--on-accent); font-weight: 600; }
.chips .count-badge { min-width: 20px; height: 20px; font-size: 10.5px; }
.chips a.is-active .count-badge { background: rgba(255, 255, 255, .25); }

.explore-hero { position: relative; display: block; height: 220px; border-radius: 22px; overflow: hidden; color: #fff; margin-bottom: 14px; }
.explore-hero .media { position: absolute; inset: 0; }
.explore-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 10, 15, .72), rgba(6, 10, 15, .1) 70%); }
.explore-hero__text { position: absolute; left: 22px; bottom: 22px; right: 80px; z-index: 1; font-family: var(--font-display); font-size: 28px; line-height: 1.12; }
.explore-hero__arrow { position: absolute; right: 18px; bottom: 20px; z-index: 1; }
.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 900px) { .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cat-tile { position: relative; aspect-ratio: 1 / 1.1; border-radius: 16px; overflow: hidden; color: #fff; display: block; transition: transform .4s var(--ease), box-shadow .4s; }
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-tile .media { position: absolute; inset: 0; }
.cat-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(4, 7, 12, .82)); }
.cat-tile__text { position: absolute; left: 11px; right: 11px; bottom: 10px; z-index: 1; }
.cat-tile strong { display: block; font-size: 13.5px; }
.cat-tile span { font-size: 12.5px; opacity: .85; font-variant-numeric: lining-nums; }
@media (min-width: 900px) {
  .cat-tile--wide { grid-column: 1 / -1; aspect-ratio: auto; height: 132px; }
  .cat-tile--wide .cat-tile__text { left: 22px; bottom: 18px; }
  .cat-tile--wide strong { font-family: var(--font-display); font-size: 26px; font-weight: 500; }
  .cat-tile--wide::after { background: linear-gradient(90deg, rgba(4, 7, 12, .82), transparent 70%); }
}
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
@media (min-width: 900px) { .work-grid { grid-template-columns: repeat(4, 1fr); } }
.work-grid a { position: relative; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; }
.work-grid .media { position: absolute; inset: 0; }

.people-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.person-card { text-align: center; padding: 22px 16px 16px; display: flex; flex-direction: column; align-items: center; }
.person-card .avatar { margin-bottom: 10px; transition: transform .45s var(--ease); }
.person-card:hover .avatar { transform: scale(1.05); }
.person-card__name { font-weight: 700; display: flex; gap: 4px; align-items: center; justify-content: center; }
.person-card__line { font-size: 13px; color: var(--muted); min-height: 38px; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.person-card__trust { margin: 10px 0 14px; }
.person-card form, .person-card .btn { margin-top: auto; width: 100%; }
.list-card > * + * { border-top: 1px solid var(--line); }
.list-item { display: flex; gap: 12px; align-items: center; padding: 14px 18px; transition: background .2s; }
.list-item:hover { background: var(--surface-2); }
.list-item__body { flex: 1; min-width: 0; }
.list-item__actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 520px) { .list-item { flex-wrap: wrap; } .list-item__actions { width: 100%; justify-content: stretch; } .list-item__actions > * { flex: 1; } .list-item__actions .btn { width: 100%; } }
.notice { display: flex; gap: 12px; padding: 14px 18px; align-items: flex-start; transition: background .2s; }
.notice:hover { background: var(--surface-2); }
.notice.is-unread { background: var(--accent-softer); }
.notice__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: 8px; flex: none; box-shadow: 0 0 0 4px var(--accent-soft); }
.notice__text { flex: 1; font-size: 14.5px; }
.notice__text small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.credit-request { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; padding: 16px 18px; align-items: center; }
.credit-request__thumb { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; background: var(--surface-3); display: grid; place-items: center; color: var(--muted); }
.credit-request__actions { grid-column: 1 / -1; display: flex; gap: 8px; }
@media (min-width: 600px) { .credit-request { grid-template-columns: 72px minmax(0, 1fr) auto; } .credit-request__actions { grid-column: auto; } }
.search-hero { position: relative; }
.search-hero .input { height: 52px; padding-left: 48px; font-size: 16px; border-radius: 14px; background: var(--surface); }
.search-hero > .icon { position: absolute; left: 16px; top: 16px; color: var(--muted); }
.filter-row { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 2px; scrollbar-width: none; }
.filter-row a { flex: none; }
.filter-row a.is-active .chip { background: var(--accent-gradient); color: var(--on-accent); border-color: transparent; }

/* Events */
.event-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.event-card { overflow: hidden; display: flex; flex-direction: column; }
.event-card__media { position: relative; height: 170px; }
.event-card__media .media { position: absolute; inset: 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.event-card__date { position: absolute; left: 12px; top: 12px; z-index: 1; }
.event-card__date .date-tile { background: var(--surface); box-shadow: var(--shadow); }
.event-card__save { position: absolute; right: 12px; top: 12px; z-index: 1; }
.event-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.event-card__cat { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.event-card__title { font-size: 16px; font-weight: 700; line-height: 1.3; }
.event-card__meta { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.event-card__meta .icon { width: 14px; height: 14px; }
.event-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; }
.event-hero { position: relative; height: 280px; border-radius: 22px; overflow: hidden; }
.event-hero .media { position: absolute; inset: 0; }
.event-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 7, 12, .35), transparent 30%, transparent 70%, rgba(4, 7, 12, .2)); }
.event-hero__actions { position: absolute; left: 14px; right: 14px; top: 14px; z-index: 1; display: flex; justify-content: space-between; }
.event-hero__actions > div { display: flex; gap: 8px; }
.event-body { position: relative; margin-top: -44px; padding: 0 18px 18px; z-index: 1; }
.event-body .date-tile--lg { margin-bottom: 14px; }
.event-title { font-size: clamp(24px, 3.4vw, 30px); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.event-attend { display: flex; align-items: center; gap: 10px; margin: 16px 0; font-size: 14px; font-weight: 600; }
.info-card { display: grid; gap: 14px; padding: 16px 18px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); margin: 16px 0; }
.info-card > div { display: flex; gap: 12px; align-items: center; font-size: 14px; }
.info-card .icon { color: var(--accent); }
@media (min-width: 768px) { .event-hero { height: 360px; } }

/* ==========================================================================
   Messages
   ========================================================================== */
.inbox { display: grid; grid-template-columns: 1fr; }
.inbox__list { overflow: hidden; }
.inbox__thread { display: none; }
.inbox--thread .inbox__list { display: none; }
.inbox--thread .inbox__thread { display: flex; }
.inbox__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 6px; }
.inbox__head h1 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.inbox .chips { padding: 6px 16px 10px; margin: 0; }
.convo { display: flex; gap: 12px; align-items: center; padding: 12px 16px; transition: background .2s; position: relative; }
.convo:hover, .convo.is-active { background: var(--surface-2); }
.convo.is-active::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; background: var(--accent-gradient); border-radius: 0 3px 3px 0; }
.convo .avatar { width: 50px; height: 50px; }
.convo__body { flex: 1; min-width: 0; }
.convo__top { display: flex; justify-content: space-between; gap: 8px; }
.convo__name { font-weight: 600; font-size: 14.5px; }
.convo__time { font-size: 12px; color: var(--muted); flex: none; }
.convo__preview { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.convo__preview span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.convo.is-unread .convo__preview span { color: var(--text); font-weight: 500; }
.thread { flex-direction: column; min-height: 0; overflow: hidden; }
.thread__head { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.thread__messages { flex: 1; overflow-y: auto; padding: 18px 14px; display: flex; flex-direction: column; gap: 6px; background: var(--surface-2); min-height: 320px; max-height: calc(100dvh - 260px); }
.bubble { max-width: 78%; padding: 9px 13px; border-radius: 18px; font-size: 14.5px; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-wrap; animation: bubble-in .35s var(--ease); }
@keyframes bubble-in { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.bubble time { display: block; font-size: 10.5px; opacity: .65; margin-top: 3px; }
.bubble--them { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.bubble--me { align-self: flex-end; background: var(--accent-gradient); color: var(--on-accent); border-bottom-right-radius: 5px; }
.thread__form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--surface); }
.thread__form .textarea { min-height: 46px; height: 46px; border-radius: 23px; padding: 12px 16px; line-height: 20px; resize: none; overflow-y: hidden; scrollbar-width: thin; }
@media (min-width: 900px) {
  .inbox { grid-template-columns: 340px minmax(0, 1fr); height: calc(100vh - var(--topbar) - 44px); min-height: 520px; }
  .inbox .inbox__list { display: block; overflow-y: auto; border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
  .inbox .inbox__thread { display: flex; border-radius: 0 var(--radius-lg) var(--radius-lg) 0; border-left: 0; }
  .inbox > .card + .card { margin-top: 0; }
  .thread__messages { max-height: none; }
  .thread__back { display: none !important; }
}

/* ==========================================================================
   Reels (immersive)
   ========================================================================== */
/* The player is a dark stage in both themes. Phones: one reel fills the screen above the bottom
   bar. Tablets and desktops: a 9:16 frame centred on a blurred copy of the reel, actions beside it. */
body.page-reels { overflow: hidden; }
.page-reels .topbar { display: none; }
.page-reels .content { display: block; max-width: none; margin: 0; padding: 0; }
.page-reels .main { max-width: none; }
.page-reels .bottomnav { background: rgba(0, 0, 0, .92); border-top-color: #1d1d1d; }
.page-reels .bottomnav a { color: rgba(255, 255, 255, .65); }
.page-reels .bottomnav a.is-active { color: #85a9e0; }
.page-reels .bottomnav a.is-active .bn-icon { background: rgba(133, 169, 224, .16); }

.reels { position: relative; height: calc(100dvh - var(--bottomnav) - var(--safe-bottom)); background: #000; color: #fff; overflow: hidden; isolation: isolate; }
.reels__track { height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; outline: none; }
.reels__track::-webkit-scrollbar { display: none; }
.reels__head { position: absolute; z-index: 6; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 8px; padding: calc(10px + env(safe-area-inset-top)) 8px 22px 16px; background: linear-gradient(180deg, rgba(0, 0, 0, .5), transparent); pointer-events: none; }
.reels__head > * { pointer-events: auto; }
.reels__title { font-size: 24px; font-weight: 700; letter-spacing: -.01em; line-height: 1.1; margin-right: 4px; flex: none; }
.reels__title span { display: block; font-size: 12.5px; font-weight: 500; letter-spacing: 0; opacity: .75; }
.reels__tabs { display: flex; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.reels__tabs::-webkit-scrollbar { display: none; }
.reels__tabs a { flex: none; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .8); transition: background .25s var(--ease), color .2s; }
.reels__tabs a:hover { color: #fff; background: rgba(255, 255, 255, .14); }
.reels__tabs a.is-active { background: #fff; color: #0a1019; }
.reels__icon { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: #fff; transition: background .2s, transform .25s var(--ease); }
.reels__icon:hover { background: rgba(255, 255, 255, .14); }
.reels__icon .icon { width: 24px; height: 24px; }
.reels__search { margin-left: auto; }
.reels__nav { display: none; }
.reels__empty { height: 100%; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 32px; text-align: center; color: rgba(255, 255, 255, .86); }
.reels__empty h2 { font-size: 20px; }
.reels__empty p { opacity: .7; margin-bottom: 8px; }

.reel { position: relative; height: 100%; display: flex; align-items: center; justify-content: center; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; }
.reel__ambient { display: none; }
.reel__frame { position: relative; width: 100%; height: 100%; overflow: hidden; background: #060a10; }
.reel__video { display: block; width: 100%; height: 100%; object-fit: cover; background: #060a10; }
.reel__tap { position: absolute; inset: 0; z-index: 1; width: 100%; border: 0; background: none; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.reel__flash { position: absolute; left: 50%; top: 50%; z-index: 2; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .42); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transform: scale(.6); pointer-events: none; transition: opacity .25s, transform .35s var(--ease); }
.reel__flash .icon { width: 32px; height: 32px; margin-left: 4px; stroke: none; }
.reel.is-paused .reel__flash { opacity: 1; transform: none; }
.reel__heart { position: absolute; left: 50%; top: 50%; z-index: 3; width: 112px; height: 112px; margin: -56px 0 0 -56px; color: #fff; opacity: 0; pointer-events: none; filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .35)); }
.reel__heart .icon { width: 100%; height: 100%; stroke: none; }
.reel__heart.is-on { animation: reel-heart .95s var(--ease) forwards; }
@keyframes reel-heart {
  0% { opacity: 0; transform: scale(.3) rotate(-14deg); }
  18% { opacity: 1; transform: scale(1.18) rotate(-6deg); }
  32% { transform: scale(.94) rotate(-4deg); }
  46% { transform: scale(1.04) rotate(-5deg); }
  78% { opacity: 1; transform: scale(1) rotate(-5deg) translateY(-6px); }
  100% { opacity: 0; transform: scale(1.12) rotate(-5deg) translateY(-70px); }
}
.reel__mute { position: absolute; z-index: 5; top: calc(68px + env(safe-area-inset-top)); right: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(0, 0, 0, .42); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .2s, transform .25s var(--ease); }
.reel__mute:hover { background: rgba(0, 0, 0, .62); transform: scale(1.06); }
.reel__mute .icon { width: 18px; height: 18px; }

.reel__info { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 130px 78px 20px 16px; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .28) 38%, rgba(0, 0, 0, .8)); pointer-events: none; }
.reel__info > * { pointer-events: auto; }
.reel__who { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.reel__avatar .avatar { box-shadow: 0 0 0 2px #fff; }
.reel__name { font-size: 15px; font-weight: 700; text-shadow: 0 1px 3px rgba(0, 0, 0, .4); }
.reel__name:hover { text-decoration: underline; text-underline-offset: 3px; }
.reel__who .verified { color: #85a9e0; }
.reel__who form { margin-left: 6px; }
.reel__follow { height: 30px; padding: 0 15px; border-radius: 999px; border: 1.5px solid #648cc9; background: rgba(0, 0, 0, .18); color: #fff; font-size: 13px; font-weight: 600; transition: background .25s, border-color .25s, transform .2s var(--ease); }
.reel__follow:hover { background: rgba(100, 140, 201, .3); transform: translateY(-1px); }
.reel__follow.is-on { border-color: rgba(255, 255, 255, .45); color: rgba(255, 255, 255, .85); }
.reel__caption { margin-top: 10px; max-width: 540px; font-size: 14.5px; line-height: 1.45; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.reel__caption p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.reel__caption.is-open p { display: block; max-height: 38vh; overflow-y: auto; }
.reel__caption a.tag, .reel__caption a.mention { color: rgba(255, 255, 255, .72); font-weight: 600; }
.reel__more { padding: 0; border: 0; background: none; color: rgba(255, 255, 255, .7); font-size: 13.5px; font-weight: 600; }
.reel__caption.is-open .reel__more, .reel__caption.is-short .reel__more { display: none; }
.reel__credits { margin-top: 8px; font-size: 12.5px; color: #85a9e0; line-height: 1.5; }
.reel__credits .icon { vertical-align: -2px; margin-right: 3px; }
.reel__credits span { color: rgba(255, 255, 255, .6); }
.reel__audio { margin-top: 10px; display: flex; align-items: center; gap: 8px; max-width: 250px; font-size: 13px; }
.reel__audio-icon { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .18); }
.reel__audio-icon .icon { width: 14px; height: 14px; }
.reel__audio-text { min-width: 0; overflow: hidden; white-space: nowrap; -webkit-mask-image: linear-gradient(90deg, #000 78%, transparent); mask-image: linear-gradient(90deg, #000 78%, transparent); }
.reel__marquee { display: inline-flex; gap: 32px; }
.reel.is-playing .reel__marquee { animation: marquee 11s linear infinite; }
@keyframes marquee { to { transform: translateX(calc(-50% - 16px)); } }
.reel__progress { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .22); cursor: pointer; transition: height .2s var(--ease); }
.reel__progress::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18px; }
.reel__progress:hover { height: 6px; }
.reel__progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #648cc9, #c5d5ee); }

.reel__actions { position: absolute; z-index: 4; right: 6px; bottom: 22px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.reel__act { min-width: 54px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px; border: 0; background: none; color: #fff; font-size: 12.5px; font-weight: 600; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); cursor: pointer; }
.reel__act .icon { width: 30px; height: 30px; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .45)); transition: transform .28s var(--ease); }
.reel__act:hover .icon { transform: scale(1.12); }
.reel__act:active .icon { transform: scale(.88); }
.reel__act span:empty { display: none; }
.reel__act.is-on .icon { fill: currentColor; animation: pop .45s var(--ease); }
.reel__act.like.is-on { color: var(--heart); }
.reel__act.save.is-on { color: #85a9e0; }
.reel__actions .menu--up .menu__panel { top: auto; bottom: calc(100% + 6px); right: 0; transform-origin: bottom right; color: var(--text); text-shadow: none; }
.reel__disc { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; border: 2px solid rgba(255, 255, 255, .9); margin-top: 2px; }
.reel__disc .avatar { width: 100%; height: 100%; }
.reel.is-playing .reel__disc { animation: spin 7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.reel-panel { position: fixed; inset: 0; z-index: 85; pointer-events: none; }
.reel-panel__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); opacity: 0; transition: opacity .3s; }
.reel-panel__sheet { position: absolute; left: 0; right: 0; bottom: 0; height: min(72dvh, 640px); display: flex; flex-direction: column; background: var(--surface); color: var(--text); border-radius: 22px 22px 0 0; box-shadow: var(--shadow-lg); transform: translateY(104%); transition: transform .42s var(--ease); }
.reel-panel.is-open { pointer-events: auto; }
.reel-panel.is-open .reel-panel__backdrop { opacity: 1; }
.reel-panel.is-open .reel-panel__sheet { transform: none; }
.reel-panel__grab { width: 40px; height: 4px; margin: 10px auto 0; border-radius: 2px; background: var(--line-strong); flex: none; }
.reel-panel__head { display: flex; align-items: center; justify-content: space-between; padding: 6px 10px 8px 18px; border-bottom: 1px solid var(--line); }
.reel-panel__head h2 { font-size: 16px; font-weight: 700; }
.reel-panel__list { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 14px 16px; scrollbar-width: none; }
.reel-panel__list.is-loading::before { content: "Loading comments…"; display: block; color: var(--muted); font-size: 14px; }
.reel-panel__empty { padding: 0 16px 24px; text-align: center; color: var(--muted); font-size: 14px; }
.reel-panel__form { margin: 0; align-items: center; padding: 10px 14px calc(10px + var(--safe-bottom)); border-top: 1px solid var(--line); }

@media (min-width: 768px) {
  .reels { --frame-w: min(calc((100vh - 40px) * .5625), calc(100vw - 84px - 190px)); height: 100vh; background: #05090e; }
  .reel { gap: 16px; padding-left: 70px; }
  .reel__ambient { display: block; position: absolute; inset: -60px; z-index: -1; background: center / cover no-repeat; filter: blur(64px) saturate(1.25) brightness(.7); opacity: .55; transform: scale(1.08); }
  .reel__frame { width: var(--frame-w); height: auto; aspect-ratio: 9 / 16; max-height: calc(100vh - 40px); border-radius: 18px; box-shadow: 0 34px 90px -24px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .06); }
  .reel__info { padding: 130px 18px 20px; border-radius: 0 0 18px 18px; }
  .reel__mute { top: 72px; }
  .reel__actions { position: relative; right: auto; bottom: auto; align-self: flex-end; margin-bottom: max(26px, calc((100vh - var(--frame-w) * 16 / 9) / 2 + 6px)); gap: 14px; }
  .reels__head { left: 50%; right: auto; top: max(20px, calc((100vh - var(--frame-w) * 16 / 9) / 2)); width: var(--frame-w); transform: translateX(-50%); padding: 14px 8px 26px 16px; border-radius: 18px 18px 0 0; }
  .reels__nav { position: absolute; z-index: 6; right: 24px; top: 50%; transform: translateY(-50%); display: none; gap: 10px; }
  .reels__nav-btn { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .08); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .2s, transform .25s var(--ease), opacity .2s; }
  .reels__nav-btn:hover { background: rgba(255, 255, 255, .2); transform: scale(1.07); }
  .reels__nav-btn:disabled { opacity: .3; pointer-events: none; }
  .reels__nav-btn .icon { width: 22px; height: 22px; }
  .reel-panel__backdrop { background: rgba(0, 0, 0, .25); }
  .reel-panel__sheet { left: auto; top: 0; width: 400px; height: auto; border-radius: 22px 0 0 22px; transform: translateX(104%); }
  .reel-panel__grab { display: none; }
}
@media (min-width: 1024px) {
  .reels { --frame-w: min(calc((100vh - 40px) * .5625), calc(100vw - var(--sidebar) - 190px)); }
}
@media (min-width: 1100px) { .reels__nav { display: grid; } }

/* ==========================================================================
   Trust page, settings, admin, legal, errors
   ========================================================================== */
.dark-panel { color: #e4eaf4; background: radial-gradient(120% 90% at 85% 0%, #17273e 0%, #090f19 46%, #060a10 100%); border-color: #131f32; }
.factor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(64px, auto); gap: 6px 14px; align-items: center; padding: 12px 0; }
.factor + .factor { border-top: 1px solid var(--line); }
.factor__name { font-weight: 600; font-size: 14.5px; }
.factor__weight { font-size: 12.5px; color: var(--muted); }
.factor__value { text-align: right; font-size: 19px; font-weight: 700; color: var(--accent); font-variant-numeric: lining-nums tabular-nums; }
.factor .meter { grid-column: 1 / -1; }
.trust-meter { display: flex; align-items: center; gap: 16px; }
.trust-meter__ring { --p: 0; width: 76px; height: 76px; border-radius: 50%; background: conic-gradient(#7299d4 calc(var(--p) * 1%), rgba(255, 255, 255, .1) 0); display: grid; place-items: center; flex: none; }
.trust-meter__ring span { width: 62px; height: 62px; border-radius: 50%; background: #080d14; display: grid; place-items: center; font-size: 22px; font-weight: 700; color: #85a9e0; font-variant-numeric: lining-nums; }
.levels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 16px; }
.levels div { text-align: center; padding: 8px 4px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .07); font-size: 11px; color: #8b96a7; }
.levels div.is-current { background: linear-gradient(180deg, #7299d4, #3f69a8); color: #0a101a; border-color: transparent; }
.levels strong { display: block; font-size: 12px; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 900px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 16px 18px; }
.stat__value { font-size: 30px; font-weight: 700; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.stat__label { font-size: 13px; color: var(--muted); margin-top: 6px; }
.stat__target { font-size: 12px; color: var(--accent); margin-top: 4px; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr { transition: background .2s; }
.table tbody tr:hover { background: var(--surface-2); }
.table tr:last-child td { border-bottom: 0; }
.admin-nav { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 18px; scrollbar-width: none; }
.admin-nav a { flex: none; }
.admin-nav a.is-active .chip { background: var(--accent-gradient); color: var(--on-accent); border-color: transparent; }
.evidence { max-width: 100%; border-radius: 12px; border: 1px solid var(--line); }
.prose { max-width: 720px; }
.prose h2 { font-size: 21px; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--text-2); margin-top: 10px; }
.prose ul { list-style: disc; padding-left: 20px; }
.error-page { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 24px; }
.error-page__code { font-family: var(--font-display); font-size: clamp(80px, 18vw, 150px); line-height: 1; background: linear-gradient(135deg, #90b1e3, #3f69a8); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: lining-nums; }
.error-page pre { text-align: left; max-width: 90vw; overflow: auto; font-size: 12px; background: #000; color: #ddd; padding: 14px; border-radius: 10px; margin-top: 24px; }

/* ==========================================================================
   Shares: reposts, the share sheet and posts sent in messages
   ========================================================================== */
.post__reposted { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--accent); }
.post__foot .repost.is-on { color: var(--accent); }
.reel__act.repost.is-on { color: #85a9e0; }
.shared { margin: 12px 18px 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface-2); }
.shared--gone { display: flex; gap: 8px; align-items: center; padding: 14px 16px; font-size: 14px; color: var(--muted); }
.shared__head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-size: 13.5px; min-width: 0; }
.shared__head strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shared__head .muted { flex: none; }
.shared__media { position: relative; display: block; aspect-ratio: 4 / 5; max-height: 520px; width: 100%; background: var(--surface-3); }
.shared__media img, .shared__media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.shared__badge { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 999px; background: rgba(4, 7, 12, .62); color: #fff; font-size: 12px; font-weight: 600; }
.shared__badge .icon { width: 15px; height: 15px; }
.shared__text { padding: 10px 14px 0; font-size: 14px; line-height: 1.55; color: var(--text-2); overflow-wrap: anywhere; }
.shared__text a.tag, .shared__text a.mention { color: var(--accent); font-weight: 600; }
.shared__open { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px 12px; font-size: 13px; font-weight: 600; color: var(--accent); }
.shared__open:hover { text-decoration: underline; text-underline-offset: 3px; }

.sheet__dialog { max-width: 520px; }
.sheet-page { max-width: 560px; margin: 0 auto; overflow: hidden; }
.share-sheet { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.share-sheet__post { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.share-sheet__post img, .share-sheet__ph { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); }
.share-sheet__section { padding: 14px 0 4px; }
.share-sheet__section + .share-sheet__section { border-top: 1px solid var(--line); margin-top: 10px; }
.share-sheet__title { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 700; margin-bottom: 10px; }
.share-sheet__title .icon { color: var(--accent); }
.share-sheet .textarea { min-height: 72px; width: 100%; }
.share-sheet__people { max-height: 300px; margin: 0 -4px; padding: 0 4px; }
.share-person { display: flex; gap: 12px; align-items: center; padding: 8px 0; }
.share-person + .share-person { border-top: 1px solid var(--line); }

.bubble__post { display: block; margin: -3px -7px 8px; width: 240px; max-width: 100%; border-radius: 12px; overflow: hidden; background: var(--surface); color: var(--text); border: 1px solid var(--line); white-space: normal; }
.bubble__post-media { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--surface-3); }
.bubble__post-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bubble__post-media span { position: absolute; top: 8px; right: 8px; color: #fff; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5)); }
.bubble__post-who { display: flex; align-items: center; gap: 6px; padding: 8px 10px 0; font-size: 13px; }
.bubble__post-text { display: block; padding: 4px 10px 10px; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.bubble__post-who:last-child { padding-bottom: 10px; }
.bubble__gone { display: block; font-size: 12.5px; opacity: .75; font-style: italic; margin-bottom: 4px; }

/* ==========================================================================
   Public landing page
   ========================================================================== */
.landing { background: var(--bg); }
.landing-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 40; display: flex; align-items: center; gap: 16px; height: 68px; padding: 0 max(16px, calc((100vw - 1180px) / 2)); color: #e6ecf6; transition: background .35s var(--ease), box-shadow .35s, color .35s; }
.landing-nav .wordmark { color: inherit; }
.landing-nav .wordmark__tag { color: inherit; opacity: .75; }
.landing-nav.is-solid { background: var(--surface); color: var(--text); box-shadow: 0 1px 0 var(--line); }
.landing-nav__links { display: none; gap: 26px; margin: 0 auto; font-size: 14px; font-weight: 600; }
.landing-nav__links a { opacity: .85; transition: opacity .2s; }
.landing-nav__links a:hover { opacity: 1; }
.landing-nav__actions { display: flex; gap: 8px; margin-left: auto; }
.landing-nav:not(.is-solid) .landing-nav__signin { color: #e6ecf6; }
@media (min-width: 900px) { .landing-nav__links { display: flex; } .landing-nav__actions { margin-left: 0; } }

.landing-hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; background: #060a10; color: #e6ecf6; }
.landing-hero .auth-shade { background: linear-gradient(180deg, rgba(6, 10, 16, .62) 0%, rgba(6, 10, 16, .58) 45%, rgba(6, 10, 16, .78) 70%, rgba(6, 10, 16, .94) 100%); }
@media (min-width: 900px) { .landing-hero .auth-shade { background: linear-gradient(90deg, rgba(6, 10, 16, .82) 0%, rgba(6, 10, 16, .45) 48%, rgba(6, 10, 16, .1) 100%), linear-gradient(180deg, rgba(6, 10, 16, .35), transparent 20%, transparent 70%, rgba(6, 10, 16, .6)); } }
.landing-hero__inner { position: relative; z-index: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 120px 20px 44px; }
.landing-hero .auth-show__eyebrow { color: #85a9e0; }
.landing-hero__title { margin-top: 16px; font-family: var(--font-display); font-size: clamp(48px, 8vw, 104px); font-weight: 500; line-height: .95; letter-spacing: -.01em; }
.landing-hero__title em { font-style: italic; color: #9dbbe7; }
.landing-hero__lead { margin-top: 20px; max-width: 540px; font-size: clamp(15.5px, 1.6vw, 18px); line-height: 1.6; color: rgba(230, 236, 246, .85); }
.landing-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.landing-hero__ghost { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .28); color: #e6ecf6; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.landing-hero__ghost:hover { color: #fff; border-color: #85a9e0; }
.landing-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 40px; max-width: 760px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(6, 10, 16, .42); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); overflow: hidden; }
.landing-stats > div { padding: 16px 18px; }
.landing-stats > div:nth-child(even) { border-left: 1px solid rgba(255, 255, 255, .1); }
.landing-stats > div:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .1); }
.landing-stats dt { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(230, 236, 246, .65); }
.landing-stats dd { margin: 6px 0 0; font-family: var(--font-display); font-size: clamp(26px, 3.4vw, 36px); font-weight: 500; font-variant-numeric: lining-nums; }
@media (min-width: 760px) {
  .landing-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .landing-stats > div:nth-child(n+2) { border-left: 1px solid rgba(255, 255, 255, .1); }
  .landing-stats > div:nth-child(n+3) { border-top: 0; }
}

.landing-section { max-width: 1180px; margin: 0 auto; padding: 84px 20px; scroll-margin-top: 60px; }
.landing-section__head { max-width: 680px; margin-bottom: 36px; }
.landing-section__title { margin-top: 10px; font-family: var(--font-display); font-size: clamp(32px, 4.4vw, 52px); font-weight: 500; line-height: 1.05; letter-spacing: -.01em; }
.landing-section__lead { margin-top: 14px; font-size: 16px; color: var(--text-2); }
.landing-features { display: grid; gap: 18px; }
@media (min-width: 700px) { .landing-features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .landing-features { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.landing-feature { border-radius: 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: transform .45s var(--ease), box-shadow .45s; }
.landing-feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.landing-feature__media { aspect-ratio: 16 / 10; overflow: hidden; }
.landing-feature__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform .8s var(--ease); }
.landing-feature:hover .landing-feature__media img { transform: scale(1.05); }
.landing-feature__body { padding: 20px 22px 24px; }
.landing-feature__icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-top: -42px; position: relative; box-shadow: 0 0 0 4px var(--surface); }
.landing-feature h3 { margin-top: 14px; font-family: var(--font-display); font-size: 24px; font-weight: 500; }
.landing-feature p { margin-top: 8px; font-size: 14.5px; line-height: 1.6; color: var(--text-2); }

.landing-trust { max-width: none; border-radius: 0; padding-left: max(20px, calc((100vw - 1140px) / 2)); padding-right: max(20px, calc((100vw - 1140px) / 2)); }
.landing-trust__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .landing-trust__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; } }
.landing-trust__lead { margin-top: 16px; max-width: 520px; font-size: 16px; line-height: 1.65; color: rgba(230, 236, 246, .78); }
.landing-factors { display: grid; gap: 14px; }
.landing-factors li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; font-size: 14px; color: rgba(230, 236, 246, .85); }
.landing-factors strong { color: #85a9e0; font-variant-numeric: lining-nums tabular-nums; }
.landing-factors i { grid-column: 1 / -1; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .08); position: relative; overflow: hidden; }
.landing-factors i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, #3f69a8, #85a9e0); }

.landing-audience { display: flex; flex-wrap: wrap; gap: 10px; }
.landing-audience .chip { height: 40px; padding: 0 16px; font-size: 14px; }
.landing-audience .chip .icon { width: 17px; height: 17px; color: var(--accent); }
.landing-founding { display: grid; gap: 16px; align-items: center; margin-top: 36px; padding: 24px; border-radius: 20px; background: var(--accent-softer); border: 1px solid var(--accent-soft); }
@media (min-width: 760px) { .landing-founding { grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; } }
.landing-founding__badge { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-gradient); color: var(--on-accent); }
.landing-founding__badge .icon { width: 26px; height: 26px; }
.landing-founding h3 { font-family: var(--font-display); font-size: 24px; font-weight: 500; }
.landing-founding p { margin-top: 6px; color: var(--text-2); font-size: 14.5px; line-height: 1.6; }

.landing-plans { display: grid; gap: 18px; }
@media (min-width: 860px) { .landing-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.landing-plan { padding: 24px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; }
.landing-plan.is-current { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.landing-plan__state { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.landing-plan h3 { margin-top: 8px; font-family: var(--font-display); font-size: 28px; font-weight: 500; }
.landing-plan__price { margin-top: 4px; color: var(--muted); font-size: 14px; }
.landing-plan ul { display: grid; align-content: start; gap: 10px; margin: 18px 0 22px; flex: 1; }
.landing-plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); }
.landing-plan li .icon { flex: none; margin-top: 2px; color: var(--accent); }
.landing-plans__note { margin-top: 18px; text-align: center; }

.landing-about__grid { display: grid; gap: 24px; align-items: start; max-width: 860px; }
@media (min-width: 760px) { .landing-about__grid { grid-template-columns: 96px minmax(0, 1fr); gap: 36px; } }
.landing-about p { margin-top: 14px; font-size: 16px; line-height: 1.7; color: var(--text-2); }
.landing-about__crest { width: 96px; height: 96px; }
.landing-cta { padding: 84px 20px; text-align: center; background: radial-gradient(120% 120% at 50% 0%, #17273e 0%, #090f19 55%, #060a10 100%); color: #e6ecf6; }
.landing-cta h2 { font-family: var(--font-display); font-size: clamp(32px, 5vw, 58px); font-weight: 500; margin-bottom: 26px; }
.landing-footer { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; max-width: 1180px; margin: 0 auto; padding: 32px 20px calc(32px + var(--safe-bottom)); }
.landing-footer nav { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; color: var(--text-2); }
.landing-footer nav a:hover { color: var(--accent); }

.danger-zone { border-color: color-mix(in srgb, var(--danger) 30%, var(--line)); }
.danger-zone .card__title { color: var(--danger); }

/* ==========================================================================
   Professional wall, listings and company pages
   ========================================================================== */
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.back-link:hover { color: var(--accent); }

.pref-summary .card__body { padding: 16px 18px; }
.pref-summary--setup { background: var(--accent-softer); border-color: var(--accent-soft); }
.pref-summary__lead { margin: 4px 0 2px; font-size: 14.5px; color: var(--text-2); }
.pref-summary__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip--link { background: transparent; border-style: dashed; color: var(--accent-ink); }
.chip--link:hover { border-color: var(--accent); }
.pro-search { display: flex; gap: 8px; margin: 16px 0 12px; }
.pro-search .select { width: auto; flex: none; }
.chips a .icon { width: 15px; height: 15px; }

.listing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 900px) { .listing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
/* Full-width walls (no side rail): 2 per row on phones, 3 on tablets and laptops (including
   1920px screens at 125% scaling, about 1536px wide), 4 on large desktop monitors. */
@media (min-width: 700px) { .content--wide .listing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1680px) { .content--wide .listing-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* Small laptops (3 cards in a narrower column): a tighter card body. */
@media (min-width: 1000px) and (max-width: 1279.98px) {
  .content--wide .listing-card__body { gap: 6px; padding: 10px 12px 12px; }
  .content--wide .listing-card__specs li:nth-child(n+4) { display: none; }
}
.listing-grid__more { grid-column: 1 / -1; display: flex; justify-content: center; padding: 8px 0; }
.listing-card { display: flex; flex-direction: column; min-width: 0; border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s, border-color .3s; }
.listing-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.listing-card__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(135deg, #d3deef, #a6bad9); }
.listing-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.listing-card:hover .listing-card__media img { transform: scale(1.05); }
.listing-card__media[data-kind="machine"] { background: linear-gradient(135deg, #2b2f33, #4b5258); }
.listing-card__media[data-kind="capability"] { background: linear-gradient(135deg, #182840, #34507a); }
.listing-card__media[data-kind="service"], .listing-card__media[data-kind="project"] { background: linear-gradient(135deg, #0d1522, #233a5d); }
.listing-card__media[data-kind="model_card"] { background: linear-gradient(135deg, #142236, #4b596d); }
.listing-card__ph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .78); }
.listing-card__media[data-kind="fabric"] .listing-card__ph, .listing-card__media[data-kind="yarn"] .listing-card__ph, .listing-card__media[data-kind="trim"] .listing-card__ph, .listing-card__media[data-kind="leather"] .listing-card__ph, .listing-card__media[data-kind="garment"] .listing-card__ph { color: rgba(30, 54, 90, .55); }
.listing-card__ph .icon { width: 48px; height: 48px; stroke-width: 1.2; }
.listing-card__kind { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; background: rgba(6, 10, 16, .62); color: #fff; font-size: 11.5px; font-weight: 600; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.listing-card__kind .icon { width: 13px; height: 13px; }
.listing-card__count { position: absolute; right: 10px; top: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 999px; background: rgba(6, 10, 16, .55); color: #fff; font-size: 11.5px; font-weight: 600; }
.listing-card__body { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px 14px; flex: 1; min-width: 0; }
.listing-card__title { font-weight: 700; font-size: 14.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.listing-card__title:hover { color: var(--accent); }
.listing-card__specs { display: flex; flex-wrap: wrap; gap: 4px; }
.listing-card__specs li { padding: 3px 8px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--line); font-size: 11.5px; color: var(--text-2); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.listing-card__why { display: flex; gap: 5px; align-items: flex-start; font-size: 11.5px; font-weight: 600; color: var(--accent-ink); }
.listing-card__why .icon { flex: none; width: 13px; height: 13px; margin-top: 1px; }
.listing-card__owner { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); font-size: 12.5px; font-weight: 600; min-width: 0; }
.listing-card__owner .tiny { flex: none; display: inline-flex; gap: 3px; align-items: center; }
@media (max-width: 599.98px) {
  .listing-card__body { padding: 10px 11px 12px; }
  .listing-card__specs li:nth-child(n+3) { display: none; }
  .listing-card__owner .tiny { display: none; }
}

.company-logo { flex: none; display: inline-grid; place-items: center; object-fit: cover; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.company-logo--mono { background: var(--accent-gradient); color: var(--on-accent); font-weight: 700; border: 0; }
.company-logo--xs { width: 22px; height: 22px; border-radius: 6px; font-size: 9px; }
.company-logo--sm { width: 32px; height: 32px; border-radius: 8px; font-size: 12px; }
.company-logo--md { width: 44px; height: 44px; font-size: 15px; }
.company-logo--lg { width: 64px; height: 64px; border-radius: 16px; font-size: 21px; }
.company-logo--xl { width: 104px; height: 104px; border-radius: 22px; font-size: 32px; }

.kind-section { margin-bottom: 26px; }
.kind-section .section-title { display: flex; align-items: center; gap: 8px; }
.kind-section > .small { margin: 4px 0 12px; }
.kind-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.kind-grid.is-locked { opacity: .45; pointer-events: none; }
.kind-tile { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: transform .35s var(--ease), border-color .25s, box-shadow .35s; }
.kind-tile:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow); }
.kind-tile.is-suggested { border-color: var(--accent-soft); background: linear-gradient(180deg, var(--accent-softer), var(--surface) 70%); }
.kind-tile__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 4px; }
.kind-tile__tag { position: absolute; right: 12px; top: 12px; padding: 3px 9px; border-radius: 999px; background: var(--accent-gradient); color: var(--on-accent); font-size: 10.5px; font-weight: 700; letter-spacing: .04em; }
.kind-locked { margin: 10px 0 14px; }

.listing-form .card + .card { margin-top: 16px; }
.choice-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.choice { position: relative; display: inline-flex; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-flex; align-items: center; min-height: 34px; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); font-size: 13px; color: var(--text-2); transition: background .2s, border-color .2s, color .2s; }
.choice:hover span { border-color: var(--line-strong); color: var(--text); }
.choice input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.choice input:focus-visible + span { box-shadow: 0 0 0 3px var(--glow); }
.input-unit { position: relative; display: flex; align-items: center; }
.input-unit .input { flex: 1; min-width: 0; }
.input-unit > span { position: absolute; right: 12px; font-size: 12.5px; color: var(--muted); pointer-events: none; background: var(--surface-2); padding-left: 6px; }
.input-unit .input:focus + span { background: var(--surface); }
.composition { display: grid; gap: 8px; }
.composition__row { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 8px; }
[data-composition-total].is-off { color: var(--danger); font-weight: 600; }
.upload-drop { position: relative; display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 14px; border: 1.5px dashed var(--line-strong); background: var(--surface-2); cursor: pointer; transition: border-color .2s, background .2s; }
.upload-drop:hover { border-color: var(--accent); background: var(--accent-softer); }
.upload-drop .icon { width: 26px; height: 26px; color: var(--accent); flex: none; }
/* Large drop area: drag and drop or click to browse */
.upload-drop--lg { flex-direction: column; justify-content: center; gap: 10px; min-height: 168px; padding: 28px 20px; border-radius: 18px; border-width: 2px; text-align: center; }
.upload-drop--lg .icon { width: 36px; height: 36px; padding: 14px; box-sizing: content-box; border-radius: 50%; background: var(--accent-soft); transition: transform .3s var(--ease); }
.upload-drop--lg:hover .icon { transform: translateY(-3px); }
.upload-drop__text { display: grid; gap: 4px; max-width: 460px; }
.upload-drop__text strong { font-size: 15.5px; }
.upload-previews { margin-top: 12px; }
.composer__drop { margin-top: 12px; min-height: 140px; }
.composer__previews:not(:empty) + .composer__drop { min-height: 0; flex-direction: row; padding: 12px 16px; }
.composer__previews:not(:empty) + .composer__drop .icon { width: 20px; height: 20px; padding: 8px; }
.composer__previews:not(:empty) + .composer__drop .upload-drop__text { text-align: left; }
.composer__previews:not(:empty) + .composer__drop .upload-drop__text .small { display: none; }
/* While a file is dragged over a drop target */
.upload-drop.is-dragover, .upload.is-dragover { border-style: solid; border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 4px var(--glow); }
.upload-drop.is-dragover .icon { transform: translateY(-4px) scale(1.08); }
.pick.is-dragover { box-shadow: 0 0 0 3px var(--accent), 0 0 0 8px var(--glow); }
.pick.is-dragover .pick__overlay { opacity: 1; }
.pick.is-dragover .pick__badge { transform: scale(1.15); }
.company-images .company-logo--xl, .company-images img.company-logo { width: 128px; height: 128px; }
.upload-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo-manage { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.photo-manage__item { display: grid; gap: 4px; width: 96px; font-size: 12px; color: var(--muted); }
.photo-manage__item img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; }
.listed-under { display: flex; align-items: center; gap: 8px; }
.listing-form__foot { position: sticky; bottom: calc(var(--bottomnav) + var(--safe-bottom)); z-index: 5; display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; padding: 12px 0; background: linear-gradient(180deg, transparent, var(--bg) 30%); }
@media (min-width: 768px) { .listing-form__foot { bottom: 0; } }

.listing-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
@media (min-width: 1000px) { .listing-hero { grid-template-columns: minmax(0, 1.15fr) minmax(320px, 1fr); gap: 22px; } }
.listing-gallery { display: grid; gap: 8px; min-width: 0; }
.listing-gallery__main { position: relative; display: block; margin: 0; aspect-ratio: 1; border-radius: 20px; overflow: hidden; background: var(--surface-3); }
.listing-gallery__main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.listing-gallery__thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.listing-gallery__thumbs button { flex: none; width: 72px; height: 72px; padding: 0; border-radius: 12px; overflow: hidden; border: 2px solid transparent; background: var(--surface-3); cursor: pointer; }
.listing-gallery__thumbs button.is-active { border-color: var(--accent); }
.listing-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.listing-panel { position: sticky; top: 84px; }
.listing-panel__title { margin-top: 6px; font-family: var(--font-display); font-size: clamp(26px, 3vw, 34px); font-weight: 500; line-height: 1.12; }
.listing-panel__summary { margin-top: 8px; font-size: 15px; color: var(--text-2); }
.terms-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 16px 0 0; border-radius: 14px; overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.terms-grid > div { padding: 10px 12px; background: var(--surface-2); }
.terms-grid > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.terms-grid dt { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.terms-grid dd { margin: 3px 0 0; font-weight: 600; font-size: 14px; }
.listing-owner { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); transition: border-color .2s, background .2s; }
.listing-owner:hover { border-color: var(--accent); background: var(--accent-softer); }
.listing-panel__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.listing-panel__actions .btn--block { flex: 1 1 100%; }
.spec-sections { display: grid; gap: 16px; margin-top: 18px; align-items: start; }
@media (min-width: 900px) { .spec-sections { grid-template-columns: repeat(2, minmax(0, 1fr)); } .spec-card--wide { grid-column: 1 / -1; } }
.spec-sections .card + .card { margin-top: 0; }
.spec-list { display: grid; margin: 0; }
.spec-list > div { display: grid; grid-template-columns: minmax(120px, 42%) minmax(0, 1fr); gap: 12px; padding: 9px 0; font-size: 14px; }
.spec-list > div + div { border-top: 1px solid var(--line); }
.spec-list dt { color: var(--muted); }
.spec-list dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.listing-section-title { margin: 28px 0 12px; }

.pro-tab-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.company-strip { display: grid; gap: 1px; }
.company-strip--tab { gap: 10px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-bottom: 16px; }
.company-mini { display: flex; align-items: center; gap: 12px; padding: 12px 18px; transition: background .2s; }
.company-strip--tab .company-mini { padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.company-mini:hover { background: var(--surface-2); }
.company-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-top: 4px; }
.company-card { position: relative; display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s, border-color .25s; }
.company-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.company-card__cover { display: block; aspect-ratio: 1500 / 520; background: linear-gradient(135deg, #17273e, #090f19); }
.company-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.company-card__logo { position: relative; z-index: 1; margin: -32px 0 0 14px; }
.company-card__logo .company-logo { box-shadow: 0 0 0 3px var(--surface); }
.company-card__body { display: grid; gap: 4px; padding: 8px 14px 14px; min-width: 0; }
.company-card__tagline { color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.company-hero { overflow: hidden; }
.company-hero__cover { aspect-ratio: 1500 / 420; max-height: 280px; width: 100%; background: radial-gradient(120% 120% at 80% 0%, #1d304d, #090f19 60%); }
.company-hero__cover img { width: 100%; height: 100%; object-fit: cover; }
.company-hero__body { padding: 0 20px 18px; }
.company-hero__logo { margin-top: -52px; position: relative; }
.company-hero__logo .company-logo { box-shadow: 0 0 0 4px var(--surface), var(--shadow); }
.company-locked { display: grid; justify-items: center; gap: 8px; max-width: 520px; margin: 24px auto; padding: 36px 24px; text-align: center; }
.company-locked__note { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 8px; padding: 12px 14px; border-radius: 12px; background: var(--surface-3); color: var(--text-2); font-size: 14px; text-align: left; }
.company-locked__note .icon { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--accent); }
.audience-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); font-size: 12px; font-weight: 600; vertical-align: middle; }
.audience-badge .icon { width: 13px; height: 13px; }
.audience-choice { display: grid; gap: 8px; }
@media (min-width: 560px) { .audience-choice { grid-template-columns: 1fr 1fr; } }
.audience-choice__option { position: relative; cursor: pointer; }
.audience-choice__option input { position: absolute; opacity: 0; pointer-events: none; }
.audience-choice__body { display: flex; gap: 12px; align-items: flex-start; height: 100%; padding: 13px 14px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--surface); transition: border-color .2s, background .2s, box-shadow .2s; }
.audience-choice__body > .icon { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--muted); }
.audience-choice__body strong { display: block; font-size: 14px; }
.audience-choice__body small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.audience-choice__option:hover .audience-choice__body { border-color: var(--accent); }
.audience-choice__option input:checked + .audience-choice__body { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent); }
.audience-choice__option input:checked + .audience-choice__body > .icon { color: var(--accent); }
.audience-choice__option input:focus-visible + .audience-choice__body { box-shadow: 0 0 0 3px var(--glow); }
.company-hero__logo .pick, .company-images .pick:not(.pick--cover) { width: fit-content; border-radius: 22px; }
.company-hero__logo .pick__badge { right: -6px; bottom: -6px; }
@media (max-width: 599.98px) {
  .company-images__item { flex-direction: column; align-items: flex-start; gap: 10px; }
  .company-images__item:has(.pick--cover) { width: 100%; }
  .company-images .pick--cover { width: 100%; height: auto; aspect-ratio: 1500 / 420; }
}
.company-images .company-logo--mono .icon { width: 38px; height: 38px; stroke-width: 1.5; }
.company-hero__cover .pick--cover { position: absolute; inset: 0; width: auto; height: auto; border-radius: 0; box-shadow: none; background: none; }
.company-hero__cover .pick--cover .pick__badge { right: 14px; bottom: 14px; }
.company-hero__head { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; justify-content: space-between; margin-top: 10px; }
.company-hero__name { font-family: var(--font-display); font-size: clamp(26px, 3.4vw, 36px); font-weight: 500; line-height: 1.1; }
.company-hero__name .verified .icon { width: 22px; height: 22px; }
.company-hero__tagline { margin: 4px 0; font-size: 15px; color: var(--text-2); }
.company-hero__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.company-hero__stats { margin-top: 14px; border-top: 1px solid var(--line); }
.company-about { display: grid; gap: 16px; align-items: start; }
@media (min-width: 900px) { .company-about { grid-template-columns: repeat(2, minmax(0, 1fr)); } .company-about > .card:first-child { grid-column: 1 / -1; } }
.company-about .card + .card { margin-top: 0; }
.company-images { display: grid; gap: 18px; }
@media (min-width: 760px) { .company-images { grid-template-columns: auto minmax(0, 1fr); align-items: center; } }
.company-images__item { display: flex; align-items: center; gap: 16px; }
.company-images__item .pick { position: relative; }

.intent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.intent { position: relative; display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; transition: border-color .2s, background .2s; }
.intent input { position: absolute; opacity: 0; pointer-events: none; }
.intent:hover { border-color: var(--line-strong); }
.intent:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.intent__icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--surface); color: var(--accent); flex: none; }
.intent__text strong { display: block; font-size: 14px; }
.intent__text span { font-size: 12px; color: var(--muted); }
.pref-more { margin-top: 14px; }
.pref-more summary { cursor: pointer; margin-bottom: 10px; color: var(--accent-ink); font-weight: 600; }
.pref-form .card + .card { margin-top: 16px; }
.bubble__listing .bubble__post-media { aspect-ratio: 4 / 3; }

@media (max-width: 767.98px) {
  .listing-panel { position: static; }
  .main .listing-panel, .main .company-hero, .main .spec-card { margin-left: -12px; margin-right: -12px; }
  .company-hero__body { padding: 0 16px 16px; }
  .company-hero__head { flex-direction: column; align-items: stretch; }
  .company-hero__logo .company-logo--xl { width: 84px; height: 84px; font-size: 26px; }
  .pro-search { flex-wrap: wrap; }
  .pro-search .input-wrap { flex: 1 1 100%; }
}

/* ==========================================================================
   Trust page: a wide main column (score, factors, history) and a narrower side column
   (what to do next, where trust comes from); stacked on tablets and phones.
   ========================================================================== */
.trust-layout { display: grid; gap: 16px; align-items: start; }
.trust-layout__main, .trust-layout__side { display: grid; gap: 16px; min-width: 0; }
.trust-layout .card + .card { margin-top: 0; }
@media (min-width: 1100px) {
  .trust-layout { grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); gap: 20px; }
  .trust-layout__main, .trust-layout__side { gap: 20px; }
}
@media (max-width: 767.98px) { .trust-layout, .trust-layout__main, .trust-layout__side { gap: 0; } }

/* The score ring is the page's focal point */
.trust-meter--hero { gap: 28px; }
.trust-meter--hero .trust-meter__ring { --size: 176px; width: var(--size); height: var(--size); background: conic-gradient(#85a9e0 0, #3f69a8 calc(var(--p) * 1%), rgba(255, 255, 255, .08) 0); box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 18px 50px -18px rgba(114, 153, 212, .55); }
.trust-meter--hero .trust-meter__ring span { width: calc(var(--size) - 26px); height: calc(var(--size) - 26px); display: grid; place-content: center; justify-items: center; gap: 2px; background: radial-gradient(circle at 50% 35%, #0c1421, #070b11 70%); }
.trust-meter--hero .trust-meter__ring strong { font-family: var(--font-display); font-size: 64px; font-weight: 500; line-height: 1; color: #adc6eb; }
.trust-meter--hero .trust-meter__ring small { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-muted); }
.trust-meter__level { font-size: clamp(30px, 3.4vw, 42px); font-weight: 600; line-height: 1.05; color: var(--ink-text); margin-top: 4px; }
.trust-meter__next { margin: 8px 0 4px; font-size: 14.5px; font-weight: 600; color: #85a9e0; }
@media (max-width: 599.98px) {
  .trust-meter--hero { flex-direction: column; text-align: center; gap: 16px; }
  .trust-meter--hero .trust-meter__ring { --size: 156px; }
  .trust-meter--hero .trust-meter__ring strong { font-size: 56px; }
}

/* Side-column versions of the checklist and the trust events */
.checklist--compact li { align-items: flex-start; font-size: 13.5px; line-height: 1.45; }
.checklist--compact li > .icon { margin-top: 2px; flex: none; }
.checklist--compact li .btn { flex: none; }
.signals--compact li { gap: 10px; padding: 9px 0; align-items: flex-start; }
.signals--compact .signals__icon { width: 30px; height: 30px; border-radius: 9px; }
.signals--compact a { font-size: 13px; line-height: 1.45; padding-top: 5px; }
.signals--compact time { padding-top: 6px; white-space: nowrap; }

/* ==========================================================================
   Trust history
   ========================================================================== */
.trust-chart { margin: 0 0 6px; }
.trust-chart svg { display: block; width: 100%; height: 150px; overflow: visible; }
.trust-chart__area { fill: var(--accent-soft); }
.trust-chart__line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.trust-chart__dot { fill: var(--surface); stroke: var(--accent); stroke-width: 3; vector-effect: non-scaling-stroke; }
.trust-chart figcaption { margin-top: 8px; }
.score-changes, .signals { display: grid; margin-top: 8px; }
.score-changes li, .signals li { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.score-changes li + li, .signals li + li { border-top: 1px solid var(--line); }
.score-changes__delta { flex: none; min-width: 52px; height: 30px; padding: 0 8px; border-radius: 999px; display: grid; place-items: center; font-size: 13px; font-weight: 700; font-variant-numeric: lining-nums tabular-nums; }
.score-changes__delta.is-up { background: var(--success-soft); color: var(--success); }
.score-changes__delta.is-down { background: var(--danger-soft); color: var(--danger); }
.signals__icon { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.signals a:hover strong { color: var(--accent); }

/* ==========================================================================
   Endorsements and recommendations
   ========================================================================== */
.endorse-list { display: grid; }
.endorse { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.endorse + .endorse { border-top: 1px solid var(--line); }
.endorse__main { flex: 1; min-width: 0; }
.endorse__main strong { display: block; font-size: 15px; }
.endorse__meta { display: flex; align-items: center; gap: 8px; margin-top: 3px; font-size: 12.5px; color: var(--muted); }
.endorse__btn { flex: none; min-width: 112px; }
.endorse__btn.is-on { background: var(--accent-soft); border-color: transparent; color: var(--accent-ink); }
.avatar-stack { display: inline-flex; }
.avatar-stack .avatar { width: 22px; height: 22px; box-shadow: 0 0 0 2px var(--surface); }
.avatar-stack .avatar + .avatar { margin-left: -7px; }
.avatar-stack .avatar--mono { font-size: 9px; }
.skill__count { margin-left: 2px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); font-size: 11px; font-weight: 700; font-style: normal; }
.rec { display: flex; gap: 12px; padding: 14px 0; }
.rec + .rec { border-top: 1px solid var(--line); }
.rec__body { flex: 1; min-width: 0; }
.rec__who { display: flex; align-items: center; gap: 4px; font-size: 14.5px; }
.rec__text { margin: 8px 0 0; padding: 0 0 0 14px; border-left: 2px solid var(--accent); font-size: 14.5px; line-height: 1.6; color: var(--text-2); white-space: pre-line; overflow-wrap: anywhere; }
.rec__text--clamp { display: -webkit-box; -webkit-line-clamp: 5; line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; margin-top: 0; }
.rec__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.rec-pending { margin: -4px -10px 12px; padding: 12px 10px 2px; border-radius: 14px; background: var(--accent-softer); border: 1px solid var(--accent-soft); }
.rec-pending .rec + .rec { border-color: var(--accent-soft); }
.rec-hidden { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.rec-hidden summary { cursor: pointer; padding: 4px 0; }

/* Phones: content cards become flat full-width sections on the page background, separated by a
   hairline, with standard 16px padding; post photos and videos run edge to edge. */
@media (max-width: 767.98px) {
  .main .card:not(.dark-panel):not(.stat) { margin-left: -12px; margin-right: -12px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
  .main .card::after { display: none; }
  .main .card + .card, .main .post + .post { margin-top: 0; }
  .main .card--lift:hover { transform: none; box-shadow: none; }
  .main .card__head { padding: 16px 16px 4px; }
  .main .card__body { padding: 16px; }
  .main .card-foot { padding: 14px 16px; }
  .main .event-grid, .main .people-grid { gap: 0; }
  .main .event-card__media .media { border-radius: 0; }
  .main .event-card__body { padding: 14px 16px 16px; }
  .post__head { padding: 14px 16px 0; }
  .post__body { padding: 10px 16px 0; }
  .post__media, .post__video, .post__stack { margin: 12px 0 0; border-radius: 0; }
  .post__media { gap: 2px; }
  .post__media .media, .post__frame { border-radius: 0; }
  .post__video video { aspect-ratio: 4 / 5; max-height: none; object-fit: cover; }
  .post__stack { gap: 2px; }
  .post__frame img { max-height: none; }
  .credits { margin: 12px 16px 0; }
  .shared { margin: 12px 16px 0; }
  .main .sheet-page { margin-left: -12px; margin-right: -12px; }
  .post__foot { margin-top: 4px; padding: 6px 6px 8px; }
  .post__comments { padding: 14px 16px 18px; background: transparent; border-radius: 0; }
  .pills { margin: 0 -12px 4px; padding: 2px 12px 10px; border: 0; border-radius: 0; background: transparent; border-bottom: 1px solid var(--line); }
  .more-like__head { margin-bottom: 4px; }
  .inbox--thread .thread { height: calc(100dvh - 102px - var(--bottomnav) - var(--safe-bottom)); border-bottom: 0; }
  .thread__messages { max-height: none; min-height: 0; background: transparent; padding: 16px; }
  .thread__form { padding: 10px 16px; background: var(--bg); }
  .levels { gap: 3px; }
  .levels div { padding: 7px 2px; font-size: 10px; overflow-wrap: anywhere; }
  .levels strong { font-size: 10.5px; }
}

/* Photo editor for uploads (partials/photo-cropper.php, app.js) */
.cropper { z-index: 85; }
.cropper__dialog { max-width: 720px; }
.cropper__shapes { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 14px; }
.cropper__shapes[hidden] { display: none; }
.cropper__shape { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text-2); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.cropper__shape:hover { border-color: var(--accent); color: var(--text); }
.cropper__shape.is-active { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.cropper__shape-box { display: inline-block; border: 1.6px solid currentColor; border-radius: 3px; }
.cropper__frame-wrap { display: flex; justify-content: center; width: 100%; padding: 14px; border-radius: 16px; background: #060a10 repeating-conic-gradient(#090f18 0% 25%, #060a10 0% 50%) 50% / 22px 22px; }
.cropper__stage { position: relative; overflow: hidden; max-width: 100%; background: #060a10; cursor: grab; touch-action: none; user-select: none; outline: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, .55), 0 18px 40px -18px rgba(0, 0, 0, .8); }
.cropper__stage:focus-visible { box-shadow: 0 0 0 3px var(--glow); }
.cropper__stage.is-dragging { cursor: grabbing; }
.cropper__stage img { position: absolute; left: 0; top: 0; max-width: none; height: auto; transform-origin: 0 0; pointer-events: none; -webkit-user-drag: none; }
/* Rule-of-thirds guide while adjusting */
.cropper__grid { position: absolute; inset: 0; pointer-events: none; opacity: .55; transition: opacity .2s;
  background:
    linear-gradient(90deg, transparent calc(33.333% - .5px), rgba(255, 255, 255, .55) calc(33.333% - .5px), rgba(255, 255, 255, .55) calc(33.333% + .5px), transparent calc(33.333% + .5px), transparent calc(66.666% - .5px), rgba(255, 255, 255, .55) calc(66.666% - .5px), rgba(255, 255, 255, .55) calc(66.666% + .5px), transparent calc(66.666% + .5px)),
    linear-gradient(180deg, transparent calc(33.333% - .5px), rgba(255, 255, 255, .55) calc(33.333% - .5px), rgba(255, 255, 255, .55) calc(33.333% + .5px), transparent calc(33.333% + .5px), transparent calc(66.666% - .5px), rgba(255, 255, 255, .55) calc(66.666% - .5px), rgba(255, 255, 255, .55) calc(66.666% + .5px), transparent calc(66.666% + .5px)); }
.cropper__stage:not(.is-dragging) .cropper__grid { opacity: .25; }
.cropper.is-round .cropper__grid { border-radius: 50%; box-shadow: 0 0 0 999px rgba(6, 10, 16, .55); border: 2px solid rgba(255, 255, 255, .9); background: none; opacity: 1; }
.cropper__tools { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.cropper__zoom { flex: 1; display: flex; align-items: center; gap: 10px; color: var(--muted); }
.cropper__zoom input { flex: 1; accent-color: var(--accent); }
.cropper__info { display: grid; gap: 3px; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12.5px; color: var(--text-2); }
.cropper__info strong { color: var(--text); }
.cropper__warn { display: flex; gap: 6px; align-items: flex-start; color: var(--danger); font-weight: 600; }
.cropper__warn .icon { flex: none; width: 15px; height: 15px; margin-top: 1px; }
/* Photo previews with Crop and Remove */
.photo-preview { position: relative; }
.photo-preview__actions { position: absolute; left: 6px; right: 6px; bottom: 6px; display: flex; justify-content: space-between; gap: 6px; }
.photo-preview__btn { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px; border: 0; border-radius: 999px; background: rgba(6, 10, 16, .7); color: #fff; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .2s, transform .2s; }
.photo-preview__btn:hover { background: var(--accent); transform: translateY(-1px); }
.photo-preview__btn .icon { width: 14px; height: 14px; }
.photo-preview__btn--icon { width: 30px; padding: 0; justify-content: center; margin-left: auto; }
.photo-preview__btn--icon:hover { background: var(--danger); }
@media (max-width: 599.98px) {
  .cropper__frame-wrap { padding: 8px; }
  .cropper__tools { flex-wrap: wrap; }
}

/* Date, month and date-time picker (app.js) */
.dtp__field { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; cursor: pointer; font: inherit; }
.dtp__field .icon { flex: none; width: 19px; height: 19px; color: var(--accent); }
.dtp__field.is-empty .dtp__value { color: var(--muted); }
.dtp__field[aria-expanded="true"] { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px var(--glow); }
.dtp__value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dtp-backdrop { position: fixed; inset: 0; z-index: 90; background: transparent; }
.dtp-panel { position: fixed; z-index: 91; width: 316px; padding: 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top left; transition: opacity .18s var(--ease), transform .22s var(--ease); }
.dtp-panel.is-open { opacity: 1; transform: none; }
.dtp-panel--datetime { width: 336px; }
.dtp-panel__head { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.dtp-panel__title { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; border: 0; border-radius: 10px; background: none; color: var(--text); font: inherit; font-family: var(--font-display); font-size: 17px; letter-spacing: .02em; cursor: pointer; transition: background .2s; }
.dtp-panel__title .icon { width: 15px; height: 15px; color: var(--muted); }
.dtp-panel__title:hover, .dtp-nav:hover { background: var(--surface-3); }
.dtp-nav { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border: 0; border-radius: 10px; background: none; color: var(--text); cursor: pointer; transition: background .2s; }
.dtp-nav .icon { width: 18px; height: 18px; }
.dtp-grid { display: grid; gap: 3px; }
.dtp-grid--days { grid-template-columns: repeat(7, 1fr); }
.dtp-grid--wide { grid-template-columns: repeat(3, 1fr); gap: 6px; }
.dtp-dow { display: grid; place-items: center; height: 28px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.dtp-cell { position: relative; height: 38px; border: 0; border-radius: 10px; background: none; color: var(--text); font: inherit; font-size: 14px; cursor: pointer; transition: background .15s, color .15s, transform .15s; }
.dtp-grid--wide .dtp-cell { height: 46px; font-weight: 600; }
.dtp-cell:hover:not([disabled]) { background: var(--accent-soft); }
.dtp-cell:active:not([disabled]) { transform: scale(.94); }
.dtp-cell.is-today { color: var(--accent); font-weight: 700; }
.dtp-cell.is-today::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
.dtp-cell.is-selected { background: var(--accent-gradient); color: var(--on-accent); font-weight: 700; box-shadow: 0 6px 14px -8px rgba(47, 87, 147, .9); }
.dtp-cell[disabled] { color: var(--muted); opacity: .4; cursor: not-allowed; }
.dtp-cell:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.dtp-panel__title--static { cursor: default; font-size: 16px; }
.dtp-panel__title--static:hover { background: none; }
.dtp-grid--hours { grid-template-columns: repeat(6, 1fr); gap: 5px; }
.dtp-grid--minutes { grid-template-columns: repeat(4, 1fr); gap: 6px; }
.dtp-grid--hours .dtp-cell, .dtp-grid--minutes .dtp-cell { height: 44px; font-variant-numeric: tabular-nums; font-weight: 600; background: var(--surface-2); }
.dtp-grid--minutes .dtp-cell { height: 52px; }
.dtp-grid--hours .dtp-cell.is-selected, .dtp-grid--minutes .dtp-cell.is-selected { background: var(--accent-gradient); }
.dtp-time { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.dtp-time__label { display: inline-flex; align-items: center; gap: 6px; margin-right: auto; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.dtp-time__label .icon { width: 15px; height: 15px; color: var(--accent); }
.dtp-time__chip { min-width: 58px; height: 46px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface-2); color: var(--text); font: inherit; font-family: var(--font-display); font-size: 24px; font-variant-numeric: tabular-nums; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.dtp-time__chip:hover { border-color: var(--accent); }
.dtp-time__chip.is-active { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px var(--glow); }
.dtp-time__chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dtp-time__sep { font-family: var(--font-display); font-size: 24px; color: var(--muted); }
.dtp-panel__foot { display: flex; align-items: center; gap: 6px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.dtp-panel__foot [data-dtp-done] { margin-left: auto; }
/* Phones: a bottom sheet */
.dtp-panel.is-sheet { left: 0; right: 0; bottom: 0; top: auto; width: auto; padding: 16px 16px calc(16px + var(--safe-bottom)); border-radius: 22px 22px 0 0; transform: translateY(24px); transform-origin: bottom center; }
.dtp-panel.is-sheet.is-open { transform: none; }
.dtp-panel.is-sheet::before { content: ""; display: block; width: 40px; height: 4px; margin: -6px auto 10px; border-radius: 4px; background: var(--line-strong); }
.dtp-panel.is-sheet .dtp-cell { height: 44px; }
.dtp-panel.is-sheet .dtp-grid--minutes .dtp-cell { height: 56px; }
@media (max-width: 599px) { .dtp-backdrop { background: rgba(4, 7, 12, .5); opacity: 0; transition: opacity .2s; } .dtp-backdrop.is-open { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .fx-ready [data-reveal] { opacity: 1; transform: none; }
}

/* Maintenance banner (set in the Console: Settings → Maintenance banner) */
.maintenance-banner { position: relative; z-index: 60; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; background: var(--accent-gradient); color: var(--on-accent); font-size: 13.5px; font-weight: 600; text-align: center; }

/* Login reached from a micro app (Console, Ads, CRM) */
.auth__continue { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(100, 140, 201, .35); background: rgba(100, 140, 201, .1); }
.auth__continue .icon { flex: none; color: #7299d4; }

/* ==========================================================================
   Help centre, support requests, account standing, reports
   ========================================================================== */
.help-hero { position: relative; overflow: hidden; padding: clamp(28px, 5vw, 52px) clamp(20px, 4vw, 44px); border-radius: var(--radius-xl); background: var(--ink); color: var(--ink-text); isolation: isolate; }
.help-hero::before { content: ""; position: absolute; inset: -40% -10% auto auto; z-index: -1; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(closest-side, rgba(100, 140, 201, .38), transparent 70%); }
.help-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1.5px) 0 0 / 18px 18px; mask-image: linear-gradient(90deg, transparent 30%, #000 90%); -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 90%); }
.help-hero__eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #80a4d9; }
.help-hero__title { margin: 10px 0 20px; font-size: clamp(30px, 5vw, 46px); font-weight: 700; letter-spacing: -.03em; line-height: 1.08; color: #fff; }
.help-hero__title em { font-family: var(--font-display); font-weight: 500; color: #8caee2; }
.help-hero__popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; font-size: 13px; color: var(--ink-muted); }
.help-hero__popular .chip { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .14); color: var(--ink-text); }
.help-hero__popular .chip:hover { background: rgba(255, 255, 255, .14); }

.help-search { position: relative; display: flex; align-items: center; gap: 8px; max-width: 680px; padding: 6px 6px 6px 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); color: var(--text); }
.help-search > .icon { flex: none; color: var(--muted); }
.help-search input { flex: 1; min-width: 0; height: 44px; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 15px; outline: none; }
.help-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.help-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--glow), var(--shadow); }
.help-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 40; padding: 6px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-lg); text-align: left; }
.help-suggest a { display: block; padding: 10px 12px; border-radius: 12px; color: var(--text); }
.help-suggest a:hover, .help-suggest a.is-on { background: var(--surface-2); }
.help-suggest a strong { display: block; font-size: 14px; }
.help-suggest a span { display: block; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.help-suggest .help-suggest__all { font-weight: 600; color: var(--accent); }

.help-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.help-topic { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); color: var(--text); transition: transform .35s var(--ease), box-shadow .35s, border-color .2s; }
.help-topic:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.help-topic > .icon { flex: none; color: var(--muted); transition: transform .3s var(--ease); }
.help-topic:hover > .icon { transform: translateX(3px); color: var(--accent); }
.help-topic__icon { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--accent-soft); color: var(--accent-ink); }
.help-topic__icon--lg { width: 60px; height: 60px; border-radius: 18px; }
.help-topic__text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.help-topic__text strong { font-size: 15px; }
.help-topic__text span { font-size: 13px; color: var(--text-2); line-height: 1.45; }
.help-topic__text small { font-size: 12px; color: var(--muted); }

.help-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.help-card { display: grid; align-content: start; gap: 6px; padding: 18px; border-radius: var(--radius-lg); background: var(--surface-2); border: 1px solid var(--line); color: var(--text); transition: background .2s, transform .35s var(--ease), box-shadow .35s; }
.help-card:hover { background: var(--surface); transform: translateY(-2px); box-shadow: var(--shadow); }
.help-card__topic { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.help-card strong { font-size: 15.5px; line-height: 1.3; }
.help-card > span:last-child { font-size: 13px; color: var(--text-2); line-height: 1.5; }

.help-band { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; margin-top: 30px; padding: 24px 26px; border-radius: var(--radius-xl); background: var(--ink); color: var(--ink-text); }
.help-band h2 { font-size: 21px; color: #fff; }
.help-band p { margin-top: 4px; color: var(--ink-muted); font-size: 14px; max-width: 52ch; }
.help-band__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.help-band .help-band__ghost { border-color: rgba(255, 255, 255, .2); color: #fff; background: transparent; }
.help-band .help-band__ghost:hover { background: rgba(255, 255, 255, .08); }

.help-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 14px; font-size: 13px; color: var(--muted); }
.help-crumbs a { color: var(--text-2); font-weight: 600; }
.help-crumbs a:hover { color: var(--accent); }
.help-crumbs .icon { width: 13px; height: 13px; }
.help-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.help-side { display: grid; gap: 14px; position: sticky; top: calc(var(--topbar) + 14px); }
.help-side .help-search { padding-left: 12px; box-shadow: none; }
.help-side .help-search .btn { display: none; }
.help-side__contact .card__body { display: grid; gap: 8px; justify-items: start; }
.help-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.help-nav { display: grid; gap: 2px; }
.help-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.help-nav a:hover { background: var(--surface-2); color: var(--text); }
.help-nav a.is-active { background: var(--accent-soft); color: var(--accent-ink); }
.help-list { overflow: hidden; }
.help-list__item { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--line); color: var(--text); transition: background .2s; }
.help-list__item:last-child { border-bottom: 0; }
.help-list__item:hover { background: var(--surface-2); }
.help-list__item > .icon { flex: none; color: var(--muted); }
.help-list__text { flex: 1; min-width: 0; display: grid; gap: 3px; }
.help-list__text strong { font-size: 15px; }
.help-list__text span { font-size: 13.5px; color: var(--text-2); line-height: 1.5; }
.help-list__topic { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.help-list--plain .help-list__item { padding: 12px 18px; }
.help-list--plain .help-list__text strong { font-size: 14px; font-weight: 600; }

.help-article .card__body { padding: clamp(20px, 3.5vw, 36px); }
.help-article__title { font-size: clamp(26px, 3.6vw, 34px); font-weight: 700; letter-spacing: -.025em; line-height: 1.15; }
.help-article__lead { margin-top: 10px; font-size: 17px; color: var(--text-2); line-height: 1.55; }
.help-article__meta { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.help-toc { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 18px; padding: 12px 16px; border-radius: 14px; background: var(--surface-2); font-size: 13.5px; }
.help-toc strong { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.help-toc a { color: var(--accent-ink); font-weight: 600; }
.help-prose { max-width: 70ch; margin-top: 10px; font-size: 15.5px; line-height: 1.7; }
.help-prose h2 { scroll-margin-top: calc(var(--topbar) + 20px); }
.help-prose ol { list-style: decimal; padding-left: 22px; }
.help-prose li { padding-left: 4px; }
.help-prose a { color: var(--accent-ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.help-prose a:hover { text-decoration-color: var(--accent); }
.help-prose strong { color: var(--text); }
.help-vote { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.help-vote form, .help-vote > p { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.help-vote > p { color: var(--success); font-weight: 600; }
.help-vote__buttons { display: flex; gap: 8px; }
.help-vote__more { flex-basis: 100%; display: grid; gap: 10px; max-width: 520px; }
.help-vote__more[hidden] { display: none; }

.help-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 8px; }
.help-cat { position: relative; cursor: pointer; }
.help-cat input { position: absolute; opacity: 0; }
.help-cat span { display: flex; align-items: center; gap: 8px; height: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--input-bg); font-size: 13.5px; font-weight: 600; color: var(--text-2); transition: border-color .2s, background .2s, box-shadow .2s; }
.help-cat span .icon { color: var(--muted); }
.help-cat:hover span { border-color: var(--accent); }
.help-cat input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); box-shadow: 0 0 0 3px var(--glow); }
.help-cat input:checked + span .icon { color: var(--accent); }
.help-cat input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.help-hint { padding: 14px 16px; border-radius: 14px; background: var(--accent-softer); border: 1px solid var(--accent-soft); }
.help-hint[hidden] { display: none; }
.help-hint strong { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--accent-ink); }
.help-hint a { display: block; margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--text); }
.help-hint a:hover { color: var(--accent); }
.help-hint a span { display: block; font-size: 12.5px; font-weight: 400; color: var(--muted); }

.help-thread .card__body { display: grid; gap: 14px; }
.help-msg { max-width: 760px; padding: 14px 16px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.help-msg--staff { margin-left: auto; background: var(--accent-softer); border-color: var(--accent-soft); }
.help-msg__who { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.help-msg__who strong { font-size: 14px; }
.help-msg__badge { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 8px; background: var(--ink); color: #8caee2; font-family: var(--font-display); font-size: 14px; }
.help-msg__body { font-size: 14.5px; line-height: 1.6; color: var(--text-2); overflow-wrap: anywhere; }
.help-rate__stars { display: flex; flex-wrap: wrap; gap: 6px; }
.help-rate__stars .btn { color: var(--verified); letter-spacing: 1px; }

.standing-hero { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; padding: 22px 24px; border-radius: var(--radius-xl); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); margin-bottom: 14px; }
.standing-hero__icon { flex: none; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 18px; background: var(--success-soft); color: var(--success); }
.standing-hero__icon .icon { width: 26px; height: 26px; }
.standing-hero--limited .standing-hero__icon { background: var(--accent-soft); color: var(--accent-ink); }
.standing-hero__text { flex: 1 1 320px; min-width: 0; }
.standing-hero__text h2 { font-size: 20px; letter-spacing: -.01em; }
.standing-hero__text p { margin-top: 4px; color: var(--text-2); font-size: 14.5px; }
.standing-strikes { display: grid; justify-items: center; gap: 4px; padding: 12px 18px; border-radius: 16px; background: var(--surface-2); text-align: center; }
.standing-strikes__dots { display: flex; gap: 6px; }
.standing-strikes__dots span { width: 14px; height: 14px; border-radius: 50%; background: var(--line-strong); }
.standing-strikes__dots span.is-on { background: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.standing-strikes strong { font-size: 14px; }
.standing-strikes small { font-size: 12px; color: var(--muted); }
.standing-current { margin-bottom: 14px; }
.standing-statement { margin-top: 8px; font-size: 14.5px; line-height: 1.65; color: var(--text-2); }
.standing-ladder { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 4px 0 10px; }
.standing-ladder__step { display: grid; gap: 6px; justify-items: center; padding: 12px 6px; border-radius: 14px; background: var(--surface-2); text-align: center; }
.standing-ladder__step span { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); border: 1px solid var(--line-strong); font-size: 12.5px; font-weight: 700; color: var(--muted); }
.standing-ladder__step small { font-size: 12px; font-weight: 600; color: var(--text-2); line-height: 1.3; }
.standing-ladder__step.is-past span { background: var(--danger); border-color: var(--danger); color: #fff; }
.standing-ladder__step.is-next { background: var(--accent-soft); }
.standing-ladder__step.is-next span { border-color: var(--accent); color: var(--accent-ink); }
.standing-history { display: grid; }
.standing-entry { position: relative; display: flex; gap: 14px; padding: 0 0 20px 2px; }
.standing-entry::before { content: ""; position: absolute; left: 9px; top: 22px; bottom: 0; width: 2px; background: var(--line); }
.standing-entry:last-child { padding-bottom: 0; }
.standing-entry:last-child::before { display: none; }
.standing-entry__dot { flex: none; width: 16px; height: 16px; margin-top: 3px; border-radius: 50%; background: var(--line-strong); box-shadow: 0 0 0 4px var(--surface); }
.standing-entry--warn .standing-entry__dot { background: var(--verified); }
.standing-entry--bad .standing-entry__dot { background: var(--danger); }
.standing-entry--good .standing-entry__dot { background: var(--success); }
.standing-entry__body { flex: 1; min-width: 0; }
.standing-entry__top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.standing-entry__top strong { font-size: 14.5px; }
.standing-entry__body > .chip { margin-right: 6px; }
.standing-entry__details { margin-top: 8px; }
.standing-entry__details > summary { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--accent-ink); cursor: pointer; list-style: none; }
.standing-entry__details > summary::-webkit-details-marker { display: none; }
.standing-appeal { margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); font-size: 13.5px; }
.standing-appeal p { margin-top: 4px; color: var(--text-2); }
.standing-appeal--overturned { background: var(--success-soft); }
.standing-appeal--overturned strong { color: var(--success); }

.gate-card { margin: 0 0 14px; padding: 16px 18px; border-radius: 16px; background: rgba(240, 114, 114, .08); border: 1px solid rgba(240, 114, 114, .22); text-align: left; }
.gate-card--soft { background: rgba(100, 140, 201, .08); border-color: rgba(100, 140, 201, .26); }
.gate-card__label { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8dafe3; }
.gate-card__text { margin-top: 8px; font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, .82); }

.report-reasons { display: grid; gap: 6px; }
.report-reason { position: relative; display: block; cursor: pointer; }
.report-reason input { position: absolute; opacity: 0; }
.report-reason > span { display: grid; gap: 2px; padding: 11px 14px 11px 40px; border: 1px solid var(--line); border-radius: 12px; transition: border-color .2s, background .2s; }
.report-reason > span::before { content: ""; position: absolute; left: 14px; top: 14px; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--surface); box-sizing: border-box; }
.report-reason strong { font-size: 14px; }
.report-reason small { font-size: 12.5px; color: var(--muted); }
.report-reason:hover > span { border-color: var(--line-strong); }
.report-reason input:checked + span { border-color: var(--danger); background: var(--danger-soft); }
.report-reason input:checked + span::before { border: 5px solid var(--danger); }
.report-reason input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 1023.98px) {
  .help-layout { grid-template-columns: minmax(0, 1fr); }
  .help-side { position: static; }
}
@media (max-width: 599.98px) {
  .help-search .btn { display: none; }
  .help-band { padding: 20px; }
  .standing-ladder { grid-template-columns: repeat(5, minmax(64px, 1fr)); overflow-x: auto; }
  .standing-strikes { width: 100%; }
}

/* Notice banners (sent from the Console) and the legal centre */
.notice-banner { position: relative; display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; padding: 16px 16px 16px 18px; border: 1px solid var(--accent-soft); border-radius: var(--radius-lg); background: var(--accent-softer); box-shadow: var(--shadow-sm); }
.notice-banner--legal { background: var(--surface); border-color: var(--line-strong); }
.notice-banner--safety { background: var(--danger-soft); border-color: transparent; }
.notice-banner__icon { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); }
.notice-banner--safety .notice-banner__icon { background: rgba(180, 55, 47, .12); color: var(--danger); }
.notice-banner__text { flex: 1; min-width: 0; }
.notice-banner__text strong { display: block; font-size: 15px; }
.notice-banner__body { margin-top: 2px; font-size: 13.5px; color: var(--text-2); line-height: 1.55; }
.notice-banner__body p { margin-top: 4px; }
.notice-banner__body p:first-child { margin-top: 0; }
.notice-banner__link { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; font-size: 13.5px; font-weight: 600; color: var(--accent-ink); }
.notice-banner .icon-btn { width: 32px; height: 32px; }
.legal-hero__lead { max-width: 56ch; color: var(--ink-muted); font-size: 15px; margin-top: -6px; }
.legal-changes { margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: var(--accent-softer); border: 1px solid var(--accent-soft); }
.legal-changes strong { font-size: 13px; letter-spacing: .04em; color: var(--accent-ink); }
.legal-changes p { margin-top: 6px; font-size: 14px; color: var(--text-2); }
.legal-accept { max-width: 760px; margin: 0 auto; }
.legal-accept__doc { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); }
.legal-accept__changes { font-size: 14px; color: var(--text-2); line-height: 1.6; }
.legal-accept__other { padding-top: 16px; border-top: 1px solid var(--line); }
.legal-accept__other p { margin-top: 4px; }
.legal-accept__other a { color: var(--accent-ink); font-weight: 600; }

/* Site content preview (a private link from the Console) */
.landing-preview { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; background: #0d1522; color: #e6ecf6; font-size: 13px; font-weight: 600; }
.landing-plan.is-draft { outline: 2px dashed var(--accent, #4f76b0); outline-offset: 3px; }
.landing-plan.is-draft::after { content: "Draft"; position: absolute; top: 12px; right: 12px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent, #4f76b0); }
.landing-plan { position: relative; }
.landing-plan__yearly { margin: -4px 0 8px; }
.landing-plan__summary { margin: 0 0 10px; color: var(--muted, #556070); }

/* Your plan */
.plan-ask { display: flex; align-items: center; gap: 16px; padding: 18px 20px; margin-bottom: 16px; border-color: var(--accent, #4f76b0); }
.plan-ask__text { flex: 1; min-width: 0; }
.plan-ask__text h2 { margin: 0 0 4px; font-size: 17px; }
.plan-ask__text p { margin: 0; color: var(--muted, #556070); font-size: 14px; }
.plan-ask__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.plan-ask__actions form { margin: 0; }
.plan-now { display: grid; grid-template-columns: auto 1fr; gap: 14px 16px; align-items: center; padding: 20px; margin-bottom: 18px; }
.plan-now__icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--accent-soft, #d8e3f3); color: var(--accent, #4f76b0); }
.plan-now h2 { margin: 2px 0; font-family: var(--font-display, serif); font-size: 26px; font-weight: 500; }
.plan-now p { margin: 0; }
.plan-now__rules { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.plan-now__rules li { display: flex; gap: 8px; align-items: flex-start; }
.plan-now__rules .icon { flex: none; margin-top: 2px; color: var(--accent, #4f76b0); }
.plan-cards-app { margin-bottom: 12px; }
.plan-note { margin: 0 0 24px; }
.thread__rule { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line, rgba(0,0,0,.08)); font-size: 13.5px; color: var(--muted, #556070); }
.thread__rule .icon { flex: none; margin-top: 2px; color: var(--accent, #4f76b0); }
.thread__rule p { margin: 0; flex: 1; }
.thread__rule .btn { flex: none; }
@media (max-width: 640px) { .plan-ask { flex-direction: column; align-items: flex-start; } .thread__rule { flex-wrap: wrap; } }
.plan-badge { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 2px 9px 2px 7px; border-radius: 999px; background: linear-gradient(135deg, #6a90c9, #3e639a); color: #fff; font-family: var(--font-sans, inherit); font-size: 11px; font-weight: 700; letter-spacing: .03em; vertical-align: middle; }
.plan-badge .icon { width: 12px; height: 12px; }
.plan-compare { padding: 18px 20px; margin-bottom: 14px; }
.plan-compare h2 { margin: 0 0 12px; font-size: 18px; }
.plan-compare__scroll { overflow-x: auto; }
.plan-compare table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 520px; }
.plan-compare th, .plan-compare td { padding: 9px 10px; border-bottom: 1px solid var(--line, rgba(0,0,0,.08)); text-align: center; }
.plan-compare th[scope="row"], .plan-compare thead th:first-child { text-align: left; font-weight: 500; }
.plan-compare thead th { font-weight: 700; }
.plan-compare .is-mine { background: var(--accent-soft, rgba(79, 118, 176,.1)); }
.plan-compare__area th { padding-top: 16px; text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent, #4f76b0); border-bottom: 0; }
.plan-compare td .icon { color: var(--accent, #4f76b0); }
.chip--soon { padding: 1px 7px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.page-head__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.plan-shop { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.plan-code { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.plan-code .input { width: 180px; text-transform: uppercase; }
.plan-code__ok { display: inline-flex; align-items: center; gap: 4px; color: var(--success, #3f7d4e); font-size: 13px; font-weight: 600; }
.plan-code__bad { color: var(--danger, #b3412e); font-size: 13px; }
.plan-buy { display: grid; gap: 8px; margin-top: auto; padding-top: 12px; }
.plan-buy__option { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line, rgba(0,0,0,.1)); border-radius: 12px; cursor: pointer; }
.plan-buy__option:has(input:checked) { border-color: var(--accent, #4f76b0); background: var(--accent-soft, rgba(79, 118, 176,.08)); }
.plan-buy__option input { margin-top: 4px; accent-color: var(--accent, #4f76b0); }
.plan-buy__option strong { display: block; font-size: 16px; }
.plan-buy__option small { font-weight: 500; color: var(--muted, #556070); }
.plan-buy__offer { display: inline-block; font-style: normal; font-size: 12px; font-weight: 600; color: var(--accent, #4f76b0); }
.landing-plan { display: flex; flex-direction: column; }
.pay-card { max-width: 560px; margin: 0 auto; padding: 24px; }
.pay-lines { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.pay-lines li { display: flex; justify-content: space-between; gap: 12px; }
.pay-lines .pay-total { padding-top: 10px; border-top: 1px solid var(--line, rgba(0,0,0,.1)); font-weight: 700; font-size: 17px; }
.pay-actions { display: grid; gap: 10px; }
.pay-sandbox { padding: 12px 14px; border: 1px dashed var(--accent, #4f76b0); border-radius: 12px; font-size: 13px; }
.pay-sandbox form { display: inline; }
.receipt { max-width: 640px; margin: 0 auto; padding: 28px; }
.receipt__head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.receipt__status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.receipt__status--paid { background: rgba(63,125,78,.12); color: var(--success, #3f7d4e); }
.receipt__status--waiting { background: var(--accent-soft, rgba(79, 118, 176,.12)); color: var(--accent, #4f76b0); }
.receipt__status--failed, .receipt__status--expired, .receipt__status--refunded { background: rgba(179,65,46,.1); color: var(--danger, #b3412e); }
.receipt dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 18px 0; font-size: 14px; }
.receipt dt { color: var(--muted, #556070); }
.receipt dd { margin: 0; }
@media print { .app-nav, .bottom-bar, .rail, .nav-panel, .topbar, .receipt__actions { display: none !important; } .receipt { box-shadow: none; border: 0; } }

/* Promotions carousel (Home, Professional wall): FOLQIN's own offers and features */
.promo { position: relative; margin-bottom: 16px; border-radius: var(--radius-lg, 20px); overflow: hidden; background: #0d1522; box-shadow: var(--shadow-sm); aspect-ratio: 16 / 7; min-height: 220px; isolation: isolate; }
.promo__track { position: absolute; inset: 0; }
.promo__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s var(--ease, ease), visibility 0s .7s; }
.promo__slide.is-active { opacity: 1; visibility: visible; transition: opacity .7s var(--ease, ease); }
.promo__media { position: absolute; inset: 0; }
.promo__media img, .promo__media video { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.04); transition: transform 7s linear; -webkit-user-drag: none; user-select: none; }
.promo__slide.is-active .promo__media img, .promo__slide.is-active .promo__media video { transform: scale(1); }
.promo__slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 10, 17,.82) 0%, rgba(6, 10, 17,.45) 45%, rgba(6, 10, 17,0) 75%); pointer-events: none; }
.promo__body { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 8px; padding: 24px 28px 34px; max-width: 560px; color: #e6ecf6; text-decoration: none; }
.promo__label { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #7299d4; }
.promo__title { margin: 0; font-family: var(--font-display, serif); font-size: clamp(22px, 3vw, 32px); font-weight: 500; line-height: 1.1; }
.promo__text { margin: 0; font-size: 14px; line-height: 1.45; color: rgba(230, 236, 246,.86); }
.promo__cta { margin-top: 6px; }
.promo__nav { position: absolute; top: 50%; z-index: 3; width: 34px; height: 34px; margin-top: -17px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(230, 236, 246,.16); color: #fff; backdrop-filter: blur(6px); cursor: pointer; opacity: 0; transition: opacity .25s, background-color .2s; }
.promo:hover .promo__nav, .promo__nav:focus-visible { opacity: 1; }
.promo__nav:hover { background: rgba(230, 236, 246,.3); }
.promo__nav--prev { left: 12px; }
.promo__nav--next { right: 12px; }
.promo__dots { position: absolute; z-index: 3; left: 28px; bottom: 14px; display: flex; gap: 6px; }
.promo__dots button { width: 18px; height: 3px; padding: 0; border: 0; border-radius: 3px; background: rgba(230, 236, 246,.35); cursor: pointer; transition: width .3s, background-color .3s; }
.promo__dots button.is-active { width: 30px; background: #7299d4; }
.promo__close { position: absolute; top: 10px; right: 10px; z-index: 3; width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(6, 10, 17,.45); color: #e6ecf6; cursor: pointer; }
.promo__close:hover { background: rgba(6, 10, 17,.7); }
@media (max-width: 767.98px) {
  .main .promo { margin-left: -12px; margin-right: -12px; border-radius: 0; box-shadow: none; aspect-ratio: 4 / 5; max-height: 72vh; }
  .promo__slide::after { background: linear-gradient(0deg, rgba(6, 10, 17,.88) 0%, rgba(6, 10, 17,.35) 55%, rgba(6, 10, 17,0) 80%); }
  .promo__body { padding: 20px 16px 34px; }
  .promo__dots { left: 16px; }
  .promo__nav { display: none; }
}
@media (prefers-reduced-motion: reduce) { .promo__slide, .promo__media img, .promo__media video { transition: none; transform: none; } }

/* ======================================================================
   Sponsored content (Ads Manager): feed post, wall card, right column, reel, event,
   instant form, click-to-message, member controls
   ====================================================================== */
.ad-label { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.ad-label--dark { color: rgba(255, 255, 255, .82); background: rgba(0, 0, 0, .35); padding: 2px 8px; border-radius: 999px; backdrop-filter: blur(6px); }
.ad-card .post__head .menu { margin-left: auto; }
.ad-card__text { padding-top: 10px; }
.ad-card__media { display: block; margin: 12px 0 0; border-radius: 0; }
.ad-card__media .media { border-radius: 0; max-height: 640px; }
.ad-card__media img { width: 100%; height: auto; max-height: 640px; object-fit: cover; }
.ad-card__video { margin-top: 12px; }
.ad-carousel { display: flex; gap: 10px; padding: 12px 18px 2px; scroll-snap-type: x mandatory; }
.ad-carousel__card { flex: 0 0 min(72%, 300px); scroll-snap-align: start; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); transition: border-color .2s, transform .3s var(--ease); }
.ad-carousel__card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.ad-carousel__card .media { display: block; aspect-ratio: 1 / 1; }
.ad-carousel__card img { width: 100%; height: 100%; object-fit: cover; }
.ad-carousel__foot { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-size: 13.5px; }
.ad-carousel__foot strong { flex: 1; min-width: 0; }
.ad-prompts { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 18px 0; }
.ad-cta { display: flex; align-items: center; gap: 12px; margin: 12px 0 0; padding: 12px 18px 16px; background: var(--surface-2); border-top: 1px solid var(--line); border-radius: 0 0 var(--radius-lg) var(--radius-lg); transition: background .2s; }
.ad-cta:hover { background: var(--accent-soft); }
.ad-cta__text { flex: 1; min-width: 0; display: grid; gap: 1px; }
.ad-cta__text small { font-size: 10.5px; letter-spacing: .08em; color: var(--muted); }
.ad-cta__text strong { font-size: 15px; }
.ad-cta__text span { font-size: 13px; color: var(--muted); }
.ad-card--wall .listing-card__kind { background: var(--accent); color: var(--on-accent, #fff); }
.ad-card--wall .listing-card__owner .menu { margin-left: auto; }
.ad-card--wall .listing-card__owner .icon-btn { width: 30px; height: 30px; }
.ad-card__btn { margin-top: 10px; align-self: flex-start; }
.ad-card__blurb { color: var(--text-2); }
.ad-rail .card__head .menu { margin-left: auto; }
.ad-rail__media { display: block; margin: 0 14px; aspect-ratio: 1.91 / 1; border-radius: 12px; overflow: hidden; }
.ad-rail__media img { width: 100%; height: 100%; object-fit: cover; }
.ad-rail__body { display: grid; gap: 6px; padding: 12px 16px 16px; }
.ad-rail__who { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); min-width: 0; }
.ad-rail__headline { font-weight: 700; font-size: 14.5px; line-height: 1.3; }
.reel--ad .reel__who { flex-wrap: wrap; }
.ad-reel-cta { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .92); color: #0c1420; font-size: 13.5px; }
.ad-reel-cta span { flex: 1; min-width: 0; }
.ad-reel-cta strong { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.event-card.ad-card .event-card__save .icon-btn { background: var(--surface); }
.ad-card.is-hidden { display: none; }
.ad-hidden-note { padding: 14px 18px; font-size: 13.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.convo__ad { display: flex; align-items: center; gap: 4px; margin-top: 3px; font-size: 11.5px; font-weight: 600; color: var(--accent-ink); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.thread__ad { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 9px 18px; background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; border-bottom: 1px solid var(--line); }
.thread__ad span { flex: 1; min-width: 180px; }
.ad-form { max-width: 620px; margin: 0 auto; overflow: hidden; }
.ad-form__cover { display: block; aspect-ratio: 1.91 / 1; }
.ad-form__cover img { width: 100%; height: 100%; object-fit: cover; }
.ad-form__body { padding: 20px 22px 24px; }
.ad-form__who { display: flex; align-items: center; gap: 10px; }
.ad-form__who > div { display: grid; }
.ad-form__fields { display: grid; gap: 12px; margin-top: 14px; }
.ad-form__check, .ad-form__option { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; padding: 8px 0; }
.ad-form__check input, .ad-form__option input { margin-top: 3px; accent-color: var(--accent); }
.ad-form__choice { border: 0; padding: 0; margin: 0; }
.ad-form__review { display: grid; grid-template-columns: minmax(110px, auto) 1fr; gap: 6px 14px; margin: 0; padding: 14px; border-radius: 14px; background: var(--surface-2); font-size: 14px; }
.ad-form__review dt { color: var(--muted); }
.ad-form__review dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.ad-form__done { text-align: center; padding: 18px 0 6px; display: grid; gap: 10px; justify-items: center; }
.ad-form__tick { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--success-soft); color: var(--success); }
.ad-chat { max-width: 620px; margin: 0 auto; }
.ad-chat__head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.ad-chat__body { padding: 18px; display: grid; justify-items: start; }
.ad-chat__prompts { display: grid; gap: 8px; width: 100%; margin-top: 4px; }
.ad-chat__prompt { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--surface); font: inherit; font-size: 14px; text-align: left; cursor: pointer; transition: background .2s, border-color .2s; }
.ad-chat__prompt:hover { background: var(--accent-soft); border-color: transparent; }
.ad-chat__compose { display: flex; gap: 8px; padding: 0 18px 12px; }
.ad-chat__compose .input { flex: 1; }
.ad-chat__note { padding: 0 18px 16px; }
.ad-why { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.ad-why li { display: flex; gap: 8px; align-items: flex-start; font-size: 14.5px; }
.ad-why .icon { color: var(--accent); margin-top: 3px; flex: none; }
.ad-pref { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; margin-top: 8px; cursor: pointer; }
.ad-pref.is-on, .ad-pref:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.ad-pref input { margin-top: 4px; accent-color: var(--accent); }
.ad-pref span { display: grid; gap: 2px; }
.ad-pref small { color: var(--muted); font-size: 13px; }
@media (max-width: 640px) {
  .ad-form__body { padding: 16px; }
  .ad-chat__compose { flex-direction: column; }
}
.event-card.ad-card .event-card__foot { gap: 8px; }
.event-card.ad-card .event-card__foot > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event-card.ad-card .event-card__foot .btn { flex: none; }
.ad-card .ad-card__text { padding: 10px 18px 0; }

/* ==========================================================================
   Navy theme accents (2026-10-28)
   Navy carries the brand: the selected menu item, buttons and dark panels.
   Steel blue is for links and hover. Champagne appears only on premium
   details: the Passport card, seals, FOLQIN PRO, the trust score and plan badges.
   ========================================================================== */
.nav a.is-active { background: var(--accent-gradient); color: var(--on-accent); box-shadow: 0 10px 22px -12px rgba(16, 38, 74, .7); }
.nav a.is-active .icon { color: var(--on-accent); }
.nav a.is-active::before { display: none; }
.nav a:not(.is-active):hover { background: var(--surface-3); }

/* Dark panels use the brand navy instead of near-black. */
.pro-card { color: #EEF2F7; background: radial-gradient(120% 100% at 100% 0%, #2B528A 0%, #10264A 52%, #0A1730 100%); border-color: #1D3A66; }
.pro-card__title .icon { color: var(--champagne); }
.pro-card li { color: #C9D5E6; }
.pro-card li .icon { color: var(--champagne-2); }
.dark-panel { background: radial-gradient(120% 90% at 85% 0%, #244A7C 0%, #10264A 46%, #0A1730 100%); border-color: #1D3A66; }
.landing-cta { background: radial-gradient(120% 120% at 50% 0%, #244A7C 0%, #10264A 55%, #0A1730 100%); }
.landing-hero__title em, .help-hero__title em { color: var(--champagne-2); }
.landing-hero .auth-show__eyebrow, .auth-show__eyebrow { color: var(--champagne-2); }

/* Passport: a navy ID card with champagne print. */
.passport-card { color: #EEF2F7; background: radial-gradient(140% 120% at 100% 0%, #2E5893 0%, #10264A 50%, #0A1730 100%); border-color: #1D3A66; }
.passport-card__issuer { color: var(--champagne); }
.passport-card__mark { color: var(--champagne-2); }
.passport-card__number { color: #D5E0F0; }
.seal--trust { color: var(--champagne-2); border-color: rgba(196, 165, 116, .45); background: rgba(196, 165, 116, .1); }
.seal--founder { color: #E8D7B5; border-color: rgba(220, 198, 158, .4); background: rgba(220, 198, 158, .08); }

/* Trust score and levels: the score ring is the one gold element on the page. */
.trust-meter__ring { background: conic-gradient(var(--champagne) calc(var(--p) * 1%), rgba(255, 255, 255, .1) 0); }
.trust-meter__ring span { background: #0A1730; color: var(--champagne-2); }
.trust-meter--hero .trust-meter__ring { background: conic-gradient(#E2CDA4 0, #A7864F calc(var(--p) * 1%), rgba(255, 255, 255, .08) 0); box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 18px 50px -18px rgba(196, 165, 116, .45); }
.trust-meter--hero .trust-meter__ring strong { color: var(--champagne-2); }
.levels div.is-current { background: var(--champagne-gradient); color: #10264A; }
.trust-meter__next { color: var(--champagne-2); }

/* Premium badges and the welcome seal. */
.plan-badge { background: var(--champagne-gradient); color: #10264A; }
.celebrate__seal { border-color: rgba(196, 165, 116, .55); box-shadow: 0 0 60px rgba(196, 165, 116, .2), inset 0 0 40px rgba(196, 165, 116, .08); }
.celebrate__seal .icon { color: var(--champagne); }

/* Solid accent fills need white text in both themes. */
.ad-card--wall .listing-card__kind { background: var(--accent-gradient); color: #fff; }

/* Sign-in and sign-up screens: a steel-blue button with white text, and the same champagne headline as the landing page. */
.theme-dark .btn--accent { background: linear-gradient(180deg, #3A69B0 0%, #244A7C 100%); color: #fff; box-shadow: 0 10px 24px -12px rgba(58, 105, 176, .8), inset 0 1px 0 rgba(255, 255, 255, .16); }
.theme-dark .btn--accent:hover { color: #fff; filter: brightness(1.08); }
.auth-show__title em { color: var(--champagne-2); }
.auth-show__label { color: #fff; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28); }
.nav a.is-active .count-badge { background: #fff; color: #10264A; }

/* Sponsored label: a small megaphone in the brand colour beside the word, on every ad. */
.ad-label { gap: 5px; color: var(--text-2); }
.ad-label .icon { width: 13px; height: 13px; flex: none; color: var(--accent-ink); stroke-width: 2.1; }
.ad-label--dark { gap: 5px; color: #fff; }
.ad-label--dark .icon { color: #fff; }
.listing-card__kind .icon { width: 13px; height: 13px; }
