/* ============================================
   THORIUMAI — Product Shell
   Hub-based social intelligence environment
   ============================================ */

/* ── Shell Reset & Layout ── */
.shell {
  display: flex;
  min-height: 100vh;
  background: var(--black);
  overflow: hidden;
}

.shell-rail {
  width: 64px;
  min-width: 64px;
  background: var(--near-black);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 200;
}

.shell-main {
  flex: 1;
  margin-left: 64px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}

/* ── Command Rail ── */
.rail-logo {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--white);
  background: var(--accent);
  border-radius: 8px;
  margin-bottom: 24px;
  text-decoration: none;
  letter-spacing: -0.5px;
  transition: transform 0.15s;
}

.rail-logo:hover { transform: scale(1.08); }

.rail-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.rail-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: 10px;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
  font-size: 0;
}

.rail-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rail-btn:hover {
  background: rgba(255,255,255,0.04);
  color: var(--off-white);
}

.rail-btn.active {
  background: rgba(232, 64, 28, 0.12);
  color: var(--accent);
}

.rail-btn.active::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
}

.rail-tooltip {
  display: none;
  position: absolute;
  left: 54px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--dark);
  border: 1px solid var(--border-mid);
  padding: 5px 10px;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--off-white);
  white-space: nowrap;
  border-radius: 6px;
  pointer-events: none;
  z-index: 300;
}

.rail-btn:hover .rail-tooltip { display: block; }

.rail-divider {
  width: 24px;
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}

.rail-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.rail-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--border-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--off-white);
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.15s;
  overflow: hidden;
}

.rail-avatar:hover { border-color: var(--accent); }

.rail-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* ── Hub Content Zones ── */
.hub-zone {
  display: none;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

.hub-zone.active { display: flex; flex-direction: column; }

/* ── Hub Header Bar ── */
.hub-header {
  display: flex;
  align-items: center;
  padding: 16px 28px;
  border-bottom: 1px solid var(--border);
  background: var(--near-black);
  position: sticky;
  top: 0;
  z-index: 50;
  gap: 16px;
  min-height: 56px;
}

.hub-header-title {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hub-header-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ── Universal Search ── */
.hub-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  flex: 1;
  max-width: 480px;
  transition: border-color 0.15s;
}

.hub-search:focus-within { border-color: var(--accent); }

.hub-search svg {
  width: 16px;
  height: 16px;
  stroke: var(--muted);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

.hub-search input {
  background: none;
  border: none;
  outline: none;
  color: var(--off-white);
  font-family: var(--sans);
  font-size: 0.85rem;
  width: 100%;
}

.hub-search input::placeholder { color: var(--muted); }

.hub-search-shortcut {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--muted);
  background: var(--near-black);
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

/* ── Feed Zone ── */
.feed-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 28px;
  gap: 28px;
  width: 100%;
}

.feed-stream { display: flex; flex-direction: column; gap: 16px; }

.feed-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 80px;
  align-self: start;
}

/* Post Card */
.post-card {
  background: var(--near-black);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  transition: border-color 0.15s;
}

.post-card:hover { border-color: var(--border-mid); }

.post-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.post-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--border-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--off-white);
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
}

.post-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.post-author-name {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--off-white);
  cursor: pointer;
}

.post-author-name:hover { color: var(--accent); }

.post-author-headline {
  font-family: var(--sans);
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 1px;
}

.post-time {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--muted);
  margin-left: auto;
}

.post-body {
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--light);
  line-height: 1.65;
  margin-bottom: 14px;
}

.post-actions {
  display: flex;
  gap: 4px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

.post-action-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s;
}

.post-action-btn:hover {
  background: rgba(255,255,255,0.04);
  color: var(--off-white);
}

.post-action-btn.requires-auth { cursor: pointer; }

/* Compose Box */
.compose-box {
  background: var(--near-black);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
}

.compose-box textarea {
  width: 100%;
  min-height: 72px;
  background: none;
  border: none;
  outline: none;
  color: var(--off-white);
  font-family: var(--sans);
  font-size: 0.9rem;
  line-height: 1.6;
  resize: vertical;
}

.compose-box textarea::placeholder { color: var(--muted); }

.compose-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.compose-submit {
  background: var(--accent);
  color: var(--black);
  border: none;
  padding: 8px 20px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}

