/* === LifeChat 2.0 — HARD contrast lock (Hosting / ZoneSearch standard) ===
   Do not re-bind paint to broken light --imp-surface + light --imp-fg from the template. */
:root {
  --imp-fg-fallback: #0f172a;
  --imp-bg-fallback: #ffffff;
  --imp-heading-fallback: #0f172a;
  --imp-muted-fallback: #475569;
  --imp-surface-fallback: #f8fafc;
  --imp-border-fallback: #e2e8f0;
  --imp-fg: var(--body-color, var(--color-fg, var(--nf-body-text, var(--imp-fg-fallback))));
  --imp-bg: var(--body-bg, var(--color-bg, var(--nf-body-bg, var(--imp-bg-fallback))));
  --imp-heading: var(--heading-color, var(--nf-body-text, var(--imp-heading-fallback)));
  --imp-muted: var(--muted-color, color-mix(in srgb, var(--imp-fg) 62%, var(--imp-bg)));
  --imp-surface: var(--surface-color, var(--sh-card-bg, color-mix(in srgb, var(--imp-fg) 6%, var(--imp-bg))));
  --imp-border: var(--border-color, var(--sh-border, color-mix(in srgb, var(--imp-fg) 16%, var(--imp-bg))));
  --imp-icon: var(--imp-fg);
  --imp-link: var(--link-color, var(--nf-link, LinkText));
}
@supports (color: light-dark(#111, #eee)) {
  :root {
    --imp-fg-fallback: light-dark(#0f172a, #e8eef5);
    --imp-bg-fallback: light-dark(#ffffff, #0b1220);
    --imp-heading-fallback: light-dark(#0f172a, #f1f5f9);
    --imp-muted-fallback: light-dark(#475569, #9db0c0);
    --imp-surface-fallback: light-dark(#f8fafc, #121a28);
    --imp-border-fallback: light-dark(#e2e8f0, #2a3648);
  }
}

.lc-view,
.lc-app,
.lifechat {
  --lc-ink: var(--imp-fg, #14181f);
  --lc-muted: var(--imp-muted, #5c6570);
  --lc-bg: var(--imp-bg, #f3f1ec);
  --lc-surface: var(--imp-surface, #fff);
  --lc-border: var(--imp-border, #e2e8f0);
  color: var(--lc-ink);
  color-scheme: light dark;
}

.lc-app svg, .lifechat svg, .lc-view svg { color: var(--imp-icon, currentColor); fill: currentColor; }

:root {
  --lc-font-sans: "Outfit", "Manrope", system-ui, sans-serif;
  --lc-font-display: "Fraunces", "Poppins", var(--lc-font-sans);
  --lc-accent: #0f6e56;
  --lc-accent-2: #c45c26;
  --lc-brand: #0345bf;
  --lc-brand-soft: color-mix(in srgb, #0345bf 14%, transparent);
  --lc-radius: 12px;
  --lc-space-1: 4px;
  --lc-space-2: 8px;
  --lc-space-3: 16px;
  --lc-space-4: 24px;
  --lc-focus: 0 0 0 3px rgba(3, 69, 191, 0.35);
  --lc-glass: color-mix(in srgb, var(--lc-surface) 78%, transparent);
}

[data-lc-theme="dark"] .lc-view,
[data-color-scheme="dark"] .lc-view,
html[data-bs-theme="dark"] .lc-view {
  --lc-ink: #e8eef5;
  --lc-muted: #9db0c0;
  --lc-bg: #0b1220;
  --lc-surface: #121a28;
  --lc-border: #2a3648;
  --lc-accent: #3dba95;
  --lc-brand: #5b8cff;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-lc-theme="light"]):not([data-bs-theme="light"]) .lc-view {
    --lc-ink: #e8eef5;
    --lc-muted: #9db0c0;
    --lc-bg: #0b1220;
    --lc-surface: #121a28;
    --lc-border: #2a3648;
    --lc-accent: #3dba95;
    --lc-brand: #5b8cff;
  }
}

.lc-view {
  font-family: var(--lc-font-sans);
  color: var(--lc-ink);
  max-width: min(1100px, 100%);
  margin: 0 auto;
  padding: var(--lc-space-3);
  background: transparent;
}

.lc-panel {
  background: var(--lc-surface);
  border: 1px solid var(--lc-border, color-mix(in srgb, var(--lc-ink) 12%, transparent));
  border-radius: var(--lc-radius);
  padding: var(--lc-space-3);
  margin: var(--lc-space-3) 0;
}

.lc-people-list, .lc-market-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--lc-space-2);
}
.lc-market-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.lc-people-card, .lc-market-card, .lc-poll {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 1rem;
  background: var(--lc-surface);
  border: 1px solid var(--lc-border, color-mix(in srgb, var(--lc-ink) 12%, transparent));
  border-radius: var(--lc-radius);
}
.lc-market-card { flex-direction: column; align-items: flex-start; }
.lc-market-price { font-weight: 700; color: var(--lc-brand); margin: 0; }
.lc-hashtags { display: flex; flex-wrap: wrap; gap: .4rem; }
.lc-hashtag {
  display: inline-block;
  padding: .2rem .55rem;
  border-radius: 999px;
  background: var(--lc-brand-soft);
  color: var(--lc-brand);
  font-size: .85rem;
}
.lc-poll__options { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .35rem; width: 100%; }

body.nf-option-com_lifechat .nf-component {
  max-width: none !important;
  width: 100%;
}

/* === legacy bridge kept below for selectors that still reference --lc-* === */
:root { --lc-ink: var(--imp-fg, #14181f); --lc-muted: var(--imp-muted, #5c6570); --lc-bg: var(--imp-bg, #f3f1ec); --lc-surface: var(--imp-surface, #fff); }
.lc-app, .lifechat, [class*='lc-'] { color: var(--lc-ink); }
.lc-app svg, .lifechat svg { color: var(--imp-icon, currentColor); fill: currentColor; }
:root {
  --lc-font-sans: "Outfit", "Manrope", system-ui, sans-serif;
  --lc-font-display: "Fraunces", "Poppins", var(--lc-font-sans);
  --lc-bg: #f3f1ec;
  --lc-surface: #ffffff;
  --lc-ink: #14181f;
  --lc-muted: #5c6570;
  --lc-accent: #0f6e56;
  --lc-accent-2: #c45c26;
  --lc-brand: #0345bf; /* Impero / NovaFrame signature */
  --lc-brand-soft: color-mix(in srgb, #0345bf 14%, transparent);
  --lc-radius: 12px;
  --lc-space-1: 4px;
  --lc-space-2: 8px;
  --lc-space-3: 16px;
  --lc-space-4: 24px;
  --lc-focus: 0 0 0 3px rgba(3, 69, 191, 0.35);
  --lc-glass: color-mix(in srgb, var(--lc-surface) 78%, transparent);
}

[data-lc-theme="dark"] {
  --lc-bg: #0e1116;
  --lc-surface: #171b22;
  --lc-ink: #f2f4f7;
  --lc-muted: #9aa3ad;
  --lc-accent: #3dba95;
  --lc-brand: #5b8cff;
  --lc-brand-soft: color-mix(in srgb, #5b8cff 18%, transparent);
  --lc-glass: color-mix(in srgb, var(--lc-surface) 72%, transparent);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-lc-theme="light"]) {
    --lc-bg: #0e1116;
    --lc-surface: #171b22;
    --lc-ink: #f2f4f7;
    --lc-muted: #9aa3ad;
    --lc-accent: #3dba95;
    --lc-brand: #5b8cff;
    --lc-brand-soft: color-mix(in srgb, #5b8cff 18%, transparent);
    --lc-glass: color-mix(in srgb, var(--lc-surface) 72%, transparent);
  }
}

.lc-view {
  font-family: var(--lc-font-sans);
  color: var(--lc-ink);
  max-width: min(1100px, 100%);
  margin: 0 auto;
  padding: var(--lc-space-3);
}

.lc-view h1,
.lc-view h2 {
  font-family: var(--lc-font-display);
  font-weight: 700;
  margin: 0 0 var(--lc-space-2);
}

.lc-muted { color: var(--lc-muted); }

.lc-cta {
  display: inline-block;
  background: var(--lc-accent);
  color: #fff;
  padding: 0.65rem 1.1rem;
  border-radius: var(--lc-radius);
  text-decoration: none;
  border: 0;
  cursor: pointer;
}

.lc-cta:focus-visible,
.lc-media-thumb:focus-visible,
.lc-album-tile:focus-visible,
.lc-video-card:focus-visible,
.lc-lightbox__close:focus-visible,
.lc-lightbox__nav:focus-visible {
  outline: none;
  box-shadow: var(--lc-focus);
}

.lc-cta--ghost {
  background: transparent;
  color: var(--lc-accent);
  border: 1px solid color-mix(in srgb, var(--lc-accent) 45%, transparent);
}

.lc-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--lc-space-2);
  margin-bottom: var(--lc-space-3);
}

/* —— Profile dossier (editorial social) —— */
/* Fill .nf-main / .nf-component: no floating max-width card in a wide column */
.lc-profile.lc-view,
.lc-profile--dossier,
.lc-profile--v2 {
  max-width: none;
  width: 100%;
  margin-inline: 0;
  padding: 0 0 var(--lc-space-4);
  box-sizing: border-box;
}
/* Cover bleeds to glass-panel edges (cancel .nf-component padding) */
body.nf-option-com_lifechat.view-profile .nf-component:has(.lc-profile) {
  padding-top: 0;
  padding-inline: 0;
  overflow: clip;
}
body.nf-option-com_lifechat.view-profile .nf-component:has(.lc-profile) > .lc-profile {
  /* restore horizontal rhythm for identity / tabs / panels */
  --lc-profile-inline: clamp(1rem, 2.5vw, 1.75rem);
}
.lc-profile__hero {
  position: relative;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  isolation: isolate;
  width: 100%;
}
.lc-profile__atmosphere {
  position: absolute;
  inset: -8% 0 auto;
  height: 70%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, color-mix(in srgb, var(--lc-brand) 28%, transparent), transparent 70%),
    radial-gradient(ellipse 50% 45% at 85% 20%, color-mix(in srgb, var(--lc-accent-2) 22%, transparent), transparent 65%);
  filter: blur(2px);
}
.lc-profile__cover {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 200px;
  border-radius: 0;
  overflow: hidden;
  background:
    linear-gradient(128deg, color-mix(in srgb, var(--lc-brand) 55%, #061028), color-mix(in srgb, var(--lc-accent) 35%, #0a1f18) 55%, color-mix(in srgb, var(--lc-accent-2) 40%, #1a1008)),
    var(--lc-cover, none) center / cover no-repeat;
  box-shadow: 0 24px 48px rgb(3 20 60 / 18%);
}
.lc-profile__cover-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 35%, color-mix(in srgb, var(--lc-bg) 88%, transparent) 100%),
    radial-gradient(circle at 70% 40%, transparent 0%, rgb(0 0 0 / 22%) 100%);
}
.lc-profile__identity {
  position: relative;
  z-index: 2;
  display: flex;
  gap: var(--lc-space-3);
  align-items: flex-end;
  margin-top: -72px;
  padding: 0 var(--lc-profile-inline, clamp(1rem, 3vw, 1.75rem)) var(--lc-space-4);
}
.lc-profile__orb {
  position: relative;
  width: 132px;
  height: 132px;
  flex-shrink: 0;
}
.lc-profile__orb-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--lc-brand) 45%, transparent);
  animation: lc-orb-breathe 4.8s ease-in-out infinite;
  pointer-events: none;
}
.lc-profile__orb-ring--slow {
  inset: -18px;
  border-color: color-mix(in srgb, var(--lc-accent-2) 35%, transparent);
  animation-duration: 7.2s;
  animation-direction: reverse;
  opacity: 0.7;
}
.lc-profile__avatar {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid color-mix(in srgb, var(--lc-surface) 90%, var(--lc-brand));
  background: var(--lc-surface);
  box-shadow:
    0 0 0 6px color-mix(in srgb, var(--lc-bg) 90%, transparent),
    0 14px 36px rgb(3 30 80 / 28%);
  display: block;
}
.lc-profile__avatar--placeholder {
  display: grid;
  place-items: center;
  font-family: var(--lc-font-display);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--lc-brand);
  background:
    radial-gradient(circle at 30% 25%, #fff, color-mix(in srgb, var(--lc-brand) 18%, var(--lc-surface)));
}
.lc-profile__meta { min-width: 0; flex: 1; padding-bottom: 0.25rem; }
.lc-profile__kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lc-brand);
  font-weight: 650;
}
.lc-profile__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
}
.lc-profile__name {
  font-family: var(--lc-font-display);
  font-size: clamp(1.75rem, 4vw, 2.55rem);
  font-weight: 650;
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.lc-profile__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--lc-brand-soft);
  color: var(--lc-brand);
  font-size: 0.78rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}
.lc-profile__badge--muted {
  color: var(--lc-muted);
  background: color-mix(in srgb, var(--lc-muted) 12%, var(--lc-surface));
}
.lc-profile__badge-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--lc-brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--lc-brand) 25%, transparent);
}
.lc-profile__bio {
  margin: var(--lc-space-2) 0 0;
  max-width: min(48rem, 100%);
  color: var(--lc-muted);
  font-size: 1.02rem;
  line-height: 1.55;
}
.lc-profile__bio--private { font-style: italic; }
.lc-profile__interests {
  display: flex;
  flex-wrap: wrap;
  gap: var(--lc-space-2);
  list-style: none;
  padding: 0;
  margin: var(--lc-space-3) 0 0;
}
.lc-profile__interests li {
  background: var(--lc-glass);
  border: 1px solid color-mix(in srgb, var(--lc-brand) 18%, transparent);
  padding: 0.32rem 0.8rem;
  border-radius: 999px;
  font-size: 0.82rem;
  backdrop-filter: blur(6px);
  animation: lc-chip-in 0.55s ease both;
  animation-delay: calc(var(--i, 0) * 45ms);
}
.lc-profile__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: var(--lc-space-3);
}
.lc-profile__tabs {
  position: relative;
  display: flex;
  gap: 0.1rem;
  margin: var(--lc-space-4) var(--lc-profile-inline, clamp(0.75rem, 2vw, 1.25rem)) var(--lc-space-2);
  border-bottom: 1px solid color-mix(in srgb, var(--lc-muted) 22%, transparent);
  overflow-x: auto;
  scrollbar-width: none;
}
.lc-profile__tabs::-webkit-scrollbar { display: none; }
.lc-profile__tab {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--lc-muted);
  font: inherit;
  font-weight: 650;
  padding: 0.85rem 1.05rem;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: color 0.2s ease;
}
.lc-profile__tab:hover { color: var(--lc-ink); }
.lc-profile__tab:focus-visible {
  outline: none;
  box-shadow: var(--lc-focus);
  border-radius: 8px 8px 0 0;
}
.lc-profile__tab.is-active { color: var(--lc-brand); }
.lc-profile__tab-ink {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 40px;
  background: linear-gradient(90deg, var(--lc-brand), var(--lc-accent));
  border-radius: 2px 2px 0 0;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.lc-profile__panels {
  position: relative;
  padding: 0 var(--lc-profile-inline, clamp(0.75rem, 2vw, 1.25rem));
  margin-bottom: var(--lc-space-4);
  overflow: hidden;
  transition: height 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  width: 100%;
  box-sizing: border-box;
}
.lc-profile__panel {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.32s ease, transform 0.32s ease;
  pointer-events: none;
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  visibility: hidden;
}
.lc-profile__panel.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  position: relative;
  visibility: visible;
}
.lc-profile__panel[hidden] { display: none !important; }
.lc-profile__panel.is-active[hidden] { display: block !important; }

