/* Issues #2109 and #2111 — icon-only navigation. The canonical .scene-tabs shell still owns
   placement, stickiness, hiding, spacing, and responsive behavior. */
.scene-tabs.scene-primary-nav {
  grid-template-columns: repeat(7, minmax(44px, 1fr));
}
.scene-tabs.scene-primary-nav .scene-nav-item {
  display: grid;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  place-items: center;
  color: inherit;
  text-decoration: none;
}

.scene-tabs.scene-primary-nav .scene-back {
  border: 0;
  border-radius: 13px;
  background: transparent;
  box-shadow: none;
}

.scene-tabs.scene-primary-nav .scene-nav-icon {
  display: block;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}
.scene-nav-icon-home { background-image: url('/assets/desi-scene-navigation/home-icon-512.webp?v=20260905b'); }
.scene-nav-icon-for-you { background-image: url('/assets/desi-scene-navigation/for-you-icon-512.webp?v=20260905b'); }
.scene-nav-icon-following { background-image: url('/assets/desi-scene-navigation/following-icon-512.webp?v=20260905b'); }
.scene-nav-icon-latest { background-image: url('/assets/desi-scene-navigation/latest-icon-512.webp?v=20260905b'); }
.scene-nav-icon-refresh { background-image: url('/assets/desi-scene-navigation/refresh-icon-512.webp?v=20260905b'); }
.scene-nav-icon-post { background-image: url('/assets/desi-scene-navigation/post-icon-512.webp?v=20260905b'); }
.scene-nav-icon-search { background-image: url('/assets/desi-scene-navigation/search-icon-512.webp?v=20260905b'); }

/* Suppress both pieces of the canonical CSS Search glyph. */
.scene-tabs.scene-primary-nav #scene-search-button::before,
.scene-tabs.scene-primary-nav #scene-search-button::after {
  content: none !important;
  display: none !important;
}

.scene-tabs.scene-primary-nav .scene-compose-trigger.scene-nav-item {
  margin: 0;
}
.scene-tabs.scene-primary-nav .scene-compose-avatar.scene-nav-icon-post {
  border-radius: 0;
  background-color: transparent;
  color: transparent;
  font-size: 0;
}

.scene-tabs.scene-primary-nav .scene-refresh-control[aria-busy="true"] {
  pointer-events: none;
  opacity: .72;
}
.scene-tabs.scene-primary-nav .scene-refresh-control[aria-busy="true"] .scene-nav-icon {
  animation: scene-refresh-nav-spin .65s linear infinite;
}
@keyframes scene-refresh-nav-spin { to { transform: rotate(360deg); } }

