/* ============================================
   NETWORK STYLES — Signal/Noise Professional Networking
   Editorial Brutalism × Financial Terminal
   ============================================ */

/* ============ SOCIAL AREA LIGHT THEME ============ */

.social-area {
  --social-bg: #f6f4f0;
  --social-surface: #ffffff;
  --social-surface-alt: #f0ece4;
  --social-border: #e0dcd4;
  --social-border-mid: #ccc8c0;
  --social-text: #1a1a1a;
  --social-text-secondary: #555;
  --social-text-muted: #888;
  --social-text-light: #333;
  background: var(--social-bg);
  min-height: calc(100vh - 200px);
  overflow-y: visible;
}

/* ============ SOCIAL LAYOUT: MAIN + SIDEBAR ============ */

.social-layout {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 48px 80px;
  display: grid;
  grid-template-columns: 7fr 3fr;
  gap: 40px;
  align-items: start;
}

.social-main {
  min-width: 0;
}

/* ── Right Sidebar ── */
.social-sidebar {
  position: sticky;
  top: 100px;
}

.social-sidebar-section {
  background: var(--social-surface);
  border: 1px solid var(--social-border);
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 16px;
}

.social-sidebar-title {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  color: var(--social-text-muted);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--social-border);
}

.social-sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.social-sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--social-text-light);
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.12s, color 0.12s;
}

.social-sidebar-nav a:hover {
  background: var(--social-surface-alt);
  color: var(--social-text);
}

.social-sidebar-nav a.sidebar-active {
  background: var(--social-surface-alt);
  color: var(--accent);
  font-weight: 600;
}

.social-sidebar-nav-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  flex-shrink: 0;
  opacity: 0.7;
}

.social-sidebar-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--social-surface-alt);
  border-radius: 4px;
  margin-bottom: 16px;
}

.social-sidebar-profile-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--social-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

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

.social-sidebar-profile-initials {
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
}

.social-sidebar-profile-info {
  min-width: 0;
}

.social-sidebar-profile-name {
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--social-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.social-sidebar-profile-headline {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--social-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.social-sidebar-cta {
  display: block;
  width: 100%;
  padding: 10px 16px;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  color: var(--social-surface);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.12s;
}

.social-sidebar-cta:hover {
  background: var(--accent-dim);
  border-color: var(--accent-dim);
}

.social-sidebar-cta--outline {
  background: transparent;
  color: var(--accent);
}

.social-sidebar-cta--outline:hover {
  background: rgba(232, 64, 28, 0.06);
}

/* ── Social area page header overrides ── */
.social-area .auth-eyebrow {
  color: var(--accent);
}

.social-area .auth-title {
  color: var(--social-text);
}

.social-area .auth-subtitle {
  color: var(--social-text-secondary);
}

.social-area .auth-error {
  background: #fef2f0;
  border-color: var(--accent);
  color: #a33020;
}

/* ── Social area overrides for feed components ── */
.social-area .feed-composer {
  background: var(--social-surface);
  border-color: var(--social-border);
}

.social-area .feed-composer-textarea {
  color: var(--social-text);
  background: transparent;
}

.social-area .feed-composer-textarea::placeholder {
  color: var(--social-text-muted);
}

.social-area .feed-composer-header {
  color: var(--social-text-muted);
  border-bottom: 1px solid var(--social-border);
  padding: 12px 20px;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.05em;
}

.social-area .feed-composer-input {
  background: var(--social-surface-alt);
  border: 1px solid var(--social-border);
  color: var(--social-text);
  font-family: var(--mono);
  font-size: 0.85rem;
  padding: 10px 16px;
  margin: 0 20px 12px;
  width: calc(100% - 40px);
  outline: none;
}

.social-area .feed-composer-input::placeholder {
  color: var(--social-text-muted);
}

.social-area .feed-composer-input:focus {
  border-color: var(--accent);
}

.social-area .feed-composer-tags-area {
  padding: 0 20px 12px;
}

.social-area .feed-composer-chips {
  margin-bottom: 8px;
}

.social-area .feed-composer-tags-area .feed-composer-input {
  margin: 0;
  width: 100%;
}

.social-area .feed-composer-actions {
  padding: 12px 20px;
  border-top: 1px solid var(--social-border);
  display: flex;
  justify-content: flex-end;
}

.social-area .feed-composer-btn {
  background: var(--accent);
  border: none;
  color: #fff;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  font-weight: 600;
  padding: 10px 24px;
  cursor: pointer;
  border-radius: 3px;
  transition: background 0.12s;
}

.social-area .feed-composer-btn:hover {
  background: var(--accent-dim);
}

.social-area .feed-post {
  background: var(--social-surface);
  border-color: var(--social-border);
  border-radius: 4px;
}

.social-area .feed-post-content {
  color: var(--social-text);
}

.social-area .feed-post-author {
  color: var(--social-text);
  text-decoration: none;
  font-weight: 600;
}

.social-area .feed-post-author:hover {
  color: var(--accent);
}

.social-area .feed-post-headline {
  color: var(--social-text-muted);
}

.social-area .feed-post-time {
  color: var(--social-text-muted);
}

.social-area .feed-post-delete {
  background: none;
  border: none;
  color: var(--social-text-muted);
  cursor: pointer;
  font-size: 1.125rem;
  padding: 4px;
}

.social-area .feed-post-delete:hover {
  color: var(--accent);
}

.social-area .feed-post-avatar {
  border-color: var(--social-border);
  background: var(--social-surface-alt);
}

.social-area .feed-post-avatar-initials {
  color: var(--accent);
}

.social-area .feed-reactions-bar {
  border-top: 1px solid var(--social-border);
  display: flex;
}

.social-area .feed-reaction-btn {
  color: var(--social-text-muted);
  border-right-color: var(--social-border);
}

.social-area .feed-reaction-btn:hover {
  background: var(--social-surface-alt);
  color: var(--social-text-light);
}

.social-area .feed-reaction-btn.feed-reaction-active {
  color: var(--accent);
}

.social-area .feed-comments-section {
  border-top: 1px solid var(--social-border);
}

.social-area .feed-comments-toggle {
  background: none;
  border: none;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--social-text-muted);
  cursor: pointer;
  padding: 12px 20px;
}

.social-area .feed-comments-toggle:hover {
  color: var(--social-text);
}

.social-area .feed-comment-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.social-area .feed-comment-avatar {
  background: var(--social-surface-alt);
  border-color: var(--social-border);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 600;
}

.social-area .feed-comment-author {
  color: var(--social-text);
}

.social-area .feed-comment-time {
  color: var(--social-text-muted);
}

.social-area .feed-comment-content {
  color: var(--social-text-secondary);
  font-family: var(--sans);
  font-size: 0.875rem;
  line-height: 1.6;
  padding-left: 36px;
}

.social-area .feed-comment-input-area {
  display: flex;
  gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid var(--social-border);
}

.social-area .feed-comment-input {
  flex: 1;
  background: var(--social-surface-alt);
  border: 1px solid var(--social-border);
  color: var(--social-text);
  font-family: var(--sans);
  font-size: 0.85rem;
  padding: 8px 12px;
  outline: none;
  border-radius: 3px;
}

.social-area .feed-comment-input::placeholder {
  color: var(--social-text-muted);
}

.social-area .feed-comment-input:focus {
  border-color: var(--accent);
}

.social-area .feed-comment-submit {
  background: var(--accent);
  border: none;
  color: #fff;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.04em;
  font-weight: 600;
  padding: 8px 14px;
  cursor: pointer;
  border-radius: 3px;
}

.social-area .feed-comments-loading {
  padding: 12px 20px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--social-text-muted);
}