/* Info dossier constellation — stretch full profile width */
.lc-dossier {
  display: grid;
  gap: var(--lc-space-4);
  width: 100%;
  box-sizing: border-box;
}
@media (min-width: 720px) {
  .lc-dossier {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    align-items: stretch;
  }
}
.lc-dossier__constellation {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
  gap: 0.75rem;
  width: 100%;
  min-width: 0;
}
.lc-dossier__chip {
  position: relative;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: var(--lc-glass);
  border: 1px solid color-mix(in srgb, var(--lc-ink) 8%, transparent);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgb(15 23 42 / 4%);
  animation: lc-chip-in 0.55s ease both;
  animation-delay: calc(var(--i, 0) * 55ms);
  overflow: hidden;
}
.lc-dossier__chip::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: color-mix(in srgb, var(--lc-brand) 55%, transparent);
}
.lc-dossier__chip--accent::before { background: var(--lc-accent); }
.lc-dossier__chip--warm::before { background: var(--lc-accent-2); }
.lc-dossier__chip--private { opacity: 0.85; }
.lc-dossier__label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lc-muted);
  margin-bottom: 0.35rem;
  font-weight: 650;
}
.lc-dossier__value {
  font-family: var(--lc-font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  word-break: break-word;
}
.lc-dossier__value small {
  font-family: var(--lc-font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--lc-muted);
}
.lc-dossier__narrative {
  padding: 1.25rem 1.35rem;
  border-radius: 20px;
  width: 100%;
  min-width: 0;
  min-height: 100%;
  box-sizing: border-box;
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--lc-brand) 6%, var(--lc-surface)), var(--lc-surface));
  border: 1px solid color-mix(in srgb, var(--lc-brand) 12%, transparent);
  box-shadow: 0 12px 32px rgb(3 40 100 / 6%);
}
.lc-dossier__narrative-title {
  font-family: var(--lc-font-display);
  font-size: 1.05rem;
  margin: 0 0 0.65rem;
  letter-spacing: -0.02em;
}
.lc-dossier__narrative-body {
  margin: 0;
  line-height: 1.65;
  color: var(--lc-ink);
}

