/* Humanidad Internal Product Experience V1 — Blue Cosmic Archive */
:root {
  --iv1-void: #030711;
  --iv1-night: #07111f;
  --iv1-panel: #0b1624;
  --iv1-panel-2: #101d2d;
  --iv1-line: rgba(130, 167, 214, .16);
  --iv1-line-strong: rgba(130, 167, 214, .28);
  --iv1-text: #f2efe8;
  --iv1-muted: #9ca7b5;
  --iv1-blue: #82a7d6;
  --iv1-gold: #c6aa68;
  --iv1-gold-soft: #d4c080;
  --iv1-paper: #ece9e0;
  --iv1-radius: 18px;
  --iv1-sidebar: 248px;
}

body.internal-product-v1-ready .account-modal:not(.auth-only) {
  padding: 0 !important;
  background: #02050c !important;
}

body.internal-product-v1-ready .account-modal:not(.auth-only) .social-shell {
  width: 100vw !important;
  height: 100dvh !important;
  max-width: none !important;
  max-height: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--iv1-void) !important;
  box-shadow: none !important;
}

body.internal-product-v1-ready .account-modal:not(.auth-only) .social-app {
  grid-template-columns: var(--iv1-sidebar) minmax(0, 1fr) !important;
  background: var(--iv1-void) !important;
}