.compose-submit:hover { background: var(--accent-dim); }

/* ── People Discovery Zone ── */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  padding: 24px 28px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Person Card */
.person-card {
  background: var(--near-black);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.person-card:hover {
  border-color: var(--border-mid);
  transform: translateY(-2px);
}

.person-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.person-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--border-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--off-white);
  flex-shrink: 0;
  overflow: hidden;
}

.person-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.person-name {
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--off-white);
}

.person-headline {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.person-location {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--muted);
  margin-top: 8px;
}

.person-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.person-tag {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.person-card-actions {
  display: flex;
  gap: 6px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.person-btn {
  flex: 1;
  padding: 7px 0;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
  border: none;
}

.person-btn-primary {
  background: var(--accent);
  color: var(--black);
}

.person-btn-primary:hover { background: var(--accent-dim); }

.person-btn-secondary {
  background: rgba(255,255,255,0.04);
  color: var(--off-white);
  border: 1px solid var(--border);
}

.person-btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--border-mid);
}

/* ── Panels & Overlays ── */
.panel-overlay {
  position: fixed;
  top: 0;
  left: 64px;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.panel-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* Side Panel (Profile Preview, Social Capsule, etc.) */
.side-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: calc(100vw - 64px);
  height: 100vh;
  background: var(--near-black);
  border-left: 1px solid var(--border);
  z-index: 150;
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.side-panel.open { transform: translateX(0); }

.panel-header {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
  min-height: 56px;
}

.panel-title {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.panel-close {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.panel-close:hover { color: var(--off-white); background: rgba(255,255,255,0.06); }

.panel-close svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

/* ── Profile Preview Panel ── */
.profile-preview-header {
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.profile-preview-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--border-mid);
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--off-white);
  overflow: hidden;
}

.profile-preview-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.profile-preview-name {
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}

.profile-preview-headline {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--mid);
  margin-top: 4px;
}

.profile-preview-location {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 6px;
}

.profile-preview-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  justify-content: center;
}

/* ── Social Capsule Panel ── */
.capsule-section {
  margin-bottom: 20px;
}

.capsule-section-title {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.capsule-platform {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 6px;
  transition: border-color 0.15s;
}

.capsule-platform:hover { border-color: var(--border-mid); }

.capsule-platform-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.capsule-platform-name {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--off-white);
}

.capsule-platform-handle {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
}

.capsule-platform-metric {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 500;
}

/* Identity Intelligence Score */
.capsule-intelligence {
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
}

.capsule-intel-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.capsule-intel-headline {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 10px;
}

.capsule-intel-bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 6px;
}

.capsule-intel-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.6s ease;
}

.capsule-intel-score {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--accent);
}

/* ── Auth Gate Prompt ── */
.auth-gate-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.auth-gate-overlay.open { display: flex; }

.auth-gate-card {
  background: var(--near-black);
  border: 1px solid var(--border-mid);
  border-radius: 14px;
  padding: 36px 32px;
  max-width: 400px;
  width: 90%;
  text-align: center;
}

.auth-gate-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  opacity: 0.8;
}

.auth-gate-title {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.auth-gate-text {
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--mid);
  line-height: 1.6;
  margin-bottom: 24px;
}

.auth-gate-cta {
  display: inline-block;
  background: var(--accent);
  color: var(--black);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 11px 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  margin-right: 8px;
}

.auth-gate-cta:hover { background: var(--accent-dim); }

.auth-gate-secondary {
  display: inline-block;
  color: var(--mid);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 11px 16px;
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.15s;
}

.auth-gate-secondary:hover { color: var(--off-white); }

/* ── Sidebar Widgets ── */
.sidebar-card {
  background: var(--near-black);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
}

.sidebar-card-title {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.sidebar-insight-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.sidebar-insight-item:last-child { border-bottom: none; }

.sidebar-insight-title {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--off-white);
  cursor: pointer;
  transition: color 0.15s;
}

.sidebar-insight-title:hover { color: var(--accent); }

.sidebar-insight-tag {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 3px;
}

/* ── Research Preview Drawer ── */
.research-drawer {
  position: fixed;
  bottom: 0;
  left: 64px;
  right: 0;
  height: 60vh;
  background: var(--near-black);
  border-top: 1px solid var(--border);
  z-index: 100;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
  display: flex;
  flex-direction: column;
}