.lc-profile__masonry {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  grid-auto-flow: dense;
}
.lc-profile__masonry-item {
  animation: lc-chip-in 0.5s ease both;
  animation-delay: calc(var(--i, 0) * 40ms);
}
.lc-profile__masonry-item:nth-child(3n) { grid-row: span 2; }
.lc-profile__masonry-item:nth-child(3n) .lc-media-thumb { aspect-ratio: 3 / 4; }
.lc-profile__grid {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

@keyframes lc-orb-breathe {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.045); opacity: 1; }
}
@keyframes lc-chip-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .lc-profile__orb-ring,
  .lc-profile__interests li,
  .lc-dossier__chip,
  .lc-profile__masonry-item,
  .lc-profile__panel,
  .lc-profile__tab-ink,
  .lc-profile__panels {
    animation: none !important;
    transition: none !important;
  }
}
.lc-video-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--lc-space-3);
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.lc-video-card--thumb {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  text-decoration: none;
  color: inherit;
  background: var(--lc-surface);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgb(15 23 42 / 6%);
  padding: 0;
}
.lc-video-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  overflow: hidden;
}
.lc-video-card__media img,
.lc-video-card__preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lc-video-card__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1e293b, #0f172a);
}
.lc-video-card__play {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 2.6rem;
  height: 2.6rem;
  margin: -1.3rem 0 0 -1.3rem;
  border-radius: 50%;
  background: rgb(255 255 255 / 88%);
  box-shadow: 0 4px 14px rgb(0 0 0 / 25%);
}
.lc-video-card__play::before {
  content: "";
  position: absolute;
  left: 55%;
  top: 50%;
  transform: translate(-40%, -50%);
  border-style: solid;
  border-width: 0.45rem 0 0.45rem 0.75rem;
  border-color: transparent transparent transparent #0f172a;
}
.lc-video-card__duration {
  position: absolute;
  right: 0.45rem;
  bottom: 0.45rem;
  background: rgb(0 0 0 / 72%);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 650;
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
}
.lc-video-card__title {
  font-weight: 650;
  padding: 0 0.85rem 0.85rem;
}