@media (max-width: 720px) {
  .scene-tabs.scene-primary-nav .scene-nav-icon { width: 28px; height: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .scene-tabs.scene-primary-nav .scene-refresh-control[aria-busy="true"] .scene-nav-icon { animation: none; }
}

@media (max-width: 356px) {
  .scene-tabs.scene-primary-nav { gap: 0; }
}


/* Issue #2320: make the intentionally different compose action unmistakable. */
.scene-tabs.scene-primary-nav .scene-post-nav .scene-nav-post-content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.scene-tabs.scene-primary-nav .scene-post-nav .scene-nav-post-circle {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 2px solid #fb5a16;
  border-radius: 50%;
  color: #fb5a16;
  font-size: 25px;
  font-weight: 500;
  line-height: 1;
}
.scene-tabs.scene-primary-nav .scene-post-nav .scene-nav-post-label {
  color: #fb5a16;
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
}
@media (max-width: 390px) {
  .scene-tabs.scene-primary-nav .scene-post-nav .scene-nav-post-content { gap: 2px; }
  .scene-tabs.scene-primary-nav .scene-post-nav .scene-nav-post-circle { width: 26px; height: 26px; font-size: 23px; }
  .scene-tabs.scene-primary-nav .scene-post-nav .scene-nav-post-label { font-size: 9px; }
}

/* Public Desi Scene feed: its mobile appearance stays dark regardless of saved site preferences. */
@media (max-width: 720px) {
  html:has(body.scene-feed-theme:not([data-desi-scene-owner-mode="true"]):not([data-desi-scene-member-mode="true"])) {
    color-scheme: dark;
    background: #100810;
  }
  body.scene-feed-theme:not([data-desi-scene-owner-mode="true"]):not([data-desi-scene-member-mode="true"]) {
    background:
      radial-gradient(ellipse 270px 300px at 0% 0%, rgba(32, 0, 28, 0.38), transparent 100%),
      radial-gradient(ellipse 320px 240px at 100% 0%, rgba(36, 25, 18, 0.42), transparent 100%),
      linear-gradient(180deg, #261218 0%, #140b14 320px, #100810 450px);
  }
  #mobileHomeDesiSceneBoundary,
  #mobileHomeDesiSceneMount { background: #100810; }
  #mobileHomeDesiSceneBoundary.mobile-home-desi-scene-boundary {
    padding-top: 0 !important;
    background-image:
      radial-gradient(ellipse 270px 300px at 0% 0%, rgba(32, 0, 28, 0.38), transparent 100%),
      radial-gradient(ellipse 320px 240px at 100% 0%, rgba(36, 25, 18, 0.42), transparent 100%),
      linear-gradient(180deg, #261218 0%, #140b14 320px, #100810 450px);
  }
  #mobileHomeDesiSceneBoundary #mobileHomeDesiSceneMount { background: transparent; }
  body.scene-feed-theme .scene-shell,
  #mobileHomeDesiSceneBoundary #mobileHomeDesiSceneMount .scene-shell {
    --scene-bg: #100810;
    --scene-bg-soft: #140b14;
    --scene-surface: #1b171c;
    --scene-surface-solid: #1b171c;
    --scene-surface-muted: #2d252d;
    --scene-text: #f8f5f7;
    --scene-muted: #c7b9c3;
    --scene-border: #403039;
    --scene-border-strong: #59404b;
    --scene-selected-bg: #412333;
    --scene-selected-bg-strong: #412333;
    --scene-selected-border: #d83d79;
    --scene-selected-text: #ff94bb;
    --scene-purple: #ff79a8;
    --scene-purple-bright: #ff1b78;
    --scene-orange: #ff9b32;
    --scene-focus: #ff94bb;
    --scene-shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.2);
    background: transparent;
    color: var(--scene-text);
    color-scheme: dark;
  }
  body.scene-feed-theme .scene-shell .scene-header,
  #mobileHomeDesiSceneBoundary #mobileHomeDesiSceneMount .scene-shell .scene-header {
    /* Theme changes must preserve the shell's iPhone status-bar clearance. */
    padding: max(20px, env(safe-area-inset-top, 0px)) 16px 12px;
    background: transparent;
    backdrop-filter: none;
  }
  body.scene-feed-theme .scene-shell .scene-eyebrow,
  #mobileHomeDesiSceneBoundary #mobileHomeDesiSceneMount .scene-shell .scene-eyebrow {
    margin-bottom: 5px;
    color: var(--scene-muted);
    font-size: 16px;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 0;
    text-transform: none;
  }
  body.scene-feed-theme .scene-shell .scene-header h1,
  #mobileHomeDesiSceneBoundary #mobileHomeDesiSceneMount .scene-shell .scene-header h1 { font-size: 30px; line-height: 1.1; }
  body.scene-feed-theme .scene-shell .scene-tagline,
  #mobileHomeDesiSceneBoundary #mobileHomeDesiSceneMount .scene-shell .scene-tagline { margin-top: 6px; font-size: 16px; line-height: 1.45; white-space: normal; }
  body.scene-feed-theme .scene-shell .scene-header-actions,
  #mobileHomeDesiSceneBoundary #mobileHomeDesiSceneMount .scene-shell .scene-header-actions { max-width: none; gap: 8px; }
  body.scene-feed-theme .scene-shell .scene-header-actions .scene-icon-button,
  #mobileHomeDesiSceneBoundary #mobileHomeDesiSceneMount .scene-shell .scene-header-actions .scene-icon-button { width: 44px; min-width: 44px; flex-shrink: 0; box-shadow: none; }
  body.scene-feed-theme .scene-shell .scene-account-button,
  #mobileHomeDesiSceneBoundary #mobileHomeDesiSceneMount .scene-shell .scene-account-button {
    min-width: 88px;
    max-width: 104px;
    min-height: 44px;
    padding-inline: 12px;
    flex-shrink: 0;
    background: linear-gradient(110deg, #ff0f7b, #f35f50 52%, #f89b29);
    color: #fff;
    box-shadow: none;
    font-size: 16px;
    font-weight: 750;
  }
  body.scene-feed-theme .scene-shell .scene-tabs.scene-primary-nav,
  #mobileHomeDesiSceneBoundary #mobileHomeDesiSceneMount .scene-shell .scene-tabs.scene-primary-nav {
    top: max(20px, env(safe-area-inset-top, 0px));
    gap: 0;
    padding: 4px;
    border: 1px solid var(--scene-border);
    background: var(--scene-surface-solid);
    box-shadow: none;
  }
  /* Profile navigation is one circular Back control, not a nested feed bar. */
  body.scene-feed-theme.scene-profile-scope .scene-shell .scene-tabs.scene-primary-nav.is-profile-scoped,
  #mobileHomeDesiSceneBoundary #mobileHomeDesiSceneMount .scene-shell .scene-tabs.scene-primary-nav.is-profile-scoped {
    top: max(12px, env(safe-area-inset-top, 0px));
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  body.scene-feed-theme .scene-shell .scene-tabs.scene-primary-nav .scene-nav-icon,
  #mobileHomeDesiSceneBoundary #mobileHomeDesiSceneMount .scene-shell .scene-tabs.scene-primary-nav .scene-nav-icon { filter: brightness(0) invert(1); opacity: .82; }
  body.scene-feed-theme .scene-shell .scene-tabs button.active,
  #mobileHomeDesiSceneBoundary #mobileHomeDesiSceneMount .scene-shell .scene-tabs button.active { background: #39232f; box-shadow: inset 0 -3px #ff5c91 !important; color: #fff; }
  body.scene-feed-theme .scene-shell .scene-tabs.scene-primary-nav .scene-post-nav .scene-nav-post-content,
  #mobileHomeDesiSceneBoundary #mobileHomeDesiSceneMount .scene-shell .scene-tabs.scene-primary-nav .scene-post-nav .scene-nav-post-content { flex-direction: column; gap: 2px; }
  body.scene-feed-theme .scene-shell .scene-tabs.scene-primary-nav .scene-post-nav .scene-nav-post-circle,
  body.scene-feed-theme .scene-shell .scene-tabs.scene-primary-nav .scene-post-nav .scene-nav-post-label,
  #mobileHomeDesiSceneBoundary #mobileHomeDesiSceneMount .scene-shell .scene-tabs.scene-primary-nav .scene-post-nav .scene-nav-post-circle,
  #mobileHomeDesiSceneBoundary #mobileHomeDesiSceneMount .scene-shell .scene-tabs.scene-primary-nav .scene-post-nav .scene-nav-post-label { color: #ff79a8; border-color: #ff79a8; }
  body.scene-feed-theme .scene-shell .scene-tabs.scene-primary-nav .scene-nav-post-label,
  #mobileHomeDesiSceneBoundary #mobileHomeDesiSceneMount .scene-shell .scene-tabs.scene-primary-nav .scene-nav-post-label { font-size: 12px; }
  body.scene-feed-theme .scene-shell .scene-feed,
  #mobileHomeDesiSceneBoundary #mobileHomeDesiSceneMount .scene-shell .scene-feed { gap: 16px; margin-top: 16px; }
  body.scene-feed-theme .scene-shell .scene-post,
  #mobileHomeDesiSceneBoundary #mobileHomeDesiSceneMount .scene-shell .scene-post {
    --scene-post-inline-padding: 9px;
    padding: 10px var(--scene-post-inline-padding);
    border: 1px solid var(--scene-border);
    border-radius: 22px;
    background: var(--scene-surface-solid);
    box-shadow: none;
  }
  body.scene-feed-theme .scene-shell .scene-post-header,
  #mobileHomeDesiSceneBoundary #mobileHomeDesiSceneMount .scene-shell .scene-post-header { grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 10px; align-items: start; }
  body.scene-feed-theme .scene-shell .scene-avatar,
  #mobileHomeDesiSceneBoundary #mobileHomeDesiSceneMount .scene-shell .scene-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(110deg, #ff0f7b, #f35f50 52%, #f89b29);
    color: #fff;
    font-size: 18px;
  }
  body.scene-feed-theme .scene-shell .scene-post-identity strong,
  body.scene-feed-theme .scene-shell .scene-post-primary,
  #mobileHomeDesiSceneBoundary #mobileHomeDesiSceneMount .scene-shell .scene-post-identity strong,
  #mobileHomeDesiSceneBoundary #mobileHomeDesiSceneMount .scene-shell .scene-post-primary { color: var(--scene-text); }
  body.scene-feed-theme .scene-shell .scene-post-identity strong,
  #mobileHomeDesiSceneBoundary #mobileHomeDesiSceneMount .scene-shell .scene-post-identity strong { font-size: 18px; font-weight: 750; white-space: normal; line-height: 1.3; }
  body.scene-feed-theme .scene-shell .scene-post-meta,
  #mobileHomeDesiSceneBoundary #mobileHomeDesiSceneMount .scene-shell .scene-post-meta { gap: 4px; flex-wrap: wrap; overflow: visible; color: var(--scene-muted); font-size: 16px; line-height: 1.45; white-space: normal; }
  body.scene-feed-theme .scene-shell .scene-post-context,
  #mobileHomeDesiSceneBoundary #mobileHomeDesiSceneMount .scene-shell .scene-post-context { display: contents; }
  body.scene-feed-theme .scene-shell .scene-post-context .scene-post-menu,
  #mobileHomeDesiSceneBoundary #mobileHomeDesiSceneMount .scene-shell .scene-post-context .scene-post-menu { grid-column: 3; grid-row: 1; }
  body.scene-feed-theme .scene-shell .scene-post-context .scene-post-market,
  #mobileHomeDesiSceneBoundary #mobileHomeDesiSceneMount .scene-shell .scene-post-context .scene-post-market { grid-column: 2; grid-row: 2; justify-self: start; margin-top: -5px; }
  body.scene-feed-theme .scene-shell .scene-post-context .scene-sponsored,
  #mobileHomeDesiSceneBoundary #mobileHomeDesiSceneMount .scene-shell .scene-post-context .scene-sponsored { grid-column: 2; grid-row: 3; justify-self: start; }
  body.scene-feed-theme .scene-shell .scene-post-market,
  #mobileHomeDesiSceneBoundary #mobileHomeDesiSceneMount .scene-shell .scene-post-market { padding: 4px 9px; border: 0; background: var(--scene-surface-muted); color: var(--scene-muted); font-size: 14px; font-weight: 700; }
  body.scene-feed-theme .scene-shell .scene-post-menu summary,
  #mobileHomeDesiSceneBoundary #mobileHomeDesiSceneMount .scene-shell .scene-post-menu summary { width: 44px; height: 44px; color: var(--scene-muted); }
  body.scene-feed-theme .scene-shell .scene-post-images,
  body.scene-feed-theme .scene-shell .scene-post-carousel,
  #mobileHomeDesiSceneBoundary #mobileHomeDesiSceneMount .scene-shell .scene-post-images,
  #mobileHomeDesiSceneBoundary #mobileHomeDesiSceneMount .scene-shell .scene-post-carousel { width: calc(100% + 18px); margin: 12px -9px 0; border-radius: 0; }
  body.scene-feed-theme .scene-shell .scene-post-body,
  #mobileHomeDesiSceneBoundary #mobileHomeDesiSceneMount .scene-shell .scene-post-body { max-width: none; margin-top: 16px; color: var(--scene-text); font-size: 18px; line-height: 1.55; }
  body.scene-feed-theme .scene-shell .scene-post.is-text-only .scene-post-body,
  #mobileHomeDesiSceneBoundary #mobileHomeDesiSceneMount .scene-shell .scene-post.is-text-only .scene-post-body { margin: 22px 0; font-size: 26px; font-weight: 750; line-height: 1.4; }
  body.scene-feed-theme .scene-shell .scene-post-actions,
  #mobileHomeDesiSceneBoundary #mobileHomeDesiSceneMount .scene-shell .scene-post-actions { margin-top: 16px; padding-top: 10px; border-color: var(--scene-border); background: var(--scene-surface-solid); }
  body.scene-feed-theme .scene-shell .scene-post-action,
  #mobileHomeDesiSceneBoundary #mobileHomeDesiSceneMount .scene-shell .scene-post-action { min-height: 44px; color: var(--scene-muted); font-size: 16px; font-weight: 700; }
  body.scene-feed-theme .scene-shell .scene-post-action[aria-pressed="true"],
  #mobileHomeDesiSceneBoundary #mobileHomeDesiSceneMount .scene-shell .scene-post-action[aria-pressed="true"] { background: #412333; color: #ff94bb; }
  body.scene-feed-theme .scene-shell .scene-post-action .scene-action-icon,
  #mobileHomeDesiSceneBoundary #mobileHomeDesiSceneMount .scene-shell .scene-post-action .scene-action-icon { width: 24px; height: 24px; flex: 0 0 24px; }
  body.scene-feed-theme .scene-shell .scene-post.scene-photo-controls-unified > .scene-post-actions.scene-photo-actions-unified,
  #mobileHomeDesiSceneBoundary #mobileHomeDesiSceneMount .scene-shell .scene-post.scene-photo-controls-unified > .scene-post-actions.scene-photo-actions-unified { margin-top: 16px; padding-top: 10px; background: var(--scene-surface-solid); }
  body.scene-feed-theme .scene-shell .scene-reel.scene-reel-controls-unified .scene-reel-controls,
  #mobileHomeDesiSceneBoundary #mobileHomeDesiSceneMount .scene-shell .scene-reel.scene-reel-controls-unified .scene-reel-controls { background: var(--scene-surface-solid); }
  body.scene-feed-theme .scene-shell .scene-post.scene-photo-controls-unified > .scene-post-actions.scene-photo-actions-unified .scene-post-action,
  #mobileHomeDesiSceneBoundary #mobileHomeDesiSceneMount .scene-shell .scene-post.scene-photo-controls-unified > .scene-post-actions.scene-photo-actions-unified .scene-post-action { font-size: 16px; font-weight: 700; }
  body.scene-feed-theme .scene-shell .scene-post.scene-photo-controls-unified > .scene-post-actions.scene-photo-actions-unified .scene-action-icon,
  #mobileHomeDesiSceneBoundary #mobileHomeDesiSceneMount .scene-shell .scene-post.scene-photo-controls-unified > .scene-post-actions.scene-photo-actions-unified .scene-action-icon { width: 24px; height: 24px; flex: 0 0 24px; }
  body.scene-feed-theme .scene-shell .scene-post.scene-photo-controls-unified > .scene-post-actions.scene-photo-actions-unified .scene-post-action[aria-pressed="true"],
  #mobileHomeDesiSceneBoundary #mobileHomeDesiSceneMount .scene-shell .scene-post.scene-photo-controls-unified > .scene-post-actions.scene-photo-actions-unified .scene-post-action[aria-pressed="true"],
  body.scene-feed-theme .scene-shell .scene-reel.scene-reel-controls-unified .scene-reel-controls .scene-post-action[aria-pressed="true"],
  #mobileHomeDesiSceneBoundary #mobileHomeDesiSceneMount .scene-shell .scene-reel.scene-reel-controls-unified .scene-reel-controls .scene-post-action[aria-pressed="true"] { background: #412333; color: #ff94bb !important; }
  body.scene-feed-theme .scene-shell .scene-post-menu-popover,
  #mobileHomeDesiSceneBoundary #mobileHomeDesiSceneMount .scene-shell .scene-post-menu-popover { background: var(--scene-surface-solid); color: var(--scene-text); font-size: 16px; }
  body.scene-feed-theme .scene-shell .scene-sponsored,
  #mobileHomeDesiSceneBoundary #mobileHomeDesiSceneMount .scene-shell .scene-sponsored { border-color: #8b563a; background: #40271f; color: #ffccaa; }
  body.scene-feed-theme .scene-shell .scene-linked-entity,
  #mobileHomeDesiSceneBoundary #mobileHomeDesiSceneMount .scene-shell .scene-linked-entity { background: #412333; color: #ff94bb; }
  body.scene-feed-theme .scene-shell .scene-verified,
  #mobileHomeDesiSceneBoundary #mobileHomeDesiSceneMount .scene-shell .scene-verified { flex: 0 0 17px; }
  /* The mobile Home hotfix uses important action ink; keep its embedded copy in sync with L2. */
  #mobileHomeDesiSceneBoundary #mobileHomeDesiSceneMount .scene-post-action { min-height: 44px; color: #c7b9c3 !important; font-size: 16px; font-weight: 700; }
  #mobileHomeDesiSceneBoundary #mobileHomeDesiSceneMount .scene-post-action[aria-pressed="true"] { background: #412333; color: #ff94bb !important; }
}

