/* Fva Connect visual system. Dark shell, emerald actions, gold After Hours.
   Loaded after the page so these tokens win over earlier one-off rules. */

:root {
  --milk: #FFFFFF;
  --fva-bg: #040d0c;
  --fva-bg-elev: #0b201d;
  --fva-card: #102824;
  --fva-card-2: #14312c;
  --fva-border: rgba(167, 243, 208, 0.16);
  --fva-text: #f4f7f6;
  --fva-text-soft: #d5e0db;
  --fva-text-muted: #c5d4ce;
  --fva-accent: #10b981;
  --fva-accent-strong: #047857;
  --fva-accent-text: #6ee7b7;
  --fva-amber: #f59e0b;
  --fva-gold: #c9a06b;
  --fva-deep: #003a34;
  --fva-danger: #fca5a5;
  --fva-radius: 16px;
  --fva-radius-sm: 10px;
  --fva-radius-pill: 999px;
  --fva-space: 16px;
  --fva-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  --fva-font: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --fva-text-xs: 0.8125rem;
  --fva-text-sm: 0.9375rem;
  --fva-text-md: 1.0625rem;
  --fva-text-lg: 1.375rem;
  --fva-text-xl: 1.75rem;
  --fva-nav-h: 64px;
}

html { font-size: 16px; }
body {
  font-family: var(--fva-font);
  line-height: 1.5;
  color: var(--fva-text);
  background: var(--fva-bg);
}

/* Type scale inside the signed-in shell. Captions stay above AA on the near-black ground. */
#appView { font-size: var(--fva-text-sm); color: var(--fva-text); }
#appView h2 { font-size: var(--fva-text-lg); line-height: 1.25; font-weight: 700; color: var(--fva-text); }
#appView h3, #appView h4 { color: var(--fva-text); font-weight: 700; }
html[data-theme="dark"] #appView .text-gray-300,
html.dark #appView .text-gray-300 { color: var(--fva-text-soft) !important; }
html[data-theme="dark"] #appView .text-gray-400,
html[data-theme="dark"] #appView .text-gray-500,
html[data-theme="dark"] #appView .text-gray-600,
html.dark #appView .text-gray-400,
html.dark #appView .text-gray-500,
html.dark #appView .text-gray-600 { color: var(--fva-text-muted) !important; }
html[data-theme="dark"] #keptTabs h2,
html[data-theme="dark"] #keptTabs h3,
html[data-theme="dark"] #keptTabs h4,
html[data-theme="dark"] [style*="003A34"],
html.dark #keptTabs h2,
html.dark [style*="003A34"] { color: var(--fva-text) !important; }

/* Header: deep green bar, gold rule. Exact token strings also live in index.html. */
.app-header {
  background: #003A34;
  border-bottom: 4px solid #C9A06B;
}
.app-brand { font-size: 1.05rem !important; letter-spacing: -0.02em; }
.app-logo { display: block; }
.app-menu-brand { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; }
.app-menu-mark { width: 40px; height: 40px; flex: 0 0 auto; display: block; }
.app-menu-word { color: #F7F3EA; font-weight: 700; letter-spacing: 0.28em; font-size: 13px; }

/* Cards that were painted white to fight the dark shell. Match the shell instead. */
html[data-theme="dark"] #fv-box,
html.dark #fv-box {
  background: var(--fva-card) !important;
  color: var(--fva-text) !important;
  border: 1px solid var(--fva-gold) !important;
}
html[data-theme="dark"] #fv-box .fv-text,
html[data-theme="dark"] #fv-status,
html[data-theme="dark"] #fv-box .fv-brand,
html.dark #fv-box .fv-text,
html.dark #fv-status,
html.dark #fv-box .fv-brand { color: var(--fva-text) !important; }
html[data-theme="dark"] #fv-box .fv-check,
html.dark #fv-box .fv-check {
  background: var(--fva-bg) !important;
  border-color: var(--fva-gold) !important;
  color: var(--fva-gold) !important;
}

html[data-theme="dark"] .bg-white,
html[data-theme="dark"] #profileModal > div,
html[data-theme="dark"] #wizardModal > div,
html[data-theme="dark"] #otherProfileModal > div,
html[data-theme="dark"] #trialPopupModal > div,
html[data-theme="dark"] #tab-profile .fva-card,
html[data-theme="dark"] #tab-pulse .fva-card,
html[data-theme="dark"] #tab-squads .fva-card,
html[data-theme="dark"] #tab-groups .fva-card,
html[data-theme="dark"] #tab-organisations .fva-card,
html[data-theme="dark"] #tab-creator .fva-card,
html[data-theme="dark"] #tab-admin .bg-white,
html.dark .bg-white,
html.dark #profileModal > div,
html.dark #wizardModal > div,
html.dark #otherProfileModal > div,
html.dark #trialPopupModal > div {
  background: var(--fva-card) !important;
  color: var(--fva-text) !important;
  border-color: var(--fva-border) !important;
}
html[data-theme="dark"] #profileModal,
html[data-theme="dark"] #wizardModal,
html[data-theme="dark"] #otherProfileModal,
html[data-theme="dark"] #trialPopupModal,
html[data-theme="dark"] #tab-profile .fva-card,
html[data-theme="dark"] #tab-pulse .fva-card,
html[data-theme="dark"] #tab-squads .fva-card,
html[data-theme="dark"] #tab-organisations .fva-card,
html[data-theme="dark"] #tab-creator .fva-card,
html[data-theme="dark"] #tab-groups .fva-card,
html[data-theme="dark"] #squadList .bg-white,
html[data-theme="dark"] #homeSquads .bg-white,
html[data-theme="dark"] #orgList .bg-white,
html[data-theme="dark"] #orgView .bg-white,
html[data-theme="dark"] #eventList .bg-white,
html[data-theme="dark"] #groupList .bg-white,
html.dark #profileModal,
html.dark #wizardModal,
html.dark #otherProfileModal,
html.dark #tab-profile .fva-card,
html.dark #squadList .bg-white,
html.dark #orgList .bg-white,
html.dark #orgView .bg-white,
html.dark #eventList .bg-white,
html.dark #groupList .bg-white,
html.dark #homeSquads .bg-white {
  color: var(--fva-text) !important;
}
html[data-theme="dark"] #profileModal p,
html[data-theme="dark"] #profileModal label,
html[data-theme="dark"] #profileModal h3,
html[data-theme="dark"] #profileModal h4,
html[data-theme="dark"] #wizardModal p,
html[data-theme="dark"] #wizardModal label,
html[data-theme="dark"] #wizardModal h3,
html[data-theme="dark"] #wizardModal h4,
html[data-theme="dark"] #otherProfileModal p,
html[data-theme="dark"] #otherProfileModal h3,
html[data-theme="dark"] #tab-profile .fva-card p,
html[data-theme="dark"] #tab-profile .fva-card label,
html[data-theme="dark"] #tab-profile .fva-card h3,
html[data-theme="dark"] #tab-squads .fva-card p,
html[data-theme="dark"] #tab-squads .fva-card h3,
html[data-theme="dark"] #tab-organisations .fva-card p,
html[data-theme="dark"] #tab-organisations .fva-card h3,
html[data-theme="dark"] #tab-creator .fva-card p,
html[data-theme="dark"] #tab-creator .fva-card h3,
html[data-theme="dark"] #tab-groups .fva-card p,
html[data-theme="dark"] #tab-groups .fva-card h3,
html[data-theme="dark"] #tab-pulse .fva-card p,
html[data-theme="dark"] #tab-pulse .fva-card h3,
html.dark #profileModal p,
html.dark #profileModal label,
html.dark #profileModal h3,
html.dark #profileModal h4,
html.dark #wizardModal p,
html.dark #wizardModal label,
html.dark #wizardModal h3,
html.dark #wizardModal h4 {
  color: var(--fva-text) !important;
}
/* Wizard notes keep a light grey box in dark mode too, so their text
   stays dark. Higher specificity than the dark-theme <p> rule above. */
html[data-theme="dark"] #wizardModal .wizard-note,
html.dark #wizardModal .wizard-note { color: #374151 !important; }
html[data-theme="dark"] #profileModal input,
html[data-theme="dark"] #profileModal select,
html[data-theme="dark"] #profileModal textarea,
html[data-theme="dark"] #wizardModal input,
html[data-theme="dark"] #wizardModal select,
html[data-theme="dark"] #wizardModal textarea,
html[data-theme="dark"] #tab-profile .fva-card input,
html[data-theme="dark"] #tab-profile .fva-card textarea,
html[data-theme="dark"] #tab-squads .fva-card input,
html[data-theme="dark"] #tab-organisations .fva-card input,
html[data-theme="dark"] #tab-creator .fva-card input,
html[data-theme="dark"] #tab-groups .fva-card input,
html[data-theme="dark"] #tab-pulse .fva-card input,
html[data-theme="dark"] #orgView input,
html[data-theme="dark"] #orgView select,
html[data-theme="dark"] #orgView textarea,
html.dark #profileModal input,
html.dark #profileModal select,
html.dark #profileModal textarea,
html.dark #wizardModal input,
html.dark #wizardModal select,
html.dark #wizardModal textarea {
  color: var(--fva-text) !important;
  background: var(--fva-bg) !important;
  border-color: var(--fva-border) !important;
}
html[data-theme="dark"] .fva-outline,
html.dark .fva-outline {
  color: var(--fva-text) !important;
  border-color: var(--fva-border) !important;
  background: transparent !important;
}
html[data-theme="dark"] #profileModal > div,
html[data-theme="dark"] #wizardModal > div,
html[data-theme="dark"] #otherProfileModal > div,
html[data-theme="dark"] #trialPopupModal > div {
  max-height: min(88dvh, 820px);
  overflow: auto;
}

/* Press, hover, focus. Motion only when the person has not asked for less. */
button, a, .fva-pill, .glass-card, .feed-tab, .job-filter {
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 120ms ease, opacity 160ms ease;
}
button:hover, .fva-pill:hover, a:hover { filter: brightness(1.06); }
button:active, .fva-pill:active { transform: translateY(1px); }
body :focus-visible { outline: 3px solid var(--fva-gold); outline-offset: 2px; }

.fva-skel { display: grid; gap: 8px; padding: 4px 0; }
.fva-skel span {
  display: block;
  height: 12px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.08), rgba(16, 185, 129, 0.22), rgba(16, 185, 129, 0.08));
  background-size: 200% 100%;
  animation: fva-shimmer 1.2s ease-in-out infinite;
}
.fva-skel span:nth-child(2) { width: 92%; }
.fva-skel span:nth-child(3) { width: 66%; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@keyframes fva-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* Cookie choice: a short bar above the phone nav, never a full-width wall. */
#cookieConsentBanner.fva-cookie {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(var(--fva-nav-h) + 10px);
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto;
  padding: 10px 12px;
  border-radius: var(--fva-radius);
  background: var(--fva-card);
  color: var(--fva-text);
  border: 1px solid var(--fva-border);
  box-shadow: var(--fva-shadow);
}
#cookieConsentBanner.fva-cookie .fva-cookie-copy {
  flex: 1 1 auto;
  margin: 0;
  font-size: var(--fva-text-xs);
  line-height: 1.4;
  color: var(--fva-text-soft);
}
#cookieConsentBanner.fva-cookie .fva-cookie-actions { display: flex; gap: 8px; flex: 0 0 auto; }
#cookieConsentBanner.fva-cookie button { min-height: 44px; padding: 8px 14px; border-radius: var(--fva-radius-pill); font-weight: 700; font-size: var(--fva-text-xs); }
#cookieConsentBanner.fva-cookie .fva-cookie-accept { background: var(--fva-accent-strong); color: #fff; border: 0; }
#cookieConsentBanner.fva-cookie .fva-cookie-decline { background: transparent; color: var(--fva-text); border: 1px solid var(--fva-border); }

/* Desktop: wider column and a top nav in place of the fixed bottom bar. */
@media (min-width: 1024px) {
  #appView .app-column { max-width: 1120px !important; padding-bottom: 32px !important; }
  #appView > nav.app-nav,
  nav.app-nav {
    position: sticky;
    top: 76px;
    bottom: auto;
    left: auto;
    right: auto;
    z-index: 35;
    border-top: 0;
    border-bottom: 1px solid var(--fva-border);
    background: rgba(0, 58, 52, 0.96);
    padding: 8px 16px !important;
  }
  nav.app-nav .nav-row {
    max-width: 1120px;
    justify-content: flex-start;
    gap: 6px;
  }
  nav.app-nav .nav-row > button {
    flex-direction: row;
    gap: 8px;
    padding: 8px 16px;
    font-size: 0.95rem;
    min-height: 44px;
  }
  #cookieConsentBanner.fva-cookie { bottom: 16px; }
  #sectionFeed, #sectionProfile { display: block; }
  .page-with-rail:not(.hidden) { display: grid !important; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
  .page-with-rail > .page-rail { grid-column: 2; grid-row: 1 / span 24; position: sticky; top: 148px; }
  .page-with-rail > :not(.page-rail) { grid-column: 1; }
}

/* Profile, wide cover, overlapping portrait, section cards. */
.profile-layout { display: grid; gap: 16px; }
@media (min-width: 1024px) {
  .profile-layout { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
  .profile-rail { position: sticky; top: 148px; }
}
.profile-hero { padding: 0 !important; overflow: hidden; border-radius: var(--fva-radius); }
.profile-hero-body { padding: 0 16px 16px; }
.profile-id-row { display: flex; gap: 14px; align-items: flex-end; margin-top: -48px; }
.profile-avatar-wrap { position: relative; flex: 0 0 auto; }
.profile-avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  border: 4px solid var(--fva-bg);
  background: var(--fva-bg-elev);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--fva-accent-text);
  box-shadow: var(--fva-shadow);
}
.profile-avatar-cam {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--fva-accent-strong);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.profile-name { margin: 8px 0 0; font-size: var(--fva-text-xl); line-height: 1.15; font-weight: 800; }
.profile-headline { margin: 4px 0 0; font-size: var(--fva-text-md); color: var(--fva-text-soft); }
.profile-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 6px 0 0; color: var(--fva-text-muted); font-size: var(--fva-text-sm); }
.profile-conn {
  background: none;
  border: 0;
  padding: 0;
  min-height: 44px;
  color: var(--fva-accent-text);
  font-weight: 700;
  cursor: pointer;
}
.profile-conn:hover { text-decoration: underline; }
.profile-actions, .profile-photo-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
.fva-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: var(--fva-radius-pill);
  border: 1px solid var(--fva-border);
  background: transparent;
  color: var(--fva-text);
  font-weight: 700;
  font-size: var(--fva-text-sm);
}
.fva-pill-solid { background: var(--fva-accent-strong); border-color: var(--fva-accent-strong); color: #fff; }
.fva-menu { position: relative; }
.fva-menu-pop {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  min-width: 200px;
  padding: 6px;
  border-radius: var(--fva-radius-sm);
  background: var(--fva-card-2);
  border: 1px solid var(--fva-border);
  box-shadow: var(--fva-shadow);
  display: grid;
}
.fva-menu-pop button {
  text-align: left;
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  color: var(--fva-text);
  border-radius: 8px;
  font-weight: 600;
}
.fva-menu-pop button:hover { background: rgba(16, 185, 129, 0.15); }
.li-section {
  padding: 16px !important;
  border-radius: var(--fva-radius);
  display: grid;
  gap: 10px;
}
.li-section-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.li-section-head h3 { margin: 0; font-size: 1.05rem; }
.fva-pencil {
  width: 44px;
  height: 44px;
  min-height: 44px;
  border-radius: 50%;
  border: 1px solid var(--fva-border);
  background: transparent;
  color: var(--fva-text-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.fva-pencil:hover { color: #fff; background: rgba(16, 185, 129, 0.2); }
.fva-empty {
  background: none;
  border: 0;
  padding: 0;
  min-height: 44px;
  color: var(--fva-accent-text);
  font-weight: 700;
  text-align: left;
}
.profile-note { color: var(--fva-text-muted); font-size: var(--fva-text-xs); }
.profile-note summary { min-height: 44px; display: inline-flex; align-items: center; cursor: pointer; color: var(--fva-text-soft); }
.profile-skills { display: flex; flex-wrap: wrap; gap: 8px; }
.page-rail .glass-card, .profile-rail .glass-card { padding: 16px; }
.session-list { display: grid; gap: 8px; }
.session-row { padding: 10px 12px; border: 1px solid var(--fva-border); border-radius: var(--fva-radius-sm); }
.session-more { min-height: 44px; }

.open-badge { position:absolute; left:50%; bottom:-6px; transform:translateX(-50%); background:#047857; color:#fff; font-size:12px; font-weight:800; letter-spacing:.04em; padding:2px 8px; border-radius:999px; border:2px solid var(--fva-bg); white-space:nowrap; }
.verify-pill { margin-top:8px; min-height:44px; padding:6px 12px; border-radius:999px; border:1px solid var(--fva-border); background:transparent; color:var(--fva-accent-text); font-weight:700; font-size:var(--fva-text-xs); }
.profile-org { margin:6px 0 0; color:var(--fva-text-soft); font-size:var(--fva-text-sm); }
.fva-more { width:44px; padding:0; border-radius:50%; font-size:1.25rem; line-height:1; }
.week-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.week-tile { border:1px solid var(--fva-border); border-radius:12px; padding:12px; display:grid; gap:4px; }
.week-tile strong { font-size:1.5rem; line-height:1; }
.week-tile span, .week-tile em { font-style:normal; color:var(--fva-text-muted); font-size:var(--fva-text-xs); }
/* Set 94: Creator Dashboard daily chart (plain div bars, real daily counts). */
.cd-chart{display:flex;align-items:flex-end;gap:2px;height:120px;padding-top:8px;overflow-x:auto;}
.cd-chart-day{flex:1 1 0;min-width:8px;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-end;height:100%;}
.cd-chart-bars{flex:1;display:flex;align-items:flex-end;justify-content:center;gap:2px;min-height:0;}
.cd-bar{width:6px;max-width:45%;border-radius:3px 3px 0 0;background:var(--fva-accent,#059669);}
.cd-bar-pi{background:#6ee7b7;opacity:.75;}
.cd-chart-label{font-size:10px;color:var(--fva-text-muted);text-align:center;white-space:nowrap;}
.cd-legend-pv{color:var(--fva-accent,#059669);}
.cd-legend-pi{color:#6ee7b7;}
.cd-top-row{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;width:100%;text-align:left;border:1px solid var(--fva-border);border-radius:12px;padding:10px 12px;background:transparent;cursor:pointer;}
.cd-top-row:hover{border-color:var(--fva-accent,#059669);}
.cd-top-text{display:flex;flex-direction:column;gap:2px;min-width:0;}

.net-switch { display:flex; gap:8px; }
.net-switch button { flex:1; min-height:44px; border-radius:999px; border:1px solid var(--fva-border); background:transparent; color:var(--fva-text-soft); font-weight:700; }
.net-switch button.is-on { background:#047857; color:#fff; border-color:#047857; }
.verify-banner { width:100%; text-align:left; min-height:44px; padding:12px; border-radius:12px; border:1px solid var(--fva-border); background:rgba(16,185,129,.12); color:var(--fva-text); font-weight:700; }
#profileDrawer #navMessages.app-menu-item, #profileDrawer #navProfile.app-menu-item { flex-direction: column !important; width: auto; }
#globalSearch, #jobSearch, #userSearch { border-radius:999px; }
@media (max-width: 480px) {
  button[aria-label="Settings"] { display: none; }
}

/* Phone: nothing sits under the fixed nav, off the right edge, or outside a modal. */
html {
  overflow-x: hidden;
  max-width: 100%;
}
body {
  overflow-x: hidden;
  max-width: 100%;
  padding-top: env(safe-area-inset-top, 0px);
}
@media (max-width: 1023px) {
  :root { --fva-nav-h: calc(88px + env(safe-area-inset-bottom, 0px)); }
  body,
  #appView .app-column {
    padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .app-header {
    padding-top: calc(8px + env(safe-area-inset-top, 0px)) !important;
    padding-left: max(8px, env(safe-area-inset-left, 0px));
    padding-right: max(8px, env(safe-area-inset-right, 0px));
  }
  nav.app-nav {
    padding: 6px max(6px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(6px, env(safe-area-inset-left, 0px)) !important;
  }
  nav.app-nav .nav-row { max-width: 100%; gap: 2px; }
  nav.app-nav .nav-row > button {
    flex: 1 1 0;
    min-width: 0;
    min-height: 44px;
    padding: 4px 2px;
    font-size: 10px;
    line-height: 1.15;
  }
  nav.app-nav .nav-row > button span {
    max-width: 100%;
    text-align: center;
    overflow-wrap: anywhere;
  }
  .composer-actions,
  .feed-tabs,
  .job-filters,
  .profile-actions,
  .profile-photo-row,
  #sectionJobs .flex.gap-2,
  #cookieConsentBanner .fva-cookie-actions {
    display: flex;
    flex-wrap: wrap;
    max-width: 100%;
  }
  .composer-actions > * { min-width: 0; }
  .composer-actions select { max-width: calc(50% - 8px); }
  #publishBtn { margin-left: auto; }
  .feed-tab, .job-filter { flex: 1 1 auto; flex-shrink: 1 !important; }
  #storiesBar { max-width: 100%; }
  #toast, #chatNotifPopup, #refreshNotice {
    left: 12px !important;
    right: 12px !important;
    max-width: calc(100vw - 24px);
    box-sizing: border-box;
  }
  #toast, #chatNotifPopup {
    bottom: calc(112px + env(safe-area-inset-bottom, 0px)) !important;
  }
  #cookieConsentBanner.fva-cookie {
    flex-wrap: wrap;
    left: max(8px, env(safe-area-inset-left, 0px));
    right: max(8px, env(safe-area-inset-right, 0px));
    width: auto;
    max-width: none;
    bottom: calc(112px + env(safe-area-inset-bottom, 0px));
  }
  body[data-shell="auth"] #cookieConsentBanner.fva-cookie {
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }
  body[data-shell="auth"] #authView {
    padding-bottom: calc(128px + env(safe-area-inset-bottom, 0px));
  }
  #profileModal,
  #wizardModal,
  #otherProfileModal,
  #trialPopupModal {
    align-items: flex-start;
    overflow-y: auto;
    overscroll-behavior: contain;
    height: 100dvh;
    max-height: 100dvh;
    box-sizing: border-box;
    padding: calc(12px + env(safe-area-inset-top, 0px)) 12px calc(16px + env(safe-area-inset-bottom, 0px));
  }
  #profileModal > div,
  #wizardModal > div,
  #otherProfileModal > div,
  #trialPopupModal > div,
  #wizardModal > div.wizard-scroll-panel {
    width: min(100%, 32rem);
    max-height: none !important;
    overflow: visible !important;
    margin: 0 auto 12px;
  }
  /* Set 29: the drawer panel sits BELOW the header on mobile, like it
     already does on desktop (76px top padding there). Before, the panel
     was 100dvh from the top and covered the header (logo + search).
     --drawer-top is the measured header height, set by openProfileDrawer;
     89px is the measured mobile header height as a fallback. */
  #profileDrawer {
    align-items: flex-start;
    padding-top: var(--drawer-top, 89px);
  }
  #profileDrawer > div {
    height: calc(100dvh - var(--drawer-top, 89px));
    max-height: calc(100dvh - var(--drawer-top, 89px));
    box-sizing: border-box;
    padding-top: calc(16px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
}
@media (max-width: 1023px) and (max-height: 500px) {
  nav.app-nav .nav-row > button { min-height: 44px; padding-top: 2px; padding-bottom: 2px; }
  body, #appView .app-column {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
  }
}
#jobList, .job-filter { scroll-margin-top:8px; }
.flex.items-center.gap-2.overflow-x-auto, #sectionJobs .overflow-x-auto { display:flex; gap:8px; overflow-x:auto; }

.feed-tab[data-active="true"] {
  background: var(--fva-accent-strong) !important;
  color: #fff !important;
  font-weight: 700;
}
.job-description { padding-top: 8px; border-top: 1px solid var(--fva-border); }
#jobDetailBox.is-open { scroll-margin-top: 88px; }

.token-swatch { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--fva-border); font-size: var(--fva-text-xs); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  button:active, .fva-pill:active { transform: none !important; }
}

/* App launcher: every real page, grouped. Phone sheet covers the nav. Desktop is a panel. */
@media (max-width: 399px) {
  .app-brand { display: none; }
}
.app-menu { display: grid; gap: 4px; }
.app-menu-group h3 {
  margin: 12px 0 8px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fva-text-muted);
}
.app-menu-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.app-menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 76px;
  padding: 8px 4px;
  border-radius: 14px;
  border: 1px solid var(--fva-border);
  background: transparent;
  color: var(--fva-text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}
.app-menu-item svg, .app-menu-item i { width: 22px; height: 22px; }
.app-menu-count {
  min-width: 1.25rem;
  min-height: 1.25rem;
  padding: 0 4px;
  border-radius: 999px;
  background: #047857;
  color: #fff;
  font-size: 11px;
}
.app-menu-count:empty { display: none; }
#verifyBanner.app-menu-item { width: auto; text-align: center; background: transparent; }

/* Sign-in: the pasted design, wired to the real Connect endpoints.
   Dark ink header, cream card, Bricolage display type. The card keeps the
   live auth engine: same element IDs, same doLogin/doRegister/do2fa,
   forgot, verify and reset boxes, same FVAVerify box, same 2FA box.
   The sliding-auth 300ms card slide and the provider row on top are kept.
   The pasted page's invented endpoints are NOT used: the human check is
   the FVAVerify widget (GET /api/auth-status), forgot is
   POST /api/auth/password-reset/request, verify is the verification-code
   pair, and the session check is GET /api/auth/me. */
body[data-shell="auth"] {
  min-height: 100vh;
  min-height: 100dvh;
  background: #08130f;
  font-family: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
#authView.auth-shell {
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 440px;
  margin: 0 auto;
  padding: calc(24px + env(safe-area-inset-top, 0px)) 20px calc(24px + env(safe-area-inset-bottom, 0px));
  position: relative;
}
.auth-rings {
  position: fixed;
  top: -170px;
  right: -190px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  pointer-events: none;
  background: repeating-radial-gradient(circle at 50% 50%, rgba(200,165,107,0) 0, rgba(200,165,107,0) 17px, rgba(200,165,107,.2) 17px, rgba(200,165,107,.2) 18px);
  -webkit-mask-image: radial-gradient(circle, #000 0, transparent 68%);
  mask-image: radial-gradient(circle, #000 0, transparent 68%);
}
.auth-brand-panel {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 28px;
  position: relative;
}
.auth-brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.auth-brand-name {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: #f6efdc;
}
.auth-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: block;
  border: 0;
  background: transparent;
  border-radius: 12px;
}
.auth-panel-switch {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 18px;
  border-radius: 22px;
  border: 1px solid rgba(200,165,107,.55);
  background: transparent;
  color: #f1e6c9;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.auth-panel-switch:focus-visible { outline: 2px solid #C9A06B; outline-offset: 2px; }
#authView .auth-welcome-line {
  margin: 0;
  font-family: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  font-size: clamp(40px, 11vw, 48px);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -.025em;
  color: #f6efdc;
}
#authView .login-gate-tagline { color: #b8b29d; margin: 8px 0 0; font-size: 15px; }
.auth-form-wrap { position: relative; }
#authView .auth-card {
  background: #f4f0e6;
  color: #10201a;
  border-radius: 28px 28px 0 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 -1px 0 rgba(200,165,107,.5);
  padding: 24px 20px calc(34px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 300ms ease-out, opacity 300ms ease-out;
}
.auth-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#authView .auth-card-title {
  margin: 0;
  font-family: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.015em;
  color: #10201a;
}
.auth-host {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px;
  color: #6B7280;
}
.auth-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 12px;
  background: #eee3c6;
  border: 1px solid #d9c78f;
  color: #4a3d14;
  font-size: 14px;
  font-weight: 500;
}
.auth-notice[hidden] { display: none; }
/* One message area for errors and status alike, so it stays a warm notice
   instead of a red error banner: the live engine puts both kinds here. */
.auth-msg {
  padding: 11px 14px;
  border-radius: 12px;
  background: #eee3c6;
  border: 1px solid #d9c78f;
  color: #4a3d14;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}
.auth-msg:empty { display: none; }
/* Provider row: Google and GitHub side by side above the email field
   (kept from sliding auth). Stacks below 480px so neither label clips. */
.auth-provider-row { display: flex; gap: 10px; }
/* Set 31: the Switch account modal reuses the main-login provider buttons.
   Dark theme uses the milk token (same look as the main login, which
   Set 32 milks). Light theme gives them the same cream fill and tan border
   as the main login, so they stay visible on the white card. The modal
   card scrolls internally so the added row never pushes Sign in / Cancel
   behind the bottom nav at 375px. */
#userAccountSwitchModal > div { max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; }
/* ---- Hard-scrolling fix: every centred modal card caps at the viewport
   and scrolls inside it (house pattern from #profileModal, index.html
   line 430, and #userAccountSwitchModal above). Before this, the gift
   sheet, earnings, account switch, download, install prompt,
   language sheet, moment viewer and trial popup cards had no max-height
   and no overflow rule, so on a phone their content ran past the viewport
   top and bottom and could never be reached. Go Live already scrolled via
   .live-modal-card and the wallet already scrolled via .wallet-panel;
   both are listed here for the overscroll + momentum rules.
   trialPopupModal keeps its mobile outer-scroll rule below 1023px (the
   !important there wins); this gives it the same inner scroll on desktop.
   box-sizing: border-box is load-bearing: these cards carry p-5/p-6, and
   with the default content-box the padding sits on top of the max-height
   (measured 816px in an 800px viewport, 8px cut top and bottom).
   .live-modal-card already declares border-box for the same reason. */
#giftPickerModal > div, #giftEarningsModal > div, #giftWalletModal > div,
#goLiveModal > div, #accountSwitchModal > div, #downloadAppModal > div,
#installPromptModal > div, #langSheet > div, #moment-viewer > div,
#trialPopupModal > div { box-sizing: border-box; min-height: 0; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }

html[data-theme="dark"] #userAccountSwitchModal .auth-provider { background: var(--milk); border-color: var(--milk); color: #111827; }
html[data-theme="dark"] #userAccountSwitchModal .auth-provider:hover { background: #E2D9C2; }
html[data-theme="dark"] #userAccountSwitchModal .auth-or { color: #c5d4ce; }
html[data-theme="light"] #userAccountSwitchModal .auth-provider { background: var(--lt-surface); border: 1px solid var(--lt-border); color: var(--lt-brand); }
html[data-theme="light"] #userAccountSwitchModal .auth-provider:hover { background: var(--lt-surface); }
.auth-provider-row .auth-provider { flex: 1 1 0; min-width: 0; }
#authView .auth-provider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  border-radius: 14px;
  border: 1px solid #a89b7b;
  background: #fffdf8;
  color: #10201a;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  padding: 0 12px;
  box-sizing: border-box;
}
#authView .auth-provider:hover { background: #fff; color: #10201a; }
#authView .auth-provider:focus-visible { outline: 2px solid #0b7d58; outline-offset: 2px; }
#authView .auth-provider svg { flex: 0 0 auto; }
.auth-or {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: .1em;
  color: #5b6358;
}
.auth-or:before, .auth-or:after { content: ""; flex: 1; height: 1px; background: #d3c6a8; }
#authView .login-gate-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: #1d2d26;
  margin: 0 0 7px;
}
#authView .auth-input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid #a89b7b;
  background: #fffdf8;
  color: #10201a;
  font-size: 16px;
  box-sizing: border-box;
}
#authView .auth-input::placeholder { color: #6f7468; opacity: 1; }
#authView .auth-input:focus { border-color: #0b7d58; box-shadow: 0 0 0 3px rgba(11,125,88,.2); outline: none; }
#authView .auth-input[aria-invalid="true"] { border-color: #a3261b; box-shadow: 0 0 0 3px rgba(163,38,27,.12); }
.login-gate-password-row { display: flex; gap: 8px; align-items: stretch; }
.login-gate-password-row .auth-input { flex: 1 1 auto; min-width: 0; }
#authView .login-gate-showhide {
  flex: 0 0 auto;
  min-width: 64px;
  min-height: 52px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid #a89b7b;
  background: #fffdf8;
  color: #0a6b4a;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
#authView .login-gate-showhide:focus-visible { outline: 2px solid #0b7d58; outline-offset: 2px; }
#authView .auth-consent {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 14px;
  line-height: 1.4;
  color: #26372f;
}
#authView .auth-consent input { width: 22px; height: 22px; margin: 0; accent-color: #0b7d58; flex: 0 0 auto; }
#authView .auth-consent a { color: #0a6b4a; font-weight: 600; }
.auth-actions { display: grid; }
.auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 16px;
  background: #0b7d58;
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  box-shadow: 0 12px 24px -12px rgba(11,125,88,.7), inset 0 1px 0 rgba(255,255,255,.2);
  cursor: pointer;
  padding: 0 16px;
  box-sizing: border-box;
}
.auth-submit:disabled { opacity: .7; cursor: progress; }
.auth-submit:focus-visible { outline: 2px solid #0b7d58; outline-offset: 2px; }
.auth-submit-spin {
  display: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  animation: auth-spin .7s linear infinite;
}
.auth-submit[data-busy="true"] .auth-submit-spin { display: block; }
.auth-submit[data-busy="true"] .auth-submit-arrow { display: none; }
@keyframes auth-spin { to { transform: rotate(360deg); } }
/* Sliding auth: one calm horizontal slide between sign in and create
   account. The card slides out, the mode changes, then the card slides
   back in from the other side. 300ms ease-out, no bounce. Reduced motion
   is instant: the global reduced-motion rule below removes all
   transitions, and switchAuthMode in app.js also skips the slide. */
#authView .auth-card.auth-slide-out-left { transform: translateX(-24px); opacity: 0; }
#authView .auth-card.auth-slide-out-right { transform: translateX(24px); opacity: 0; }
#authView .auth-card.auth-slide-in-left { transform: translateX(-24px); opacity: 0; }
#authView .auth-card.auth-slide-in-right { transform: translateX(24px); opacity: 0; }
#authView .auth-card.auth-slide-jump { transition: none !important; }
#authView #authModeSwitchBtn { color: #0a6b4a !important; }
#authView .login-pro-help { border-top: 1px solid #d3c6a8; padding-top: 6px; }
#authView .login-pro-help summary,
#authView .login-pro-help p { color: #26372f; font-size: 14px; }
#authView #authStatus { color: #b8b29d; min-height: 0; margin: 0 0 8px; }
#authView #fvaverifyState { color: #3F4A45 !important; }
#fv-box { margin-top: 8px !important; }

/* Compact sign-in: the whole login fits one phone screen with no vertical
   scroll (375x667, 375x812, 390x844). Display only: no id, handler,
   endpoint, field or sign-in flow is changed here. Every tap target stays
   44px or taller, inputs stay 16px so iOS does not zoom, and the shipped
   colours and type stay. Desktop (min-width:960px below) is untouched.
   What shrank, and why it still fits: the brand panel loses its duplicate
   top switch (the footer switch does the same job) and the tagline, the
   provider buttons sit in one row with short labels, the FVAVerify card
   becomes one 44px badge line with the token preview hidden, the
   session-ended sentence shows once in its notice instead of twice, and
   card gaps and padding tighten from 14/24px to 4/8px. */
@media (max-width: 959px) {
  #authView.auth-shell { padding: calc(4px + env(safe-area-inset-top, 0px)) 12px calc(8px + env(safe-area-inset-bottom, 0px)); }
  .auth-brand-panel { gap: 6px; margin-bottom: 4px; }
  #authView .auth-mark { width: 32px; height: 32px; }
  #authView .auth-brand-name { font-size: 17px; }
  #authView #authBrandSwitchBtn { display: none; }
  #authView .auth-welcome-line { font-size: 22px; line-height: 1.1; }
  #authView .login-gate-tagline { display: none; }
  #authView .auth-card { padding: 8px 12px; gap: 3px; }
  #authView .auth-card-title { font-size: 20px; }
  #authView .auth-provider { height: 44px; min-height: 44px; font-size: 13px; padding: 0 8px; gap: 6px; border-radius: 12px; }
  #authView .auth-provider svg { width: 18px; height: 18px; }
  .auth-provider-row { flex-direction: row; gap: 8px; }
  .auth-or { font-size: 12px; line-height: 1.2; }
  #authView .login-gate-label { font-size: 12px; line-height: 1.5; margin: 0; }
  #authView .auth-input { height: 44px; min-height: 44px; padding: 0 12px; border-radius: 12px; }
  #authView .login-gate-showhide { min-height: 44px; min-width: 56px; padding: 0 10px; font-size: 13px; border-radius: 12px; }
  #authView #authStatus { margin: 0 0 6px; }
  #authView #authStatus:empty { margin: 0; }
  .auth-msg { padding: 8px 12px; font-size: 13px; }
  .auth-notice { padding: 8px 12px; gap: 8px; font-size: 13px; }
  .auth-notice svg { width: 16px; height: 16px; }
  /* FVAVerify single-line badge. These rules beat the widget's injected
     stylesheet (#fv-box rules) by specificity plus !important, and the
     markup's own inline styles carry the same compact values, so the badge
     holds its shape even if the widget re-renders. The token preview
     (#fv-masked) stays in the DOM and still receives the masked token, but
     is never shown: the badge line is the check plus "Verified human" plus
     "Protected by FVAVerify". Long transient states (checking, failed,
     expired) may wrap to two lines instead of clipping. */
  #authView #fv-box { margin-top: 0 !important; padding: 6px 10px !important; min-height: 44px !important; gap: 6px !important; }
  #authView #fv-box .fv-check { width: 24px !important; height: 24px !important; min-width: 24px !important; min-height: 24px !important; }
  #authView #fv-box .fv-tick { font-size: 16px !important; }
  #authView #fv-box .fv-spinner { width: 18px !important; height: 18px !important; }
  #authView #fv-box .fv-text { flex-direction: row !important; align-items: baseline !important; gap: 6px !important; }
  #authView #fv-box[data-state="idle"] .fv-text,
  #authView #fv-box[data-state="verified"] .fv-text { white-space: nowrap; }
  #authView #fv-box #fv-status { font-size: 13px !important; }
  #authView #fv-box .fv-brand { font-size: 12px !important; }
  #authView #fv-box #fv-masked { display: none !important; }
  #authView #fvaverifyState:empty { display: none; }
  #authView #fvaverifyState { margin: 0; font-size: 12px; line-height: 1.4; }
  #authView .auth-consent { min-height: 44px; font-size: 13px; gap: 8px; }
  #authView .auth-consent input { width: 20px; height: 20px; }
  #authView .auth-submit { min-height: 44px; font-size: 16px; border-radius: 14px; }
  #authView .login-pro-help { padding-top: 2px; }
  /* The verify/forgot row is one horizontal row of text buttons, but
     Tailwind space-y-2 adds 8px top margin to its 2nd/3rd children, making
     the row 52px instead of 44px. The vertically stacked boxes keep their
     space-y gaps; only this row is flattened. */
  #authView .auth-verify-row > :not([hidden]) ~ :not([hidden]) { margin-top: 0; }
}

/* Height-gated brand chrome (audit scenario 2): on short phones the
   "Sign in" card head and the "Welcome back." line are brand chrome, not
   controls — the Sign in button and the Fva Connect brand already say what
   this screen is. Hiding them buys the last ~30px each where the viewport
   is short. Taller phones and desktop keep the full presentation. */
@media (max-width: 959px) and (max-height: 850px) {
  #authView .auth-card-head { display: none; }
}
@media (max-width: 959px) and (max-height: 700px) {
  #authView .auth-welcome-line { display: none; }
}

/* Suspension is a separate step, not a stack (audit section 6): when a
   sign-in attempt returns suspended, app.js swaps the card to this panel
   with the same 300ms slide the sign-in/create-account switch uses, and
   .auth-suspended hides every other card child so the panel is the whole
   screen. Without the swap the panel (461px) stacked under the form
   (667px) is 1,127px and can never fit. The panel itself is tightened
   (padding 16 -> 12, gaps 12 -> 8) so it fits with its status lines filled. */
#authView .auth-card.auth-suspended > :not(#sectionSuspended) { display: none !important; }
#authView #sectionSuspended { margin-top: 0; padding: 12px; }
#authView #sectionSuspended > * + * { margin-top: 8px; }
#authView #suspendedStatus p, #authView #suspendedAppealStatus p { font-size: 13px; line-height: 1.45; }
body[data-shell="auth"] #authView.auth-shell {
  padding-bottom: calc(128px + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 960px) {
  #authView.auth-shell {
    max-width: none;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(340px, 480px);
    padding: 0;
    margin: 0;
  }
  .auth-brand-panel {
    min-height: 100dvh;
    margin: 0;
    padding: calc(48px + env(safe-area-inset-top, 0px)) 48px 48px;
    justify-content: center;
    background:
      linear-gradient(165deg, rgba(201, 160, 107, 0.18), transparent 42%),
      #003A34;
  }
  .auth-mark { width: 56px; height: 56px; }
  #authView .auth-welcome-line { font-size: 48px; }
  .auth-form-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100dvh;
    padding: 32px 32px 120px;
    background: #f4f0e6;
    box-sizing: border-box;
  }
  #authView .auth-card {
    border: 1px solid #d3c6a8;
    border-radius: 28px;
    box-shadow: 0 40px 100px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(200,165,107,.22);
  }
  #authView .auth-form-wrap #authStatus { color: #5b6358; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-brand-panel { background: #003A34; }
  #authView .auth-card, .auth-submit-spin { animation: none; transition: none; }
}
.logo-preview-stage {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  padding: 16px;
  border-radius: 16px;
  background: #003A34;
}
.logo-preview-full { width: 96px; height: 96px; display: block; }
.logo-preview-small { width: 32px; height: 32px; display: block; }
.logo-preview-mono { width: 48px; height: 48px; display: block; color: #F7F3EA; background: #F7F3EA; border-radius: 12px; }
.logo-preview-lockup { display: flex; align-items: center; gap: 12px; }
.logo-preview-lockup svg { width: 48px; height: 48px; display: block; }
.logo-preview-lockup span {
  color: #F7F3EA;
  font-weight: 700;
  letter-spacing: 0.28em;
  font-size: 18px;
}
/* Signed-out cookie sits in the page flow so it does not cover Sign in or Create account. */
@media (max-width: 959px) {
  body[data-shell="auth"] {
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
  }
  body[data-shell="auth"] #authView.auth-shell {
    min-height: 0;
    padding-bottom: 8px !important;
  }
  body[data-shell="auth"] #cookieConsentBanner.fva-cookie {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    width: auto !important;
    max-width: 32rem;
    margin: 12px auto calc(12px + env(safe-area-inset-bottom, 0px));
  }
}
@media (min-width: 960px) {
  body[data-shell="auth"] #cookieConsentBanner.fva-cookie {
    left: 32px;
    right: auto;
    bottom: 32px;
    width: min(420px, calc(50vw - 80px));
    margin: 0;
  }
}
#profileDrawer > div { overflow-y: auto; }
@media (max-width: 1023px) {
  body[data-shell="app"],
  body[data-shell="app"] #appView .app-column {
    padding-bottom: calc(200px + env(safe-area-inset-bottom, 0px)) !important;
  }
}
button, a, label, input, select, textarea { touch-action: manipulation; }
input, select, textarea { font-size: 16px !important; }
@media (min-width: 1024px) {
  /* Set 29: the top padding follows the measured header height
     (--drawer-top, set by openProfileDrawer). The old fixed 76px left
     the panel overlapping the bottom of the header at desktop, where
     the header is 93px tall (logo row + search row). 76px stays as the
     fallback if JS has not run. */
  #profileDrawer { align-items: flex-start; justify-content: flex-end; padding: var(--drawer-top, 76px) 16px 16px; }
  #profileDrawer > div {
    width: min(440px, calc(100vw - 32px));
    height: auto;
    max-height: min(78dvh, 760px);
    border-radius: 16px;
    border: 1px solid var(--fva-border);
  }
}

/* ---- Connect theme fix, 2026-10-31. Theme only, layout unchanged. ----
   Root cause of the light-drawer defect: this file loads after the inline
   light sheet in index.html, it had zero data-theme="light" rules, and
   .app-menu-item / #appView / headings take their colour from the variables
   below, which were near-white in every theme. Redefining the variables in
   light fixes every surface that uses them at once, with no redesign.
   Dark values are untouched: dark stays the given design exactly. */
html[data-theme="light"] {
  --fva-bg: var(--lt-bg);
  --fva-bg-elev: var(--lt-surface);
  --fva-card: var(--lt-surface);
  --fva-card-2: var(--lt-surface-2);
  --fva-border: var(--lt-border);
  --fva-text: var(--lt-text);
  --fva-text-soft: var(--lt-text-2);
  --fva-text-muted: var(--lt-muted);
  --fva-accent-text: var(--lt-accent);
  --fva-danger: var(--lt-danger);
  --fva-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}
html[data-theme="light"] #profileDrawer > div { background: var(--lt-surface); color: var(--lt-text); border-color: var(--lt-border); }
html[data-theme="light"] #profileDrawer .app-menu-word { color: var(--lt-brand); }
html[data-theme="light"] .app-menu-item { color: var(--lt-text); border-color: var(--lt-border); }
html[data-theme="light"] .app-menu-group h3 { color: var(--lt-muted); }
html[data-theme="light"] #profileDrawer .side-profile-note-emerald { color: var(--lt-accent); }
html[data-theme="light"] #fv-box .fv-check { color: var(--lt-warn); }
html[data-theme="light"] .chat-bubble-mine { background: var(--lt-accent); color: var(--lt-surface); }
html[data-theme="light"] .bg-emerald-500,
html[data-theme="light"] .bg-emerald-600 { background-color: var(--lt-accent); }
html[data-theme="light"] .bg-emerald-950\/80 { background-color: var(--lt-accent-soft); }
html[data-theme="light"] #appView input,
html[data-theme="light"] #appView select,
html[data-theme="light"] #appView textarea { color: var(--lt-text); background-color: var(--lt-surface); }
html[data-theme="light"] #appView input::placeholder,
html[data-theme="light"] #appView textarea::placeholder { color: var(--lt-muted); opacity: 1; }
/* Drawer tiles: a long label wraps inside its card instead of overflowing
   it. Applies in every theme. Card size, grid, and padding are unchanged. */
.app-menu-item { min-width: 0; }
.app-menu-item span { overflow-wrap: break-word; word-break: break-word; max-width: 100%; }
.app-menu-item svg, .app-menu-item i { flex-shrink: 0; }

/* ---- Professional display and swipe-back: layout only, no behaviour change ---- */
/* Author modal: avatar, aligned name and tick, grouped details, clean actions. */
.author-modal { padding: 20px; }
.author-back { align-self: flex-start; min-height: 44px; padding: 8px 12px; border: 0; background: transparent; color: #047857; font-weight: 800; font-size: 14px; cursor: pointer; }
.author-back:focus-visible { outline: 2px solid #C9A06B; outline-offset: 2px; border-radius: 8px; }
.author-head { display: flex; gap: 12px; align-items: center; min-width: 0; }
.author-avatar { flex: 0 0 auto; width: 64px; height: 64px; border-radius: 50%; background: #003A34; color: #FFFFFF; border: 2px solid #C9A06B; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; overflow: hidden; }
.author-avatar-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.author-name-wrap { min-width: 0; flex: 1 1 auto; }
.author-name { margin: 0; font-size: 18px; line-height: 1.25; font-weight: 800; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; word-break: break-word; }
.author-name .verified-badge { vertical-align: middle; margin-left: 0; }
.author-followers { margin: 2px 0 0; font-size: 13px; line-height: 1.5; color: #4B5563; }
.author-details { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.author-details p { margin: 0; font-size: 14px; line-height: 1.55; word-break: break-word; }
.author-note { margin: 0; font-size: 12px; line-height: 1.5; color: #4B5563; }
.author-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.author-actions .fva-pill { flex: 1 1 0; min-width: 0; padding: 8px 6px; font-size: 13px; line-height: 1.25; text-align: center; white-space: normal; }
.author-actions .author-close { flex-basis: 100%; }
/* Own profile: explicit readable name colour, one column on phone, aligned meta. */
.profile-name { color: var(--fva-text); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; word-break: break-word; }
.profile-id-row { min-width: 0; }
.profile-id-text { min-width: 0; flex: 1 1 auto; }
.verify-pill { min-height: 44px; padding: 10px 16px; }
.profile-actions .fva-pill, .profile-photo-row .fva-pill { flex: 1 1 120px; min-width: 0; white-space: normal; text-align: center; }
.profile-actions .fva-menu { flex: 1 1 120px; min-width: 0; }
.profile-actions .fva-menu .fva-pill { width: 100%; }
@media (max-width: 767px) {
  .profile-id-row { flex-direction: column; align-items: flex-start; margin-top: -56px; gap: 10px; }
  .profile-avatar { width: 96px; height: 96px; font-size: 1.5rem; }
  .profile-name { margin-top: 0; }
  .profile-id-text { width: 100%; }
}
/* Bottom nav bleed: more room above the fixed nav on phone, safe-area kept. */
@media (max-width: 1023px) {
  body, #appView .app-column { padding-bottom: calc(136px + env(safe-area-inset-bottom, 0px)) !important; }
}
@media (prefers-reduced-motion: reduce) {
  .author-modal, .author-head, .profile-hero, .profile-id-row { transition: none !important; animation: none !important; }
}

/* Post links: a link in a post, bio, licence text, or description must wrap,
   stay underlined so it is obviously clickable, and never overflow a card
   at 375px or sit behind the bottom nav. */
.fva-link{overflow-wrap:anywhere;word-break:break-word;text-decoration:underline;text-underline-offset:2px}
#sectionCredentialsDisplay,#pCredentials,#profileBioDisplay,#pBio{overflow-wrap:anywhere;word-break:break-word}

/* ---- Connect desktop fix, 2026-11-01. Desktop and tablet only, phone unchanged. ----
   Why: on a desktop monitor the phone bottom nav was showing over content, the
   profile ... button stretched into a wide oval, and Photo notes was squeezed
   off the right edge. The old desktop rule only kicked in at 1024px, so a
   laptop window, a zoomed browser, or a tablet-width viewport still got the
   phone nav. This rule kicks in at 768px instead, and only changes layout,
   never handlers, text, theme, or post links. */
@media (min-width: 768px) {
  #appView > nav.app-nav,
  nav.app-nav {
    position: sticky !important;
    top: 76px;
    bottom: auto !important;
    left: auto;
    right: auto;
    z-index: 35;
    border-top: 0;
    border-bottom: 1px solid var(--fva-border);
    background: rgba(0, 58, 52, 0.96);
    padding: 8px 16px !important;
  }
  nav.app-nav .nav-row { max-width: 1120px; justify-content: flex-start; gap: 6px; }
  nav.app-nav .nav-row > button {
    flex-direction: row;
    flex: 0 0 auto;
    gap: 8px;
    padding: 8px 16px;
    font-size: 0.95rem;
    min-height: 44px;
  }
  #appView .app-column { max-width: 1120px !important; padding-bottom: 32px !important; }
  .page-with-rail:not(.hidden) { display: grid !important; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
  .page-with-rail > .page-rail { grid-column: 2; grid-row: 1 / span 24; position: sticky; top: 148px; }
  .page-with-rail > :not(.page-rail) { grid-column: 1; }
  .profile-layout { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
  .profile-rail { position: sticky; top: 148px; }
  .profile-hero .cover-banner { aspect-ratio: 3 / 1; min-height: 180px; max-height: 320px; }
  .profile-hero .cover-banner-img { object-fit: cover; object-position: center center; background-repeat: no-repeat; }
  .profile-hero-body { padding: 0 20px 20px; }
  .profile-id-row { flex-direction: row; align-items: flex-end; margin-top: -56px; gap: 16px; min-width: 0; }
  .profile-avatar { width: 120px; height: 120px; font-size: 1.75rem; }
  .profile-id-text { min-width: 0; flex: 1 1 auto; }
  .profile-name { font-size: 1.75rem; line-height: 1.15; overflow-wrap: anywhere; word-break: break-word; }
  .profile-headline, .profile-org, .profile-meta { overflow-wrap: anywhere; word-break: break-word; }
  .profile-actions .fva-more { flex: 0 0 44px !important; width: 44px !important; min-width: 44px !important; padding: 0 !important; }
  .profile-actions .fva-pill, .profile-photo-row .fva-pill { flex: 1 1 140px; min-width: 0; }
  .profile-photo-row .profile-note { flex: 1 1 200px; min-width: 0; }
  .profile-note summary { white-space: normal; text-align: left; overflow-wrap: anywhere; word-break: break-word; }
  .profile-note p { overflow-wrap: anywhere; word-break: break-word; }
  #sectionProfile { padding-bottom: 32px; }
  #cookieConsentBanner.fva-cookie { bottom: 16px; }
}

/* Jobs upgrade: wrap long job text, links, and application cards at phone width. No colour change. */
.job-detail-panel, .job-card, .job-application-card, .job-text { overflow-wrap: anywhere; word-break: break-word; }
/* Set 92: job badges and buttons never wrap mid-word. The card rule above
   allows breaks anywhere for long text; badges and buttons opt out, so a
   pill or a label always wraps as a whole unit (flex-wrap on the badge row). */
.job-badge { display:inline-flex; align-items:center; white-space:nowrap; overflow-wrap:normal; word-break:normal; font-size:10px; background:#022c22; color:#34d399; border:1px solid rgba(6,95,70,.4); padding:2px 8px; border-radius:6px; font-weight:600; flex-shrink:0; }
.job-badge-closed { background:#450a0a; color:#f87171; border-color:rgba(127,29,29,.4); }
.job-title-btn { background:transparent; border:0; padding:0 8px; text-align:left; min-height:44px; display:inline-flex; align-items:center; overflow-wrap:normal; word-break:normal; }
.job-save-btn { display:inline-flex; align-items:center; justify-content:center; gap:4px; padding:10px; min-width:44px; min-height:44px; flex-shrink:0; white-space:nowrap; overflow-wrap:normal; word-break:normal; color:#9ca3af; background:transparent; border:0; }
.job-save-btn:hover { color:#34d399; }
.job-detail-panel .fva-link, .job-card .fva-link, .job-application-card .fva-link { overflow-wrap: anywhere; word-break: break-word; }
.job-section { padding-top: 8px; border-top: 1px solid var(--fva-border); }
.job-application-card button { max-width: 100%; }

/* Set 102: the Premium text pill is removed. Premium is shown on the avatar (gold ring + crown badge) instead. */
.verification-line, .verification-note { overflow-wrap: anywhere; word-break: break-word; }

/* Admin founder premium grant button, 2026-11-01: Admin overview card only, founder only. Result and button wrap inside the card at phone width. */
#tab-admin #founderPremiumGrantCard { overflow-wrap: anywhere; }
#tab-admin #founderPremiumGrantResult { overflow-wrap: anywhere; word-break: break-word; }
#tab-admin #founderPremiumGrantBtn { max-width: 100%; white-space: normal; }

/* GOS upgrade append: share rows and member chips wrap at 375px, no live rule changed */
.gos-member-list{display:flex;flex-wrap:wrap;gap:6px;max-width:100%}
.gos-member-chip{display:inline-block;max-width:100%;overflow-wrap:anywhere;border:1px solid #e5e7eb;border-radius:999px;padding:6px 10px;font-size:12px;line-height:1.4}

/* Safety, suspension, closure, next of kin: wrap rules only, no live rule changed. */
.safety-card{overflow-wrap:break-word}
.safety-card input,.safety-card select,.safety-card textarea{box-sizing:border-box;max-width:100%}
@media (max-width:767px){.safety-card{padding-bottom:calc(16px + env(safe-area-inset-bottom))}}
#sectionSuspended{overflow-wrap:break-word}
#sectionSuspended input,#sectionSuspended textarea{box-sizing:border-box;max-width:100%}

/* FVA Connect Android download, rebased: Android button live, plus iPhone Home Screen section. */
#downloadAppModal .flex{flex-wrap:wrap;}
#downloadAppAndroidBtn,#downloadAppWindowsBtn{overflow-wrap:anywhere;}
#downloadAppIPhoneSection{overflow-wrap:anywhere;}

/* Suspension dashboard (Phase 1, signed-in suspended accounts only).
   Theme-aware through the --fva-* variables: dark keeps the live dark
   design, light redefines the same variables (see the light block above),
   auto follows the OS through the data-theme script in index.html.
   No app navigation lives here: the dashboard has no bottom nav and no
   link into the app. 375px: cards wrap, targets stay 44px, nothing hides
   behind a nav because there is no nav in this state. */
#suspendedView{font-size:var(--fva-text-sm);color:var(--fva-text);}
#suspendedView .susp-wrap{padding-bottom:96px;}
.susp-head{padding:8px 4px 4px;}
.susp-brand{font-weight:700;color:var(--fva-text);}
.susp-head h1{font-size:var(--fva-text-xl);line-height:1.25;font-weight:700;color:var(--fva-text);margin:8px 0;}
.susp-head p{font-size:var(--fva-text-sm);line-height:1.6;color:var(--fva-text-soft);}
.susp-card{background:var(--fva-card);border:1px solid var(--fva-border);border-radius:var(--fva-radius);padding:20px;overflow-wrap:break-word;box-shadow:var(--fva-shadow);}
.susp-card h2{font-size:var(--fva-text-lg);line-height:1.25;font-weight:700;color:var(--fva-text);margin:0 0 8px;}
.susp-card h3{font-size:var(--fva-text-md);font-weight:700;color:var(--fva-text);margin:16px 0 4px;}
.susp-card p{font-size:var(--fva-text-sm);line-height:1.6;color:var(--fva-text-soft);margin:0 0 8px;}
.susp-card p.susp-note{color:var(--fva-text-muted);}
.susp-card a{color:var(--fva-accent-text);overflow-wrap:anywhere;}
.susp-rows p{display:flex;flex-wrap:wrap;gap:4px 8px;}
.susp-rows p span{color:var(--fva-text-muted);}
.susp-rows p strong{color:var(--fva-text);overflow-wrap:anywhere;}
.susp-list{margin:0 0 8px;padding-left:20px;color:var(--fva-text-soft);font-size:var(--fva-text-sm);line-height:1.6;}
.susp-label{display:block;font-size:var(--fva-text-sm);font-weight:700;color:var(--fva-text);margin:12px 0 4px;}
.susp-card input,.susp-card textarea{box-sizing:border-box;width:100%;max-width:100%;min-height:48px;border:1px solid var(--fva-border);border-radius:12px;padding:12px;background:var(--fva-bg-elev);color:var(--fva-text);font-size:var(--fva-text-sm);}
.susp-card textarea{min-height:96px;resize:vertical;}
.susp-card input::placeholder,.susp-card textarea::placeholder{color:var(--fva-text-muted);opacity:1;}
.susp-status{margin-top:8px;color:var(--fva-text-soft);}
.susp-status strong{color:var(--fva-text);}
.susp-btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:12px 16px;border-radius:12px;font-weight:700;font-size:var(--fva-text-sm);box-sizing:border-box;max-width:100%;white-space:normal;text-align:center;}
.susp-btn-primary{background:#047857;color:#FFFFFF;border:1px solid #047857;}
.susp-btn-outline{border:1px solid var(--fva-border);color:var(--fva-text);background:transparent;}
.susp-btn-danger{background:#B91C1C;color:#FFFFFF;border:1px solid #B91C1C;}
.susp-btn[disabled]{opacity:0.55;}
@media (max-width:767px){.susp-card{padding:16px;}#suspendedView .susp-wrap{padding-bottom:calc(96px + env(safe-area-inset-bottom));}}

/* ---- speed set: image loading states, retry and tap-to-load cards ---- */
img[data-img-kind="photo"]:not(.img-loaded){ background:#0a1f1c; animation:fva-img-shimmer 1.6s ease-in-out infinite; }
@keyframes fva-img-shimmer{ 0%{ opacity:.55; } 50%{ opacity:1; } 100%{ opacity:.55; } }
.avatar-initials-fallback{ display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; border-radius:9999px; background:#0a6b4a; color:#fff; font-weight:700; font-size:14px; flex-shrink:0; }
.img-retry-card{ display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; width:100%; min-height:160px; padding:20px 16px; border:1px solid rgba(16,185,129,.35); border-radius:16px; background:#071a17; color:#d1fae5; font-size:13px; line-height:1.4; text-align:center; cursor:pointer; }
.img-retry-card .img-retry-icon{ font-size:22px; line-height:1; }
.img-retry-card:active{ background:#0a2a24; }
html[data-theme="light"] .img-retry-card{ background:var(--lt-accent-soft); color:var(--lt-accent-strong); border-color:rgba(5,150,105,.4); }
html[data-theme="light"] .img-retry-card:active{ background:var(--lt-accent-soft); }
html[data-theme="light"] img[data-img-kind="photo"]:not(.img-loaded){ background:var(--lt-accent-soft); }
html[data-theme="light"] .avatar-initials-fallback{ background:var(--lt-accent); }
/* Avatar size safety net (2026-11-13): an avatar img must never render at its
   natural size if the Tailwind CDN utilities fail to apply. Width/height
   attributes on the imgs are the first guard; this caps the feed and story
   tray avatars even if an attribute is ever missed. */
#postsStream img[data-img-kind="avatar"]{ max-width:56px; max-height:56px; }
#storiesBar img[data-img-kind="avatar"]{ max-width:56px; max-height:56px; }

/* Facebook-style feed media (avatar+post set, 2026-11-13) */
.post-text-clamped{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.video-sound-btn{position:absolute;right:10px;bottom:10px;min-width:44px;min-height:44px;border-radius:9999px;background:rgba(0,0,0,.65);color:#fff;font-size:18px;line-height:1;display:flex;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,.35)}
.photo-viewer{position:fixed;inset:0;z-index:90;background:rgba(0,0,0,.92);display:none;align-items:center;justify-content:center;padding:16px}
.photo-viewer.open{display:flex}
.photo-viewer-img{max-width:100%;max-height:100%;object-fit:contain;border-radius:8px}
.photo-viewer-close{position:absolute;top:14px;right:14px;min-width:44px;min-height:44px;border-radius:9999px;background:rgba(255,255,255,.15);color:#fff;font-size:18px;border:1px solid rgba(255,255,255,.3)}
.story-viewer{position:fixed;inset:0;z-index:90;background:#000;display:none;align-items:center;justify-content:center}
.story-viewer.open{display:flex}
.story-viewer-card{position:relative;width:100%;max-width:480px;height:100%;max-height:100vh;display:flex;flex-direction:column;background:#111}
.story-segs{display:flex;gap:4px;padding:12px 12px 0}
.story-seg{flex:1;height:3px;border-radius:2px;background:rgba(255,255,255,.3)}
.story-seg.done{background:#fff}
.story-seg.current{background:#fff}
.story-viewer-head{display:flex;align-items:center;gap:10px;padding:10px 12px}
.story-viewer-btn{min-width:44px;min-height:44px;border-radius:9999px;background:rgba(255,255,255,.15);color:#fff;font-size:16px;border:1px solid rgba(255,255,255,.25)}
.story-viewer-media{width:100%;flex:1;min-height:0;object-fit:contain;background:#000}
.story-viewer-text-only{flex:1}
.story-viewer-text{padding:12px;color:#fff;font-size:15px;line-height:1.5}
.story-viewer-delete{margin:0 12px 16px;min-height:44px;border:1px solid rgba(255,255,255,.3);border-radius:12px;color:#fff;font-size:13px}
.story-nav{position:absolute;top:50%;transform:translateY(-50%);min-width:44px;min-height:44px;border-radius:9999px;background:rgba(255,255,255,.15);color:#fff;font-size:26px;border:1px solid rgba(255,255,255,.25);z-index:2}
.story-nav-left{left:8px}
.story-nav-right{right:8px}
@media (min-width:520px){.story-viewer-card{height:92vh;max-height:860px;border-radius:16px;overflow:hidden}}

/* Modern amenities: text size + polls (Set 4) */
html.text-large { font-size: 18px; }
.poll-block { margin-top: 0.5rem; padding: 0.75rem; border: 1px solid rgba(16,185,129,0.35); border-radius: 0.75rem; background: rgba(4,13,12,0.5); }
.poll-option { position: relative; display: flex; align-items: center; gap: 0.5rem; width: 100%; min-height: 44px; padding: 0.5rem 0.75rem; border: 1px solid rgba(16,185,129,0.35); border-radius: 0.75rem; overflow: hidden; text-align: left; }
.poll-bar { position: absolute; inset: 0 auto 0 0; background: rgba(16,185,129,0.25); }
.poll-text { position: relative; flex: 1; font-size: 0.875rem; }
.poll-pct { position: relative; font-size: 13px; color: var(--fva-text-muted); }
.poll-option-mine { border-color: #10b981; }

/* Set 7 polish: chat bubbles, notification text, file inputs. Plain CSS here
   so the fixes hold even when the Tailwind Play CDN utilities do not apply. */
.chat-bubble { max-width: 85%; min-width: 0; }
.chat-media-img { display: block; max-width: 100%; height: auto; border-radius: 12px; }
.notif-card-in p { overflow-wrap: break-word; }
.fva-file-input { position: absolute; width: 1px; height: 1px; min-width: 0; min-height: 0; padding: 0; margin: 0; border-width: 0 !important; border-style: none !important; box-sizing: border-box !important; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }


/* Set 8 chat best upgrade: photo viewer, photo button, room width safety net. */
#sectionMessages{min-width:0;}
#chatRoomView{min-width:0;}
#chatRoomView.hidden{display:none!important;}
.chat-photo-btn{display:block;padding:0;border:0;background:none;max-width:100%;text-align:left;cursor:pointer;}
.chat-action-btn{padding:2px 8px;min-height:44px;border:0;background:none;color:#6EE7B7;font-size:12px;font-weight:600;cursor:pointer;border-radius:8px;}
.chat-action-btn:hover{background:rgba(6,40,33,.6);}
/* ---- Connect Set 97: in-chat translation (FVA Translate) ---- */
.chat97-trans{margin-top:6px;padding:10px 12px;border-radius:12px;border-left:3px solid #10B981;background:rgba(6,40,33,.55);}
.chat97-trans-text{font-size:13px;line-height:1.45;color:#D1FAE5;overflow-wrap:anywhere;}
.chat97-trans-meta{font-size:11px;color:#6EE7B7;margin-top:6px;}
.chat97-trans-note{font-size:12px;color:#A7F3D0;}
.chat97-trans-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:8px;}
.chat97-trans-btn{min-height:44px;padding:6px 12px;border:0;border-radius:10px;background:#047857;color:#FFFFFF;font-size:12px;font-weight:700;cursor:pointer;}
.chat97-trans-link{min-height:44px;padding:6px 4px;border:0;background:none;color:#6EE7B7;font-size:12px;font-weight:600;cursor:pointer;text-align:left;}
.chat97-trans-select{min-height:44px;max-width:100%;border:1px solid #065F46;border-radius:10px;background:#022C22;color:#D1FAE5;font-size:12px;padding:6px 8px;}
.chat97-trans-input{flex:1;min-width:0;min-height:44px;border:1px solid #065F46;border-radius:10px;background:#022C22;color:#D1FAE5;font-size:12px;padding:6px 10px;}
html[data-theme="light"] .chat97-trans{background:#ECFDF5;border-left-color:#059669;}
html[data-theme="light"] .chat97-trans-text{color:#064E3B;}
html[data-theme="light"] .chat97-trans-meta{color:#047857;}
html[data-theme="light"] .chat97-trans-note{color:#065F46;}
html[data-theme="light"] .chat97-trans-link{color:#047857;}
html[data-theme="light"] .chat97-trans-select,html[data-theme="light"] .chat97-trans-input{background:#FFFFFF;color:#064E3B;border-color:#6EE7B7;}

.chat-reaction-chip{display:inline-flex;align-items:center;gap:2px;padding:2px 8px;min-height:44px;border:1px solid rgba(16,185,129,.4);border-radius:999px;background:rgba(4,13,12,.6);color:#E5E7EB;font-size:12px;cursor:pointer;}
.chat-reaction-chip-mine{border-color:#059669;background:rgba(5,150,105,.25);color:#fff;}
.chat-reaction-pick{padding:4px 8px;min-height:44px;min-width:44px;border:0;background:none;font-size:20px;cursor:pointer;border-radius:12px;}
.chat-reaction-pick:hover{background:rgba(6,40,33,.6);}
.chat-quote{display:block;width:100%;text-align:left;padding:6px 8px;margin-bottom:6px;border:0;border-left:3px solid #059669;border-radius:8px;background:rgba(4,13,12,.55);color:#A7F3D0;font-size:12px;cursor:pointer;}
.chat-typing-line{padding:4px 12px;font-size:12px;color:#6EE7B7;}

#chatPhotoViewer{position:fixed;inset:0;z-index:50;background:rgba(0,0,0,.92);display:flex;align-items:center;justify-content:center;padding:16px;}
#chatPhotoViewer.hidden{display:none!important;}
#chatPhotoViewerImg{max-width:100%;max-height:100%;object-fit:contain;border-radius:12px;}
#chatPhotoViewer button{position:absolute;top:16px;right:16px;padding:0 12px;min-height:44px;border-radius:12px;background:rgba(255,255,255,.12);color:#fff;font-size:14px;font-weight:700;border:0;cursor:pointer;}

/* ---- Set 9: LinkedIn upgrade ---- */
/* Repost: the original post attached below the repost. */
.repost-card{ border:1px solid var(--fva-border); border-radius:12px; padding:12px; display:grid; gap:8px; background:rgba(4,13,12,.4); min-width:0; }
.repost-card p{ overflow-wrap:anywhere; }
/* Organisation dashboard: horizontal carousel of recent posts. */
.org-recent-carousel{ display:flex; gap:10px; overflow-x:auto; scroll-snap-type:x mandatory; padding-bottom:4px; -webkit-overflow-scrolling:touch; }
.org-recent-card{ min-width:220px; max-width:260px; flex:0 0 auto; scroll-snap-align:start; border:1px solid var(--fva-border); border-radius:12px; padding:12px; display:grid; gap:6px; align-content:start; }
.org-recent-card p{ overflow-wrap:anywhere; }
/* Settings page: section menu + notes. */
#sectionSettings .settings-menu{ position:sticky; top:0; z-index:5; }
#sectionSettings select{ background:#fff; color:#111827; }
#sectionSettings input[type="checkbox"]{ width:18px; height:18px; flex-shrink:0; }
#sectionSettings details summary{ list-style:none; }
#sectionSettings details summary::-webkit-details-marker{ display:none; }

/* ---- Set 10: real account switch + drawer polish ---- */
/* Drawer geometry in plain CSS, so it holds with or without Tailwind.
   Panel: 320px on a phone, never wider than 92vw on a small screen. */
#profileDrawer .drawer-panel { width: min(320px, 92vw); }
/* Header: the avatar never squeezes into an oval. The name column (not the
   avatar) absorbs a narrow drawer, and the sub-line is the handle or email
   on one line, never a raw user ID. */
#profileDrawer .drawer-avatar-box { flex-shrink: 0; width: 40px; height: 40px; }
#profileDrawer .drawer-avatar-box img { width: 100%; height: 100%; object-fit: cover; border-radius: 9999px; }
#profileDrawer .drawer-identity-text { min-width: 0; flex: 1 1 auto; }
#profileDrawer .drawer-subline { display: block; font-size: 13px; line-height: 1.4; color: #9CA3AF; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-theme="light"] #profileDrawer .drawer-subline { color: var(--lt-text-2); }
/* X close button: a real 44px target, bright enough to see on the dark panel. */
#appMenuClose { min-width: 44px; min-height: 44px; flex-shrink: 0; color: #E5E7EB; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); border-radius: 9999px; }
/* Menu tiles: 54px tall and 10px group gaps, so the Pages group is fully
   visible at 800px viewport height without scrolling. Labels never break
   mid-word: 11px on one line, so "Notifications" reads in full. */
.app-menu-item { min-height: 54px; padding: 6px 4px; }
.app-menu-item span:not(.app-menu-count) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11px; }
/* Drawer compaction above the Pages group, so it fits without scrolling:
   group headings, connections card, brand mark, header and footer padding. */
#profileDrawer .app-menu-group h3 { margin: 6px 0 4px; }
#profileDrawer .side-profile-card { padding: 10px 12px; }
#profileDrawer .app-menu-mark { width: 32px; height: 32px; }
#profileDrawer .app-menu-brand { margin: 0 0 2px; }
#profileDrawer .drawer-scroll > * + * { margin-top: 10px; }
#profileDrawer .drawer-scroll > div:first-child { padding-bottom: 12px; }
#profileDrawer .drawer-panel { padding: 16px; }
#profileDrawer .drawer-panel > div:last-child { padding-top: 12px; }

/* Set 11 collaboration: co-authored posts. Plain CSS so the invite banner
   and the collaborator manager hold with or without Tailwind. */
.collab-banner{border:1px solid rgba(217,119,6,.5);background:rgba(69,26,3,.4);border-radius:12px;padding:12px}
.collab-manager{border:1px solid rgba(6,95,70,.4);border-radius:12px;padding:12px}

/* ==================== NEW DESIGN — dark forest shell ====================
   Port of the reference tokens (forest #050E0B/#081712/#0B1E18, Inter +
   Plus Jakarta Sans). Plain CSS only: no Tailwind CDN is shipped. */
:root{
  --fva-bg:#050E0B; --fva-bg-elev:#081712; --fva-card:#0B1E18; --fva-card-2:#0F271F;
  --fva-border:rgba(16,185,129,.18); --fva-text:#F1F5F9; --fva-text-soft:#CBD5E1;
  --fva-text-muted:#94A3B8; --fva-accent:#10B981; --fva-accent-strong:#047857;
  --fva-accent-text:#6EE7B7; --fva-amber:#FBBF24; --fva-gold:#FBBF24; --fva-deep:#081712;
  --fva-danger:#F87171;
  --forest-950:#050E0B; --forest-900:#081712; --forest-850:#0B1E18;
  --forest-800:#0F271F; --forest-700:#16382D; --forest-600:#1F4D3E;
  --fva-font:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
}
html{font-size:16px}
body{font-family:var(--fva-font);background:var(--fva-bg);color:var(--fva-text)}
.font-display{font-family:'Plus Jakarta Sans','Inter',system-ui,sans-serif}
#app-shell{position:relative;margin-left:auto;margin-right:auto;min-height:100vh;min-height:100dvh;width:100%;max-width:28rem;background:var(--forest-950);display:flex;flex-direction:column}
@media (min-width:640px){#app-shell{border-left:1px solid rgba(22,56,45,.6);border-right:1px solid rgba(22,56,45,.6);box-shadow:0 25px 50px -12px rgba(0,0,0,.5)}}
.nd-header{position:sticky;top:0;z-index:30;background:rgba(8,23,18,.9);backdrop-filter:blur(16px);border-bottom:1px solid rgba(251,191,36,.35)}
.app-header{background:rgba(8,23,18,.92);border-bottom:1px solid rgba(251,191,36,.35)}
.nd-logo-wrap{background:linear-gradient(to bottom right,#34D399,#10B981,#0F766E);padding:1.5px;box-shadow:0 0 24px -4px rgba(16,185,129,.28)}
.nd-logo-wrap .app-logo{width:32px;height:32px;display:block}
#main-scroll{flex:1;padding-left:16px;padding-right:16px;padding-top:14px}
.pb-safe-nav{padding-bottom:calc(6.5rem + env(safe-area-inset-bottom,0px))}
.bottom-nav-safe{padding-bottom:calc(.65rem + env(safe-area-inset-bottom,0px))}
.no-scrollbar::-webkit-scrollbar{display:none}
.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}
@keyframes ndSlideUp{from{transform:translateY(100%);opacity:.6}to{transform:translateY(0);opacity:1}}
.animate-slide-up{animation:ndSlideUp .26s cubic-bezier(.16,1,.3,1) forwards}
@keyframes ndFadeIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
.animate-fade-in{animation:ndFadeIn .22s ease-out forwards}
@keyframes ndPulseRing{0%,100%{box-shadow:0 0 0 0 rgba(16,185,129,.45)}50%{box-shadow:0 0 0 5px rgba(16,185,129,0)}}
.pulse-ring{animation:ndPulseRing 2.4s infinite}
@keyframes ndPulse{0%,100%{opacity:1}50%{opacity:.5}}
@keyframes ndSpin{to{transform:rotate(360deg)}}
/* Views sit inside #main-scroll now: the old per-section padding is dropped
   (messages/settings/keptTabs keep their own 16px). */
#view-home,#view-jobs,#view-network,#view-notifications,#view-more{padding:0}
#sectionMessages,#sectionSettings{padding:16px}
/* Set 93: kept tabs (squads, groups, organisations, pulse) sit outside
   #main-scroll, so they need the same nav clearance the main views get
   (108px + safe-area); 16px left the last ~72px of content behind the
   fixed 88px bottom nav. */
#keptTabs{padding:16px;padding-bottom:calc(108px + env(safe-area-inset-bottom, 0px))}
/* Set 93: scrollIntoView({block:'end'}) aligns the target's bottom edge with
   the viewport bottom, which sits behind the fixed bottom nav, so the 108px
   padding above fixes max scroll but NOT the scroll-into-view path. The root
   scroller needs the same clearance as scroll-padding so a scrolled-to
   element stops above the nav. Phone only: at >=768px the nav is a sticky
   top bar, not a fixed bottom bar. */
@media (max-width: 767px) {
  html { scroll-padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px)); }
}
/* Bottom nav: frosted forest bar; .is-active is the plain-CSS active state. */
nav.app-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);z-index:30;width:100%;max-width:28rem;background:rgba(5,14,11,.92);backdrop-filter:blur(16px);border-top:1px solid rgba(22,56,45,.85)}
.nav-btn{min-height:44px}
.nav-btn.is-active{color:#34D399}
.nav-btn.is-active span:last-child{font-weight:600}
/* Filter pills: .is-active is the plain-CSS active state. */
.filter-chip.is-active{background:#10B981!important;color:#050E0B!important;border-color:transparent!important;font-weight:600}
/* Feed cards in the new shell. */
#feed-container .glass-card,#view-jobs .glass-card,#view-network .glass-card{background:rgba(11,30,24,.95);border-color:rgba(22,56,45,.8)}
/* Sheets, viewer and drawer sit above the nav. */
#composer-modal,#moment-modal,#moment-viewer,#messages-drawer{z-index:50}
#toast{transition:opacity .2s ease,transform .2s ease}
/* Chat room inside the new shell: fills the space above the fixed nav. */
#chatRoomView{min-width:0}
#chatRoomView.hidden{display:none!important}
/* Feed-mode pill active state (setModeButtons writes this token). */
.mode-after-active{background:#B45309;color:#fff}
/* ---- generated no-Tailwind utility layer (from the shipped markup) ---- */

.-mt-4{margin-top:-16px}
.-mx-4{margin-left:-16px;margin-right:-16px}
.-right-1{right:-4px}
.-top-1{top:-4px}
.-translate-x-1\/2{transform:translateX(-50%)}
.absolute{position:absolute}
.active\:scale-95:active{transform:scale(0.95)}
.animate-fade-in{animation:ndFadeIn .22s ease-out forwards}
.animate-pulse{animation:ndPulse 2s cubic-bezier(.4,0,.6,1) infinite}
.animate-slide-up{animation:ndSlideUp .26s cubic-bezier(.16,1,.3,1) forwards}
.backdrop-blur-md{backdrop-filter:blur(12px)}
.backdrop-blur-sm{backdrop-filter:blur(4px)}
.backdrop-blur-xl{backdrop-filter:blur(24px)}
.bg-\[\#040d0c\]{background-color:#040d0c}
.bg-\[\#040d0c\]\/40{background-color:rgba(4,13,12,0.4)}
.bg-\[\#040d0c\]\/60{background-color:rgba(4,13,12,0.6)}
.bg-\[\#040d0c\]\/80{background-color:rgba(4,13,12,0.8)}
.bg-\[\#0b201d\]{background-color:#0b201d}
.bg-\[\#0b201d\]\/60{background-color:rgba(11,32,29,0.6)}
.bg-\[\#0b201d\]\/90{background-color:rgba(11,32,29,0.9)}
.bg-amber-400{background-color:#FBBF24}
.bg-black{background-color:#000000}
.bg-black\/40{background-color:rgba(0,0,0,0.4)}
.bg-black\/60{background-color:rgba(0,0,0,0.6)}
.bg-black\/70{background-color:rgba(0,0,0,0.7)}
.bg-black\/75{background-color:rgba(0,0,0,0.75)}
.bg-black\/90{background-color:rgba(0,0,0,0.9)}
.bg-emerald-400{background-color:#34D399}
.bg-emerald-500\/10{background-color:rgba(16,185,129,0.1)}
.bg-emerald-500\/12{background-color:rgba(16,185,129,0.12)}
.bg-emerald-500\/15{background-color:rgba(16,185,129,0.15)}
.bg-emerald-700{background-color:#047857}
.bg-emerald-950\/30{background-color:rgba(2,44,34,0.3)}
.bg-emerald-950\/40{background-color:rgba(2,44,34,0.4)}
.bg-emerald-950\/50{background-color:rgba(2,44,34,0.5)}
.bg-emerald-950\/60{background-color:rgba(2,44,34,0.6)}
.bg-emerald-950\/80{background-color:rgba(2,44,34,0.8)}
.bg-forest-600{background-color:#1F4D3E}
.bg-forest-800\/95{background-color:rgba(15,39,31,0.95)}
.bg-forest-850{background-color:#0B1E18}
.bg-forest-850\/90{background-color:rgba(11,30,24,0.9)}
.bg-forest-850\/95{background-color:rgba(11,30,24,0.95)}
.bg-forest-900{background-color:#081712}
.bg-forest-950{background-color:#050E0B}
.bg-forest-950\/90{background-color:rgba(5,14,11,0.9)}
.bg-forest-950\/92{background-color:rgba(5,14,11,0.92)}
.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-from),var(--tw-via,var(--tw-to)),var(--tw-to))}
.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-from),var(--tw-via,var(--tw-to)),var(--tw-to))}
.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-from),var(--tw-via,var(--tw-to)),var(--tw-to))}
.bg-gradient-to-tr{background-image:linear-gradient(to top right,var(--tw-from),var(--tw-via,var(--tw-to)),var(--tw-to))}
.bg-gray-100{background-color:#F3F4F6}
.bg-red-600{background-color:#DC2626}
.bg-red-950\/40{background-color:rgba(69,10,10,0.4)}
.bg-transparent{background-color:transparent}
.bg-white\/10{background-color:rgba(255,255,255,0.1)}
.bg-white\/15{background-color:rgba(255,255,255,0.15)}
.block{display:block}
.border{border-width:1px;border-style:solid}
.border-2{border-width:2px;border-style:solid}
.border-\[\#0b201d\]{border-color:#0b201d}
.border-b{border-bottom-width:1px;border-bottom-style:solid}
.border-dashed{border-style:dashed}
.border-emerald-400\/50{border-color:rgba(52,211,153,0.5)}
.border-emerald-500\/25{border-color:rgba(16,185,129,0.25)}
.border-emerald-500\/30{border-color:rgba(16,185,129,0.3)}
.border-emerald-500\/35{border-color:rgba(16,185,129,0.35)}
.border-emerald-500\/40{border-color:rgba(16,185,129,0.4)}
.border-emerald-500\/70{border-color:rgba(16,185,129,0.7)}
.border-emerald-800\/40{border-color:rgba(6,95,70,0.4)}
.border-emerald-800\/50{border-color:rgba(6,95,70,0.5)}
.border-emerald-900\/20{border-color:rgba(6,78,59,0.2)}
.border-emerald-900\/40{border-color:rgba(6,78,59,0.4)}
.border-emerald-900\/60{border-color:rgba(6,78,59,0.6)}
.border-forest-600{border-color:#1F4D3E}
.border-forest-700{border-color:#16382D}
.border-forest-700\/60{border-color:rgba(22,56,45,0.6)}
.border-forest-700\/70{border-color:rgba(22,56,45,0.7)}
.border-forest-700\/80{border-color:rgba(22,56,45,0.8)}
.border-forest-700\/85{border-color:rgba(22,56,45,0.85)}
.border-forest-700\/90{border-color:rgba(22,56,45,0.9)}
.border-l{border-left-width:1px;border-left-style:solid}
.border-red-800\/40{border-color:rgba(153,27,27,0.4)}
.border-red-900\/40{border-color:rgba(127,29,29,0.4)}
.border-t{border-top-width:1px;border-top-style:solid}
.border-x{border-left-width:1px;border-right-width:1px;border-style:solid}
.bottom-0{bottom:0}
.break-all{word-break:break-all}
.break-words{overflow-wrap:break-word}
.cursor-pointer{cursor:pointer}
.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}
.disabled\:opacity-35:disabled{opacity:0.35}
.duration-200{transition-duration:200ms}
.fixed{position:fixed}
.flex{display:flex}
.flex-1{flex:1 1 0%}
.flex-col{flex-direction:column}
.flex-shrink-0{flex-shrink:0}
.flex-wrap{flex-wrap:wrap}
.focus-within\:border-emerald-400\/70:focus-within{border-color:rgba(52,211,153,0.7)}
.focus-within\:ring-2:focus-within{box-shadow:0 0 0 2px var(--tw-ring-color,rgba(0,0,0,0))}
.focus-within\:ring-emerald-500\/15:focus-within{--tw-ring-color:rgba(16,185,129,0.15)}
.focus\:border-emerald-400:focus{border-color:#34D399}
.focus\:border-emerald-500:focus{border-color:#10B981}
.focus\:outline-none:focus{outline:none}
.font-bold{font-weight:700}
.font-display{font-family:"Plus Jakarta Sans","Inter",system-ui,sans-serif}
.font-medium{font-weight:500}
.font-semibold{font-weight:600}
.from-amber-500{--tw-from:#F59E0B}
.from-emerald-400{--tw-from:#34D399}
.from-emerald-800{--tw-from:#065F46}
.from-emerald-900{--tw-from:#064E3B}
.from-forest-800{--tw-from:#0F271F}
.gap-1{gap:4px}
.gap-1\.5{gap:6px}
.gap-2\.5{gap:10px}
.gap-3{gap:12px}
.gap-3\.5{gap:14px}
.gap-4{gap:16px}
.grid{display:grid}
.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}
.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}
.group:hover .group-hover\:scale-105{transform:scale(1.05)}
.h-1{height:4px}
.h-10{height:40px}
.h-12{height:48px}
.h-14{height:56px}
.h-2{height:8px}
.h-2\.5{height:10px}
.h-3{height:12px}
.h-3\.5{height:14px}
.h-4{height:16px}
.h-5{height:20px}
.h-6{height:24px}
.h-8{height:32px}
.h-9{height:36px}
.h-\[18px\]{height:18px}
.h-full{height:100%}
.hidden{display:none}
.hover\:bg-emerald-400:hover{background-color:#34D399}
.hover\:bg-emerald-900\/30:hover{background-color:rgba(6,78,59,0.3)}
.hover\:bg-emerald-900\/40:hover{background-color:rgba(6,78,59,0.4)}
.hover\:bg-emerald-950\/30:hover{background-color:rgba(2,44,34,0.3)}
.hover\:bg-emerald-950\/60:hover{background-color:rgba(2,44,34,0.6)}
.hover\:bg-forest-700\/60:hover{background-color:rgba(22,56,45,0.6)}
.hover\:bg-forest-800:hover{background-color:#0F271F}
.hover\:bg-forest-800\/60:hover{background-color:rgba(15,39,31,0.6)}
.hover\:bg-forest-900:hover{background-color:#081712}
.hover\:bg-red-600:hover{background-color:#DC2626}
.hover\:bg-red-900\/30:hover{background-color:rgba(127,29,29,0.3)}
.hover\:bg-white\/20:hover{background-color:rgba(255,255,255,0.2)}
.hover\:border-emerald-500\/40:hover{border-color:rgba(16,185,129,0.4)}
.hover\:border-emerald-500\/50:hover{border-color:rgba(16,185,129,0.5)}
.hover\:scale-110:hover{transform:scale(1.1)}
.hover\:scale-125:hover{transform:scale(1.25)}
.hover\:text-slate-200:hover{color:#E2E8F0}
.hover\:underline:hover{text-decoration-line:underline}
.inline-flex{display:inline-flex}
.inset-0{top:0;right:0;bottom:0;left:0}
.items-center{align-items:center}
.items-end{align-items:flex-end}
.items-start{align-items:flex-start}
.justify-between{justify-content:space-between}
.justify-center{justify-content:center}
.justify-end{justify-content:flex-end}
.justify-start{justify-content:flex-start}
.leading-none{line-height:1}
.leading-relaxed{line-height:1.625}
.leading-snug{line-height:1.375}
.left-1\/2{left:50%}
.left-3\.5{left:14px}
.left-4{left:16px}
@media (min-width:1024px){.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}
.max-h-52{max-height:208px}
.max-h-96{max-height:384px}
.max-h-\[220px\]{max-height:220px}
.max-h-\[300px\]{max-height:300px}
.max-h-\[520px\]{max-height:520px}
.max-h-\[80vh\]{max-height:80vh}
.max-h-\[90vh\]{max-height:90vh}
.max-w-lg{max-width:32rem}
.max-w-md{max-width:28rem}
.max-w-sm{max-width:24rem}
.mb-1{margin-bottom:4px}
.mb-1\.5{margin-bottom:6px}
.mb-2{margin-bottom:8px}
.mb-3{margin-bottom:12px}
@media (min-width:768px){.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}
.min-h-0{min-height:0}
.min-h-\[140px\]{min-height:140px}
.min-h-\[18px\]{min-height:18px}
.min-h-\[32px\]{min-height:32px}
.min-h-\[36px\]{min-height:36px}
.min-h-\[44px\]{min-height:44px}
.min-h-\[56px\]{min-height:56px}
.min-h-screen{min-height:100vh}
.min-w-0{min-width:0}
.min-w-\[18px\]{min-width:18px}
.min-w-\[44px\]{min-width:44px}
.ml-1{margin-left:4px}
.ml-2{margin-left:8px}
.ml-6{margin-left:24px}
.mr-2\.5{margin-right:10px}
.mt-0\.5{margin-top:2px}
.mt-1{margin-top:4px}
.mt-1\.5{margin-top:6px}
.mt-2{margin-top:8px}
.mt-3{margin-top:12px}
.mt-4{margin-top:16px}
.mx-auto{margin-left:auto;margin-right:auto}
.object-contain{object-fit:contain}
.object-cover{object-fit:cover}
.opacity-0{opacity:0.0}
.overflow-hidden{overflow:hidden}
.overflow-x-auto{overflow-x:auto}
.overflow-y-auto{overflow-y:auto}
.p-0\.5{padding:2px}
.p-1{padding:4px}
.p-1\.5{padding:6px}
.p-2{padding:8px}
.p-2\.5{padding:10px}
.p-3{padding:12px}
.p-3\.5{padding:14px}
.p-4{padding:16px}
.p-5{padding:20px}
.p-6{padding:24px}
.p-\[1\.5px\]{padding:1.5px}
.pb-0\.5{padding-bottom:2px}
.pb-1{padding-bottom:4px}
.pb-2{padding-bottom:8px}
.pb-2\.5{padding-bottom:10px}
.pb-24{padding-bottom:96px}
.pb-3{padding-bottom:12px}
.pb-4{padding-bottom:16px}
.pb-6{padding-bottom:24px}
.pl-10{padding-left:40px}
.pl-3{padding-left:12px}
.placeholder-emerald-200\/45::placeholder{color:rgba(167,243,208,0.45)}
.placeholder-slate-400::placeholder{color:#94A3B8}
.pointer-events-none{pointer-events:none}
.pr-1{padding-right:4px}
.pr-4{padding-right:16px}
.pt-1{padding-top:4px}
.pt-2{padding-top:8px}
.pt-2\.5{padding-top:10px}
.pt-3{padding-top:12px}
.pt-3\.5{padding-top:14px}
.pt-4{padding-top:16px}
.px-1{padding-left:4px;padding-right:4px}
.px-1\.5{padding-left:6px;padding-right:6px}
.px-2{padding-left:8px;padding-right:8px}
.px-2\.5{padding-left:10px;padding-right:10px}
.px-3{padding-left:12px;padding-right:12px}
.px-3\.5{padding-left:14px;padding-right:14px}
.px-4{padding-left:16px;padding-right:16px}
.py-0\.5{padding-top:2px;padding-bottom:2px}
.py-1{padding-top:4px;padding-bottom:4px}
.py-1\.5{padding-top:6px;padding-bottom:6px}
.py-2{padding-top:8px;padding-bottom:8px}
.py-2\.5{padding-top:10px;padding-bottom:10px}
.py-3{padding-top:12px;padding-bottom:12px}
.py-3\.5{padding-top:14px;padding-bottom:14px}
.py-8{padding-top:32px;padding-bottom:32px}
.relative{position:relative}
.resize-none{resize:none}
.right-0{right:0}
.right-2{right:8px}
.right-3{right:12px}
.right-4{right:16px}
.ring-2{box-shadow:0 0 0 2px var(--tw-ring-color,rgba(0,0,0,0))}
.ring-forest-950{--tw-ring-color:#050E0B}
.rounded{border-radius:4px}
.rounded-2xl{border-radius:16px}
.rounded-3xl{border-radius:24px}
.rounded-\[10\.5px\]{border-radius:10.5px}
.rounded-full{border-radius:9999px}
.rounded-lg{border-radius:8px}
.rounded-md{border-radius:6px}
.rounded-t-3xl{border-top-left-radius:24px;border-top-right-radius:24px}
.rounded-tl-none{border-top-left-radius:0}
.rounded-tr-none{border-top-right-radius:0}
.rounded-xl{border-radius:12px}
.shadow{box-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1)}
.shadow-2xl{box-shadow:0 25px 50px -12px rgba(0,0,0,.25)}
.shadow-emerald-900\/50{--tw-shadow-color:rgba(6,78,59,0.5)}
.shadow-md{box-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1)}
.shadow-sheet{box-shadow:0 -12px 40px rgba(0,0,0,.65)}
.shadow-sm{box-shadow:0 1px 2px 0 rgba(0,0,0,.05)}
.shadow-xl{box-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1)}
.shrink-0{flex-shrink:0}
@media (min-width:640px){.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}
.space-y-1>*+*{margin-top:4px}
.space-y-2>*+*{margin-top:8px}
.space-y-2\.5>*+*{margin-top:10px}
.space-y-3>*+*{margin-top:12px}
.space-y-3\.5>*+*{margin-top:14px}
.space-y-4>*+*{margin-top:16px}
.space-y-6>*+*{margin-top:24px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.sticky{position:sticky}
.text-2xl{font-size:24px}
.text-\[10px\]{font-size:10px}
.text-\[11px\]{font-size:11px}
.text-\[9px\]{font-size:9px}
.text-amber-200{color:#FDE68A}
.text-base{font-size:16px}
.text-center{text-align:center}
.text-emerald-300\/65{color:rgba(110,231,183,0.65)}
.text-emerald-300\/70{color:rgba(110,231,183,0.7)}
.text-emerald-300\/80{color:rgba(110,231,183,0.8)}
.text-emerald-700{color:#047857}
.text-forest-950{color:#050E0B}
.text-gray-700{color:#374151}
.text-left{text-align:left}
.text-purple-400{color:#C084FC}
.text-red-600{color:#DC2626}
.text-right{text-align:right}
.text-sky-400{color:#38BDF8}
.text-slate-100{color:#F1F5F9}
.text-slate-200{color:#E2E8F0}
.text-slate-400{color:#94A3B8}
.text-slate-500{color:#64748B}
.text-xl{font-size:20px}
.to-amber-300{--tw-to:#FCD34D}
.to-amber-800{--tw-to:#92400E}
.to-blue-500{--tw-to:#3B82F6}
.to-forest-950{--tw-to:#050E0B}
.to-teal-950{--tw-to:#042F2E}
.top-0{top:0}
.top-16{top:64px}
.top-2{top:8px}
.top-3{top:12px}
.top-\[72px\]{top:72px}
.tracking-tight{letter-spacing:-0.025em}
.tracking-wider{letter-spacing:0.05em}
.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}
.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}
.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.underline{text-decoration-line:underline}
.underline-offset-2{text-underline-offset:2px}
.uppercase{text-transform:uppercase}
.via-emerald-400{--tw-via:#34D399}
.via-forest-850{--tw-via:#0B1E18}
.via-forest-900{--tw-via:#081712}
.via-teal-900{--tw-via:#134E4A}
.w-1\/3{width:33.3333%}
.w-10{width:40px}
.w-12{width:48px}
.w-14{width:56px}
.w-2{width:8px}
.w-2\.5{width:10px}
.w-2\/3{width:66.6667%}
.w-24{width:96px}
.w-3\.5{width:14px}
.w-4{width:16px}
.w-5{width:20px}
.w-6{width:24px}
.w-72{width:288px}
.w-8{width:32px}
.w-9{width:36px}
.w-full{width:100%}
.whitespace-nowrap{white-space:nowrap}
.whitespace-pre-wrap{white-space:pre-wrap}
.z-10{z-index:10}
.z-30{z-index:30}
.z-50{z-index:50}
.hidden{display:none!important}

/* ---- Set 12 music ---- */
.music-card{border:1px solid var(--fva-border);border-radius:12px;padding:12px;display:grid;gap:8px;background:rgba(4,13,12,.4);min-width:0}
.music-card-head{display:flex;align-items:center;gap:8px;min-width:0}
.music-service-badge{flex-shrink:0;font-size:11px;font-weight:700;color:#a7f3d0;background:rgba(16,185,129,.15);border:1px solid rgba(16,185,129,.35);border-radius:9999px;padding:2px 8px}
.music-title{font-size:13px;color:#e5e7eb;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.music-embed{width:100%;border:0;border-radius:12px;display:block;background:#000}
.music-open{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 12px;border-radius:12px;background:#059669;color:#fff;font-size:12px;font-weight:700;text-decoration:none}
.music-open:hover{background:#10b981}
.music-tapload{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:64px;border:1px dashed rgba(16,185,129,.4);border-radius:12px;background:#071a17;color:#d1fae5;font-size:13px;cursor:pointer}
.audio-tapload-card{min-height:64px}

/* ---- Set 13 reels + people you may know ---- */
.reels-wrap{position:relative;width:100%;height:100dvh;max-width:480px;margin:0 auto;background:#000;overflow:hidden}
.reels-stage{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#000}
.reel-video{width:100%;height:100%;object-fit:cover}
/* Set 40: a video that fails never shows black. The error tile says what
   happened and offers a retry. Calm motion only, none under
   prefers-reduced-motion. */
/* Set 45: premium error state. The tile clears the right rail (the rail is
   ~68px wide at right:10px, so the tile keeps an 88px right gutter on
   phones) and the message lives in a designed card, not a bare line. */
.reel-error-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;padding:24px;background:#0B0F0E}
.reel-error-card{display:flex;flex-direction:column;align-items:center;gap:12px;width:100%;max-width:300px;padding:28px 22px 24px;border-radius:20px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.14);box-shadow:0 12px 40px rgba(0,0,0,.5);text-align:center}
.reel-error-icon{width:56px;height:56px;border-radius:9999px;background:rgba(16,185,129,.16);border:1px solid rgba(16,185,129,.4);display:flex;align-items:center;justify-content:center}
.reel-error-title{color:#fff;font-size:16px;font-weight:700;line-height:1.5;margin:0}
.reel-error-text{color:#D1D5DB;font-size:14px;line-height:1.6;margin:0}
.reel-error-retry{min-width:44px;min-height:44px;border-radius:999px;background:#059669;color:#fff;font-weight:700;font-size:14px;padding:0 24px;cursor:pointer;border:none;box-shadow:0 4px 16px rgba(5,150,105,.45);margin-top:4px}
@media (max-width:600px){.reel-error-tile{padding:24px 88px 24px 24px}.reel-error-card{max-width:100%}}
/* Set 45: premium loading state. Centred over the video, pointer-transparent
   so a tap still toggles play, and it keeps the same right gutter as the
   error tile so long text never runs under the rail. */
.reel-loading{position:absolute;inset:0;z-index:3;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;pointer-events:none}
.reel-loading-ring{width:44px;height:44px;border-radius:9999px;border:3px solid rgba(255,255,255,.22);border-top-color:#10b981;animation:reel-spin 0.9s linear infinite}
.reel-loading-text{color:#d1d5db;font-size:13px;font-weight:600;text-shadow:0 1px 4px rgba(0,0,0,.8)}
@keyframes reel-spin{to{transform:rotate(360deg)}}
@media (max-width:600px){.reel-loading{padding-right:88px}}
@media (prefers-reduced-motion:reduce){.reel-loading-ring{animation:none;border-top-color:rgba(255,255,255,.22)}}
.reel-offline-note{color:#FBBF24;font-size:12px;line-height:1.5;margin:6px 0 0 0}
/* ---- Set 66: feed offline note + queued-actions sheet + offline videos picker ---- */
/* The feed note is amber on dark like .reel-offline-note; in Light it uses a
   darker amber so the text stays readable on a light feed. The sheets reuse
   .post-sheet, so they stay dark in both themes exactly like the post sheet. */
.feed-offline-note{display:block;width:100%;text-align:left;color:#FBBF24;background:rgba(251,191,36,.08);border:1px solid rgba(251,191,36,.35);border-radius:12px;font-size:12px;line-height:1.5;font-weight:700;padding:10px 12px;margin:0 0 8px 0;min-height:44px;cursor:pointer}
html[data-theme="light"] .feed-offline-note{color:var(--lt-warn);background:rgba(146,64,14,.07);border-color:rgba(146,64,14,.3)}
.feed-outbox-row{display:flex;align-items:flex-start;gap:10px;padding:10px 0;border-bottom:1px solid rgba(255,255,255,.08)}
.feed-outbox-waiting{color:#9CA3AF}
.feed-outbox-failed{color:#F87171}
/* Light-theme pin: the two sheets stay dark in both themes, but the inline
   light-theme remap in index.html turns the text utilities dark in Light
   (.text-gray-200 -> #1F2937, .text-gray-400 -> #4B5563, .text-red-400 ->
   #B91C1C) — dark-on-dark on the #040D0C sheet (the row label measured
   1.34:1). Pin the dark-theme text colours back inside these two sheets
   only; the sheet IDs outrank the remap, so this wins in both orders. */
html[data-theme="light"] #feedOutboxSheet .text-gray-200,
html[data-theme="light"] #offlineVideosSheet .text-gray-200{color:var(--lt-border)}
html[data-theme="light"] #feedOutboxSheet .text-gray-400,
html[data-theme="light"] #offlineVideosSheet .text-gray-400{color:var(--lt-muted)}
html[data-theme="light"] #feedOutboxSheet .text-red-400,
html[data-theme="light"] #offlineVideosSheet .text-red-400{color:#F87171}
.offline-video-check{width:20px;height:20px;min-width:20px;margin-top:2px;accent-color:#10b981}
.feed-video-offline{color:var(--fva-text-muted);font-size:13px;line-height:1.6;margin:8px 0 0 0}
.reel-tapload{min-height:64px;padding:14px 18px;border-radius:14px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.25);color:#fff;font-size:13px;font-weight:700}
.reel-empty{color:#d1d5db;font-size:14px;text-align:center;padding:0 24px}
.reel-close{position:absolute;top:12px;left:12px;z-index:5;width:44px;height:44px;border-radius:9999px;background:rgba(0,0,0,.55);color:#fff;font-size:16px;font-weight:700}
/* Set 40: prev/next live inside .reels-rail as flow items, so they can
   never overlap the like/comment/share buttons. The old absolute
   top:calc(50%...) anchors collided with the rail, which is anchored from
   the bottom: at 375x667 the prev button sat inside the rail's own span. */
.reel-nav{position:static;z-index:5;width:44px;height:44px;border-radius:9999px;background:rgba(0,0,0,.55);border:1px solid rgba(255,255,255,.22);backdrop-filter:blur(6px);color:#fff;font-size:14px;flex-shrink:0}
.reels-rail{position:absolute;right:10px;bottom:190px;z-index:5;display:flex;flex-direction:column;gap:12px;align-items:center;max-height:calc(100dvh - 200px);max-height:calc(100svh - 200px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none}
.reels-rail::-webkit-scrollbar{display:none}
.reel-rail-btn{min-width:52px;min-height:44px;padding:6px 8px;border-radius:12px;background:rgba(0,0,0,.55);border:1px solid rgba(255,255,255,.22);backdrop-filter:blur(6px);color:#fff;font-size:13px;font-weight:700;text-align:center}
.reel-rail-btn.is-on{background:rgba(16,185,129,.75);border-color:rgba(255,255,255,.35)}
.reels-meta{position:absolute;left:12px;right:76px;bottom:110px;z-index:5;color:#fff}
.reel-creator-name{font-weight:700;font-size:14px}
.reel-follow-btn{padding:6px 12px;min-height:44px;border-radius:9999px;background:#047857;color:#fff;font-size:12px;font-weight:700}
.reel-follow-btn.is-following{background:rgba(255,255,255,.2)}
.reel-caption{font-size:13px;margin-top:8px;overflow-wrap:anywhere}
.reel-music-line{font-size:12px;margin-top:6px;color:#d1d5db}
.reel-music-link{color:#a7f3d0;font-weight:600}
.reel-counter{font-size:12px;margin-top:6px;color:#E5E7EB;text-shadow:0 1px 3px rgba(0,0,0,.8)}
.reel-views{font-size:12px;margin-top:2px;color:#E5E7EB;text-shadow:0 1px 3px rgba(0,0,0,.8)}
.reels-commentbar{position:absolute;left:0;right:0;bottom:0;z-index:6;display:flex;align-items:center;gap:4px;padding:10px 10px calc(10px + env(safe-area-inset-bottom));background:linear-gradient(transparent,rgba(0,0,0,.85))}
/* Set 45: the comment-bar amenity buttons were bare UA buttons (white
   squares over the dark bar). They now match the rail: dark translucent
   pills with a hairline border, so the bar reads as one designed surface. */
.reel-emoji-btn{width:44px;height:44px;font-size:22px;flex-shrink:0;border-radius:12px;background:rgba(0,0,0,.55);border:1px solid rgba(255,255,255,.22);color:#fff;display:flex;align-items:center;justify-content:center}
#reelCommentInput{flex:1;min-width:0;height:44px;border-radius:9999px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.25);color:#fff;padding:0 10px;font-size:13px}
#reelCommentInput::placeholder{color:#d1d5db}
.reel-send-btn{padding:0 8px;height:44px;border-radius:9999px;background:#047857;color:#fff;font-size:13px;font-weight:700;flex-shrink:0}
.reels-emoji-picker{position:absolute;left:12px;right:12px;bottom:70px;z-index:7;padding:8px;border-radius:14px;background:rgba(0,0,0,.85);border:1px solid rgba(255,255,255,.2)}
.reels-comments{position:absolute;left:0;right:0;bottom:0;z-index:8;max-height:55%;overflow-y:auto;padding:14px;border-radius:18px 18px 0 0;background:#0b0f0e;border-top:1px solid rgba(255,255,255,.15)}
/* ---- Set 48 reels swipe/scroll ---- */
/* The viewer owns vertical gestures: the stage and the caption area follow
   the finger in JS, so the browser must not turn the drag into a page
   scroll (touch-action:none). The comments panel keeps native scrolling
   and cannot chain out of the viewer (overscroll-behavior:contain). */
#reelsView{overscroll-behavior:none}
.reels-stage{touch-action:none}
.reels-meta{touch-action:none}
.reels-comments{overscroll-behavior:contain}
/* People you may know */
.pymk-row{display:flex;gap:12px;overflow-x:auto;scrollbar-width:none;padding:2px}
.pymk-row::-webkit-scrollbar{display:none}
.pymk-person{flex:0 0 148px;display:flex;flex-direction:column;align-items:center;gap:6px;padding:12px 8px;border-radius:16px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);text-align:center}
.pymk-name{font-size:13px;font-weight:700;color:#fff;overflow-wrap:anywhere}
.pymk-sub{font-size:12px;color:var(--fva-text-muted);line-height:1.3;overflow-wrap:anywhere}
.pymk-add{width:100%;min-height:44px;border-radius:8px;background:#059669;color:#fff;font-size:12px;font-weight:700}
.pymk-add:disabled{opacity:.6}
.pymk-remove{width:100%;min-height:44px;border-radius:8px;background:rgba(255,255,255,.08);color:#e5e7eb;font-size:12px;font-weight:700}
/* Liked reels */
.liked-reels-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.liked-reel-thumb{position:relative;aspect-ratio:9/16;border-radius:12px;overflow:hidden;background:#000;text-align:left}
.liked-reel-video{width:100%;height:100%;object-fit:cover}
.liked-reel-name{position:absolute;left:6px;right:6px;bottom:6px;font-size:11px;font-weight:700;color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.8);overflow-wrap:anywhere}
.liked-reel-views{position:absolute;left:6px;top:6px;font-size:11px;font-weight:700;color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.8)}
#reelToggleBtn.is-on{background:#10b981;color:#fff;border-color:#10b981}

/* ---- Set 14 feed display + floating pill nav + overlay clearance ---- */
.grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}
/* Content padding clears the pill: pill height (~56px) + 12px float offset
   + safe-area + 16px gap. Measured in the render test (see AUDIT §5);
   7.5rem is the measured pill geometry plus margin, not a guess. */
.pb-safe-nav{padding-bottom:calc(7.5rem + env(safe-area-inset-bottom,0px))}
@media (max-width:767px){
  /* Bottom nav (bar removal): the floating pill container is gone on purpose; the six icons sit bare on the feed, fixed in the same place. */
  nav.app-nav.nav-pill{position:fixed;bottom:calc(12px + env(safe-area-inset-bottom,0px));left:50%;transform:translateX(-50%);top:auto;z-index:30;width:calc(100% - 24px);max-width:26rem;background:transparent;backdrop-filter:none;border:0;border-top:0;border-radius:0;box-shadow:none;padding:6px 8px;}
  nav.app-nav.nav-pill .nav-row{max-width:100%;gap:2px;}
  nav.app-nav.nav-pill .nav-row>button{position:relative;flex:1 1 0;min-width:0;min-height:44px;padding:6px 2px;display:flex;flex-direction:column;align-items:center;justify-content:center;}
  nav.app-nav.nav-pill .nav-row>button svg{width:22px;height:22px;margin-bottom:0;}
  nav.app-nav.nav-pill .nav-row>button span{max-width:100%;}
  .nav-pill-avatar-img{width:28px;height:28px;border-radius:9999px;object-fit:cover;display:block;}
  .nav-pill-avatar-text{font-size:11px;font-weight:700;color:#F59E0B;line-height:28px;}
  #reelsBadge{position:absolute;top:0;right:4px;min-width:16px;height:16px;padding:0 4px;border-radius:9999px;background:#DC2626;color:#fff;font-size:10px;font-weight:700;display:flex;align-items:center;justify-content:center;}
  #reelsBadge.hidden{display:none;}
}
/* Post cards: story ring, "..." menu, engagement row. */
.post-card{position:relative;}
.post-avatar-ring{display:inline-flex;padding:2.5px;border-radius:9999px;flex-shrink:0;}
.post-avatar-ring.has-story{background:linear-gradient(135deg,#F59E0B,#10B981,#3B82F6);}
.post-avatar-ring img{border:2px solid #0b201d;}
.post-menu-btn,.post-dismiss-btn{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;border-radius:9999px;color:#9CA3AF;font-weight:700;border:0;background:transparent;cursor:pointer;}
.post-menu-btn:hover,.post-dismiss-btn:hover{background:rgba(6,40,33,.6);color:#fff;}
.post-engagement-row{display:flex;align-items:center;justify-content:space-between;gap:8px;}
.post-engagement-counts{font-size:13px;color:var(--fva-text-muted);white-space:nowrap;}

/* ---- Set 15 menu upgrade: profile card, shortcuts, FVA70K apps ---- */
.menu-profile-card{padding:16px;}
.menu-switch-btn{min-height:44px;padding:8px 12px;border-radius:9999px;background:rgba(6,40,33,.6);border:1px solid rgba(22,56,45,.9);color:#34D399;font-size:12px;font-weight:700;cursor:pointer;white-space:nowrap;}
.menu-switch-btn:hover{background:rgba(6,40,33,.9);}
.menu-shortcuts-row{display:flex;gap:8px;overflow-x:auto;padding:2px 0 6px;-webkit-overflow-scrolling:touch;}
.menu-shortcut{flex:0 0 auto;display:flex;flex-direction:column;align-items:center;gap:4px;min-width:64px;min-height:54px;padding:8px 6px;border-radius:16px;background:rgba(6,40,33,.5);border:1px solid rgba(22,56,45,.8);color:#E5E7EB;font-size:11px;font-weight:600;cursor:pointer;}
.menu-shortcut svg,.menu-shortcut i{width:20px;height:20px;color:#34D399;}
.menu-shortcut span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:64px;}
.menu-section-toggle{display:flex;width:100%;align-items:center;justify-content:space-between;min-height:44px;padding:0 2px;border:0;background:transparent;cursor:pointer;text-align:left;}
.menu-section-title{font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#9CA3AF;}
.menu-chevron{font-size:14px;color:#9CA3AF;transition:transform .15s ease;}
.menu-section-toggle[aria-expanded="false"] .menu-chevron{transform:rotate(-90deg);}
.fva-apps-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
.fva-app-card{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-height:96px;padding:12px;border-radius:16px;background:rgba(6,40,33,.5);border:1px solid rgba(22,56,45,.8);color:#E5E7EB;text-decoration:none;cursor:pointer;}
a.fva-app-card:hover{background:rgba(6,40,33,.85);}
.fva-app-card-soon{opacity:.75;cursor:default;}
.fva-app-tile{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:12px;color:#fff;font-size:16px;font-weight:800;}
.fva-app-logo{width:36px;height:36px;border-radius:12px;flex-shrink:0;object-fit:contain;display:block;}
.fva-app-name{font-size:12px;font-weight:700;line-height:1.3;overflow-wrap:anywhere;}
.fva-app-desc{font-size:11px;line-height:1.4;color:#9CA3AF;}
.fva-app-soon{display:inline-block;margin-top:2px;padding:2px 8px;border-radius:9999px;background:rgba(107,114,128,.25);color:#D1D5DB;font-size:10px;font-weight:700;}
/* Header avatar verified corner tick (reference.html line 136): blue
   circle, white check, at the avatar's bottom-right. Set 29: Fortune
   ordered the verified badge blue, not green (07:59 WAT 14 Nov). */
.header-avatar-tick{position:absolute;bottom:-2px;right:-2px;width:14px;height:14px;border-radius:9999px;background:#3B82F6;border:2px solid #040d0c;display:flex;align-items:center;justify-content:center;}
.header-avatar-tick svg{width:8px;height:8px;color:#FFFFFF;}
.header-avatar-tick.hidden{display:none;}
/* The profile card avatar is 48px: the old Set 10 rule
   #profileDrawer .drawer-avatar-box{width:40px;height:40px} pins every
   drawer avatar box to 40px, so the card needs the stronger selector. */
#profileDrawer .menu-profile-card .drawer-avatar-box{width:48px;height:48px;}

/* ---- Set 16 animated C logo + round avatars everywhere ---- */
/* The mouse is a declarative SMIL animateMotion: no JS, no video, no layout
   cost. It rides the C path (see #logoCPath in index.html), there and back
   over 10s. pointer-events:none so it can never intercept the logo tap. */
.logo-mouse{pointer-events:none;}
/* Reduced motion: the mouse stays hidden; the C itself is unchanged. */
@media (prefers-reduced-motion: reduce){ .logo-mouse{display:none;} }
/* Round avatars, everywhere, whatever the photo's intrinsic shape: an
   avatar img is always a square (aspect-ratio 1/1), cropped (object-fit),
   round (9999px), and never squashed by a flex row. This is the safety net
   under the index.html rule exclusion above: even if some other rule sets
   height:auto on an avatar img, aspect-ratio keeps the box square. */
img[data-img-kind="avatar"]{aspect-ratio:1/1;object-fit:cover;border-radius:9999px;flex-shrink:0;}
/* Missing size utilities: w-7/h-7 are used by comment-reply avatars
   (Set 80 removed the growth-card avatar strip that also used them), but neither utility existed, so those imgs
   (and their initials fallback divs) had no CSS size at all. */
.w-7{width:28px}
.h-7{height:28px}

/* ---- Set 17 exact redesign, consolidated ---- */
/* Header budget (Set 16 AUDIT §4 defect): the new-design header row carried
   seven elements and overflowed at 375px (~456px of content in a ~327px
   content box; the right group ran to x=480, clipped by body
   overflow-x:hidden). The reference header carries only logo + brand +
   messages + avatar. Below 520px — the width at which the full row fits
   (content ~460px + header/row padding ~48px) — the three shortcut buttons
   hide: hamburger (the drawer still opens from the pill-nav Menu avatar),
   create (the composer still opens from the Write-a-Post card), search
   (the feed still has its own search input). At 520px and up they show
   again. Nothing is removed: the buttons, their handlers, and their
   endpoints are all still there. */
@media (max-width:519px){ #headerMenuBtn, #headerCreateBtn, #headerSearchBtn { display:none !important; } }

/* ---- Set 18 (Bluesky adopt) ---- */
.notif-tabs{display:flex;gap:8px;margin-top:12px;overflow-x:auto}
.notif-tab{flex:1;min-height:44px;padding:10px 12px;border-radius:999px;border:1px solid rgba(255,255,255,.12);font-size:12px;font-weight:700;color:#cbd5e1;background:transparent}
.notif-tab.is-active{background:#059669;color:#040d0c;border-color:#059669}
.notif-tab-count{font-weight:500;opacity:.85}
.notif-type-icon{flex-shrink:0;width:28px;height:28px;border-radius:9999px;background:rgba(5,150,105,.14);border:1px solid rgba(5,150,105,.35);color:#34d399;display:flex;align-items:center;justify-content:center;margin-top:2px}
.notif-type-icon svg{width:16px;height:16px}
.notif-level-btn{min-height:44px;padding:8px 12px;border:1px solid rgba(255,255,255,.12);color:#cbd5e1;background:transparent}
.notif-level-btn.is-active{background:#059669;color:#040d0c;border-color:#059669}
html[data-theme="light"] .notif-level-btn{border-color:var(--lt-border);color:var(--lt-text-2)}
html[data-theme="light"] .notif-level-btn.is-active{background:var(--lt-accent);color:var(--lt-surface);border-color:var(--lt-accent)}
.notif-preview{margin-top:6px;border:1px solid rgba(255,255,255,.1);border-left:3px solid #059669;border-radius:12px;padding:8px 10px;background:rgba(255,255,255,.03)}
.feed-mode-tabs{display:flex;gap:8px;margin-bottom:10px}
.feed-mode-tab{flex:1;min-height:44px;font-size:13px;font-weight:700;text-align:center}
.feed-mode-tab.is-active{background:#059669!important;color:#040d0c!important;border-color:#059669!important}
.profile-tabs{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;margin:10px 0}
.profile-tabs::-webkit-scrollbar{display:none}
.profile-tab{flex-shrink:0;min-height:44px;padding:10px 14px;border-radius:999px;border:1px solid rgba(255,255,255,.12);font-size:12px;font-weight:700;color:#cbd5e1;background:transparent;white-space:nowrap}
.profile-tab.is-active{background:#059669;color:#040d0c;border-color:#059669}
.profile-tab-count{font-weight:500;opacity:.85}
.other-profile-tabs{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;margin:10px 0}
.other-profile-tabs::-webkit-scrollbar{display:none}
.other-profile-tab{flex-shrink:0;min-height:44px;padding:10px 14px;border-radius:999px;border:1px solid #d1d5db;font-size:12px;font-weight:700;color:#111827;background:#fff;white-space:nowrap}
.other-profile-tab.is-active{background:#059669;color:#fff;border-color:#059669}
.list-feed-banner{display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid rgba(16,185,129,.5);background:rgba(6,40,33,.6);border-radius:12px;padding:8px 12px;margin-top:8px}
.list-feed-banner.hidden{display:none}
.profile-tab-panel{min-width:0}
.compose-fab{position:fixed;right:16px;bottom:calc(104px + env(safe-area-inset-bottom,0px));z-index:25;width:56px;height:56px;border-radius:9999px;background:#059669;color:#040d0c;border:1px solid rgba(255,255,255,.2);box-shadow:0 10px 28px rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;cursor:pointer}
.compose-fab:active{transform:scale(.96)}
.compose-fab svg{width:24px;height:24px}
/* Set 52: the FAB is the compose button again (green, pencil); Live moved
   to the bottom-nav video icon (#navVideo). The Set 50 red Live-button rules
   are gone. */
/* Set 52: the header logo and avatar buttons carry no border class, so the
   browser's default outset button border drew a light frame around them
   (Fortune 09:26). */
.app-header button[aria-label="Connect Home"], .app-header button[aria-label="Profile and Settings"]{border:0}
.post-sheet-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.6);border:0;border-radius:0;cursor:pointer}
.post-sheet{position:absolute;left:0;right:0;bottom:0;max-width:26rem;margin:0 auto;background:#040d0c;border:1px solid rgba(22,56,45,.85);border-bottom:0;border-radius:24px 24px 0 0;padding:12px 16px calc(20px + env(safe-area-inset-bottom,0px));max-height:82dvh;overflow-y:auto}
/* ---- Hard-scrolling fix: a sheet that scrolls must not chain the gesture
   to the page behind, and iOS gets momentum scrolling. .reels-comments
   already has overscroll-behavior: contain; these did not. #jobDetailBox
   already scrolls on mobile (line 2241 rule); this only adds containment. */
.post-sheet, .sound-sheet, #jobDetailBox,
#moment-modal > div, #closeFriendsSheet > div, #manageHighlightsSheet > div,
#messages-drawer > div, #addToHighlightSheet > div, #storyCommentsSheet > div,
#composer-modal .overflow-y-auto, #notifSettingsModal .overflow-y-auto,
#privacyCheckupModal .overflow-y-auto { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }

.post-sheet-handle{width:40px;height:4px;border-radius:999px;background:rgba(255,255,255,.25);margin:0 auto 12px}
.post-sheet-title{font-size:14px;font-weight:700;color:#fff;margin-bottom:10px}
.post-sheet-actions{display:flex;flex-direction:column}
.post-sheet-actions button{min-height:48px;padding:12px 8px;text-align:left;font-size:14px;color:#e2e8f0;background:transparent;border:0;border-bottom:1px solid rgba(255,255,255,.08);border-radius:0;cursor:pointer}
.post-sheet-actions button:active{background:rgba(5,150,105,.12)}
.post-sheet-panel{padding-top:12px}
.post-sheet-result{display:flex;flex-direction:column;gap:2px;width:100%;text-align:left;padding:10px 12px;border:1px solid rgba(255,255,255,.1);border-radius:12px;background:rgba(255,255,255,.03);cursor:pointer}
.post-sheet-cancel{width:100%;min-height:48px;margin-top:12px;border-radius:999px;border:1px solid rgba(255,255,255,.12);font-size:13px;font-weight:700;color:#e2e8f0;background:transparent;cursor:pointer}

/* ---- Set 28 (live-defects polish, 2026-11-14) ---- */
/* D1: category filter chips never shrink or wrap. The max-width:1023px rule
   sets .feed-tab{flex:1 1 auto;flex-shrink:1!important}, which squeezes the
   chips in the scrollable row until the active (bold) label wraps and the
   chip reads as a green circle. These chips size to content; the row scrolls. */
#category-filters .feed-tab{flex:0 0 auto!important;flex-shrink:0!important;white-space:nowrap!important;}
/* D2: the post action row wraps inside the card instead of running off the
   right edge and cutting the last button in half. */
.post-action-row{flex-wrap:wrap!important;justify-content:flex-start!important;gap:2px 6px!important;}
/* D5: the chat room must not inherit the section space-y margin from the
   hidden chat list. space-y-4 adds 16px top margin to every following
   sibling, even one hidden with display:none, which pushed the room down. */
#sectionMessages > #chatRoomView{margin-top:0!important;}
/* Set 30 D1: when the room is open on mobile it is pinned fixed between the
   header and the bottom nav (top/bottom set by fixChatViewport), so it fills
   the space instead of floating as a small card or sliding under the nav. */
@media (max-width:767px){ #chatRoomView.chat-room-fixed{ position:fixed; left:0; right:0; margin:0 auto; max-width:28rem; z-index:35; box-sizing:border-box; border-radius:0; border-left:none; border-right:none; } }
/* Set 92: the job detail panel is fixed between the header and the bottom
   nav while open (same geometry as the chat room), so its action buttons
   never sit behind the nav. top/bottom set by fixJobDetailViewport. */
/* Set 92: #view-jobs uses .animate-fade-in with `forwards` fill, which
   retains transform:translateY(0) after the animation ends. Any non-none
   transform makes the section the containing block for fixed descendants,
   so the fixed job detail panel positioned itself against the tall section
   (bottom ~4000px) instead of the viewport. `backwards` fill keeps the
   entrance animation but retains no transform once it ends. */
#view-jobs.animate-fade-in{animation-fill-mode:backwards}
@media (max-width:767px){ #jobDetailBox.job-detail-fixed{ position:fixed; left:0; right:0; margin:0 auto; max-width:28rem; z-index:35; box-sizing:border-box; border-radius:0; border-left:none; border-right:none; overflow-y:auto; } }
/* D7: the emerald-400 text utility was missing from the utility layer, so
   the active nav state only worked through .nav-btn.is-active. Define it,
   and brighten inactive nav icons (slate-300) so the bell reads clearly. */
.text-emerald-400{color:#34D399}
nav.app-nav .nav-btn:not(.is-active){color:#CBD5E1}

/* ---- Set 29: video-defect fixes + Spotify music picker ---- */
/* D3: the .text-white utility was missing from the utility layer, so any
   button or label using it fell back to the browser default (black in
   Chrome, blue in iOS WebView) on its coloured background. Define it.
   Light theme keeps its own more-specific override
   (html[data-theme="light"] .text-white -> #111827) for white panels. */
.text-white{color:#ffffff}
/* D3 (guard): the green location buttons in the composer must always read
   white on their dark emerald (#047857, contrast ~5.4:1), in both themes. */
#composer-location-box .bg-emerald-600{color:#ffffff}
/* D1/D2 (guard): the composer textarea is full width and the character
   counter never wraps or clips, even if the wrapper layout changes. */
#post-textarea{width:100%!important;min-width:0!important}
#post-char-count{white-space:nowrap!important;flex-shrink:0!important}
/* Music picker (Spotify): track rows, source badges, attached chip. */
.music-track-row{display:flex;align-items:center;gap:10px;width:100%;text-align:left;background:rgba(4,13,12,.8);border:1px solid rgba(6,95,70,.4);border-radius:12px;padding:8px 10px;min-height:56px}
.music-track-row:hover{background:rgba(6,95,70,.25)}
.music-track-art{width:44px;height:44px;border-radius:8px;object-fit:cover;flex-shrink:0;background:#064e3b}
.music-track-meta{flex:1;min-width:0}
.music-track-title{display:block;font-size:13px;font-weight:700;color:#f3f4f6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.music-track-artist{display:block;font-size:11px;color:#9ca3af;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.music-track-badge{display:inline-block;font-size:10px;font-weight:800;letter-spacing:.02em;padding:2px 7px;border-radius:999px;flex-shrink:0;white-space:nowrap}
/* Set 104B: the Audius badge is gone with Audius. */
.music-track-badge.spotify{background:#1db954;color:#ffffff}
.music-track-play{flex-shrink:0;width:36px;height:36px;border-radius:999px;background:#047857;color:#fff;font-size:14px;line-height:1;display:flex;align-items:center;justify-content:center}
.music-track-open{flex-shrink:0;font-size:11px;font-weight:700;color:#34d399;text-decoration:underline;white-space:nowrap}
.music-attached{display:flex;align-items:center;gap:10px;background:rgba(6,95,70,.2);border:1px solid rgba(6,95,70,.5);border-radius:12px;padding:8px 10px}
.music-attached audio{width:100%;height:32px}
.music-section-label{font-size:11px;font-weight:800;letter-spacing:.04em;color:#6ee7b7;text-transform:uppercase}
.music-track-add{flex-shrink:0;font-size:11px;font-weight:800;color:#34d399;background:rgba(6,95,70,.25);border:1px solid rgba(52,211,153,.4);border-radius:999px;padding:6px 10px;min-height:32px;white-space:nowrap}
.music-track-add:hover{background:rgba(6,95,70,.45)}

/* ---- Set 29 (continued): notification + pill + contrast fixes ---- */
/* CRITICAL: notification cards stacked vertically. The old row layout
   (flex-wrap + justify-between) put the text column and the action
   buttons on one line; the text column only got the leftover width
   after 3 buttons (~21px), so every letter wrapped to its own line.
   Stacking puts the text full width and the buttons on their own line. */
.notif-card-in{flex-direction:column!important;align-items:stretch!important;}
.notif-card-in .min-w-0.flex-1{min-width:0!important;flex:1 1 auto!important;width:100%!important;}
.notif-card-in p{overflow-wrap:break-word;word-break:break-word;}
/* Mentions pill: one line, count fits. The old flex:1 squeezed the
   "Mentions (3 · 1 unread)" label until it wrapped to two lines. */
.notif-tab{flex:0 0 auto!important;white-space:nowrap!important;}
/* Missing text-color utilities (same class as the .text-white gap):
   .text-gray-*, .text-red-400 and .text-amber-400 were never defined,
   so any label using them fell back to the browser default (blue in
   iOS WebView, black in Chrome) on its background. Define them. */
.text-gray-200{color:#E5E7EB}
.text-gray-300{color:#D1D5DB}
.text-gray-400{color:#9CA3AF}
.text-gray-500{color:#6B7280}
.text-red-400{color:#F87171}
.text-amber-400{color:#FBBF24}
/* Green-button text guard: every green button that carries text-white
   reads white on its dark emerald (#047857, contrast ~5.4:1). Covers
   Mark all as read, comment Send, Save draft, Follow back, Try again,
   Use this emoji, and any other bg-emerald-600/700 + text-white button. */
.bg-emerald-600.text-white,.bg-emerald-700.text-white{color:#ffffff}
.trial-notif-btn.bg-emerald-600{color:#ffffff}
#draftSaveBtn{color:#ffffff}
/* Discover pill row: the row scrolls horizontally; a pill never shrinks
   or truncates. Trending (and every pill) stays fully visible and
   tappable by scrolling. */
#category-filters{scroll-behavior:smooth;-webkit-overflow-scrolling:touch;}
#category-filters .feed-tab{max-width:none!important;overflow:visible!important;text-overflow:clip!important;}

/* ---- Set 29: Reels comments sheet + gifting ---- */
.reel-comments-handle{width:40px;height:4px;border-radius:999px;background:rgba(255,255,255,.35);margin:0 auto 10px;}
.reel-author-badge{display:inline-flex;align-items:center;gap:2px;font-size:10px;font-weight:700;color:#fbbf24;background:rgba(251,191,36,.15);border:1px solid rgba(251,191,36,.4);border-radius:999px;padding:1px 6px;white-space:nowrap;}
.reel-gif-thumb{width:calc(33.333% - 6px);aspect-ratio:1/1;padding:0;border:0;background:#111;border-radius:12px;overflow:hidden;min-height:44px;}
.reel-gif-thumb img{width:100%;height:100%;object-fit:cover;}
.gift-tile{display:flex;flex-direction:column;align-items:center;gap:2px;border:1px solid rgba(0,58,52,.15);border-radius:14px;padding:10px 4px;min-height:44px;background:#f8fafc;cursor:pointer;}
.gift-tile-emoji{font-size:28px;line-height:1;}
.gift-tile-name{font-size:11px;font-weight:700;color:#003A34;}
.gift-tile-price{font-size:10px;color:#6b7280;}
#reelQuickReactions button{flex-shrink:0;}

/* ---- Set 29: theme picker + light-theme coverage for the new surfaces ---- */
.theme-opt{min-height:44px;padding:10px 16px;border-radius:999px;border:1px solid rgba(255,255,255,.2);font-size:13px;font-weight:700;color:#e5e7eb;background:transparent;cursor:pointer;}
.theme-opt.is-active{background:#047857;color:#ffffff;border-color:#047857;}
/* Light theme: Reels comments sheet (the video player itself stays black,
   like Instagram; only the sheet goes white). */
html[data-theme="light"] .reels-comments{background:var(--lt-surface);border-top:1px solid var(--lt-border);}
html[data-theme="light"] .reels-comments p.text-white{color:var(--lt-text);}
html[data-theme="light"] .reel-comments-handle{background:rgba(0,0,0,.25);}
html[data-theme="light"] .reel-gif-thumb{background:var(--lt-surface-2);}
html[data-theme="light"] #reelQuickReactions button{background:transparent;}
/* Light theme: music picker rows and the attached-music chip. */
html[data-theme="light"] .music-track-row{background:var(--lt-surface);border-color:var(--lt-border);}
html[data-theme="light"] .music-track-title{color:var(--lt-text);}
html[data-theme="light"] .music-track-artist{color:var(--lt-muted);}
html[data-theme="light"] .music-attached{background:var(--lt-accent-soft);border-color:var(--lt-border);color:var(--lt-accent-strong);}
html[data-theme="light"] .music-section-label{color:var(--lt-accent);}
html[data-theme="light"] #musicPickerNote{color:var(--lt-muted);}
/* Light theme: notification cards and the gift tiles (already light). */
html[data-theme="light"] .notif-card-in{border-color:var(--lt-border);background:var(--lt-surface);}
html[data-theme="light"] .notif-tab{border-color:var(--lt-border);color:var(--lt-text-2);}
html[data-theme="light"] .notif-tab.is-active{background:var(--lt-accent);color:var(--lt-surface);border-color:var(--lt-accent);}
html[data-theme="light"] .gift-tile{background:var(--lt-surface);border-color:var(--lt-border);}
/* Light theme: theme picker buttons. */
html[data-theme="light"] .theme-opt{border-color:var(--lt-border);color:var(--lt-text-2);background:var(--lt-surface);}
html[data-theme="light"] .theme-opt.is-active{background:var(--lt-accent);color:var(--lt-surface);border-color:var(--lt-accent);}

/* ---- Install prompt (PWA), install-prompts set 2026-11-14 ---- */
/* The modal reuses the download modal's pattern (fixed overlay, z-50, card
   inside the viewport). It sits above the bottom nav, never behind it, and
   its card scrolls internally if a small screen runs out of room. */
#installPromptModal { padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
#installPromptModal > div { max-height: calc(100dvh - 32px); overflow-y: auto; }
.install-prompt-icon { width: 56px; height: 56px; border-radius: 14px; flex-shrink: 0; }
#installPromptModal button { min-height: 44px; }
/* Base (theme-independent) solid card: the pop-up must never depend on
   Tailwind's .bg-white, which design.css does not define (no plain
   .bg-white rule exists) and index.html loads no Tailwind CDN. Without
   this, the card is transparent: in light theme the app shell behind it
   stays near-black, so dark text on it is unreadable (measured 1.18:1
   before this rule). The dark rule below overrides the white card. */
#installPromptModal > div { background: #FFFFFF; color: #111827; border: 1px solid #D6E4DC; }
#installPromptModal p { color: #111827; }
#installPromptModal .text-gray-500 { color: #4B5563; }
html[data-theme="dark"] #installPromptModal > div,
html.dark #installPromptModal > div { background: var(--fva-card) !important; color: var(--fva-text) !important; border-color: var(--fva-border) !important; }
html[data-theme="dark"] #installPromptModal p,
html[data-theme="dark"] #installPromptModal h3,
html.dark #installPromptModal p,
html.dark #installPromptModal h3 { color: var(--fva-text) !important; }
html[data-theme="dark"] #installPromptModal .text-gray-500,
html.dark #installPromptModal .text-gray-500 { color: var(--fva-text-muted) !important; }

/* ---- Set 32: darker milk (2026-11-14). ONE warm off-white for every
   pure-white box/pill/tile/card in the Dark theme. ----
   Root cause (seen on Fortune's phone, 11:04-11:06 WAT): the Tailwind Play
   CDN script is gone from index.html, so bare <button> / <input> elements
   with no author background fall back to the user-agent button/field face
   (pure white on iOS, light grey in Chrome) with iOS-blue or dark text.
   The green utilities (.bg-emerald-500/.bg-emerald-600) still resolve green
   on the phone, so green stays green; only the bare white faces go milk.
   --milk is #FFFFFF in Light (plain white theme, unchanged) and #EDE6D3
   in Dark: warm cream, clearly softer than pure white on the dark green
   shell, still light. Every foreground on milk was measured (WCAG):
   #111827 14.24, #1D4ED8 5.38, #065F46 6.17, #4B5563 6.07, #92400E 5.69,
   #B91C1C 5.19, #0A6B4A 5.24, icons #047857 4.40 / #B45309 4.03 /
   #0369A1 4.76 / #7E22CE 5.61 (icons need 3:1). Blue #2563EB is 4.15 on
   this milk and iOS blue #007AFF is 3.23, so neither is used on milk:
   blue labels use #1D4ED8 instead. Light theme is untouched: the milk
   rules below are all dark-scoped and the #fff/#fffdf8 literals they
   cover keep their Light values. */
html[data-theme="dark"],
html.dark { --milk: #EDE6D3; }

/* Near-white literal surfaces, Dark only (Light keeps #fffdf8 / #fff). */
html[data-theme="dark"] #authView .auth-provider,
html.dark #authView .auth-provider { background: var(--milk); }
html[data-theme="dark"] #authView .auth-provider:hover,
html.dark #authView .auth-provider:hover { background: var(--milk); }
html[data-theme="dark"] #authView .auth-input,
html.dark #authView .auth-input { background: var(--milk); }
html[data-theme="dark"] #authView .auth-input::placeholder,
html.dark #authView .auth-input::placeholder { color: #4B5563; }
html[data-theme="dark"] #authView .login-gate-showhide,
html.dark #authView .login-gate-showhide { background: var(--milk); }
html[data-theme="dark"] #sectionSettings select,
html.dark #sectionSettings select { background: var(--milk); }
html[data-theme="dark"] .other-profile-tab,
html.dark .other-profile-tab { background: var(--milk); }
html[data-theme="dark"] .gift-tile,
html.dark .gift-tile { background: var(--milk); }
html[data-theme="dark"] .gift-tile-price,
html.dark .gift-tile-price { color: #4B5563; }

/* White-card fields in Dark: the panels are already dark, but the
   "Premium contrast" rules in index.html paint their fields #FFFFFF in
   BOTH themes. Where no stronger dark rule exists, those fields are pure
   white in Dark and go milk here. Profile/wizard/tab-card/orgView fields
   are NOT listed: the existing !important dark rule (design.css:175-193)
   already paints them var(--fva-bg) dark in Dark, so milk would lose to
   it and listing them would be dead code. Light keeps #FFFFFF fields. */
html[data-theme="dark"] #otherProfileModal input, html[data-theme="dark"] #otherProfileModal select, html[data-theme="dark"] #otherProfileModal textarea,
html[data-theme="dark"] #tab-admin div.bg-white input, html[data-theme="dark"] #tab-admin div.bg-white select, html[data-theme="dark"] #tab-admin div.bg-white textarea,
html[data-theme="dark"] #squadView input, html[data-theme="dark"] #squadView textarea,
html[data-theme="dark"] #groupView input, html[data-theme="dark"] #groupView select, html[data-theme="dark"] #groupView textarea,
html[data-theme="dark"] #userAccountSwitchModal input,
html[data-theme="dark"] #sectionSuspended input, html[data-theme="dark"] #sectionSuspended textarea,
html.dark #otherProfileModal input, html.dark #otherProfileModal select, html.dark #otherProfileModal textarea,
html.dark #tab-admin div.bg-white input, html.dark #tab-admin div.bg-white select, html.dark #tab-admin div.bg-white textarea,
html.dark #squadView input, html.dark #squadView textarea,
html.dark #groupView input, html.dark #groupView select, html.dark #groupView textarea,
html.dark #userAccountSwitchModal input,
html.dark #sectionSuspended input, html.dark #sectionSuspended textarea { background-color: var(--milk); }
html[data-theme="dark"] #otherProfileModal input::placeholder, html[data-theme="dark"] #otherProfileModal textarea::placeholder,
html[data-theme="dark"] #tab-admin div.bg-white input::placeholder, html[data-theme="dark"] #tab-admin div.bg-white textarea::placeholder,
html[data-theme="dark"] #squadView input::placeholder, html[data-theme="dark"] #squadView textarea::placeholder,
html[data-theme="dark"] #groupView input::placeholder, html[data-theme="dark"] #groupView textarea::placeholder,
html[data-theme="dark"] #userAccountSwitchModal input::placeholder,
html[data-theme="dark"] #sectionSuspended input::placeholder, html[data-theme="dark"] #sectionSuspended textarea::placeholder,
html.dark #otherProfileModal input::placeholder, html.dark #otherProfileModal textarea::placeholder,
html.dark #tab-admin div.bg-white input::placeholder, html.dark #tab-admin div.bg-white textarea::placeholder,
html.dark #squadView input::placeholder, html.dark #squadView textarea::placeholder,
html.dark #groupView input::placeholder, html.dark #groupView textarea::placeholder,
html.dark #userAccountSwitchModal input::placeholder,
html.dark #sectionSuspended input::placeholder, html.dark #sectionSuspended textarea::placeholder { color: #4B5563; }

/* Shared hook: initial-state milk for the job filters (setJobFilter
   rewrites className on first tap, so the hook drops away and the
   JS-owned green/glass states take over). Light: --milk is #FFFFFF. */
.milk-pill { background: var(--milk); }
html[data-theme="dark"] .job-filter.milk-pill,
html.dark .job-filter.milk-pill { color: #111827; }

/* Feed mode pills: inactive Following goes milk with blue-700 text.
   The active pill keeps its green !important rule. */
html[data-theme="dark"] #feedModeTabs .feed-tab:not([data-active="true"]),
html.dark #feedModeTabs .feed-tab:not([data-active="true"]) { background: var(--milk); color: #1D4ED8; }

/* Composer action pills: milk, blue-700 labels (keeps the phone's blue
   labels, darkened to pass), icons darkened to 700-shades (icons need 3:1). */
html[data-theme="dark"] .composer-home-actions button,
html.dark .composer-home-actions button { background: var(--milk); color: #1D4ED8; }
html[data-theme="dark"] .composer-home-actions .text-emerald-400,
html.dark .composer-home-actions .text-emerald-400 { color: #047857; }
html[data-theme="dark"] .composer-home-actions .text-amber-400,
html.dark .composer-home-actions .text-amber-400 { color: #B45309; }
html[data-theme="dark"] .composer-home-actions .text-sky-400,
html.dark .composer-home-actions .text-sky-400 { color: #0369A1; }
html[data-theme="dark"] .composer-home-actions .text-purple-400,
html.dark .composer-home-actions .text-purple-400 { color: #7E22CE; }

/* Post action row and comment action pills: milk, dark text. */
html[data-theme="dark"] .post-action-row button,
html.dark .post-action-row button { background: var(--milk); color: #111827; }
html[data-theme="dark"] .comment-actions button,
html.dark .comment-actions button { background: var(--milk); color: #111827; }

/* Bottom nav (bar removal): no per-icon ground, icons sit bare; active icon emerald-800, inactive slate-600.
   Avatar initials (no photo) amber-800. Badges keep their own colours. */
html[data-theme="dark"] nav.app-nav .nav-btn,
html.dark nav.app-nav .nav-btn { background: transparent; color: #4B5563; }
html[data-theme="dark"] nav.app-nav .nav-btn.is-active,
html.dark nav.app-nav .nav-btn.is-active { background: transparent; color: #065F46; }
html[data-theme="dark"] nav.app-nav .nav-pill-avatar-text,
html.dark nav.app-nav .nav-pill-avatar-text { color: #92400E; }

/* Header avatar initials (no photo): amber-800 on milk. The logo tile
   itself is covered by the button net below; the SVG mark is unchanged. */
html[data-theme="dark"] button[aria-label="Profile and Settings"] .text-amber-500,
html.dark button[aria-label="Profile and Settings"] .text-amber-500 { color: #92400E; }

/* More-tab rows (hook class .more-row in index.html): bare row buttons
   that go milk; their label/arrow/sign-out spans carry light slate/red
   classes, so they need explicit dark colours on milk. */
html[data-theme="dark"] .more-row .text-slate-200,
html.dark .more-row .text-slate-200 { color: #111827; }
html[data-theme="dark"] .more-row .text-slate-400,
html.dark .more-row .text-slate-400 { color: #4B5563; }
html[data-theme="dark"] .more-row .text-red-400,
html.dark .more-row .text-red-400 { color: #B91C1C; }

/* Identity rows in the "Post as" list (#accountSwitchList): the row goes
   milk; the sub label and "Last used" badge darken, the "Current" badge
   goes emerald-800 (emerald-400 is 1.54 on milk). The avatar initials
   keep text-emerald-400: they sit on the dark bg-emerald-950/60 chip,
   so they are deliberately NOT touched by these rules. */
html[data-theme="dark"] #accountSwitchList .text-gray-500,
html.dark #accountSwitchList .text-gray-500 { color: #4B5563 !important; }
html[data-theme="dark"] #accountSwitchList .text-\[11px\].text-emerald-400,
html.dark #accountSwitchList .text-\[11px\].text-emerald-400 { color: #065F46; }
html[data-theme="dark"] #accountSwitchList .text-\[11px\].text-gray-400,
html.dark #accountSwitchList .text-\[11px\].text-gray-400 { color: #4B5563 !important; }

/* Location suggestion rows (#postLocationSuggestions): the row goes milk;
   the white place name and grey type line darken (white is 1.04 on milk). */
html[data-theme="dark"] #postLocationSuggestions .text-white,
html.dark #postLocationSuggestions .text-white { color: #111827; }
html[data-theme="dark"] #postLocationSuggestions .text-gray-400,
html.dark #postLocationSuggestions .text-gray-400 { color: #4B5563 !important; }

/* Safety net: any other bare button / field in Dark with no author
   background gets milk. Specificity is zero via :where(), so every
   component rule (green buttons, transparent pills, dark chips, the
   backdrop, the FAB) still wins. Buttons carrying a BASE bg- utility are
   excluded: those resolve green/blue on the phone and must not turn
   milk. A hover:/focus: bg- state class alone does NOT exclude a button:
   with no base background the button is bare white in Dark, so the net
   milks it (its hover state still works on milk). The colour net uses the same set at (0,1,2) so it beats the
   single-class light text utilities on those same buttons; destructive
   (red) buttons keep a red-700 text instead of dark. */
:where(html[data-theme="dark"], html.dark) button:not(:where([class^="bg-"], [class*=" bg-"], .app-menu-item, .auth-panel-switch, .auth-submit, .author-back, .chat-action-btn, .chat-photo-btn, .chat-transcript-toggle, .chat-quote, .chat-reaction-chip, .chat-reaction-chip-mine, .chat-reaction-pick, .compose-fab, .feed-mode-tab, .feed-tab, .filter-chip, .fva-cookie-accept, .fva-cookie-decline, .fva-empty, .fva-outline, .fva-pencil, .fva-pill, .fva-pill-solid, .gift-tile, .glass-card, .growth-blue-btn, .is-active, .is-on, .job-filter, .liked-reel-thumb, .login-gate-showhide, .menu-section-toggle, .menu-shortcut, .menu-switch-btn, .music-tapload, .music-track-add, .music-track-play, .notif-tab, .other-profile-tab, .photo-viewer-close, .post-dismiss-btn, .post-menu-btn, .post-sheet-backdrop, .post-sheet-cancel, .post-sheet-result, .profile-conn, .profile-tab, .pymk-add, .pymk-remove, .reel-close, .reel-follow-btn, .reel-gif-thumb, .reel-nav, .reel-rail-btn, .reel-send-btn, .reel-tapload, .story-nav, .story-viewer-btn, .susp-btn, .susp-btn-danger, .susp-btn-outline, .susp-btn-primary, .theme-opt, .verify-pill, .video-sound-btn, .cc-btn, .live-composer-btn, .live-watch-btn, .live-manage-btn, .live-primary-btn, .live-secondary-btn, .live-danger-btn, .live-copy-btn, .live-view-close, .live-view-sound, .live-follow-btn, .live-action-btn, .live-send-btn, .live-reaction-btn, .net-switch button, .fva-menu-pop button, .post-sheet-actions button)) { background: var(--milk); }
:where(html[data-theme="dark"], html.dark) input:not(:where([class^="bg-"], [class*=" bg-"])), :where(html[data-theme="dark"], html.dark) select:not(:where([class^="bg-"], [class*=" bg-"])), :where(html[data-theme="dark"], html.dark) textarea:not(:where([class^="bg-"], [class*=" bg-"])) { background: var(--milk); }
html[data-theme="dark"] button:not(:where([class^="bg-"], [class*=" bg-"], .app-menu-item, .auth-panel-switch, .auth-submit, .author-back, .chat-action-btn, .chat-photo-btn, .chat-transcript-toggle, .chat-quote, .chat-reaction-chip, .chat-reaction-chip-mine, .chat-reaction-pick, .compose-fab, .feed-mode-tab, .feed-tab, .filter-chip, .fva-cookie-accept, .fva-cookie-decline, .fva-empty, .fva-outline, .fva-pencil, .fva-pill, .fva-pill-solid, .gift-tile, .glass-card, .growth-blue-btn, .is-active, .is-on, .job-filter, .liked-reel-thumb, .login-gate-showhide, .menu-section-toggle, .menu-shortcut, .menu-switch-btn, .music-tapload, .music-track-add, .music-track-play, .notif-tab, .other-profile-tab, .photo-viewer-close, .post-dismiss-btn, .post-menu-btn, .post-sheet-backdrop, .post-sheet-cancel, .post-sheet-result, .profile-conn, .profile-tab, .pymk-add, .pymk-remove, .reel-close, .reel-follow-btn, .reel-gif-thumb, .reel-nav, .reel-rail-btn, .reel-send-btn, .reel-tapload, .story-nav, .story-viewer-btn, .susp-btn, .susp-btn-danger, .susp-btn-outline, .susp-btn-primary, .theme-opt, .verify-pill, .video-sound-btn, .cc-btn, .live-composer-btn, .live-watch-btn, .live-manage-btn, .live-primary-btn, .live-secondary-btn, .live-danger-btn, .live-copy-btn, .live-view-close, .live-view-sound, .live-follow-btn, .live-action-btn, .live-send-btn, .live-reaction-btn, .net-switch button, .fva-menu-pop button, .post-sheet-actions button)),
html.dark button:not(:where([class^="bg-"], [class*=" bg-"], .app-menu-item, .auth-panel-switch, .auth-submit, .author-back, .chat-action-btn, .chat-photo-btn, .chat-transcript-toggle, .chat-quote, .chat-reaction-chip, .chat-reaction-chip-mine, .chat-reaction-pick, .compose-fab, .feed-mode-tab, .feed-tab, .filter-chip, .fva-cookie-accept, .fva-cookie-decline, .fva-empty, .fva-outline, .fva-pencil, .fva-pill, .fva-pill-solid, .gift-tile, .glass-card, .growth-blue-btn, .is-active, .is-on, .job-filter, .liked-reel-thumb, .login-gate-showhide, .menu-section-toggle, .menu-shortcut, .menu-switch-btn, .music-tapload, .music-track-add, .music-track-play, .notif-tab, .other-profile-tab, .photo-viewer-close, .post-dismiss-btn, .post-menu-btn, .post-sheet-backdrop, .post-sheet-cancel, .post-sheet-result, .profile-conn, .profile-tab, .pymk-add, .pymk-remove, .reel-close, .reel-follow-btn, .reel-gif-thumb, .reel-nav, .reel-rail-btn, .reel-send-btn, .reel-tapload, .story-nav, .story-viewer-btn, .susp-btn, .susp-btn-danger, .susp-btn-outline, .susp-btn-primary, .theme-opt, .verify-pill, .video-sound-btn, .cc-btn, .live-composer-btn, .live-watch-btn, .live-manage-btn, .live-primary-btn, .live-secondary-btn, .live-danger-btn, .live-copy-btn, .live-view-close, .live-view-sound, .live-follow-btn, .live-action-btn, .live-send-btn, .live-reaction-btn, .net-switch button, .fva-menu-pop button, .post-sheet-actions button)) { color: #111827; }
html[data-theme="dark"] button[class*="text-red-"]:not(:where([class^="bg-"], [class*=" bg-"], .app-menu-item, .auth-panel-switch, .auth-submit, .author-back, .chat-action-btn, .chat-photo-btn, .chat-transcript-toggle, .chat-quote, .chat-reaction-chip, .chat-reaction-chip-mine, .chat-reaction-pick, .compose-fab, .feed-mode-tab, .feed-tab, .filter-chip, .fva-cookie-accept, .fva-cookie-decline, .fva-empty, .fva-outline, .fva-pencil, .fva-pill, .fva-pill-solid, .gift-tile, .glass-card, .growth-blue-btn, .is-active, .is-on, .job-filter, .liked-reel-thumb, .login-gate-showhide, .menu-section-toggle, .menu-shortcut, .menu-switch-btn, .music-tapload, .music-track-add, .music-track-play, .notif-tab, .other-profile-tab, .photo-viewer-close, .post-dismiss-btn, .post-menu-btn, .post-sheet-backdrop, .post-sheet-cancel, .post-sheet-result, .profile-conn, .profile-tab, .pymk-add, .pymk-remove, .reel-close, .reel-follow-btn, .reel-gif-thumb, .reel-nav, .reel-rail-btn, .reel-send-btn, .reel-tapload, .story-nav, .story-viewer-btn, .susp-btn, .susp-btn-danger, .susp-btn-outline, .susp-btn-primary, .theme-opt, .verify-pill, .video-sound-btn, .cc-btn, .live-composer-btn, .live-watch-btn, .live-manage-btn, .live-primary-btn, .live-secondary-btn, .live-danger-btn, .live-copy-btn, .live-view-close, .live-view-sound, .live-follow-btn, .live-action-btn, .live-send-btn, .live-reaction-btn, .net-switch button, .fva-menu-pop button, .post-sheet-actions button)),
html.dark button[class*="text-red-"]:not(:where([class^="bg-"], [class*=" bg-"], .app-menu-item, .auth-panel-switch, .auth-submit, .author-back, .chat-action-btn, .chat-photo-btn, .chat-transcript-toggle, .chat-quote, .chat-reaction-chip, .chat-reaction-chip-mine, .chat-reaction-pick, .compose-fab, .feed-mode-tab, .feed-tab, .filter-chip, .fva-cookie-accept, .fva-cookie-decline, .fva-empty, .fva-outline, .fva-pencil, .fva-pill, .fva-pill-solid, .gift-tile, .glass-card, .growth-blue-btn, .is-active, .is-on, .job-filter, .liked-reel-thumb, .login-gate-showhide, .menu-section-toggle, .menu-shortcut, .menu-switch-btn, .music-tapload, .music-track-add, .music-track-play, .notif-tab, .other-profile-tab, .photo-viewer-close, .post-dismiss-btn, .post-menu-btn, .post-sheet-backdrop, .post-sheet-cancel, .post-sheet-result, .profile-conn, .profile-tab, .pymk-add, .pymk-remove, .reel-close, .reel-follow-btn, .reel-gif-thumb, .reel-nav, .reel-rail-btn, .reel-send-btn, .reel-tapload, .story-nav, .story-viewer-btn, .susp-btn, .susp-btn-danger, .susp-btn-outline, .susp-btn-primary, .theme-opt, .verify-pill, .video-sound-btn, .cc-btn, .live-composer-btn, .live-watch-btn, .live-manage-btn, .live-primary-btn, .live-secondary-btn, .live-danger-btn, .live-copy-btn, .live-view-close, .live-view-sound, .live-follow-btn, .live-action-btn, .live-send-btn, .live-reaction-btn, .net-switch button, .fva-menu-pop button, .post-sheet-actions button)) { color: #B91C1C; }

/* Set 33: Moments upgrade — rings show what is ON the moment, never the
   avatar; the viewer never shows a blank black screen. */
.story-ring-thumb{position:relative;display:block;width:100%;height:100%}
.story-ring-video{width:100%;height:100%;object-fit:cover;border-radius:9999px;display:block;background:#000}
.story-ring-play{position:absolute;right:1px;bottom:1px;width:18px;height:18px;border-radius:9999px;background:rgba(0,0,0,.65);color:#fff;font-size:9px;display:flex;align-items:center;justify-content:center}
.story-ring-text{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-align:center;font-size:9px;line-height:1.3;font-weight:600;color:#fff;padding:2px;word-break:break-word}
.story-ring-textbg{background:linear-gradient(135deg,#065f46,#0f766e 55%,#134e4a)!important}
.story-viewer-text-tile{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;text-align:center;padding:24px 20px;background:linear-gradient(135deg,#065f46,#0f766e 55%,#134e4a);color:#fff;font-size:20px;font-weight:700;line-height:1.45;word-break:break-word;overflow-y:auto}
.story-viewer-fallback{font-size:15px;font-weight:600;line-height:1.5}
.story-viewer-empty{font-size:15px;font-weight:600}
.story-viewer-reply{display:flex;gap:8px;padding:0 12px 16px}
.story-viewer-reply input{flex:1;min-width:0;min-height:44px;background:#040d0c;border:1px solid rgba(255,255,255,.25);border-radius:12px;padding:0 12px;color:#fff;font-size:13px}
.story-viewer-reply input::placeholder{color:#9ca3af}
.story-viewer-reply-send{min-height:44px;min-width:64px;padding:0 16px;border-radius:12px;background:#10b981;color:#052e22;font-weight:700;font-size:13px}
html[data-theme="dark"] .story-viewer-reply input,html.dark .story-viewer-reply input{background:#040d0c;color:#fff}
html[data-theme="dark"] .story-viewer-reply-send,html.dark .story-viewer-reply-send{background:#10b981;color:#052e22}

/* ---- Set 37: gift wallet ---- */
/* One modal, three tabs (Wallet / Send coins / How it works). Balance is a
   server number rendered large; loading shows a skeleton, never a 0. */
#giftWalletModal .wallet-panel{box-sizing:border-box;max-height:calc(100dvh - 32px);overflow-y:auto;padding-bottom:calc(24px + env(safe-area-inset-bottom, 0px));}
.gw-tab{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 12px;border-radius:var(--fva-radius-pill);border:1px solid #d6e4dc;background:transparent;color:#111827;font-weight:700;font-size:13px;cursor:pointer;}
html[data-theme="dark"] .gw-tab,html.dark .gw-tab{color:var(--fva-text);border-color:var(--fva-border);}
.gw-tab.is-active{background:var(--fva-accent-strong);border-color:var(--fva-accent-strong);color:#fff;}
.gw-balance-card{border:1px solid #d6e4dc;border-radius:var(--fva-radius);padding:16px;background:#f8fafc;}
html[data-theme="dark"] .gw-balance-card,html.dark .gw-balance-card{background:var(--fva-card-2);border-color:var(--fva-border);}
.gw-balance{font-size:2rem;line-height:1.15;font-weight:700;color:#003a34;white-space:nowrap;}
html[data-theme="dark"] .gw-balance,html.dark .gw-balance{color:var(--fva-amber);}
.gw-balance-unit{font-size:1rem;font-weight:700;}
#giftWalletModal input{background:var(--milk);color:#111827;font-size:16px;}
#giftWalletModal input::placeholder{color:#6b7280;}
@media (max-width:399px){ .gw-balance{font-size:1.75rem;} }

/* ---- Connect Set 39: Messages tab fix ---- */
/* Defect 1, the clipped toast pill: the SAME element and root cause as Set 34
   (#toast, index.html line 605; the pill newChat() fires on the Messages tab).
   Copied verbatim from Set 34 so the two sets carry one identical rule: if
   Set 34 lands first this block drops out of Set 39 on rebase, and vice
   versa. On phones the pill is anchored above the bottom nav, full width,
   no transform, never stretched; long messages wrap. Desktop keeps the old
   centred top toast. */
@media (max-width: 1023px) {
  #toast { top: auto !important; bottom: calc(112px + env(safe-area-inset-bottom, 0px)) !important; left: 12px !important; right: 12px !important; transform: none !important; display: flex !important; justify-content: center; }
  #toast > div { max-width: 100%; white-space: normal; }
}
/* toast() toggles .opacity-100, but that class had no rule: the shown state
   worked only because .opacity-0 was removed. Make the toggle real. */
.opacity-100 { opacity: 1; }

/* Set 35: Connections counter upgrade — the drawer Connections pill is a
   real pill again, and long drawer labels read in full. Root causes:
   (a) the pill was a bare button, so Set 32's milk safety net gave it a
   milk rectangle in Dark while the inline #profileDrawer rules kept the
   count white (#FFFFFF on milk is 1.04:1) and the label grey (#9CA3AF on
   milk is ~2.4:1); the count now sits on a green badge (white on #047857
   is 4.6:1) and the label is emerald, in both themes. (b) the pill's
   `gap-2` class is not defined in design.css, so label and count touched.
   The component rule carries a real 8px gap. (c) `.menu-shortcut span`
   capped labels at 64px, cutting "Notifications"; the row already scrolls
   horizontally, so the cap is 120px. (d) `.app-menu-item span` forced
   nowrap + ellipsis, cutting "Creator Dashboard" in the 3-column grid;
   labels now wrap to two lines. */
.drawer-connections-pill{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:8px 12px;border-radius:999px;background:rgba(6,40,33,.6);border:1px solid rgba(22,56,45,.9);cursor:pointer;text-align:left;}
.drawer-connections-pill:hover{background:rgba(6,40,33,.9);}
.drawer-connections-pill .side-profile-count{min-width:20px;padding:2px 8px;border-radius:999px;background:#047857;color:#fff;text-align:center;}
html[data-theme="light"] .drawer-connections-pill{background:var(--lt-accent-soft);border-color:var(--lt-border);}
html[data-theme="light"] .drawer-connections-pill:hover{background:var(--lt-accent-soft);}
html[data-theme="light"] .drawer-connections-pill .side-profile-count{background:var(--lt-accent);color:var(--lt-surface);}
.menu-shortcut span{max-width:120px;}
#profileDrawer .app-menu-item span:not(.app-menu-count){white-space:normal;overflow:hidden;text-overflow:clip;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;}
#profileDrawer .menu-profile-card .flex.items-center.justify-between{flex-wrap:wrap;}

/* Set 35 (video evidence, 14:28 WAT): the drawer content sat ~30px left of
   where it belongs, clipped at the left edge, for the whole vertical scroll
   ("YOUR SHORTCUTS" read "UR SHORTCUTS", "MENU" read "NU", app tiles cut).
   Root cause: the vertical scroller .drawer-scroll is overflow-y:auto with
   overflow-x UNSET, which computes to auto, so the panel itself is a
   horizontal scroller too; the panel (#profileDrawer > div, overflow-y:auto
   at line 1126) has the same hole. Any diagonal swipe scrolls the drawer
   sideways and it stays there, because nothing ever snaps it back. The
   lock below makes a sideways shift impossible, whatever overflows inside.
   The shortcuts row also gets scroll snap, so after a flick it settles on
   a whole item instead of resting with one cut mid-word at the edge
   (the video shows Reels cut to "eels" at the left edge and Video half
   in at the right). The row keeps its own horizontal scroll; only the
   drawer panel is locked. */
#profileDrawer > div{overflow-x:hidden;}
#profileDrawer .drawer-scroll{overflow-x:hidden;}
.menu-shortcuts-row{scroll-snap-type:x proximity;}
.menu-shortcut{scroll-snap-align:start;}

/* Set 35 (video evidence): the collapsed section chevron is a 14px ▾ glyph
   rotated -90deg. A rotated non-square box has a wider bounding rect than
   the unrotated one, so the chevron stuck out ~2.5px past the toggle
   button's right edge — the only horizontal overflow the render harness
   could measure in the drawer (scroller 289px vs 287px client). A fixed
   16px square box makes the rotation happen inside a square, so the
   bounding rect can never exceed the button. (The overflow-x lock above
   is still the defence for the larger shift the video shows on the phone,
   whose exact iOS source the Chrome harness cannot reproduce.) */
.menu-section-toggle .menu-chevron{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;flex-shrink:0;}
/* ==================== Set 36: Full colour + engagement ====================
   Colour system (read before adding a colour):
   - Text on a filled green surface is DARK (#040D0C), never white, on the
     bright greens #10B981 / #059669 / #1DB954: white is 2.54 / 3.77 / 2.59
     on those fills, dark is 7.75 / 5.22 / 7.60. The green itself never
     changes: Discover, For You, Send and the compose FAB stay green.
   - White text is only used on DEEP greens: #047857 (5.48), #065F46 (7.68),
     #0B7D58 (5.14), #1E7A52 (5.30). The 2026-10-01 note is verified and
     still holds: #3AA273 + white is 3.18, #1E7A52 + white is 5.30, so a
     filled surface that must keep white text uses #1E7A52 or deeper, never
     #3AA273 (which is not used anywhere in this codebase any more and is
     reserved for text/borders on dark backgrounds only). NOTE the trap
     the render test caught: index.html line 321 deepens EVERY
     .bg-emerald-500/.bg-emerald-600 to #047857, so those fills are DEEP
     (white text, 5.48) even though the class name says 500/600. Dark
     text #040D0C on #047857 is 3.59 and must never be used; the dark
     text belongs only on the true brights above.
   - Milk #EDE6D3 is --milk (Light #FFFFFF, Dark #EDE6D3, dark-scoped only).
     Dark text on milk is #111827 (14.24), muted #4B5563 (6.07), danger
     #B91C1C (5.19), emerald #065F46 (6.17). #047857 on milk is 4.40 and is
     NOT used on milk any more: it is #065F46 everywhere milk is the ground.
   - Hover/focus/active states must keep the same readable pair as rest.
     The headline bug was a sticky touch :hover: .hover\:bg-forest-800\/60
     (specificity 0,2,0) beat the milk safety net (:where, specificity 0)
     on the tapped .more-row, so the row went dark forest while its text
     stayed dark #111827 (1.08:1). Every hover rule below is theme-scoped
     and beats the hover utilities, so a tapped row stays readable.
   - The verified badge stays BLUE. No end-to-end encryption claims. */
:root {
  --fva-text-on-green: #040D0C;
  --fva-green-deep: #1E7A52;
  --fva-milk-hover: #DCD2B8;
  --fva-milk-hover-light: #D1FAE5;
  --fva-signout-hover: #991B1B;
  --fva-eng-level: #1E7A52;
}

/* ---- F1 (headline): the tapped .more-row stays milk-readable. ----
   Dark: hover/focus/active go darker milk #DCD2B8 (label 11.79, arrow
   5.02, sign-out 5.52 with #991B1B), never dark forest. Specificity
   (0,3,1) beats .hover\:bg-forest-800\/60:hover (0,2,0). Light: hover
   goes #D1FAE5 (label 15.64, arrow 6.66). */
html[data-theme="dark"] .more-row:hover,
html[data-theme="dark"] .more-row:focus-visible,
html[data-theme="dark"] .more-row:active,
html.dark .more-row:hover,
html.dark .more-row:focus-visible,
html.dark .more-row:active { background: var(--fva-milk-hover); }
html[data-theme="dark"] .more-row:hover .text-red-400,
html[data-theme="dark"] .more-row:focus-visible .text-red-400,
html[data-theme="dark"] .more-row:active .text-red-400,
html.dark .more-row:hover .text-red-400,
html.dark .more-row:focus-visible .text-red-400,
html.dark .more-row:active .text-red-400 { color: var(--fva-signout-hover); }
html[data-theme="light"] .more-row:hover,
html[data-theme="light"] .more-row:focus-visible,
html[data-theme="light"] .more-row:active { background: var(--fva-milk-hover-light); }

/* ---- F2: .more-row labels in Light. ----
   There was no Light override for .text-slate-200 / .text-slate-400, so
   in Light the menu labels were #E2E8F0 on white (1.23) and the arrows
   #94A3B8 on white (2.56). Now #111827 (17.74) and #4B5563 (7.56). */
html[data-theme="light"] .more-row .text-slate-200 { color: var(--lt-text); }
html[data-theme="light"] .more-row .text-slate-400 { color: var(--lt-muted); }
html[data-theme="light"] .more-row .text-red-400 { color: var(--lt-danger); }

/* ---- F3: dark text on deep green FAILS — the corrected rule. ----
   CORRECTION (render test, 2026-11-14): index.html line 321 already
   deepens EVERY .bg-emerald-500/.bg-emerald-600 to #047857 in both
   themes, so white text on them is 5.48 and already passes (Pro pill,
   Mark all as read, switcher Switch). The first version of this set
   wrongly assumed the Tailwind brights (#10B981/#059669) and set dark
   text #040D0C, which is 3.59 on #047857 — it BROKE those buttons, and
   the render test caught it. That rule is removed, not shipped.
   What DOES fail on #047857 is the near-black text .text-forest-950
   (#050E0B, 3.57): the DM count badge, the "For You" chip when not
   active, the "+ Add" button and the header Create button. White
   (5.48) fixes all of them. .is-active is excluded: its own rule
   already puts dark text on bright #10B981 (7.71) and must not change. */
.bg-emerald-500.text-forest-950:not(.is-active),
.bg-emerald-600.text-forest-950:not(.is-active) { color: #FFFFFF; }
/* Component greens that carry their own white text (same fix, own rule
   so a later component edit cannot silently re-break them). Greens
   unchanged, only the text darkens. */
.reel-send-btn { color: #040D0C; }
.reel-follow-btn { color: #040D0C; }
.pymk-add { color: #040D0C; }
.music-open { color: #040D0C; }
.music-open:hover { background: #10b981; color: #040D0C; }
.other-profile-tab.is-active { color: #040D0C; }
#reelToggleBtn.is-on { color: #040D0C; }

/* ---- F4: chat bubbles. ----
   CORRECTION (render test, 2026-11-14): the Dark mine bubble is
   bg-emerald-600, whose ground is #047857 via index.html line 321, and
   its 9px timestamp computes WHITE (5.48), not #A7F3D0 — .text-white
   beats .text-emerald-200 by rule order in Dark. The first version of
   this set wrongly set the Dark timestamp to #040D0C (3.59 on #047857)
   and broke it; that rule is removed. Only the Light timestamp was a
   real defect: #065F46 on #047857 (1.40, via the Light
   .text-emerald-200 rule) — now white (5.48). */
html[data-theme="light"] .chat-bubble-mine .text-emerald-200 { color: var(--lt-surface); }

/* ---- F5: Spotify badge. #FFFFFF on #1DB954 is 2.59; #040D0C is 7.60.
   (Set 104B: the Audius badge is gone with Audius.) */
.music-track-badge.spotify { color: #040D0C; }

/* ---- F6: composer action pills on milk (Dark). ----
   .text-emerald-400 was forced to #047857 on milk (4.40); #065F46 is
   6.17. Same selector as the old rule, later in the file, so it wins. */
html[data-theme="dark"] .composer-home-actions .text-emerald-400,
html.dark .composer-home-actions .text-emerald-400 { color: #065F46; }

/* ---- F7: "Current account" in the account switcher modal. ----
   CORRECTION (render test, 2026-11-14): the ground is NOT milk. The
   modal card is dark #0B1E18 in Dark (--fva-card, second :root block),
   so "Current account" #047857 on it is 3.16. The first version of
   this set assumed milk and darkened the text to #065F46 (2.25 on the
   real ground — worse). On a dark card the text must go LIGHT:
   #6EE7B7 on #0B1E18 is 9.90. In Light the card carries class bg-white
   but no rule gives it a background, so it is transparent over the
   black/60 overlay and every dark text in it sits on a dark ground:
   the card gets the white background its class intends, and then
   #047857 on white is 5.48 with no text change. */
html[data-theme="dark"] #userAccountSwitchList .text-emerald-700,
html.dark #userAccountSwitchList .text-emerald-700 { color: #6EE7B7; }
html[data-theme="light"] #userAccountSwitchModal > div { background: var(--lt-surface); }

/* ---- F8: Light keeps white where white passes. ----
   CORRECTION (render test, 2026-11-14): the blanket Light .text-white
   rule turns coloured-button text dark. For red-600 that is a real
   break (3.67); the rule below restores white (4.83). Emerald-700 was
   listed here too, but the control already measures 5.48 in Light —
   index.html line 231 already preserves it — so its line below is a
   harmless guard, not a fix. */
html[data-theme="light"] .bg-emerald-700.text-white { color: #FFFFFF; }
html[data-theme="light"] .bg-red-600.text-white { color: var(--lt-surface); }

/* ---- F9: grey text on milk buttons in Dark (the net's blind spot). ----
   The milk net backgrounds every plain button in Dark and its colour
   rule (0,1,2) tries to make the text #111827 — but the Dark grey rules
   (design.css:49-53, #appView .text-gray-400/.text-gray-500/.text-gray-600,
   and :2262 for #installPromptModal) are (1,2,1) !important and set the
   muted #94A3B8, which on milk is 2.06. Measured failures: the account
   switcher modal's "Sign out" button and close button, the After Hours
   pill in Pro mode, the grey icon buttons, and the install prompt's
   dismiss button. This rule re-asserts dark text for exactly the buttons
   the net milks (same exclusion list, plus an #appView /
   #installPromptModal anchor so it beats the (1,2,1) !important grey
   rules). Grey-300 and slate-400 buttons already measure #111827 and
   need nothing. */
html[data-theme="dark"] #appView button.text-gray-400:not(:where([class^="bg-"], [class*=" bg-"], .app-menu-item, .auth-panel-switch, .auth-submit, .author-back, .chat-action-btn, .chat-photo-btn, .chat-transcript-toggle, .chat-quote, .chat-reaction-chip, .chat-reaction-chip-mine, .chat-reaction-pick, .compose-fab, .feed-mode-tab, .feed-tab, .filter-chip, .fva-cookie-accept, .fva-cookie-decline, .fva-empty, .fva-outline, .fva-pencil, .fva-pill, .fva-pill-solid, .gift-tile, .glass-card, .growth-blue-btn, .is-active, .is-on, .job-filter, .liked-reel-thumb, .login-gate-showhide, .menu-section-toggle, .menu-shortcut, .menu-switch-btn, .music-tapload, .music-track-add, .music-track-play, .notif-tab, .other-profile-tab, .photo-viewer-close, .post-dismiss-btn, .post-menu-btn, .post-sheet-backdrop, .post-sheet-cancel, .post-sheet-result, .profile-conn, .profile-tab, .pymk-add, .pymk-remove, .reel-close, .reel-follow-btn, .reel-gif-thumb, .reel-nav, .reel-rail-btn, .reel-send-btn, .reel-tapload, .story-nav, .story-viewer-btn, .susp-btn, .susp-btn-danger, .susp-btn-outline, .susp-btn-primary, .theme-opt, .verify-pill, .video-sound-btn, .cc-btn, .live-composer-btn, .live-watch-btn, .live-manage-btn, .live-primary-btn, .live-secondary-btn, .live-danger-btn, .live-copy-btn, .live-view-close, .live-view-sound, .live-follow-btn, .live-action-btn, .live-send-btn, .live-reaction-btn, .net-switch button, .fva-menu-pop button, .post-sheet-actions button)),
html[data-theme="dark"] #appView button.text-gray-500:not(:where([class^="bg-"], [class*=" bg-"], .app-menu-item, .auth-panel-switch, .auth-submit, .author-back, .chat-action-btn, .chat-photo-btn, .chat-transcript-toggle, .chat-quote, .chat-reaction-chip, .chat-reaction-chip-mine, .chat-reaction-pick, .compose-fab, .feed-mode-tab, .feed-tab, .filter-chip, .fva-cookie-accept, .fva-cookie-decline, .fva-empty, .fva-outline, .fva-pencil, .fva-pill, .fva-pill-solid, .gift-tile, .glass-card, .growth-blue-btn, .is-active, .is-on, .job-filter, .liked-reel-thumb, .login-gate-showhide, .menu-section-toggle, .menu-shortcut, .menu-switch-btn, .music-tapload, .music-track-add, .music-track-play, .notif-tab, .other-profile-tab, .photo-viewer-close, .post-dismiss-btn, .post-menu-btn, .post-sheet-backdrop, .post-sheet-cancel, .post-sheet-result, .profile-conn, .profile-tab, .pymk-add, .pymk-remove, .reel-close, .reel-follow-btn, .reel-gif-thumb, .reel-nav, .reel-rail-btn, .reel-send-btn, .reel-tapload, .story-nav, .story-viewer-btn, .susp-btn, .susp-btn-danger, .susp-btn-outline, .susp-btn-primary, .theme-opt, .verify-pill, .video-sound-btn, .cc-btn, .live-composer-btn, .live-watch-btn, .live-manage-btn, .live-primary-btn, .live-secondary-btn, .live-danger-btn, .live-copy-btn, .live-view-close, .live-view-sound, .live-follow-btn, .live-action-btn, .live-send-btn, .live-reaction-btn, .net-switch button, .fva-menu-pop button, .post-sheet-actions button)),
html[data-theme="dark"] #appView button.text-gray-600:not(:where([class^="bg-"], [class*=" bg-"], .app-menu-item, .auth-panel-switch, .auth-submit, .author-back, .chat-action-btn, .chat-photo-btn, .chat-transcript-toggle, .chat-quote, .chat-reaction-chip, .chat-reaction-chip-mine, .chat-reaction-pick, .compose-fab, .feed-mode-tab, .feed-tab, .filter-chip, .fva-cookie-accept, .fva-cookie-decline, .fva-empty, .fva-outline, .fva-pencil, .fva-pill, .fva-pill-solid, .gift-tile, .glass-card, .growth-blue-btn, .is-active, .is-on, .job-filter, .liked-reel-thumb, .login-gate-showhide, .menu-section-toggle, .menu-shortcut, .menu-switch-btn, .music-tapload, .music-track-add, .music-track-play, .notif-tab, .other-profile-tab, .photo-viewer-close, .post-dismiss-btn, .post-menu-btn, .post-sheet-backdrop, .post-sheet-cancel, .post-sheet-result, .profile-conn, .profile-tab, .pymk-add, .pymk-remove, .reel-close, .reel-follow-btn, .reel-gif-thumb, .reel-nav, .reel-rail-btn, .reel-send-btn, .reel-tapload, .story-nav, .story-viewer-btn, .susp-btn, .susp-btn-danger, .susp-btn-outline, .susp-btn-primary, .theme-opt, .verify-pill, .video-sound-btn, .cc-btn, .live-composer-btn, .live-watch-btn, .live-manage-btn, .live-primary-btn, .live-secondary-btn, .live-danger-btn, .live-copy-btn, .live-view-close, .live-view-sound, .live-follow-btn, .live-action-btn, .live-send-btn, .live-reaction-btn, .net-switch button, .fva-menu-pop button, .post-sheet-actions button)),
html[data-theme="dark"] #installPromptModal button.text-gray-500:not(:where([class^="bg-"], [class*=" bg-"], .app-menu-item, .auth-panel-switch, .auth-submit, .author-back, .chat-action-btn, .chat-photo-btn, .chat-transcript-toggle, .chat-quote, .chat-reaction-chip, .chat-reaction-chip-mine, .chat-reaction-pick, .compose-fab, .feed-mode-tab, .feed-tab, .filter-chip, .fva-cookie-accept, .fva-cookie-decline, .fva-empty, .fva-outline, .fva-pencil, .fva-pill, .fva-pill-solid, .gift-tile, .glass-card, .growth-blue-btn, .is-active, .is-on, .job-filter, .liked-reel-thumb, .login-gate-showhide, .menu-section-toggle, .menu-shortcut, .menu-switch-btn, .music-tapload, .music-track-add, .music-track-play, .notif-tab, .other-profile-tab, .photo-viewer-close, .post-dismiss-btn, .post-menu-btn, .post-sheet-backdrop, .post-sheet-cancel, .post-sheet-result, .profile-conn, .profile-tab, .pymk-add, .pymk-remove, .reel-close, .reel-follow-btn, .reel-gif-thumb, .reel-nav, .reel-rail-btn, .reel-send-btn, .reel-tapload, .story-nav, .story-viewer-btn, .susp-btn, .susp-btn-danger, .susp-btn-outline, .susp-btn-primary, .theme-opt, .verify-pill, .video-sound-btn, .cc-btn, .live-composer-btn, .live-watch-btn, .live-manage-btn, .live-primary-btn, .live-secondary-btn, .live-danger-btn, .live-copy-btn, .live-view-close, .live-view-sound, .live-follow-btn, .live-action-btn, .live-send-btn, .live-reaction-btn, .net-switch button, .fva-menu-pop button, .post-sheet-actions button)),
html.dark #appView button.text-gray-400:not(:where([class^="bg-"], [class*=" bg-"], .app-menu-item, .auth-panel-switch, .auth-submit, .author-back, .chat-action-btn, .chat-photo-btn, .chat-transcript-toggle, .chat-quote, .chat-reaction-chip, .chat-reaction-chip-mine, .chat-reaction-pick, .compose-fab, .feed-mode-tab, .feed-tab, .filter-chip, .fva-cookie-accept, .fva-cookie-decline, .fva-empty, .fva-outline, .fva-pencil, .fva-pill, .fva-pill-solid, .gift-tile, .glass-card, .growth-blue-btn, .is-active, .is-on, .job-filter, .liked-reel-thumb, .login-gate-showhide, .menu-section-toggle, .menu-shortcut, .menu-switch-btn, .music-tapload, .music-track-add, .music-track-play, .notif-tab, .other-profile-tab, .photo-viewer-close, .post-dismiss-btn, .post-menu-btn, .post-sheet-backdrop, .post-sheet-cancel, .post-sheet-result, .profile-conn, .profile-tab, .pymk-add, .pymk-remove, .reel-close, .reel-follow-btn, .reel-gif-thumb, .reel-nav, .reel-rail-btn, .reel-send-btn, .reel-tapload, .story-nav, .story-viewer-btn, .susp-btn, .susp-btn-danger, .susp-btn-outline, .susp-btn-primary, .theme-opt, .verify-pill, .video-sound-btn, .cc-btn, .live-composer-btn, .live-watch-btn, .live-manage-btn, .live-primary-btn, .live-secondary-btn, .live-danger-btn, .live-copy-btn, .live-view-close, .live-view-sound, .live-follow-btn, .live-action-btn, .live-send-btn, .live-reaction-btn, .net-switch button, .fva-menu-pop button, .post-sheet-actions button)),
html.dark #appView button.text-gray-500:not(:where([class^="bg-"], [class*=" bg-"], .app-menu-item, .auth-panel-switch, .auth-submit, .author-back, .chat-action-btn, .chat-photo-btn, .chat-transcript-toggle, .chat-quote, .chat-reaction-chip, .chat-reaction-chip-mine, .chat-reaction-pick, .compose-fab, .feed-mode-tab, .feed-tab, .filter-chip, .fva-cookie-accept, .fva-cookie-decline, .fva-empty, .fva-outline, .fva-pencil, .fva-pill, .fva-pill-solid, .gift-tile, .glass-card, .growth-blue-btn, .is-active, .is-on, .job-filter, .liked-reel-thumb, .login-gate-showhide, .menu-section-toggle, .menu-shortcut, .menu-switch-btn, .music-tapload, .music-track-add, .music-track-play, .notif-tab, .other-profile-tab, .photo-viewer-close, .post-dismiss-btn, .post-menu-btn, .post-sheet-backdrop, .post-sheet-cancel, .post-sheet-result, .profile-conn, .profile-tab, .pymk-add, .pymk-remove, .reel-close, .reel-follow-btn, .reel-gif-thumb, .reel-nav, .reel-rail-btn, .reel-send-btn, .reel-tapload, .story-nav, .story-viewer-btn, .susp-btn, .susp-btn-danger, .susp-btn-outline, .susp-btn-primary, .theme-opt, .verify-pill, .video-sound-btn, .cc-btn, .live-composer-btn, .live-watch-btn, .live-manage-btn, .live-primary-btn, .live-secondary-btn, .live-danger-btn, .live-copy-btn, .live-view-close, .live-view-sound, .live-follow-btn, .live-action-btn, .live-send-btn, .live-reaction-btn, .net-switch button, .fva-menu-pop button, .post-sheet-actions button)),
html.dark #appView button.text-gray-600:not(:where([class^="bg-"], [class*=" bg-"], .app-menu-item, .auth-panel-switch, .auth-submit, .author-back, .chat-action-btn, .chat-photo-btn, .chat-transcript-toggle, .chat-quote, .chat-reaction-chip, .chat-reaction-chip-mine, .chat-reaction-pick, .compose-fab, .feed-mode-tab, .feed-tab, .filter-chip, .fva-cookie-accept, .fva-cookie-decline, .fva-empty, .fva-outline, .fva-pencil, .fva-pill, .fva-pill-solid, .gift-tile, .glass-card, .growth-blue-btn, .is-active, .is-on, .job-filter, .liked-reel-thumb, .login-gate-showhide, .menu-section-toggle, .menu-shortcut, .menu-switch-btn, .music-tapload, .music-track-add, .music-track-play, .notif-tab, .other-profile-tab, .photo-viewer-close, .post-dismiss-btn, .post-menu-btn, .post-sheet-backdrop, .post-sheet-cancel, .post-sheet-result, .profile-conn, .profile-tab, .pymk-add, .pymk-remove, .reel-close, .reel-follow-btn, .reel-gif-thumb, .reel-nav, .reel-rail-btn, .reel-send-btn, .reel-tapload, .story-nav, .story-viewer-btn, .susp-btn, .susp-btn-danger, .susp-btn-outline, .susp-btn-primary, .theme-opt, .verify-pill, .video-sound-btn, .cc-btn, .live-composer-btn, .live-watch-btn, .live-manage-btn, .live-primary-btn, .live-secondary-btn, .live-danger-btn, .live-copy-btn, .live-view-close, .live-view-sound, .live-follow-btn, .live-action-btn, .live-send-btn, .live-reaction-btn, .net-switch button, .fva-menu-pop button, .post-sheet-actions button)),
html.dark #installPromptModal button.text-gray-500:not(:where([class^="bg-"], [class*=" bg-"], .app-menu-item, .auth-panel-switch, .auth-submit, .author-back, .chat-action-btn, .chat-photo-btn, .chat-transcript-toggle, .chat-quote, .chat-reaction-chip, .chat-reaction-chip-mine, .chat-reaction-pick, .compose-fab, .feed-mode-tab, .feed-tab, .filter-chip, .fva-cookie-accept, .fva-cookie-decline, .fva-empty, .fva-outline, .fva-pencil, .fva-pill, .fva-pill-solid, .gift-tile, .glass-card, .growth-blue-btn, .is-active, .is-on, .job-filter, .liked-reel-thumb, .login-gate-showhide, .menu-section-toggle, .menu-shortcut, .menu-switch-btn, .music-tapload, .music-track-add, .music-track-play, .notif-tab, .other-profile-tab, .photo-viewer-close, .post-dismiss-btn, .post-menu-btn, .post-sheet-backdrop, .post-sheet-cancel, .post-sheet-result, .profile-conn, .profile-tab, .pymk-add, .pymk-remove, .reel-close, .reel-follow-btn, .reel-gif-thumb, .reel-nav, .reel-rail-btn, .reel-send-btn, .reel-tapload, .story-nav, .story-viewer-btn, .susp-btn, .susp-btn-danger, .susp-btn-outline, .susp-btn-primary, .theme-opt, .verify-pill, .video-sound-btn, .cc-btn, .live-composer-btn, .live-watch-btn, .live-manage-btn, .live-primary-btn, .live-secondary-btn, .live-danger-btn, .live-copy-btn, .live-view-close, .live-view-sound, .live-follow-btn, .live-action-btn, .live-send-btn, .live-reaction-btn, .net-switch button, .fva-menu-pop button, .post-sheet-actions button)) { color: #111827 !important; }

/* ---- F10: .fva-primary in Dark (milk-net friendly fire). ----
   .fva-primary is background #047857 with white text (5.48), but it is
   not in the milk net's exclusion list, so the net's colour rule
   (0,1,2) beat its own (0,1,0) and turned Save settings / Change
   password / Create event, squad, group dark-on-green (3.23). This
   (0,2,2) rule restores the white text in Dark. Light was already
   correct (5.48) and is untouched. */
html[data-theme="dark"] button.fva-primary,
html.dark button.fva-primary { color: #FFFFFF; }

/* ---- F11: "Verify your identity" pill in Light — checked, already
   passing. The pill's colour is var(--fva-accent-text), which is
   #047857 in Light (5.48 on white). The first version of this set
   listed it as 1.52 (assuming #6EE7B7) and added a no-op rule; the
   render test measured 5.48 in the control, so no rule is shipped. */

/* ---- F12: viewer close buttons over photos. ----
   White icons on a 12-15% white tint are 1.00 on a white photo. The reel
   buttons already use a dark scrim; the photo viewer, story viewer and
   chat photo viewer now use the same rgba(0,0,0,.55) scrim (white icon
   on it over a white photo is 4.74, over a black photo higher). */
.photo-viewer-close,
.story-viewer-btn,
#chatPhotoViewer button { background: rgba(0,0,0,.55); }

/* ---- F13: cover-change camera label hover. ----
   CORRECTION (render test, 2026-11-14): the hover:bg-emerald-600
   utility has NO rule in the shipped CSS (no Tailwind), so on hover
   the label's background never changed — it stayed bg-black/60. The
   first version only set the hover text colour (#040D0C), which on the
   dark scrim would have been invisible. The fix now defines the hover
   state explicitly in both themes: #040D0C on #059669 (5.22). In Light
   the blanket .text-white rule turns the resting label #111827
   (invisible on a dark photo), so Light rest is white again. */
html[data-theme="light"] .cover-banner label { color: var(--lt-surface); }
html[data-theme="light"] .cover-banner label:hover,
html[data-theme="dark"] .cover-banner label:hover,
html.dark .cover-banner label:hover { color: #040D0C; background-color: #059669; }

/* ---- F14: Light #chatSeenLine (chat Seen line only).
   CORRECTION (render test, 2026-11-14): the Seen line is NOT inside the
   bubble — renderChatSeen appends #chatSeenLine to #chatMessageStream,
   so its ground is the stream background. In Dark it passes (6.66 over
   #040D0C), but in Light the stream is white and rgba(110,231,183,0.7)
   over white is 1.35, so Light gets deep green #047857 (5.48).
   SCOPED to #chatSeenLine on purpose: .text-emerald-300/70 is ALSO the
   moment composer char count (#moment-char-count), whose ground is the
   dark composer card (#081712) in BOTH themes — it already passes at
   6.44 there, and a blanket Light rule would have dropped it to 3.35
   (the first version of this fix did exactly that; the render test
   caught it). The char count needs no rule. */
html[data-theme="light"] #chatSeenLine { color: var(--lt-accent); }

/* ---- F15: Dark .mode-after-active (After Hours button).
   Found by the render test (2026-11-14): design.css:1544 sets white
   text on #B45309 (5.05), but the milk net's colour rule (0,1,2) beats
   it (0,1,0) in Dark — the net covers buttons with no bg- class, and
   #btnAfter in After Hours mode has none — so the button shows #111827
   on #B45309 (3.53). The background is NOT affected: the net's bg rule
   is specificity 0, so #B45309 stands. This Dark-scoped rule (0,2,0)
   restores white text (5.05). Light is untouched (no net there). */
html[data-theme="dark"] .mode-after-active,
html.dark .mode-after-active { color: #FFFFFF; }

/* ---- Engagement (Set 36, Part 2). ----
   Every number in the card comes from GET engagement/summary (real rows
   in posts, comments, likes, stories, gift_transactions, connections).
   No fake counts, no fake streaks, no notifications. Layout only here;
   text colours reuse the existing theme-aware utilities, except the
   level badge (deep green #1E7A52 + white, 5.30, the note's
   recommended filled green) and the claim button (bright green #059669
   + dark text #040D0C, 5.22, the F3 pattern). */
.eng-card-body { display: grid; gap: 12px; }
.eng-level-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.eng-level-badge { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 12px; border-radius: 999px; background: var(--fva-eng-level); color: #FFFFFF; font-size: 12px; font-weight: 800; }
.eng-xp-wrap { flex: 1; min-width: 140px; }
.eng-xp-bar { height: 8px; border-radius: 999px; background: rgba(16,185,129,.25); overflow: hidden; }
.eng-xp-fill { height: 100%; border-radius: 999px; background: var(--fva-eng-level); }
.eng-xp-note { font-size: 11px; margin-top: 4px; }
.eng-stats { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 12px; }
.eng-stat b { font-weight: 800; }
.eng-section-title { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.eng-challenge { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid rgba(128,128,128,.25); }
.eng-challenge-text { flex: 1; min-width: 0; }
.eng-challenge-title { font-size: 13px; font-weight: 700; }
.eng-challenge-prog { font-size: 11px; }
.eng-claim-btn { min-height: 44px; min-width: 76px; padding: 8px 14px; border-radius: 12px; background: #059669; color: #040D0C; font-size: 12px; font-weight: 800; cursor: pointer; flex-shrink: 0; }
.eng-claim-btn:disabled { opacity: .55; cursor: default; }
html[data-theme="dark"] .eng-claimed,
html.dark .eng-claimed { color: #6EE7B7; }
html[data-theme="light"] .eng-claimed { color: var(--lt-accent-strong); }
.eng-ach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.eng-ach { display: flex; gap: 8px; align-items: flex-start; padding: 8px; border-radius: 12px; border: 1px solid rgba(128,128,128,.25); }
.eng-ach-title { font-size: 12px; font-weight: 700; }
.eng-ach-note { font-size: 11px; }
.eng-flair-3 .profile-avatar { box-shadow: 0 0 0 3px #127A4D; }
.eng-flair-5 .profile-avatar { box-shadow: 0 0 0 3px #127A4D, 0 0 0 6px rgba(18,122,77,.35); }

/* ---- Connect Set 41: feed comments — feed video, comment input ---- */
/* Rebased onto f2ea5789 (Set 40): the D1 toast block + the opacity-100
   rule already live (Sets 34/39 landed them), so they are NOT duplicated here. */

/* D2. Feed video play button: centred on a paused feed video, hidden while
   it plays. 56px so it is easy to tap and clearly visible on a black frame. */
.feed-video-play-btn{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:2;min-width:56px;min-height:56px;border-radius:9999px;background:rgba(0,0,0,.65);color:#fff;font-size:22px;line-height:1;display:flex;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,.4)}
/* D2b. Press guard (Set 47): the global button:active rule replaces the
   button's transform with translateY(1px), and the reduced-motion block
   replaces it with none, so while pressed the button loses its -50%/-50%
   centring and jumps 28px down-right off the finger: the press lands on the
   button but the release lands on the video, the click synthesises on the
   wrapper div, and the play handler never runs (proven by CDP render:
   elementFromPoint flips BUTTON to VIDEO between press and release, and the
   computed transform loses its -28,-28 translation). Keep the centring
   while pressed; !important so it also beats the reduced-motion rule.
   Keeping the rest position is zero motion, so it respects that intent. */
.feed-video-play-btn:active{transform:translate(-50%,-50%)!important}
/* D5. Comment placeholder: .placeholder-gray-400 had no rule in the shipped
   CSS, so the "Write a comment..." placeholder fell back to the browser
   default grey: 4.27:1 on the card, under the 4.5:1 text bar (measured by
   CDP render at true 375px). Give it the intended Tailwind grey (#9ca3af).
   This also fixes the reply-box and draft placeholders, which use the same
   class. The input's own text (15.88:1) and the comment text (11.75:1)
   already pass, so no other input rule is added. */
.placeholder-gray-400::placeholder { color: #9ca3af; }
/* D2. Failed feed video: the retry card replaces the black box entirely
   (same pattern as .img-retry-card for photos). A failed video never stays
   a black hole with a small note underneath it. */
.feed-video-retry-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;width:100%;min-height:200px;padding:16px;background:#04110d;border:1px solid rgba(16,185,129,.35);border-radius:12px;color:#d1fae5;font-size:14px;text-align:center;cursor:pointer}
.feed-video-retry-icon{font-size:28px;line-height:1}
/* ---- Set 42: Switch account upgrade (three-dot menu + full-width cards).
   Layout lives here, NOT in Tailwind utilities, so the cards render the
   same with or without the Tailwind CDN (the render suite runs without
   it). Light values are the base; Dark overrides follow the file's
   html[data-theme="dark"] / html.dark convention. Menu text and status
   colours are AA (4.5+) on their grounds in both themes. */
#userAccountSwitchModal>div{background:#ffffff !important;}
html[data-theme="dark"] #userAccountSwitchModal>div,
html.dark #userAccountSwitchModal>div{background:#102824 !important;}
#userAccountSwitchModal .sw-acct-card{position:relative;display:block;border:1px solid #d8cfba;border-radius:12px;padding:12px;margin:0 0 8px;background:transparent;}
#userAccountSwitchModal .sw-acct-top{display:flex;align-items:flex-start;gap:12px;}
#userAccountSwitchModal .sw-acct-top img{width:40px;height:40px;border-radius:50%;object-fit:cover;flex-shrink:0;}
#userAccountSwitchModal .sw-acct-top .rounded-full{width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
#userAccountSwitchModal .sw-acct-id{flex:1 1 auto;min-width:0;}
#userAccountSwitchModal .sw-acct-name{font-size:15px;font-weight:700;line-height:1.35;overflow-wrap:break-word;color:#003A34;margin:0;}
#userAccountSwitchModal .sw-acct-email{font-size:12px;line-height:1.4;overflow-wrap:anywhere;color:#6B7280;margin:2px 0 0;}
#userAccountSwitchModal .sw-menu-btn{flex:0 0 auto;width:44px;height:44px;min-width:44px;min-height:44px;border-radius:50%;border:1px solid transparent;background:transparent;color:#374151;font-size:22px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0;}
#userAccountSwitchModal .sw-menu-btn:hover{background:rgba(0,0,0,0.06);}
#userAccountSwitchModal .sw-menu-btn:focus-visible{outline:2px solid #047857;outline-offset:2px;}
#userAccountSwitchModal .sw-acct-status{font-size:12px;line-height:1.4;margin:8px 0 0;white-space:normal;}
#userAccountSwitchModal .sw-acct-status-cur{font-weight:700;color:#047857;}
#userAccountSwitchModal .sw-acct-status-ok{font-weight:400;color:#4B5563;}
#userAccountSwitchModal .sw-acct-status-exp{font-weight:600;color:#92400E;}
#userAccountSwitchModal .sw-acct-actions{margin-top:10px;display:flex;}
#userAccountSwitchModal .sw-acct-switch{flex:1 1 auto;min-height:44px;border-radius:10px;border:none;background:#047857;color:#fff;font-size:13px;font-weight:700;cursor:pointer;padding:10px 12px;}
#userAccountSwitchModal .sw-acct-switch:hover{background:#065F46;}
#userAccountSwitchModal .sw-menu{position:absolute;top:54px;right:12px;z-index:30;min-width:220px;max-width:calc(100% - 24px);background:#fff;border:1px solid #a89b7b;border-radius:12px;box-shadow:0 10px 28px rgba(0,0,0,0.35);padding:6px;}
#userAccountSwitchModal .sw-menu-up{top:auto;bottom:8px;}
#userAccountSwitchModal .sw-menu-item{display:block;width:100%;text-align:left;min-height:44px;padding:10px 12px;font-size:14px;line-height:1.35;background:transparent;border:none;border-radius:8px;color:#10201a;cursor:pointer;}
#userAccountSwitchModal .sw-menu-item:hover{background:rgba(0,0,0,0.05);}
#userAccountSwitchModal .sw-menu-danger{color:#B91C1C;}
#userAccountSwitchModal .sw-menu-armed{background:#FEE2E2;color:#991B1B;}
html[data-theme="dark"] #userAccountSwitchModal .sw-acct-card,
html.dark #userAccountSwitchModal .sw-acct-card{border-color:var(--fva-border);}
html[data-theme="dark"] #userAccountSwitchModal .sw-acct-name,
html.dark #userAccountSwitchModal .sw-acct-name{color:var(--fva-text);}
html[data-theme="dark"] #userAccountSwitchModal .sw-acct-email,
html.dark #userAccountSwitchModal .sw-acct-email{color:var(--fva-text-muted);}
html[data-theme="dark"] #userAccountSwitchModal .sw-menu-btn,
html.dark #userAccountSwitchModal .sw-menu-btn{color:var(--fva-text);}
html[data-theme="dark"] #userAccountSwitchModal .sw-menu-btn:hover,
html.dark #userAccountSwitchModal .sw-menu-btn:hover{background:rgba(255,255,255,0.08);}
html[data-theme="dark"] #userAccountSwitchModal .sw-acct-status-cur,
html.dark #userAccountSwitchModal .sw-acct-status-cur{color:#6ee7b7;}
html[data-theme="dark"] #userAccountSwitchModal .sw-acct-status-ok,
html.dark #userAccountSwitchModal .sw-acct-status-ok{color:var(--fva-text-muted);}
html[data-theme="dark"] #userAccountSwitchModal .sw-acct-status-exp,
html.dark #userAccountSwitchModal .sw-acct-status-exp{color:#FCD34D;}
html[data-theme="dark"] #userAccountSwitchModal .sw-menu,
html.dark #userAccountSwitchModal .sw-menu{background:var(--fva-bg-elev);border-color:var(--fva-border);}
html[data-theme="dark"] #userAccountSwitchModal .sw-menu-item,
html.dark #userAccountSwitchModal .sw-menu-item{color:var(--fva-text);}
html[data-theme="dark"] #userAccountSwitchModal .sw-menu-item:hover,
html.dark #userAccountSwitchModal .sw-menu-item:hover{background:rgba(255,255,255,0.08);}
html[data-theme="dark"] #userAccountSwitchModal .sw-menu-danger,
html.dark #userAccountSwitchModal .sw-menu-danger{color:#fca5a5;}
html[data-theme="dark"] #userAccountSwitchModal .sw-menu-armed,
html.dark #userAccountSwitchModal .sw-menu-armed{background:rgba(252,165,165,0.15);color:#fca5a5;}

/* ---- Set 43: Go Live with Cloudflare Stream ---- */
.live-composer-btn{width:100%;min-height:44px;margin-top:10px;}
.live-composer-dot{width:10px;height:10px;border-radius:50%;background:#ef4444;flex-shrink:0;animation:live-pulse 1.6s ease-in-out infinite;}
@keyframes live-pulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.55;transform:scale(.8)}}
@media (prefers-reduced-motion: reduce){.live-composer-dot,.live-badge-dot{animation:none}}
.live-badge{display:inline-flex;align-items:center;gap:6px;background:#dc2626;color:#fff;font-size:11px;font-weight:800;letter-spacing:.04em;padding:4px 10px;border-radius:999px;min-height:24px;white-space:nowrap;flex-shrink:0;}
.live-badge-dot{width:8px;height:8px;border-radius:50%;background:#fff;flex-shrink:0;animation:live-pulse 1.6s ease-in-out infinite;}
.live-badge-replay{background:#475569;}
.live-card{padding:16px;display:flex;flex-direction:column;gap:12px;}
.live-card-top{display:flex;align-items:center;gap:12px;}
.live-card-who{flex:1;min-width:0;}
.live-card-name{font-size:14px;color:#fff;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.live-card-sub{font-size:11px;color:#9ca3af;}
.live-card-title{font-size:15px;font-weight:700;line-height:1.35;color:#f3f4f6;margin:0;}
.live-card-meta{font-size:12px;color:#9ca3af;margin:0;}
.live-card-actions{display:flex;gap:8px;}
.live-watch-btn{flex:1;min-height:44px;border-radius:12px;background:#dc2626;color:#fff;font-size:13px;font-weight:700;border:none;cursor:pointer;}
.live-watch-btn:hover{background:#b91c1c;}
.live-watch-btn:active{transform:scale(.95);}
.live-manage-btn{flex:1;min-height:44px;border-radius:12px;background:transparent;border:1px solid rgba(16,185,129,.5);color:#34d399;font-size:13px;font-weight:700;cursor:pointer;}
.live-card-ended{opacity:.95;}
.live-ended-pill{display:inline-flex;align-items:center;background:#374151;color:#e5e7eb;font-size:11px;font-weight:800;letter-spacing:.04em;padding:4px 10px;border-radius:999px;min-height:24px;white-space:nowrap;flex-shrink:0;}
.live-modal-card{max-height:calc(100vh - 32px);overflow-y:auto;}
/* Set 83: the card relies on .bg-white, which has no Light-theme rule
   (only the dark rule paints it). Without a ground the sheet is
   transparent in Light and its dark labels sit unreadably on the dimmed
   page behind it. White ground here; the dark !important rule still wins
   in Dark. */
.live-modal-card{background:#fff;}
.live-modal-body{display:flex;flex-direction:column;gap:10px;}
.live-label{font-size:12px;font-weight:700;color:#003A34;}
.live-input{width:100%;min-height:44px;font-size:16px;padding:10px 12px;border-radius:12px;border:1px solid #d1d5db;background:#fff;color:#111827;}
.live-input:focus{outline:none;border-color:#059669;}
/* Camera square preview: every camera preview is square (1:1). The stream is cropped with object-fit:cover, never distorted. */
.live-preview-box{position:relative;width:100%;aspect-ratio:1/1;background:#000;border-radius:16px;overflow:hidden;}
.live-preview{width:100%;height:100%;object-fit:cover;transform:scaleX(-1);}
/* Camera square preview: a photo/video taken with the device camera shows square in the composer. Library picks keep their natural shape. */
#mediaPreviewContainer.media-preview-is-camera #mediaPreviewImg,#mediaPreviewContainer.media-preview-is-camera #mediaPreviewVideo{aspect-ratio:1/1;max-height:none;object-fit:cover;}
.live-preview-empty{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:16px;text-align:center;background:rgba(0,0,0,.55);}
.live-preview-empty-title{color:#fff;font-weight:700;font-size:14px;margin:0;}
.live-note{font-size:12px;line-height:1.5;color:#4b5563;margin:0;}
.live-view-note{font-size:13px;line-height:1.5;color:#d1d5db;margin:0;}
.live-error-title{font-size:14px;font-weight:700;color:#b91c1c;margin:0;}
.live-view-error-title{font-size:15px;font-weight:700;color:#f87171;margin:0;}
.live-error-text{font-size:12px;color:#b91c1c;line-height:1.5;margin:0;}
.live-primary-btn{width:100%;min-height:44px;border-radius:12px;background:#047857;color:#fff;font-size:14px;font-weight:700;border:none;cursor:pointer;}
.live-primary-btn:disabled{opacity:.6;cursor:default;}
.live-secondary-btn{min-height:44px;padding:10px 16px;border-radius:12px;border:1px solid #d1d5db;background:#fff;color:#003A34;font-size:13px;font-weight:700;cursor:pointer;}
.live-danger-btn{flex:1;min-height:44px;border-radius:12px;background:#dc2626;color:#fff;font-size:14px;font-weight:700;border:none;cursor:pointer;}
.live-danger-btn:disabled{opacity:.6;cursor:default;}
.live-host-row{display:flex;gap:8px;}
.live-host-row .live-secondary-btn{flex:1;}
.live-obs-box{border:1px solid #d1d5db;border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:8px;background:#f9fafb;}
.live-obs-title{font-size:13px;font-weight:700;color:#003A34;margin:0;}
.live-obs-row{display:flex;align-items:center;gap:8px;}
.live-obs-label{font-size:11px;font-weight:700;color:#6b7280;width:72px;flex-shrink:0;}
.live-obs-value{flex:1;min-width:0;font-size:12px;color:#111827;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:ui-monospace,monospace;}
.live-obs-key{user-select:all;}
.live-copy-btn{min-height:44px;min-width:44px;padding:6px 10px;border-radius:8px;border:1px solid #d1d5db;background:#fff;color:#047857;font-size:12px;font-weight:700;cursor:pointer;flex-shrink:0;}
.live-onair{display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
.live-onair-title{font-size:15px;font-weight:700;color:#111827;margin:0;}
.live-host-comments{border-top:1px solid #e5e7eb;padding-top:10px;display:flex;flex-direction:column;gap:8px;max-height:180px;overflow-y:auto;}
.live-comment-row{display:flex;gap:8px;align-items:flex-start;}
.live-comment-body{flex:1;min-width:0;}
.live-comment-name{font-size:12px;font-weight:700;color:#111827;margin:0;}
.live-comment-time{font-weight:400;color:#6b7280;}
.live-comment-text{font-size:13px;line-height:1.45;color:#374151;margin:2px 0 0;overflow-wrap:anywhere;}
.live-view{height:100%;display:flex;flex-direction:column;background:#000;color:#fff;}
.live-view-top{display:flex;align-items:center;gap:10px;padding:12px 12px 8px;}
.live-view-close{min-width:44px;min-height:44px;border-radius:50%;background:rgba(255,255,255,.12);color:#fff;font-size:18px;border:none;cursor:pointer;flex-shrink:0;}
.live-view-count{font-size:12px;font-weight:700;color:#e5e7eb;white-space:nowrap;}
.live-view-sound{margin-left:auto;min-height:44px;padding:6px 12px;border-radius:999px;background:rgba(255,255,255,.12);color:#fff;font-size:12px;font-weight:700;border:none;cursor:pointer;flex-shrink:0;}
.live-view-stage{position:relative;width:100%;aspect-ratio:16/9;max-height:46vh;background:#000;flex-shrink:0;}
.live-view-video{width:100%;height:100%;object-fit:contain;background:#000;}
.live-view-iframe{width:100%;height:100%;border:none;background:#000;}
.live-connecting{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.6);}
.live-error-tile{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:20px;text-align:center;background:#0B0F0E;}
.live-view .live-secondary-btn{border-color:rgba(255,255,255,.35);color:#fff;background:rgba(255,255,255,.08);}
.live-link-btn{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;}
.live-view-meta{padding:12px;display:flex;flex-direction:column;gap:6px;}
.live-view-host{display:flex;align-items:center;gap:8px;}
.live-view-name{font-size:14px;font-weight:700;color:#fff;flex:1;min-width:0;}
.live-follow-btn{min-height:44px;padding:6px 14px;border-radius:999px;background:#047857;color:#fff;font-size:12px;font-weight:700;border:none;cursor:pointer;flex-shrink:0;}
.live-view-title{font-size:15px;font-weight:700;color:#fff;line-height:1.35;margin:0;}
.live-view-sub{font-size:12px;color:#9ca3af;margin:0;}
.live-view-reactions{display:flex;flex-wrap:wrap;gap:4px;}
.live-reaction-btn{min-width:44px;min-height:44px;font-size:20px;border-radius:12px;background:rgba(255,255,255,.08);border:1px solid transparent;cursor:pointer;color:#fff;}
.live-reaction-mine{border-color:#059669;background:rgba(5,150,105,.25);}
.live-view-comments{flex:1;overflow-y:auto;padding:4px 12px 12px;display:flex;flex-direction:column;gap:10px;min-height:80px;}
.live-view .live-comment-name{color:#f3f4f6;}
.live-view .live-comment-time{color:#9ca3af;}
.live-view .live-comment-text{color:#e5e7eb;}
.live-view-actions{display:flex;gap:8px;padding:0 12px 10px;}
.live-action-btn{flex:1;min-height:44px;border-radius:12px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2);color:#fff;font-size:13px;font-weight:700;cursor:pointer;}
.live-view-commentbar{display:flex;gap:8px;padding:10px 12px calc(10px + env(safe-area-inset-bottom));border-top:1px solid rgba(255,255,255,.12);}
.live-comment-input{flex:1;min-width:0;min-height:44px;font-size:16px;padding:10px 12px;border-radius:12px;border:1px solid rgba(255,255,255,.25);background:rgba(255,255,255,.08);color:#fff;}
.live-comment-input::placeholder{color:#9ca3af;}
.live-send-btn{min-height:44px;padding:10px 16px;border-radius:12px;background:#047857;color:#fff;font-size:13px;font-weight:700;border:none;cursor:pointer;flex-shrink:0;}
html[data-theme="light"] .live-card-name{color:var(--lt-text);}
html[data-theme="light"] .live-card-sub{color:var(--lt-muted);}
html[data-theme="light"] .live-card-title{color:var(--lt-text);}
html[data-theme="light"] .live-card-meta{color:var(--lt-muted);}
html[data-theme="light"] .live-manage-btn{color:var(--lt-accent);}
html[data-theme="dark"] .live-label{color:#a7f3d0;}
html[data-theme="dark"] .live-note{color:#d1d5db;}
html[data-theme="dark"] .live-obs-box .live-note{color:#4b5563;}
html[data-theme="dark"] .live-onair-title{color:#f9fafb;}
html[data-theme="dark"] .live-error-title{color:#f87171;}
html[data-theme="dark"] .live-error-text{color:#fca5a5;}
html[data-theme="dark"] .live-host-comments{border-top-color:rgba(255,255,255,.12);}
html[data-theme="dark"] .live-host-comments .live-comment-name{color:#f3f4f6;}
html[data-theme="dark"] .live-host-comments .live-comment-time{color:#9ca3af;}
html[data-theme="dark"] .live-host-comments .live-comment-text{color:#e5e7eb;}

/* Set 44: version-update prompt. Same placement language as #toast: above
   the bottom nav on phones, centred near the top on desktop. Explicit
   colours (dark pill in both themes, like #toast) so it reads in Dark and
   Light. Reload is white on #047857 (4.5+); text #D1FAE5 on #0B1E18. */
#appUpdatePrompt{top:64px;left:50%;transform:translateX(-50%);max-width:calc(100vw - 24px);}
#appUpdatePrompt .app-update-inner{display:flex;align-items:center;gap:10px;padding:6px 6px 6px 14px;border-radius:999px;background:#0B1E18;border:1px solid rgba(52,211,153,.5);color:#D1FAE5;font-size:13px;font-weight:500;box-shadow:0 10px 30px rgba(0,0,0,.35);}
#appUpdatePrompt .app-update-dot{width:8px;height:8px;border-radius:999px;background:#34D399;flex-shrink:0;}
#appUpdatePrompt .app-update-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
#appUpdatePrompt .app-update-reload{min-width:44px;min-height:44px;padding:0 16px;border-radius:999px;background:#047857;color:#fff;font-size:13px;font-weight:700;border:0;cursor:pointer;flex-shrink:0;}
#appUpdatePrompt .app-update-dismiss{min-width:44px;min-height:44px;padding:0 10px;border-radius:999px;background:transparent;color:#9CA3AF;font-size:14px;border:0;cursor:pointer;flex-shrink:0;}
@media (max-width:1023px){
  #appUpdatePrompt:not(.hidden){top:auto;bottom:calc(112px + env(safe-area-inset-bottom, 0px));left:12px;right:12px;transform:none;display:flex;justify-content:center;}
  #appUpdatePrompt .app-update-inner{max-width:100%;}
  #appUpdatePrompt .app-update-text{white-space:normal;}
}

/* ---- Set 46: Count pill style everywhere + milk restyle (2026-11-14) ----
   Fortune: "Use that connection and count number design style in everywhere
   the white milk colors to that style" + "Make sure it looks premium with
   amenities". The reference is the Set 35 drawer Connections pill: a dark
   translucent pill, emerald label, solid green count badge. This section
   turns that into tokens + shared classes and restyles every count and
   every milk surface to it. No earlier rule is edited; this section only
   adds rules after Sets 32/35/36, so their contrast wins are preserved.
   Grounds: Dark pill blends rgba(6,40,33,.6) over #050E0B = #061E18;
   Light pill is #ECFDF5. All ratios below were computed with a script:
   white on #047857 5.48; #6EE7B7 on dark pill 11.42; #047857 on #ECFDF5 5.21;
   #111827 on #ECFDF5 16.84; #B91C1C on #ECFDF5 6.14; #4B5563 on #ECFDF5 7.17;
   #FCA5A5 on dark pill 9.17; #9CA3AF on dark pill 6.85; #F59E0B on dark pill 8.10.
   Trap: #A7F3D0 on #047857 is 4.28 (FAILS) — never use pale-green text on
   the green badge. The Reels viewer (#reelsView) and the switcher
   (#userAccountSwitchModal) are excluded everywhere in this section:
   Sets 45 and 44 own them. */

/* Tokens. Dark is the default theme, so :root carries the Dark values and
   Light overrides them. The badge is identical in both themes. */
:root {
  --fva-pill-bg: rgba(6,40,33,.6);
  --fva-pill-bg-hover: rgba(6,40,33,.9);
  --fva-pill-border: rgba(22,56,45,.9);
  --fva-pill-label: #6EE7B7;
  --fva-pill-card-bg: rgba(6,40,33,.5);
  --fva-pill-card-border: rgba(22,56,45,.8);
  --fva-pill-text: #E5E7EB;
  --fva-pill-muted: #9CA3AF;
  --fva-pill-danger: #FCA5A5;
  --fva-badge-bg: #047857;
  --fva-badge-text: #FFFFFF;
}
html[data-theme="light"] {
  --fva-pill-bg: var(--lt-accent-soft);
  --fva-pill-bg-hover: var(--lt-accent-soft);
  --fva-pill-border: var(--lt-border);
  --fva-pill-label: var(--lt-accent);
  --fva-pill-card-bg: var(--lt-accent-soft);
  --fva-pill-card-border: var(--lt-border);
  --fva-pill-text: var(--lt-text);
  --fva-pill-muted: var(--lt-muted);
  --fva-pill-danger: var(--lt-danger);
}

/* Shared classes: the pill container, the count chip, the card language. */
.fva-count-pill {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  min-height: 44px; padding: 8px 12px; border-radius: 999px;
  background: var(--fva-pill-bg); border: 1px solid var(--fva-pill-border);
  color: var(--fva-pill-label); font-weight: 700; font-size: 13px;
  cursor: pointer; text-align: left; font-variant-numeric: tabular-nums;
}
.fva-count-pill:hover { background: var(--fva-pill-bg-hover); }
.fva-count-pill:focus-visible { outline: 2px solid #34D399; outline-offset: 2px; }
/* Set 87: Network polish. Network name buttons read as clean text (no
   browser-default outset border, no pill background); the Network
   section clears the bottom nav on its own; scroll-into-view stops
   above the nav; filters have visible labels and a filled state. */
#followingPeopleList .net-name-btn, #followingOrgsList .net-name-btn, #userSearchList .net-name-btn, #discoverGrid .net-name-btn {
  background: transparent; border: 0; box-shadow: none; padding-left: 0; padding-right: 0;
}
html[data-theme="light"] #followingPeopleList .net-name-btn, html[data-theme="light"] #followingOrgsList .net-name-btn, html[data-theme="light"] #userSearchList .net-name-btn, html[data-theme="light"] #discoverGrid .net-name-btn { color: var(--lt-text); }
#view-network { padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px)); }
html { scroll-padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px)); }
.net-filter { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.net-filter-row input:not(:placeholder-shown) { border-color: #10b981; }
.net-filter-row input:focus { outline: none; border-color: #10b981; box-shadow: 0 0 0 2px rgba(16,185,129,0.35); }
.fva-count-card {
  background: var(--fva-pill-card-bg); border: 1px solid var(--fva-pill-card-border);
  border-radius: 16px;
}

/* Drawer cards (audit §0 + §3 tokens + M20, added by the render run):
   the YOUR SHORTCUTS (.menu-shortcut) and MENU (.app-menu-item) cards take
   the pill-card language. Two gaps the render found: (1) the pre-existing
   .menu-shortcut rule (line 2027) sets the dark card values UNSCOPED, so
   the dark card leaked into Light; (2) no rule ever applied the card
   language to .app-menu-item at all — it was transparent. These
   theme-scoped rules fix both. #verifyBanner keeps its deliberate
   transparent background (higher-specificity rule, line 651). In Light
   the shortcut icons go #047857: #34D399 on pale green fails icon
   contrast. */
html[data-theme="dark"] .menu-shortcut, html.dark .menu-shortcut,
html[data-theme="light"] .menu-shortcut { background: var(--fva-pill-card-bg); border: 1px solid var(--fva-pill-card-border); color: var(--fva-pill-text); }
html[data-theme="light"] .menu-shortcut svg, html[data-theme="light"] .menu-shortcut i { color: var(--lt-accent); }
html[data-theme="dark"] .app-menu-item, html.dark .app-menu-item,
html[data-theme="light"] .app-menu-item { background: var(--fva-pill-card-bg); border-color: var(--fva-pill-card-border); }

/* Comment inputs (audit M19, added by the render run: the feed comment
   input and the reaction-picker custom-emoji input were missing from the
   §2 inventory. Dark kept the deliberate near-black input (Set 32);
   Light was plain white. Both now take the pill background.
   Theme-scoped on purpose: index.html line 210 flips .bg-[#040d0c]/80 to
   white in Light at (0,2,1), and these (0,2,2) selectors beat it. */
html[data-theme="dark"] input[id^="commentInput-"], html.dark input[id^="commentInput-"],
html[data-theme="dark"] input[id^="customEmoji-"], html.dark input[id^="customEmoji-"],
html[data-theme="light"] input[id^="commentInput-"],
html[data-theme="light"] input[id^="customEmoji-"] { background: var(--fva-pill-bg); border: 1px solid var(--fva-pill-border); color: var(--fva-pill-text); }
html[data-theme="dark"] input[id^="commentInput-"]::placeholder, html.dark input[id^="commentInput-"]::placeholder,
html[data-theme="dark"] input[id^="customEmoji-"]::placeholder, html.dark input[id^="customEmoji-"]::placeholder,
html[data-theme="light"] input[id^="commentInput-"]::placeholder,
html[data-theme="light"] input[id^="customEmoji-"]::placeholder { color: var(--fva-pill-muted); }

/* ONE badge definition. Every count chip in the app resolves to it:
   the shared class, the drawer menu counts, the nav/header badges, the
   new-reels badge, the messages-drawer count, the notification tab counts,
   the poll percentages, the setCompactCount targets, the profile/mob
   count buttons and the engagement stat numbers. */
.fva-count-badge, .app-menu-count, #reelsBadge, #navNotifBadge, #dm-badge,
#messages-drawer-count, .notif-tab-count, .poll-pct,
#networkCount, #acceptedCount, #pendingCount, #profileConnectionCount, #profileConnectionCountTab,
.profile-conn strong, .mob-count-btn strong, .eng-stats b {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; min-height: 20px; padding: 2px 8px; border-radius: 999px;
  background: var(--fva-badge-bg); color: var(--fva-badge-text);
  font-size: 12px; font-weight: 700; line-height: 1.2; text-align: center;
  font-variant-numeric: tabular-nums; opacity: 1;
}
.fva-count-badge:empty, .app-menu-count:empty { display: none; }
.fva-count-badge.hidden, .app-menu-count.hidden { display: none; }

/* Hero numbers: the wallet balance and the analytics tile values stay
   large numerals, in emerald, on a pill card (a 100,000,000,000-coin
   balance in a 20px chip would be unreadable). */
html[data-theme="dark"] .gw-balance-card, html.dark .gw-balance-card { background: var(--fva-pill-card-bg); border-color: var(--fva-pill-card-border); }
html[data-theme="light"] .gw-balance-card { background: var(--fva-pill-card-bg); border-color: var(--fva-pill-card-border); }
html[data-theme="dark"] .gw-balance, html.dark .gw-balance { color: #6EE7B7; }
html[data-theme="light"] .gw-balance { color: var(--lt-accent); }
.week-tile { background: var(--fva-pill-card-bg); border-color: var(--fva-pill-card-border); }
.week-tile strong { color: var(--fva-pill-label); }

/* Small pill counters. */
#moment-char-count {
  display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px;
  background: var(--fva-pill-bg); border: 1px solid var(--fva-pill-border);
  color: var(--fva-pill-label); font-size: 11px; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.post-engagement-counts {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
  border-radius: 999px; background: var(--fva-pill-bg); border: 1px solid var(--fva-pill-border);
  color: var(--fva-pill-label); font-size: 13px; white-space: nowrap;
}
#trendingList button {
  background: var(--fva-pill-bg); border: 1px solid var(--fva-pill-border);
  border-radius: 999px; color: var(--fva-pill-label);
}

/* ---- Milk restyle: the Set 32 surfaces, now in the pill language. ----
   Dark ground: dark translucent pill. Light ground: pale-green pill.
   The auth card is cream (#f4f0e6) in BOTH themes, so it gets the Light
   pill style in both themes. The switcher subtree (#userAccountSwitchModal)
   is deliberately NOT overridden anywhere below: Set 44 owns it. */

/* Auth (cream ground, Light pill in both themes). */
html[data-theme="dark"] #authView .auth-provider, html.dark #authView .auth-provider,
html[data-theme="light"] #authView .auth-provider { background: #ECFDF5; border: 1px solid #A7F3D0; color: #111827; }
html[data-theme="dark"] #authView .auth-provider:hover, html.dark #authView .auth-provider:hover,
html[data-theme="light"] #authView .auth-provider:hover { background: #D1FAE5; }
html[data-theme="dark"] #authView .auth-input, html.dark #authView .auth-input,
html[data-theme="light"] #authView .auth-input { background: #ECFDF5; border: 1px solid #A7F3D0; color: #111827; }
html[data-theme="dark"] #authView .auth-input::placeholder, html.dark #authView .auth-input::placeholder,
html[data-theme="light"] #authView .auth-input::placeholder { color: #4B5563; }
html[data-theme="dark"] #authView .login-gate-showhide, html.dark #authView .login-gate-showhide,
html[data-theme="light"] #authView .login-gate-showhide { background: #ECFDF5; border: 1px solid #A7F3D0; color: #111827; }

/* Settings select. */
html[data-theme="dark"] #sectionSettings select, html.dark #sectionSettings select,
html[data-theme="light"] #sectionSettings select { background: var(--fva-pill-bg); border: 1px solid var(--fva-pill-border); color: var(--fva-pill-text); }

/* Other-profile tab. */
html[data-theme="dark"] .other-profile-tab, html.dark .other-profile-tab,
html[data-theme="light"] .other-profile-tab { background: var(--fva-pill-bg); border: 1px solid var(--fva-pill-border); color: var(--fva-pill-label); }

/* Gift tiles: pill cards; the coin cost is a badge (JS); the name stays readable. */
html[data-theme="dark"] .gift-tile, html.dark .gift-tile,
html[data-theme="light"] .gift-tile { background: var(--fva-pill-card-bg); border: 1px solid var(--fva-pill-card-border); }
html[data-theme="dark"] .gift-tile-name, html.dark .gift-tile-name,
html[data-theme="light"] .gift-tile-name { color: var(--fva-pill-text); }

/* Job filter pills (initial-state hook). */
.milk-pill { background: var(--fva-pill-bg); border: 1px solid var(--fva-pill-border); color: var(--fva-pill-label); }
html[data-theme="dark"] .job-filter.milk-pill, html.dark .job-filter.milk-pill,
html[data-theme="light"] .job-filter.milk-pill { color: var(--fva-pill-label); }

/* Feed-mode inactive tabs. The active pill keeps its green rule. */
html[data-theme="dark"] #feedModeTabs .feed-tab:not([data-active="true"]), html.dark #feedModeTabs .feed-tab:not([data-active="true"]),
html[data-theme="light"] #feedModeTabs .feed-tab:not([data-active="true"]) { background: var(--fva-pill-bg); border: 1px solid var(--fva-pill-border); color: var(--fva-pill-label); }

/* Composer home actions. Icons: bright 400s in Dark (3.0+ on the dark
   pill), 700-shades in Light. */
html[data-theme="dark"] .composer-home-actions button, html.dark .composer-home-actions button,
html[data-theme="light"] .composer-home-actions button { background: var(--fva-pill-bg); border: 1px solid var(--fva-pill-border); color: var(--fva-pill-label); }
html[data-theme="dark"] .composer-home-actions .text-emerald-400, html.dark .composer-home-actions .text-emerald-400 { color: #34D399; }
html[data-theme="dark"] .composer-home-actions .text-amber-400, html.dark .composer-home-actions .text-amber-400 { color: #FBBF24; }
html[data-theme="dark"] .composer-home-actions .text-sky-400, html.dark .composer-home-actions .text-sky-400 { color: #38BDF8; }
html[data-theme="dark"] .composer-home-actions .text-purple-400, html.dark .composer-home-actions .text-purple-400 { color: #C084FC; }
html[data-theme="light"] .composer-home-actions .text-emerald-400 { color: var(--lt-accent); }
html[data-theme="light"] .composer-home-actions .text-amber-400 { color: var(--lt-warn); }
html[data-theme="light"] .composer-home-actions .text-sky-400 { color: #0369A1; }
html[data-theme="light"] .composer-home-actions .text-purple-400 { color: #7E22CE; }

/* Post action row and comment actions: pill buttons. Danger (Delete)
   keeps a red text on the pill ground. The row already wraps at 375px. */
html[data-theme="dark"] .post-action-row button, html.dark .post-action-row button,
html[data-theme="dark"] .comment-actions button, html.dark .comment-actions button,
html[data-theme="light"] .post-action-row button, html[data-theme="light"] .comment-actions button {
  background: var(--fva-pill-bg); border: 1px solid var(--fva-pill-border);
  border-radius: 999px; color: var(--fva-pill-label); padding: 6px 10px;
}
html[data-theme="dark"] .post-action-row button[class*="text-red-"], html.dark .post-action-row button[class*="text-red-"],
html[data-theme="dark"] .comment-actions button[class*="text-red-"], html.dark .comment-actions button[class*="text-red-"],
html[data-theme="light"] .post-action-row button[class*="text-red-"], html[data-theme="light"] .comment-actions button[class*="text-red-"] { color: var(--fva-pill-danger); }
html[data-theme="light"] .post-action-row button:hover, html[data-theme="light"] .comment-actions button:hover { color: var(--lt-accent); }

/* Bottom nav (bar removal): per-icon pill ground/border removed; inactive muted, active emerald; avatar
   initials amber (bright in Dark, deep in Light). */
html[data-theme="dark"] nav.app-nav .nav-btn, html.dark nav.app-nav .nav-btn,
html[data-theme="light"] nav.app-nav .nav-btn { background: transparent; border: 0; color: var(--fva-pill-muted); }
html[data-theme="dark"] nav.app-nav .nav-btn.is-active, html.dark nav.app-nav .nav-btn.is-active { color: #34D399; }
html[data-theme="light"] nav.app-nav .nav-btn.is-active { color: var(--lt-accent); }
html[data-theme="light"] nav.app-nav .nav-btn:hover { color: var(--lt-text); }
html[data-theme="dark"] nav.app-nav .nav-pill-avatar-text, html.dark nav.app-nav .nav-pill-avatar-text { color: #F59E0B; }
html[data-theme="light"] nav.app-nav .nav-pill-avatar-text { color: var(--lt-warn); }

/* Header avatar initials (no photo): the ground is the button's pill
   background (the bg-slate-900 class does not resolve). */
html[data-theme="dark"] button[aria-label="Profile and Settings"] .text-amber-500, html.dark button[aria-label="Profile and Settings"] .text-amber-500 { color: #F59E0B; }
html[data-theme="light"] button[aria-label="Profile and Settings"] .text-amber-500 { color: var(--lt-warn); }

/* More-tab rows. */
html[data-theme="dark"] .more-row .text-slate-200, html.dark .more-row .text-slate-200,
html[data-theme="light"] .more-row .text-slate-200 { color: var(--fva-pill-text); }
html[data-theme="dark"] .more-row .text-slate-400, html.dark .more-row .text-slate-400,
html[data-theme="light"] .more-row .text-slate-400 { color: var(--fva-pill-muted); }
html[data-theme="dark"] .more-row .text-red-400, html.dark .more-row .text-red-400,
html[data-theme="light"] .more-row .text-red-400 { color: var(--fva-pill-danger); }

/* "Post as" org list (#accountSwitchList). NOT the user switcher. */
html[data-theme="dark"] #accountSwitchList .text-gray-500, html.dark #accountSwitchList .text-gray-500 { color: var(--fva-pill-muted) !important; }
html[data-theme="dark"] #accountSwitchList .text-\[11px\].text-emerald-400, html.dark #accountSwitchList .text-\[11px\].text-emerald-400 { color: var(--fva-pill-label); }
html[data-theme="dark"] #accountSwitchList .text-\[11px\].text-gray-400, html.dark #accountSwitchList .text-\[11px\].text-gray-400 { color: var(--fva-pill-muted) !important; }
html[data-theme="light"] #accountSwitchList .text-gray-500 { color: var(--fva-pill-muted); }
html[data-theme="light"] #accountSwitchList .text-\[11px\].text-emerald-400 { color: var(--fva-pill-label); }
html[data-theme="light"] #accountSwitchList .text-\[11px\].text-gray-400 { color: var(--fva-pill-muted); }

/* Location suggestion rows. */
html[data-theme="dark"] #postLocationSuggestions .text-white, html.dark #postLocationSuggestions .text-white,
html[data-theme="light"] #postLocationSuggestions .text-white { color: var(--fva-pill-text); }
html[data-theme="dark"] #postLocationSuggestions .text-gray-400, html.dark #postLocationSuggestions .text-gray-400 { color: var(--fva-pill-muted) !important; }
html[data-theme="light"] #postLocationSuggestions .text-gray-400 { color: var(--fva-pill-muted); }

/* Wallet modal inputs (Set 37 gave them a milk background). */
html[data-theme="dark"] #giftWalletModal input, html.dark #giftWalletModal input,
html[data-theme="light"] #giftWalletModal input { background: var(--fva-pill-bg); border: 1px solid var(--fva-pill-border); color: var(--fva-pill-text); }
html[data-theme="dark"] #giftWalletModal input::placeholder, html.dark #giftWalletModal input::placeholder,
html[data-theme="light"] #giftWalletModal input::placeholder { color: var(--fva-pill-muted); }


/* White-card fields (Set 32 list, switcher excluded): pill ground. */
/* White-card fields in Dark: the panels are already dark,
but the
   "Premium contrast" rules in index.html paint their fields #FFFFFF in
   BOTH themes. Where no stronger dark rule exists,
those fields are pure
   white in Dark and go milk here. Profile/wizard/tab-card/orgView fields
   are NOT listed: the existing !important dark rule (design.css:175-193)
   already paints them var(--fva-bg) dark in Dark,
so milk would lose to
   it and listing them would be dead code. Light keeps #FFFFFF fields. */
html[data-theme="dark"] #otherProfileModal input,
html[data-theme="dark"] #otherProfileModal select,
html[data-theme="dark"] #otherProfileModal textarea,
html[data-theme="dark"] #tab-admin div.bg-white input,
html[data-theme="dark"] #tab-admin div.bg-white select,
html[data-theme="dark"] #tab-admin div.bg-white textarea,
html[data-theme="dark"] #squadView input,
html[data-theme="dark"] #squadView textarea,
html[data-theme="dark"] #groupView input,
html[data-theme="dark"] #groupView select,
html[data-theme="dark"] #groupView textarea,
html[data-theme="dark"] #sectionSuspended input,
html[data-theme="dark"] #sectionSuspended textarea,
html.dark #otherProfileModal input,
html.dark #otherProfileModal select,
html.dark #otherProfileModal textarea,
html.dark #tab-admin div.bg-white input,
html.dark #tab-admin div.bg-white select,
html.dark #tab-admin div.bg-white textarea,
html.dark #squadView input,
html.dark #squadView textarea,
html.dark #groupView input,
html.dark #groupView select,
html.dark #groupView textarea,
html.dark #sectionSuspended input,
html.dark #sectionSuspended textarea { background: var(--fva-pill-bg); border: 1px solid var(--fva-pill-border); color: var(--fva-pill-text); }
/* White-card fields in Dark: the panels are already dark,
but the
   "Premium contrast" rules in index.html paint their fields #FFFFFF in
   BOTH themes. Where no stronger dark rule exists,
those fields are pure
   white in Dark and go milk here. Profile/wizard/tab-card/orgView fields
   are NOT listed: the existing !important dark rule (design.css:175-193)
   already paints them var(--fva-bg) dark in Dark,
so milk would lose to
   it and listing them would be dead code. Light keeps #FFFFFF fields. */
html[data-theme="light"] #otherProfileModal input,
html[data-theme="light"] #otherProfileModal select,
html[data-theme="light"] #otherProfileModal textarea,
html[data-theme="light"] #tab-admin div.bg-white input,
html[data-theme="light"] #tab-admin div.bg-white select,
html[data-theme="light"] #tab-admin div.bg-white textarea,
html[data-theme="light"] #squadView input,
html[data-theme="light"] #squadView textarea,
html[data-theme="light"] #groupView input,
html[data-theme="light"] #groupView select,
html[data-theme="light"] #groupView textarea,
html[data-theme="light"] #sectionSuspended input,
html[data-theme="light"] #sectionSuspended textarea,
html[data-theme="light"] #otherProfileModal input { background: var(--fva-pill-bg); border: 1px solid var(--fva-pill-border); color: var(--fva-pill-text); }
html[data-theme="dark"] #otherProfileModal input::placeholder,
html[data-theme="dark"] #otherProfileModal textarea::placeholder,
html[data-theme="dark"] #tab-admin div.bg-white input::placeholder,
html[data-theme="dark"] #tab-admin div.bg-white textarea::placeholder,
html[data-theme="dark"] #squadView input::placeholder,
html[data-theme="dark"] #squadView textarea::placeholder,
html[data-theme="dark"] #groupView input::placeholder,
html[data-theme="dark"] #groupView textarea::placeholder,
html[data-theme="dark"] #sectionSuspended input::placeholder,
html[data-theme="dark"] #sectionSuspended textarea::placeholder,
html.dark #otherProfileModal input::placeholder,
html.dark #otherProfileModal textarea::placeholder,
html.dark #tab-admin div.bg-white input::placeholder,
html.dark #tab-admin div.bg-white textarea::placeholder,
html.dark #squadView input::placeholder,
html.dark #squadView textarea::placeholder,
html.dark #groupView input::placeholder,
html.dark #groupView textarea::placeholder,
html.dark #sectionSuspended input::placeholder,
html.dark #sectionSuspended textarea::placeholder { color: var(--fva-pill-muted); }
html[data-theme="light"] #otherProfileModal input::placeholder,
html[data-theme="light"] #otherProfileModal textarea::placeholder,
html[data-theme="light"] #tab-admin div.bg-white input::placeholder,
html[data-theme="light"] #tab-admin div.bg-white textarea::placeholder,
html[data-theme="light"] #squadView input::placeholder,
html[data-theme="light"] #squadView textarea::placeholder,
html[data-theme="light"] #groupView input::placeholder,
html[data-theme="light"] #groupView textarea::placeholder,
html[data-theme="light"] #sectionSuspended input::placeholder,
html[data-theme="light"] #sectionSuspended textarea::placeholder { color: var(--fva-pill-muted); }

/* Safety nets, Set 46: same selector set as Set 32, pill background
   and pill text instead of milk. The Reels viewer and the switcher
   subtrees are excluded, so they keep the old milk net until Sets 44/45 land. */
:where(html[data-theme="dark"], html.dark) button:not(:where([class^="bg-"], [class*=" bg-"], .app-menu-item, .auth-panel-switch, .auth-submit, .author-back, .chat-action-btn, .chat-photo-btn, .chat-transcript-toggle, .chat-quote, .chat-reaction-chip, .chat-reaction-chip-mine, .chat-reaction-pick, .compose-fab, .feed-mode-tab, .feed-tab, .filter-chip, .fva-cookie-accept, .fva-cookie-decline, .fva-empty, .fva-outline, .fva-pencil, .fva-pill, .fva-pill-solid, .gift-tile, .glass-card, .growth-blue-btn, .is-active, .is-on, .job-filter, .liked-reel-thumb, .login-gate-showhide, .menu-section-toggle, .menu-shortcut, .menu-switch-btn, .music-tapload, .music-track-add, .music-track-play, .notif-tab, .other-profile-tab, .photo-viewer-close, .post-dismiss-btn, .post-menu-btn, .post-sheet-backdrop, .post-sheet-cancel, .post-sheet-result, .profile-conn, .profile-tab, .pymk-add, .pymk-remove, .reel-close, .reel-follow-btn, .reel-gif-thumb, .reel-nav, .reel-rail-btn, .reel-send-btn, .reel-tapload, .story-nav, .story-viewer-btn, .susp-btn, .susp-btn-danger, .susp-btn-outline, .susp-btn-primary, .theme-opt, .verify-pill, .video-sound-btn, .net-switch button, .fva-menu-pop button, .post-sheet-actions button, #reelsView *, #userAccountSwitchModal *)) { background: var(--fva-pill-bg); }
:where(html[data-theme="dark"], html.dark) input:not(:where([class^="bg-"], [class*=" bg-"], #reelsView *, #userAccountSwitchModal *)), :where(html[data-theme="dark"], html.dark) select:not(:where([class^="bg-"], [class*=" bg-"], #reelsView *, #userAccountSwitchModal *)), :where(html[data-theme="dark"], html.dark) textarea:not(:where([class^="bg-"], [class*=" bg-"], #reelsView *, #userAccountSwitchModal *)) { background: var(--fva-pill-bg); color: var(--fva-pill-text); }
html[data-theme="dark"] button:not(:where([class^="bg-"], [class*=" bg-"], .app-menu-item, .auth-panel-switch, .auth-submit, .author-back, .chat-action-btn, .chat-photo-btn, .chat-transcript-toggle, .chat-quote, .chat-reaction-chip, .chat-reaction-chip-mine, .chat-reaction-pick, .compose-fab, .feed-mode-tab, .feed-tab, .filter-chip, .fva-cookie-accept, .fva-cookie-decline, .fva-empty, .fva-outline, .fva-pencil, .fva-pill, .fva-pill-solid, .gift-tile, .glass-card, .growth-blue-btn, .is-active, .is-on, .job-filter, .liked-reel-thumb, .login-gate-showhide, .menu-section-toggle, .menu-shortcut, .menu-switch-btn, .music-tapload, .music-track-add, .music-track-play, .notif-tab, .other-profile-tab, .photo-viewer-close, .post-dismiss-btn, .post-menu-btn, .post-sheet-backdrop, .post-sheet-cancel, .post-sheet-result, .profile-conn, .profile-tab, .pymk-add, .pymk-remove, .reel-close, .reel-follow-btn, .reel-gif-thumb, .reel-nav, .reel-rail-btn, .reel-send-btn, .reel-tapload, .story-nav, .story-viewer-btn, .susp-btn, .susp-btn-danger, .susp-btn-outline, .susp-btn-primary, .theme-opt, .verify-pill, .video-sound-btn, .net-switch button, .fva-menu-pop button, .post-sheet-actions button, #reelsView *, #userAccountSwitchModal *)),
html.dark button:not(:where([class^="bg-"], [class*=" bg-"], .app-menu-item, .auth-panel-switch, .auth-submit, .author-back, .chat-action-btn, .chat-photo-btn, .chat-transcript-toggle, .chat-quote, .chat-reaction-chip, .chat-reaction-chip-mine, .chat-reaction-pick, .compose-fab, .feed-mode-tab, .feed-tab, .filter-chip, .fva-cookie-accept, .fva-cookie-decline, .fva-empty, .fva-outline, .fva-pencil, .fva-pill, .fva-pill-solid, .gift-tile, .glass-card, .growth-blue-btn, .is-active, .is-on, .job-filter, .liked-reel-thumb, .login-gate-showhide, .menu-section-toggle, .menu-shortcut, .menu-switch-btn, .music-tapload, .music-track-add, .music-track-play, .notif-tab, .other-profile-tab, .photo-viewer-close, .post-dismiss-btn, .post-menu-btn, .post-sheet-backdrop, .post-sheet-cancel, .post-sheet-result, .profile-conn, .profile-tab, .pymk-add, .pymk-remove, .reel-close, .reel-follow-btn, .reel-gif-thumb, .reel-nav, .reel-rail-btn, .reel-send-btn, .reel-tapload, .story-nav, .story-viewer-btn, .susp-btn, .susp-btn-danger, .susp-btn-outline, .susp-btn-primary, .theme-opt, .verify-pill, .video-sound-btn, .net-switch button, .fva-menu-pop button, .post-sheet-actions button, #reelsView *, #userAccountSwitchModal *)) { color: var(--fva-pill-text); }
html[data-theme="dark"] button[class*="text-red-"]:not(:where([class^="bg-"], [class*=" bg-"], .app-menu-item, .auth-panel-switch, .auth-submit, .author-back, .chat-action-btn, .chat-photo-btn, .chat-transcript-toggle, .chat-quote, .chat-reaction-chip, .chat-reaction-chip-mine, .chat-reaction-pick, .compose-fab, .feed-mode-tab, .feed-tab, .filter-chip, .fva-cookie-accept, .fva-cookie-decline, .fva-empty, .fva-outline, .fva-pencil, .fva-pill, .fva-pill-solid, .gift-tile, .glass-card, .growth-blue-btn, .is-active, .is-on, .job-filter, .liked-reel-thumb, .login-gate-showhide, .menu-section-toggle, .menu-shortcut, .menu-switch-btn, .music-tapload, .music-track-add, .music-track-play, .notif-tab, .other-profile-tab, .photo-viewer-close, .post-dismiss-btn, .post-menu-btn, .post-sheet-backdrop, .post-sheet-cancel, .post-sheet-result, .profile-conn, .profile-tab, .pymk-add, .pymk-remove, .reel-close, .reel-follow-btn, .reel-gif-thumb, .reel-nav, .reel-rail-btn, .reel-send-btn, .reel-tapload, .story-nav, .story-viewer-btn, .susp-btn, .susp-btn-danger, .susp-btn-outline, .susp-btn-primary, .theme-opt, .verify-pill, .video-sound-btn, .net-switch button, .fva-menu-pop button, .post-sheet-actions button, #reelsView *, #userAccountSwitchModal *)),
html.dark button[class*="text-red-"]:not(:where([class^="bg-"], [class*=" bg-"], .app-menu-item, .auth-panel-switch, .auth-submit, .author-back, .chat-action-btn, .chat-photo-btn, .chat-transcript-toggle, .chat-quote, .chat-reaction-chip, .chat-reaction-chip-mine, .chat-reaction-pick, .compose-fab, .feed-mode-tab, .feed-tab, .filter-chip, .fva-cookie-accept, .fva-cookie-decline, .fva-empty, .fva-outline, .fva-pencil, .fva-pill, .fva-pill-solid, .gift-tile, .glass-card, .growth-blue-btn, .is-active, .is-on, .job-filter, .liked-reel-thumb, .login-gate-showhide, .menu-section-toggle, .menu-shortcut, .menu-switch-btn, .music-tapload, .music-track-add, .music-track-play, .notif-tab, .other-profile-tab, .photo-viewer-close, .post-dismiss-btn, .post-menu-btn, .post-sheet-backdrop, .post-sheet-cancel, .post-sheet-result, .profile-conn, .profile-tab, .pymk-add, .pymk-remove, .reel-close, .reel-follow-btn, .reel-gif-thumb, .reel-nav, .reel-rail-btn, .reel-send-btn, .reel-tapload, .story-nav, .story-viewer-btn, .susp-btn, .susp-btn-danger, .susp-btn-outline, .susp-btn-primary, .theme-opt, .verify-pill, .video-sound-btn, .net-switch button, .fva-menu-pop button, .post-sheet-actions button, #reelsView *, #userAccountSwitchModal *)) { color: var(--fva-pill-danger); }
/* Light net: the same bare-button / bare-field set, pale-green pill. */
html[data-theme="light"] button:not(:where([class^="bg-"], [class*=" bg-"], .app-menu-item, .auth-panel-switch, .auth-submit, .author-back, .chat-action-btn, .chat-photo-btn, .chat-transcript-toggle, .chat-quote, .chat-reaction-chip, .chat-reaction-chip-mine, .chat-reaction-pick, .compose-fab, .feed-mode-tab, .feed-tab, .filter-chip, .fva-cookie-accept, .fva-cookie-decline, .fva-empty, .fva-outline, .fva-pencil, .fva-pill, .fva-pill-solid, .gift-tile, .glass-card, .growth-blue-btn, .is-active, .is-on, .job-filter, .liked-reel-thumb, .login-gate-showhide, .menu-section-toggle, .menu-shortcut, .menu-switch-btn, .music-tapload, .music-track-add, .music-track-play, .notif-tab, .other-profile-tab, .photo-viewer-close, .post-dismiss-btn, .post-menu-btn, .post-sheet-backdrop, .post-sheet-cancel, .post-sheet-result, .profile-conn, .profile-tab, .pymk-add, .pymk-remove, .reel-close, .reel-follow-btn, .reel-gif-thumb, .reel-nav, .reel-rail-btn, .reel-send-btn, .reel-tapload, .story-nav, .story-viewer-btn, .susp-btn, .susp-btn-danger, .susp-btn-outline, .susp-btn-primary, .theme-opt, .verify-pill, .video-sound-btn, .net-switch button, .fva-menu-pop button, .post-sheet-actions button, #reelsView *, #userAccountSwitchModal *)) { background: var(--fva-pill-bg); color: var(--fva-pill-text); }
html[data-theme="light"] button[class*="text-red-"]:not(:where([class^="bg-"], [class*=" bg-"], .app-menu-item, .auth-panel-switch, .auth-submit, .author-back, .chat-action-btn, .chat-photo-btn, .chat-transcript-toggle, .chat-quote, .chat-reaction-chip, .chat-reaction-chip-mine, .chat-reaction-pick, .compose-fab, .feed-mode-tab, .feed-tab, .filter-chip, .fva-cookie-accept, .fva-cookie-decline, .fva-empty, .fva-outline, .fva-pencil, .fva-pill, .fva-pill-solid, .gift-tile, .glass-card, .growth-blue-btn, .is-active, .is-on, .job-filter, .liked-reel-thumb, .login-gate-showhide, .menu-section-toggle, .menu-shortcut, .menu-switch-btn, .music-tapload, .music-track-add, .music-track-play, .notif-tab, .other-profile-tab, .photo-viewer-close, .post-dismiss-btn, .post-menu-btn, .post-sheet-backdrop, .post-sheet-cancel, .post-sheet-result, .profile-conn, .profile-tab, .pymk-add, .pymk-remove, .reel-close, .reel-follow-btn, .reel-gif-thumb, .reel-nav, .reel-rail-btn, .reel-send-btn, .reel-tapload, .story-nav, .story-viewer-btn, .susp-btn, .susp-btn-danger, .susp-btn-outline, .susp-btn-primary, .theme-opt, .verify-pill, .video-sound-btn, .net-switch button, .fva-menu-pop button, .post-sheet-actions button, #reelsView *, #userAccountSwitchModal *)) { color: var(--fva-pill-danger); }
html[data-theme="light"] input:not(:where([class^="bg-"], [class*=" bg-"], #reelsView *, #userAccountSwitchModal *)), html[data-theme="light"] select:not(:where([class^="bg-"], [class*=" bg-"], #reelsView *, #userAccountSwitchModal *)), html[data-theme="light"] textarea:not(:where([class^="bg-"], [class*=" bg-"], #reelsView *, #userAccountSwitchModal *)) { background: var(--fva-pill-bg); color: var(--fva-pill-text); }

/* Set 36 F9 mirror: those grey buttons were forced dark for milk; on the
   dark pill they keep their muted grey, which passes there (6.85). */
html[data-theme="dark"] #appView button.text-gray-400:not(:where([class^="bg-"], [class*=" bg-"], .app-menu-item, .auth-panel-switch, .auth-submit, .author-back, .chat-action-btn, .chat-photo-btn, .chat-transcript-toggle, .chat-quote, .chat-reaction-chip, .chat-reaction-chip-mine, .chat-reaction-pick, .compose-fab, .feed-mode-tab, .feed-tab, .filter-chip, .fva-cookie-accept, .fva-cookie-decline, .fva-empty, .fva-outline, .fva-pencil, .fva-pill, .fva-pill-solid, .gift-tile, .glass-card, .growth-blue-btn, .is-active, .is-on, .job-filter, .liked-reel-thumb, .login-gate-showhide, .menu-section-toggle, .menu-shortcut, .menu-switch-btn, .music-tapload, .music-track-add, .music-track-play, .notif-tab, .other-profile-tab, .photo-viewer-close, .post-dismiss-btn, .post-menu-btn, .post-sheet-backdrop, .post-sheet-cancel, .post-sheet-result, .profile-conn, .profile-tab, .pymk-add, .pymk-remove, .reel-close, .reel-follow-btn, .reel-gif-thumb, .reel-nav, .reel-rail-btn, .reel-send-btn, .reel-tapload, .story-nav, .story-viewer-btn, .susp-btn, .susp-btn-danger, .susp-btn-outline, .susp-btn-primary, .theme-opt, .verify-pill, .video-sound-btn, .net-switch button, .fva-menu-pop button, .post-sheet-actions button)),
html[data-theme="dark"] #appView button.text-gray-500:not(:where([class^="bg-"], [class*=" bg-"], .app-menu-item, .auth-panel-switch, .auth-submit, .author-back, .chat-action-btn, .chat-photo-btn, .chat-transcript-toggle, .chat-quote, .chat-reaction-chip, .chat-reaction-chip-mine, .chat-reaction-pick, .compose-fab, .feed-mode-tab, .feed-tab, .filter-chip, .fva-cookie-accept, .fva-cookie-decline, .fva-empty, .fva-outline, .fva-pencil, .fva-pill, .fva-pill-solid, .gift-tile, .glass-card, .growth-blue-btn, .is-active, .is-on, .job-filter, .liked-reel-thumb, .login-gate-showhide, .menu-section-toggle, .menu-shortcut, .menu-switch-btn, .music-tapload, .music-track-add, .music-track-play, .notif-tab, .other-profile-tab, .photo-viewer-close, .post-dismiss-btn, .post-menu-btn, .post-sheet-backdrop, .post-sheet-cancel, .post-sheet-result, .profile-conn, .profile-tab, .pymk-add, .pymk-remove, .reel-close, .reel-follow-btn, .reel-gif-thumb, .reel-nav, .reel-rail-btn, .reel-send-btn, .reel-tapload, .story-nav, .story-viewer-btn, .susp-btn, .susp-btn-danger, .susp-btn-outline, .susp-btn-primary, .theme-opt, .verify-pill, .video-sound-btn, .net-switch button, .fva-menu-pop button, .post-sheet-actions button)),
html[data-theme="dark"] #appView button.text-gray-600:not(:where([class^="bg-"], [class*=" bg-"], .app-menu-item, .auth-panel-switch, .auth-submit, .author-back, .chat-action-btn, .chat-photo-btn, .chat-transcript-toggle, .chat-quote, .chat-reaction-chip, .chat-reaction-chip-mine, .chat-reaction-pick, .compose-fab, .feed-mode-tab, .feed-tab, .filter-chip, .fva-cookie-accept, .fva-cookie-decline, .fva-empty, .fva-outline, .fva-pencil, .fva-pill, .fva-pill-solid, .gift-tile, .glass-card, .growth-blue-btn, .is-active, .is-on, .job-filter, .liked-reel-thumb, .login-gate-showhide, .menu-section-toggle, .menu-shortcut, .menu-switch-btn, .music-tapload, .music-track-add, .music-track-play, .notif-tab, .other-profile-tab, .photo-viewer-close, .post-dismiss-btn, .post-menu-btn, .post-sheet-backdrop, .post-sheet-cancel, .post-sheet-result, .profile-conn, .profile-tab, .pymk-add, .pymk-remove, .reel-close, .reel-follow-btn, .reel-gif-thumb, .reel-nav, .reel-rail-btn, .reel-send-btn, .reel-tapload, .story-nav, .story-viewer-btn, .susp-btn, .susp-btn-danger, .susp-btn-outline, .susp-btn-primary, .theme-opt, .verify-pill, .video-sound-btn, .net-switch button, .fva-menu-pop button, .post-sheet-actions button)),
html[data-theme="dark"] #installPromptModal button.text-gray-500:not(:where([class^="bg-"], [class*=" bg-"], .app-menu-item, .auth-panel-switch, .auth-submit, .author-back, .chat-action-btn, .chat-photo-btn, .chat-transcript-toggle, .chat-quote, .chat-reaction-chip, .chat-reaction-chip-mine, .chat-reaction-pick, .compose-fab, .feed-mode-tab, .feed-tab, .filter-chip, .fva-cookie-accept, .fva-cookie-decline, .fva-empty, .fva-outline, .fva-pencil, .fva-pill, .fva-pill-solid, .gift-tile, .glass-card, .growth-blue-btn, .is-active, .is-on, .job-filter, .liked-reel-thumb, .login-gate-showhide, .menu-section-toggle, .menu-shortcut, .menu-switch-btn, .music-tapload, .music-track-add, .music-track-play, .notif-tab, .other-profile-tab, .photo-viewer-close, .post-dismiss-btn, .post-menu-btn, .post-sheet-backdrop, .post-sheet-cancel, .post-sheet-result, .profile-conn, .profile-tab, .pymk-add, .pymk-remove, .reel-close, .reel-follow-btn, .reel-gif-thumb, .reel-nav, .reel-rail-btn, .reel-send-btn, .reel-tapload, .story-nav, .story-viewer-btn, .susp-btn, .susp-btn-danger, .susp-btn-outline, .susp-btn-primary, .theme-opt, .verify-pill, .video-sound-btn, .net-switch button, .fva-menu-pop button, .post-sheet-actions button)),
html.dark #appView button.text-gray-400:not(:where([class^="bg-"], [class*=" bg-"], .app-menu-item, .auth-panel-switch, .auth-submit, .author-back, .chat-action-btn, .chat-photo-btn, .chat-transcript-toggle, .chat-quote, .chat-reaction-chip, .chat-reaction-chip-mine, .chat-reaction-pick, .compose-fab, .feed-mode-tab, .feed-tab, .filter-chip, .fva-cookie-accept, .fva-cookie-decline, .fva-empty, .fva-outline, .fva-pencil, .fva-pill, .fva-pill-solid, .gift-tile, .glass-card, .growth-blue-btn, .is-active, .is-on, .job-filter, .liked-reel-thumb, .login-gate-showhide, .menu-section-toggle, .menu-shortcut, .menu-switch-btn, .music-tapload, .music-track-add, .music-track-play, .notif-tab, .other-profile-tab, .photo-viewer-close, .post-dismiss-btn, .post-menu-btn, .post-sheet-backdrop, .post-sheet-cancel, .post-sheet-result, .profile-conn, .profile-tab, .pymk-add, .pymk-remove, .reel-close, .reel-follow-btn, .reel-gif-thumb, .reel-nav, .reel-rail-btn, .reel-send-btn, .reel-tapload, .story-nav, .story-viewer-btn, .susp-btn, .susp-btn-danger, .susp-btn-outline, .susp-btn-primary, .theme-opt, .verify-pill, .video-sound-btn, .net-switch button, .fva-menu-pop button, .post-sheet-actions button)),
html.dark #appView button.text-gray-500:not(:where([class^="bg-"], [class*=" bg-"], .app-menu-item, .auth-panel-switch, .auth-submit, .author-back, .chat-action-btn, .chat-photo-btn, .chat-transcript-toggle, .chat-quote, .chat-reaction-chip, .chat-reaction-chip-mine, .chat-reaction-pick, .compose-fab, .feed-mode-tab, .feed-tab, .filter-chip, .fva-cookie-accept, .fva-cookie-decline, .fva-empty, .fva-outline, .fva-pencil, .fva-pill, .fva-pill-solid, .gift-tile, .glass-card, .growth-blue-btn, .is-active, .is-on, .job-filter, .liked-reel-thumb, .login-gate-showhide, .menu-section-toggle, .menu-shortcut, .menu-switch-btn, .music-tapload, .music-track-add, .music-track-play, .notif-tab, .other-profile-tab, .photo-viewer-close, .post-dismiss-btn, .post-menu-btn, .post-sheet-backdrop, .post-sheet-cancel, .post-sheet-result, .profile-conn, .profile-tab, .pymk-add, .pymk-remove, .reel-close, .reel-follow-btn, .reel-gif-thumb, .reel-nav, .reel-rail-btn, .reel-send-btn, .reel-tapload, .story-nav, .story-viewer-btn, .susp-btn, .susp-btn-danger, .susp-btn-outline, .susp-btn-primary, .theme-opt, .verify-pill, .video-sound-btn, .net-switch button, .fva-menu-pop button, .post-sheet-actions button)),
html.dark #appView button.text-gray-600:not(:where([class^="bg-"], [class*=" bg-"], .app-menu-item, .auth-panel-switch, .auth-submit, .author-back, .chat-action-btn, .chat-photo-btn, .chat-transcript-toggle, .chat-quote, .chat-reaction-chip, .chat-reaction-chip-mine, .chat-reaction-pick, .compose-fab, .feed-mode-tab, .feed-tab, .filter-chip, .fva-cookie-accept, .fva-cookie-decline, .fva-empty, .fva-outline, .fva-pencil, .fva-pill, .fva-pill-solid, .gift-tile, .glass-card, .growth-blue-btn, .is-active, .is-on, .job-filter, .liked-reel-thumb, .login-gate-showhide, .menu-section-toggle, .menu-shortcut, .menu-switch-btn, .music-tapload, .music-track-add, .music-track-play, .notif-tab, .other-profile-tab, .photo-viewer-close, .post-dismiss-btn, .post-menu-btn, .post-sheet-backdrop, .post-sheet-cancel, .post-sheet-result, .profile-conn, .profile-tab, .pymk-add, .pymk-remove, .reel-close, .reel-follow-btn, .reel-gif-thumb, .reel-nav, .reel-rail-btn, .reel-send-btn, .reel-tapload, .story-nav, .story-viewer-btn, .susp-btn, .susp-btn-danger, .susp-btn-outline, .susp-btn-primary, .theme-opt, .verify-pill, .video-sound-btn, .net-switch button, .fva-menu-pop button, .post-sheet-actions button)),
html.dark #installPromptModal button.text-gray-500:not(:where([class^="bg-"], [class*=" bg-"], .app-menu-item, .auth-panel-switch, .auth-submit, .author-back, .chat-action-btn, .chat-photo-btn, .chat-transcript-toggle, .chat-quote, .chat-reaction-chip, .chat-reaction-chip-mine, .chat-reaction-pick, .compose-fab, .feed-mode-tab, .feed-tab, .filter-chip, .fva-cookie-accept, .fva-cookie-decline, .fva-empty, .fva-outline, .fva-pencil, .fva-pill, .fva-pill-solid, .gift-tile, .glass-card, .growth-blue-btn, .is-active, .is-on, .job-filter, .liked-reel-thumb, .login-gate-showhide, .menu-section-toggle, .menu-shortcut, .menu-switch-btn, .music-tapload, .music-track-add, .music-track-play, .notif-tab, .other-profile-tab, .photo-viewer-close, .post-dismiss-btn, .post-menu-btn, .post-sheet-backdrop, .post-sheet-cancel, .post-sheet-result, .profile-conn, .profile-tab, .pymk-add, .pymk-remove, .reel-close, .reel-follow-btn, .reel-gif-thumb, .reel-nav, .reel-rail-btn, .reel-send-btn, .reel-tapload, .story-nav, .story-viewer-btn, .susp-btn, .susp-btn-danger, .susp-btn-outline, .susp-btn-primary, .theme-opt, .verify-pill, .video-sound-btn, .net-switch button, .fva-menu-pop button, .post-sheet-actions button)) { color: var(--fva-pill-muted) !important; }
/* ---- Set 49 sound reuse ---- */
.sound-page{z-index:60}
.sound-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.65)}
.sound-sheet{position:absolute;left:0;right:0;bottom:0;max-height:88vh;overflow-y:auto;background:#040d0c;border-top:1px solid rgba(6,95,70,.5);border-radius:20px 20px 0 0;padding:16px 16px 24px}
@media (min-width:640px){ .sound-sheet{left:50%;right:auto;bottom:auto;top:50%;transform:translate(-50%,-50%);width:560px;max-height:84vh;border:1px solid rgba(6,95,70,.5);border-radius:20px} }
.sound-sheet-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}
.sound-sheet-title{font-size:15px;font-weight:700;color:#fff}
.sound-close-btn{min-width:44px;min-height:44px;border-radius:12px;border:1px solid rgba(6,95,70,.4);color:#d1d5db;font-size:16px}
.sound-body{display:grid;gap:14px}
.sound-title{font-size:18px;font-weight:700;color:#fff}
.sound-artist{font-size:13px;color:#a7f3d0}
.sound-count{font-size:12px;color:#9ca3af;margin-top:2px}
.sound-player{display:grid;gap:6px}
.sound-use-btn{min-height:48px;width:100%;background:#047857;color:#fff;font-weight:700;font-size:14px;border-radius:12px}
.sound-use-btn:hover{background:#065f46}
.sound-section-label{font-size:12px;font-weight:700;color:#d1d5db}
.sound-video-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.sound-video-item{display:flex;gap:8px;align-items:flex-start;text-align:left;background:rgba(4,13,12,.6);border:1px solid rgba(6,95,70,.35);border-radius:12px;padding:8px;min-height:64px}
.sound-video-thumb{width:44px;height:64px;flex-shrink:0;display:flex;align-items:center;justify-content:center;background:#065f46;color:#fff;border-radius:8px;font-size:16px}
.sound-video-meta{display:grid;gap:2px;min-width:0}
.sound-video-meta b{font-size:12px;color:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sound-video-meta span{font-size:11px;color:#9ca3af;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sound-more-btn{min-height:44px;width:100%;border:1px solid rgba(6,95,70,.5);color:#a7f3d0;font-weight:700;font-size:13px;border-radius:12px}
.feed-sound-line{display:block;text-align:left;font-size:12px;color:#a7f3d0;font-weight:600;padding:2px 0;min-height:28px;cursor:pointer;background:none;border:none}
.feed-sound-line:hover{text-decoration:underline}
.music-title-btn{display:block;text-align:left;background:none;border:none;padding:0;min-width:0;cursor:pointer}
.music-title-btn:hover .music-title{text-decoration:underline}
.reel-music-link{background:none;border:none;cursor:pointer;text-align:left;padding:0}
.reel-music-link:hover{text-decoration:underline}
html[data-theme="light"] .sound-sheet{background:var(--lt-surface);border-color:var(--lt-border)}
html[data-theme="light"] .sound-sheet-title,html[data-theme="light"] .sound-title{color:var(--lt-text)}
html[data-theme="light"] .sound-artist{color:var(--lt-accent)}
html[data-theme="light"] .sound-count,html[data-theme="light"] .sound-video-meta span{color:var(--lt-muted)}
html[data-theme="light"] .sound-video-item{background:var(--lt-surface-2);border-color:var(--lt-border)}
html[data-theme="light"] .sound-video-meta b{color:var(--lt-text)}
html[data-theme="light"] .sound-close-btn{color:var(--lt-text-2);border-color:var(--lt-border)}
html[data-theme="light"] .feed-sound-line{color:var(--lt-accent)}


/* ---- Set 51: UI/UX polish audit, sections 1-2 (2026-11-15) ----
   Tiered surfaces. Primary actions ONLY stay solid emerald (Publish,
   Send, Top up coins, the active tab): nothing here recolours a primary.
   Secondary and engagement actions become ghost / translucent dark glass.
   Dark ghost: rgba(255,255,255,0.06) + 1px rgba(255,255,255,0.12) border,
   soft off-white #E2ECE7 text. Light ghost: rgba(7,26,18,0.06) +
   1px rgba(7,26,18,0.12) border, #1F2A25 text. Contrast floor 4.5:1.
   This block is appended last on purpose: it must win equal-specificity
   ties against the Set 32 milk rules below it in the file, and against
   the Set 46 pill rules if Set 46 lands first (see AUDIT.md rebase note).
   Verified badge stays blue (#3B82F6, index.html) and is untouched. */

/* ---- 1A. Post engagement row: ghost buttons (Dark + Light) ---- */
html[data-theme="dark"] .post-action-row button,
html.dark .post-action-row button { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); color: #E2ECE7; border-radius: 10px; padding-left: 8px; padding-right: 8px; min-height: 44px; }
html[data-theme="dark"] .post-action-row button:hover,
html.dark .post-action-row button:hover { color: #6EE7B7; border-color: rgba(255,255,255,0.20); }
html[data-theme="light"] .post-action-row button { background: rgba(7,26,18,0.06); border: 1px solid rgba(7,26,18,0.12); color: var(--lt-brand); border-radius: 10px; padding-left: 8px; padding-right: 8px; min-height: 44px; }
html[data-theme="light"] .post-action-row button:hover { color: var(--lt-accent); border-color: rgba(7,26,18,0.20); }

/* ---- 1B. Comment actions: ghost buttons; the Delete menu is below ---- */
html[data-theme="dark"] .comment-actions button,
html.dark .comment-actions button { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); color: #E2ECE7; border-radius: 10px; min-height: 44px; }
html[data-theme="dark"] .comment-actions button:hover,
html.dark .comment-actions button:hover { color: #6EE7B7; border-color: rgba(255,255,255,0.20); }
html[data-theme="light"] .comment-actions button { background: rgba(7,26,18,0.06); border: 1px solid rgba(7,26,18,0.12); color: var(--lt-brand); border-radius: 10px; min-height: 44px; }
html[data-theme="light"] .comment-actions button:hover { color: var(--lt-accent); border-color: rgba(7,26,18,0.20); }
.comment-actions { position: relative; }
/* Per-comment ••• menu. The Delete button inside it must beat the
   Set 32 .comment-actions rule above, so it is qualified one level deeper. */
.comment-menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; min-width: 150px; padding: 4px; border-radius: 12px; background: #0B201D; border: 1px solid rgba(255,255,255,0.12); box-shadow: 0 8px 24px rgba(0,0,0,0.45); }
html[data-theme="light"] .comment-menu { background: var(--lt-surface); border-color: var(--lt-border); box-shadow: 0 8px 24px rgba(7,26,18,0.18); }
html[data-theme="dark"] .comment-actions .comment-menu button,
html.dark .comment-actions .comment-menu button,
html[data-theme="light"] .comment-actions .comment-menu button { display: block; width: 100%; min-height: 44px; padding: 10px 12px; text-align: left; font-size: 13px; font-weight: 600; background: transparent; border: 0; border-radius: 8px; cursor: pointer; }
html[data-theme="dark"] .comment-actions .comment-menu button,
html.dark .comment-actions .comment-menu button { color: #FCA5A5; }
html[data-theme="light"] .comment-actions .comment-menu button { color: var(--lt-danger); }

/* ---- 1C. Composer attachment pills: ghost, icons back to bright shades
   in Dark (they pass 3:1 on ghost; Set 32 darkened them for milk only).
   Light keeps the 700-shades on the light ghost. ---- */
html[data-theme="dark"] .composer-home-actions button,
html.dark .composer-home-actions button { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); color: #E2ECE7; min-height: 44px; }
html[data-theme="dark"] .composer-home-actions .text-emerald-400,
html.dark .composer-home-actions .text-emerald-400 { color: #34D399; }
html[data-theme="dark"] .composer-home-actions .text-amber-400,
html.dark .composer-home-actions .text-amber-400 { color: #FBBF24; }
html[data-theme="dark"] .composer-home-actions .text-sky-400,
html.dark .composer-home-actions .text-sky-400 { color: #38BDF8; }
html[data-theme="dark"] .composer-home-actions .text-purple-400,
html.dark .composer-home-actions .text-purple-400 { color: #C084FC; }
html[data-theme="light"] .composer-home-actions button { background: rgba(7,26,18,0.06); border: 1px solid rgba(7,26,18,0.12); color: var(--lt-brand); min-height: 44px; }
html[data-theme="light"] .composer-home-actions .text-emerald-400 { color: var(--lt-accent); }
html[data-theme="light"] .composer-home-actions .text-amber-400 { color: var(--lt-warn); }
html[data-theme="light"] .composer-home-actions .text-sky-400 { color: #0369A1; }
html[data-theme="light"] .composer-home-actions .text-purple-400 { color: #7E22CE; }

/* ---- 1D. Feed filter tabs: inactive ghost, active stays solid emerald
   (.feed-tab[data-active="true"] and .feed-mode-tab.is-active, untouched). ---- */
html[data-theme="dark"] #feedModeTabs .feed-tab:not(.is-active),
html.dark #feedModeTabs .feed-tab:not(.is-active),
html[data-theme="dark"] #category-filters .feed-tab:not(.is-active),
html.dark #category-filters .feed-tab:not(.is-active) { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); color: #E2ECE7; }
html[data-theme="light"] #feedModeTabs .feed-tab:not(.is-active),
html[data-theme="light"] #category-filters .feed-tab:not(.is-active) { background: rgba(7,26,18,0.06); border: 1px solid rgba(7,26,18,0.12); color: var(--lt-brand); }

/* ---- 1E. Bottom nav (bar removal): ghost ground/border removed. Inactive icons stay slate #9CA3AF
   (Set 46 reconciliation: icon-only, dimmer is quieter), active emerald.
   Avatar initials go amber #F59E0B in Dark (Set 46 value; the Set 32
   #92400E is unreadable on the ghost ground). ---- */
html[data-theme="dark"] nav.app-nav .nav-btn,
html.dark nav.app-nav .nav-btn { background: transparent; border: 0; color: #9CA3AF; }
html[data-theme="dark"] nav.app-nav .nav-btn.is-active,
html.dark nav.app-nav .nav-btn.is-active { background: transparent; border: 0; color: #34D399; }
html[data-theme="light"] nav.app-nav .nav-btn { background: transparent; border: 0; color: var(--lt-muted); }
html[data-theme="light"] nav.app-nav .nav-btn.is-active { background: transparent; border: 0; color: var(--lt-accent); }
html[data-theme="dark"] nav.app-nav .nav-pill-avatar-text,
html.dark nav.app-nav .nav-pill-avatar-text { color: #F59E0B; }

/* ---- 2A. Header: sleek single-line 56px. The row div keeps its
   Tailwind padding classes; these rules zero only the vertical padding. ---- */
header.app-header { height: 56px; min-height: 56px; padding: 0; }
header.app-header > div { height: 100%; padding-top: 0; padding-bottom: 0; }
/* The base stylesheet hides #headerSearchBtn below 520px. The audit requires
   Search in the single-line header at every width, so Set 51 un-hides it.
   (Menu and Create stay hidden there; both buttons are removed by Set 51.) */
@media (max-width:519px){ #headerSearchBtn { display: inline-block !important; } }
header.app-header .app-brand { font-size: 15px; }
header.app-header button[aria-label="Profile and Settings"] { background: transparent; }
/* Header avatar initials (no photo): amber on the dark avatar circle in
   Dark (Set 32 #92400E is unreadable there); #92400E kept in Light. */
html[data-theme="dark"] header.app-header button[aria-label="Profile and Settings"] .text-amber-500,
html.dark header.app-header button[aria-label="Profile and Settings"] .text-amber-500 { color: #FBBF24; }

/* ---- 2B. Moments tray header: one line, subtle audience dropdown. ---- */
.moments-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: nowrap; margin-bottom: 10px; }
.moments-aud-wrap { position: relative; flex-shrink: 0; }
html[data-theme="dark"] .moments-aud-btn,
html.dark .moments-aud-btn { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); color: #C7D2CE; font-size: 12px; font-weight: 600; white-space: nowrap; cursor: pointer; }
html[data-theme="light"] .moments-aud-btn { background: rgba(7,26,18,0.06); border-color: rgba(7,26,18,0.12); color: var(--lt-text-2); font-size: 12px; }
.moments-aud-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 230px; padding: 8px 12px; border-radius: 12px; background: #0B201D; border: 1px solid rgba(255,255,255,0.12); box-shadow: 0 8px 24px rgba(0,0,0,0.45); }
html[data-theme="light"] .moments-aud-menu { background: var(--lt-surface); border-color: var(--lt-border); box-shadow: 0 8px 24px rgba(7,26,18,0.18); }
.moments-aud-opt { font-size: 12px; font-weight: 700; color: #E2ECE7; margin: 0; padding: 6px 0; }
html[data-theme="light"] .moments-aud-opt { color: var(--lt-brand); }
.moments-aud-note { font-size: 12px; line-height: 1.5; color: var(--fva-text-muted); margin: 0; padding: 2px 0 4px; }
html[data-theme="light"] .moments-aud-note { color: var(--lt-muted); }

/* ---- 2C. Moments rail: own avatar circle with a + badge. ---- */
.fva51-moment-add { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; flex-shrink: 0; cursor: pointer; min-width: 56px; min-height: 44px; justify-content: flex-start; }
.fva51-moment-add-ringwrap { position: relative; display: block; width: 56px; height: 56px; flex-shrink: 0; }
.fva51-moment-add-ring { display: block; width: 56px; height: 56px; border-radius: 9999px; overflow: hidden; border: 1px solid rgba(255,255,255,0.16); }
html[data-theme="light"] .fva51-moment-add-ring { border-color: rgba(7,26,18,0.16); }
.fva51-moment-add-ring img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fva51-moment-add-plus { position: absolute; right: -2px; bottom: -2px; width: 20px; height: 20px; border-radius: 9999px; background: #059669; color: #FFFFFF; font-size: 14px; font-weight: 700; line-height: 1; display: flex; align-items: center; justify-content: center; border: 2px solid #0B201D; }
html[data-theme="light"] .fva51-moment-add-plus { border-color: var(--lt-surface); }

/* ---- 2D. Moment viewer: segment time-left fill, trash in the header,
   quick reactions on the viewer reply bar. ---- */
.story-seg { position: relative; overflow: hidden; }
.story-seg-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: #FFFFFF; transform: scaleX(0); transform-origin: left center; animation-name: fva51-segfill; animation-timing-function: linear; animation-fill-mode: forwards; }
@keyframes fva51-segfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.story-viewer.paused .story-seg-fill { animation-play-state: paused; }
.story-viewer-del-btn { color: #FCA5A5; }
.story-viewer-reply { padding-bottom: 8px; }
.story-viewer-quick { display: flex; gap: 8px; padding: 0 12px 16px; }
.story-viewer-quick button { min-width: 44px; min-height: 44px; border-radius: 9999px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); font-size: 18px; line-height: 1; cursor: pointer; }

/* ---- 1F. Post sheet: the destructive owner action reads red on the
   sheet, which is dark (#040d0c) in both themes. ---- */
.post-sheet-actions button.post-sheet-danger { color: #FCA5A5; }

/* ---- Set 53: Reels immersive rail + more menu ---- */
/* The side rail fades out ~2s after a reel starts playing and returns on
   pause or on a tap that pauses. Only the rail hides: the close button,
   the caption/meta and the bottom comment bar stay put. */
.reels-rail{transition:opacity .35s ease,visibility .35s ease}
.reels-rail.rail-hidden{opacity:0;visibility:hidden;pointer-events:none}
@media (prefers-reduced-motion:reduce){.reels-rail{transition:none}}
/* The more menu is a bottom sheet inside the viewer, above the rail and
   the comment bar. The viewer is a black full-screen surface in both
   themes, so the sheet stays dark in Light too. */
.reel-more-menu{position:absolute;inset:0;z-index:9}
.reel-more-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.55)}
.reel-more-sheet{position:absolute;left:0;right:0;bottom:0;max-height:70vh;overflow-y:auto;box-sizing:border-box;background:#0b0f0e;border-top:1px solid rgba(255,255,255,.15);border-radius:18px 18px 0 0;padding:10px 14px calc(16px + env(safe-area-inset-bottom))}
@media (min-width:640px){.reel-more-sheet{left:50%;right:auto;bottom:24px;transform:translateX(-50%);width:420px;border:1px solid rgba(255,255,255,.15);border-radius:18px}}
.reel-more-handle{width:40px;height:4px;border-radius:9999px;background:rgba(255,255,255,.3);margin:2px auto 10px}
.reel-more-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}
.reel-more-title{font-size:15px;font-weight:700;color:#fff}
.reel-more-close{min-width:44px;min-height:44px;border-radius:12px;border:1px solid rgba(255,255,255,.2);color:#d1d5db;font-size:16px}
.reel-more-row{display:flex;align-items:center;gap:12px;width:100%;min-height:48px;padding:10px 12px;border-radius:12px;background:transparent;border:0;color:#fff;font-size:14px;font-weight:600;text-align:left}
.reel-more-row:active{background:rgba(255,255,255,.08)}
.reel-more-row.is-on{background:rgba(16,185,129,.25)}
.reel-more-row-icon{font-size:18px;width:28px;text-align:center;flex-shrink:0}

/* ---- Set 54: suggestion buttons, chips, and automation rules ---- */
/* Ghost glass on the dark surfaces these sit on (composer modal, chat
   composer, feed cards, settings cards are all dark in both themes, so one
   set of values works in Light and Dark). The dark-theme global button rule
   is beaten by the html[data-theme="dark"] overrides below, which keep the
   ghost look instead of the milk fill. */
.suggest-btn{min-height:44px;padding:8px 12px;border-radius:12px;border:1px solid rgba(255,255,255,0.12);background:rgba(255,255,255,0.06);color:#E2ECE7;font-size:12px;font-weight:700;cursor:pointer;white-space:nowrap}
.suggest-btn:disabled{opacity:.55;cursor:wait}
.suggest-chip{display:block;width:100%;text-align:left;min-height:44px;padding:10px 12px;border-radius:12px;border:1px solid rgba(255,255,255,0.12);background:rgba(255,255,255,0.04);color:#E2ECE7;font-size:13px;line-height:1.4;cursor:pointer}
.suggest-note{font-size:11px;color:#9aa8a0}
.auto-rule{display:flex;flex-wrap:wrap;align-items:center;gap:8px;border:1px solid rgba(255,255,255,0.12);border-radius:12px;padding:8px 10px}
.auto-rule-text{font-size:13px;font-weight:600;color:#E2ECE7}
.auto-rule-toggle{font-size:12px;color:#E2ECE7;display:flex;align-items:center;gap:4px}
.auto-rule-del{font-size:12px;color:#f87171;min-height:44px;padding:4px 8px;background:none;border:none;cursor:pointer}
.auto-rule-last{font-size:11px;color:#9aa8a0;width:100%}
html[data-theme="dark"] .suggest-btn,html.dark .suggest-btn{border-color:rgba(255,255,255,0.12);background:rgba(255,255,255,0.06);color:#E2ECE7}
html[data-theme="dark"] .suggest-chip,html.dark .suggest-chip{border-color:rgba(255,255,255,0.12);background:rgba(255,255,255,0.04);color:#E2ECE7}
html[data-theme="dark"] .auto-rule,html.dark .auto-rule{border-color:rgba(255,255,255,0.12)}

/* ---- Connect Set 58: feed comments behind a tap ---- */
/* The comments sheet reuses the post-sheet shell (.post-sheet) and turns
   it into a flex column, so the list scrolls while the header and the
   composer stay put. The sheet is dark in Dark (the post-sheet shell) and
   flips to white in Light, the way the Reels comments sheet does, so the
   comment rows (renderComment) stay readable in both themes. */
.feed-comments-sheet{display:flex;flex-direction:column;overflow:hidden;max-height:88dvh}
.feed-comments-list{flex:1;min-width:0;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:6px 0}
.feed-comments-postline{font-size:11px;color:#9ca3af;margin:2px 0 6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.feed-comments-close{min-width:44px;min-height:44px;display:flex;align-items:center;justify-content:center;border-radius:9999px;color:#9ca3af}
html[data-theme="light"] .feed-comments-sheet{background:var(--lt-surface);border-color:var(--lt-border)}
html[data-theme="light"] .feed-comments-sheet .post-sheet-title{color:var(--lt-text)}
html[data-theme="light"] .feed-comments-sheet .post-sheet-handle{background:rgba(0,0,0,.25)}
html[data-theme="light"] .feed-comments-sheet .feed-comments-postline{color:var(--lt-muted)}
html[data-theme="light"] .feed-comments-sheet .feed-comments-close{color:var(--lt-muted)}

/* Set 57 (2026-11-15): organisations directory + suggestions. */
#orgSearch, #orgDirectorySort { min-height:44px; }
.org-dir-chip { min-height:44px; padding:6px 14px; border-radius:999px; font-size:0.75rem; font-weight:600; border:1px solid rgba(7,26,18,0.12); background:rgba(7,26,18,0.06); color:#1F2A25; flex-shrink:0; }
html[data-theme="dark"] .org-dir-chip, html.dark .org-dir-chip { border-color:rgba(255,255,255,0.12); background:rgba(255,255,255,0.06); color:#E2ECE7; }
.org-dir-chip.is-active { background:#10B981 !important; color:#050E0B !important; border-color:transparent !important; }

/* ---- Set 59: right-to-left layout for Arabic ---- */
/* documentElement gets dir="rtl" from the first-paint script when the active
   language is Arabic. Flex rows mirror automatically under direction:rtl;
   these rules flip the few physical placements the shell relies on. */
html[dir="rtl"] body{direction:rtl;}
html[dir="rtl"] .compose-fab{right:auto;left:16px;}
html[dir="rtl"] #navNotifBadge{right:auto;left:8px;}
html[dir="rtl"] #notif-dot{right:auto;left:0;}
html[dir="rtl"] input[type="text"],html[dir="rtl"] textarea{text-align:right;}
/* ---- Set 59: the first-run language sheet in Light theme ---- */
/* The base Light rule forces every .text-white element dark, which would
   make the sheet title unreadable on its dark panel. In Light the sheet
   follows the other modals (white panel, dark text); the Keep button keeps
   white text on green, like the primary buttons elsewhere. */
html[data-theme="light"] #langSheet > div{background:var(--lt-surface);color:var(--lt-text);border-color:var(--lt-border);}
html[data-theme="light"] #langSheetTitle{color:var(--lt-text);}
html[data-theme="light"] #langSheet [data-i18n="langSheet.keep"]{color:var(--lt-surface);}
html[data-theme="light"] #langSheetList button.bg-emerald-600{color:var(--lt-surface);}

/* ---- Set 61: gift packs, confirm burst, goal bar, wallet quick actions ---- */
.gift-pack-tile{display:flex;flex-direction:column;align-items:center;gap:2px;border:1px solid rgba(0,58,52,.15);border-radius:14px;padding:10px 6px;min-height:64px;background:#f8fafc;cursor:pointer;}
.gift-pack-emoji{font-size:26px;line-height:1;}
.gift-pack-name{font-size:12px;font-weight:700;color:#003A34;}
.gift-pack-gifts{font-size:11px;color:#6b7280;}
.gift-pack-price{font-size:11px;color:#374151;}
.gift-burst{display:flex;flex-direction:column;align-items:center;gap:4px;border:1px solid rgba(5,150,105,.4);background:#ecfdf5;border-radius:12px;padding:12px;}
.gift-burst-emoji{font-size:44px;line-height:1;}
.gift-confirm-emoji{display:block;text-align:center;font-size:44px;line-height:1;}
.top-gifter-emoji{font-size:20px;line-height:1;flex-shrink:0;}
.gift-burst-play .gift-burst-emoji{animation:giftBurstPop .7s ease;}
@keyframes giftBurstPop{0%{transform:scale(.4);opacity:0;}60%{transform:scale(1.25);opacity:1;}100%{transform:scale(1);opacity:1;}}
.gift-goal-bar{height:10px;border-radius:999px;background:rgba(0,0,0,.08);overflow:hidden;}
.gift-goal-bar span{display:block;height:100%;background:#059669;border-radius:999px;}
.gw-quick{border:1px solid rgba(0,58,52,.15);border-radius:12px;padding:10px 6px;min-height:44px;font-size:12px;font-weight:700;color:#003A34;background:#f8fafc;cursor:pointer;}
.activity-date-header{font-size:11px;font-weight:700;color:#6b7280;text-transform:uppercase;letter-spacing:.04em;padding:6px 2px 0;}
@media (prefers-reduced-motion: reduce){ .gift-burst-play .gift-burst-emoji{animation:none;} }
/* Chat gifting: the gift bubble in a DM. The emoji is the big catalog
emoji (48px); the line under it is per-side — the sender sees what they
sent, the receiver sees only their net share. Colours inherit from the
bubble, so Dark and Light both read. */
.chat-gift{display:flex;flex-direction:column;align-items:center;gap:2px;text-align:center;padding:2px 0;}
.chat-gift-emoji{font-size:48px;line-height:1;}
.chat-gift-name{font-size:13px;font-weight:700;}
.chat-gift-line{font-size:11px;opacity:.85;}
.chat-gift-note{font-size:11px;font-style:italic;opacity:.85;overflow-wrap:anywhere;}
html[data-theme="dark"] .gift-pack-tile,
html.dark .gift-pack-tile,
html[data-theme="dark"] .gw-quick,
html.dark .gw-quick { background: var(--milk); }
html[data-theme="dark"] .gift-burst,
html.dark .gift-burst { background:#064e3b;border-color:rgba(16,185,129,.5); }
html[data-theme="dark"] .gift-goal-bar,
html.dark .gift-goal-bar { background:rgba(0,0,0,.16); }

/* ---- Set 62: premium profile perks ---- */
.premium-avatar-ring{box-shadow:0 0 0 3px #C9A06B,0 0 0 6px rgba(201,160,107,.30);border-radius:9999px;}
/* ---- Set 102: premium on the avatar (gold ring + crown badge) ---- */
.avatar-premium-wrap{position:relative;display:inline-flex;flex-shrink:0;border-radius:9999px;}
.avatar-premium-badge{position:absolute;right:-2px;bottom:-2px;width:16px;height:16px;border-radius:9999px;background:linear-gradient(135deg,#F5D67A,#C9A06B 60%,#A8823F);border:1.5px solid #0B1E18;display:flex;align-items:center;justify-content:center;flex-shrink:0;z-index:2;}
.avatar-premium-badge svg{width:10px;height:10px;display:block;}
.avatar-premium-badge-sm{width:14px;height:14px;}
.avatar-premium-badge-sm svg{width:9px;height:9px;}
.avatar-premium-badge-lg{width:22px;height:22px;border-width:2px;}
.avatar-premium-badge-lg svg{width:14px;height:14px;}
.header-avatar-premium{background:linear-gradient(135deg,#8A6D2B,#C9A06B 30%,#F5D67A 50%,#C9A06B 70%,#8A6D2B)!important;}
.author-head{position:relative;}
html[data-theme="light"] .avatar-premium-badge{border-color:#FFFFFF;}
.author-modal.premium-theme-emerald{border-top:4px solid #127A4D;}
.author-modal.premium-theme-gold{border-top:4px solid #C9A06B;}
.author-modal.premium-theme-violet{border-top:4px solid #7C5CFF;}
.author-modal.premium-theme-ocean{border-top:4px solid #0E7C86;}
.profile-hero.premium-theme-emerald .cover-banner{background:linear-gradient(90deg,#0B3D2E,#127A4D,#0B3D2E);}
.profile-hero.premium-theme-gold .cover-banner{background:linear-gradient(90deg,#5C430A,#C9A06B,#5C430A);}
.profile-hero.premium-theme-violet .cover-banner{background:linear-gradient(90deg,#2E1A66,#7C5CFF,#2E1A66);}
.profile-hero.premium-theme-ocean .cover-banner{background:linear-gradient(90deg,#083A40,#0E7C86,#083A40);}
.premium-theme-swatch{width:44px;height:44px;border-radius:9999px;border:2px solid transparent;cursor:pointer;}
.premium-theme-swatch.is-active{border-color:#003A34;box-shadow:0 0 0 2px #C9A06B;}
.top-gifter-row{display:flex;align-items:center;gap:12px;border:1px solid rgba(16,122,77,.25);border-radius:12px;padding:8px 12px;}
/* ---- Connect Set 64: messaging requests, vanish mode, folders, forwarding, voice + transcripts ---- */
#forwardPickerSheet,#chatRoomMenuSheet,#chatFolderMenuSheet{position:fixed;inset:0;z-index:60}
.chat-bubble-theirs{background:#0b201d}
.chat-folder-tabs{display:flex;flex-wrap:wrap;gap:6px}
.chat-folder-tab{min-height:44px;padding:6px 12px;border-radius:999px;border:1px solid rgba(16,185,129,.35);background:rgba(11,32,29,.6);color:#d1d5db;font-size:12px;font-weight:700;cursor:pointer}
.chat-folder-tab-on{background:#047857;border-color:#047857;color:#fff}
.chat-row-menu-btn{min-width:44px;min-height:44px;padding:8px;border-radius:12px;color:#9ca3af;font-size:16px;font-weight:700;flex-shrink:0}
.chat-row-menu-btn:hover{color:#fff;background:rgba(255,255,255,.08)}
.chat-folder-menu-row{display:block;width:100%;text-align:left;min-height:44px;padding:10px 12px;border-radius:12px;color:#e5e7eb;font-size:13px;font-weight:700}
.chat-folder-menu-row:hover{background:rgba(255,255,255,.08)}
.chat-vanish-banner{padding:8px 12px;background:rgba(220,38,38,.18);border-bottom:1px solid rgba(220,38,38,.4);color:#fca5a5;font-size:12px;font-weight:700;text-align:center}
.chat-room-menu-btn{min-width:44px;min-height:44px;padding:8px;border-radius:12px;color:#d1d5db;font-size:16px;font-weight:700;flex-shrink:0}
.chat-room-menu-btn:hover{color:#fff;background:rgba(255,255,255,.08)}
.chat-forwarded{font-size:11px;font-weight:700;color:#fff;margin-bottom:2px}
.chat-audio-player{width:100%;max-width:240px;margin-top:6px;height:36px}
.chat-voice-btn{min-width:44px;min-height:44px;font-size:20px;color:#d1d5db;border-radius:12px;flex-shrink:0}
.chat-voice-btn:hover{color:#fff;background:rgba(255,255,255,.08)}
.chat-voice-recording{color:#fff;background:#dc2626;animation:chatVoicePulse 1.2s ease-in-out infinite}
@keyframes chatVoicePulse{0%,100%{box-shadow:0 0 0 0 rgba(220,38,38,.5)}50%{box-shadow:0 0 0 8px rgba(220,38,38,0)}}
.chat-voice-timer{font-size:12px;font-weight:700;color:#fca5a5;white-space:nowrap}
.chat-voice-cancel{min-width:44px;min-height:44px;color:#fca5a5;font-size:16px;font-weight:700;border-radius:12px;flex-shrink:0}
.forward-picker-row{display:flex;align-items:center;gap:8px;min-height:44px;padding:6px 8px;border-radius:12px;cursor:pointer}
.forward-picker-row:hover{background:rgba(255,255,255,.06)}
.forward-picker-row input[type="checkbox"]{width:20px;height:20px;accent-color:#059669;flex-shrink:0}
.group-topic-chip{min-height:44px;padding:4px 10px;border-radius:999px;border:1px solid rgba(16,185,129,.35);background:rgba(11,32,29,.6);color:#d1d5db;font-size:12px;font-weight:700;cursor:pointer}
.group-topic-chip-on{background:#047857;border-color:#047857;color:#fff}
html[data-theme="light"] .chat-folder-tab{background:var(--lt-surface);color:var(--lt-text-2);border-color:rgba(5,150,105,.4)}
html[data-theme="light"] .chat-folder-tab-on{background:var(--lt-accent);color:var(--lt-surface)}
html[data-theme="light"] .chat-row-menu-btn{color:var(--lt-muted)}
html[data-theme="light"] .chat-row-menu-btn:hover{color:var(--lt-text);background:rgba(0,0,0,.06)}
html[data-theme="light"] .chat-folder-menu-row{color:var(--lt-text-2)}
html[data-theme="light"] .chat-folder-menu-row:hover{background:rgba(0,0,0,.06)}
html[data-theme="light"] .chat-vanish-banner{background:var(--lt-danger-soft);color:var(--lt-danger)}
html[data-theme="light"] .forward-picker-row:hover{background:rgba(0,0,0,.05)}
html[data-theme="light"] .group-topic-chip{background:var(--lt-surface);color:var(--lt-text-2);border-color:rgba(5,150,105,.4)}
html[data-theme="light"] .group-topic-chip-on{background:var(--lt-accent);color:var(--lt-surface)}
html[data-theme="light"] .chat-bubble-theirs .chat-forwarded{color:var(--lt-accent)}

/* ---- Connect Set 65: comment moderation ---- */
/* Pinned comments keep the green accent; held/hidden notes are amber/grey
   so a held comment never looks like a normal one. 44px targets on every
   moderation action, same as the rest of the app. */
.comment-pinned-badge{display:inline-block;font-size:10px;font-weight:700;color:#34d399;background:rgba(16,185,129,.14);border:1px solid rgba(16,185,129,.35);border-radius:9999px;padding:1px 6px;margin-left:4px;white-space:nowrap}
.comment-status-note{font-size:11px;line-height:1.5;color:#fbbf24;background:rgba(251,191,36,.08);border:1px solid rgba(251,191,36,.3);border-radius:10px;padding:6px 8px;margin:2px 0}
.comment-status-action{display:inline-flex;align-items:center;min-height:44px;padding:4px 10px;margin:2px 2px 0 0;border-radius:10px;font-size:11px;font-weight:700;color:#34d399;border:1px solid rgba(16,185,129,.4);background:rgba(16,185,129,.08)}
.comment-reactions{display:flex;align-items:center;gap:4px;flex-wrap:wrap;padding:2px 0}
.comment-reaction-btn{display:inline-flex;align-items:center;gap:2px;min-width:44px;min-height:44px;padding:4px 8px;border-radius:9999px;font-size:15px;line-height:1;color:#9ca3af}
.comment-reaction-btn:hover{background:rgba(255,255,255,.06);color:#e5e7eb}
.comment-reaction-mine{background:rgba(16,185,129,.16);color:#34d399;outline:1px solid rgba(16,185,129,.45)}
.moderation-word-chip{display:inline-flex;align-items:center;gap:4px;font-size:11px;font-weight:600;color:#d1fae5;background:rgba(16,185,129,.12);border:1px solid rgba(16,185,129,.35);border-radius:9999px;padding:4px 8px}
.moderation-word-chip button{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;border-radius:9999px;color:#6ee7b7}
html[data-theme="light"] .comment-pinned-badge{color:var(--lt-accent);background:rgba(5,150,105,.1);border-color:rgba(5,150,105,.35)}
html[data-theme="light"] .comment-status-note{color:var(--lt-warn);background:rgba(217,119,6,.08);border-color:rgba(217,119,6,.3)}
html[data-theme="light"] .comment-status-action{color:var(--lt-accent);border-color:rgba(5,150,105,.4);background:rgba(5,150,105,.08)}
html[data-theme="light"] .comment-reaction-btn{color:var(--lt-muted)}
html[data-theme="light"] .comment-reaction-btn:hover{background:rgba(0,0,0,.05);color:var(--lt-text)}
html[data-theme="light"] .comment-reaction-mine{background:rgba(5,150,105,.12);color:var(--lt-accent);outline-color:rgba(5,150,105,.45)}
html[data-theme="light"] .moderation-word-chip{color:var(--lt-accent-strong);background:rgba(5,150,105,.1);border-color:rgba(5,150,105,.35)}
html[data-theme="light"] .moderation-word-chip button{color:var(--lt-accent)}

/* ---- Set 73: Network + Search -------------------------------------- */
.degree-badge{display:inline-flex;align-items:center;flex-shrink:0;padding:2px 8px;border-radius:9999px;font-size:12px;font-weight:700;line-height:1.4;border:1px solid transparent;white-space:nowrap}
.degree-badge.is-1st{background:#064e3b;color:#6ee7b7;border-color:#065f46}
.degree-badge.is-2nd{background:#0b201d;color:#a7f3d0;border-color:#065f46}
.degree-badge.is-3rd{background:transparent;color:#9ca3af;border-color:#374151}
.net-filter-row{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px}
@media (max-width:480px){.net-filter-row{grid-template-columns:1fr}}
.net-filter-row input{width:100%;background:rgba(11,32,29,.6);border:1px solid rgba(6,95,70,.4);border-radius:12px;padding:8px 12px;font-size:13px;color:#e5e7eb}
.net-filter-row input::placeholder{color:#9ca3af}
.net-filter-row input:focus{outline:none;border-color:#10b981}
.gs-match-chip{display:inline-flex;align-items:center;padding:2px 8px;border-radius:9999px;font-size:12px;font-weight:700;background:rgba(6,95,70,.4);color:#a7f3d0;border:1px solid rgba(6,95,70,.6)}
.gs-sheet{position:fixed;inset:0;z-index:60;display:flex;align-items:flex-start;justify-content:center;padding:12px}
.gs-sheet-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.6)}
.gs-sheet-panel{position:relative;width:100%;max-width:640px;max-height:calc(100vh - 24px);overflow-y:auto;background:#04120f;border:1px solid rgba(6,95,70,.5);border-radius:20px;padding:16px}
.gs-sheet-panel input[type="search"]{width:100%;background:rgba(11,32,29,.6);border:1px solid rgba(6,95,70,.4);border-radius:12px;padding:10px 12px 10px 40px;font-size:15px;color:#f3f4f6}
.gs-sheet-panel input[type="search"]::placeholder{color:#9ca3af}
.gs-sheet-panel input[type="search"]:focus{outline:none;border-color:#10b981}
html[data-theme="light"] .degree-badge.is-1st{background:var(--lt-accent-soft);color:var(--lt-accent-strong);border-color:var(--lt-border)}
html[data-theme="light"] .degree-badge.is-2nd{background:var(--lt-accent-soft);color:var(--lt-accent);border-color:var(--lt-border)}
html[data-theme="light"] .degree-badge.is-3rd{background:transparent;color:var(--lt-muted);border-color:var(--lt-border)}
html[data-theme="light"] .net-filter-row input{background:var(--lt-surface);border-color:var(--lt-border);color:var(--lt-text)}
html[data-theme="light"] .net-filter-row input::placeholder{color:var(--lt-muted)}
html[data-theme="light"] .gs-match-chip{background:var(--lt-accent-soft);color:var(--lt-accent);border-color:var(--lt-border)}
html[data-theme="light"] .gs-sheet-panel{background:var(--lt-surface);border-color:var(--lt-border)}
html[data-theme="light"] .gs-sheet-panel input[type="search"]{background:var(--lt-surface-2);border-color:var(--lt-border);color:var(--lt-text)}

/* Set 76: professional reactions + hide counts + streak + tenure. */
.pro-reaction-row{ display:flex; flex-wrap:wrap; gap:6px; width:100%; padding-bottom:6px; border-bottom:1px solid rgba(16,185,129,.25); margin-bottom:4px; }
.pro-reaction-btn{ display:inline-flex; align-items:center; gap:4px; min-height:44px; padding:6px 10px; border-radius:999px; border:1px solid rgba(16,185,129,.35); background:rgba(6,40,33,.5); color:#e7f5ee; font-size:12px; font-weight:600; cursor:pointer; }
.pro-reaction-btn span{ font-size:12px; }
.eng-streak-row{ display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:14px; background:rgba(245,158,11,.12); border:1px solid rgba(245,158,11,.35); margin-bottom:10px; }
.eng-streak-flame{ font-size:22px; }
.eng-streak-text{ display:flex; flex-direction:column; gap:2px; flex:1; min-width:0; font-size:12px; color:#d1d5db; }
.eng-streak-text b{ color:#fff; font-size:14px; }
.eng-streak-restore{ flex-shrink:0; min-height:44px; padding:8px 12px; border-radius:12px; background:#f59e0b; color:#1c1005; font-size:12px; font-weight:700; cursor:pointer; }
.eng-streak-restore:disabled{ opacity:.5; cursor:default; }
.tenure-badge{ display:inline-flex; align-items:center; padding:2px 8px; border-radius:999px; background:rgba(16,185,129,.18); border:1px solid rgba(16,185,129,.4); color:#34d399; font-size:11px; font-weight:700; white-space:nowrap; }
.profile-streak-chip{ display:inline-flex; align-items:center; padding:2px 8px; border-radius:999px; background:rgba(245,158,11,.15); border:1px solid rgba(245,158,11,.4); color:#fbbf24; font-size:11px; font-weight:700; white-space:nowrap; }
.author-tenure{ font-size:12px; color:#6b7280; }

/* ---- Connect Set 75: saving + sharing ---- */
/* The three new sheets reuse the post-sheet shell, which stays dark in
   both themes, so their rows use dark-shell colours in both themes. The
   collection chips live on the profile Saved section, which is light in
   Light theme, so they carry their own Light override. All targets 44px. */
.collection-chip{min-height:44px;padding:6px 14px;border-radius:999px;font-size:12px;font-weight:700;border:1px solid rgba(255,255,255,0.12);background:rgba(255,255,255,0.06);color:#E2ECE7;cursor:pointer}
.collection-chip.is-active{background:#10B981!important;color:#050E0B!important;border-color:transparent!important}
.saved-message-row{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;padding:10px 0;border-bottom:1px solid rgba(255,255,255,0.08)}
html[data-theme="light"] .collection-chip{border-color:rgba(7,26,18,0.12);background:rgba(7,26,18,0.06);color:var(--lt-brand)}


/* ---- Set 79: Midnight Emerald sign-in (Dark) / Warm Alabaster (Light).
   The auth card is dark glass on a deep forest-obsidian page in Dark
   (the app default) and warm cream in Light. Every rule is scoped to
   #authView, so the rest of the app is untouched. The switch modal
   (#userAccountSwitchModal) keeps its own surfaces (Set 44 owns them);
   only the shared .provider-not-setup state class is styled there.
   The provider/input/showhide rules use the html[data-theme] qualified
   selectors because the Set 32 "Milk restyle" rules (design.css ~3189)
   use the same specificity for those elements and must be overridden,
   not just followed. The FVAVerify badge rules use !important, like the
   existing mobile badge rules, because the widget injects its own
   stylesheet and the markup carries inline styles. */

/* --- Dark (default): page, card, type --- */
body[data-shell="auth"] {
  background: radial-gradient(1200px 600px at 20% -10%, rgba(5,150,105,.28), transparent 60%), radial-gradient(900px 500px at 90% 110%, rgba(201,160,107,.14), transparent 55%), #05110C;
}
#authView .auth-card {
  background: rgba(11,29,21,.82);
  border: 1px solid rgba(255,255,255,.09);
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
  backdrop-filter: blur(8px);
}
#authView .auth-form-wrap { background: transparent; }
#authView .auth-form-wrap #authStatus { color: rgba(249,250,248,.6); }
#authView .auth-card-title { color: #F9FAF8; }
#authView .auth-host { color: rgba(249,250,248,.6); }
#authView .auth-welcome-line { color: #F9FAF8; }
#authView .login-gate-tagline { color: rgba(249,250,248,.65); }
#authView .login-gate-label { color: rgba(249,250,248,.75); }
#authView .auth-or { color: rgba(249,250,248,.45); }
#authView .auth-or:before, #authView .auth-or:after { background: rgba(255,255,255,.14); }

/* --- Dark: providers, inputs, show/hide (theme-qualified, see header) --- */
html[data-theme="dark"] #authView .auth-provider, html.dark #authView .auth-provider {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.14);
  color: #F9FAF8;
}
html[data-theme="dark"] #authView .auth-provider:hover, html.dark #authView .auth-provider:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(5,150,105,.6);
  color: #F9FAF8;
}
html[data-theme="dark"] #authView .auth-input, html.dark #authView .auth-input {
  background: #040E0A;
  border: 1px solid rgba(255,255,255,.16);
  color: #F9FAF8;
}
html[data-theme="dark"] #authView .auth-input::placeholder, html.dark #authView .auth-input::placeholder { color: rgba(249,250,248,.4); }
html[data-theme="dark"] #authView .auth-input:focus, html.dark #authView .auth-input:focus { border-color: #059669; }
html[data-theme="dark"] #authView .login-gate-showhide, html.dark #authView .login-gate-showhide {
  background: #040E0A;
  border: 1px solid rgba(255,255,255,.16);
  color: #F9FAF8;
}
#authView .auth-provider, #authView .auth-input, #authView .auth-submit { transition: border-color .15s ease, background-color .15s ease; }
#authView .auth-provider .auth-provider-label { line-height: 1.25; }
/* Not set up yet (Set 29 pattern): muted, dashed, never a dead button.
   Tapping it shows the honest message in authMsg instead. */
#authView .auth-provider.provider-not-setup, #userAccountSwitchModal .auth-provider.provider-not-setup {
  opacity: .55;
  border-style: dashed;
  cursor: not-allowed;
}

/* --- Dark: notice, message, FVAVerify badge --- */
#authView .auth-notice {
  background: rgba(245,158,11,.12);
  border: 1px solid rgba(245,158,11,.35);
  color: #FDE68A;
}
#authView .auth-notice-dismiss {
  flex: none;
  min-width: 44px;
  min-height: 44px;
  margin: -6px -6px -6px 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  color: inherit;
  font-size: 16px;
  cursor: pointer;
  border-radius: 8px;
}
#authView .auth-msg {
  background: rgba(245,158,11,.10);
  border: 1px solid rgba(245,158,11,.30);
  color: #FDE68A;
}
#authView #fv-box { background: rgba(255,255,255,.04) !important; border: 1px solid rgba(201,160,107,.45) !important; color: #F9FAF8 !important; }
#authView #fv-box[data-state="verified"] { border-color: #059669 !important; }
#authView #fv-box[data-state="failed"], #authView #fv-box[data-state="expired"] { border: 2px solid #F87171 !important; }
#authView #fv-box .fv-check { border-color: rgba(249,250,248,.55) !important; background: transparent !important; }
#authView #fv-box[data-state="verified"] .fv-check { background: #059669 !important; border-color: #059669 !important; }
#authView #fv-box[data-state="failed"] .fv-check, #authView #fv-box[data-state="expired"] .fv-check { border-color: #F87171 !important; }
#authView #fv-box .fv-tick { color: #fff !important; }
#authView #fv-box #fv-status { color: #F9FAF8 !important; }
#authView #fv-box .fv-brand { color: rgba(249,250,248,.6) !important; }
#authView #fv-box .fv-spinner { border-color: rgba(249,250,248,.3) !important; border-top-color: #A7F3D0 !important; }
#authView #fv-box .fv-retry { background: #059669 !important; color: #fff !important; }
#authView #fvaverifyState { color: rgba(249,250,248,.6) !important; }

/* --- Dark: remember me, forgot link, legal, footer, steps --- */
#authView .auth-pw-label-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#authView .auth-pw-label-row .login-gate-label { margin: 0; }
#authView .auth-forgot-link {
  background: transparent;
  border: 0;
  padding: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: #6EE7B7;
  cursor: pointer;
}
#authView .auth-forgot-link:hover { text-decoration: underline; }
#authView .auth-remember { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 13px; font-weight: 600; color: rgba(249,250,248,.85); cursor: pointer; }
#authView .auth-remember input { width: 20px; height: 20px; accent-color: #059669; }
#authView .auth-remember-note { margin: 0; font-size: 12px; line-height: 1.45; color: rgba(249,250,248,.6); }
#authView .auth-legal { margin: 0; font-size: 12px; line-height: 1.5; color: rgba(249,250,248,.6); }
#authView .auth-legal a { color: #93C5FD; }
#authView .auth-consent { color: rgba(249,250,248,.75); }
#authView .auth-consent a { color: #93C5FD; }
#authView .auth-consent input { accent-color: #059669; }
#authView .auth-consent.hidden { display: none; }
#authView #authLegalFooter.hidden { display: none; }
#authView .auth-foot { border-top: 1px solid rgba(255,255,255,.12); padding-top: 8px; }
#authView .auth-foot-switch { margin: 0; min-height: 44px; display: flex; align-items: center; }
#authView .auth-mode-switch { color: #93C5FD; background: transparent; border: 0; padding: 0; min-height: 44px; cursor: pointer; font-weight: 600; }
#authView .auth-foot-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
#authView .auth-theme-toggle {
  flex: none;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 9999px;
  background: transparent;
  color: rgba(249,250,248,.8);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
#authView #twofaBox p { color: rgba(249,250,248,.9) !important; }
#authView #xBindBox p:nth-of-type(1) { color: rgba(249,250,248,.9) !important; }
#authView #xBindBox p:nth-of-type(2) { color: rgba(249,250,248,.7) !important; }
#authView #sectionSuspended { background: rgba(255,255,255,.04) !important; color: #F9FAF8 !important; border-color: rgba(255,255,255,.12) !important; }
#authView .auth-submit-ghost { background: transparent; border: 1px solid rgba(255,255,255,.2); color: #F9FAF8; white-space: nowrap; }
@media (max-width: 480px) {
  #authView .auth-provider-row { gap: 8px; }
  #authView .auth-provider { padding-left: 8px; padding-right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  #authView .auth-provider, #authView .auth-input, #authView .auth-submit { transition: none; }
}

/* --- Light (Warm Alabaster): same layout, warm surfaces --- */
html[data-theme="light"] body[data-shell="auth"] { background: #F7F4EC; }
html[data-theme="light"] #authView .auth-card { background: #FBF9F3; border-color: #E3DCC8; box-shadow: 0 24px 60px rgba(16,32,26,.12); backdrop-filter: none; }
html[data-theme="light"] #authView .auth-form-wrap { background: #f4f0e6; }
html[data-theme="light"] #authView .auth-form-wrap #authStatus { color: #5b6358; }
html[data-theme="light"] #authView .auth-card-title { color: #10201A; }
html[data-theme="light"] #authView .auth-host { color: rgba(16,32,26,.55); }
/* Light brand text goes dark ONLY on mobile: below 960px the brand panel
   has no background (the name sits on the page), while on desktop the
   panel is dark green in both themes and keeps its light text. */
@media (max-width: 959px) {
  html[data-theme="light"] #authView .auth-brand-name { color: #10201A; }
  html[data-theme="light"] #authView .auth-welcome-line { color: #10201A; }
}
/* (No Light tagline rule: the tagline is hidden on mobile, and on desktop
   the panel is dark green in both themes, so the light-text Dark rule is
   the readable one.) */
html[data-theme="light"] #authView .login-gate-label { color: rgba(16,32,26,.75); }
html[data-theme="light"] #authView .auth-or { color: rgba(16,32,26,.45); }
html[data-theme="light"] #authView .auth-or:before, html[data-theme="light"] #authView .auth-or:after { background: #d3c6a8; }
html[data-theme="light"] #authView .auth-provider { background: #FFFFFF; border: 1px solid #D8D2BE; color: #10201A; }
html[data-theme="light"] #authView .auth-provider:hover { background: #F4F0E6; border-color: #059669; color: #10201A; }
html[data-theme="light"] #authView .auth-input { background: #FFFFFF; border: 1px solid #D8D2BE; color: #10201A; }
html[data-theme="light"] #authView .auth-input::placeholder { color: rgba(16,32,26,.4); }
html[data-theme="light"] #authView .auth-input:focus { border-color: #059669; }
html[data-theme="light"] #authView .login-gate-showhide { background: #FFFFFF; border: 1px solid #D8D2BE; color: #10201A; }
html[data-theme="light"] #authView .auth-notice { background: #FEF3C7; border-color: #F59E0B; color: #92400E; }
html[data-theme="light"] #authView .auth-msg { background: #FEF3C7; border-color: #F59E0B; color: #92400E; }
html[data-theme="light"] #authView #fv-box { background: #ffffff !important; border: 1px solid #C9A06B !important; color: #003A34 !important; }
html[data-theme="light"] #authView #fv-box[data-state="verified"] { border-color: #003A34 !important; }
html[data-theme="light"] #authView #fv-box[data-state="failed"], html[data-theme="light"] #authView #fv-box[data-state="expired"] { border: 2px solid #9B1C1C !important; }
html[data-theme="light"] #authView #fv-box .fv-check { border-color: #003A34 !important; background: #ffffff !important; }
html[data-theme="light"] #authView #fv-box[data-state="verified"] .fv-check { background: #003A34 !important; border-color: #003A34 !important; }
html[data-theme="light"] #authView #fv-box[data-state="failed"] .fv-check, html[data-theme="light"] #authView #fv-box[data-state="expired"] .fv-check { border-color: #9B1C1C !important; }
html[data-theme="light"] #authView #fv-box .fv-tick { color: #C9A06B !important; }
html[data-theme="light"] #authView #fv-box #fv-status { color: #003A34 !important; }
html[data-theme="light"] #authView #fv-box .fv-brand { color: #3d4a47 !important; }
html[data-theme="light"] #authView #fv-box .fv-spinner { border-color: #C9A06B !important; border-top-color: transparent !important; }
html[data-theme="light"] #authView #fv-box .fv-retry { background: #003A34 !important; color: #ffffff !important; }
html[data-theme="light"] #authView #fvaverifyState { color: #5b6358 !important; }
html[data-theme="light"] #authView .auth-forgot-link { color: #0A6B4A; }
html[data-theme="light"] #authView .auth-remember { color: rgba(16,32,26,.85); }
html[data-theme="light"] #authView .auth-remember-note { color: rgba(16,32,26,.6); }
html[data-theme="light"] #authView .auth-legal { color: rgba(16,32,26,.6); }
html[data-theme="light"] #authView .auth-legal a { color: #0A6B4A; }
html[data-theme="light"] #authView .auth-consent { color: rgba(16,32,26,.75); }
html[data-theme="light"] #authView .auth-consent a { color: #0A6B4A; }
html[data-theme="light"] #authView .auth-foot { border-top-color: rgba(16,32,26,.12); }
html[data-theme="light"] #authView .auth-mode-switch { color: #0A6B4A; }
html[data-theme="light"] #authView .auth-theme-toggle { border-color: rgba(16,32,26,.2); color: rgba(16,32,26,.8); }
html[data-theme="light"] #authView #twofaBox p { color: #14221F !important; }
html[data-theme="light"] #authView #xBindBox p:nth-of-type(1) { color: #14221F !important; }
html[data-theme="light"] #authView #xBindBox p:nth-of-type(2) { color: #3d4a47 !important; }
html[data-theme="light"] #authView #sectionSuspended { background: var(--milk) !important; color: #111827 !important; border-color: rgba(16,32,26,.12) !important; }
html[data-theme="light"] #authView .auth-submit-ghost { background: transparent; border: 1px solid rgba(16,32,26,.25); color: #10201A; }

/* ---- Set 55: media always posts + layout stability ---- */
#publish-post-btn{min-width:92px;font-variant-numeric:tabular-nums}
#composerMediaStatus{min-height:16px}
.fva55-media{position:relative;width:100%;aspect-ratio:4/3;background:#040d0c;overflow:hidden}
.fva55-media img,.fva55-media video{width:100%;height:100%;object-fit:contain}
.fva55-media.chat-media-box{max-height:520px}
.fva55-media .chat-photo-btn{display:block;width:100%;height:100%}
.fva55-media .chat-photo-btn img{width:100%;height:100%;object-fit:contain}
#mediaPreviewVideo{aspect-ratio:16/9;background:#000}
.fva55-file-card{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid rgba(16,185,129,.35);border-radius:12px;background:rgba(4,13,12,.8)}
.fva55-file-icon{font-size:20px;line-height:1;flex-shrink:0}
.fva55-file-meta{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.fva55-file-name{font-size:12px;font-weight:600;color:#e5e7eb;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fva55-file-size{font-size:11px;color:#9ca3af}
.fva55-file-download{font-size:12px;font-weight:700;color:#34d399;white-space:nowrap;padding:6px 8px;min-height:44px;display:inline-flex;align-items:center}
#moments-rail{min-height:76px}
/* The app has no global border-box, so the composer textarea (w-full +
   px-3 + border, content-box) ran 24px past the sheet at 375px: right
   edge 385 vs a 375px viewport, cut off (render probe F12). Border-box
   keeps it inside the sheet. */
#post-textarea{box-sizing:border-box}
/* Light theme: the composer sheet stays dark green in both themes, but the
   inline light override in index.html flips every .text-white to #111827,
   which makes the "Create Post" title and the media-remove icon invisible
   on the dark sheet (contrast 1.04:1, found by the render suite). Keep
   white text white inside the composer sheet. The green location buttons
   are already excepted in index.html; this covers the title + remove icon.
   Same root cause hides the "Connect" wordmark: the app header is also
   dark green in both themes, so it gets the same one-line exception. */
html[data-theme="light"] #composer-modal .text-white{color:var(--lt-surface)}
.feed-video-download,.video-error-download{display:block;margin-top:8px;font-size:12px;font-weight:700;color:#34d399}
#composerCameraMenu{position:absolute}

/* ===== Set 63: Moments Highlights, Close Friends, per-person audience ===== */
.moment-aud-row{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;text-align:left;color:#e2e8f0;font-size:12px;padding:10px 12px;min-height:44px;border:1px solid #134e4a;border-radius:12px;background:#0f3a36;}
.moment-aud-row b{color:#fff;}
.moment-aud-picker{margin-top:8px;padding:12px;border:1px solid #134e4a;border-radius:12px;background:#0f3a36;}
.moment-aud-opt{display:flex;align-items:flex-start;gap:8px;color:#e2e8f0;font-size:13px;padding:10px 8px;min-height:44px;border-radius:10px;cursor:pointer;}
.moment-aud-opt input{margin-top:2px;accent-color:#10b981;}
.moment-aud-hint{color:#94a3b8;font-size:11px;}
.moment-aud-people{margin-top:8px;display:flex;flex-direction:column;gap:6px;max-height:220px;overflow-y:auto;}
.moment-aud-person{display:flex;align-items:center;gap:8px;padding:6px 4px;}
.moment-aud-avatar{width:32px;height:32px;border-radius:9999px;object-fit:cover;flex-shrink:0;}
.moment-aud-avatar-fallback{display:flex;align-items:center;justify-content:center;background:#14532d;color:#fff;font-weight:700;font-size:13px;}
.moment-aud-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#e2e8f0;font-size:13px;}
.moment-aud-chip{padding:6px 10px;min-height:36px;border-radius:9999px;border:1px solid #334155;background:#1e293b;color:#cbd5e1;font-size:12px;font-weight:600;flex-shrink:0;}
.moment-aud-chip.on{background:#059669;border-color:#059669;color:#fff;}
.moment-aud-manage{display:block;margin-top:8px;color:#34d399;font-size:12px;font-weight:600;padding:8px 4px;min-height:36px;text-align:left;}
.moment-aud-note{color:#94a3b8;font-size:11px;line-height:1.5;margin-top:8px;}
.moments-aud-manage{display:block;margin-top:8px;color:#34d399;font-size:12px;font-weight:600;padding:8px 4px;min-height:36px;text-align:left;}
.hl-shelf{margin:12px 0 4px;}
.hl-shelf-empty{color:#94a3b8;font-size:12px;line-height:1.5;padding:8px 4px;border:1px dashed #334155;border-radius:12px;}
.hl-row{display:flex;gap:14px;overflow-x:auto;padding:4px 2px 8px;scrollbar-width:none;}
.hl-row::-webkit-scrollbar{display:none;}
.hl-item{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:72px;flex-shrink:0;}
.hl-cover-wrap{width:64px;height:64px;border-radius:9999px;padding:2px;background:linear-gradient(135deg,#10b981,#0ea5e9);}
.hl-cover{width:100%;height:100%;border-radius:9999px;object-fit:cover;display:block;border:2px solid #0f172a;background:#1e293b;}
.hl-cover-empty{display:flex;align-items:center;justify-content:center;color:#e2e8f0;font-size:20px;background:#14532d;}
.hl-title{color:#e2e8f0;font-size:12px;font-weight:600;max-width:72px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.hl-count{color:#94a3b8;font-size:11px;max-width:72px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.hl-add-row{display:flex;align-items:center;gap:10px;width:100%;padding:10px 8px;min-height:52px;border-radius:12px;text-align:left;}
.hl-add-row:hover{background:#1e293b;}
.hl-add-row b{display:block;color:#fff;font-size:13px;}
.hl-add-count{display:block;color:#94a3b8;font-size:11px;}
.hl-manage-row{display:flex;align-items:center;gap:8px;padding:8px;border:1px solid #134e4a;border-radius:12px;}
.hl-title-input{flex:1;min-width:0;background:#040d0c;border:1px solid #134e4a;border-radius:10px;padding:8px 10px;min-height:44px;color:#f1f5f9;font-size:13px;}
.story-comment{display:flex;align-items:flex-start;gap:8px;padding:8px 4px;border-bottom:1px solid #1e293b;}
.story-comment-avatar{width:28px;height:28px;border-radius:9999px;object-fit:cover;flex-shrink:0;}
.story-comment-avatar-fallback{display:flex;align-items:center;justify-content:center;background:#14532d;color:#fff;font-weight:700;font-size:12px;}
.story-comment-body{flex:1;min-width:0;color:#e2e8f0;font-size:13px;line-height:1.45;word-break:break-word;}
.story-comment-body b{color:#fff;}
.story-comment-delete{padding:6px 8px;min-height:36px;color:#94a3b8;font-size:12px;flex-shrink:0;}
.story-viewer-actions{display:flex;gap:8px;flex-wrap:wrap;padding:10px 12px 12px;}
.story-viewer-action-btn{padding:8px 12px;min-height:44px;border-radius:9999px;border:1px solid #334155;background:#1e293b;color:#e2e8f0;font-size:12px;font-weight:600;}
/* Two classes (0,2,0) beats the base dark-theme rule "html.dark button" (0,1,2), which otherwise forces this button's text to gray-200 #E5E7EB (4.43 on #047857, just under 4.5). White on #047857 is 5.48. */
.story-viewer .story-viewer-action-btn-primary{background:#047857;border-color:#047857;color:#fff;}
/* Sheets opened FROM the Moment viewer must sit above it (z-90): at z-50 the comments sheet and the Add-to-Highlight sheet opened underneath the viewer and their Post / Create buttons were untappable. A Tailwind-style z-[95] class does NOT work here: this app has no Tailwind, only .z-10/.z-30/.z-50. */
#storyCommentsSheet,#addToHighlightSheet{z-index:95;}
@media (prefers-color-scheme: light){
  .moment-aud-row{color:#0f172a;border-color:#a7f3d0;background:#ecfdf5;}
  .moment-aud-row b{color:#022c22;}
  .moment-aud-picker{border-color:#a7f3d0;background:#ecfdf5;}
  .moment-aud-opt{color:#0f172a;}
  .moment-aud-hint{color:#475569;}
  .moment-aud-name{color:#0f172a;}
  .moment-aud-chip{border-color:#cbd5e1;background:#fff;color:#334155;}
  .moment-aud-chip.on{background:#059669;border-color:#059669;color:#fff;}
  .moment-aud-manage,.moments-aud-manage{color:#047857;}
  .moment-aud-note{color:#475569;}
  .hl-shelf-empty{color:#475569;border-color:#cbd5e1;}
  .hl-title{color:#0f172a;}
  .hl-count{color:#475569;}
  .hl-add-row:hover{background:#f1f5f9;}
  .hl-add-row b{color:#0f172a;}
  .hl-add-count{color:#475569;}
  .hl-manage-row{border-color:#a7f3d0;}
  .hl-title-input{background:#fff;border-color:#a7f3d0;color:#0f172a;}
  .story-comment{border-bottom-color:#e2e8f0;}
  .story-comment-body{color:#0f172a;}
  .story-comment-body b{color:#022c22;}
  .story-comment-delete{color:#475569;}
  .story-viewer-action-btn{border-color:#cbd5e1;background:#fff;color:#0f172a;}
  .story-viewer .story-viewer-action-btn-primary{background:#047857;border-color:#047857;color:#fff;}
}


/* ==== Connect Set 68: accessibility (alt text, captions, transcripts) ==== */
.video-caption-overlay{position:absolute;left:50%;transform:translateX(-50%);bottom:64px;max-width:82%;background:rgba(0,0,0,.72);color:#fff;font-size:15px;line-height:1.35;text-align:center;padding:4px 10px;border-radius:8px;pointer-events:none;z-index:6}
#reelCapOverlay{bottom:118px}
.cc-btn{position:absolute;right:64px;bottom:10px;min-width:44px;min-height:44px;padding:0 10px;border-radius:999px;background:rgba(0,0,0,.65)!important;color:#fff!important;border:1px solid rgba(255,255,255,.35)!important;font-weight:700;font-size:13px;line-height:1;z-index:6}
.cc-btn-on{background:#059669!important;border-color:#059669!important}
.chat-transcript{margin-top:6px}
.chat-transcript-toggle{background:none;border:0;padding:4px 0;font-size:12px;font-weight:600;text-decoration:underline;color:inherit;cursor:pointer}
.chat-transcript-text{font-size:13px;line-height:1.5;margin-top:4px;white-space:pre-wrap}
.a11y-box{margin-top:8px;padding:10px;border-radius:12px;background:rgba(0,0,0,.04)}
html[data-theme="dark"] .a11y-box{background:rgba(255,255,255,.06)}

/* ---- Set 70: profiles (recommendations, Open to Work, pinned skills, bell, org tasks, page inbox) ---- */
.otw-badge{ display:inline-flex; align-items:center; gap:4px; background:#047857; color:#fff; font-size:11px; font-weight:700; padding:4px 10px; border-radius:999px; }
.otw-pill{ display:inline-flex; align-items:center; background:#047857; color:#fff; font-size:12px; font-weight:700; padding:4px 10px; border-radius:999px; margin:2px 0; }
.skill-chip{ display:inline-flex; align-items:center; gap:4px; background:#e8f5ee; border:1px solid #bfe3cf; color:#0b3d2e; font-size:12px; font-weight:600; padding:4px 8px; border-radius:999px; margin:2px 4px 2px 0; }
.skill-chip.pinned{ background:#047857; border-color:#047857; color:#fff; }
.skill-chip em{ font-style:normal; font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:.04em; opacity:.85; }
.skill-pin-label{ display:inline-flex; align-items:center; gap:6px; font-size:12px; font-weight:600; padding:6px 8px; border:1px solid #e5e7eb; border-radius:10px; min-height:44px; }
.strength-meter{ height:10px; background:#e5e7eb; border-radius:999px; overflow:hidden; }
.strength-meter-fill{ height:100%; background:#047857; border-radius:999px; transition:width .3s ease; }
.strength-next{ color:#047857; font-weight:700; text-decoration:underline; text-underline-offset:2px; padding:2px 0; min-height:44px; }
.rec-card{ border:1px solid #e5e7eb; border-radius:14px; padding:12px; background:#fff; display:grid; gap:6px; }
.rec-card.rec-pending{ border-color:#f59e0b; background:#fffbeb; }
.bell-option{ display:flex; flex-direction:column; align-items:flex-start; gap:2px; width:100%; text-align:left; border:1px solid #e5e7eb; border-radius:14px; padding:12px; min-height:44px; background:#fff; }
.bell-option.is-active{ border-color:#047857; background:#ecfdf5; }
.bell-option strong{ font-size:13px; color:#003a34; }
.bell-option span{ font-size:12px; color:#6b7280; }
.bell-option em{ font-style:normal; font-size:11px; font-weight:800; color:#047857; }
.org-task-list{ display:flex; flex-wrap:wrap; gap:6px; }
.org-task-label{ display:inline-flex; align-items:center; gap:6px; font-size:12px; font-weight:600; padding:6px 8px; border:1px solid #e5e7eb; border-radius:10px; min-height:44px; }
.org-staff-row{ display:grid; gap:8px; border:1px solid #e5e7eb; border-radius:14px; padding:10px; background:#fff; }
.org-inbox-row{ display:flex; align-items:center; justify-content:space-between; gap:8px; width:100%; text-align:left; border:1px solid #e5e7eb; border-radius:14px; padding:10px 12px; min-height:44px; background:#fff; }
.org-inbox-row strong{ display:block; font-size:13px; color:#003a34; }
.org-inbox-row em{ display:block; font-style:normal; font-size:11px; color:#6b7280; }
.org-inbox-item{ border:1px solid #e5e7eb; border-radius:14px; padding:10px 12px; display:grid; gap:6px; background:#fff; }
html[data-theme="dark"] .skill-chip{ background:#0b3d2e; border-color:#14532d; color:#d1fae5; }
html[data-theme="dark"] .skill-chip.pinned{ background:#047857; border-color:#047857; color:#fff; }
html[data-theme="dark"] .skill-pin-label, html[data-theme="dark"] .org-task-label, html[data-theme="dark"] .bell-option, html[data-theme="dark"] .rec-card, html[data-theme="dark"] .org-staff-row, html[data-theme="dark"] .org-inbox-row, html[data-theme="dark"] .org-inbox-item{ background:#1a1a1a; border-color:#333; }
html[data-theme="dark"] .strength-meter{ background:#333; }
html[data-theme="dark"] .bell-option.is-active{ background:#0b3d2e; border-color:#047857; }
html[data-theme="dark"] .bell-option strong{ color:#d1fae5; }
html[data-theme="dark"] .bell-option span{ color:#9ca3af; }
html[data-theme="dark"] .rec-card.rec-pending{ background:#2a2113; border-color:#92600a; }
html[data-theme="dark"] .org-inbox-row strong{ color:#d1fae5; }

/* ---- Set 71: feed personalisation ---- */
.topic-chip{min-height:36px;padding:6px 12px;border-radius:999px;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.05);color:#e2e8f0;font-size:12px;font-weight:600;white-space:nowrap;cursor:pointer}
.topic-chip.is-active{background:#10B981;color:#050E0B;border-color:transparent}
.topic-chip-clear{border-style:dashed}
.fp-row{display:flex;align-items:center;gap:8px;padding:10px 12px;border:1px solid rgba(255,255,255,.1);border-radius:12px;background:rgba(255,255,255,.03)}
.fp-row-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;color:#e2e8f0}
.fp-row-kind{font-size:11px;color:#94a3b8;flex-shrink:0}
.fp-row-remove{min-height:44px;padding:6px 10px;font-size:12px;font-weight:700;color:#f87171;background:transparent;border:0;cursor:pointer;flex-shrink:0}
.composer-reach{margin-top:8px;padding:10px 12px;border:1px solid rgba(16,185,129,.35);border-radius:12px;background:rgba(16,185,129,.07)}
.reach-title{font-size:12px;font-weight:700;color:#a7f3d0}
.reach-rule{font-size:11px;line-height:1.5;color:#94a3b8;margin-top:2px}
.reach-list{list-style:none;margin:6px 0 0;padding:0;display:flex;flex-direction:column;gap:2px}
.reach-item{font-size:12px;color:#cbd5e1}
.reach-item.is-done{color:#a7f3d0}
.reach-note{font-size:11px;color:#94a3b8;margin-top:4px}
.reel-dvr{position:absolute;left:12px;right:12px;bottom:64px;z-index:6;display:flex;align-items:center;gap:8px}
.reel-dvr-btn{min-width:52px;min-height:44px;padding:6px 10px;border-radius:12px;background:rgba(0,0,0,.55);border:1px solid rgba(255,255,255,.22);color:#fff;font-size:13px;font-weight:700}
.reel-dvr input[type=range]{flex:1;min-width:0;accent-color:#10B981;height:44px}
.reel-dvr-time{font-size:12px;color:#fff;white-space:nowrap;text-shadow:0 1px 2px rgba(0,0,0,.8)}
/* ---- Set 72 live upgrade: scheduling, co-hosts, polls, moderators,
   gift prominence, creator subscriptions, replay retention. ----
   The viewer is a black overlay in both themes, so the viewer pieces
   below use fixed colours that read on black. The profile pieces inherit
   the card colours. Explicit class rules beat the Set 36 safety net
   (specificity 0,0,1) wherever they overlap. */
.live72-schedule-card{border-left:3px solid #059669;}
.live72-scheduled-pill{display:inline-flex;align-items:center;background:#dcfce7;color:#14532d;font-size:11px;font-weight:800;letter-spacing:.04em;padding:4px 10px;border-radius:999px;min-height:24px;white-space:nowrap;flex-shrink:0;}
.live72-topgift{display:flex;align-items:center;gap:8px;background:#fde68a;color:#451a03;border-radius:12px;padding:10px 12px;font-size:13px;line-height:1.4;margin-top:8px;}
.live72-topgift-emoji{font-size:18px;line-height:1;}
.live72-topgift-tag{margin-left:auto;flex-shrink:0;background:#451a03;color:#fde68a;font-size:10px;font-weight:800;letter-spacing:.04em;padding:3px 8px;border-radius:999px;white-space:nowrap;}
.live72-cohosts{font-size:12px;line-height:1.5;color:#d1d5db;margin:8px 0 0;}
.live72-badge{display:inline-block;background:rgba(255,255,255,.16);color:#fff;font-size:10px;font-weight:700;line-height:1;padding:3px 6px;border-radius:999px;vertical-align:1px;margin-left:4px;white-space:nowrap;}
.live72-badge-pin{background:#fde68a;color:#451a03;}
.live72-comment-acts{display:inline-flex;gap:6px;margin-left:6px;vertical-align:1px;}
.live72-mini-btn{min-height:32px;padding:4px 10px;border:1px solid currentColor;border-radius:999px;background:transparent;color:inherit;font-size:12px;font-weight:600;cursor:pointer;white-space:nowrap;}
.live72-poll{margin-top:10px;}
.live72-poll-q{color:#fff;font-size:14px;font-weight:700;line-height:1.4;margin:0 0 2px;}
.live72-poll-status{color:#9ca3af;font-size:12px;margin:0 0 8px;}
.live72-poll-opt{position:relative;display:flex;align-items:center;gap:8px;width:100%;min-height:44px;padding:10px 12px;margin:0 0 8px;border:1px solid rgba(255,255,255,.25);border-radius:12px;background:rgba(255,255,255,.08);color:#fff;font-size:14px;text-align:left;cursor:pointer;overflow:hidden;}
.live72-poll-opt:disabled{cursor:default;}
.live72-poll-mine{border-color:#10b981;box-shadow:inset 0 0 0 1px #10b981;}
.live72-poll-bar{position:absolute;top:0;bottom:0;left:0;background:rgba(16,185,129,.35);}
.live72-poll-label{position:relative;z-index:1;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.live72-poll-count{position:relative;z-index:1;flex-shrink:0;font-size:12px;color:#e5e7eb;white-space:nowrap;}
.live72-manage{margin-top:10px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);border-radius:12px;padding:12px;}
.live72-manage-title{color:#fff;font-size:14px;font-weight:700;margin:0 0 4px;}
.live72-manage-sec{margin-top:10px;}
.live72-manage-head{color:#d1d5db;font-size:12px;font-weight:700;margin:0 0 4px;}
.live72-manage-row{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#fff;font-size:13px;padding:6px 0;}
.live72-level{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid rgba(128,128,128,.25);}
.live72-level-perks{margin:4px 0 0;padding-left:16px;font-size:12px;line-height:1.5;}
html[data-theme="dark"] .live72-scheduled-pill{background:#14532d;color:#bbf7d0;}
html[data-theme="dark"] .live72-level{border-bottom-color:rgba(255,255,255,.14);}
/* Set 72 — live button labels restored (base defect found by the render suite).
   The pill net at design.css:3391 (dark, colour only) and :3395 (light, pale-green
   background + colour) is html[data-theme="dark"] button:not(:where(...)) with
   specificity (0,1,2). Its exclusion list has no live classes, so it overrides the
   Set 43 .live-* rules (0,1,0): in Dark the labels became #E5E7EB (Start 4.43:1,
   End/Watch 3.90:1, Mute mic 1.24:1 on its white pill) and in Light they became
   #111827 on a pale-green pill background. The rules below restate the Set 43
   colours and backgrounds at (0,2,1), which wins in both themes. After the fix:
   white on emerald-700 #047857 is 5.48:1, white on red-600 #DC2626 is 4.83:1,
   #003A34 on white is 12.69:1, white on the translucent viewer pills composited
   over the black viewer is 16.67:1 / 17.58:1. The viewer secondary buttons inside
   .live-view keep their own white-on-translucent rule (design.css:2993), so the
   dark-ink restore is scoped to the setup modal (#goLiveBody). */
html[data-theme="dark"] .live-primary-btn,html.dark .live-primary-btn,html[data-theme="light"] .live-primary-btn,
html[data-theme="dark"] .live-send-btn,html.dark .live-send-btn,html[data-theme="light"] .live-send-btn,
html[data-theme="dark"] .live-follow-btn,html.dark .live-follow-btn,html[data-theme="light"] .live-follow-btn{background:#047857;color:#fff;}
html[data-theme="dark"] .live-danger-btn,html.dark .live-danger-btn,html[data-theme="light"] .live-danger-btn,
html[data-theme="dark"] .live-watch-btn,html.dark .live-watch-btn,html[data-theme="light"] .live-watch-btn{background:#dc2626;color:#fff;}
html[data-theme="dark"] .live-view-sound,html.dark .live-view-sound,html[data-theme="light"] .live-view-sound,
html[data-theme="dark"] .live-view-close,html.dark .live-view-close,html[data-theme="light"] .live-view-close{background:rgba(255,255,255,.12);color:#fff;}
html[data-theme="dark"] .live-action-btn,html.dark .live-action-btn,html[data-theme="light"] .live-action-btn{background:rgba(255,255,255,.1);color:#fff;}
html[data-theme="dark"] #goLiveBody .live-secondary-btn,html.dark #goLiveBody .live-secondary-btn,html[data-theme="light"] #goLiveBody .live-secondary-btn{background:#fff;color:#003A34;border-color:#d1d5db;}

/* ---- Set 60: video posting amenities ---- */
.video-chip{min-height:44px;padding:8px 12px;border-radius:12px;border:1px solid rgba(16,185,129,.4);background:rgba(6,40,33,.6);color:#6ee7b7;font-size:12px;font-weight:600}
.video-chip.is-on{background:#059669;color:#fff;border-color:#059669}
.video-trim-slider{accent-color:#10b981;height:44px}
.video-cover-frame{padding:0;border:2px solid transparent;border-radius:12px;overflow:hidden;min-width:44px;min-height:44px;background:#000}
.video-cover-frame img{display:block;width:160px;height:90px;object-fit:cover}
.video-cover-frame.is-on{border-color:#10b981}
#videoCoverPicked img{display:block;width:160px;height:90px;object-fit:cover;border-radius:12px;border:2px solid #10b981}
.mention-suggest-row{display:flex;align-items:center;gap:8px;width:100%;text-align:left;padding:10px 12px;min-height:44px;border-radius:12px;border:1px solid rgba(16,185,129,.4);background:rgba(6,40,33,.9);color:#e5e7eb;font-size:12px}
.mention-suggest-row b{color:#6ee7b7}
.video-overlay-text{position:absolute;top:12px;left:50%;transform:translateX(-50%);max-width:88%;padding:6px 12px;border-radius:12px;background:rgba(0,0,0,.55);color:#fff;font-size:15px;font-weight:700;text-align:center;pointer-events:none;z-index:3}
/* No global border-box reset exists in this stylesheet, so a w-full input
   measures content-box: its px-3 + border add 26px and it overflows the
   panel at desktop width. Scope border-box to the panel inputs. */
#videoToolsPanel input{box-sizing:border-box;max-width:100%}
/* Set 60 Light fix: the composer card stays dark (#081712) in Light, while
   index.html line 232 turns .text-gray-300 labels dark (#374151) in Light.
   These ID-scoped rules (1,1,0) beat that rule (0,2,1) and keep the panel
   labels light in every theme, so the contrast stays readable. */
#videoToolsPanel .text-gray-300{color:#d1d5db}
#videoToolsPanel .text-gray-400{color:#9ca3af}

/* ---- Set 84: before-post photo editor + video polish ---- */
/* No global border-box reset exists in this stylesheet (same lesson as
   Set 60): scope border-box to the photo editor panel inputs. The
   composer card stays dark (#081712) in Light, so the panel labels are
   ID-scoped light, matching the Set 60 video tools fix. Blink gives
   range inputs a 2px UA margin, so a w-full slider measures 4px wider
   than its panel and overflows at desktop width: margin:0 on the panel
   range inputs (both panels) fixes it. */
#photoEditorPanel input{box-sizing:border-box;max-width:100%;margin:0}
#videoToolsPanel input[type=range]{margin:0}
#photoEditorPanel .text-gray-300{color:#d1d5db}
#photoEditorPanel .text-gray-400{color:#9ca3af}
#photoEditCanvas{display:block;max-width:100%;max-height:320px;width:auto;height:auto;background:#000;cursor:grab}
#photoEditCanvas.dragging{cursor:grabbing}
#photoEditorPanel .video-chip.is-on{background:#059669;color:#fff;border-color:#059669}

/* Set 77 (2026-11-15): broadcast channels for organisations. */
.channel-card { display:flex; gap:0.75rem; align-items:flex-start; justify-content:space-between; border:1px solid rgba(7,26,18,0.12); border-radius:1rem; padding:0.75rem; }
.channel-post { border:1px solid rgba(7,26,18,0.12); border-radius:1rem; padding:0.75rem; }
.channel-post-media { width:100%; border-radius:0.75rem; margin-top:0.5rem; max-height:420px; object-fit:cover; }
.channel-reaction-row { display:flex; flex-wrap:wrap; gap:0.375rem; align-items:center; }
.channel-reaction-chip { display:inline-flex; align-items:center; gap:0.25rem; min-height:44px; padding:0.375rem 0.625rem; border:1px solid rgba(7,26,18,0.12); border-radius:999px; font-size:0.75rem; }
.channel-reaction-mine { border-color:#10B981; background:rgba(16,185,129,0.12); font-weight:700; }
html[data-theme="dark"] .channel-card, html.dark .channel-card,
html[data-theme="dark"] .channel-post, html.dark .channel-post { border-color:rgba(255,255,255,0.14); }
html[data-theme="dark"] .channel-reaction-chip, html.dark .channel-reaction-chip { border-color:rgba(255,255,255,0.16); color:#E2ECE7; }
html[data-theme="dark"] .channel-reaction-mine, html.dark .channel-reaction-mine { border-color:#10B981; background:rgba(16,185,129,0.18); color:#E2ECE7; }

/* ---- Composer sheet picker row (composer-sheet fix, 15 Nov 2026) ----
   Defect: in the Create Post sheet the three picker <select>s (audience,
   category, comment audience) plus the two 44px camera/gallery buttons
   sit in one non-wrapping flex row whose natural width (~585px at the
   16px select font) far exceeds the sheet content width (343px at 375px,
   416px at desktop max-w-md). The small-screen rules let the row shrink
   instead of wrap (.composer-actions > * { min-width: 0 } and
   .composer-actions select { max-width: calc(50% - 8px) }), so the
   select text clipped mid-word: "Pub", "Soc", "Everyone" (of
   "Everyone can comment"). Fix: let the picker row wrap, and never let
   a picker select shrink below its content width. The 50% cap is
   overridden here (same specificity as the small-screen rule, later in
   the file, so this wins at every width). Nothing else in the sheet
   changes: Poll / emoji / Collaborators, Add location, Music, the
   limits line and the Photo / Poll / Add location / Camera row are
   untouched. */
.composer-actions > div { flex-wrap: wrap; }
.composer-actions select { flex-shrink: 0; max-width: 100%; }
.composer-actions .icon-btn { flex-shrink: 0; min-width: 44px; min-height: 44px; }

/* Music trim: cut a part of a song to play in a post */
.music-trim{margin-top:10px;padding:10px 12px;border:1px solid rgba(16,185,129,.4);border-radius:12px;background:rgba(4,13,12,.6);}
.music-trim-head{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;font-weight:700;color:#a7f3d0;}
.music-trim-row{display:flex;align-items:center;gap:10px;margin-top:8px;font-size:12px;color:#d1d5db;}
.music-trim-row span{flex-shrink:0;width:38px;}
.music-trim-row input[type=range]{flex:1;min-height:44px;accent-color:#10b981;width:100%;}
.music-trim-actions{display:flex;align-items:center;gap:10px;margin-top:10px;flex-wrap:wrap;}
.music-trim-actions button{min-height:44px;padding:8px 14px;border-radius:999px;background:#059669;color:#fff;font-size:13px;font-weight:700;border:0;}
.music-trim-note{font-size:11px;color:#9ca3af;}

/* ---- Set 74: Privacy Checkup ---- */
.privacy-opt{width:100%;border:1px solid #334155;border-radius:0.75rem;padding:0.5rem 0.75rem;font-size:0.875rem;background:#fff;color:#111827;min-height:44px}
.privacy-note{font-size:0.75rem;color:#6b7280;margin-top:0.25rem}
.privacy-dot{display:inline-block;width:8px;height:8px;border-radius:9999px;background:#d1d5db;margin-right:4px}
.privacy-dot.is-active{background:#059669}
.privacy-dot.is-done{background:#10b981}
.privacy-check-row{display:flex;align-items:center;gap:0.5rem;min-height:44px}
.privacy-kind-btn{padding:0.5rem 0.75rem;min-height:44px;border-radius:0.75rem;border:1px solid #334155;font-size:0.75rem;font-weight:600;background:transparent;color:inherit}
.privacy-kind-btn.is-selected{background:#059669;color:#fff;border-color:#059669}
.privacy-list-row{display:flex;align-items:center;justify-content:space-between;gap:0.5rem;padding:0.5rem 0;border-top:1px solid #e5e7eb}
/* The checkup sheet is bg-white, but design.css defines no plain .bg-white
   rule (no Tailwind CDN), so in Light the sheet is transparent and the gray
   text sits on the dimmed backdrop (measured 2.04:1). Give it a solid card
   like the install prompt does; the dark rules below override it. */
#privacyCheckupModal > div{background:#FFFFFF;color:#111827}
html[data-theme="dark"] #privacyCheckupModal > div,
html.dark #privacyCheckupModal > div{background:var(--fva-card) !important;color:var(--fva-text) !important;border-color:var(--fva-border) !important}
/* The checkup sheet is bg-white (remapped to the dark card in dark mode
   by the existing .bg-white rule). Its gray-700/500 text needs the same
   remap, or it is unreadable on the dark sheet. */
html[data-theme="dark"] #privacyCheckupModal .text-gray-700,
html.dark #privacyCheckupModal .text-gray-700{color:var(--fva-text) !important}
html[data-theme="dark"] #privacyCheckupModal .text-gray-500,
html.dark #privacyCheckupModal .text-gray-500{color:var(--fva-text-muted) !important}
html[data-theme="dark"] #privacyCheckupModal .privacy-note,
html.dark #privacyCheckupModal .privacy-note{color:var(--fva-text-muted) !important}
html[data-theme="dark"] #privacyCheckupModal .privacy-opt,
html.dark #privacyCheckupModal .privacy-opt{background:var(--fva-card) !important;color:var(--fva-text) !important;border-color:var(--fva-border) !important}
html[data-theme="dark"] #privacyCheckupModal .privacy-list-row,
html.dark #privacyCheckupModal .privacy-list-row{border-top-color:var(--fva-border) !important}

/* Set 78 (2026-11-15): Calls — Cloudflare RealtimeKit. The call screen is
   a dark overlay in both themes, like a phone call screen. */
#callScreen{ z-index:70; overflow-y:auto; }
#callPreview{ z-index:70; }
#incomingCall{ z-index:80; }
#guestJoinView{ z-index:80; }
#callVideoGrid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:8px; align-content:start; }
@media (min-width:768px){ #callVideoGrid{ grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); } }
.call-tile{ position:relative; background:#0b201d; border:1px solid rgba(16,185,129,.25); border-radius:16px; min-height:140px; display:flex; flex-direction:column; align-items:center; justify-content:center; overflow:hidden; gap:4px; }
.call-tile video{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.call-tile-avatar{ width:56px; height:56px; border-radius:999px; background:#064e3b; color:#6ee7b7; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:1.1rem; }
.call-tile-name{ position:relative; z-index:1; font-size:0.8rem; font-weight:700; color:#fff; text-align:center; padding:0 6px; }
.call-tile-state{ position:absolute; left:8px; bottom:6px; z-index:1; font-size:0.65rem; color:#a7f3d0; background:rgba(0,0,0,.45); border-radius:999px; padding:2px 8px; }
.call-control-btn{ min-height:44px; min-width:44px; padding:10px 14px; border-radius:999px; border:1px solid rgba(255,255,255,.25); font-size:12px; font-weight:700; color:#fff; background:rgba(255,255,255,.08); }
.call-control-btn[aria-pressed="true"]{ background:#059669; border-color:#059669; }
.call-control-btn:disabled{ opacity:.45; }
.call-control-danger{ background:#b91c1c; border-color:#b91c1c; }
.call-summary-row{ display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:6px; max-width:92%; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.12); border-radius:999px; padding:6px 12px; font-size:11px; color:#d1d5db; text-align:center; }
.call-summary-join{ min-height:32px; padding:4px 12px; border-radius:999px; background:#059669; color:#fff; font-size:11px; font-weight:700; }
.call-summary-callback{ min-height:32px; padding:4px 12px; border-radius:999px; border:1px solid rgba(16,185,129,.5); color:#6ee7b7; font-size:11px; font-weight:700; }
.call-summary-when{ color:#9ca3af; }
/* ---- Set 89: calls modern upgrade ---- */
#callVideoGrid{ position:relative; display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:8px; align-content:start; }
#callVideoGrid.call-grid-speaker{ grid-template-columns:1fr; }
#callVideoGrid.call-grid-speaker .call-tile:first-child{ min-height:52vh; }
#callVideoGrid.call-grid-speaker .call-tile:not(:first-child){ min-height:96px; }
.call-tile-speaking{ border-color:#34d399; box-shadow:0 0 0 2px #34d399; }
#callQuality[data-state="poor"]{ color:#fbbf24; }
#callQuality[data-state="offline"]{ color:#f87171; }
#callQuality[data-state="good"]{ color:#6ee7b7; }
.call-chat-list{ max-height:180px; overflow-y:auto; background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.12); border-radius:12px; padding:8px; }
.call-reaction-btn{ min-width:44px; min-height:44px; font-size:20px; border:1px solid rgba(255,255,255,.2); border-radius:12px; background:rgba(255,255,255,.06); }
.call-reaction-float{ position:absolute; bottom:20%; z-index:5; font-size:28px; pointer-events:none; animation:call-reaction-rise 2.5s ease-out forwards; }
@keyframes call-reaction-rise{ 0%{ transform:translateY(0); opacity:1; } 100%{ transform:translateY(-120px); opacity:0; } }
.call-history-missed{ border-left:3px solid #ef4444; }
@media (prefers-reduced-motion: reduce){ .call-reaction-float{ animation:none; } }
#chatCallVoiceBtn:disabled, #chatCallVideoBtn:disabled{ opacity:.4; }
@media (prefers-reduced-motion: reduce){ .call-tile video{ transition:none; } }

/* ---- Set 56: beautify + logo in all + function amenities (additive) ---- */
.fva56-mark{flex:none;display:inline-block;vertical-align:middle}
.fva56-brand{display:flex;align-items:center;gap:8px}
.fva56-brand-word{font-weight:800;font-size:15px;letter-spacing:.02em;color:var(--fva-text)}
.fva56-sheet-title{display:flex;align-items:center;gap:8px}
.fva56-empty{max-width:420px;margin:24px auto;padding:24px 20px;text-align:center;
  background:var(--fva-card);border:1px solid var(--fva-border);border-radius:18px;
  box-shadow:var(--fva-shadow)}
.fva56-empty .fva56-mark{display:block;margin:0 auto 12px}
.fva56-empty-title{font-size:15px;font-weight:800;line-height:1.35;color:var(--fva-text)}
.fva56-empty-body{margin-top:6px;font-size:13px;line-height:1.55;color:var(--fva-text-muted)}
.fva56-empty-inline{margin:0 auto;max-width:420px;padding:20px 16px;text-align:center}
.fva56-empty-inline .fva56-mark{display:block;margin:0 auto 10px}
.fva56-notsetup{max-width:420px;margin:24px auto;padding:24px 20px;text-align:center;
  background:var(--fva-card);border:1px solid var(--fva-border);border-radius:18px;
  box-shadow:var(--fva-shadow)}
.fva56-notsetup .fva56-mark{display:block;margin:0 auto 12px}
.fva56-notsetup-title{font-size:15px;font-weight:800;line-height:1.35;color:var(--fva-text)}
.fva56-notsetup-body{margin-top:6px;font-size:13px;line-height:1.55;color:var(--fva-text-muted)}
.fva56-error{padding:16px;border:1px solid rgba(220,38,38,.45);border-radius:16px;
  background:rgba(220,38,38,.08)}
.fva56-busy{opacity:.65;cursor:wait}
.fva56-brand-page{margin:0 0 12px}
.composer-sheet-head button{min-height:44px}
.composer-quickbar{flex-shrink:0;padding:12px 16px;background:#0b201d}
@media (max-width:1023px){ nav.app-nav .nav-btn{min-height:56px} }
.post-card{overflow-wrap:anywhere}
.reels-stage .fva56-empty{background:transparent;border-color:transparent;box-shadow:none}
.reels-stage .fva56-empty-title{color:#fff}
.reels-stage .fva56-empty-body{color:#d1d5db}
@media (prefers-reduced-motion:reduce){ .fva-skel{animation:none} }
.nd-logo-wrap{outline:0}

/* ---- Set 82: video auto-next + whole-site polish ---- */
/* P2: category filter chips share the 44px bar with the feed-mode tabs. */
.filter-chip{min-height:44px}
/* P12: other-profile tabs stop being white pills in Dark, matching .profile-tab. */
html.dark .other-profile-tab,html[data-theme="dark"] .other-profile-tab{color:#cbd5e1;background:transparent;border-color:rgba(255,255,255,.12)}
/* P19: composer character count in the muted token. The size needs an
   ID rule: body .text-xs (inline <style>, 0,1,1) beats the class rule,
   so font-size lives on #post-char-count (1,0,0). The colour stays on
   the class so the Light rule below still wins it in Light. */
.post-char-count{color:var(--fva-text-muted)}
#post-char-count{font-size:12px}
html[data-theme="light"] .post-char-count{color:var(--lt-muted)}
/* P22: every settings toggle row is a 44px hit area. */
#sectionSettings label.flex{min-height:44px}
/* Set 82: replay button over the ended reel (last reel, or auto-next off). */
.reel-replay-btn{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:30;min-height:44px;padding:10px 20px;border-radius:999px;background:rgba(0,0,0,.65);border:1px solid rgba(255,255,255,.4);color:#fff;font-size:14px;font-weight:700;cursor:pointer}
/* Press guard (same defect as Set 47 D2b): the global button:active rule
   replaces the button's transform with translateY(1px), so while pressed
   the replay button loses its -50%/-50% centring and jumps down-right off
   the finger: the press lands on the button but the release lands on the
   wrapper div, the click synthesises there, and replayReelVideo never
   runs (proven by CDP render: pointerdown/mousedown on the button, click
   on a DIV). Keep the centring while pressed. */
.reel-replay-btn:active{transform:translate(-50%,-50%)!important}
/* P27: sheets slide/fade in. Bottom sheets slide up; centred sheets fade
   only, so the desktop translate(-50%,-50%) centring is never disturbed.
   Exit stays instant (display toggle); reduced motion stays instant. */
.post-sheet,.reels-comments{animation:set82SheetIn .25s ease-out}
.sound-sheet,.reel-more-sheet{animation:set82SheetFade .2s ease-out}
@keyframes set82SheetIn{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@keyframes set82SheetFade{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion:reduce){.post-sheet,.reels-comments,.sound-sheet,.reel-more-sheet{animation:none}}
/* P29: Light theme — dark-only grey texts get the Light muted colour.
   Reel counter/views are left out on purpose: the Reels view is always
   black, so P5 keeps them #E5E7EB in both themes. .live-card-sub already
   has its own Light override and is left alone. */
html[data-theme="light"] .post-engagement-counts,
html[data-theme="light"] .pymk-sub,
html[data-theme="light"] .poll-pct,
html[data-theme="light"] .feed-outbox-waiting,
html[data-theme="light"] .feed-video-offline,
html[data-theme="light"] .menu-section-title,
html[data-theme="light"] .menu-chevron,
html[data-theme="light"] .fva-app-desc{color:var(--lt-muted)}
/* P31: plain .bg-white gets a Light ground. In Dark the existing
   html[data-theme="dark"] .bg-white rules win by specificity and
   !important, so Dark is unchanged. Without this, every modal, card and
   button relying on plain bg-white is transparent in Light. */
.bg-white{background-color:#fff}
/* The bundle + the inline <style> in index.html remap the utilities:
   text-xs/text-sm resolve to 13px/15px (body .text-xs/.text-sm in the
   inline style), bg-emerald-600 resolves to #047857 (body
   .bg-emerald-600), and body input[type="text"] forces 48px (beating
   the .min-h-[44px] utility, which does resolve). So a class change
   alone does not land the intended size; the targeted rules below
   override the remapped values. The .min-h-[44px]/.min-w-[44px]
   utilities are already defined in the bundle and resolve, so they are
   NOT repeated here. */
/* P28: green CTAs declared text-sm render at the inherited 15px. */
.bg-emerald-600.text-white.text-sm{font-size:.875rem;line-height:1.25rem}
/* P10: moment names declared text-xs render at the inherited 13px. */
#moments-rail .text-xs{font-size:12px;line-height:1rem}
#storyViewer .text-xs{font-size:12px;line-height:1rem}
/* P15: chat input declared min-h-[44px]; the ID rule guarantees the
   44px floor (the inline body input[type="text"] rule forces 48px and
   beats the utility, which does resolve). */
#chatInput{min-height:44px}

/* Set 85: photo-to-video templates. Panel inputs use border-box + zero
   range margin (same overflow lesson as Set 60 / Set 84: no global
   border-box reset, Blink adds 2px UA margin to range inputs). Labels
   keep their light colour in Light mode: the composer card stays dark
   while index.html turns .text-gray-300 dark. */
#photoVideoPanel input{box-sizing:border-box;max-width:100%}
#photoVideoPanel input[type=range]{margin:0}
#photoVideoPanel .text-gray-300{color:#d1d5db}
#photoVideoPanel .text-gray-400{color:#9ca3af}
.pvt-template, html[data-theme="light"] .pvt-template, html[data-theme="dark"] .pvt-template, html.dark .pvt-template{display:flex;flex-direction:column;align-items:flex-start;gap:2px;text-align:left;min-height:44px;padding:10px 12px;border-radius:12px;border:1px solid rgba(16,185,129,.35);background:rgba(4,13,12,.8);color:#d1d5db;cursor:pointer}
.pvt-template.is-on, html[data-theme="light"] .pvt-template.is-on, html[data-theme="dark"] .pvt-template.is-on, html.dark .pvt-template.is-on{border-color:#10b981;background:rgba(16,185,129,.18);color:#fff}
.pvt-template-name{font-size:12px;font-weight:700}
.pvt-template-desc{font-size:11px;color:#9ca3af}
.pvt-template.is-on .pvt-template-desc{color:#a7f3d0}
#pvtPreviewCanvas{width:100%;height:auto;display:block;background:#000;border-radius:12px}
.pvt-thumb{position:relative;flex-shrink:0;width:72px;height:72px;border-radius:12px;overflow:visible}
.pvt-thumb img{width:72px;height:72px;object-fit:cover;border-radius:12px;border:1px solid rgba(16,185,129,.35);display:block}
.pvt-thumb-remove, html[data-theme="light"] .pvt-thumb-remove, html[data-theme="dark"] .pvt-thumb-remove, html.dark .pvt-thumb-remove{position:absolute;top:-14px;right:-14px;width:44px;height:44px;display:flex;align-items:center;justify-content:center;background:transparent;border:0;cursor:pointer;color:#fff}
.pvt-thumb-remove span{display:flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:9999px;background:rgba(0,0,0,.75);font-size:16px;line-height:1}

/* ---- Set 86: easy for anyone + engaging, honestly ---- */
/* Home Today strip: dark like the rest of the home shell (the composer card
   stays dark in Light too), so no theme override is needed. */
.today-strip{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;width:100%;text-align:left;background:rgba(6,40,32,.9);border:1px solid rgba(16,185,129,.35);border-radius:1rem;padding:12px 14px;color:#e5e7eb;cursor:pointer}
.today-strip-flame{font-size:20px;line-height:1}
.today-strip-main{flex:1 1 180px;min-width:0;display:flex;flex-direction:column;gap:2px}
.today-strip-line{font-size:12px;line-height:1.35;color:#d1d5db}
.today-strip-line b{color:#fff}
.today-strip-bar{width:64px;height:6px;border-radius:999px;background:rgba(255,255,255,.12);overflow:hidden;flex:none}
.today-strip-fill{display:block;height:100%;background:#10b981;border-radius:999px}
.today-strip-go{font-size:11px;font-weight:700;color:#34d399;white-space:nowrap}
.milestone-banner{background:rgba(6,40,32,.95);border:1px solid rgba(245,158,11,.5);border-radius:1rem;padding:12px 14px;color:#fef3c7}
.milestone-banner .text-sm{color:#fef3c7}
/* Public browse: the section title and note sit directly on the sign-in
   card (dark in Dark theme, light in Light theme), so they are theme-aware;
   only the post cards themselves are white in both themes. */
.public-browse{margin-top:20px;padding-top:16px;border-top:1px solid rgba(255,255,255,.12)}
.public-browse-title{font-size:16px;font-weight:700;color:#F9FAF8}
.public-browse-note{color:#D1D5DB}
html[data-theme="light"] .public-browse{border-top-color:rgba(0,0,0,.08)}
html[data-theme="light"] .public-browse-title{color:var(--lt-text)}
html[data-theme="light"] .public-browse-note{color:var(--lt-muted)}
.public-post-card{background:#fff;border:1px solid rgba(0,0,0,.1);border-radius:1rem;padding:12px}
.public-post-head{display:flex;gap:10px;align-items:center}
.public-post-author{font-size:14px;font-weight:700;color:#111827}
.public-post-meta{font-size:11px;color:#6b7280}
.public-post-text{font-size:14px;line-height:1.5;color:#1f2937;margin-top:8px;overflow-wrap:anywhere}
.public-post-counts{font-size:11px;color:#6b7280;margin-top:8px}
.public-post-cta{margin-top:8px;width:100%;min-height:44px;border:1px solid rgba(16,185,129,.4);color:#047857;font-size:12px;font-weight:700;border-radius:12px;background:#fff}
.public-tapload{width:100%;min-height:44px;border:1px dashed rgba(0,0,0,.25);border-radius:12px;font-size:12px;font-weight:600;color:#374151;margin-top:8px;background:#fff}

/* ---- Set 88: live modern upgrade ---- */
.live88-timer{font-variant-numeric:tabular-nums;font-weight:700;color:#fff;}
.live88-floats{position:absolute;right:0;bottom:180px;width:120px;height:260px;pointer-events:none;overflow:hidden;z-index:5;}
.live88-float{position:absolute;bottom:0;font-size:26px;line-height:1;animation:live88FloatUp 2.6s ease-out forwards;white-space:nowrap;}
@keyframes live88FloatUp{0%{transform:translateY(0) scale(.8);opacity:0;}12%{opacity:1;}100%{transform:translateY(-240px) scale(1.15);opacity:0;}}
.live88-spotlight{position:absolute;left:50%;top:22%;transform:translateX(-50%);z-index:6;text-align:center;pointer-events:none;padding:14px 18px;border-radius:16px;background:rgba(0,0,0,.55);}
.live88-spotlight-emoji{font-size:56px;line-height:1;display:block;}
.live88-spotlight-text{color:#fff;font-size:14px;font-weight:700;margin:6px 0 0;}
.live88-spotlight-play{animation:live88Spot 4.2s ease-out forwards;}
@keyframes live88Spot{0%{opacity:0;transform:translateX(-50%) scale(.85);}10%{opacity:1;transform:translateX(-50%) scale(1);}85%{opacity:1;}100%{opacity:0;transform:translateX(-50%) scale(1);}}
.live88-viewers{margin-top:10px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);border-radius:12px;padding:12px;max-height:220px;overflow-y:auto;}
.live88-box{margin-top:10px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);border-radius:12px;padding:12px;}
.live88-box-title{color:#fff;font-size:14px;font-weight:700;margin:0 0 6px;}
.live88-gifter-row{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#fff;font-size:13px;padding:6px 0;}
.live88-gift-row{display:flex;gap:8px;align-items:flex-start;padding:6px 0;}
.live88-gift-emoji{font-size:20px;line-height:1.4;flex-shrink:0;}
.live88-gift-text{color:#fde68a;font-size:13px;font-weight:600;margin:0;line-height:1.4;}
.live88-goal{margin:8px 0 0;}
.live88-goal-text{color:#fff;font-size:12px;font-weight:600;margin:0 0 6px;}
.live88-goalbar{height:8px;border-radius:999px;background:rgba(128,128,128,.35);overflow:hidden;}
.live88-goalfill{height:100%;border-radius:999px;background:#10b981;transition:width .4s ease;}
.live88-stats{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin:12px 0;}
.live88-stat{background:rgba(0,0,0,.04);border:1px solid rgba(0,0,0,.08);border-radius:12px;padding:10px;text-align:center;}
.live88-stat-num{display:block;font-size:18px;font-weight:800;color:#003A34;font-variant-numeric:tabular-nums;}
.live88-stat-label{display:block;font-size:11px;color:#6b7280;margin-top:2px;}
html[data-theme="dark"] .live88-stat{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.12);}
html[data-theme="dark"] .live88-stat-num{color:#fff;}
html[data-theme="dark"] .live88-stat-label{color:#9ca3af;}
.live88-manage{margin-top:12px;background:rgba(0,0,0,.04);border:1px solid rgba(0,0,0,.08);border-radius:12px;padding:12px;}
.live88-manage-title{color:#111827;font-size:14px;font-weight:700;margin:0 0 4px;}
html[data-theme="dark"] .live88-manage{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.12);}
html[data-theme="dark"] .live88-manage-title{color:#fff;}
.live88-viewers-modal{background:rgba(0,0,0,.04);border:1px solid rgba(0,0,0,.08);}
html[data-theme="dark"] .live88-viewers-modal{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.12);}
.live88-viewers-modal .live88-gifter-row{color:#111827;}
html[data-theme="dark"] .live88-viewers-modal .live88-gifter-row{color:#fff;}
.live88-comments-off{color:#fca5a5;font-size:12px;text-align:center;margin:6px 0 0;}
#navVideo.live88-onair{position:relative;}
#navVideo.live88-onair::after{content:'';position:absolute;top:2px;right:calc(50% - 18px);width:9px;height:9px;border-radius:999px;background:#ef4444;border:2px solid #000;}
.live-modal-card{max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);min-height:0;box-sizing:border-box;}
/* Set 88 flex fixes. Modal card: box-sizing:border-box is the real fix
   (the card carries 24px of padding, and under content-box that padding was
   added on top of the 768px cap, so the card measured 816px and clipped its
   heading at 375px); min-height:0 stays as a guard because the card is a
   flex item of #goLiveModal. Viewer comments: min-height:0 lets the
   scrollable flex child shrink below its 80px base minimum, so the Set 88
   gift goal bar does not push the comment bar below the viewport fold. */
.live-view-comments{min-height:0;}
/* Set 88: the gift boxes (top gifters, goal bar, manage) live inside the
   scrollable comments area, in a wrapper that sticks to its top while
   comments scroll beneath — so the boxes stay visible AND the fixed column
   (stage, meta, reactions, actions, comment bar) always fits at 375px.
   The wrapper is opaque black, matching .live-view, so scrolling rows never
   show through the semi-transparent boxes. */
#live88ViewerBoxes{position:sticky;top:0;z-index:2;background:#000;}

/* ---- Set 90: messaging fit + amenities ---- */
#chatMessageStream .chat-bubble{font-size:16px;line-height:1.55}
#chatMessageStream .chat-bubble .chat-time{font-size:11px}
#chatSeenLine{font-size:12px}
#activeChatStatus{font-size:12px}
#activeChatName{font-size:16px}
.chat-quote{font-size:13px}
.chat-action-btn{font-size:13px;min-height:36px;padding:6px 10px;border:1px solid rgba(16,185,129,.35);border-radius:999px}
#chatList h4{font-size:16px}
#chatList .chat-list-preview{font-size:14px}
#chatInput{font-size:16px;min-height:44px;max-height:132px;resize:none;min-width:0}
#chatInput{box-sizing:border-box}
#chatComposer{gap:8px}
@media (max-width:380px){ #chatComposer{gap:6px;padding-left:8px;padding-right:8px} }
.chat-date-sep{display:flex;justify-content:center;margin:14px 0 8px}
.chat-date-sep span{font-size:12px;font-weight:700;color:#9ca3af;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08);padding:4px 12px;border-radius:999px}
.chat-unread-sep{display:flex;align-items:center;gap:8px;margin:10px 0;color:#34d399;font-size:12px;font-weight:700}
.chat-unread-sep::before,.chat-unread-sep::after{content:"";flex:1;height:1px;background:rgba(52,211,153,.4)}
.chat-unread-sep span{white-space:nowrap}
.chat-flash{outline:2px solid #34d399;outline-offset:2px;border-radius:16px}
.chat-typing-dots{display:inline-flex;gap:3px;align-items:center}
.chat-typing-dots span{width:6px;height:6px;border-radius:999px;background:#34d399;display:inline-block;animation:chat-typing-bounce 1.2s infinite}
.chat-typing-dots span:nth-child(2){animation-delay:.15s}
.chat-typing-dots span:nth-child(3){animation-delay:.3s}
@keyframes chat-typing-bounce{0%,60%,100%{transform:translateY(0);opacity:.5}30%{transform:translateY(-4px);opacity:1}}
.chat-list-time{font-size:11px;color:#9ca3af;flex-shrink:0}
.chat-pinned-bar{display:flex;align-items:center;gap:8px;padding:8px 12px;background:rgba(16,185,129,.12);border-bottom:1px solid rgba(16,185,129,.25);cursor:pointer;min-height:44px}
.chat-pinned-bar-text{flex:1;min-width:0;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat-pinned-row{display:flex;align-items:center;gap:8px}
.chat-pinned-jump{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:2px;text-align:left;padding:10px 12px;min-height:44px;border-radius:12px;background:rgba(255,255,255,.04)}
.chat-pinned-jump span{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.chat-pinned-jump small{font-size:11px;color:#9ca3af}
.chat-media-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.chat-media-thumb{aspect-ratio:1/1;border-radius:12px;overflow:hidden;padding:0;border:1px solid rgba(16,185,129,.25);background:#0b201d;display:flex;align-items:center;justify-content:center;min-height:44px}
.chat-media-thumb img{width:100%;height:100%;object-fit:cover}
.chat-media-video,.chat-media-audio{font-size:20px;color:#34d399}
.chat-search-result{display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:100%;text-align:left;padding:10px 12px;min-height:44px;border-radius:12px;background:rgba(255,255,255,.04)}
.chat-search-result span{font-size:14px}
.chat-search-result small{font-size:11px;color:#9ca3af}
.chat-attach-row{display:flex;align-items:center;gap:12px;width:100%;padding:10px 12px;min-height:56px;border-radius:12px;background:rgba(255,255,255,.04);cursor:pointer;text-align:left}
.chat-attach-row b{display:block;font-size:15px}
.chat-attach-row small{display:block;font-size:12px;color:#9ca3af}
.chat-attach-icon{font-size:22px}
.chat-new-msg-pill{position:absolute;left:50%;transform:translateX(-50%);bottom:86px;z-index:30;display:flex;align-items:center;gap:6px;background:#047857;color:#fff;font-size:13px;font-weight:700;padding:8px 14px;min-height:36px;border-radius:999px;box-shadow:0 4px 16px rgba(0,0,0,.4);white-space:nowrap}
html[data-theme="light"] .chat-date-sep span{background:rgba(0,0,0,.06);border-color:rgba(0,0,0,.08);color:var(--lt-text-2)}
html[data-theme="light"] .chat-pinned-jump,html[data-theme="light"] .chat-search-result,html[data-theme="light"] .chat-attach-row{background:rgba(0,0,0,.04)}
html[data-theme="light"] .chat-list-time,html[data-theme="light"] .chat-pinned-jump small,html[data-theme="light"] .chat-search-result small{color:var(--lt-muted)}

/* ---- Set 91 live studio + gifts + 24h replay (migration 0078) ---- */
/* Viewer pieces sit on the black live viewer in both themes, so they use
   fixed light colours. Host studio pieces sit in the Go Live modal, so
   they inherit the theme text and only add neutral borders. Buttons reuse
   the existing .live-* classes (already restored from the pill net by
   Set 72), so no new button colour rules are declared here. */
.live91-banner{border:1px solid rgba(220,38,38,.45);border-left:4px solid #DC2626;background:rgba(220,38,38,.08);border-radius:12px;padding:10px 12px;margin:0 0 10px}
.live91-banner-title{font-weight:700;font-size:14px;margin:0 0 2px}
.live91-banner-note{font-size:12px;opacity:.85;margin:0 0 8px}
.live91-banner-dark{border-color:rgba(255,255,255,.25);border-left-color:#F87171;background:rgba(255,255,255,.10);color:#fff}
.live91-banner-dark .live91-banner-note{color:#E5E7EB}
.live91-gift-alert{display:flex;align-items:center;gap:8px;background:rgba(255,255,255,.12);color:#fff;border-radius:999px;padding:6px 12px;font-size:12px;margin:8px 0;max-width:100%}
.live91-gift-alert-emoji{font-size:32px;line-height:1;animation:live91AlertPop .6s ease}
@keyframes live91AlertPop{0%{transform:scale(.4)}55%{transform:scale(1.25)}100%{transform:scale(1)}}
@media (prefers-reduced-motion: reduce){ .live91-gift-alert-emoji{animation:none;} }
.live91-gift-alert-med{background:rgba(16,185,129,.35);font-size:13px}
.live91-gift-alert-big{background:rgba(245,158,11,.45);font-size:13px;font-weight:700}
.live91-gift-fx{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;pointer-events:none;opacity:0;z-index:30;text-align:center;padding:16px}
.live91-gift-fx-show{opacity:1;animation:live91fx 3s ease-out forwards}
@keyframes live91fx{0%{transform:scale(.6);opacity:0}12%{transform:scale(1.08);opacity:1}25%{transform:scale(1)}80%{opacity:1}100%{transform:scale(1);opacity:0}}
.live91-gift-fx-emoji{font-size:96px;line-height:1;filter:drop-shadow(0 4px 18px rgba(0,0,0,.6))}
.live91-gift-fx-text{color:#fff;font-size:16px;margin:10px 0 0;text-shadow:0 2px 8px rgba(0,0,0,.8)}
.live91-gift-fx-coins{color:#FDE68A;font-size:20px;font-weight:800;margin:4px 0 0;text-shadow:0 2px 8px rgba(0,0,0,.8)}
@media (prefers-reduced-motion: reduce){.live91-gift-fx-show{animation:none;opacity:1}}

.live91-mybadge{margin:6px 0 0;color:#fff;font-size:12px}
.live91-badge{display:inline-block;font-size:10px;font-weight:700;color:#FDE68A;border:1px solid rgba(253,230,138,.6);border-radius:999px;padding:1px 7px;margin-left:4px;vertical-align:1px;white-space:nowrap}
.live91-qa{margin:10px 0;border-top:1px solid rgba(255,255,255,.14);padding-top:8px}
.live91-qa-title{color:#fff;font-size:13px;font-weight:700;margin:0 0 6px}
.live91-qa-row{display:flex;gap:8px;margin:0 0 10px}
.live91-qa-form{display:flex;gap:8px;margin-top:6px}
.live91-qa-form .live-input{flex:1;min-width:0}
.live91-emoji-picker{background:rgba(255,255,255,.08);border-radius:12px;padding:4px;margin-bottom:6px}
.live91-emoji-picker-grid{display:flex;flex-wrap:wrap;gap:2px}
.live91-studio{margin-top:12px;border-top:1px solid rgba(128,128,128,.35);padding-top:10px}
.live91-studio-title{font-weight:700;font-size:14px;margin:0 0 8px}
.live91-studio-sec{margin:0 0 12px}
.live91-studio-head{font-weight:700;font-size:13px;margin:0 0 4px}
.live91-row{display:flex;gap:8px}
.live91-row .live-input{flex:1;min-width:0}
.live91-music-row{display:flex;justify-content:space-between;gap:8px;width:100%;text-align:left;background:transparent;border:1px solid rgba(128,128,128,.35);border-radius:10px;padding:8px 10px;font-size:12px;margin:4px 0;min-height:44px;align-items:center}
.live91-music-row-off{opacity:.6}
.live91-music-now{margin-top:6px}
.live91-music-now .live91-vol{display:flex;align-items:center;gap:8px;font-size:12px;margin:6px 0}
.live91-music-now .live91-vol input{flex:1}
.live91-kw{display:inline-flex;align-items:center;gap:4px;border:1px solid rgba(128,128,128,.4);border-radius:999px;padding:3px 8px;font-size:12px;margin:2px 4px 2px 0}
.live91-kw button{background:transparent;border:0;padding:4px;min-width:24px;min-height:24px;line-height:1;cursor:pointer}

/* ===== Set 95: private admin shell (admin host only) ===== */
/* Every rule below is scoped under body.admin-host or #tab-admin. Nothing here
   can style the main app. The new panels reuse the classic admin card and
   button classes, so the design system is one system, not two.
   Design research (AUDIT.md §10): Stripe, Vercel, Linear, GitHub, Shopify
   admin (Polaris), Meta Business Suite, YouTube Studio — layout, density,
   navigation, cards, tables, settings organisation. Patterns adopted, no
   copied assets, no copied branding. */
/* --- Tokens: 4px grid, one accent (the app's own blue-600, as the classic
   admin already uses), muted grays, hairline borders. --- */
body.admin-host .app-header,
body.admin-host nav.app-nav,
body.admin-host #composeFab { display: none !important; }
body.admin-host #tab-admin { max-width: 1120px; margin: 0 auto; padding: 16px 12px 48px; }
/* --- The app ships no background for .bg-blue-600 / .bg-slate-800 anywhere,
   so without these scoped rules every primary button in the admin renders as
   a default gray button with white text (found by the render suite). Scoped
   under #tab-admin so the main app is untouched. --- */
#tab-admin .bg-blue-600 { background-color: #2563eb; color: #fff; }
#tab-admin .bg-slate-800 { background-color: #1e293b; color: #fff; }
#tab-admin input, #tab-admin select, #tab-admin textarea, #tab-admin .cc-input { box-sizing: border-box; }
/* --- Top bar: sticky 60px, page title left, search + identity + sign out right
   (Stripe/Vercel top bar pattern). The hostbar carries no 'hidden' class: the
   section itself is hidden on the main host, and .hidden is !important so no
   display rule could ever override it. --- */
body.admin-host #adminHostHeader { display: flex; position: sticky; top: 0; z-index: 30; }
#tab-admin .cc-hostbar { flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; background: #0f172a; color: #fff; border-radius: 16px; border: 1px solid #1e293b; padding: 12px 16px; min-height: 60px; }
#tab-admin .cc-hostbar-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
#tab-admin .cc-hostbar-title strong { font-size: 16px; }
#tab-admin .cc-top-title { font-size: 16px; font-weight: 700; }
#tab-admin .cc-host-pill { background: #1e293b; color: #93c5fd; font-size: 12px; padding: 4px 10px; border-radius: 999px; }
#tab-admin .cc-host-note { font-size: 12px; color: #cbd5e1; }
#tab-admin .cc-hostbar-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
#tab-admin .cc-hostbar-actions a, #tab-admin .cc-hostbar-actions button { color: #fff; border-color: #334155; }
#tab-admin .cc-top-identity { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: #e2e8f0; }
#tab-admin .cc-top-identity .avatar { width: 32px; height: 32px; font-size: 12px; }
#tab-admin .cc-search-trigger { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border: 1px solid #334155; border-radius: 8px; background: #1e293b; color: #cbd5e1; font-size: 13px; cursor: pointer; }
#tab-admin kbd.cc-kbd { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; background: #0f172a; border: 1px solid #475569; border-radius: 4px; padding: 2px 6px; color: #cbd5e1; }
/* --- Sidebar: 240px sticky, grouped, active item with left accent bar
   (Stripe 220px / Linear 220-232px sidebar pattern). On mobile the layout is
   a column with the main content FIRST and the nav after it, so the founder
   does not scroll past 13 nav buttons to reach the default view. --- */
#tab-admin .cc-layout { display: flex; flex-direction: column; }
#tab-admin .cc-main { order: -1; min-width: 0; }
#tab-admin .cc-sidebar { margin-top: 16px; }
#tab-admin .cc-side-group { margin-bottom: 16px; }
#tab-admin .cc-side-heading { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #64748b; margin-bottom: 8px; }
#tab-admin #adminSubTabs button, #tab-admin #adminSubTabsCC button { display: block; width: 100%; text-align: left; min-height: 44px; margin-bottom: 6px; }
#tab-admin #adminSubTabs button.bg-blue-600, #tab-admin #adminSubTabsCC button.bg-blue-600 { border-left: 3px solid #93c5fd; font-weight: 700; }
/* --- KPI strip: 4 cards, large tabular numerals, muted context line
   (Stripe home numbers + sparkline pattern). --- */
#tab-admin .cc-kpi-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
#tab-admin .cc-num { font-variant-numeric: tabular-nums; }
#tab-admin .cc-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
@media (min-width: 640px) { #tab-admin .cc-kpi-grid { grid-template-columns: 1fr 1fr; } }
/* --- Rows: 44px compact rows, hover, one status pill per row
   (Stripe 44px table rows + Polaris one-badge rule). --- */
#tab-admin .cc-system-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; justify-content: space-between; border: 1px solid #e5e7eb; border-radius: 12px; padding: 12px; font-size: 12px; }
#tab-admin .cc-system-spark { display: inline-flex; align-items: flex-end; gap: 2px; height: 24px; }
#tab-admin .cc-spark-bar { display: inline-block; width: 4px; background: #2563eb; border-radius: 2px; }
#tab-admin .cc-live-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid #e5e7eb; border-radius: 12px; padding: 12px; font-size: 12px; margin-bottom: 8px; }
#tab-admin .cc-activity-row { display: block; width: 100%; text-align: left; border: 1px solid #e5e7eb; border-radius: 12px; padding: 12px; font-size: 12px; margin-bottom: 8px; background: #fff; cursor: pointer; }
#tab-admin .cc-activity-row:hover { background: #f6f9fc; }
#tab-admin .cc-user-row { cursor: pointer; }
#tab-admin .cc-user-row:hover { background: #f6f9fc; }
#tab-admin .cc-gate-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; border: 1px solid #e5e7eb; border-radius: 12px; padding: 12px; font-size: 12px; margin-bottom: 8px; }
#tab-admin .cc-gate-ms { margin-left: auto; color: #6b7280; }
#tab-admin .cc-count-row { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px solid #f3f4f6; padding: 8px 0; font-size: 12px; }
#tab-admin .cc-session-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid #e5e7eb; border-radius: 12px; padding: 12px; font-size: 12px; margin-bottom: 8px; }
#tab-admin .cc-col-labels { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #6b7280; padding: 0 12px 6px; }
#tab-admin .cc-empty { text-align: center; padding: 24px 12px; color: #6b7280; font-size: 12px; }
#tab-admin .cc-pill { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; background: #e5e7eb; color: #374151; font-size: 11px; font-weight: 600; white-space: nowrap; }
#tab-admin .cc-pill-ok { background: #dcfce7; color: #166534; }
#tab-admin .cc-pill-bad { background: #fee2e2; color: #991b1b; }
#tab-admin .cc-pill-live { background: #fee2e2; color: #991b1b; }
#tab-admin .cc-pill-dark { background: #0f172a; color: #fff; }
#tab-admin .cc-input { width: 100%; min-height: 44px; border: 1px solid #d1d5db; border-radius: 12px; padding: 10px 12px; font-size: 14px; background: #fff; color: #111827; }
/* --- Skeleton loading states (Stripe/Linear content-shaped placeholders). --- */
#tab-admin .cc-skeleton { background: #e5e7eb; border-radius: 12px; min-height: 76px; animation: cc-pulse 1.2s ease-in-out infinite; }
#tab-admin .cc-skeleton-row { background: #e5e7eb; border-radius: 12px; min-height: 44px; margin-bottom: 8px; animation: cc-pulse 1.2s ease-in-out infinite; }
@keyframes cc-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@media (prefers-reduced-motion: reduce) { #tab-admin .cc-skeleton, #tab-admin .cc-skeleton-row { animation: none; } }
/* --- Overlays: palette 560px centered (Linear Cmd-K), drawer detail view
   with breadcrumb (Stripe DetailPage list-to-detail pattern). --- */
#tab-admin .cc-overlay { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,0.7); display: flex; align-items: flex-start; justify-content: center; padding: 16px; overflow-y: auto; }
#tab-admin .cc-drawer { background: #f9fafb; border-radius: 16px; width: 100%; max-width: 560px; padding: 16px; margin-top: 40px; box-sizing: border-box; }
#tab-admin .cc-palette { background: #fff; border-radius: 16px; width: 100%; max-width: 560px; padding: 12px; margin-top: 40px; box-sizing: border-box; }
#tab-admin .cc-palette input { width: 100%; min-height: 44px; border: 1px solid #d1d5db; border-radius: 12px; padding: 10px 12px; font-size: 16px; }
#tab-admin .cc-palette-results { margin-top: 8px; }
#tab-admin .cc-palette-group { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #6b7280; padding: 10px 12px 4px; }
#tab-admin .cc-palette-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; text-align: left; padding: 12px; border-radius: 12px; font-size: 14px; min-height: 44px; }
#tab-admin .cc-palette-row:hover { background: #f3f4f6; }
#tab-admin .cc-palette-row.cc-active { background: #eff6ff; }
#tab-admin .cc-palette-hint { color: #6b7280; font-size: 12px; }
#tab-admin .cc-palette-kind { font-size: 11px; color: #6b7280; background: #f3f4f6; border-radius: 999px; padding: 2px 8px; }
#tab-admin .cc-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
#tab-admin .cc-drawer-crumb { color: #6b7280; font-weight: 400; }
#tab-admin .cc-inspector-body { white-space: pre-wrap; word-break: break-word; font-size: 12px; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 12px; padding: 12px; max-height: 60vh; overflow-y: auto; }
#tab-admin button { min-height: 44px; }
#tab-admin input, #tab-admin select { font-size: 16px; }
html.dark body.admin-host #tab-admin .cc-side-heading { color: #94a3b8; }
html.dark body.admin-host #tab-admin .cc-activity-row { background: #fff; color: #111827; }
html.dark body.admin-host #tab-admin .cc-col-labels { color: #94a3b8; }
/* ---- Feed tabs fix (L13): compact todayStrip on short or narrow
   viewports so the Discover/Following tabs and the For You pill clear the
   fixed bottom nav at load. The full strip is 97-113px tall; on a 375x800
   phone it pushed the tabs to y 728-772 and the For You pill to 790-836,
   entirely under the nav (top 730). The compact strip alone (44px) moves
   the pill up 60px, to 730-776 -- still 46px under the nav -- so the same
   media query also tightens the stack above the pill: the 16px gaps between
   the feed's top cards become 6px, the tabs keep a 4px margin, the filter
   row loses its 4px of vertical padding, the pill drops to its 44px
   minimum, and the Moments + composer cards lose 2px of padding top and
   bottom. Nothing is hidden or removed and no order changes: search,
   Moments, composer, strip, tabs, filters and feed stay in the same order,
   just tighter on small screens (the normal mobile density). The strip
   keeps the flame, the streak line and the "Your progress" tap target
   (44px min-height; tap still opens the profile). The Level/XP and
   challenges lines and the progress bar are hidden only while compact --
   that data is one tap away on the profile. The pill padding needs
   !important because the inline <style> in index.html sets
   .feed-tab{padding:12px 18px !important}; without it the override cannot
   win. No layout change at all on tall/wide viewports: the full strip and
   the 16px gaps render there. Known limit: on very short viewports
   (<782px tall, e.g. landscape phones) even the tightened stack leaves the
   pill below the fold; the feed scrolls normally, so the tabs stay
   reachable. --- */
@media (max-width: 640px), (max-height: 858px) {
  #todayStrip.today-strip{padding:8px 12px;min-height:44px;flex-wrap:nowrap;gap:8px}
  #todayStrip .today-strip-main{flex:1 1 auto;min-width:0}
  #todayStrip .today-strip-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #todayStrip .today-strip-line:nth-child(2),
  #todayStrip .today-strip-line:nth-child(3),
  #todayStrip .today-strip-bar{display:none}
  #todayStrip .today-strip-flame{flex:none}
  #todayStrip .today-strip-go{flex:none}
  #view-home.space-y-4 > :not([hidden]) ~ :not([hidden]){margin-top:6px}
  #view-home #feedModeTabs{margin-top:4px;margin-bottom:4px}
  #category-filters{padding-top:0;padding-bottom:0}
  #category-filters .feed-tab{padding-top:8px !important;padding-bottom:8px !important}
  #view-home > div:nth-child(2),
  #view-home > div:nth-child(3){padding-top:12px;padding-bottom:12px}
}
/* --- Desktop: sidebar left, content right, 4-column KPIs, wide drawer.
   This block MUST stay last in the file: same-specificity rules earlier in
   the file (e.g. .cc-drawer max-width 560px) would otherwise win by source
   order over the desktop overrides (found by the render suite: the drawer
   measured 592px instead of 720px). --- */
@media (min-width: 1024px) {
  body.admin-host .cc-layout { display: flex; flex-direction: row; gap: 16px; align-items: flex-start; }
  body.admin-host .cc-sidebar { width: 240px; flex-shrink: 0; position: sticky; top: 76px; margin-top: 0; }
  body.admin-host .cc-main { flex: 1; order: 0; }
  #tab-admin .cc-kpi-grid { grid-template-columns: repeat(4, 1fr); }
  #tab-admin .cc-drawer { max-width: 720px; }
  #tab-admin #ccUserDrawerBody { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  #tab-admin #ccUserDrawerBody > * { margin-top: 0; }
  #tab-admin #ccUserDrawerBody .cc-span-2 { grid-column: 1 / -1; }
}

/* ===== Set 96: seven light themes ===== */
/* Token layer. The light layer in design.css + index.html reads these
   variables (converted by build/convert-light-layer.py). Classic's values
   equal the current hardcoded light values WHERE THEY WERE CORRECT; the
   broken surfaces (AUDIT §1.6 L1–L11) are repaired by the rules below,
   so Classic renders like the FIXED light theme — the live card's target
   look — not like Fortune's broken screenshots. The default block (no
   data-light-theme attribute) is Classic, so old boots and old stored
   values still render correctly. The dark/main theme is untouched — no
   token block exists for it. */
/* --- Classic (free) — the current light theme, preserved exactly. --- */
html[data-theme="light"]{
  --lt-bg:#F2F5F3; --lt-surface:#FFFFFF; --lt-surface-2:#F9FAFB;
  --lt-text:#111827; --lt-text-2:#374151; --lt-muted:#5F6B76;
  --lt-border:#D6E4DC; --lt-accent:#047857; --lt-accent-strong:#065F46;
  --lt-accent-soft:#ECFDF5; --lt-accent-text:#047857; --lt-brand:#003A34;
  --lt-gold:#C9A06B; --lt-danger:#B91C1C; --lt-danger-soft:#FEF2F2;
  --lt-warn:#92400E; --lt-warn-soft:#FEF3C7;
  --lt-shadow:0 4px 20px rgba(6,95,70,0.08);
}
/* --- Sand (free) — warm paper. --- */
html[data-theme="light"][data-light-theme="sand"]{
  --lt-bg:#F7F3EC; --lt-surface:#FFFDF8; --lt-surface-2:#F3EDE2;
  --lt-text:#1C1917; --lt-text-2:#44403C; --lt-muted:#6B645C;
  --lt-border:#E7E0D4; --lt-accent:#B45309; --lt-accent-strong:#92400E;
  --lt-accent-soft:#FEF3C7; --lt-accent-text:#B45309; --lt-brand:#292524;
  --lt-gold:#A16207; --lt-danger:#B91C1C; --lt-danger-soft:#FEF2F2;
  --lt-warn:#92400E; --lt-warn-soft:#FEF3C7;
  --lt-shadow:0 4px 20px rgba(146,64,14,0.10);
}
/* --- Ocean (premium) — cool coastal. --- */
html[data-theme="light"][data-light-theme="ocean"]{
  --lt-bg:#EDF5F8; --lt-surface:#FFFFFF; --lt-surface-2:#F4F9FB;
  --lt-text:#0F2A3D; --lt-text-2:#33505F; --lt-muted:#4A6B7E;
  --lt-border:#CFE3EA; --lt-accent:#0E7C86; --lt-accent-strong:#0B5E66;
  --lt-accent-soft:#E0F2F5; --lt-accent-text:#0E7C86; --lt-brand:#0B2536;
  --lt-gold:#C9A06B; --lt-danger:#B91C1C; --lt-danger-soft:#FEF2F2;
  --lt-warn:#92400E; --lt-warn-soft:#FEF3C7;
  --lt-shadow:0 4px 20px rgba(14,124,134,0.10);
}
/* --- Violet (premium) — soft lilac. --- */
html[data-theme="light"][data-light-theme="violet"]{
  --lt-bg:#F5F3FA; --lt-surface:#FFFFFF; --lt-surface-2:#FAF9FD;
  --lt-text:#2A2140; --lt-text-2:#463D63; --lt-muted:#6E6590;
  --lt-border:#DED8EE; --lt-accent:#6D28D9; --lt-accent-strong:#5B21B6;
  --lt-accent-soft:#EDE9FE; --lt-accent-text:#6D28D9; --lt-brand:#1E1533;
  --lt-gold:#C9A06B; --lt-danger:#B91C1C; --lt-danger-soft:#FEF2F2;
  --lt-warn:#92400E; --lt-warn-soft:#FEF3C7;
  --lt-shadow:0 4px 20px rgba(109,40,217,0.10);
}
/* --- Rose (premium) — soft blush. --- */
html[data-theme="light"][data-light-theme="rose"]{
  --lt-bg:#FDF2F4; --lt-surface:#FFFFFF; --lt-surface-2:#FEF8F9;
  --lt-text:#2D1B1E; --lt-text-2:#4A2E33; --lt-muted:#7A5A61;
  --lt-border:#F0D6DB; --lt-accent:#BE185D; --lt-accent-strong:#9D174D;
  --lt-accent-soft:#FCE7F3; --lt-accent-text:#BE185D; --lt-brand:#2B1016;
  --lt-gold:#C9A06B; --lt-danger:#B91C1C; --lt-danger-soft:#FEF2F2;
  --lt-warn:#92400E; --lt-warn-soft:#FEF3C7;
  --lt-shadow:0 4px 20px rgba(190,24,93,0.08);
}
/* --- Forest (premium) — deep green light. --- */
html[data-theme="light"][data-light-theme="forest"]{
  --lt-bg:#EDF7F0; --lt-surface:#FFFFFF; --lt-surface-2:#F4FAF6;
  --lt-text:#10201A; --lt-text-2:#234434; --lt-muted:#4C6B5B;
  --lt-border:#C8E0D0; --lt-accent:#127A4D; --lt-accent-strong:#0B5C39;
  --lt-accent-soft:#D1FAE5; --lt-accent-text:#127A4D; --lt-brand:#0A2018;
  --lt-gold:#C9A06B; --lt-danger:#B91C1C; --lt-danger-soft:#FEF2F2;
  --lt-warn:#92400E; --lt-warn-soft:#FEF3C7;
  --lt-shadow:0 4px 20px rgba(18,122,77,0.10);
}
/* --- Indigo (premium) — cool slate-indigo. --- */
html[data-theme="light"][data-light-theme="indigo"]{
  --lt-bg:#EEF2F7; --lt-surface:#FFFFFF; --lt-surface-2:#F5F7FB;
  --lt-text:#141B2E; --lt-text-2:#2E3A52; --lt-muted:#5A6B87;
  --lt-border:#D3DCE8; --lt-accent:#4F46E5; --lt-accent-strong:#4338CA;
  --lt-accent-soft:#E0E7FF; --lt-accent-text:#4F46E5; --lt-brand:#111A2E;
  --lt-gold:#C9A06B; --lt-danger:#B91C1C; --lt-danger-soft:#FEF2F2;
  --lt-warn:#92400E; --lt-warn-soft:#FEF3C7;
  --lt-shadow:0 4px 20px rgba(79,70,229,0.10);
}
/* --- Light layer: every themed surface reads the tokens. --- */
html[data-theme="light"] body{ background-color:var(--lt-bg); color:var(--lt-text); }
html[data-theme="light"] .bg-white{ background-color:var(--lt-surface); }
/* --- Light-theme repair (Fortune's 10 screenshots, 13:31 WAT — AUDIT
   §1.6). Pass 0 of the conversion: these rules fix the broken light theme
   BEFORE the seven themes are built on it. Every rule reads the tokens,
   so all seven themes inherit the repair. --- */
/* L1 — feed / jobs / network cards: the ID rule at design.css:1534
   (1,1,0) beats the plain .glass-card light rule (0,2,1). Win it back. */
html[data-theme="light"] #feed-container .glass-card,
html[data-theme="light"] #view-jobs .glass-card,
html[data-theme="light"] #view-network .glass-card{ background:var(--lt-surface); border-color:var(--lt-border); }
/* L2 — forest utilities never had light rules. Every used variant flips.
   (Hover variants — hover:bg-forest-* — are covered by the conversion
   script's class census, not here.) */
html[data-theme="light"] .bg-forest-850,
html[data-theme="light"] .bg-forest-850\/90,
html[data-theme="light"] .bg-forest-850\/95{ background-color:var(--lt-surface); }
html[data-theme="light"] .bg-forest-800,
html[data-theme="light"] .bg-forest-800\/60,
html[data-theme="light"] .bg-forest-800\/95{ background-color:var(--lt-surface-2); }
html[data-theme="light"] .bg-forest-900{ background-color:var(--lt-surface); }
html[data-theme="light"] .bg-forest-950,
html[data-theme="light"] .bg-forest-950\/90{ background-color:var(--lt-surface-2); }
html[data-theme="light"] .border-forest-700,
html[data-theme="light"] .border-forest-700\/60,
html[data-theme="light"] .border-forest-700\/70,
html[data-theme="light"] .border-forest-700\/80,
html[data-theme="light"] .border-forest-700\/85,
html[data-theme="light"] .border-forest-700\/90{ border-color:var(--lt-border); }
html[data-theme="light"] .border-forest-600{ border-color:var(--lt-border); }
html[data-theme="light"] .text-forest-950{ color:var(--lt-text); }
/* Toast exception: #toast stays dark in light mode by design (documented
   exception). Its inner .bg-forest-800/95 pill must NOT flip light. */
html[data-theme="light"] #toast .bg-forest-800\/95{ background-color:rgba(15,39,31,0.95); }
/* L3 — bottom nav: the .nav-pill transparent rule (0,2,1) beats the plain
   light nav rule (0,1,2). Re-paint the bar opaque in light. */
html[data-theme="light"] nav.app-nav.nav-pill{ background:var(--lt-surface); border-top:1px solid var(--lt-border); backdrop-filter:blur(16px); }
/* L4 — wordmark: design.css:4076 forces .app-header .text-white white in
   light mode (0,3,1). The conversion script DELETES that rule; this rule
   (0,3,3) is the belt-and-braces fallback if it survives. The only
   .text-white in the header is the wordmark (verified by markup read). */
html[data-theme="light"] header.app-header span.text-white{ color:var(--lt-text); -webkit-text-fill-color:var(--lt-text); }
/* L5 — the missing /40 emerald variant. The conversion script adds light
   rules for every bg-* and border-* variant actually used (variant census,
   fails the build on a miss); this is the known gap. */
html[data-theme="light"] .bg-emerald-950\/40{ background-color:var(--lt-accent-soft); }
/* L6 — messages drawer: panel + button flip with L2; the title/name
   already flip via .text-white once the panel is light. No extra rule —
   the census checks the drawer as a whole. */
/* L7 — menu app tiles (logo chips keep brand colours via inline style). */
html[data-theme="light"] .fva-app-card{ background:var(--lt-surface); border-color:var(--lt-border); color:var(--lt-text); }
html[data-theme="light"] .fva-app-name{ color:var(--lt-text); }
html[data-theme="light"] .fva-app-desc{ color:var(--lt-muted); }
/* L8 — switch-account pill. */
html[data-theme="light"] .menu-switch-btn{ background:var(--lt-accent-soft); border-color:var(--lt-border); color:var(--lt-accent-strong); }
/* L9 — chat action links. */
html[data-theme="light"] .chat-action-btn{ color:var(--lt-accent-strong); }
html[data-theme="light"] .chat-action-btn:hover{ background:var(--lt-accent-soft); }
/* L10 — chat reply-quote bubble. */
html[data-theme="light"] .chat-quote{ background:var(--lt-surface-2); color:var(--lt-text); border-left-color:var(--lt-accent); }
/* L11 — post action row: the pale-mint pill rule at design.css:3258 is
   beaten by the later 3483 rule (same specificity, near-transparent dark
   wash rgba(7,26,18,0.06)), so the buttons read as plain dark text with
   no visible pill. Restore the pill in light themes; 3483's sizing
   (44px min-height, radius, padding) is untouched. Verified by the
   census: 3258 does NOT hold on the base (3483 wins by order). */
html[data-theme="light"] .post-action-row button,
html[data-theme="light"] .comment-actions button{ background:var(--lt-accent-soft); border-color:var(--lt-border); color:var(--lt-accent); }
/* L12 — green bar above the first chat message: unresolved until the
   census identifies it with elementFromPoint. If it is an empty
   .chat-bubble-mine, the fix is to not render empty message rows. */
/* L13 — fixed by L3 (opaque bar) + feed bottom-padding check in the census. */
/* --- Census gaps (variant census, build/convert-light-layer.py): every
   used bg-/border-/text- utility variant must have a light rule. These
   are the variants the base light layer missed; each was verified
   against its usage site before being mapped. --- */
/* Dark amber / red chips flip WITH their text (both change together). */
html[data-theme="light"] .bg-amber-950\/30,
html[data-theme="light"] .bg-amber-950\/40{ background-color:var(--lt-warn-soft); }
html[data-theme="light"] .text-amber-200,
html[data-theme="light"] .text-amber-300,
html[data-theme="light"] .text-amber-300\/70{ color:var(--lt-warn); }
html[data-theme="light"] .bg-red-900\/60{ background-color:var(--lt-danger-soft); }
html[data-theme="light"] .text-red-100{ color:var(--lt-danger); }
/* Grey / slate text that had no light rule (typed search text was
   invisible: text-slate-100 on the white light input). */
html[data-theme="light"] .text-slate-100{ color:var(--lt-text); }
html[data-theme="light"] .text-slate-500{ color:var(--lt-muted); }
html[data-theme="light"] .text-gray-600{ color:var(--lt-muted); }
html[data-theme="light"] .text-gray-700{ color:var(--lt-text-2); }
html[data-theme="light"] .text-emerald-300\/80{ color:var(--lt-accent); }
/* Dark surfaces / fills. */
html[data-theme="light"] .bg-forest-600{ background-color:var(--lt-accent); }
html[data-theme="light"] .bg-gray-100{ background-color:var(--lt-surface-2); }
/* Rebase (queue turn, live a5289637): utilities used only in live.
   bg-emerald-100 is the avatar-fallback circle (app.js, 1 use);
   bg-gray-200 is the gift-goal progress track (app.js, 1 use). */
html[data-theme="light"] .bg-emerald-100{ background-color:var(--lt-accent-soft); }
html[data-theme="light"] .bg-gray-200{ background-color:var(--lt-border); }
/* White hairline borders vanish on light surfaces; restore the theme border. */
html[data-theme="light"] .border-white\/10{ border-color:var(--lt-border); }
/* Pending job-application status pill (renderJobApplication, app.js):
   bg-gray-800 + text-gray-300 + border-gray-700/40. The bg and text
   already flip via the base light layer / inline style; the /40 border
   had no light rule, so it stayed dark grey on a light pill. */
html[data-theme="light"] .border-gray-700\/40{ border-color:var(--lt-border); }
/* Hover variants of the dark tints (base states already flip light). */
html[data-theme="light"] .hover\:bg-emerald-950\/30:hover,
html[data-theme="light"] .hover\:bg-emerald-950\/40:hover,
html[data-theme="light"] .hover\:bg-emerald-950\/60:hover,
html[data-theme="light"] .hover\:bg-emerald-900\/30:hover{ background-color:var(--lt-accent-soft); }
html[data-theme="light"] .hover\:bg-forest-800:hover,
html[data-theme="light"] .hover\:bg-forest-800\/60:hover,
html[data-theme="light"] .hover\:bg-forest-900:hover,
html[data-theme="light"] .hover\:bg-forest-700\/60:hover{ background-color:var(--lt-surface-2); }
html[data-theme="light"] .hover\:text-amber-400:hover{ color:var(--lt-warn); }
html[data-theme="light"] .hover\:text-emerald-300:hover{ color:var(--lt-accent); }
html[data-theme="light"] .hover\:text-slate-200:hover{ color:var(--lt-text-2); }
/* --- Theme-ink classes for the app.js inline colours (converted by the
   script). Brand ink, gold premium text, danger text. --- */
html[data-theme="light"] .theme96-ink{ color:var(--lt-brand); }
html[data-theme="light"] .theme96-gold{ color:var(--lt-gold); }
html[data-theme="light"] .theme96-danger{ color:var(--lt-danger); }
/* --- Video surfaces stay black in every theme; the TEXT on them keeps
   light-on-dark colours. Fixes the current light bug where the global
   .text-emerald-300 → #047857 rule turns the call timer and the live timer
   dark-green-on-black (~2.5:1). Mint #6EE7B7 on black reads 12.6:1. --- */
html[data-theme="light"] #callScreen .text-emerald-300,
html[data-theme="light"] .live-view .text-emerald-300,
html[data-theme="light"] .live88-timer,
html[data-theme="light"] .live-onair .live-note{ color:#6EE7B7; }
/* --- Theme picker gallery (Settings → Display). Cards work in dark AND
   light: the swatch preview uses the theme's own colours (inline style from
   the LIGHT_THEMES constant), the card chrome follows the current theme. --- */
.theme96-grid{ display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:8px; }
@media (min-width:640px){ .theme96-grid{ grid-template-columns:repeat(3,1fr); } }
@media (min-width:1024px){ .theme96-grid{ grid-template-columns:repeat(4,1fr); } }
.theme96-card{ display:block; width:100%; min-height:44px; text-align:left; padding:10px; border-radius:16px; border:1px solid rgba(255,255,255,.2); background:transparent; cursor:pointer; }
.theme96-card.is-active{ border:2px solid #047857; }
.theme96-swatch{ display:block; height:64px; border-radius:12px; border:1px solid rgba(0,0,0,.08); position:relative; overflow:hidden; }
.theme96-swatch-card{ display:block; position:absolute; left:8px; right:8px; top:8px; height:40px; border-radius:8px; border:1px solid; padding:6px 8px; }
.theme96-swatch-line{ display:block; height:6px; border-radius:3px; margin-bottom:5px; }
.theme96-swatch-line-short{ width:60%; }
.theme96-swatch-btn{ display:block; width:24px; height:10px; border-radius:5px; }
.theme96-name{ display:block; font-size:13px; font-weight:700; margin-top:8px; color:#e5e7eb; }
.theme96-lock{ font-size:12px; font-weight:700; color:#C9A06B; }
html[data-theme="light"] .theme96-card{ border-color:var(--lt-border); background:var(--lt-surface); }
html[data-theme="light"] .theme96-card.is-active{ border:2px solid var(--lt-accent); }
html[data-theme="light"] .theme96-name{ color:var(--lt-text); }
html[data-theme="light"] .theme96-lock{ color:var(--lt-gold); }
/* --- Premium theme upsell sheet. --- */
#premiumThemeSheet .theme96-upsell-card{ background:#FFFFFF; color:#111827; }
html[data-theme="dark"] #premiumThemeSheet .theme96-upsell-card{ background:#102824; color:#f4f7f6; }
/* --- Admin shell in light themes (Set 95 classes, verified 13:28 WAT).
   Dark admin is untouched — every rule below is scoped to
   html[data-theme="light"] #tab-admin. --- */
html[data-theme="light"] #tab-admin .cc-hostbar{ background:var(--lt-surface); color:var(--lt-text); border-color:var(--lt-border); }
html[data-theme="light"] #tab-admin .cc-host-pill{ background:var(--lt-accent-soft); color:var(--lt-accent-strong); }
html[data-theme="light"] #tab-admin .cc-host-note{ color:var(--lt-muted); }
html[data-theme="light"] #tab-admin .cc-top-identity{ color:var(--lt-text-2); }
html[data-theme="light"] #tab-admin .cc-search-trigger{ background:var(--lt-surface-2); color:var(--lt-text-2); border-color:var(--lt-border); }
html[data-theme="light"] #tab-admin kbd.cc-kbd{ background:var(--lt-surface-2); border-color:var(--lt-border); color:var(--lt-text-2); }
html[data-theme="light"] #tab-admin .cc-side-heading{ color:var(--lt-muted); }
html[data-theme="light"] #tab-admin .cc-system-row{ background:var(--lt-surface); border-color:var(--lt-border); color:var(--lt-text); }
html[data-theme="light"] #tab-admin .cc-spark-bar{ background:var(--lt-accent); }
html[data-theme="light"] #tab-admin .cc-num{ color:var(--lt-text); }
html[data-theme="light"] #tab-admin .cc-mono{ color:var(--lt-muted); }
html[data-theme="light"] #tab-admin .cc-drawer{ background:var(--lt-surface-2); }
html[data-theme="light"] #tab-admin .cc-drawer-crumb{ color:var(--lt-muted); }
html[data-theme="light"] #tab-admin .cc-pill{ background:var(--lt-surface-2); color:var(--lt-text-2); }
html[data-theme="light"] #tab-admin .cc-pill-ok{ background:var(--lt-accent-soft); color:var(--lt-accent-strong); }
html[data-theme="light"] #tab-admin .cc-pill-bad,
html[data-theme="light"] #tab-admin .cc-pill-live{ background:var(--lt-danger-soft); color:var(--lt-danger); }
html[data-theme="light"] #tab-admin .cc-empty{ color:var(--lt-muted); }
html[data-theme="light"] #tab-admin .cc-input{ background:var(--lt-surface); border-color:var(--lt-border); color:var(--lt-text); }
/* Set 99 (2026-11-16): notification sounds picker rows in the settings
   sheet. Same dark sheet treatment as the rows around them; 44px targets. */
.notif-tone-row{ display:flex; align-items:center; gap:8px; }
.notif-tone-label{ flex:1 1 auto; min-width:0; font-size:13px; color:#d1d5db; }
.notif-tone-select{ min-height:44px; border-radius:12px; border:1px solid rgba(16,185,129,.4); background:#040d0c; color:#e5e7eb; font-size:13px; padding:6px 8px; max-width:150px; }
.notif-tone-preview{ min-height:44px; min-width:44px; padding:10px 14px; border-radius:999px; border:1px solid rgba(16,185,129,.5); color:#6ee7b7; font-size:12px; font-weight:700; background:transparent; }
#notifSoundVolume{ accent-color:#059669; }
/* ---- Set 100 live soundtracks + live audio ---- */
.live100-studio{margin-top:12px;border-top:1px solid rgba(128,128,128,.35);padding-top:10px}
.live100-queue-row{display:flex;align-items:center;gap:8px;width:100%;text-align:left;background:transparent;border:1px solid rgba(128,128,128,.35);border-radius:10px;padding:8px 10px;font-size:12px;margin:4px 0;min-height:44px}
.live100-queue-row span:first-child{flex:1;min-width:0}
.live100-src{font-size:11px;opacity:.7;flex-shrink:0}
.live100-row-wrap{display:flex;gap:8px;align-items:stretch;margin:4px 0}
.live100-row-wrap .live91-music-row{flex:1;min-width:0;margin:0}
.live100-row-wrap .live-secondary-btn{flex-shrink:0;align-self:center}
.live100-sfx-row{display:flex;flex-wrap:wrap;gap:8px}
.live100-sfx-row .live-secondary-btn{min-height:44px}
.live100-toggle{display:flex;align-items:center;gap:8px;font-size:13px;margin:8px 0;min-height:44px;cursor:pointer}
.live100-toggle input{width:18px;height:18px;flex-shrink:0}
.live100-upload-btn{cursor:pointer}
.live100-upload-btn input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}
.live100-nowplaying{display:flex;align-items:center;gap:6px;background:rgba(255,255,255,.12);color:#fff;border-radius:999px;padding:6px 12px;font-size:12px;margin:8px 0;max-width:100%}
/* ==========================================================================
   Connect Set 101 — full UI/UX upgrade (2026-11-16)
   Appended to public/design.css (after every existing rule, so these win on
   equal specificity). Tokens + voice player + empty states + pull-to-refresh
   + back-to-top + sticky header + view transitions + post-card realism.
   Light overrides use the established light greys; Set 96 tokenises them.
   ========================================================================== */

/* ---- V3: design-system tokens ---- */
:root{
  --fva-space-xs:4px; --fva-space-sm:8px; --fva-space-md:12px;
  --fva-space-lg:24px; --fva-space-xl:32px;
  --fva-radius-xs:8px; --fva-radius-lg:20px;
  --fva-shadow-sm:0 2px 12px rgba(0,0,0,.28);
  --fva-shadow-lg:0 16px 40px rgba(0,0,0,.45);
  --fva-motion-fast:150ms; --fva-motion-med:250ms; --fva-motion-ease:ease-out;
  --fva-text-meta:0.6875rem; --fva-text-helper:0.75rem;
}
/* Type-scale rule (Set 101): never below 11px; 11px is metadata only;
   helper/empty/sheet/composer text is 12px minimum. */
.text-\[12px\]{font-size:12px}

/* ---- F3: smooth scrolling (reduced-motion guard at ~line 600 forces auto) ---- */
html{scroll-behavior:smooth}
/* ---- F4: contain overscroll so the browser's native reload pull-to-refresh
   cannot double-fire with the custom feed pull-to-refresh ---- */
body{overscroll-behavior-y:none}

/* ---- F1: sticky app header — search + messages stay one tap away ---- */
.app-header{position:sticky;top:0;z-index:30}

/* ---- T2 + T4: post cards — off-screen skip + subtle lift ---- */
.post-card{content-visibility:auto;contain-intrinsic-size:auto 600px;box-shadow:var(--fva-shadow-sm)}

/* ---- V9: suggest note is helper text, 12px ---- */
.suggest-note{font-size:12px}

/* ---- F8: view transition on tab switch (added to #mainContent by JS) ---- */
.fva-view-in{animation:fva101ViewIn var(--fva-motion-med) var(--fva-motion-ease)}
@keyframes fva101ViewIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

/* ---- V5: empty states (.fva101-empty) ---- */
.fva101-empty{text-align:center;padding:var(--fva-space-lg) var(--fva-space)}
.fva101-empty-title{font-size:var(--fva-text-sm);font-weight:700;color:var(--fva-text)}
.fva101-empty-sub{font-size:var(--fva-text-xs);color:var(--fva-text-muted);margin-top:4px}
.fva101-empty-action{margin-top:12px}
html[data-theme="light"] .fva101-empty-sub{color:#4B5563}

/* ---- V1: real waveform voice player ----
   Bars use currentColor so the player reads on dark cards, dark chat
   bubbles, and the emerald mine bubble. Light feed cards override below. */
.fva101-voice{display:flex;align-items:center;gap:10px;min-width:0;margin-top:6px;color:#6ee7b7}
.chat-bubble-mine .fva101-voice{color:#d1fae5}
.fva101-voice-play{flex:0 0 auto;width:44px;height:44px;border-radius:999px;border:1px solid currentColor;background:transparent;color:inherit;font-size:15px;display:flex;align-items:center;justify-content:center;cursor:pointer}
.fva101-voice-wave{flex:1 1 auto;min-width:0;height:44px;display:flex;align-items:center;gap:2px;cursor:pointer}
.fva101-voice-wave i{flex:1 1 0;min-width:2px;height:30%;background:currentColor;opacity:.4;border-radius:2px}
.fva101-voice-wave i.is-played{opacity:1}
.fva101-voice-wave.is-loading i{animation:fva101WavePulse 1.2s ease-in-out infinite}
@keyframes fva101WavePulse{0%,100%{opacity:.25}50%{opacity:.6}}
.fva101-voice-time{flex:0 0 auto;font-size:11px;color:inherit;opacity:.85;white-space:nowrap;font-variant-numeric:tabular-nums}
.fva101-voice-speed{flex:0 0 auto;min-width:44px;min-height:44px;border-radius:12px;border:1px solid currentColor;background:transparent;color:inherit;font-size:12px;font-weight:700;cursor:pointer}
.fva101-voice-note{font-size:11px;opacity:.7}
html[data-theme="light"] .post-card .fva101-voice{color:#047857}
html[data-theme="light"] .fva101-voice-play,html[data-theme="light"] .fva101-voice-speed{color:#047857}
/* Chat bubbles in Light keep the dark values above; Set 96 owns Light chat
   bubble colours and verifies the player there at its rebase. */

/* ---- F4: pull-to-refresh indicator (feed) ---- */
#fva101Ptr{position:fixed;top:0;left:50%;transform:translate(-50%,-100%);z-index:60;display:flex;align-items:center;gap:8px;background:#0b201d;border:1px solid rgba(167,243,208,.25);border-radius:999px;padding:8px 14px;font-size:13px;color:#d1fae5;transition:transform var(--fva-motion-med) var(--fva-motion-ease);pointer-events:none}
#fva101Ptr .fva101-ptr-ring{width:16px;height:16px;border-radius:50%;border:2px solid rgba(110,231,183,.3);border-top-color:#6ee7b7}
#fva101Ptr.is-loading .fva101-ptr-ring{animation:fva101Spin .8s linear infinite}
@keyframes fva101Spin{to{transform:rotate(360deg)}}

/* ---- F5: back-to-top (feed) ---- */
#fva101TopBtn{position:fixed;right:16px;bottom:calc(172px + env(safe-area-inset-bottom,0px));z-index:25;width:44px;height:44px;border-radius:999px;border:1px solid rgba(167,243,208,.3);background:rgba(11,32,29,.92);color:#6ee7b7;font-size:18px;display:none;align-items:center;justify-content:center;cursor:pointer}
#fva101TopBtn.is-visible{display:flex}

/* ---- V11: message action row (Addition 3, §12) ---- */
/* Size + targets only. Label colour stays Set 96 L9's — not touched here. */
.chat-action-btn{min-height:44px;font-size:12px;padding:6px 10px}
.fva101-chat-actions{border-top:1px solid rgba(255,255,255,.16);padding-top:6px;margin-top:8px}
html[data-theme="light"] .fva101-chat-actions,html.light .fva101-chat-actions{border-top-color:rgba(0,0,0,.12)}

/* ---- V12: button chrome (Addition 3, §12) ---- */
/* These three rules declare no border in base, so the browser-default
   outset border renders (square outline on back, white outline on •••/mic).
   1px transparent kills the UA chrome without changing colour/background. */
.chat-room-menu-btn,.chat-voice-btn,.chat-voice-cancel{border:1px solid transparent}
.fva101-icon-btn{border:1px solid transparent;background:transparent;border-radius:12px}

/* ---- Addition 4: chat composer fit at 375px (live defect, Set 56 W15).
   The composer row held 7 fixed buttons + an input in a ~315px row, so the
   send button sat 25px past the viewport and taps hit nothing. The row now
   holds 5 fixed 44px buttons (emoji, photo, video, file, voice-or-send)
   + a flex-1 input: the silent toggle moved to the ••• menu, and the voice
   and send buttons share one slot (fva101SyncComposerSend: send shows when
   there is text, voice shows when the input is empty — sendMsg is a no-op
   on empty text, so nothing is lost). While recording, the media buttons
   hide (recording mode) so the timer + cancel fit. These rules are
   ID-scoped and self-contained: they do not rely on Tailwind utilities
   (min-w-[44px], p-1.5, p-2.5 and gap-2 have no rule in the shipped CSS,
   which is part of why the row overflowed). */
#chatComposer{display:flex;align-items:center;gap:4px;padding:6px 8px}
#chatComposer>button,#chatComposer>label{flex:0 0 44px;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;display:flex;align-items:center;justify-content:center}
#chatComposer #chatInput{flex:1 1 0%;min-width:0;width:auto!important}
#chatComposer #chatVoiceTimer{flex:0 0 auto;white-space:nowrap}
#chatComposer #chatRetryChip{flex:1 1 auto;min-width:0;overflow:hidden}
#chatComposer #chatRetryChip button{flex-shrink:0}
#chatComposer.fva101-composer-recording>label,#chatComposer.fva101-composer-recording .fva101-icon-btn{display:none}

/* ---- Set 103: live deep-check ---- */
#goLiveModal{padding-top:calc(16px + env(safe-area-inset-top,0px));}
.live-view-top{padding-top:calc(12px + env(safe-area-inset-top,0px));}
.live-preview-box{aspect-ratio:16/9;}
.live-obs-box .live-copy-btn{background:#047857;color:#fff;border-color:#047857;}
.live103-dash{display:block;font-size:12px;color:#6b7280;margin-top:4px;}
.live103-cam-slate{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#111827;color:#fff;font-size:14px;}
.live103-slider{display:flex;align-items:center;gap:8px;font-size:12px;flex:1;min-width:0;}
.live103-slider input{flex:1;min-width:0;min-height:44px;}
.live103-edit{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px;}
.live103-edit .live-input{flex:1;min-width:140px;}
.live103-pinned{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);border-radius:10px;padding:8px 10px;font-size:12px;color:#fff;margin-bottom:8px;}
.live103-volume{display:flex;align-items:center;gap:8px;margin:8px 0;font-size:12px;color:#fff;}
.live103-volume input{flex:1;min-width:0;min-height:44px;}
.live103-setup-row{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0;}
.live103-setup-row .live-input{flex:1;min-width:140px;}
.live103-meter{flex:1;height:8px;border-radius:999px;background:#e5e7eb;overflow:hidden;min-height:8px;}
.live103-meter-fill{display:block;height:100%;width:0%;background:#059669;}
#liveViewerElapsed{font-variant-numeric:tabular-nums;}

/* ---- Set 104 (Workstream A): TikTok LIVE-inspired live upgrade ---- */
/* Plain CSS, no Tailwind. Light-first with dark overrides to match the
   existing live-* styles (html[data-theme="dark"]). */
.live104-sec{margin-top:14px;padding-top:12px;border-top:1px solid rgba(0,0,0,.08);}
html[data-theme="dark"] .live104-sec{border-top-color:rgba(255,255,255,.12);}
.live104-sec-title{font-size:14px;font-weight:700;margin:0 0 6px;color:#003A34;}
html[data-theme="dark"] .live104-sec-title{color:#fff;}
.live104-effects{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0;}
.live104-effect{min-height:44px;padding:8px 14px;border-radius:999px;border:1px solid rgba(0,0,0,.15);background:#fff;color:#111827;font-size:13px;font-weight:600;cursor:pointer;}
html[data-theme="dark"] .live104-effect{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.2);color:#fff;}
.live104-effect-on{background:#003A34!important;color:#fff!important;border-color:#003A34!important;}
.live104-tab-on{background:#003A34!important;color:#fff!important;border-color:#003A34!important;}
.live104-check{display:flex;gap:8px;align-items:flex-start;margin:8px 0;font-size:13px;color:#111827;cursor:pointer;}
html[data-theme="dark"] .live104-check{color:#e5e7eb;}
.live104-check input{width:20px;height:20px;margin-top:2px;flex-shrink:0;accent-color:#003A34;}
.live104-pip-wrap{position:relative;}
.live104-pip{width:140px;aspect-ratio:9/16;object-fit:cover;border-radius:12px;border:2px solid #fff;background:#000;box-shadow:0 4px 16px rgba(0,0,0,.35);}
.live104-pip-circle{border-radius:999px;aspect-ratio:1/1;width:120px;}
.live104-pip-rect{border-radius:12px;}
.live-preview-box.live104-vignette::after{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at center,transparent 55%,rgba(0,0,0,.45) 100%);}
.live104-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 0;border-bottom:1px solid rgba(0,0,0,.06);font-size:13px;color:#111827;}
html[data-theme="dark"] .live104-row{border-bottom-color:rgba(255,255,255,.1);color:#e5e7eb;}
.live104-fanclub{margin-top:10px;background:rgba(0,0,0,.04);border:1px solid rgba(0,0,0,.08);border-radius:12px;padding:12px;}
html[data-theme="dark"] .live104-fanclub{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.12);}
.live104-practice{margin-bottom:8px;}
/* ---- Set 104B: Spotify short music + discovery hub ---- */
.mus104-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0 6px}
.mus104-tab{flex:1;min-width:0;min-height:40px;padding:8px 10px;border-radius:999px;border:1px solid #065f46;background:#022c22;color:#a7f3d0;font-size:12px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html[data-theme="dark"] .mus104-tab{background:#022c22;color:#a7f3d0}
.mus104-tab-active{background:#047857!important;color:#fff!important;border-color:#047857!important}
html[data-theme="light"] .mus104-tab{background:#ecfdf5;color:#065f46;border-color:#a7f3d0}
html[data-theme="light"] .mus104-tab-active{background:#047857!important;color:#fff!important;border-color:#047857!important}
.mus104-genres{display:flex;flex-wrap:wrap;gap:8px}
.mus104-genre-chip{min-height:40px;padding:8px 14px;border-radius:999px;border:1px solid #065f46;background:#022c22;color:#a7f3d0;font-size:12px;font-weight:700}
html[data-theme="dark"] .mus104-genre-chip{background:#022c22;color:#a7f3d0}
html[data-theme="light"] .mus104-genre-chip{background:#ecfdf5;color:#065f46;border-color:#a7f3d0}
.mus104-live-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0}
.mus104-live-tab{flex:1;min-width:0;min-height:40px;padding:8px 10px;border-radius:999px;border:1px solid #065f46;background:#022c22;color:#a7f3d0;font-size:12px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html[data-theme="dark"] .mus104-live-tab{background:#022c22;color:#a7f3d0}
html[data-theme="light"] .mus104-live-tab{background:#ecfdf5;color:#065f46;border-color:#a7f3d0}
html[data-theme="light"] .mus104-live-tab.mus104-tab-active{background:#047857!important;color:#fff!important;border-color:#047857!important}
/* ---- Set 104 (Workstream C): tactile post actions ---- */
/* Every post action button gets an immediate press reaction (scale +
   opacity) on pointer down, a 44px minimum target, and a heart burst on
   like. Haptics ride on navigator.vibrate, which exists on Android
   Chrome and does not exist on iOS Safari: iOS gets the visual reaction
   only, and nothing here claims vibration on iOS. */
.tac104-action{position:relative;min-width:44px;min-height:44px;touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:transform 120ms ease,opacity 120ms ease,background-color 120ms ease;}
.tac104-action:active,.tac104-action.tac104-pressed{transform:scale(.93);opacity:.72;}
.tac104-action.tac104-liked{color:#fb7185;}
.tac104-action.tac104-liked .fva-count-badge{color:#fff;}
/* The heart burst: one heart that pops out of the like button and fades.
   It is a plain span, appended by tac104Burst and removed after the
   animation, so it never survives a re-render of the button label. */
.tac104-burst{position:absolute;left:50%;top:50%;width:44px;height:44px;margin:-22px 0 0 -22px;pointer-events:none;font-size:28px;line-height:44px;text-align:center;z-index:5;animation:tac104-burst-pop 700ms ease-out forwards;}
@keyframes tac104-burst-pop{0%{transform:scale(.4);opacity:0;}25%{transform:scale(1.5);opacity:1;}60%{transform:scale(1.1);opacity:1;}100%{transform:scale(1.6) translateY(-14px);opacity:0;}}
/* Reels rail + more menu + comment bar: same press feel. The rail
   buttons already meet 44px; the rule below only adds the press motion. */
.reel-rail-btn{transition:transform 120ms ease,opacity 120ms ease;}
.reel-rail-btn:active,.reel-rail-btn.tac104-pressed{transform:scale(.9);opacity:.8;}
#reelLikeBtn{position:relative;}
.reel-more-row{transition:transform 120ms ease,background-color 120ms ease;}
.reel-more-row:active,.reel-more-row.tac104-pressed{transform:scale(.97);}
.reel-emoji-btn,.reel-send-btn{transition:transform 120ms ease,opacity 120ms ease;}
.reel-emoji-btn:active,.reel-send-btn:active,.reel-emoji-btn.tac104-pressed,.reel-send-btn.tac104-pressed{transform:scale(.9);opacity:.75;}
/* Moments viewer: quick replies, action buttons, reply send, viewer
   controls. The quick-reply buttons already meet 44px; this only adds
   the press motion. */
.story-viewer-quick button,.story-viewer-action-btn,.story-viewer-reply-send,.story-viewer-btn{transition:transform 120ms ease,opacity 120ms ease;}
.story-viewer-quick button:active,.story-viewer-action-btn:active,.story-viewer-reply-send:active,.story-viewer-btn:active,.story-viewer-quick button.tac104-pressed,.story-viewer-action-btn.tac104-pressed,.story-viewer-reply-send.tac104-pressed,.story-viewer-btn.tac104-pressed{transform:scale(.92);opacity:.75;}
/* Org timeline action buttons: same press feel as the feed row. */
#orgTimeline button{transition:transform 120ms ease,opacity 120ms ease;}
#orgTimeline button:active,#orgTimeline button.tac104-pressed{transform:scale(.94);opacity:.75;}
#orgTimeline button.tac104-liked{color:#fb7185;}
/* Feed comment-sheet buttons (comment likes live here too). */
#feedCommentsSheet button:active,#reelsComments button:active{transform:scale(.94);opacity:.8;}
@media (prefers-reduced-motion:reduce){
  .tac104-burst{animation:none;opacity:0;}
  .tac104-action,.reel-rail-btn,.reel-more-row,.reel-emoji-btn,.reel-send-btn,.story-viewer-quick button,.story-viewer-action-btn,.story-viewer-reply-send,.story-viewer-btn,#orgTimeline button{transition:none;}
}

/* ---- Set 104 addition: frameless full-bleed feed (tac104frameless) ---- */
/* Reference: Fortune's LinkedIn feed screen recording (19:14-19:15 WAT
   16 Nov 2026, ~/workspace/user/media_library/video/26/2693af93e19eb1927a7823e61e378cfc46d0069eef5b19c9aef31d0064ca27f6.mp4):
   posts flow edge-to-edge, photos and videos full-bleed to the screen
   edges, no rounded card frames or borders around posts, thin separators
   between posts, author row + text + actions inside the same full-width
   block. The old Connect feed (19:09 WAT screenshot) was dark rounded
   bordered cards (glass-card: rounded-2xl, 1px border, shadow, 16px gaps)
   with pill-box action buttons. What replaces it, in Dark AND Light:
   the post block itself is transparent, square, borderless except for a
   1px separator under each post, pulled out to the screen edge on
   narrow phones (-24px side margins: -16px for the #main-scroll px-4
   plus 8px for the browser default body margin) and to the shell edge
   on wider screens (-16px), and the
   action buttons go flat (transparent, no border). Text rows stay inset
   16px by the card padding; media already carries -mx-4 so it reaches
   the card edges, which are now the screen/column edges. The composer,
   the jobs cards interleaved in the feed, and every other glass-card in
   the app keep their frames: only #feed-container > .post-card changes.
   No feed data, ordering, or ranking changes. */
/* The card itself is pulled out to the column edges: -16px cancels the
   #main-scroll padding on every screen. On narrow phones the shell also
   sits 8px inside the viewport (the browser default body margin; the
   tree sets no body margin reset), so the card needs -24px there to
   reach the true screen edge, like LinkedIn's full-bleed media. Above
   464px the 448px shell is centred, so -16px reaches the shell edge. */
#feed-container.tac104frameless>.post-card{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;margin-left:-24px!important;margin-right:-24px!important;margin-top:0!important;padding:16px 16px 12px!important;border-bottom:1px solid rgba(128,128,128,.28)!important;}
@media (min-width:465px){
#feed-container.tac104frameless>.post-card{margin-left:-16px!important;margin-right:-16px!important;}
}
#feed-container.tac104frameless>.post-card:last-child{border-bottom:0!important;}
html[data-theme="dark"] #feed-container.tac104frameless>.post-card,html.dark #feed-container.tac104frameless>.post-card{border-bottom-color:rgba(255,255,255,.10)!important;}
html[data-theme="light"] #feed-container.tac104frameless>.post-card{border-bottom-color:#D6E4DC!important;}
/* Media reaches the card edges even if the -mx-4 utility is ever lost. */
#feed-container.tac104frameless>.post-card .-mx-4{margin-left:-16px!important;margin-right:-16px!important;}
#feed-container.tac104frameless>.post-card .fva55-media video,#feed-container.tac104frameless>.post-card .fva55-media img{border-radius:0!important;}
/* Flat action buttons: no pill box, no border, same 44px targets and
   the same tac104 press states. The divider above the row stays. */
#feed-container.tac104frameless>.post-card .post-action-row button{background:transparent!important;border:0!important;border-radius:8px!important;box-shadow:none!important;}
#feed-container.tac104frameless>.post-card .post-action-row button:hover{border-color:transparent!important;}