@media (min-width: 768px) {
  .lc-profile__cover { min-height: 260px; }
  .lc-profile__masonry { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
  .lc-profile__grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
}

/* legacy profile bits retained below */

.lc-media-strip,
.lc-photo-grid,
.lc-album-grid,
.lc-video-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--lc-space-2);
}

.lc-media-strip {
  grid-auto-flow: column;
  grid-auto-columns: minmax(120px, 160px);
  overflow-x: auto;
  padding-bottom: var(--lc-space-2);
  scroll-snap-type: x mandatory;
}

.lc-media-strip li { scroll-snap-align: start; }

.lc-photo-grid,
.lc-album-grid {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.lc-media-thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--lc-surface);
  border-radius: var(--lc-radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
}

.lc-media-thumb img,
.lc-album-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lc-album-tile {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--lc-surface);
  border-radius: var(--lc-radius);
  overflow: hidden;
  min-height: 180px;
}

.lc-album-tile__empty {
  display: block;
  aspect-ratio: 4/3;
  background: color-mix(in srgb, var(--lc-muted) 20%, var(--lc-surface));
}

.lc-album-tile__meta { padding: var(--lc-space-2); }
.lc-album-tile__title { display: block; font-weight: 600; }

.lc-video-list { grid-template-columns: 1fr; }
.lc-video-card {
  display: flex;
  justify-content: space-between;
  gap: var(--lc-space-2);
  padding: var(--lc-space-3);
  background: var(--lc-surface);
  border-radius: var(--lc-radius);
  text-decoration: none;
  color: inherit;
}
.lc-video-card__title { font-weight: 600; }