body.internal-product-v1-ready .account-modal:not(.auth-only) .social-sidebar {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  padding: 24px 16px 18px !important;
  border-right: 1px solid var(--iv1-line) !important;
  background: linear-gradient(180deg, #081321, #050b14 70%, #030711) !important;
  box-shadow: 20px 0 55px rgba(0, 4, 12, .24) !important;
}

body.internal-product-v1-ready .humanity-product-sidebar-brand {
  order: 0 !important;
  min-height: 62px !important;
  padding: 0 12px 20px !important;
  border-bottom: 1px solid var(--iv1-line) !important;
}

body.internal-product-v1-ready .humanity-product-brand-copy small { color: var(--iv1-muted) !important; }
body.internal-product-v1-ready .humanity-product-brand-copy span {
  color: var(--iv1-text) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  letter-spacing: .18em !important;
}

body.internal-product-v1-ready .account-modal:not(.auth-only) .social-nav {
  order: 1 !important;
  flex: 1 1 auto !important;
  gap: 4px !important;
  margin: 20px 0 12px !important;
  padding: 0 !important;
}

body.internal-product-v1-ready .account-modal:not(.auth-only) .social-nav::before {
  content: "ARCHIVO PERSONAL" !important;
  padding: 0 12px 10px !important;
  color: #657488 !important;
  font-size: 7px !important;
  letter-spacing: .2em !important;
}

body.internal-product-v1-ready .account-modal:not(.auth-only) .social-nav button {
  min-height: 46px !important;
  padding: 0 13px !important;
  border: 1px solid transparent !important;
  border-radius: 12px !important;
  color: #9ca7b5 !important;
  background: transparent !important;
  box-shadow: none !important;
  transition: color .18s ease, background .18s ease, border-color .18s ease !important;
}

body.internal-product-v1-ready .account-modal:not(.auth-only) .social-nav button:hover {
  color: var(--iv1-text) !important;
  background: rgba(130, 167, 214, .055) !important;
  transform: none !important;
}

body.internal-product-v1-ready .account-modal:not(.auth-only) .social-nav button.active {
  border-color: rgba(198, 170, 104, .2) !important;
  border-left: 2px solid var(--iv1-gold) !important;
  color: #f1deb0 !important;
  background: linear-gradient(90deg, rgba(198, 170, 104, .11), rgba(130, 167, 214, .035)) !important;
}

body.internal-product-v1-ready .social-nav [data-account-view="mural"],
body.internal-product-v1-ready .profile-v50-social { display: none !important; }

body.internal-product-v1-ready .profile-mini {
  order: 4 !important;
  margin: 4px 0 0 !important;
  padding: 12px !important;
  border-top: 1px solid var(--iv1-line) !important;
  color: var(--iv1-text) !important;
}

.iv1-sidebar-legal {
  order: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  padding: 14px 12px 10px;
  border-top: 1px solid var(--iv1-line);
}

.iv1-sidebar-legal a {
  color: #718094;
  font: 600 8px/1.35 Arial, sans-serif;
  letter-spacing: .05em;
  text-decoration: none;
}

.iv1-sidebar-legal a:hover { color: var(--iv1-gold-soft); }

body.internal-product-v1-ready .social-main {
  padding: 0 !important;
  background:
    radial-gradient(circle at 74% 4%, rgba(44, 83, 123, .18), transparent 28%),
    linear-gradient(145deg, #050a14, #07111f 56%, #030711) !important;
}

.iv1-topbar {
  position: sticky;
  z-index: 70;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 64px;
  padding: 0 clamp(22px, 3vw, 48px);
  border-bottom: 1px solid var(--iv1-line);
  background: rgba(5, 11, 20, .9);
  backdrop-filter: blur(18px);
}

.iv1-topbar-copy { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.iv1-topbar-copy small {
  color: var(--iv1-gold);
  font: 700 8px/1 Arial, sans-serif;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.iv1-topbar-copy strong {
  overflow: hidden;
  color: var(--iv1-text);
  font: 500 18px/1.1 Georgia, "Times New Roman", serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.iv1-topbar-state { display: flex; align-items: center; gap: 8px; color: #8592a2; font: 600 9px Arial, sans-serif; }
.iv1-topbar-state i { width: 6px; height: 6px; border-radius: 50%; background: var(--iv1-gold); box-shadow: 0 0 12px rgba(198, 170, 104, .65); }

body.internal-product-v1-ready .hrc-account-content {
  width: 100% !important;
  max-width: none !important;
  padding: clamp(22px, 3vw, 46px) clamp(20px, 3.8vw, 60px) 80px !important;
}

body.internal-product-v1-ready .account-view {
  width: 100% !important;
  max-width: 1440px !important;
  margin-inline: auto !important;
  padding: 0 0 42px !important;
}

body.internal-product-v1-ready .beta20-home-hero {
  min-height: 350px !important;
  overflow: hidden !important;
  border: 1px solid var(--iv1-line-strong) !important;
  border-radius: 24px !important;
  background:
    radial-gradient(circle at 78% 42%, rgba(62, 104, 151, .22), transparent 31%),
    linear-gradient(135deg, #0a1727, #050b15) !important;
  box-shadow: 0 28px 75px rgba(0, 4, 12, .28) !important;
}

body.internal-product-v1-ready .beta20-home-hero-copy { padding: clamp(34px, 5vw, 72px) !important; }
body.internal-product-v1-ready .beta20-home-hero-copy h2 {
  max-width: 620px !important;
  margin: 14px 0 20px !important;
  color: var(--iv1-text) !important;
  font: 500 clamp(48px, 5.3vw, 78px)/.93 Georgia, "Times New Roman", serif !important;
  letter-spacing: -.045em !important;
}
body.internal-product-v1-ready .beta20-home-hero-copy p { max-width: 620px !important; color: #aab4c2 !important; line-height: 1.7 !important; }
body.internal-product-v1-ready .beta20-home-cover { border-left-color: var(--iv1-line) !important; background: transparent !important; }
body.internal-product-v1-ready .humanity-product-orbit-ring { border-color: rgba(130, 167, 214, .24) !important; }
body.internal-product-v1-ready .humanity-product-light { background: #8daed2 !important; box-shadow: 0 0 15px rgba(130, 167, 214, .52) !important; }
body.internal-product-v1-ready .humanity-product-light[data-emphasis="pulse"] { background: var(--iv1-gold-soft) !important; box-shadow: 0 0 20px rgba(198, 170, 104, .72) !important; }
body.internal-product-v1-ready .humanity-product-light[hidden] { display: none !important; }

body.internal-product-v1-ready .beta20-panel,
body.internal-product-v1-ready .humanity-product-surface,
body.internal-product-v1-ready .settings-card,
body.internal-product-v1-ready .family-entry-card {
  border-color: var(--iv1-line) !important;
  background: linear-gradient(145deg, rgba(14, 28, 45, .96), rgba(7, 15, 25, .98)) !important;
  box-shadow: none !important;
}

body.internal-product-v1-ready .beta20-panel:hover,
body.internal-product-v1-ready .humanity-product-mini-surface:hover { border-color: rgba(198, 170, 104, .3) !important; }
body.internal-product-v1-ready .humanity-product-section-title,
body.internal-product-v1-ready .beta20-panel h3 { color: var(--iv1-text) !important; }
body.internal-product-v1-ready .humanity-product-section-intro,
body.internal-product-v1-ready .humanity-product-mini-copy,
body.internal-product-v1-ready .beta20-panel p { color: var(--iv1-muted) !important; }

body.internal-product-v1-ready .humanity-product-mini-surface { min-height: 285px !important; }
body.internal-product-v1-ready .humanity-product-mini-surface:nth-child(1) { border-top: 2px solid rgba(198, 170, 104, .52) !important; }
body.internal-product-v1-ready .humanity-product-mini-surface:nth-child(2) { background: linear-gradient(150deg, #e9e5dc, #dcd7cc) !important; }
body.internal-product-v1-ready .humanity-product-mini-surface:nth-child(2) .humanity-product-mini-kicker,
body.internal-product-v1-ready .humanity-product-mini-surface:nth-child(2) .humanity-product-mini-copy { color: #516071 !important; }
body.internal-product-v1-ready .humanity-product-mini-surface:nth-child(2) .humanity-product-action { color: #152235 !important; border-color: rgba(21, 34, 53, .28) !important; }
body.internal-product-v1-ready .humanity-product-mini-surface:nth-child(3) { border-top: 2px solid rgba(130, 167, 214, .46) !important; }
body.internal-product-v1-ready .humanity-product-future-grid { display: none !important; }
body.internal-product-v1-ready .humanity-product-teaser-band { min-height: 250px !important; background: radial-gradient(circle at 80% 50%, rgba(56, 96, 139, .2), transparent 28%), #091525 !important; }

body.internal-product-v1-ready .account-view[data-view="tree"].active {
  max-width: none !important;
  min-height: calc(100dvh - 150px) !important;
}
body.internal-product-v1-ready .account-view[data-view="tree"] .tree-social-head {
  border-color: var(--iv1-line) !important;
  background: #0a1522 !important;
}
body.internal-product-v1-ready .account-view[data-view="tree"] .tree-social-head h2 { color: var(--iv1-text) !important; }
body.internal-product-v1-ready .humanidad-f3-shell { border-color: var(--iv1-line) !important; background: #050b14 !important; }
body.internal-product-v1-ready .humanidad-f3-toolbar { border-color: var(--iv1-line) !important; background: #0a1522 !important; }
body.internal-product-v1-ready .humanidad-f3-stage {
  background:
    linear-gradient(rgba(130, 167, 214, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130, 167, 214, .025) 1px, transparent 1px),
    radial-gradient(circle at 52% 45%, rgba(41, 80, 120, .16), transparent 34%),
    #030711 !important;
  background-size: 80px 80px, 80px 80px, auto, auto !important;
}
body.internal-product-v1-ready .humanidad-f3-stage::after { opacity: .12 !important; }
body.internal-product-v1-ready #HumanidadFamilyChart .humanidad-f3-card {
  width: 152px !important;
  height: 136px !important;
  border-color: rgba(130, 167, 214, .2) !important;
  background: #0c1827 !important;
  transition: border-color .18s ease, box-shadow .18s ease !important;
}
body.internal-product-v1-ready #HumanidadFamilyChart .card.node-selected .humanidad-f3-card,
body.internal-product-v1-ready #HumanidadFamilyChart .humanidad-f3-card.is-main {
  border-color: var(--iv1-gold) !important;
  box-shadow: 0 0 0 4px rgba(198, 170, 104, .08), 0 16px 45px rgba(0, 4, 12, .34) !important;
  transform: none !important;
}
body.internal-product-v1-ready .humanidad-f3-role,
body.internal-product-v1-ready .humanidad-f3-life { color: #9ca7b5 !important; }
body.internal-product-v1-ready .humanidad-f3-status { color: #d7c28b !important; }

body.internal-product-v1-ready .person-drawer.ht-person-drawer,
body.internal-product-v1-ready .humanidad-search-profile-drawer {
  border-color: rgba(198, 170, 104, .24) !important;
  background: linear-gradient(180deg, #101d2d, #07111f) !important;
  box-shadow: -28px 0 80px rgba(0, 4, 12, .48) !important;
}
body.internal-product-v1-ready .ht-person-drawer .ht-section { border-color: var(--iv1-line) !important; background: rgba(3, 7, 17, .28) !important; }
body.internal-product-v1-ready .ht-person-drawer .ht-danger,
body.internal-product-v1-ready .ht-person-drawer [data-destructive] { margin-top: 24px !important; opacity: .74 !important; }

body.internal-product-v1-ready .account-view[data-view="constellation"] .humanity-product-shell,
body.internal-product-v1-ready .account-view[data-view="constellation"] .humanity-product-workspace { border-color: var(--iv1-line) !important; background: #030711 !important; }
body.internal-product-v1-ready .account-view[data-view="constellation"] .humanity-product-canvas {
  background: radial-gradient(circle at 52% 46%, rgba(45, 88, 132, .22), transparent 34%), #030711 !important;
}
body.internal-product-v1-ready .account-view[data-view="constellation"] .humanity-product-side-panel { border-color: var(--iv1-line) !important; background: #0a1625 !important; }
/* Keep the stage usable in the actual content width, including the tablet rail. */
body.internal-product-v1-ready .account-view[data-view="constellation"] .humanity-product-search-input { width: 100%; min-width: 0; box-sizing: border-box; }
body.internal-product-v1-ready .account-view[data-view="constellation"] .humanity-product-metrics { display: grid !important; grid-template-columns: 1fr !important; gap: 8px !important; }
body.internal-product-v1-ready .account-view[data-view="constellation"] .humanity-product-metric { width: 100%; min-width: 0; box-sizing: border-box; }
body.internal-product-v1-ready .account-view[data-view="constellation"] .humanity-product-metric-sep,
body.internal-product-v1-ready .account-view[data-view="constellation"] #constellationEmptyNote[hidden] { display: none !important; }
@media (min-width: 681px) and (max-width: 1439px) {
  body.internal-product-v1-ready .account-view[data-view="constellation"] .humanity-product-shell { flex-direction: column !important; }
  body.internal-product-v1-ready .account-view[data-view="constellation"] .humanity-product-header { flex: 0 0 auto !important; min-height: 0 !important; height: auto !important; padding: 16px !important; }
  body.internal-product-v1-ready .account-view[data-view="constellation"] .humanity-product-workspace { min-height: 480px !important; }
}
@media (max-width: 1180px) {
  body.internal-product-v1-ready .hrc-root-research-hero,
  body.internal-product-v1-ready .hrc-root-research-grid { grid-template-columns: minmax(0,1fr); }
  body.internal-product-v1-ready .account-view[data-view="mundo"] .mp-stage {
    display: grid !important; grid-template-columns: minmax(0,1fr) !important;
    grid-template-rows: auto 340px auto auto auto !important;
    grid-template-areas: "header" "globe" "context" "controls" "timeline" !important;
    gap: 16px !important; padding: 12px !important;
  }
  body.internal-product-v1-ready .account-view[data-view="mundo"] .mp-header { grid-area: header; flex-direction: column; align-items: stretch; padding: 8px !important; }
  body.internal-product-v1-ready .account-view[data-view="mundo"] .mp-header-copy { max-width: none; }
  body.internal-product-v1-ready .account-view[data-view="mundo"] .mp-globe-wrap { grid-area: globe; height: 340px !important; width: 100% !important; }
  body.internal-product-v1-ready .account-view[data-view="mundo"] .mp-context { grid-area: context; }
  body.internal-product-v1-ready .account-view[data-view="mundo"] .mp-tools { grid-area: controls; width: 100%; }
  body.internal-product-v1-ready .account-view[data-view="mundo"] .mp-timeline { grid-area: timeline; width: 100%; }
}
body.internal-product-v1-ready #constellationSvg .constellation-node.is-selected circle { stroke: var(--iv1-gold-soft) !important; }

body.internal-product-v1-ready .login-card {
  border: 1px solid var(--iv1-line-strong) !important;
  border-radius: 24px !important;
  background: radial-gradient(circle at 80% 12%, rgba(49, 91, 134, .19), transparent 30%), linear-gradient(145deg, #0c1929, #050b14) !important;
  box-shadow: 0 38px 110px rgba(0, 4, 12, .58) !important;
}
body.internal-product-v1-ready .auth-switch { border-color: var(--iv1-line) !important; background: #07111f !important; }
body.internal-product-v1-ready .account-field { border-color: var(--iv1-line-strong) !important; background: #07111f !important; color: var(--iv1-text) !important; }
body.internal-product-v1-ready .account-field:focus { border-color: rgba(198, 170, 104, .7) !important; box-shadow: 0 0 0 3px rgba(198, 170, 104, .08) !important; }

body.internal-product-v1-ready .safe-onboarding { background: rgba(1, 4, 11, .91) !important; }
body.internal-product-v1-ready .safe-onboarding-card {
  border-color: rgba(130, 167, 214, .24) !important;
  background: radial-gradient(circle at 82% 5%, rgba(54, 99, 145, .2), transparent 34%), linear-gradient(145deg, #0c1929, #050b14) !important;
  box-shadow: 0 38px 120px rgba(0, 4, 12, .72) !important;
}
body.internal-product-v1-ready .safe-onboarding h2 { color: var(--iv1-text) !important; font-family: Georgia, "Times New Roman", serif !important; letter-spacing: -.035em !important; }
body.internal-product-v1-ready .safe-kicker { color: var(--iv1-gold) !important; }
body.internal-product-v1-ready .safe-lead,
body.internal-product-v1-ready .safe-choice span,
body.internal-product-v1-ready .safe-consent { color: var(--iv1-muted) !important; }
body.internal-product-v1-ready .safe-choice,
body.internal-product-v1-ready .safe-field,
body.internal-product-v1-ready .safe-note {
  border-color: var(--iv1-line-strong) !important;
  background: rgba(7, 17, 31, .82) !important;
  color: var(--iv1-text) !important;
}
body.internal-product-v1-ready .safe-choice:hover,
body.internal-product-v1-ready .safe-choice:focus-visible { border-color: var(--iv1-gold) !important; background: rgba(13, 27, 45, .96) !important; outline: none !important; }
body.internal-product-v1-ready .safe-choice i,
body.internal-product-v1-ready .safe-link,
body.internal-product-v1-ready .safe-photo-name { color: var(--iv1-gold-soft) !important; }
body.internal-product-v1-ready .safe-onboarding-close { border-color: var(--iv1-line-strong) !important; background: #0b1624 !important; color: var(--iv1-text) !important; }
body.internal-product-v1-ready .safe-progress { background: #0b1624 !important; }
body.internal-product-v1-ready .safe-progress i,
body.internal-product-v1-ready .safe-primary { background: var(--iv1-gold) !important; color: #101722 !important; }
body.internal-product-v1-ready .safe-secondary { border-color: rgba(198, 170, 104, .4) !important; color: #ead8aa !important; }

.v3-footer-links { display: grid; grid-template-columns: repeat(2, minmax(130px, 1fr)); gap: 34px 56px; }
.v3-footer-links section { display: grid; align-content: start; gap: 12px; }
.v3-footer-links h3 { margin: 0 0 5px; color: #6f8fb7; font: 700 7px/1 Arial, sans-serif; letter-spacing: .2em; text-transform: uppercase; }
.v3-footer-links a { margin: 0 !important; }

@media (max-width: 1100px) {
  :root { --iv1-sidebar: 82px; }
  body.internal-product-v1-ready .humanity-product-brand-copy,
  body.internal-product-v1-ready .social-nav button span:last-child,
  body.internal-product-v1-ready .profile-mini > div:last-child,
  .iv1-sidebar-legal { display: none !important; }
  body.internal-product-v1-ready .account-modal:not(.auth-only) .social-nav button { justify-content: center !important; padding: 0 !important; }
  .iv1-topbar { padding-inline: 24px; }
}

@media (max-width: 680px) {
  body.internal-product-v1-ready .account-modal:not(.auth-only) .social-app { grid-template-columns: 1fr !important; grid-template-rows: 1fr 76px !important; }
  body.internal-product-v1-ready .account-modal:not(.auth-only) .social-sidebar {
    position: fixed !important;
    z-index: 100 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    display: block !important;
    height: calc(72px + env(safe-area-inset-bottom)) !important;
    /* Reserve the existing More button's lane outside the scrolling destinations. */
    padding: 5px 58px env(safe-area-inset-bottom) 8px !important;
    border: 0 !important;
    border-top: 1px solid var(--iv1-line) !important;
    background: rgba(5, 11, 20, .96) !important;
    backdrop-filter: blur(18px) !important;
  }
  body.internal-product-v1-ready .humanity-product-sidebar-brand,
  body.internal-product-v1-ready .profile-mini { display: none !important; }
  body.internal-product-v1-ready .account-modal:not(.auth-only) .social-nav {
    display: flex !important;
    flex-direction: row !important;
    height: 100% !important;
    margin: 0 !important;
    overflow-x: auto !important;
  }
  body.internal-product-v1-ready .account-modal:not(.auth-only) .social-nav::before,
  body.internal-product-v1-ready .account-modal:not(.auth-only) .social-nav .beta20-nav-divider { display: none !important; }
  body.internal-product-v1-ready .account-modal:not(.auth-only) .social-nav button { flex: 0 0 64px !important; min-height: 58px !important; }
  body.internal-product-v1-ready .social-main { padding-bottom: 76px !important; }
  .iv1-topbar { min-height: 56px; padding: 0 16px; }
  .iv1-topbar-copy small { display: none; }
  .iv1-topbar-copy strong { font-size: 16px; }
  .iv1-topbar-state { font-size: 8px; }
  body.internal-product-v1-ready .hrc-account-content { padding: 18px 12px 58px !important; }
  body.internal-product-v1-ready .account-view[data-view="home"] .beta20-home-hero { grid-template-columns: minmax(0, 1fr) !important; min-height: 0 !important; border-radius: 18px !important; }
  body.internal-product-v1-ready .beta20-home-hero-copy { padding: 28px 22px !important; }
  body.internal-product-v1-ready .beta20-home-hero-copy h2 { font-size: clamp(45px, 13vw, 58px) !important; }
  body.internal-product-v1-ready .beta20-home-cover { min-height: 210px !important; border-top: 1px solid var(--iv1-line) !important; border-left: 0 !important; }
  body.internal-product-v1-ready .humanity-product-surface-grid { grid-template-columns: 1fr !important; }
  body.internal-product-v1-ready .humanity-product-mini-surface { min-height: 235px !important; }
  body.internal-product-v1-ready .account-view[data-view="tree"].active { min-height: calc(100dvh - 140px) !important; }
  body.internal-product-v1-ready #HumanidadFamilyChart .humanidad-f3-card { width: 138px !important; height: 128px !important; }
  body.internal-product-v1-ready .person-drawer.ht-person-drawer {
    left: 8px !important; right: 8px !important; top: auto !important; bottom: 8px !important;
    width: calc(100vw - 16px) !important; max-width: calc(100vw - 16px) !important;
    transform: none !important; max-height: 88dvh !important;
    background: linear-gradient(180deg, #101d2d, #07111f) !important;
  }
  body.internal-product-v1-ready .person-drawer.ht-person-drawer .ht-drawer-scroll-content {
    flex: 1 1 auto !important; min-height: 0 !important; overflow-y: auto !important;
  }
  .v3-footer-links { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
}

/* Entry constellation — the account threshold is a product moment, not a form modal. */
body.internal-product-v1-ready .safe-onboarding {
  overflow: hidden !important;
  padding: 32px !important;
  background:
    radial-gradient(circle at 76% 48%, rgba(74, 128, 190, .18), transparent 22%),
    radial-gradient(circle at 50% 110%, rgba(23, 57, 97, .2), transparent 44%),
    linear-gradient(145deg, #01040a, #06101d 58%, #02060d) !important;
  backdrop-filter: none !important;
}
body.internal-product-v1-ready .safe-onboarding::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .48;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 14% 18%, rgba(221, 235, 255, .62) 0 1px, transparent 1.5px),
    radial-gradient(circle at 31% 76%, rgba(221, 235, 255, .44) 0 1px, transparent 1.5px),
    radial-gradient(circle at 57% 14%, rgba(221, 235, 255, .52) 0 1px, transparent 1.5px),
    radial-gradient(circle at 89% 25%, rgba(221, 235, 255, .55) 0 1px, transparent 1.5px),
    radial-gradient(circle at 82% 82%, rgba(221, 235, 255, .38) 0 1px, transparent 1.5px);
}
body.internal-product-v1-ready .safe-onboarding-card {
  position: relative !important;
  z-index: 2 !important;
  width: min(1240px, calc(100vw - 64px)) !important;
  min-height: min(760px, calc(100dvh - 64px)) !important;
  max-height: calc(100dvh - 64px) !important;
  padding: clamp(42px, 6vw, 82px) clamp(36px, 6vw, 76px) !important;
  border-color: rgba(132, 170, 218, .18) !important;
  border-radius: 32px !important;
  background: linear-gradient(105deg, rgba(5, 13, 24, .96) 0 48%, rgba(5, 13, 24, .72) 62%, rgba(5, 13, 24, .18)) !important;
  box-shadow: 0 42px 140px rgba(0, 0, 0, .68), inset 0 1px rgba(255, 255, 255, .03) !important;
}
body.internal-product-v1-ready .safe-screen { position: relative; z-index: 3; width: min(680px, 62%); }
body.internal-product-v1-ready .safe-screen[data-safe-screen="family"],
body.internal-product-v1-ready .safe-screen[data-safe-screen="signup"],
body.internal-product-v1-ready .safe-screen[data-safe-screen="login"],
body.internal-product-v1-ready .safe-screen[data-safe-screen="invite-wait"] { width: min(650px, 61%); }
body.internal-product-v1-ready .safe-screen.safe-success { width: min(760px, 68%); }
body.internal-product-v1-ready .safe-onboarding h2 {
  max-width: 720px !important;
  margin: 16px 0 18px !important;
  color: #f2f5f8 !important;
  font: 400 clamp(3rem, 5vw, 5.5rem)/.96 Georgia, "Times New Roman", serif !important;
  letter-spacing: -.055em !important;
  text-wrap: balance;
}
body.internal-product-v1-ready .safe-step-title { font-size: clamp(2.4rem, 4vw, 4rem) !important; }
body.internal-product-v1-ready .safe-lead { max-width: 600px; color: #99a8b9 !important; font-size: 15px; line-height: 1.65; }
body.internal-product-v1-ready .safe-choice-grid { gap: 12px; margin-top: 34px; }
body.internal-product-v1-ready .safe-choice {
  position: relative;
  min-height: 190px;
  padding: 26px 25px;
  overflow: hidden;
  border-color: rgba(126, 163, 207, .17) !important;
  background: linear-gradient(145deg, rgba(13, 29, 49, .88), rgba(5, 14, 25, .9)) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .025);
  transition: border-color .3s ease, transform .3s ease, background .3s ease, box-shadow .3s ease !important;
}
body.internal-product-v1-ready .safe-choice::after {
  content: "";
  position: absolute;
  right: 25px;
  bottom: 23px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d9c17f;
  box-shadow: 0 0 0 7px rgba(217, 193, 127, .06), 0 0 28px 9px rgba(217, 193, 127, .22);
  opacity: .7;
  transition: transform .35s ease, opacity .35s ease, box-shadow .35s ease;
}
body.internal-product-v1-ready .safe-choice:hover,
body.internal-product-v1-ready .safe-choice:focus-visible {
  transform: translateY(-4px);
  background: linear-gradient(145deg, rgba(19, 42, 68, .96), rgba(7, 18, 32, .96)) !important;
  box-shadow: 0 22px 55px rgba(0, 2, 8, .28), inset 0 1px rgba(255, 255, 255, .04) !important;
}
body.internal-product-v1-ready .safe-choice:hover::after,
body.internal-product-v1-ready .safe-choice:focus-visible::after { transform: scale(1.45); opacity: 1; box-shadow: 0 0 0 9px rgba(217, 193, 127, .08), 0 0 40px 14px rgba(217, 193, 127, .3); }
body.internal-product-v1-ready .safe-choice i { font-size: 9px; font-weight: 800; letter-spacing: .16em; }
body.internal-product-v1-ready .safe-choice b { margin-top: 26px; color: #eef2f5; font-size: 20px; }
body.internal-product-v1-ready .safe-choice span { display: block; max-width: 230px; color: #8898aa !important; font-size: 13px; }
body.internal-product-v1-ready .safe-returning {
  margin: 24px 0 0;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: #7d8da0;
  font: 500 12px/1.4 Arial, sans-serif;
  cursor: pointer;
}
body.internal-product-v1-ready .safe-returning strong { margin-left: 5px; color: #dcc689; font-weight: 700; }
body.internal-product-v1-ready .safe-returning:hover strong,
body.internal-product-v1-ready .safe-returning:focus-visible strong { color: #fff0bc; }
body.internal-product-v1-ready .safe-consent a { color: #d9c58f; text-underline-offset: 3px; }
body.internal-product-v1-ready .safe-cosmos { position: absolute; z-index: 1; inset: 0; pointer-events: none; }
body.internal-product-v1-ready .safe-origin-light {
  position: absolute;
  left: 77%;
  top: 49%;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #f8e6aa;
  box-shadow: 0 0 0 10px rgba(211, 188, 124, .045), 0 0 38px 12px rgba(117, 174, 238, .26), 0 0 100px 42px rgba(70, 121, 180, .13);
  animation: iv1OriginBreath 3.8s ease-in-out infinite;
}
body.internal-product-v1-ready .safe-origin-light i { position: absolute; inset: -23px; border: 1px solid rgba(207, 226, 249, .13); border-radius: 50%; }
body.internal-product-v1-ready .safe-cosmos-ring { position: absolute; left: 77%; top: 49%; border: 1px solid rgba(126, 172, 224, .09); border-radius: 50%; transform: translate(-50%, -50%); }
body.internal-product-v1-ready .safe-cosmos-ring.ring-one { width: 260px; height: 260px; animation: iv1RingDrift 14s linear infinite; }
body.internal-product-v1-ready .safe-cosmos-ring.ring-two { width: 470px; height: 470px; border-style: dashed; opacity: .65; animation: iv1RingDrift 24s linear reverse infinite; }
body.internal-product-v1-ready .safe-cosmos-dust { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #8aabd2; box-shadow: 0 0 14px rgba(126, 174, 229, .7); opacity: .55; }
body.internal-product-v1-ready .safe-cosmos-dust.dust-one { left: 69%; top: 31%; }
body.internal-product-v1-ready .safe-cosmos-dust.dust-two { left: 88%; top: 59%; }
body.internal-product-v1-ready .safe-cosmos-dust.dust-three { left: 72%; top: 72%; }
body.internal-product-v1-ready .safe-onboarding.is-forming .safe-origin-light { animation: iv1LightForming 1.6s ease-in-out infinite; }
body.internal-product-v1-ready .safe-onboarding.is-entering .safe-onboarding-card { opacity: 0; transform: scale(.975); transition: opacity .72s ease, transform .72s ease !important; }
body.internal-product-v1-ready .safe-onboarding.is-entering .safe-origin-light { transform: scale(32); opacity: 0; transition: transform .82s cubic-bezier(.2,.75,.2,1), opacity .82s ease !important; }
body.internal-product-v1-ready .safe-onboarding.is-entering .safe-cosmos-ring { opacity: 0; transition: opacity .55s ease !important; }
@keyframes iv1OriginBreath { 0%,100% { transform: scale(.84); opacity: .72; } 50% { transform: scale(1.16); opacity: 1; } }
@keyframes iv1RingDrift { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes iv1LightForming { 0%,100% { transform: scale(1); } 50% { transform: scale(2); box-shadow: 0 0 0 18px rgba(211,188,124,.07), 0 0 70px 28px rgba(117,174,238,.42); } }

body.internal-product-v1-ready .safe-success { text-align: left !important; }
body.internal-product-v1-ready .safe-success-constellation { position: relative; width: min(480px, 90%); height: 230px; margin: -4px 0 24px; }
body.internal-product-v1-ready .success-star { position: absolute; z-index: 2; width: 8px; height: 8px; border-radius: 50%; background: #a9c8eb; box-shadow: 0 0 24px 7px rgba(122, 173, 229, .3); animation: iv1StarArrival .9s cubic-bezier(.2,.8,.2,1) both; }
body.internal-product-v1-ready .success-star.star-self { left: 45%; top: 44%; width: 14px; height: 14px; background: #f3dda0; box-shadow: 0 0 36px 12px rgba(225, 195, 115, .36); }
body.internal-product-v1-ready .success-star.star-one { left: 18%; top: 20%; animation-delay: .24s; }
body.internal-product-v1-ready .success-star.star-two { left: 76%; top: 14%; animation-delay: .42s; }
body.internal-product-v1-ready .success-star.star-three { left: 70%; top: 75%; animation-delay: .6s; }
body.internal-product-v1-ready .success-line { position: absolute; z-index: 1; left: 46%; top: 47%; height: 1px; width: 0; transform-origin: left center; background: linear-gradient(90deg, rgba(225,195,115,.8), rgba(118,169,225,.35)); animation: iv1LineArrival .9s ease forwards; }
body.internal-product-v1-ready .success-line.line-a { transform: rotate(213deg); animation-delay: .2s; --line-width: 154px; }
body.internal-product-v1-ready .success-line.line-b { transform: rotate(-28deg); animation-delay: .38s; --line-width: 172px; }
body.internal-product-v1-ready .success-line.line-c { transform: rotate(31deg); animation-delay: .56s; --line-width: 150px; }
body.internal-product-v1-ready #safeOnboarding[data-member-count="1"] .star-one,
body.internal-product-v1-ready #safeOnboarding[data-member-count="1"] .star-two,
body.internal-product-v1-ready #safeOnboarding[data-member-count="1"] .star-three,
body.internal-product-v1-ready #safeOnboarding[data-member-count="1"] .success-line,
body.internal-product-v1-ready #safeOnboarding[data-member-count="2"] .star-two,
body.internal-product-v1-ready #safeOnboarding[data-member-count="2"] .star-three,
body.internal-product-v1-ready #safeOnboarding[data-member-count="2"] .line-b,
body.internal-product-v1-ready #safeOnboarding[data-member-count="2"] .line-c,
body.internal-product-v1-ready #safeOnboarding[data-member-count="3"] .star-three,
body.internal-product-v1-ready #safeOnboarding[data-member-count="3"] .line-c { display: none; }
@keyframes iv1StarArrival { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: scale(1); } }
@keyframes iv1LineArrival { to { width: var(--line-width); } }

/* A validated invitation shows only its two truthful lights: inviter and invited person. */
body.internal-product-v1-ready .claim-place-modal { background: rgba(1, 5, 12, .93) !important; backdrop-filter: blur(22px) !important; }
body.internal-product-v1-ready .claim-place-shell {
  width: min(1080px, calc(100vw - 64px)) !important;
  min-height: min(700px, calc(100dvh - 64px)) !important;
  padding: clamp(48px, 6vw, 76px) !important;
  border-color: rgba(124, 168, 218, .2) !important;
  background: linear-gradient(105deg, rgba(8, 20, 35, .98) 0 56%, rgba(5, 15, 29, .72) 72%, rgba(3, 10, 20, .92)) !important;
}
body.internal-product-v1-ready .claim-place-shell > :not(.iv1-claim-cosmos):not(.claim-place-close) { position: relative; z-index: 2; max-width: 610px; }
body.internal-product-v1-ready .claim-place-shell h2 { color: #f3f6f8 !important; font-family: Georgia, "Times New Roman", serif !important; letter-spacing: -.045em; }
body.internal-product-v1-ready .claim-place-person { border-color: rgba(130, 169, 216, .18) !important; background: rgba(9, 25, 43, .82) !important; }
body.internal-product-v1-ready .claim-place-avatar { background: radial-gradient(circle, #f4dfa3 0 8%, #8aabd0 11%, #10243d 55%, #07111f) !important; color: #f3e2ad !important; box-shadow: 0 0 38px rgba(108, 162, 222, .28) !important; }
body.internal-product-v1-ready .iv1-claim-cosmos { position: absolute; z-index: 1; inset: 0; overflow: hidden; pointer-events: none; }
body.internal-product-v1-ready .iv1-claim-orbit { position: absolute; right: 5%; top: 15%; width: 390px; height: 390px; border: 1px solid rgba(126, 174, 226, .1); border-radius: 50%; }
body.internal-product-v1-ready .iv1-claim-light { position: absolute; z-index: 2; width: 10px; height: 10px; border-radius: 50%; background: #a9c9eb; box-shadow: 0 0 32px 9px rgba(112, 168, 229, .34); }
body.internal-product-v1-ready .iv1-claim-light-inviter { right: 23%; top: 33%; }
body.internal-product-v1-ready .iv1-claim-light-you { right: 10%; top: 64%; background: #f4dfa1; box-shadow: 0 0 40px 12px rgba(224, 193, 113, .38); }
body.internal-product-v1-ready .iv1-claim-line { position: absolute; right: 11%; top: 64%; width: 0; height: 1px; transform: rotate(-67deg); transform-origin: right center; background: linear-gradient(90deg, rgba(238,211,141,.85), rgba(119,172,229,.42)); animation: iv1ClaimJoin 1.4s .35s ease forwards; }
body.internal-product-v1-ready .claim-place-modal.success .iv1-claim-light-you { animation: iv1ClaimPulse 1.8s ease-in-out infinite; }
@keyframes iv1ClaimJoin { to { width: 235px; } }
@keyframes iv1ClaimPulse { 50% { transform: scale(1.7); box-shadow: 0 0 65px 22px rgba(224,193,113,.5); } }

@media (max-width: 860px) {
  body.internal-product-v1-ready .safe-onboarding { padding: 0 !important; }
  body.internal-product-v1-ready .safe-onboarding-card { width: 100vw !important; min-height: 100dvh !important; max-height: 100dvh !important; padding: calc(72px + env(safe-area-inset-top)) 22px calc(38px + env(safe-area-inset-bottom)) !important; border: 0 !important; border-radius: 0 !important; background: linear-gradient(180deg, rgba(5,14,25,.76), rgba(3,9,18,.97) 62%) !important; }
  body.internal-product-v1-ready .safe-screen,
  body.internal-product-v1-ready .safe-screen[data-safe-screen] { width: 100%; max-width: 620px; margin: auto; }
  body.internal-product-v1-ready .safe-onboarding h2 { font-size: clamp(2.7rem, 12vw, 4.5rem) !important; }
  body.internal-product-v1-ready .safe-origin-light { left: 78%; top: 18%; }
  body.internal-product-v1-ready .safe-cosmos-ring { left: 78%; top: 18%; }
  body.internal-product-v1-ready .safe-cosmos-ring.ring-one { width: 180px; height: 180px; }
  body.internal-product-v1-ready .safe-cosmos-ring.ring-two { width: 310px; height: 310px; }
  body.internal-product-v1-ready .claim-place-shell { width: 100vw !important; min-height: 100dvh !important; max-height: 100dvh !important; padding: calc(72px + env(safe-area-inset-top)) 22px calc(30px + env(safe-area-inset-bottom)) !important; border: 0 !important; border-radius: 0 !important; }
  body.internal-product-v1-ready .iv1-claim-cosmos { opacity: .35; }
}

@media (max-width: 620px) {
  body.internal-product-v1-ready .safe-choice-grid { grid-template-columns: 1fr; gap: 9px; margin-top: 24px; }
  body.internal-product-v1-ready .safe-choice { min-height: 126px; padding: 20px; }
  body.internal-product-v1-ready .safe-choice b { margin: 14px 0 6px; font-size: 18px; }
  body.internal-product-v1-ready .safe-choice span { max-width: calc(100% - 38px); }
  body.internal-product-v1-ready .safe-success-constellation { height: 180px; }
}

@media (prefers-reduced-motion: reduce) {
  body.internal-product-v1-ready *, body.internal-product-v1-ready *::before, body.internal-product-v1-ready *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation: none !important; }
}

/* V1.1 — Living Human Constellation. The image is atmosphere only; every
   visible person and relationship remains the real SVG graph. */
body.internal-product-v1-ready .account-view[data-view="constellation"] .humanity-product-canvas {
  isolation: isolate;
  border-color: rgba(198, 170, 104, 0.24) !important;
  /* Fondo cósmico más oscurecido (antes .38/.62) para que compita menos
     con los nodos humanos y sus etiquetas. */
  background:
    linear-gradient(180deg, rgba(2, 6, 15, 0.58), rgba(2, 6, 15, 0.78)),
    url('./constellation-cosmic-field-v1.png') center / cover no-repeat !important;
  box-shadow: inset 0 0 90px rgba(0, 4, 13, 0.72), 0 24px 72px rgba(0, 0, 0, 0.28) !important;
}
body.internal-product-v1-ready .account-view[data-view="constellation"] .humanity-product-canvas::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 51% 49%, rgba(230, 200, 132, 0.035), transparent 17%),
    radial-gradient(ellipse at 50% 50%, transparent 35%, rgba(2, 6, 15, 0.2) 68%, rgba(2, 5, 12, 0.72) 100%);
}
body.internal-product-v1-ready .account-view[data-view="constellation"] .humanity-product-starfield {
  z-index: 0;
  /* Contraste reducido (antes 0.16) para diferenciar mejor las estrellas
     decorativas de los nodos humanos. */
  opacity: 0.08;
  mix-blend-mode: screen;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 88%);
}
body.internal-product-v1-ready .account-view[data-view="constellation"] .humanity-product-canvas-svg {
  z-index: 1;
  filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.38));
}
body.internal-product-v1-ready .account-view[data-view="constellation"] .humanity-product-controls,
body.internal-product-v1-ready .account-view[data-view="constellation"] .constellation-stage-tools {
  z-index: 4 !important;
}
body.internal-product-v1-ready #constellationSvg .humanity-product-horizon {
  stroke: rgba(224, 194, 126, 0.12);
  stroke-dasharray: 2 7;
}
body.internal-product-v1-ready #constellationSvg .humanity-product-cluster-field {
  opacity: 0.82;
  mix-blend-mode: screen;
}
body.internal-product-v1-ready #constellationSvg .humanity-product-edge {
  stroke: #cdb171;
  stroke-width: 1.15;
  opacity: 0.46;
  filter: drop-shadow(0 0 3px rgba(198, 170, 104, 0.28));
}
body.internal-product-v1-ready #constellationSvg .humanity-product-edge[data-profile-state="confirmed"] {
  stroke: #d8b86e;
  filter: drop-shadow(0 0 3px rgba(216, 184, 110, 0.34));
}
body.internal-product-v1-ready #constellationSvg .humanity-product-edge[data-profile-state="unconfirmed"] {
  stroke: #76b9e6;
  opacity: 0.58;
  filter: drop-shadow(0 0 3px rgba(80, 157, 211, 0.4));
}
body.internal-product-v1-ready #constellationSvg .humanity-product-edge[data-state="dimmed"] { opacity: 0.085; }
body.internal-product-v1-ready #constellationSvg .humanity-product-edge.is-path {
  stroke-width: 2.35;
  opacity: 0.98;
}
body.internal-product-v1-ready #constellationSvg .humanity-product-edge[data-profile-state="confirmed"].is-path {
  stroke: #f0d38a;
  filter: drop-shadow(0 0 4px rgba(240, 211, 138, 0.82)) drop-shadow(0 0 10px rgba(183, 135, 54, 0.46));
}
body.internal-product-v1-ready #constellationSvg .humanity-product-edge[data-profile-state="unconfirmed"].is-path {
  stroke: #9bd5f3;
  filter: drop-shadow(0 0 4px rgba(155, 213, 243, 0.82)) drop-shadow(0 0 10px rgba(66, 143, 194, 0.48));
}
body.internal-product-v1-ready #constellationSvg .humanity-product-node-halo {
  opacity: 0.72;
  filter: url(#humanityStarBlur) drop-shadow(0 0 9px rgba(219, 186, 112, 0.42));
}
body.internal-product-v1-ready #constellationSvg .humanity-product-node-core {
  fill: url(#humanityStarGlass);
  stroke: rgba(244, 225, 179, 0.88);
  stroke-width: 1.15;
  filter: drop-shadow(0 0 4px rgba(223, 196, 137, 0.58));
}
body.internal-product-v1-ready #constellationSvg .humanity-product-node[data-profile-state="confirmed"] .humanity-product-node-core {
  fill: url(#humanitySelfCore);
  stroke: #f0d58d;
  filter: drop-shadow(0 0 6px rgba(231, 195, 113, 0.78)) drop-shadow(0 0 15px rgba(185, 137, 55, 0.36));
}
body.internal-product-v1-ready #constellationSvg .humanity-product-node[data-profile-state="confirmed"] .humanity-product-node-orbit {
  stroke: rgba(225, 190, 111, 0.54);
}
body.internal-product-v1-ready #constellationSvg .humanity-product-node[data-profile-state="unconfirmed"] .humanity-product-node-core {
  fill: url(#humanityStarGlass);
  stroke: #87c8ef;
  filter: drop-shadow(0 0 6px rgba(99, 181, 231, 0.78)) drop-shadow(0 0 15px rgba(39, 112, 166, 0.38));
}
body.internal-product-v1-ready #constellationSvg .humanity-product-node[data-profile-state="unconfirmed"] .humanity-product-node-orbit {
  stroke: rgba(112, 189, 235, 0.58);
}
body.internal-product-v1-ready #constellationSvg .humanity-product-node[data-profile-state="unconfirmed"] .humanity-product-node-halo {
  filter: url(#humanityStarBlur) drop-shadow(0 0 10px rgba(76, 161, 216, 0.5));
}
body.internal-product-v1-ready #constellationSvg .humanity-product-node-orbit {
  fill: none;
  stroke: rgba(222, 191, 122, 0.34);
  stroke-width: 0.9;
  transform: rotate(-18deg);
  transform-box: fill-box;
  transform-origin: center;
  pointer-events: none;
  transition: stroke 180ms ease, opacity 180ms ease;
}
body.internal-product-v1-ready #constellationSvg .humanity-product-node-spark {
  fill: rgba(255, 253, 244, 0.96);
  pointer-events: none;
  filter: drop-shadow(0 0 4px rgba(255, 244, 210, 0.92));
}
body.internal-product-v1-ready #constellationSvg .humanity-product-node[data-central="true"] .humanity-product-node-core {
  fill: url(#humanitySelfCore);
  stroke: #fff0bd;
  stroke-width: 1.5;
  filter: drop-shadow(0 0 7px rgba(255, 225, 154, 0.88)) drop-shadow(0 0 20px rgba(198, 150, 65, 0.56));
}
body.internal-product-v1-ready #constellationSvg .humanity-product-node[data-central="true"] .humanity-product-node-orbit {
  stroke: rgba(239, 207, 137, 0.72);
  stroke-width: 1.2;
}
body.internal-product-v1-ready #constellationSvg .humanity-product-node:hover .humanity-product-node-orbit,
body.internal-product-v1-ready #constellationSvg .humanity-product-node:focus-visible .humanity-product-node-orbit,
body.internal-product-v1-ready #constellationSvg .humanity-product-node[aria-selected="true"] .humanity-product-node-orbit {
  stroke: rgba(167, 211, 237, 0.92);
  opacity: 1;
}
body.internal-product-v1-ready #constellationSvg .humanity-product-node:hover .humanity-product-node-core,
body.internal-product-v1-ready #constellationSvg .humanity-product-node:focus-visible .humanity-product-node-core,
body.internal-product-v1-ready #constellationSvg .humanity-product-node[aria-selected="true"] .humanity-product-node-core {
  fill: #b8d9eb;
  stroke: #f3fbff !important;
  filter: drop-shadow(0 0 7px rgba(184, 217, 235, 0.92)) drop-shadow(0 0 18px rgba(99, 164, 204, 0.66));
}
body.internal-product-v1-ready #constellationSvg .humanity-product-node[data-cluster-depth="mid"] { opacity: 0.88; filter: saturate(0.92); }
body.internal-product-v1-ready #constellationSvg .humanity-product-node[data-cluster-depth="far"] { opacity: 0.68; filter: saturate(0.72); }
body.internal-product-v1-ready #constellationSvg .humanity-product-node[data-cluster-depth="far"] .humanity-product-node-core { filter: blur(0.35px); }
body.internal-product-v1-ready #constellationSvg .humanity-product-node-label {
  paint-order: stroke;
  stroke: rgba(2, 6, 15, 0.92);
  stroke-width: 3px;
  stroke-linejoin: round;
  transform: translateY(4px);
  transition: opacity 180ms ease, transform 180ms ease;
}
body.internal-product-v1-ready #constellationSvg .humanity-product-node[data-tier="self"] .humanity-product-node-label,
body.internal-product-v1-ready #constellationSvg .humanity-product-node[data-tier="close"] .humanity-product-node-label,
body.internal-product-v1-ready #constellationSvg .humanity-product-node:hover .humanity-product-node-label,
body.internal-product-v1-ready #constellationSvg .humanity-product-node:focus-visible .humanity-product-node-label,
body.internal-product-v1-ready #constellationSvg .humanity-product-node[aria-selected="true"] .humanity-product-node-label,
body.internal-product-v1-ready #constellationSvg .humanity-product-node.is-path .humanity-product-node-label { transform: translateY(0); }
body.internal-product-v1-ready .account-view[data-view="constellation"] .humanity-product-light[data-emphasis="pulse"] { animation: none !important; }

@media (prefers-reduced-motion: reduce) {
  body.internal-product-v1-ready #constellationSvg .humanity-product-node-label { transform: none !important; }
}

/* V1.3 — True 3D constellation. WebGL becomes primary only after a complete
   renderer has mounted; the existing SVG remains the no-WebGL/CDN fallback. */
body.internal-product-v1-ready .account-view[data-view="constellation"] .humanity-constellation-three-canvas {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: none;
  outline: none;
  filter: saturate(1.06) contrast(1.03);
}
body.internal-product-v1-ready .account-view[data-view="constellation"] .humanity-constellation-three-canvas.is-dragging {
  cursor: grabbing;
}
body.internal-product-v1-ready .account-view[data-view="constellation"] .humanity-constellation-3d-labels {
  position: absolute;
  z-index: 3;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
body.internal-product-v1-ready .account-view[data-view="constellation"] .constellation-branch-selector {
  position: absolute;
  z-index: 5;
  top: 14px;
  left: 50%;
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 5px;
  border: 1px solid rgba(212, 183, 115, .18);
  border-radius: 999px;
  background: rgba(4, 9, 18, .78);
  backdrop-filter: blur(10px);
  transform: translateX(-50%);
}
body.internal-product-v1-ready .account-view[data-view="constellation"] .constellation-branch-selector button,
body.internal-product-v1-ready .account-view[data-view="constellation"] .constellation-branch-selector select {
  min-height: 30px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 11px;
  color: rgba(239, 232, 215, .78);
  background: transparent;
  font: 700 9px/1 Inter, system-ui, sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
}
body.internal-product-v1-ready .account-view[data-view="constellation"] .constellation-branch-selector button[aria-pressed="true"] {
  color: #fff0bd;
  border-color: rgba(231, 196, 111, .42);
  background: rgba(231, 196, 111, .12);
}
body.internal-product-v1-ready .account-view[data-view="constellation"] .constellation-branch-selector label span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
body.internal-product-v1-ready .account-view[data-view="constellation"] .constellation-branch-selector select { max-width: 128px; cursor: pointer; }
body.internal-product-v1-ready .account-view[data-view="constellation"] .constellation-branch-selector option { color: #101724; background: #f5f1e8; }
body.internal-product-v1-ready .account-view[data-view="constellation"] .humanity-constellation-territory-label,
body.internal-product-v1-ready .account-view[data-view="constellation"] .humanity-constellation-generation-label {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  white-space: nowrap;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .95);
  will-change: transform, opacity;
}
body.internal-product-v1-ready .account-view[data-view="constellation"] .humanity-constellation-territory-label {
  color: rgba(242, 221, 164, .88);
  font: 600 12px/1.2 'Playfair Display', Georgia, serif;
  letter-spacing: .16em;
}
body.internal-product-v1-ready .account-view[data-view="constellation"] .humanity-constellation-generation-label {
  color: rgba(177, 203, 221, .58);
  font: 700 8px/1.2 Inter, system-ui, sans-serif;
  letter-spacing: .13em;
}
body.internal-product-v1-ready .account-view[data-view="constellation"] .humanity-constellation-3d-label {
  position: absolute;
  top: 0;
  left: 0;
  max-width: min(176px, 34vw);
  padding: 4px 8px;
  border: 1px solid rgba(208, 184, 125, .16);
  border-radius: 999px;
  color: rgba(244, 236, 214, .9);
  background: rgba(4, 9, 18, .72);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .28);
  backdrop-filter: blur(7px);
  font: 600 10px/1.2 Inter, system-ui, sans-serif;
  letter-spacing: .035em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: auto;
  cursor: pointer;
  will-change: transform, opacity;
  transition: opacity 160ms ease, color 160ms ease, border-color 160ms ease, background 160ms ease;
}
/* Objetivo 3A.1 — pulido visual (solo CSS) del label nombre + relación
   ya introducido en Paso 1 + Paso 2 (sin fotos; mismo gatillo de
   visibilidad: data-selected="true" o data-near="true", este último ya
   asignado en updateLodAndLabels() reusando el LOD existente, sin umbral
   paralelo nuevo). Este pulido solo ajusta tipografía/espaciado/ancho:
   nombre como línea principal más legible (mayor peso/contraste),
   relación como línea secundaria discreta (más chica, menor contraste),
   separación vertical reducida para sentirse compacto, y un max-width algo
   más ajustado que el de la etiqueta base para que la segunda línea no
   ensanche demasiado el bloque. No se agregan transiciones/animaciones
   nuevas ni se toca el centrado existente (text-align: center) respecto
   del nodo. */
body.internal-product-v1-ready .account-view[data-view="constellation"] .humanity-constellation-3d-label-name {
  display: inline;
}
body.internal-product-v1-ready .account-view[data-view="constellation"] .humanity-constellation-3d-label-relation {
  display: none;
}
body.internal-product-v1-ready .account-view[data-view="constellation"] .humanity-constellation-3d-label[data-selected="true"],
body.internal-product-v1-ready .account-view[data-view="constellation"] .humanity-constellation-3d-label[data-near="true"] {
  max-width: 150px;
  white-space: normal;
  text-align: center;
  line-height: 1.2;
  border-radius: 14px;
  padding: 4px 10px;
}
body.internal-product-v1-ready .account-view[data-view="constellation"] .humanity-constellation-3d-label[data-selected="true"] .humanity-constellation-3d-label-name,
body.internal-product-v1-ready .account-view[data-view="constellation"] .humanity-constellation-3d-label[data-near="true"] .humanity-constellation-3d-label-name {
  display: block;
  font-weight: 700;
  color: rgba(244, 236, 214, .96);
}
body.internal-product-v1-ready .account-view[data-view="constellation"] .humanity-constellation-3d-label[data-selected="true"] .humanity-constellation-3d-label-relation,
body.internal-product-v1-ready .account-view[data-view="constellation"] .humanity-constellation-3d-label[data-near="true"] .humanity-constellation-3d-label-relation {
  display: block;
  font: 500 7.5px/1.15 Inter, system-ui, sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(244, 236, 214, .5);
  margin-top: 0;
}
body.internal-product-v1-ready .account-view[data-view="constellation"] .humanity-constellation-3d-label[data-profile-state="unconfirmed"] {
  color: #b7e4fb;
  border-color: rgba(105, 188, 233, .3);
}
body.internal-product-v1-ready .account-view[data-view="constellation"] .humanity-constellation-3d-label[data-profile-state="confirmed"] {
  color: #f3d98e;
  border-color: rgba(231, 196, 111, .28);
}
body.internal-product-v1-ready .account-view[data-view="constellation"] .humanity-constellation-3d-label[data-state="dimmed"] {
  opacity: .18;
}
body.internal-product-v1-ready .account-view[data-view="constellation"] .humanity-constellation-3d-label[data-selected="true"],
body.internal-product-v1-ready .account-view[data-view="constellation"] .humanity-constellation-3d-label[data-path="true"],
body.internal-product-v1-ready .account-view[data-view="constellation"] .humanity-constellation-3d-label[data-hovered="true"],
body.internal-product-v1-ready .account-view[data-view="constellation"] .humanity-constellation-3d-label:focus-visible {
  opacity: 1;
  color: #fff7dd;
  border-color: rgba(255, 225, 151, .72);
  background: rgba(11, 18, 28, .92);
  outline: 2px solid rgba(115, 190, 232, .78);
  outline-offset: 2px;
}
body.internal-product-v1-ready .account-view[data-view="constellation"] .humanity-product-canvas.constellation-three-ready #constellationSvg {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
body.internal-product-v1-ready .account-view[data-view="constellation"] .humanity-product-control.is-active {
  color: #ffe8a6 !important;
  border-color: rgba(231, 196, 111, .62) !important;
  background: rgba(231, 196, 111, .14) !important;
}
body.internal-product-v1-ready .account-view[data-view="constellation"] #constellationOpenInTree[hidden],
body.internal-product-v1-ready .account-view[data-view="constellation"] #constellationSelectionHero[hidden],
body.internal-product-v1-ready .account-view[data-view="constellation"] #constellationSelectionEmptyState[hidden],
body.internal-product-v1-ready .account-view[data-view="constellation"] #constellationSelectionMeta[hidden] {
  display: none !important;
}
@media (prefers-reduced-motion: reduce) {
  body.internal-product-v1-ready .account-view[data-view="constellation"] .humanity-constellation-3d-label { transition: none; }
}
@media (max-width: 1439px) {
  body.internal-product-v1-ready .account-view[data-view="constellation"] .constellation-branch-selector { top: 58px; max-width: calc(100% - 20px); overflow-x: auto; }
  body.internal-product-v1-ready .account-view[data-view="constellation"] .constellation-branch-selector button,
  body.internal-product-v1-ready .account-view[data-view="constellation"] .constellation-branch-selector select { min-height: 34px; padding-inline: 9px; }
}

/* Home quick actions share one presentation at every viewport. */
body.internal-product-v1-ready .h100-actions { display: grid; gap: 8px; margin-top: 14px; }
body.internal-product-v1-ready .h100-actions button {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 46px; padding: 10px 12px; border: 1px solid var(--iv1-line);
  border-radius: 11px; background: var(--iv1-panel); color: var(--iv1-text);
  font: inherit; font-size: 12px; text-align: left; cursor: pointer;
}
body.internal-product-v1-ready .h100-actions button:hover { border-color: var(--iv1-gold); }
body.internal-product-v1-ready .h100-actions span { color: var(--iv1-gold); }
@media (max-width: 680px) {
  body.internal-product-v1-ready .beta20-create > header { flex-direction: column; align-items: stretch; gap: 12px; }
  body.internal-product-v1-ready .beta20-create > header small { max-width: none; text-align: left; }
}

/* Invitation totals and empty conversations must fit the content column. */
body.internal-product-v1-ready .beta20-invite-summary { flex-wrap: wrap !important; }
body.internal-product-v1-ready .account-view[data-view="messages"] .empty-chat {
  display: flex !important; flex-direction: column !important; align-items: center;
  justify-content: center; gap: 12px; max-width: 100%; min-width: 0;
  box-sizing: border-box; overflow-wrap: anywhere; line-height: 1.6;
}
body.internal-product-v1-ready .account-view[data-view="messages"] .chat-panel { min-width: 0; }
@media (min-width: 681px) and (max-width: 1180px) {
  body.internal-product-v1-ready .messages-layout { grid-template-columns: 160px minmax(0,1fr) !important; }
  body.internal-product-v1-ready .conversation-list { min-width: 0 !important; }
}
@media (max-width: 1180px) {
  body.internal-product-v1-ready .beta20-invite-summary { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px !important; }
}

body.internal-product-v1-ready .beta20-home .humanity-product-mini-surface .humanity-product-action { color: var(--iv1-text) !important; }
@media (min-width: 681px) and (max-width: 1100px) {
  body.internal-product-v1-ready .beta20-home .beta20-home-hero { grid-template-columns: minmax(0,1fr) !important; }
  body.internal-product-v1-ready .beta20-home-cover { min-height: 220px !important; }
  body.internal-product-v1-ready .beta20-side-stack { grid-template-columns: minmax(0,1fr) !important; }
}

@media (max-width: 680px) {
  body.internal-product-v1-ready .account-view[data-view="tree"].active .tree-social-head {
    flex-direction: column !important; align-items: stretch !important;
    max-height: none !important; gap: 6px !important;
  }
  body.internal-product-v1-ready .account-view[data-view="tree"] .tree-head-actions {
    width: 100%; min-width: 0; max-width: 100%; justify-content: flex-start;
  }
  body.internal-product-v1-ready .account-view[data-view="tree"] .tree-selector-wrap {
    min-width: 0 !important; width: 100% !important; max-width: 100%; box-sizing: border-box;
  }
}