.social-area .feed-comment {
  padding: 12px 20px;
  border-bottom: 1px solid var(--social-border);
}

.social-area .feed-comment:last-child {
  border-bottom: none;
}

.social-area .feed-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--social-text-muted);
  background: var(--social-surface-alt);
  border: 1px solid var(--social-border);
  padding: 3px 10px;
  border-radius: 2px;
}

.social-area .feed-chip-remove {
  background: none;
  border: none;
  color: var(--social-text-muted);
  cursor: pointer;
  font-size: 0.875rem;
  padding: 0;
  line-height: 1;
}

.social-area .feed-post-link-preview {
  border-color: var(--social-border);
}

.social-area .feed-post-link-preview:hover {
  border-color: var(--social-border-mid);
}

.social-area .feed-post-link-title {
  color: var(--social-text);
}

.social-area .feed-post-link-desc {
  color: var(--social-text-muted);
}

.social-area .feed-post-link-url {
  color: var(--accent);
}

.social-area .feed-post-tags .feed-chip {
  background: transparent;
  border: none;
  color: var(--social-text-muted);
  padding: 0;
}

.social-area .feed-load-more {
  text-align: center;
  padding: 20px 0;
}

.social-area .feed-load-more-btn {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  padding: 12px 32px;
  background: var(--social-surface);
  border: 1px solid var(--social-border);
  color: var(--social-text-light);
  cursor: pointer;
  transition: all 0.12s;
  border-radius: 3px;
}

.social-area .feed-load-more-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.social-area .feed-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--social-text-muted);
  font-family: var(--sans);
  font-size: 0.875rem;
}

/* ── Social area overrides for network/connections ── */

.social-area .net-tab {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  font-weight: 500;
  color: var(--social-text-muted);
  padding: 12px 20px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.social-area .net-tab:hover {
  color: var(--social-text);
}

.social-area .net-tab--active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.social-area .net-tab-content {
  display: none;
}

.social-area .net-tab-content--active {
  display: block;
}

.social-area .net-section-heading {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.05em;
  color: var(--social-text-muted);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--social-border);
}

.social-area .network-pending-section {
  margin-bottom: 32px;
}

.social-area .network-tabs {
  border-bottom-color: var(--social-border);
  margin-bottom: 24px;
}

.social-area .network-tab {
  color: var(--social-text-muted);
  border-bottom: 2px solid transparent;
}

.social-area .network-tab:hover {
  color: var(--social-text);
}

.social-area .network-tab--active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.social-area .network-tab-count {
  color: var(--social-text-muted);
}

.social-area .network-tab--active .network-tab-count {
  color: var(--accent);
}

.social-area .net-user-item {
  border-bottom-color: var(--social-border);
}

.social-area .net-user-avatar {
  border-color: var(--social-border);
  background: var(--social-surface-alt);
}

.social-area .net-user-avatar-initials {
  color: var(--accent);
}

.social-area .net-user-name {
  color: var(--social-text);
}

.social-area .net-user-name:hover {
  color: var(--accent);
}

.social-area .net-user-headline {
  color: var(--social-text-muted);
}

.social-area .net-user-meta {
  color: var(--social-text-muted);
}

.social-area .net-action-btn {
  font-family: var(--sans);
  font-size: 0.625rem;
  letter-spacing: 0.04em;
  font-weight: 500;
  padding: 6px 14px;
  border: 1px solid;
  cursor: pointer;
  background: none;
  border-radius: 3px;
  transition: all 0.12s;
}

.social-area .net-action-btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.social-area .net-action-btn--primary:hover {
  background: var(--accent-dim);
}

.social-area .net-action-btn--secondary {
  border-color: var(--social-border-mid);
  color: var(--social-text-light);
}

.social-area .net-action-btn--secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.social-area .net-action-btn--danger {
  border-color: var(--social-border-mid);
  color: var(--social-text-muted);
}

.social-area .net-action-btn--danger:hover {
  border-color: #c0392b;
  color: #c0392b;
}

.social-area .net-action-btn--follow {
  border-color: var(--accent);
  color: var(--accent);
}

.social-area .net-action-btn--connect {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.social-area .net-empty,
.social-area .net-loading {
  color: var(--social-text-muted);
  font-family: var(--sans);
  font-size: 0.875rem;
  padding: 24px 0;
}

.social-area .auth-error {
  margin-bottom: 16px;
}

.social-area .auth-success {
  background: #f0faf2;
  border-color: #5a9a6a;
  color: #2a6a3a;
  margin-bottom: 16px;
}

/* ── Social area overrides for people/discover ── */
.social-area .people-header {
  margin-bottom: 24px;
}

.social-area .people-title {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--social-text);
  margin-bottom: 8px;
}

.social-area .people-subtitle {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--social-text-secondary);
}

.social-area .people-search-bar {
  margin-bottom: 16px;
}

.social-area .people-search-bar-inner {
  display: flex;
  gap: 0;
}

.social-area .people-search-input {
  flex: 1;
  background: var(--social-surface);
  border: 1px solid var(--social-border);
  border-right: none;
  color: var(--social-text);
  border-radius: 3px 0 0 3px;
}

.social-area .people-search-input::placeholder {
  color: var(--social-text-muted);
}

.social-area .people-search-input:focus {
  border-color: var(--accent);
}

.social-area .people-search-btn {
  border-radius: 0 3px 3px 0;
}

.social-area .people-filters {
  margin-bottom: 24px;
}

.social-area .people-filters-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-area .people-filter-select {
  background: var(--social-surface);
  border: 1px solid var(--social-border);
  color: var(--social-text-light);
  font-family: var(--mono);
  font-size: 0.75rem;
  padding: 8px 12px;
  border-radius: 3px;
  outline: none;
}

.social-area .people-filter-select:focus {
  border-color: var(--accent);
}

.social-area .people-filter-toggle {
  background: var(--social-surface);
  border-color: var(--social-border);
  color: var(--social-text-muted);
}

.social-area .people-filter-toggle:hover {
  border-color: var(--social-border-mid);
  color: var(--social-text);
}

.social-area .people-filter-toggle--active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(232, 64, 28, 0.04);
}

.social-area .people-grid {
  grid-template-columns: repeat(2, 1fr);
}

.social-area .people-card {
  background: var(--social-surface);
  border-color: var(--social-border);
  border-radius: 4px;
}

.social-area .people-card:hover {
  border-color: var(--social-border-mid);
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}

.social-area .people-card-avatar {
  border-color: var(--social-border);
  background: var(--social-surface-alt);
}

.social-area .people-card-avatar-initials {
  color: var(--accent);
}

.social-area .people-card-name {
  color: var(--social-text);
}