.lc-video-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--lc-radius);
  overflow: hidden;
}
.lc-video-player iframe,
.lc-video-player video {
  width: 100%;
  height: 100%;
  border: 0;
}

.lc-profile .lc-privacy-note {
  padding-inline: var(--lc-profile-inline, clamp(0.75rem, 2vw, 1.25rem));
  box-sizing: border-box;
  width: 100%;
  max-width: none;
}
.lc-privacy-note {
  margin-top: var(--lc-space-4);
  font-size: 0.85rem;
  color: var(--lc-muted);
}

.lc-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.88);
  padding: var(--lc-space-3);
}
.lc-lightbox[hidden] { display: none !important; }
.lc-lightbox__img {
  max-width: min(96vw, 1100px);
  max-height: 86vh;
  object-fit: contain;
}
.lc-lightbox__close,
.lc-lightbox__nav {
  position: absolute;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: var(--lc-space-2);
}
.lc-lightbox__close { top: 0.5rem; right: 0.75rem; }
.lc-lightbox__prev { left: 0.5rem; }
.lc-lightbox__next { right: 0.5rem; }

@media (prefers-reduced-motion: reduce) {
  .lc-media-strip { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

@media (min-width: 768px) {
  .lc-profile__cover { min-height: 260px; }
  .lc-photo-grid,
  .lc-album-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .lc-room__layout { grid-template-columns: 1fr 220px; }
}

/* —— Product surface 1.0 —— */
.lc-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--lc-space-3);
  margin-bottom: var(--lc-space-4);
  padding-bottom: var(--lc-space-2);
  border-bottom: 1px solid color-mix(in srgb, var(--lc-muted) 25%, transparent);
}
.lc-nav a {
  color: var(--lc-ink);
  text-decoration: none;
  font-weight: 600;
}
.lc-nav a[aria-current="page"],
.lc-nav a:hover { color: var(--lc-accent); }