@media (max-width: 359px) {
  body.scene-feed-theme .scene-shell .scene-header { padding-inline: 12px; grid-template-columns: 1fr; }
  body.scene-feed-theme .scene-shell .scene-title-block { grid-column: 1; grid-row: 1; }
  body.scene-feed-theme .scene-shell .scene-header-actions { grid-column: 1; grid-row: 2; margin-top: 6px; }
  body.scene-feed-theme .scene-shell .scene-header h1 { font-size: 28px; }
  body.scene-feed-theme .scene-shell .scene-tabs.scene-primary-nav { padding: 1px; }
}

/* Desi Scene member palette only. Keep all geometry in the existing stylesheets. */
body[data-desi-scene-theme="dark"] {
  --scene-bg: #100810;
  --scene-bg-soft: #140b14;
  --scene-surface: #1b171c;
  --scene-surface-solid: #1b171c;
  --scene-surface-muted: #2d252d;
  --scene-text: #f8f5f7;
  --scene-muted: #c7b9c3;
  --scene-border: #403039;
  --scene-border-strong: #59404b;
  --scene-selected-bg: #412333;
  --scene-selected-bg-strong: #412333;
  --scene-selected-border: #d83d79;
  --scene-selected-text: #ff94bb;
  --scene-purple: #ff79a8;
  --scene-purple-bright: #ff1b78;
  --scene-pink: #db2777;
  --scene-orange: #ff9b32;
  --scene-focus: #ff94bb;
  --scene-primary-gradient: linear-gradient(110deg, #ff0f7b, #f35f50 52%, #f89b29);
}
html:has(body[data-desi-scene-member-mode="true"]),
html:has(body[data-desi-scene-owner-mode="true"]) { background: #100810; }
body[data-desi-scene-member-mode="true"],
body[data-desi-scene-owner-mode="true"] {
  color: var(--scene-text);
  background:
    radial-gradient(ellipse 270px 300px at 0% 0%, rgba(32, 0, 28, .38), transparent 100%),
    radial-gradient(ellipse 320px 240px at 100% 0%, rgba(36, 25, 18, .42), transparent 100%),
    linear-gradient(180deg, #261218 0%, #140b14 320px, #100810 450px);
}
body[data-desi-scene-theme="dark"] :is(.scene-member-shell, .scene-owner-shell) {
  color: var(--scene-text);
  background: transparent;
}
body[data-desi-scene-theme="dark"] :is(
  .scene-profile-settings-cta, .scene-account-activity a, .scene-profile-summary,
  .scene-profile-photo-editor, .scene-rename-card, .scene-member-post-card,
  .scene-owner-post-card, .scene-owner-tile, .scene-owner-insights, .scene-owner-insights-grid
) {
  color: var(--scene-text);
  background: var(--scene-surface-solid);
  border-color: var(--scene-border-strong);
}
body[data-desi-scene-theme="dark"] :is(
  .scene-owner-back, .scene-owner-settings, .scene-owner-identity h2,
  .scene-settings-section-heading h2, .scene-profile-settings-panel .scene-field > span,
  .scene-member-post-copy strong, .scene-member-post-metrics strong,
  .scene-member-post-visibility strong, .scene-owner-insight
) { color: var(--scene-text); }
body[data-desi-scene-theme="dark"] :is(
  .scene-owner-identity p, #scene-member-profile-count, .scene-owner-status,
  .scene-owner-form-status, .scene-profile-settings-cta small, .scene-account-activity small,
  .scene-member-posts-help, .scene-settings-section-heading p,
  .scene-profile-settings-panel .scene-field small, .scene-member-post-copy small,
  .scene-member-post-metrics small, .scene-member-post-visibility,
  .scene-owner-insights > p, .scene-owner-insight small
) { color: var(--scene-muted); }
body[data-desi-scene-theme="dark"] :is(.scene-owner-insights > p, .scene-owner-insight, .scene-owner-tile-metrics) {
  border-color: var(--scene-border);
}
body[data-desi-scene-theme="dark"] :is(
  .scene-profile-settings-chevron, .scene-settings-section-heading h2 span,
  .scene-account-activity strong span
) { color: var(--scene-selected-text); }
body[data-desi-scene-theme="dark"] #scene-member-app .scene-profile-settings-icon,
body[data-desi-scene-theme="dark"] .scene-owner-avatar,
body[data-desi-scene-theme="dark"] .scene-photo-icon {
  background: var(--scene-primary-gradient);
  color: #fff;
  border-color: var(--scene-selected-border);
}
body[data-desi-scene-theme="dark"] #scene-member-profile-avatar { border-color: var(--scene-selected-text); }
body[data-desi-scene-theme="dark"] :is(
  .scene-member-post-filters button, .scene-owner-filters button,
  .scene-owner-post-actions button, .scene-member-post-actions > *,
  .scene-owner-media-actions button, .scene-owner-preview-controls button,
  .scene-profile-photo-actions button:not(.danger), .scene-member-post-visibility button
) {
  background: var(--scene-surface-muted);
  color: var(--scene-text);
  border-color: var(--scene-border-strong);
}
body[data-desi-scene-theme="dark"] :is(.scene-member-post-filters button.active, .scene-owner-filters button.active),
body[data-desi-scene-theme="dark"] .scene-member-settings-content .scene-subtabs button.active,
body[data-desi-scene-theme="dark"] .scene-compose-kind button[aria-selected="true"] {
  background: var(--scene-selected-bg);
  color: var(--scene-selected-text);
  border-color: var(--scene-selected-border);
}
body[data-desi-scene-theme="dark"] .scene-profile-settings-panel .scene-field :is(input, textarea, select) {
  background: var(--scene-surface-solid);
  color: var(--scene-text);
  border-color: var(--scene-border-strong);
}
body[data-desi-scene-theme="dark"] :is(input, textarea)::placeholder { color: #a48d9c; }
body[data-desi-scene-theme="dark"] .scene-owner-create,
body[data-desi-scene-theme="dark"] .scene-save-profile-button,
body[data-desi-scene-theme="dark"] .scene-rename-button,
body[data-desi-scene-theme="dark"] .scene-owner-publish,
body[data-desi-scene-theme="dark"] .scene-compose-actions #scene-publish-post {
  background: var(--scene-primary-gradient) !important;
  color: #fff !important;
}
body[data-desi-scene-theme="dark"] .scene-member-shell .scene-member-post-actions > .scene-member-post-view {
  background: var(--scene-selected-bg);
  color: var(--scene-selected-text);
  border-color: var(--scene-selected-border);
}
body[data-desi-scene-theme="dark"] .scene-owner-badge {
  background: var(--scene-selected-bg);
  color: var(--scene-selected-text);
}
body[data-desi-scene-theme="dark"] .scene-member-post-preview.is-portrait {
  background: linear-gradient(145deg, #100810, #1b171c);
}
body[data-desi-scene-theme="dark"] .scene-member-post-metrics { background: #241b23; }
body[data-desi-scene-theme="dark"] .scene-profile-photo-actions .danger {
  background: #48222c !important;
  color: #ffacb9 !important;
  border-color: #935268 !important;
}
body[data-desi-scene-theme="dark"] #scene-compose-dialog .scene-compose-frame {
  background: radial-gradient(circle at 88% 0, rgba(255, 27, 120, .09), transparent 19rem), var(--scene-surface-solid);
}
body[data-desi-scene-theme="dark"] .scene-photo-icon { box-shadow: 0 10px 24px rgba(219, 39, 119, .24); }
body[data-desi-scene-theme="dark"] .scene-compose-actions #scene-publish-post { box-shadow: 0 12px 28px rgba(219, 39, 119, .22); }
body[data-desi-scene-theme="dark"] #scene-preview-post { color: var(--scene-selected-text); }
body[data-desi-scene-theme="dark"] .scene-notification-toggle input { accent-color: var(--scene-selected-text); }
body[data-desi-scene-theme="dark"] .scene-dialog::backdrop { background: rgba(16, 8, 16, .72); }

/* Notifications share the member palette; retain the existing sheet and card geometry. */
body[data-desi-scene-theme="dark"] #scene-notifications-dialog .scene-notifications-sheet {
  background: #1b171c;
  border-color: #59404b;
}
body[data-desi-scene-theme="dark"] #scene-notifications-dialog .scene-dialog-header {
  background: #1b171c;
  border-color: #403039;
}
body[data-desi-scene-theme="dark"] #scene-notifications-dialog .scene-notification-card {
  background: #241b23;
  border-color: #59404b;
}
body[data-desi-scene-theme="dark"] #scene-notifications-dialog .scene-notification-card.unread {
  background: #382231;
  border-color: #9e4a72;
}
body[data-desi-scene-theme="dark"] #scene-notifications-dialog .scene-notification-actor {
  background: var(--scene-primary-gradient);
  border-color: #d83d79;
}
body[data-desi-scene-theme="dark"] #scene-notifications-dialog .scene-notification-target {
  background: #302631;
  border-color: #59404b;
}
body[data-desi-scene-theme="dark"] #scene-notifications-dialog .scene-notification-target-fallback { background: #140b14; }
body[data-desi-scene-theme="dark"] #scene-notifications-dialog .scene-notification-footer button {
  background: #1b171c;
  color: #f8f5f7;
  border-color: #59404b;
}
body[data-desi-scene-theme="dark"] #scene-notifications-dialog #scene-read-all {
  background: #412333;
  color: #ff94bb;
  border-color: #9e4a72;
}