.social-area .people-card-name:hover {
  color: var(--accent);
}

.social-area .people-card-headline {
  color: var(--social-text-muted);
}

.social-area .people-card-skill {
  color: var(--social-text-muted);
  border-color: var(--social-border);
  background: var(--social-surface-alt);
}

.social-area .people-card-ai-tool {
  color: var(--gold);
  border-color: rgba(201, 168, 76, 0.3);
  background: rgba(201, 168, 76, 0.06);
}

.social-area .people-card-badge--work {
  background: rgba(76, 175, 80, 0.08);
  color: #388e3c;
  border: 1px solid rgba(76, 175, 80, 0.2);
}

.social-area .people-card-badge--collab {
  background: rgba(33, 150, 243, 0.08);
  color: #1976d2;
  border: 1px solid rgba(33, 150, 243, 0.2);
}

.social-area .people-card-action {
  font-family: var(--sans);
  font-size: 0.625rem;
  letter-spacing: 0.04em;
  padding: 8px 16px;
  border: 1px solid;
  cursor: pointer;
  width: 100%;
  border-radius: 3px;
  transition: all 0.12s;
}

.social-area .people-card-action--follow {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}

.social-area .people-card-action--follow:hover {
  background: var(--accent);
  color: #fff;
}

.social-area .people-card-action--connect {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.social-area .people-card-action--connected {
  background: transparent;
  border-color: var(--social-border-mid);
  color: var(--social-text-muted);
  cursor: default;
}

.social-area .people-card-action--pending {
  background: transparent;
  border-color: var(--social-border);
  color: var(--social-text-muted);
  cursor: default;
}

.social-area .people-card-action--signin {
  background: transparent;
  border-color: var(--social-border-mid);
  color: var(--social-text-light);
}

.social-area .people-results-count {
  color: var(--social-text-muted);
}

.social-area .people-results-count strong {
  color: var(--social-text);
}

.social-area .people-empty-text {
  color: var(--social-text-muted);
}

/* ── Public profile light theme overrides ── */
.social-area .pub-hero {
  background: var(--social-surface);
  border-bottom-color: var(--social-border);
}

.social-area .pub-name {
  color: var(--social-text);
}

.social-area .pub-headline {
  color: var(--social-text-secondary);
}

.social-area .pub-location {
  color: var(--social-text-muted);
}

.social-area .pub-meta-item {
  background: var(--social-surface-alt);
  border-color: var(--social-border);
}

.social-area .pub-meta-value {
  color: var(--accent);
}

.social-area .pub-meta-label {
  color: var(--social-text-muted);
}

.social-area .pub-section {
  border-bottom-color: var(--social-border);
}

.social-area .pub-section-title {
  color: var(--social-text-muted);
}

.social-area .pub-ai-headline {
  color: var(--social-text);
}

.social-area .pub-ai-summary p,
.social-area .pub-summary-text p {
  color: var(--social-text-secondary);
}

.social-area .pub-skill-highlight {
  background: var(--social-surface);
  border-color: var(--social-border);
}

.social-area .pub-skill-highlight-name {
  color: var(--social-text);
}

.social-area .pub-skill-highlight-rel {
  color: var(--social-text-muted);
}

.social-area .pub-skill-tag {
  background: var(--social-surface-alt);
  border-color: var(--social-border);
}

.social-area .pub-skill-name {
  color: var(--social-text-light);
}

.social-area .pub-cert-item {
  background: var(--social-surface-alt);
  border-color: var(--social-border);
}

.social-area .pub-cert-name {
  color: var(--social-text-light);
}

.social-area .pub-exp-item,
.social-area .pub-edu-item {
  border-bottom-color: var(--social-border);
}

.social-area .pub-exp-title,
.social-area .pub-edu-degree {
  color: var(--social-text);
}

.social-area .pub-exp-company,
.social-area .pub-edu-school {
  color: var(--social-text-secondary);
}

.social-area .pub-exp-period,
.social-area .pub-edu-year {
  color: var(--social-text-muted);
}

.social-area .pub-exp-desc {
  color: var(--social-text-muted);
}

.social-area .pub-attribution {
  background: var(--social-surface);
  border-bottom-color: var(--social-border);
}

.social-area .pub-attribution-inner {
  color: var(--social-text-muted);
}

.social-area .pub-hero-inner {
  max-width: 100%;
  padding: 40px 0;
}

.social-area .pub-section-inner {
  max-width: 100%;
  padding: 32px 0;
}

.social-area .pub-attribution-inner {
  max-width: 100%;
  padding: 20px 0;
}

.social-area .pub-loading {
  min-height: 200px;
}

.social-area .pub-loading-text {
  color: var(--social-text-muted);
}

.social-area .pub-error-page {
  padding: 80px 0;
}

/* Public profile hero actions bar (below hero, inline) */
.pub-hero-actions-bar {
  display: none;
  gap: 10px;
  padding: 16px 0;
  border-bottom: 1px solid var(--social-border);
  margin-bottom: 8px;
}

/* Inline style overrides for light theme in public profile JS-rendered content */
.social-area [style*="color:var(--white)"] { color: var(--social-text) !important; }
.social-area [style*="color:var(--light)"] { color: var(--social-text-light) !important; }
.social-area [style*="color:var(--mid)"] { color: var(--social-text-secondary) !important; }
.social-area [style*="color:var(--muted)"] { color: var(--social-text-muted) !important; }
.social-area [style*="background:var(--dark)"] { background: var(--social-surface-alt) !important; }
.social-area [style*="background:var(--near-black)"] { background: var(--social-surface-alt) !important; }
.social-area [style*="border:1px solid var(--border)"] { border-color: var(--social-border) !important; }

/* Base styles for new pub-profile elements (dark theme fallback) */
.pub-hero-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.pub-hero-role {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--light);
  padding: 4px 12px;
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.pub-hero-role--target {
  background: rgba(201, 168, 76, 0.1);
  border-color: rgba(201, 168, 76, 0.3);
  color: var(--gold);
}

.pub-hero-role-label {
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-right: 6px;
}

.pub-section--featured {
  border-left: 3px solid var(--gold);
  padding-left: 20px;
}

.pub-section-title--gold {
  color: var(--gold) !important;
}

.pub-ai-badge--gold {
  background: var(--gold);
  color: var(--black);
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 0.03em;
  padding: 3px 10px;
  border-radius: 3px;
  font-weight: 600;
}

.pub-project-card {
  background: var(--dark);
  border: 1px solid var(--border);
  padding: 20px;
  margin-bottom: 12px;
}

.pub-project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.pub-project-title {
  font-family: var(--serif);
  font-size: 1.125rem;
  color: var(--white);
}

.pub-project-ai-tag {
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 0.03em;
  padding: 3px 8px;
  background: rgba(201,168,76,0.15);
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.3);
}

.pub-project-desc {
  font-family: var(--sans);
  font-size: 0.875rem;
  color: var(--mid);
  margin-top: 8px;
  line-height: 1.6;
}

.pub-project-ai-note {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--gold);
  margin-top: 8px;
  padding: 8px;
  border-left: 2px solid var(--gold);
  background: rgba(201,168,76,0.05);
}