.lc-hero {
  background:
    radial-gradient(120% 80% at 10% 0%, color-mix(in srgb, var(--lc-accent) 18%, transparent), transparent 55%),
    linear-gradient(180deg, color-mix(in srgb, var(--lc-surface) 90%, var(--lc-bg)), var(--lc-bg));
  border-radius: var(--lc-radius);
  padding: var(--lc-space-4);
  margin-bottom: var(--lc-space-4);
}
.lc-brand {
  font-family: var(--lc-font-display);
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--lc-accent);
  margin: 0 0 var(--lc-space-1);
}
.lc-cta-row { display: flex; flex-wrap: wrap; gap: var(--lc-space-2); margin-top: var(--lc-space-3); }

.lc-grid { margin-bottom: var(--lc-space-4); }
.lc-chip-list, .lc-card-list, .lc-feed-list, .lc-ice {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: var(--lc-space-2);
}
.lc-chip-list li, .lc-card-list li, .lc-feed-item {
  background: var(--lc-surface);
  border-radius: var(--lc-radius);
  padding: var(--lc-space-3);
}
.lc-room-link { text-decoration: none; color: inherit; display: grid; gap: 4px; }
.lc-linkish {
  background: none; border: 0; color: var(--lc-accent); cursor: pointer; padding: 0; font: inherit; text-decoration: underline;
}
.lc-ice__btn {
  width: 100%; text-align: left; padding: var(--lc-space-3);
  border-radius: var(--lc-radius); border: 1px dashed color-mix(in srgb, var(--lc-accent) 40%, transparent);
  background: var(--lc-surface); cursor: pointer; color: inherit;
}
.lc-ice--copied { border-style: solid; border-color: var(--lc-accent); }

.lc-room__layout {
  display: grid;
  gap: var(--lc-space-3);
}
.lc-chat__log {
  min-height: 280px; max-height: 55vh; overflow: auto;
  background: var(--lc-surface); border-radius: var(--lc-radius);
  padding: var(--lc-space-3); display: grid; gap: var(--lc-space-2);
}
.lc-msg__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}
.lc-msg time { font-size: 0.8rem; color: var(--lc-muted); margin-left: var(--lc-space-2); }

.lc-userchip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}
.lc-userchip:hover .lc-userchip__name,
.lc-userchip:focus-visible .lc-userchip__name { color: var(--lc-accent); text-decoration: underline; }
.lc-userchip:focus-visible { outline: none; box-shadow: var(--lc-focus); border-radius: 8px; }
.lc-userchip__name {
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 14rem;
}
.lc-avatar {
  border-radius: 50%;
  object-fit: cover;
  background: color-mix(in srgb, var(--lc-accent) 18%, var(--lc-surface));
  flex-shrink: 0;
}
.lc-avatar--sm { width: 32px; height: 32px; }
.lc-avatar--md { width: 48px; height: 48px; }
.lc-chip-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.lc-feed-item {
  display: grid;
  gap: 0.35rem;
}
.lc-profile-private {
  text-align: center;
  padding: var(--lc-space-4);
}
.lc-chat__form {
  display: grid; gap: var(--lc-space-2); margin-top: var(--lc-space-2);
}
.lc-chat__form textarea, .lc-form input, .lc-form textarea, .lc-form select, .lc-ai input {
  width: 100%; padding: 0.65rem 0.75rem; border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--lc-muted) 35%, transparent);
  background: var(--lc-surface); color: var(--lc-ink); font: inherit;
}
.lc-form { margin-top: var(--lc-space-4); display: grid; gap: var(--lc-space-2); max-width: 32rem; }
.lc-form label, .lc-check { display: grid; gap: 4px; }
.lc-check { grid-template-columns: auto 1fr; align-items: center; }
.lc-members { background: var(--lc-surface); border-radius: var(--lc-radius); padding: var(--lc-space-3); }
.lc-status { min-height: 1.25rem; }
.lc-ai { margin-top: var(--lc-space-4); padding: var(--lc-space-3); background: var(--lc-surface); border-radius: var(--lc-radius); }
.lc-ai__out { white-space: pre-wrap; font-family: var(--lc-font-sans); }
.lc-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;
}
.lc-voice__peers { display: grid; gap: var(--lc-space-2); margin-top: var(--lc-space-3); }
.lc-back { display: inline-block; margin-bottom: var(--lc-space-2); color: var(--lc-accent); }