/* Public profiles reuse their existing header, hero, and grid geometry. */
body[data-desi-scene-theme="dark"]:has(.scene-detail-shell) {
  background: linear-gradient(180deg, #261218 0%, #140b14 320px, #100810 450px);
}
body[data-desi-scene-theme="dark"] .scene-detail-shell { background: transparent; }
body[data-desi-scene-theme="dark"] .scene-profile-cover {
  background: radial-gradient(circle at 84% 20%, rgba(255,255,255,.34), transparent 10rem), var(--scene-primary-gradient);
}
body[data-desi-scene-theme="dark"] .scene-profile-hero.is-owned-channel { border-color: var(--scene-selected-border); }
body[data-desi-scene-theme="dark"] .scene-detail-avatar { background: var(--scene-primary-gradient); }
body[data-desi-scene-theme="dark"] .scene-profile-action.primary {
  color: #fff;
  background: var(--scene-primary-gradient);
}
body[data-desi-scene-theme="dark"] .scene-profile-action.primary[aria-pressed="true"] {
  color: var(--scene-selected-text);
  background: var(--scene-selected-bg);
  border-color: var(--scene-selected-border);
}
body[data-desi-scene-theme="dark"] .scene-profile-action.secondary { background: var(--scene-surface-muted); }
body[data-desi-scene-theme="dark"] .scene-profile-post-tile.is-text { background: var(--scene-primary-gradient); }
body[data-desi-scene-theme="dark"] .scene-profile-post-media-count,
body[data-desi-scene-theme="dark"] .scene-profile-post-reel { background: rgba(16, 8, 16, .76); }