.pub-project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.pub-project-tag {
  font-family: var(--mono);
  font-size: 0.625rem;
  padding: 3px 8px;
  background: var(--near-black);
  border: 1px solid var(--border);
  color: var(--muted);
}

.pub-project-links {
  margin-top: 8px;
}

.pub-project-link {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent);
  margin-right: 12px;
  text-decoration: none;
}
.social-area .pro-profile-ai-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .social-layout {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 32px 24px 64px;
  }

  .social-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--social-border);
  }

  .social-sidebar-section {
    margin-bottom: 0;
  }

  .social-area .people-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .social-layout {
    padding: 24px 16px 48px;
  }

  .social-sidebar {
    grid-template-columns: 1fr;
  }
}

/* ============ COMMON / LAYOUT ============ */

.network-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 32px 80px;
}

.network-page-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.network-page-eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 14px;
}

.network-page-title {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 4vw, 2.625rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 10px;
}

.network-page-subtitle {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Tabs */
.network-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.network-tab {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  font-weight: 500;
  color: var(--muted);
  padding: 12px 20px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}

.network-tab:hover {
  color: var(--light);
}

.network-tab--active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.network-tab-count {
  font-size: 0.625rem;
  color: var(--muted);
  margin-left: 6px;
}

.network-tab--active .network-tab-count {
  color: var(--accent);
}

/* Empty state */
.network-empty-state {
  text-align: center;
  padding: 64px 32px;
}

.network-empty-icon {
  font-size: 2rem;
  color: var(--border-mid);
  margin-bottom: 16px;
  opacity: 0.6;
}

.network-empty-title {
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 8px;
}

.network-empty-desc {
  font-family: var(--sans);
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 400px;
  margin: 0 auto 24px;
}

.network-empty-cta {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 10px 20px;
  text-decoration: none;
  transition: all 0.15s;
}

.network-empty-cta:hover {
  background: var(--accent);
  color: var(--black);
}


/* ============ 1. EXTENDED PROFILE VIEW ============ */

/* Banner */
.pro-profile-banner {
  width: 100%;
  height: 200px;
  background: var(--near-black);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}

.pro-profile-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pro-profile-banner-empty {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--near-black) 0%, var(--dark) 50%, var(--near-black) 100%);
  border-bottom: 3px solid var(--accent);
}

/* Profile header below banner */
.pro-profile-header {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 24px 0;
  margin-top: -48px;
  position: relative;
  z-index: 1;
}

.pro-profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 3px solid var(--black);
  background: var(--dark);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.pro-profile-avatar-initials {
  font-family: var(--mono);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--accent);
}

.pro-profile-identity {
  padding-top: 52px;
}

.pro-profile-name {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 4px;
}

.pro-profile-headline {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--mid);
  line-height: 1.5;
  margin-bottom: 4px;
}

.pro-profile-location {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.5px;
}

/* Professional positioning */
.pro-profile-positioning {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

.pro-profile-section-title {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.pro-profile-roles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.pro-profile-role-card {
  padding: 16px;
  background: var(--dark);
  border: 1px solid var(--border);
}

.pro-profile-role-label {
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 8px;
}

.pro-profile-role-value {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.4;
}

.pro-profile-industries {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pro-profile-industry-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  color: var(--light);
  padding: 6px 12px;
  background: var(--dark);
  border: 1px solid var(--border);
}

/* AI Adaptation section */
.pro-profile-ai {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

.pro-profile-ai-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.pro-profile-ai-title {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  color: var(--gold);
}

.pro-profile-ai-badge {
  font-family: var(--mono);
  font-size: 0.5rem;
  letter-spacing: 0.04em;
  font-weight: 600;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 2px 8px;
}

.pro-profile-ai-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.pro-profile-ai-card {
  padding: 16px;
  background: var(--dark);
  border: 1px solid var(--border);
  border-top: 2px solid var(--gold);
}

.pro-profile-ai-card-label {
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 0.05em;
  color: var(--gold);
  margin-bottom: 12px;
}

.pro-profile-ai-card-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pro-profile-ai-card-list li {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--light);
  letter-spacing: 0.3px;
  padding-left: 12px;
  position: relative;
}

.pro-profile-ai-card-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 4px;
  height: 4px;
  background: var(--gold);
}

.pro-profile-ai-summary {
  padding: 16px 20px;
  background: #060606;
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
}

.pro-profile-ai-summary p {
  font-family: var(--sans);
  font-size: 0.875rem;
  color: var(--mid);
  line-height: 1.7;
}

/* External links */
.pro-profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.pro-profile-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  color: var(--mid);
  padding: 8px 14px;
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all 0.15s;
}

.pro-profile-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.pro-profile-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Projects grid */
.pro-profile-projects {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

.pro-profile-projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.pro-profile-project-card {
  padding: 20px;
  background: var(--dark);
  border: 1px solid var(--border);
  transition: border-color 0.15s;
}

.pro-profile-project-card:hover {
  border-color: var(--border-mid);
}

.pro-profile-project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.pro-profile-project-name {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
}

.pro-profile-project-ai-badge {
  font-family: var(--mono);
  font-size: 0.5rem;
  letter-spacing: 0.03em;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 2px 6px;
  flex-shrink: 0;
  white-space: nowrap;
}

.pro-profile-project-desc {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.pro-profile-project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pro-profile-project-tag {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.5px;
  color: var(--muted);
  padding: 3px 8px;
  border: 1px solid var(--border);
}

/* Work preference badges */
.pro-profile-prefs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.pro-profile-pref-badge {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  color: var(--light);
  padding: 8px 14px;
  background: var(--dark);
  border: 1px solid var(--border);
}

.pro-profile-pref-badge--highlight {
  border-color: var(--accent);
  color: var(--accent);
}


/* ============ 2. PEOPLE SEARCH / DISCOVERY ============ */

/* Search bar */
.people-search {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
}

.people-search-input {
  flex: 1;
  background: #0a0a0a;
  border: 1px solid var(--border);
  border-right: none;
  color: var(--off-white);
  font-family: var(--sans);
  font-size: 0.85rem;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.15s;
}

.people-search-input:focus {
  border-color: var(--accent);
}

.people-search-input::placeholder {
  color: #555;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.people-search-btn {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: var(--black);
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  font-weight: 600;
  padding: 12px 20px;
  cursor: pointer;
  transition: background 0.12s;
  flex-shrink: 0;
}

.people-search-btn:hover {
  background: var(--accent-dim);
  border-color: var(--accent-dim);
}

/* Filter toggles */
.people-filter-toggles {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.people-filter-toggle {
  font-family: var(--sans);
  font-size: 0.625rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 6px 12px;
  background: none;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.15s;
}

.people-filter-toggle:hover {
  border-color: var(--border-mid);
  color: var(--light);
}

.people-filter-toggle--active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(232, 64, 28, 0.06);
}

/* Filter chips */
.people-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.people-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  color: var(--light);
  padding: 6px 12px;
  background: var(--dark);
  border: 1px solid var(--border-mid);
}

.people-filter-chip-remove {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.875rem;
  padding: 0 2px;
  line-height: 1;
}

.people-filter-chip-remove:hover {
  color: var(--accent);
}

/* User card grid */
.people-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* User card */
.people-card {
  background: var(--dark);
  border: 1px solid var(--border);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: border-color 0.15s;
}

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

.people-card-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--border-mid);
  background: var(--near-black);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

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