.lc-mod {
  font-family: var(--lc-font-sans);
  background: var(--lc-surface);
  border-radius: var(--lc-radius);
  padding: var(--lc-space-3);
  color: var(--lc-ink);
}
.lc-mod ul { list-style: none; padding: 0; margin: var(--lc-space-2) 0 0; display: grid; gap: 6px; }
.lc-mod a { color: inherit; text-decoration: none; }
.lc-mod a:hover { color: var(--lc-accent); }

/* Discovery rail: sticky on desktop right sidebar; stacks below on mobile */
.lc-mod-discovery {
  width: 100%;
}
/* LifeChat: main column always fills remaining space beside sidebar-right */
body.nf-option-com_lifechat .nf-portal-main,
body.nf-option-com_lifechat .nf-component:has(.lc-view) {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
@media (min-width: 992px) {
  /* Wide dossier + fixed ~300px Discovery rail (NovaFrame portal grid) */
  body.nf-option-com_lifechat .nf-portal-grid--sidebar:not(:has(.nf-sidebar--left)) {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
  }
  .nf-sidebar--right {
    align-self: start;
  }
  .nf-sidebar--right .lc-mod-discovery {
    position: sticky;
    top: 1rem;
    z-index: 2;
  }
}

@keyframes lc-fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.lc-hero, .lc-grid, .lc-chat__log { animation: lc-fade-up 0.45s ease both; }
.lc-grid:nth-of-type(2) { animation-delay: 0.06s; }
.lc-grid:nth-of-type(3) { animation-delay: 0.12s; }

/* ---- Inbox + chrome (FB-like) — LifeChat 1.1.0 ---- */
.lc-inbox__list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.lc-inbox__item {
  display: grid; gap: 0.2rem; padding: 0.85rem 1rem; border-radius: 12px;
  background: var(--lc-card, #fff); border: 1px solid color-mix(in srgb, var(--lc-accent, #0f6e56) 18%, #e2e8f0);
  text-decoration: none; color: inherit;
}
.lc-inbox__item:hover { border-color: var(--lc-accent, #0f6e56); }
.lc-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.4rem; height: 1.4rem; padding: 0 0.35rem; border-radius: 999px;
  background: #dc2626; color: #fff; font-size: 0.75rem; font-weight: 700;
}
.lc-inbox__new { margin: 1rem 0; padding: 1rem; border-radius: 12px; background: color-mix(in srgb, var(--lc-accent, #0f6e56) 6%, #fff); }
.lc-av { margin-top: 1rem; padding: 1rem; border-radius: 12px; background: #0f172a; color: #e2e8f0; }
.lc-av__videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.75rem; }
.lc-av__local, .lc-av__peer video { width: 100%; max-height: 220px; border-radius: 8px; background: #000; }
.lc-privacy-note { font-size: 0.8rem; opacity: 0.85; }

.lc-chrome { position: relative; z-index: 40; margin: 0 0 1rem; }
.lc-chrome__top {
  display: flex; align-items: center; gap: 0.75rem; justify-content: space-between;
  padding: 0.55rem 0.75rem; border-radius: 12px;
  background: #fff; border: 1px solid #e2e8f0; position: sticky; top: 0.35rem; z-index: 50;
}
.lc-chrome__brand { font-weight: 800; color: var(--lc-accent, #0f6e56); text-decoration: none; }
.lc-chrome__actions { display: flex; gap: 0.35rem; }
.lc-chrome__icon {
  width: 44px; height: 44px; border: 0; border-radius: 999px; background: #f1f5f9; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; color: #0f172a; text-decoration: none;
}
.lc-chrome__inbox { color: var(--lc-accent, #0f6e56); }

/* ---- Profile FB media + dashboard + reels (1.2.0) ---- */
.lc-profile__media-edit--cover { position: absolute; right: 1rem; bottom: 1rem; z-index: 2; }
.lc-profile__cam {
  width: 44px; height: 44px; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(15, 23, 42, 0.72); color: #fff; display: inline-flex; align-items: center; justify-content: center;
}
.lc-profile__cam--avatar {
  position: absolute; right: 0.35rem; bottom: 0.35rem; z-index: 3;
}
.lc-profile__orb { position: relative; }
.lc-profile__cover { position: relative; }
.lc-dashboard {
  margin: 1rem 0 1.25rem; padding: 1rem 1.1rem; border-radius: 16px;
  background: color-mix(in srgb, var(--lc-accent, #0f6e56) 7%, #fff);
  border: 1px solid color-mix(in srgb, var(--lc-accent, #0f6e56) 16%, #e2e8f0);
}
.lc-dashboard__stats {
  list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; text-align: center;
}
.lc-dashboard__stats strong { display: block; font-size: 1.35rem; color: var(--lc-accent, #0f6e56); }
.lc-dashboard__stats span { font-size: 0.8rem; color: #64748b; }
.lc-dashboard__shortcuts {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.85rem;
}
.lc-dashboard__shortcuts a {
  padding: 0.45rem 0.85rem; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 0.9rem;
  background: #fff; border: 1px solid #e2e8f0; color: #0f172a;
}
.lc-dashboard__shortcuts a:hover { border-color: var(--lc-accent, #0f6e56); color: var(--lc-accent, #0f6e56); }
.lc-reels-strip {
  display: flex; gap: 0.75rem; overflow-x: auto; padding: 0.35rem 0 0.75rem; scroll-snap-type: x mandatory;
}
.lc-reel {
  flex: 0 0 120px; scroll-snap-align: start; text-decoration: none; color: inherit;
  display: grid; gap: 0.35rem;
}
.lc-reel img, .lc-reel__ph {
  width: 120px; height: 200px; object-fit: cover; border-radius: 14px; background: #0f172a; display: block;
}
.lc-reel__title { font-size: 0.8rem; line-height: 1.25; max-height: 2.5em; overflow: hidden; }
.lc-lightbox__social {
  max-width: min(520px, 92vw); margin: 0.75rem auto 0; padding: 0.75rem 1rem; border-radius: 12px;
  background: rgba(15, 23, 42, 0.88); color: #e2e8f0; text-align: left;
}
.lc-reactions { display: flex; gap: 0.35rem; margin-bottom: 0.5rem; }
.lc-reactions button {
  width: 40px; height: 40px; border: 0; border-radius: 999px; background: rgba(255,255,255,0.12); cursor: pointer; font-size: 1.1rem;
}
.lc-comments { list-style: none; margin: 0.5rem 0; padding: 0; max-height: 140px; overflow: auto; display: grid; gap: 0.4rem; font-size: 0.9rem; }
.lc-comment-form { display: flex; gap: 0.5rem; }
.lc-comment-form input {
  flex: 1; min-height: 44px; border-radius: 10px; border: 1px solid #334155; background: #0f172a; color: #fff; padding: 0.5rem 0.75rem;
}
.lc-media-picker {
  border: 0; border-radius: 16px; padding: 0; width: min(420px, 94vw); max-height: 85vh;
}
.lc-media-picker::backdrop { background: rgba(15, 23, 42, 0.55); }
.lc-media-picker__inner { padding: 1.1rem 1.2rem 1.25rem; }
.lc-media-picker__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.45rem; margin: 0.75rem 0; max-height: 240px; overflow: auto;
}
.lc-media-picker__item {
  border: 0; padding: 0; border-radius: 8px; overflow: hidden; cursor: pointer; background: #e2e8f0;
}
.lc-media-picker__item img { display: block; width: 100%; height: 80px; object-fit: cover; }
.lc-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.lc-status:empty { display: none; }
.lc-chrome__panel {
  position: absolute; right: 0.5rem; top: 3.4rem; width: min(340px, calc(100vw - 1.5rem));
  max-height: min(60vh, 420px); overflow: auto; padding: 0.85rem 1rem;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
}
.lc-chrome__panel ul { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; gap: 0.55rem; }
.lc-chrome__panel li { display: grid; gap: 0.15rem; font-size: 0.9rem; }
.lc-chrome__toggle { display: flex; gap: 0.5rem; align-items: center; min-height: 44px; margin: 0.75rem 0; }
.lc-chrome__upload { display: grid; gap: 0.55rem; margin-top: 0.75rem; }
.lc-chrome__bottom {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  grid-template-columns: repeat(5, 1fr); gap: 0;
  background: #fff; border-top: 1px solid #e2e8f0;
  padding: 0.35rem 0 calc(0.35rem + env(safe-area-inset-bottom));
}
.lc-chrome__bottom a {
  display: flex; align-items: center; justify-content: center; min-height: 48px;
  font-size: 0.72rem; font-weight: 700; text-decoration: none; color: #64748b; text-align: center;
}
.lc-chrome__bottom a[aria-current="page"] { color: var(--lc-accent, #0f6e56); }
@media (max-width: 768px) {
  .lc-chrome__bottom { display: grid; }
  html.lc-has-chrome .lc-view { padding-bottom: 4.5rem; }
  .lc-chrome__top { border-radius: 0; margin: -0.5rem -0.5rem 0.75rem; }
}