.research-drawer.open { transform: translateY(0); }

.research-drawer-header {
  display: flex;
  align-items: center;
  padding: 12px 24px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}

.research-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 32px;
  max-width: 740px;
  margin: 0 auto;
  width: 100%;
}

/* ── Connections Zone ── */
.connections-layout {
  padding: 24px 28px;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.connection-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 8px;
  transition: border-color 0.15s;
  cursor: pointer;
}

.connection-item:hover { border-color: var(--border-mid); }

.connection-info {
  flex: 1;
}

.connection-name {
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--off-white);
}

.connection-headline {
  font-family: var(--sans);
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 2px;
}

/* ── Insights Zone ── */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  padding: 24px 28px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.insight-card {
  background: var(--near-black);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.insight-card:hover {
  border-color: var(--border-mid);
  transform: translateY(-2px);
}

.insight-tag {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.insight-title {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 8px;
}

.insight-deck {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--mid);
  line-height: 1.5;
}

.insight-meta {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--muted);
  margin-top: 10px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .shell-rail {
    width: 100%;
    height: 56px;
    min-width: unset;
    flex-direction: row;
    padding: 0 12px;
    top: auto;
    bottom: 0;
    left: 0;
    border-right: none;
    border-top: 1px solid var(--border);
  }

  .shell-main {
    margin-left: 0;
    margin-bottom: 56px;
  }

  .rail-logo { margin-bottom: 0; margin-right: auto; }

  .rail-nav {
    flex-direction: row;
    gap: 0;
  }

  .rail-divider {
    width: 1px;
    height: 24px;
    margin: 0 4px;
  }

  .rail-bottom {
    flex-direction: row;
    border-top: none;
    border-left: 1px solid var(--border);
    padding-top: 0;
    padding-left: 12px;
    margin-top: 0;
    margin-left: auto;
  }

  .rail-btn.active::before {
    left: 50%;
    top: -8px;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
  }

  .rail-tooltip { display: none !important; }

  .feed-layout {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .feed-sidebar { display: none; }

  .people-grid {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .side-panel {
    width: 100%;
    max-width: 100%;
    left: 0;
  }

  .panel-overlay { left: 0; }

  .research-drawer { left: 0; height: 80vh; }
}

/* ── Person Card Enrichments ── */

/* Domain color bar at top of card */
.person-card-domain-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 10px 10px 0 0;
  opacity: 0.6;
}

/* AI agent card subtle indicator */
.person-card--ai {
  border-color: rgba(201, 168, 76, 0.15);
}

.person-card--ai:hover {
  border-color: rgba(201, 168, 76, 0.3);
}

/* AI disclosure line */
.person-ai-disclosure {
  font-family: var(--mono);
  font-size: 0.58rem;
  color: var(--gold);
  letter-spacing: 0.06em;
  margin-top: 4px;
  opacity: 0.85;
}

/* Micro-bio */
.person-bio {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--mid);
  line-height: 1.45;
  margin-top: 8px;
  font-style: italic;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Presence signal */
.person-presence {
  font-family: var(--mono);
  font-size: 0.58rem;
  color: var(--muted);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.person-presence::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.5;
  flex-shrink: 0;
}

/* AI tag on feed posts */
.post-ai-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.55rem;
  color: var(--gold);
  letter-spacing: 0.06em;
  margin-top: 2px;
  opacity: 0.8;
}

/* Sidebar connection presence */
.connection-presence {
  font-family: var(--mono);
  font-size: 0.58rem;
  color: var(--muted);
  margin-top: 2px;
}

/* ── Clickable connection/profile links ── */
.connection-item a {
  text-decoration: none;
  color: inherit;
}
.connection-item a:hover .connection-name {
  color: var(--accent);
}
.person-avatar a,
a.person-avatar {
  cursor: pointer;
}

/* Suggested people sidebar links */
.sidebar-suggested-person {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.15s;
}
.sidebar-suggested-person:hover {
  opacity: 0.8;
}
.sidebar-suggested-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.sidebar-suggested-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.sidebar-suggested-name {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--off-white);
}
.sidebar-suggested-headline {
  font-family: var(--sans);
  font-size: 0.65rem;
  color: var(--muted);
  margin-top: 1px;
}