.people-card-avatar-initials {
  font-family: var(--mono);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--accent);
}

.people-card-name {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
  text-decoration: none;
}

.people-card-name:hover {
  color: var(--accent);
}

.people-card-headline {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.people-card-skills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin-bottom: 16px;
}

.people-card-skill {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.3px;
  color: var(--muted);
  padding: 3px 8px;
  border: 1px solid var(--border);
}

.people-card-actions {
  margin-top: auto;
  width: 100%;
}

/* People empty state */
.people-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
}

.people-empty-text {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  color: var(--muted);
}

/* Results count */
.people-results-count {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.people-results-count strong {
  color: var(--white);
  font-weight: 500;
}


/* ============ 3. NETWORKING ============ */

/* Connection / Follow buttons */
.net-btn {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  font-weight: 500;
  padding: 8px 16px;
  border: 1px solid;
  cursor: pointer;
  transition: all 0.15s;
  background: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.net-btn--follow {
  color: var(--accent);
  border-color: var(--accent);
}

.net-btn--follow:hover {
  background: var(--accent);
  color: var(--black);
}

.net-btn--following {
  color: var(--muted);
  border-color: var(--border-mid);
}

.net-btn--following:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.net-btn--connect {
  background: var(--accent);
  color: var(--black);
  border-color: var(--accent);
  font-weight: 600;
}

.net-btn--connect:hover {
  background: var(--accent-dim);
  border-color: var(--accent-dim);
}

.net-btn--pending {
  color: var(--muted);
  border-color: var(--border);
  cursor: default;
}

.net-btn--connected {
  color: #5a9a6a;
  border-color: rgba(90, 154, 106, 0.3);
}

.net-btn--connected:hover {
  border-color: rgba(90, 154, 106, 0.5);
}

.net-btn--sm {
  font-size: 0.625rem;
  letter-spacing: 0.03em;
  padding: 6px 12px;
}

/* Connections page tabs — re-use .network-tabs for structure */

/* User list items */
.net-user-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.net-user-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.net-user-item:last-child {
  border-bottom: none;
}

.net-user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--border-mid);
  background: var(--dark);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.net-user-avatar-initials {
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
}

.net-user-info {
  flex: 1;
  min-width: 0;
}

.net-user-name {
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  display: block;
  margin-bottom: 2px;
}

.net-user-name:hover {
  color: var(--accent);
}

.net-user-headline {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.net-user-meta {
  font-family: var(--mono);
  font-size: 0.625rem;
  color: var(--muted);
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.net-user-actions {
  flex-shrink: 0;
  display: flex;
  gap: 8px;
}


/* ============ 4. POSTS / FEED ============ */

/* Post composer */
.feed-composer {
  background: var(--dark);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.feed-composer-textarea {
  width: 100%;
  min-height: 100px;
  background: transparent;
  border: none;
  color: var(--off-white);
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1.6;
  padding: 20px;
  outline: none;
  resize: vertical;
}

.feed-composer-textarea::placeholder {
  color: #555;
}

.feed-composer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-top: 1px solid var(--border);
}

.feed-composer-actions {
  display: flex;
  gap: 12px;
}

.feed-composer-action {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  padding: 4px 8px;
  transition: color 0.15s;
}

.feed-composer-action:hover {
  color: var(--light);
}

.feed-composer-action svg {
  width: 16px;
  height: 16px;
}

.feed-composer-submit {
  background: var(--accent);
  border: none;
  color: var(--black);
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  font-weight: 600;
  padding: 8px 20px;
  cursor: pointer;
  transition: background 0.12s;
}

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

.feed-composer-submit:disabled {
  background: #0f0f0f;
  color: var(--accent);
  cursor: default;
}

/* Post card */
.feed-post {
  background: var(--dark);
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.feed-post-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 20px 0;
}

.feed-post-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--border-mid);
  background: var(--near-black);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.feed-post-avatar-initials {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

.feed-post-author-info {
  flex: 1;
  min-width: 0;
}

.feed-post-author-name {
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
}

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

.feed-post-author-headline {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-post-time {
  font-family: var(--mono);
  font-size: 0.625rem;
  color: var(--muted);
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.feed-post-menu {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  font-size: 1rem;
}

.feed-post-menu:hover {
  color: var(--light);
}

/* Post content */
.feed-post-content {
  padding: 16px 20px;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--off-white);
  line-height: 1.7;
}

.feed-post-content p {
  margin-bottom: 12px;
}

.feed-post-content p:last-child {
  margin-bottom: 0;
}

/* Link preview */
.feed-post-link-preview {
  margin: 0 20px 16px;
  border: 1px solid var(--border);
  display: flex;
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.15s;
}

.feed-post-link-preview:hover {
  border-color: var(--border-mid);
}

.feed-post-link-preview-img {
  width: 120px;
  flex-shrink: 0;
  background: var(--near-black);
  object-fit: cover;
}

.feed-post-link-preview-body {
  padding: 12px 16px;
  min-width: 0;
}

.feed-post-link-preview-title {
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-post-link-preview-domain {
  font-family: var(--mono);
  font-size: 0.625rem;
  color: var(--muted);
  letter-spacing: 0.5px;
}

/* Post tags */
.feed-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 20px 16px;
}

.feed-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.3px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.feed-tag:hover {
  color: var(--accent);
}

.feed-tag::before {
  content: '#';
  color: var(--border-mid);
}

.feed-tag--ai {
  color: var(--gold);
}

.feed-tag--ai::before {
  color: rgba(201, 168, 76, 0.4);
}

/* Reactions bar */
.feed-post-reactions {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 20px;
  border-top: 1px solid var(--border);
}

.feed-reaction-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  color: var(--muted);
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.15s;
  border-right: 1px solid var(--border);
}

.feed-reaction-btn:last-child {
  border-right: none;
}

.feed-reaction-btn:hover {
  color: var(--light);
  background: rgba(255, 255, 255, 0.02);
}

.feed-reaction-btn--active {
  color: var(--accent);
}

.feed-reaction-btn--active:hover {
  color: var(--accent);
}

.feed-reaction-count {
  font-size: 0.625rem;
}

/* Comments section */
.feed-post-comments {
  border-top: 1px solid var(--border);
  padding: 16px 20px;
}

.feed-comment {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.feed-comment:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.feed-comment--reply {
  margin-left: 32px;
  padding-left: 16px;
  border-left: 2px solid var(--border);
}

.feed-comment-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.feed-comment-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-mid);
  background: var(--near-black);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.feed-comment-avatar-initials {
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--accent);
}

.feed-comment-author {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
}

.feed-comment-author:hover {
  color: var(--accent);
}

.feed-comment-time {
  font-family: var(--mono);
  font-size: 0.625rem;
  color: var(--muted);
  letter-spacing: 0.3px;
}

.feed-comment-body {
  font-family: var(--sans);
  font-size: 0.875rem;
  color: var(--mid);
  line-height: 1.6;
  margin-left: 36px;
}

.feed-comment-actions {
  display: flex;
  gap: 12px;
  margin-left: 36px;
  margin-top: 6px;
}

.feed-comment-action {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.5px;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s;
}

.feed-comment-action:hover {
  color: var(--accent);
}

/* Comment input */
.feed-comment-input-wrap {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.feed-comment-input {
  flex: 1;
  background: #0a0a0a;
  border: 1px solid var(--border);
  color: var(--off-white);
  font-family: var(--sans);
  font-size: 0.85rem;
  padding: 8px 12px;
  outline: none;
  transition: border-color 0.15s;
}

.feed-comment-input:focus {
  border-color: var(--accent);
}

.feed-comment-input::placeholder {
  color: #555;
}

.feed-comment-send {
  background: var(--accent);
  border: none;
  color: var(--black);
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.04em;
  font-weight: 600;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.12s;
  flex-shrink: 0;
}

.feed-comment-send:hover {
  background: var(--accent-dim);
}


/* ============ 5. NOTIFICATIONS ============ */

/* Bell icon with count */
.notif-bell {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notif-bell svg {
  width: 20px;
  height: 20px;
  color: var(--mid);
  transition: color 0.15s;
}

.notif-bell:hover svg {
  color: var(--white);
}

.notif-bell-count {
  position: absolute;
  top: -2px;
  right: -4px;
  background: var(--accent);
  color: var(--black);
  font-family: var(--mono);
  font-size: 0.5625rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

.notif-bell-count:empty {
  display: none;
}

/* Notification panel */
.notif-panel {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--near-black);
  border: 1px solid var(--border);
  width: 360px;
  max-height: 480px;
  overflow-y: auto;
  z-index: 200;
}

.notif-panel.open {
  display: block;
}

.notif-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--near-black);
  z-index: 1;
}

.notif-panel-title {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.notif-panel-mark-read {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.5px;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.notif-panel-mark-read:hover {
  color: var(--accent-dim);
}

/* Notification item */
.notif-item {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  transition: background 0.12s;
  cursor: pointer;
  text-decoration: none;
}

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

.notif-item:hover {
  background: var(--dark);
}

.notif-item--unread {
  background: rgba(232, 64, 28, 0.03);
  border-left: 2px solid var(--accent);
}

.notif-item--unread:hover {
  background: rgba(232, 64, 28, 0.06);
}

/* ── Clickable profile avatars ── */
a.feed-post-avatar,
a.net-user-avatar,
a.people-card-avatar {
  cursor: pointer;
}
a.feed-post-avatar:hover,
a.net-user-avatar:hover,
a.people-card-avatar:hover {
  opacity: 0.85;
  transition: opacity 0.15s;
}

.notif-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--dark);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notif-icon svg {
  width: 14px;
  height: 14px;
  color: var(--muted);
}

.notif-icon--follow svg {
  color: var(--accent);
}

.notif-icon--connect svg {
  color: #5a9a6a;
}

.notif-icon--reaction svg {
  color: var(--gold);
}

.notif-icon--comment svg {
  color: var(--mid);
}

.notif-icon--mention svg {
  color: var(--accent);
}

.notif-body {
  flex: 1;
  min-width: 0;
}

.notif-message {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--mid);
  line-height: 1.5;
}

.notif-message strong {
  color: var(--white);
  font-weight: 600;
}

.notif-timestamp {
  font-family: var(--mono);
  font-size: 0.625rem;
  color: var(--muted);
  letter-spacing: 0.3px;
  margin-top: 4px;
}

.notif-empty {
  padding: 40px 20px;
  text-align: center;
}

.notif-empty-text {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  color: var(--muted);
}


/* ============ RESPONSIVE ============ */

@media (max-width: 768px) {

  /* Layout */
  .network-page {
    padding: 32px 16px 64px;
  }

  .network-tabs {
    gap: 0;
  }

  .network-tab {
    padding: 10px 14px;
    font-size: 0.625rem;
    letter-spacing: 0.04em;
  }

  /* Profile */
  .pro-profile-banner {
    height: 140px;
  }

  .pro-profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .pro-profile-identity {
    padding-top: 0;
  }

  .pro-profile-roles {
    grid-template-columns: 1fr;
  }

  .pro-profile-ai-grid {
    grid-template-columns: 1fr;
  }

  .pro-profile-projects-grid {
    grid-template-columns: 1fr;
  }

  .pro-profile-links {
    justify-content: center;
  }

  .pro-profile-prefs {
    justify-content: center;
  }

  /* People */
  .people-search {
    flex-direction: column;
  }

  .people-search-input {
    border-right: 1px solid var(--border);
    border-bottom: none;
  }

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

  .people-card {
    padding: 20px;
  }

  /* Networking */
  .net-user-item {
    flex-wrap: wrap;
  }

  .net-user-actions {
    width: 100%;
    margin-top: 8px;
    padding-left: 64px;
  }

  /* Feed */
  .feed-composer-textarea {
    min-height: 80px;
    padding: 16px;
  }

  .feed-composer-bar {
    padding: 10px 16px;
  }

  .feed-post-header {
    padding: 16px 16px 0;
  }

  .feed-post-content {
    padding: 12px 16px;
  }

  .feed-post-tags {
    padding: 0 16px 12px;
  }

  .feed-post-reactions {
    padding: 0 8px;
    flex-wrap: wrap;
  }

  .feed-reaction-btn {
    padding: 10px 10px;
    font-size: 0.625rem;
  }

  .feed-post-comments {
    padding: 12px 16px;
  }

  .feed-comment--reply {
    margin-left: 16px;
  }

  .feed-comment-body {
    margin-left: 36px;
  }

  .feed-post-link-preview {
    margin: 0 16px 12px;
    flex-direction: column;
  }

  .feed-post-link-preview-img {
    width: 100%;
    height: 140px;
  }

  /* Notifications */
  .notif-panel {
    width: 100vw;
    right: -16px;
    max-height: 400px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .people-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pro-profile-ai-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ============================================================
   PUBLIC PROFILE PAGE — Full-page light presentation theme
   Scoped to body.public-profile-page so the editor is unaffected
   ============================================================ */

body.public-profile-page {
  background: #f6f4f0;
  color: #1a1a1a;

  /* Override dark-theme CSS variables so inline styles in JS-rendered
     sections (Positioning, AI Adaptation, Projects) resolve to
     light-theme values instead of dark builder/editor colors. */
  --black: #1a1a1a;
  --near-black: #f0ece4;
  --dark: #ffffff;
  --border: #e0dcd4;
  --muted: #6b6560;
  --mid: #4a4540;
  --light: #2a2520;
  --white: #1a1a1a;
  --gold: #a07e2e;
}

/* Ticker — softer treatment */
.public-profile-page .ticker-bar {
  background: #e8401c;
}

/* Nav — light surface */
.public-profile-page .nav {
  background: #ffffff;
  border-bottom: 1px solid #e0dcd4;
}

.public-profile-page .logo-main {
  color: #1a1a1a;
}

.public-profile-page .logo-sub {
  color: #888;
}

.public-profile-page .nav-links a {
  color: #555;
}

.public-profile-page .nav-links a:hover {
  color: #e8401c;
}

.public-profile-page .nav-auth-area a,
.public-profile-page .nav-auth-area .nav-avatar-name {
  color: #555;
}

/* Loading & error states */
.public-profile-page .pub-loading-text {
  color: #888;
}

.public-profile-page .pub-error-page {
  color: #555;
}

.public-profile-page .pub-error-page .auth-eyebrow {
  color: #e8401c;
}

.public-profile-page .pub-error-page .auth-title {
  color: #1a1a1a;
}

.public-profile-page .pub-back-link {
  color: #e8401c;
}

/* Hero section — white card feel */
.public-profile-page .pub-hero {
  background: #ffffff;
  border-bottom: 1px solid #e0dcd4;
}

.public-profile-page .pub-name {
  color: #1a1a1a;
}

.public-profile-page .pub-headline {
  color: #444;
}

.public-profile-page .pub-location {
  color: #888;
}

.public-profile-page .pub-avatar {
  background: #f0ece4;
  border: 2px solid #e0dcd4;
}

.public-profile-page .pub-meta-item {
  background: #f6f4f0;
  border-radius: 8px;
}

.public-profile-page .pub-meta-value {
  color: #e8401c;
}

.public-profile-page .pub-meta-label {
  color: #888;
}

/* Hero actions bar */
.public-profile-page .pub-hero-actions-bar {
  background: #ffffff;
  border-bottom: 1px solid #e0dcd4;
}

/* Content sections — light cards */
.public-profile-page .pub-section {
  border-bottom: 1px solid #e0dcd4;
}

.public-profile-page .pub-section-inner {
  background: transparent;
}

.public-profile-page .pub-section-title {
  color: #888;
}

.public-profile-page .pub-section-header {
  border-bottom-color: #e0dcd4;
}

.public-profile-page .pub-ai-badge {
  background: #e8401c;
  color: #fff;
}

.public-profile-page .pub-ai-headline {
  color: #1a1a1a;
}

.public-profile-page .pub-ai-summary p,
.public-profile-page .pub-summary-text p {
  color: #444;
}

/* Skill highlights */
.public-profile-page .pub-skill-highlight {
  background: #ffffff;
  border: 1px solid #e0dcd4;
  border-radius: 8px;
}

.public-profile-page .pub-skill-highlight-name {
  color: #1a1a1a;
}

.public-profile-page .pub-skill-highlight-rel {
  color: #888;
}

/* Skill tags */
.public-profile-page .pub-skill-tag {
  background: #f0ece4;
  border-color: #e0dcd4;
}

.public-profile-page .pub-skill-name {
  color: #1a1a1a;
}

.public-profile-page .pub-skill-source {
  color: #888;
}

/* Certifications */
.public-profile-page .pub-cert-item {
  background: #f0ece4;
  border-color: #e0dcd4;
  border-radius: 8px;
}

.public-profile-page .pub-cert-name {
  color: #1a1a1a;
}

.public-profile-page .pub-cert-status {
  color: #888;
}

.public-profile-page .pub-cert-item--certified {
  border-color: rgba(90, 154, 106, 0.4);
}

.public-profile-page .pub-cert-item--certified .pub-cert-status {
  color: #5a9a6a;
}

/* Experience & Education */
.public-profile-page .pub-exp-item,
.public-profile-page .pub-edu-item {
  border-bottom-color: #e0dcd4;
}

.public-profile-page .pub-exp-title,
.public-profile-page .pub-edu-degree {
  color: #1a1a1a;
}

.public-profile-page .pub-exp-company,
.public-profile-page .pub-edu-school {
  color: #444;
}

.public-profile-page .pub-exp-period,
.public-profile-page .pub-edu-year {
  color: #888;
}

.public-profile-page .pub-exp-desc {
  color: #666;
}

/* AI Adaptation section */
.public-profile-page .pro-profile-ai-grid .pro-profile-ai-item {
  background: #ffffff;
  border: 1px solid #e0dcd4;
  border-radius: 8px;
}

.public-profile-page .pro-profile-ai-grid .pro-profile-ai-item h4 {
  color: #1a1a1a;
}

.public-profile-page .pro-profile-ai-grid .pro-profile-ai-item p {
  color: #555;
}

/* Projects */
.public-profile-page .pro-profile-projects .pro-profile-project-card {
  background: #ffffff;
  border: 1px solid #e0dcd4;
  border-radius: 8px;
}

.public-profile-page .pro-profile-projects .pro-profile-project-card h4 {
  color: #1a1a1a;
}

.public-profile-page .pro-profile-projects .pro-profile-project-card p {
  color: #555;
}

/* Links */
.public-profile-page #pub-links-content a {
  color: #e8401c;
}

/* Attribution */
.public-profile-page .pub-attribution {
  background: #ffffff;
  border-bottom: 1px solid #e0dcd4;
}

.public-profile-page .pub-attribution-inner {
  color: #888;
}

.public-profile-page .pub-attribution a {
  color: #e8401c;
}

/* Social sidebar — light version */
.public-profile-page .social-sidebar {
  background: #ffffff;
  border: 1px solid #e0dcd4;
  border-radius: 10px;
}

.public-profile-page .social-sidebar-title {
  color: #888;
}

.public-profile-page .social-sidebar-nav a {
  color: #444;
}

.public-profile-page .social-sidebar-nav a:hover {
  color: #e8401c;
}

.public-profile-page .social-sidebar-section {
  border-bottom-color: #e0dcd4;
}

/* Footer — light treatment */
.public-profile-page .footer {
  background: #ffffff;
  border-top: 1px solid #e0dcd4;
}

.public-profile-page .footer-brand .logo-main {
  color: #1a1a1a;
}

.public-profile-page .footer-brand p {
  color: #888;
}

.public-profile-page .footer-col-title {
  color: #888;
}

.public-profile-page .footer-col a {
  color: #666;
}

.public-profile-page .footer-col a:hover {
  color: #e8401c;
}

.public-profile-page .footer-bottom {
  color: #aaa;
  border-top: 1px solid #e0dcd4;
}

/* ── Public Profile Presentation Hierarchy ── */

/* Stronger hero: name dominance */
.public-profile-page .pub-name {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.public-profile-page .pub-headline {
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.4;
  margin-top: 4px;
}

/* Hero roles (current/target) */
.public-profile-page .pub-hero-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.public-profile-page .pub-hero-role {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: #444;
  padding: 4px 12px;
  background: #f6f4f0;
  border: 1px solid #e0dcd4;
  border-radius: 4px;
}

.public-profile-page .pub-hero-role--target {
  background: rgba(232, 64, 28, 0.06);
  border-color: rgba(232, 64, 28, 0.25);
  color: #c0351a;
}

.public-profile-page .pub-hero-role-label {
  font-family: var(--mono, 'JetBrains Mono', monospace);
  font-size: 0.5625rem;
  letter-spacing: 0.04em;
  color: #888;
  margin-right: 6px;
}

/* Badges: compact inline row */
.public-profile-page .pub-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.public-profile-page .pub-badge {
  font-family: var(--mono, 'JetBrains Mono', monospace);
  font-size: 0.5625rem;
  letter-spacing: 0.03em;
  padding: 3px 8px;
  border-radius: 3px;
}

/* Hero avatar bigger */
.public-profile-page .pub-avatar {
  width: 80px;
  height: 80px;
  min-width: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Hero inner: breathing room */
.public-profile-page .pub-hero-inner {
  padding: 36px 0 28px;
}

/* Hero main: flexbox with gap */
.public-profile-page .pub-hero-main {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

/* Section spacing & rhythm */
.public-profile-page .pub-section {
  padding: 0;
}

.public-profile-page .pub-section-inner {
  padding: 28px 0 24px;
}

.public-profile-page .pub-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 20px;
  border-bottom: 1px solid #e0dcd4;
}

.public-profile-page .pub-section-title {
  font-family: var(--mono, 'JetBrains Mono', monospace);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  font-weight: 500;
}

/* AI Adaptation — featured section with accent border */
.public-profile-page .pub-section--featured {
  border-left: 3px solid #c9a84c;
  padding-left: 20px;
  margin-left: -20px;
  margin-top: 8px;
}

.public-profile-page .pub-section-title--gold {
  color: #9a7b2d !important;
}

.public-profile-page .pub-ai-badge--gold {
  background: #c9a84c;
  color: #1a1a1a;
  font-family: var(--mono, 'JetBrains Mono', monospace);
  font-size: 0.5625rem;
  letter-spacing: 0.03em;
  padding: 3px 10px;
  border-radius: 3px;
  font-weight: 600;
}

/* AI adaptation grid within public profile */
.public-profile-page .pro-profile-ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.public-profile-page .pro-profile-ai-block {
  background: #faf8f4;
  border: 1px solid #e8e4da;
  border-radius: 6px;
  padding: 16px;
}

/* Project cards — elevated presentation */
.public-profile-page .pub-project-card {
  background: #ffffff;
  border: 1px solid #e0dcd4;
  border-radius: 8px;
  padding: 22px;
  margin-bottom: 14px;
  transition: border-color 0.15s;
}

.public-profile-page .pub-project-card:hover {
  border-color: #ccc8be;
}

.public-profile-page .pub-project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.public-profile-page .pub-project-title {
  font-family: var(--serif, 'Playfair Display', serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.3;
}

.public-profile-page .pub-project-ai-tag {
  font-family: var(--mono, 'JetBrains Mono', monospace);
  font-size: 0.5625rem;
  letter-spacing: 0.03em;
  padding: 3px 8px;
  background: rgba(201, 168, 76, 0.12);
  color: #9a7b2d;
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
}

.public-profile-page .pub-project-desc {
  font-family: var(--sans);
  font-size: 0.875rem;
  color: #555;
  margin-top: 10px;
  line-height: 1.65;
}

.public-profile-page .pub-project-ai-note {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: #9a7b2d;
  margin-top: 10px;
  padding: 10px 12px;
  border-left: 2px solid #c9a84c;
  background: rgba(201, 168, 76, 0.04);
  border-radius: 0 4px 4px 0;
}

.public-profile-page .pub-project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.public-profile-page .pub-project-tag {
  font-family: var(--mono, 'JetBrains Mono', monospace);
  font-size: 0.625rem;
  padding: 3px 8px;
  background: #f6f4f0;
  border: 1px solid #e0dcd4;
  color: #888;
  border-radius: 3px;
}

.public-profile-page .pub-project-links {
  margin-top: 10px;
}

.public-profile-page .pub-project-link {
  font-family: var(--mono, 'JetBrains Mono', monospace);
  font-size: 0.7rem;
  color: #e8401c;
  margin-right: 14px;
  text-decoration: none;
}

.public-profile-page .pub-project-link:hover {
  text-decoration: underline;
}

/* Actions bar spacing */
.public-profile-page .pub-hero-actions-bar {
  padding: 14px 0;
  gap: 12px;
  margin-bottom: 4px;
}

/* Responsive: stack AI grid on mobile */
@media (max-width: 640px) {
  .public-profile-page .pro-profile-ai-grid {
    grid-template-columns: 1fr;
  }
  .public-profile-page .pub-name {
    font-size: 1.625rem;
  }
  .public-profile-page .pub-section--featured {
    margin-left: 0;
    padding-left: 14px;
  }
  .public-profile-page .pub-hero-main {
    flex-direction: column;
    gap: 16px;
  }
}

/* ============================================
   PROFILE PAGE — Social Area Light Theme Overrides
   Applied when profile-page is inside social-area
   ============================================ */

.social-area .profile-page {
  max-width: 100%;
  padding: 48px 0 80px;
}

.social-area .auth-eyebrow {
  color: var(--accent);
}

.social-area .auth-title {
  color: var(--social-text);
}

.social-area .auth-subtitle {
  color: var(--social-text-secondary);
}

.social-area .profile-section {
  background: var(--social-surface);
  border: 1px solid var(--social-border);
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 20px;
}

.social-area .profile-section-title {
  color: var(--social-text-muted);
  border-bottom-color: var(--social-border);
}

.social-area .profile-field-label {
  color: var(--social-text-muted);
}

.social-area .profile-field-input {
  background: var(--social-surface-alt);
  border: 1px solid var(--social-border);
  color: var(--social-text);
}

.social-area .profile-field-input:focus {
  border-color: var(--accent);
}

.social-area .profile-field-input::placeholder {
  color: var(--social-text-muted);
}

.social-area .profile-avatar-section {
  border-bottom-color: var(--social-border);
}

.social-area .profile-avatar-large {
  border-color: var(--social-border);
  background: var(--social-surface-alt);
}

.social-area .profile-upload-btn {
  border-color: var(--social-border);
  color: var(--social-text-secondary);
}

.social-area .profile-upload-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.social-area .profile-upload-note {
  color: var(--social-text-muted);
}

.social-area .subscription-status-dot {
  background: var(--social-text-muted);
}

.social-area .subscription-status-dot--active {
  background: #4caf50;
}

.social-area .pp-toggle-slider {
  background: var(--social-border);
}

.social-area .pp-skills-list .pp-skill-tag {
  background: var(--social-surface-alt);
  border-color: var(--social-border);
  color: var(--social-text-secondary);
}

.social-area .pp-ai-preview-box {
  background: var(--social-surface-alt);
  border: 1px solid var(--social-border);
  border-radius: 4px;
  padding: 16px;
}

/* Light theme text color overrides for inline styles in profile pages */
.social-area .profile-page [style*="color:var(--muted)"] {
  color: var(--social-text-muted) !important;
}

.social-area .profile-page [style*="color:var(--mid)"] {
  color: var(--social-text-secondary) !important;
}

.social-area .profile-page [style*="color:var(--white)"] {
  color: var(--social-text) !important;
}

.social-area .profile-page [style*="color:var(--light)"] {
  color: var(--social-text-secondary) !important;
}

.social-area .profile-page [style*="border-top:1px solid var(--border)"] {
  border-top-color: var(--social-border) !important;
}

.social-area .profile-page [style*="border:1px solid var(--border)"] {
  border-color: var(--social-border) !important;
}

.social-area .profile-page [style*="background:var(--dark)"] {
  background: var(--social-surface-alt) !important;
}
