:root {
  /* Marca G/O/X — vox populi (squircle navy / squircle branco) */
  --brand-chrome: #0284c7;
  --brand-chrome-hover: #0369a1;
  --brand-navy: var(--brand-chrome);
  --brand-green: #1fa855;
  --brand-yellow: #f5c400;
  --brand-blue: #0369a1;
  --theme-chrome: var(--brand-chrome);
  --bg-parchment: #f4f0e8;
  --bg-carbon: #18181a;
  --bg: var(--bg-parchment);
  /* MD3-style surfaces (civic paper stack on --bg-parchment) */
  --surface-1: #faf7f0;
  --surface-2: #f0ebe3;
  --surface-3: #e4ddd2;
  --outline: #c9c5bc;
  --elevation-1: 0 1px 3px rgba(20, 18, 24, 0.05), 0 2px 6px rgba(20, 18, 24, 0.03);
  --elevation-2: 0 3px 8px rgba(20, 18, 24, 0.06), 0 10px 22px rgba(20, 18, 24, 0.04);
  --elevation-3: 0 6px 18px rgba(20, 18, 24, 0.08), 0 18px 40px rgba(20, 18, 24, 0.06);
  --paper-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.82);
  --surface: var(--surface-1);
  --surface-solid: var(--surface-1);
  --surface-soft: var(--surface-3);
  --border: #d6d2c9;
  --border-subtle: #e8e4dc;
  --border-glow: rgba(20, 18, 24, 0.1);
  --text: #141218;
  --muted: #5c5868;
  --link: var(--brand-blue);
  --accent: var(--brand-blue);
  --accent-soft: rgba(43, 95, 184, 0.1);
  --accent-hover: #234a94;
  --accent-glow: rgba(3, 105, 161, 0.2);
  --accent-gradient: linear-gradient(135deg, #234a94 0%, var(--brand-green) 100%);
  --nav-active-bg: rgba(20, 18, 24, 0.05);
  --nav-active-indicator: var(--brand-green);
  --surface-card: var(--surface-1);
  --signal: var(--brand-yellow);
  --signal-soft: rgba(245, 196, 0, 0.16);
  --warning: #9a7200;
  --warning-soft: rgba(245, 196, 0, 0.18);
  --warning-border: rgba(245, 196, 0, 0.42);
  --amber: #9a7200;
  --amber-soft: rgba(245, 196, 0, 0.18);
  --overlay: rgba(20, 18, 24, 0.62);
  --on-accent: #ffffff;
  --glass-bg: var(--surface-1);
  --glass-border: var(--outline);
  --glass-blur: none;
  --mesh-bg: none;
  --danger: #d63a49;
  --danger-soft: rgba(214, 58, 73, 0.12);
  --success: var(--brand-green);
  --success-soft: rgba(31, 168, 85, 0.14);
  --radius: 12px;
  --radius-sm: 8px;
  --feed-max: 500px;
  --feed-post-gap: 2.7rem;
  --sidebar-width: 240px;
  --sidebar-width-collapsed: 72px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --shadow: var(--elevation-2);
  --font-sans: "Source Sans 3", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Outfit", var(--font-sans);
  --font-weight-nav: 600;
  font-family: var(--font-sans);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-color-mode="light"]) {
    --theme-chrome: var(--bg-carbon);
    --bg: var(--bg-carbon);
    --surface-1: #222224;
    --surface-2: #28282c;
    --surface-3: #323238;
    --outline: #3d3a48;
    --elevation-1: 0 1px 3px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.22);
    --elevation-2: 0 3px 10px rgba(0, 0, 0, 0.45), 0 10px 24px rgba(0, 0, 0, 0.3);
    --elevation-3: 0 6px 18px rgba(0, 0, 0, 0.5), 0 20px 40px rgba(0, 0, 0, 0.38);
    --paper-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    --surface: var(--surface-1);
    --surface-solid: var(--surface-1);
    --surface-soft: var(--surface-3);
    --border: #2c2938;
    --border-subtle: #1a1826;
    --border-glow: rgba(255, 255, 255, 0.08);
    --text: #ebe9e4;
    --muted: #9a9690;
    --link: #8eb8f5;
    --accent: #8eb8f5;
    --accent-soft: rgba(142, 184, 245, 0.12);
    --accent-hover: #a8c8f8;
    --accent-glow: rgba(3, 105, 161, 0.2);
    --accent-gradient: linear-gradient(135deg, #0ea5e9 0%, var(--success) 100%);
    --nav-active-bg: rgba(255, 255, 255, 0.06);
    --nav-active-indicator: var(--success);
    --surface-card: var(--surface-2);
    --signal-soft: rgba(245, 196, 0, 0.14);
    --warning: var(--brand-yellow);
    --warning-soft: rgba(245, 196, 0, 0.14);
    --warning-border: rgba(245, 196, 0, 0.32);
    --amber: var(--brand-yellow);
    --amber-soft: rgba(245, 196, 0, 0.14);
    --overlay: rgba(6, 14, 28, 0.78);
    --glass-bg: var(--surface-1);
    --glass-border: var(--outline);
    --glass-blur: none;
    --mesh-bg: none;
    --danger: #ff6b7a;
    --danger-soft: rgba(255, 107, 122, 0.16);
    --success: #3dd982;
    --success-soft: rgba(61, 217, 130, 0.16);
    --shadow: var(--elevation-2);
  }
}

@media (prefers-color-scheme: light) {
  :root[data-color-mode="dark"] {
    --theme-chrome: var(--bg-carbon);
    --bg: var(--bg-carbon);
    --surface-1: #222224;
    --surface-2: #28282c;
    --surface-3: #323238;
    --outline: #3d3a48;
    --elevation-1: 0 1px 3px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.22);
    --elevation-2: 0 3px 10px rgba(0, 0, 0, 0.45), 0 10px 24px rgba(0, 0, 0, 0.3);
    --elevation-3: 0 6px 18px rgba(0, 0, 0, 0.5), 0 20px 40px rgba(0, 0, 0, 0.38);
    --paper-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    --surface: var(--surface-1);
    --surface-solid: var(--surface-1);
    --surface-soft: var(--surface-3);
    --border: #2c2938;
    --border-subtle: #1a1826;
    --border-glow: rgba(255, 255, 255, 0.08);
    --text: #ebe9e4;
    --muted: #9a9690;
    --link: #8eb8f5;
    --accent: #8eb8f5;
    --accent-soft: rgba(142, 184, 245, 0.12);
    --accent-hover: #a8c8f8;
    --accent-glow: rgba(3, 105, 161, 0.2);
    --accent-gradient: linear-gradient(135deg, #0ea5e9 0%, var(--success) 100%);
    --nav-active-bg: rgba(255, 255, 255, 0.06);
    --nav-active-indicator: var(--success);
    --surface-card: var(--surface-2);
    --signal-soft: rgba(245, 196, 0, 0.14);
    --warning: var(--brand-yellow);
    --warning-soft: rgba(245, 196, 0, 0.14);
    --warning-border: rgba(245, 196, 0, 0.32);
    --amber: var(--brand-yellow);
    --amber-soft: rgba(245, 196, 0, 0.14);
    --overlay: rgba(6, 14, 28, 0.78);
    --glass-bg: var(--surface-1);
    --glass-border: var(--outline);
    --glass-blur: none;
    --mesh-bg: none;
    --danger: #ff6b7a;
    --danger-soft: rgba(255, 107, 122, 0.16);
    --success: #3dd982;
    --success-soft: rgba(61, 217, 130, 0.16);
    --shadow: var(--elevation-2);
  }
}


:root[data-sky-period="madrugada"] {
  --brand-chrome: #1e4976;
  --brand-chrome-hover: #163a5f;
  --theme-chrome: #1e4976;
  --accent: #3b82f6;
}

:root[data-sky-period="manha"] {
  --brand-chrome: #0284c7;
  --brand-chrome-hover: #0369a1;
  --theme-chrome: #0284c7;
  --accent: #0ea5e9;
}

:root[data-sky-period="tarde"] {
  --brand-chrome: #0369a1;
  --brand-chrome-hover: #075985;
  --theme-chrome: #0369a1;
  --accent: #0891b2;
}

:root[data-sky-period="entardecer"] {
  --brand-chrome: #0e7490;
  --brand-chrome-hover: #155e75;
  --theme-chrome: #0e7490;
  --accent: #14b8a6;
}

:root[data-sky-period="noite"] {
  --brand-chrome: #1d4ed8;
  --brand-chrome-hover: #1e40af;
  --theme-chrome: #1e3a8a;
  --accent: #2563eb;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-color-mode="light"])[data-sky-period="madrugada"] {
    --brand-chrome: #67e8f9;
    --brand-chrome-hover: #a5f3fc;
    --theme-chrome: #1a2838;
  }

  :root:not([data-color-mode="light"])[data-sky-period="manha"] {
    --brand-chrome: #7dd3fc;
    --brand-chrome-hover: #bae6fd;
    --theme-chrome: #1c2a3a;
  }

  :root:not([data-color-mode="light"])[data-sky-period="tarde"] {
    --brand-chrome: #38bdf8;
    --brand-chrome-hover: #7dd3fc;
    --theme-chrome: #1e3044;
  }

  :root:not([data-color-mode="light"])[data-sky-period="entardecer"] {
    --brand-chrome: #22d3ee;
    --brand-chrome-hover: #67e8f9;
    --theme-chrome: #203548;
  }

  :root:not([data-color-mode="light"])[data-sky-period="noite"] {
    --brand-chrome: #60a5fa;
    --brand-chrome-hover: #93c5fd;
    --theme-chrome: #182638;
  }
}

@media (prefers-color-scheme: light) {
  :root[data-color-mode="dark"][data-sky-period="madrugada"] {
    --brand-chrome: #67e8f9;
    --brand-chrome-hover: #a5f3fc;
    --theme-chrome: #1a2838;
  }

  :root[data-color-mode="dark"][data-sky-period="manha"] {
    --brand-chrome: #7dd3fc;
    --brand-chrome-hover: #bae6fd;
    --theme-chrome: #1c2a3a;
  }

  :root[data-color-mode="dark"][data-sky-period="tarde"] {
    --brand-chrome: #38bdf8;
    --brand-chrome-hover: #7dd3fc;
    --theme-chrome: #1e3044;
  }

  :root[data-color-mode="dark"][data-sky-period="entardecer"] {
    --brand-chrome: #22d3ee;
    --brand-chrome-hover: #67e8f9;
    --theme-chrome: #203548;
  }

  :root[data-color-mode="dark"][data-sky-period="noite"] {
    --brand-chrome: #60a5fa;
    --brand-chrome-hover: #93c5fd;
    --theme-chrome: #182638;
  }
}


@supports not (backdrop-filter: blur(1px)) {
  :root {
    --surface: var(--surface-1);
    --glass-bg: var(--surface-1);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.5;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: color-mix(in srgb, var(--accent) 25%, transparent);
  color: var(--text);
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--outline);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
  border: 2px solid transparent;
  background-clip: content-box;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* App Shell Layout */
.app-layout {
  display: flex;
  min-height: 100dvh;
  background: var(--bg);
  position: relative;
  isolation: isolate;
}

.app-layout::before {
  display: none;
}

.main-column {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.sidebar-sync-hint {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.3;
  display: block;
  padding: 0 2px;
  visibility: hidden;
}

.sidebar-sync-hint.is-active {
  visibility: visible;
}

.sidebar-brand a.brand-link {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Sidebar brand: squircle branco + X azul em todos os temas ? ver shell.js. */
.brand-logo.brand-mark,
.brand-mark {
  width: 32px;
  height: 32px;
  display: block;
  flex-shrink: 0;
  border-radius: 22%;
  overflow: hidden;
  object-fit: cover;
}

.brand-word {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: baseline;
}

.brand-letter-v {
  color: var(--brand-green);
}

.brand-letter-o {
  color: var(--brand-yellow);
}

.brand-letter-x {
  color: var(--brand-blue);
}

/* Chip de Rede (Status Compacto Glass) */
.network-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--outline);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.network-chip:hover {
  background: var(--surface-soft);
  border-color: var(--outline);
  box-shadow: var(--elevation-1);
  text-decoration: none;
  transform: translateY(-1px);
}

.network-chip.active {
  border-color: color-mix(in srgb, var(--success) 35%, var(--border));
  background: color-mix(in srgb, var(--success-soft) 55%, var(--glass-bg));
}

.network-chip .chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  display: inline-block;
  flex-shrink: 0;
  box-shadow: 0 0 8px var(--success);
}

@media (prefers-reduced-motion: no-preference) {
  .network-chip.active .chip-dot {
    animation: dotPulse 2.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  }
}

@keyframes dotPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 4px var(--success);
  }
  50% {
    opacity: 0.55;
    transform: scale(0.85);
    box-shadow: 0 0 12px var(--success);
  }
}

.network-chip.paused .chip-dot {
  background: var(--danger);
  box-shadow: 0 0 6px var(--danger);
  animation: none;
}

.network-chip.paused {
  color: var(--muted);
}

/* Wallet Badge Glass */
.wallet-badge {
  background: var(--surface-2);
  color: var(--text);
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--border);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.wallet-badge:hover {
  background: var(--surface-soft);
  border-color: var(--outline);
  box-shadow: var(--elevation-1);
  text-decoration: none;
  transform: translateY(-1px);
}

.wallet-badge.connected {
  background: var(--surface-soft);
  color: var(--text);
  border-color: var(--border);
}

.wallet-badge.account-access {
  padding: 0.35rem 0.55rem;
}

.wallet-badge.account-access.connected {
  padding: 0.35rem 0.65rem;
}

@media (max-width: 480px) {
  main#app-main {
    padding: 0.5rem 0.5rem 3rem;
  }
  .post-header-inline {
    padding: 10px 12px 6px;
  }
  .post-caption-block {
    padding: 8px 12px 12px;
  }
  .insta-actions {
    padding: 6px 8px 8px;
  }
}

@media (max-width: 767px) {
  .wallet-badge-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .wallet-badge.account-access {
    padding: 0.4rem;
  }
}

@media (min-width: 768px) {
  .wallet-badge-label {
    max-width: 5.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Sidebar esquerda (mobile: faixa de ícones; desktop: expansível) */
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 94;
  background: var(--overlay);
  border: 0;
}

.sidebar-backdrop[hidden] {
  display: none;
}

.app-sidebar.tab-bar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 95;
  width: var(--sidebar-width-collapsed);
  background: var(--surface-1);
  border-right: 1px solid var(--outline);
  box-shadow: inset 3px 0 0 var(--brand-green), var(--elevation-1);
  display: flex;
  flex-direction: column;
  padding: 0.65rem 0.45rem;
  padding-bottom: calc(0.65rem + env(safe-area-inset-bottom, 0px));
}

.sidebar-scroll {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 0.05rem;
}

.sidebar-brand {
  flex-shrink: 0;
  padding: 0.35rem 0.4rem 0.5rem;
  margin-bottom: 0.1rem;
}

.sidebar-compose-slot {
  flex-shrink: 0;
  padding: 0.15rem 0;
}

.sidebar-compose-slot .tab-item {
  width: 100%;
}

.sidebar-feed-slot {
  flex-shrink: 0;
  min-height: 0;
}

.sidebar-feed-slot[hidden] {
  display: none;
}

.sidebar-sync-slot {
  min-height: 1.15rem;
  display: flex;
  align-items: center;
}

.sidebar-network-slot,
.sidebar-account-slot {
  min-height: 2rem;
  display: flex;
  align-items: center;
}

.sidebar-brand a.brand-link {
  display: inline-flex;
  align-items: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.03em;
  text-decoration: none;
  justify-content: center;
}

.sidebar-feed-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 0.15rem;
  padding: 0.35rem 0.15rem 0;
  border-top: 1px solid var(--border-subtle);
}

.sidebar-feed-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: var(--font-weight-nav);
  letter-spacing: 0.012em;
  color: var(--muted);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.sidebar-feed-tab:hover {
  color: var(--text);
  background: var(--surface-soft);
  text-decoration: none;
}

.sidebar-feed-tab.active {
  color: var(--text);
  background: var(--nav-active-bg);
  box-shadow: inset 3px 0 0 var(--nav-active-indicator);
  border-radius: var(--radius-sm);
}

.sidebar-feed-icon {
  display: flex;
  flex-shrink: 0;
}

.sidebar-feed-icon .tab-svg {
  width: 20px;
  height: 20px;
}

.sidebar-footer {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 0.75rem 0.25rem 0.15rem;
  border-top: 1px solid var(--border-subtle);
}

.theme-mode-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--surface-soft);
  color: var(--muted);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: var(--font-weight-nav);
  cursor: pointer;
}

.theme-mode-toggle:hover {
  color: var(--text);
  border-color: var(--border);
}

.theme-mode-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.theme-mode-svg {
  flex-shrink: 0;
}

.sidebar-footer .network-chip,
.sidebar-footer .wallet-badge,
.sidebar-footer .theme-mode-toggle {
  width: 100%;
  justify-content: center;
}

.sidebar-collapse-btn {
  flex-shrink: 0;
  margin-top: 0.35rem;
  align-self: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.sidebar-collapse-btn:hover {
  color: var(--text);
  background: var(--surface);
}

.app-layout.sidebar-collapsed .sidebar-collapse-btn svg {
  transform: rotate(180deg);
}

.tab-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
}

.tab-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: var(--font-weight-nav);
  letter-spacing: 0.012em;
  padding: 10px 8px;
  border-radius: 999px;
  transition: all 0.15s ease;
}

.tab-item:hover {
  color: var(--text);
  background: var(--surface-soft);
  text-decoration: none;
}

.tab-item.active {
  color: var(--text);
  background: var(--nav-active-bg);
  font-weight: 700;
  box-shadow: inset 3px 0 0 var(--nav-active-indicator);
  border-radius: var(--radius-sm);
}

.tab-item.active .tab-svg {
  filter: none;
  color: var(--nav-active-indicator);
}

.tab-item.compose-tab {
  background: var(--brand-navy);
  color: var(--on-accent);
  border-radius: var(--radius-sm);
}

.tab-item.compose-tab:hover {
  color: var(--on-accent);
  background: var(--brand-chrome-hover);
  box-shadow: var(--elevation-2);
}

.tab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.tab-icon .brand-logo.brand-mark,
.tab-icon .tab-brand-mark {
  width: 22px;
  height: 22px;
}

.tab-svg {
  display: block;
  stroke: currentColor;
}

.main-column {
  margin-left: var(--sidebar-width-collapsed);
}

/* Mobile: rótulos ocultos até drawer aberto */
@media (max-width: 767px) {
  .sidebar-feed-label,
  .tab-label,
  .brand-word,
  .sidebar-sync-hint.is-active,
  .sidebar-footer .network-chip span:not(.chip-dot),
  .wallet-badge-label,
  .theme-mode-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .sidebar-footer .network-chip,
  .sidebar-footer .wallet-badge,
  .sidebar-footer .theme-mode-toggle {
    width: auto;
    padding: 0.45rem;
  }

  .app-layout.sidebar-drawer-open .app-sidebar {
    width: min(var(--sidebar-width), 88vw);
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.35);
  }

  .app-layout.sidebar-drawer-open .sidebar-feed-label,
  .app-layout.sidebar-drawer-open .tab-label,
  .app-layout.sidebar-drawer-open .brand-word,
  .app-layout.sidebar-drawer-open .sidebar-sync-hint.is-active,
  .app-layout.sidebar-drawer-open .sidebar-footer .network-chip span:not(.chip-dot),
  .app-layout.sidebar-drawer-open .wallet-badge-label,
  .app-layout.sidebar-drawer-open .theme-mode-label {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
  }

  .app-layout.sidebar-drawer-open .tab-item,
  .app-layout.sidebar-drawer-open .sidebar-feed-tab {
    justify-content: flex-start;
    gap: 12px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .app-layout.sidebar-drawer-open .sidebar-footer .network-chip,
  .app-layout.sidebar-drawer-open .sidebar-footer .wallet-badge,
  .app-layout.sidebar-drawer-open .sidebar-footer .theme-mode-toggle {
    width: 100%;
    justify-content: flex-start;
  }

  main#app-main {
    padding-bottom: 2rem;
  }
}

@media (min-width: 768px) {
  .app-sidebar.tab-bar {
    width: var(--sidebar-width);
    padding: 1.1rem 0.85rem;
  }

  .sidebar-brand {
    margin-bottom: 0.75rem;
    padding: 0 0.5rem;
  }

  .sidebar-brand a.brand-link {
    font-size: 1.45rem;
    justify-content: flex-start;
  }

  .tab-item {
    justify-content: flex-start;
    gap: 14px;
    font-size: 0.95rem;
    padding: 10px 16px;
  }

  .tab-item.active {
    box-shadow: inset 3px 0 0 var(--nav-active-indicator);
  }

  .sidebar-compose-slot .tab-item.compose-tab {
    justify-content: center;
    box-shadow: var(--elevation-2);
  }

  .sidebar-footer .network-chip,
  .sidebar-footer .wallet-badge {
    justify-content: flex-start;
  }

  .main-column {
    margin-left: var(--sidebar-width);
  }

  .app-layout.sidebar-collapsed .app-sidebar {
    width: var(--sidebar-width-collapsed);
  }

  .app-layout.sidebar-collapsed .main-column {
    margin-left: var(--sidebar-width-collapsed);
  }

  .app-layout.sidebar-collapsed .tab-label,
  .app-layout.sidebar-collapsed .brand-word,
  .app-layout.sidebar-collapsed .sidebar-feed-label,
  .app-layout.sidebar-collapsed .sidebar-sync-hint.is-active,
  .app-layout.sidebar-collapsed .sidebar-footer .network-chip span:not(.chip-dot),
  .app-layout.sidebar-collapsed .wallet-badge-label,
  .app-layout.sidebar-collapsed .theme-mode-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .app-layout.sidebar-collapsed .tab-item,
  .app-layout.sidebar-collapsed .sidebar-feed-tab {
    justify-content: center;
    gap: 0;
    padding-left: 10px;
    padding-right: 10px;
  }

  .app-layout.sidebar-collapsed .sidebar-footer .network-chip,
  .app-layout.sidebar-collapsed .sidebar-footer .wallet-badge,
  .app-layout.sidebar-collapsed .sidebar-footer .theme-mode-toggle {
    justify-content: center;
    padding: 0.45rem;
  }
}

/* Conteúdo Principal */
main#app-main,
.app-main {
  width: 100%;
  max-width: var(--feed-max);
  margin: 0 auto;
  padding: 0.65rem 1rem 2.5rem;
  flex: 1;
  background: transparent;
}

#app-root {
  background: var(--bg);
  min-height: 100dvh;
}

@media (min-width: 768px) {
  main#app-main {
    padding: 1.5rem 1.5rem 3rem;
  }
}

/* Feed chrome — abas, stories e composer alinhados à coluna */
.feed-chrome {
  max-width: var(--feed-max, 500px);
  margin: 0 auto 0.5rem;
  padding: 0 2px;
}

.feed-composer-section {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.feed-notice {
  max-width: var(--feed-max, 500px);
  margin: 0 auto 0.65rem;
  padding: 0 4px;
  font-size: 0.74rem;
  color: var(--muted);
  text-align: center;
}

.feed-notice.demo {
  color: var(--text);
  background: var(--signal-soft);
  border: 1px solid var(--warning-border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
}

/* Composer inline (estilo X — mesma janela) */
.inline-composer {
  max-width: 100%;
  margin: 0 auto 16px auto;
  padding: 0;
  background: var(--surface-1);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  box-shadow: var(--elevation-1), var(--paper-highlight);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.inline-composer:hover {
  border-color: color-mix(in srgb, var(--brand-navy) 22%, var(--outline));
}

.inline-composer-collapsed {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  cursor: text;
  border-radius: var(--radius);
  transition: background 0.15s ease;
}

.inline-composer-collapsed:hover {
  background: var(--surface-soft);
}

.inline-composer-placeholder {
  flex: 1;
  color: var(--muted);
  font-size: 0.92rem;
}

.inline-composer-form {
  padding: 12px 14px 12px;
}

.inline-composer-form.hidden,
.inline-composer-collapsed.hidden {
  display: none;
}

.inline-composer-form-head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.inline-composer-form-head .avatar,
.inline-composer-form-head .avatar-img {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.inline-composer-textarea {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  line-height: 1.45;
  resize: vertical;
  min-height: 72px;
  padding: 4px 0;
}

.inline-composer-textarea:focus {
  outline: none;
}

.inline-composer-preview {
  margin: 8px 0 8px 50px;
  max-width: 100%;
}

.inline-composer-preview.hidden {
  display: none;
}

.inline-composer-preview-img {
  display: block;
  max-width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.inline-composer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
}

.inline-composer-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.inline-composer-tool {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  color: var(--accent);
  cursor: pointer;
  font-weight: 600;
}

.inline-composer-comm {
  border: none;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 0.78rem;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  max-width: 160px;
}

.inline-composer-meta {
  margin: 8px 0 0;
  font-size: 0.72rem;
  text-align: left;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  color: var(--muted);
}

.inline-composer-char {
  font-variant-numeric: tabular-nums;
}

.inline-composer-hint {
  margin: 0;
  font-size: inherit;
  text-align: left;
}

.inline-composer-hint a {
  color: var(--muted);
}

.inline-composer-local-hint {
  display: inline;
  color: var(--muted);
}

.post-edit-local-hint {
  margin: 0.25rem 0 0.75rem;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--muted);
}

/* Faixa de Stories Visual (Tour Personas) */
.stories-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 4px 10px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-subtle);
  margin: 0;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.stories-strip::-webkit-scrollbar {
  display: none;
}

.story-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  flex-shrink: 0;
  width: 66px;
}

.story-item:hover {
  text-decoration: none;
}

.story-ring {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  padding: 2px;
  background: transparent;
  border: 2px solid color-mix(in srgb, var(--brand-green) 55%, var(--outline));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.story-ring.story-ring--official {
  border-color: var(--brand-green);
}

.story-item:hover .story-ring {
  transform: scale(1.05);
}

.story-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--surface-solid);
  display: block;
  background: var(--surface-soft);
}

.story-name {
  font-size: 0.72rem;
  color: var(--text);
  max-width: 64px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

/* Post / item de feed (cartão padrão) */
.post {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  background: var(--surface-1);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  margin: 0 auto;
  max-width: var(--feed-max, 500px);
  overflow: hidden;
  position: relative;
  box-shadow: var(--elevation-1), var(--paper-highlight);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.feed-container > .post:not(:last-child) {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.post:hover {
  border-color: color-mix(in srgb, var(--brand-navy) 22%, var(--outline));
  box-shadow: var(--elevation-2), var(--paper-highlight);
}

.post-layout-text .post-header-inline,
.post-layout-github .post-header-inline {
  border-bottom: none;
}

.post-github-gist {
  margin: 0 14px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-soft);
}

.post-github-gist-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 6px 10px;
  border-bottom: 1px solid var(--border-subtle);
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
}

.post-github-gist-body {
  margin: 0;
  padding: 10px 12px;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text);
  white-space: pre-wrap;
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  overflow-x: auto;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  text-decoration: none;
  user-select: none;
  border: 1px solid var(--outline);
  box-shadow: var(--elevation-1);
}

.avatar-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.avatar-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--border);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  display: block;
}

.profile-avatar-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--outline);
  box-shadow: var(--elevation-2);
  display: block;
}

.avatar-squircle,
.avatar-wrap.avatar-squircle,
.avatar-img.avatar-squircle,
.profile-avatar-img.avatar-squircle {
  border-radius: 22%;
}

.avatar-wrap.avatar-squircle .avatar-img.avatar-squircle {
  object-fit: cover;
}

.post-content {
  flex: 1;
  min-width: 0;
}

.post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 0.86rem;
  line-height: 1.3;
}

.post-header-author {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.post-header-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
  max-width: 52%;
}

.post-owner-block {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.post-local-sync-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1;
  cursor: help;
  opacity: 0.75;
}

.post-local-sync-hint:hover,
.post-local-sync-hint:focus-visible {
  opacity: 1;
  color: var(--text);
  outline: none;
  box-shadow: 0 0 0 1px var(--border);
}

.post-owner-menu {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn-text-quiet {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.1rem 0.35rem;
  line-height: 1.25;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  border-radius: 4px;
}

.btn-text-quiet:hover,
.btn-text-quiet:focus-visible {
  color: var(--text);
  background: var(--surface-soft);
  outline: none;
}

.btn-post-delete.btn-text-quiet:hover {
  color: #e57373;
}

.post-header-tags {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.post-author {
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.post-author:hover {
  text-decoration: underline;
}

.post-handle {
  color: var(--muted);
  font-size: 0.82rem;
}

.post-dot {
  color: var(--muted);
  font-size: 0.8rem;
}

.post-meta {
  color: var(--muted);
  font-size: 0.82rem;
}

.post-community-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all 0.15s ease;
}

.post-community-pill:hover {
  color: var(--text);
  border-color: var(--outline);
  box-shadow: var(--elevation-1);
  text-decoration: none;
}

.post-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 6px 0 3px;
  color: var(--text);
  line-height: 1.35;
}

.post-title a {
  color: var(--text);
  text-decoration: none;
}

.post-title a:hover {
  color: var(--accent);
}

.post-body {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.45;
  margin: 4px 0 8px;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Fotos e mídia nos posts (bleed 4:5) */
.post-media-container {
  margin: 0;
  border-radius: 0;
  border: none;
  background: #000;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  box-shadow: none;
}

.post-media-hero {
  position: relative;
  display: block;
  isolation: isolate;
  overflow: visible;
}

.post-media-lightbox-trigger {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
  position: relative;
  z-index: 0;
  overflow: hidden;
}

.post-media-hero-img,
.post-media-hero .media-placeholder {
  position: relative;
  z-index: 0;
}

.post-media-lightbox-trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.post-media-scrim-top {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.62) 0%,
    rgba(0, 0, 0, 0.28) 28%,
    rgba(0, 0, 0, 0) 40%
  );
}

.post-media-scrim-bottom {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 45%,
    rgba(0, 0, 0, 0.55) 72%,
    rgba(0, 0, 0, 0.82) 100%
  );
}

.post-media-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  padding: 8px 10px 6px;
  pointer-events: none;
}

.post-media-header-left,
.post-media-header-right {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  pointer-events: auto;
}

.post-media-header-right {
  flex-shrink: 0;
  align-items: flex-start;
  gap: 8px;
}

.post-media-header-avatar .avatar-img,
.post-media-header-avatar .avatar {
  width: 32px;
  height: 32px;
  font-size: 0.75rem;
  border: 2px solid rgba(255, 255, 255, 0.85);
}

.post-media-header-lines {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.post-media-header-primary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  line-height: 1.2;
}

.post-media-header-username {
  font-weight: 700;
  font-size: 0.88rem;
  color: #fff;
  text-decoration: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-media-header-username:hover {
  text-decoration: underline;
}

.post-media-header-verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  font-size: 0.55rem;
  font-weight: 800;
  color: #fff;
  background: color-mix(in srgb, var(--accent) 70%, #1a3a5c);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.post-media-header-dot,
.post-media-header-time {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.post-media-header-subtitle {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.78);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.btn-overlay-follow {
  border: none;
  background: transparent;
  padding: 2px 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
  white-space: nowrap;
}

.btn-overlay-follow:hover,
.btn-overlay-follow:focus-visible {
  text-decoration: underline;
  outline: none;
}

.btn-overlay-follow.is-following {
  opacity: 0.92;
}

.btn-post-more-menu {
  border: none;
  background: transparent;
  padding: 0 2px;
  font-size: 1.25rem;
  line-height: 1;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

.btn-post-more-menu:hover,
.btn-post-more-menu:focus-visible {
  opacity: 0.85;
  outline: 2px solid rgba(255, 255, 255, 0.45);
  outline-offset: 2px;
}

body.post-more-sheet-open {
  overflow: hidden;
}

.post-more-sheet[hidden],
.post-more-sheet:not(.is-open) {
  display: none !important;
}

.post-more-sheet {
  align-items: flex-end;
  padding: 0;
}

.post-more-sheet-panel {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0.35rem 0 calc(0.35rem + env(safe-area-inset-bottom, 0px));
  border-radius: 16px 16px 0 0;
  background: #1c1c1e;
  color: #fff;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.45);
  animation: sheetSlideUp 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes sheetSlideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.post-more-sheet-item {
  display: block;
  width: 100%;
  border: none;
  background: transparent;
  color: #fff;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 1rem;
  cursor: pointer;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.post-more-sheet-item:first-of-type {
  border-top: none;
}

.post-more-sheet-item--destructive {
  color: #ff453a;
}

.post-more-sheet-item:hover,
.post-more-sheet-item:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.post-more-sheet-cancel {
  margin-top: 0.35rem;
  font-weight: 700;
}

.posse-dispatch-sheet[hidden],
.posse-dispatch-sheet:not(.is-open) {
  display: none !important;
}

.posse-dispatch-sheet {
  align-items: flex-end;
  padding: 0;
}

.posse-dispatch-lead {
  margin: 0.65rem 1rem 0.25rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
}

.posse-dispatch-limits {
  margin: 0 1rem 0.35rem;
  font-size: 0.72rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.62);
  text-align: center;
}

.posse-dispatch-url {
  margin: 0 1rem 0.5rem;
  font-size: 0.72rem;
  word-break: break-all;
  text-align: center;
  opacity: 0.85;
}

.posse-dispatch-skip {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.35rem 1rem 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.8);
}

.post-md-code {
  margin: 0.5rem 0;
  border-radius: var(--radius-sm, 8px);
  background: var(--surface-soft, rgba(0, 0, 0, 0.06));
  border: 1px solid var(--border, rgba(0, 0, 0, 0.08));
  overflow: auto;
}

.post-md-code-lang {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-bottom: 1px solid var(--border, rgba(0, 0, 0, 0.08));
  opacity: 0.75;
}

.post-md-code-pre {
  margin: 0;
  padding: 0.65rem 0.75rem;
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: 0.82rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.post-body-md .post-md-para {
  margin: 0.35rem 0;
}

.community-vox-fork-banner {
  margin: 0.75rem 0;
  padding: 0.65rem 0.85rem;
  font-size: 0.88rem;
  border-left: 3px solid var(--accent);
}

.post-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
}

.post-overlay-content {
  position: relative;
  z-index: 1;
  padding: 12px 12px 3.5rem;
  pointer-events: auto;
}

.post-actions-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 4px;
  width: 100%;
  padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom, 0px));
  pointer-events: auto;
  overflow: visible;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.42) 38%,
    rgba(0, 0, 0, 0.72) 100%
  );
}

.post-actions-overlay .overlay-action-btn {
  flex: 1 1 0;
  min-width: 0;
  max-width: 4.5rem;
  min-height: 40px;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 4px 6px;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

.post-actions-overlay .overlay-action-btn:hover,
.post-actions-overlay .overlay-action-btn:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.post-actions-overlay .overlay-action-btn:focus-visible {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.post-actions-overlay .overlay-action-btn.active {
  color: #ff6b8a;
}

.post-actions-overlay .overlay-action-count {
  line-height: 1;
  font-variant-numeric: tabular-nums;
  min-width: 0.5rem;
}

.post-actions-overlay .action-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.post-actions-overlay .post-overlay-actions-more {
  flex: 1 1 0;
  max-width: 5.25rem;
  display: flex;
  justify-content: center;
}

.post-actions-overlay .post-overlay-actions-more > summary,
.post-actions-overlay .btn-toolbar-more.btn-post-actions-more {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 40px;
  font-size: 1.15rem;
  line-height: 1;
  border: none;
  background: transparent;
  color: #fff;
  box-shadow: none;
}

.post-actions-overlay .post-overlay-actions-more > summary:hover,
.post-actions-overlay .post-overlay-actions-more > summary:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.post-actions-overlay .post-overlay-actions-more > summary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.post-actions-overlay .toolbar-overflow-menu--overlay {
  bottom: calc(100% + 8px);
  left: auto;
  right: 0;
  transform: none;
  z-index: 20;
  min-width: 11rem;
  padding: 4px;
  gap: 0;
}

.post-actions-overlay .toolbar-overflow-menu--overlay .action-btn {
  padding: 7px 10px;
  white-space: nowrap;
}

.post-actions-overlay .toolbar-overflow-menu--overlay .toolbar-overflow-label {
  color: var(--text);
  white-space: nowrap;
}

.post-layout-photo.post-photo-bleed {
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  background: transparent;
  max-width: min(var(--feed-max, 500px), 100%);
  overflow: visible;
}

.post-layout-photo.post-photo-bleed:hover {
  border-color: transparent;
}

.post-layout-photo.post-photo-bleed .post-media-container {
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  margin: 0;
  align-items: stretch;
  justify-content: flex-start;
}

.post-layout-photo.post-photo-bleed .post-media-lightbox-trigger {
  flex: 1 1 auto;
  align-self: stretch;
  width: 100%;
  height: 100%;
  min-height: 100%;
}

.post-layout-photo.post-photo-bleed .post-media-hero-img {
  object-position: center top;
}

.post-layout-photo.post-photo-bleed .post-comments,
.post-layout-photo.post-photo-bleed .post-comments-surface {
  margin: 0;
  padding: 0;
  min-height: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.post-layout-photo.post-photo-bleed .post-comments-feed {
  margin: 8px 12px 0 28px;
}

.post-layout-photo.post-photo-bleed .post-comment-composer {
  margin: 12px 12px 0 28px;
}

.post-layout-text.post,
.post-layout-github.post {
  max-width: 540px;
  border-radius: 12px;
}

.post-layout-text .post-caption-block .post-body,
.post-layout-text .post-caption-block .post-body.post-caption-only {
  font-size: 1.02rem;
  line-height: 1.58;
  letter-spacing: 0.01em;
}

.post-layout-text .post-caption-block .post-title {
  font-size: 1.06rem;
  line-height: 1.4;
}

.post-overlay-title {
  margin: 0 0 4px;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-overlay-title a {
  color: #fff;
  text-decoration: none;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.post-overlay-title a:hover {
  color: color-mix(in srgb, var(--accent) 35%, #fff);
}

.post-overlay-excerpt {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.38;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65), 0 0 1px rgba(0, 0, 0, 0.8);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-overlay-excerpt a {
  color: inherit;
  text-decoration: none;
}

.post-overlay-excerpt a:hover {
  text-decoration: underline;
}

.post-overlay-excerpt .hashtag-link {
  color: color-mix(in srgb, var(--accent) 55%, #fff);
  font-weight: 600;
}

.post-layout-photo .post-header-photo-admin {
  justify-content: flex-end;
  padding: 4px 10px 0;
  margin: 0;
  min-height: 0;
}

.post-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Lightbox — imagem limpa, sem textos do feed */
.post-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(10, 22, 40, 0.92);
}

.post-lightbox[hidden] {
  display: none !important;
}

body.post-lightbox-open {
  overflow: hidden;
}

.post-lightbox-img {
  max-width: min(100%, 960px);
  max-height: min(92vh, 900px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: var(--elevation-3);
}

.post-lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.post-lightbox-close:hover,
.post-lightbox-close:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  outline: none;
}

/* Cabeçalho inline do post (texto / gist) */
.post-header-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 8px;
  background: transparent;
}

.post-header-user {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.post-header-user .avatar {
  width: 36px;
  height: 36px;
  font-size: 0.85rem;
}

.post-header-user .avatar-img {
  width: 36px;
  height: 36px;
}

.post-header-meta {
  display: flex;
  align-items: baseline;
  gap: 5px;
  min-width: 0;
  flex-wrap: wrap;
  line-height: 1.3;
}

.post-header-meta .post-author {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text);
  text-decoration: none;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-header-meta .post-author:hover {
  text-decoration: underline;
}

.post-header-meta .post-handle {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--muted);
}

.post-header-meta .post-time,
.post-header-meta .post-dot {
  font-size: 0.8125rem;
  color: var(--muted);
}

.post-caption-block {
  padding: 10px 16px 14px;
}

.post-caption-block .post-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 6px 0;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.post-caption-block .post-title a {
  color: var(--text);
  text-decoration: none;
}

.post-caption-block .post-title a:hover {
  color: var(--accent);
  text-decoration: none;
}

.post-caption-block .post-body {
  font-size: 0.95rem;
  color: var(--text);
  margin: 6px 0 0 0;
  line-height: 1.55;
}

.post-caption-block .post-body.post-caption-only {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  margin: 0;
}

.post-caption-block .post-body.post-caption-only a {
  color: var(--text);
  text-decoration: none;
}

.post-caption-block .post-body.post-caption-only a:hover {
  text-decoration: underline;
}

/* Ações dos Posts (Toolbar IG: esquerda, centro, direita) */
.insta-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: none;
  margin-top: 2px;
  padding: 8px 14px 10px;
  border-top: none;
}

.toolbar-primary,
.toolbar-secondary {
  display: flex;
  align-items: center;
  gap: 2px;
}

.toolbar-secondary {
  gap: 4px;
  margin-left: auto;
}

.post:has(.toolbar-overflow[open]) {
  overflow: visible;
  z-index: 8;
}

.toolbar-overflow {
  position: relative;
  overflow: visible;
}

.toolbar-overflow > summary {
  list-style: none;
}

.toolbar-overflow > summary::-webkit-details-marker {
  display: none;
}

.btn-toolbar-more {
  min-width: 36px;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
  letter-spacing: 0;
}

.toolbar-overflow-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 6px);
  z-index: 12;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 148px;
  padding: 6px;
  background: var(--surface-2);
  border: 1px solid var(--outline);
  border-radius: var(--radius-sm);
  box-shadow: var(--elevation-2);
}

.toolbar-overflow-menu .action-btn {
  width: 100%;
  justify-content: flex-start;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
}

.toolbar-overflow-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 0.78rem;
  cursor: pointer;
  min-height: 28px;
  padding: 4px 7px;
  border-radius: 999px;
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease, transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.action-btn:active {
  transform: scale(0.94);
}

.action-btn:hover {
  text-decoration: none;
  color: var(--text);
  background: var(--surface-soft);
}

.action-btn .action-icon {
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.action-btn .action-count {
  font-size: 0.8rem;
  font-weight: 600;
}

.action-btn.btn-like:hover {
  color: #e0245e;
  background: rgba(224, 36, 94, 0.08);
}

.action-btn.btn-like.active {
  color: #e0245e;
}

.action-btn.btn-like.active .action-icon {
  animation: heartPop 0.25s cubic-bezier(0.17, 0.89, 0.32, 1.49);
  fill: #e0245e;
  stroke: #e0245e;
}

.action-btn.btn-comment:hover,
.action-btn.btn-comment.active {
  color: var(--accent);
  background: var(--accent-soft);
}

.action-btn.btn-comment.active .action-icon {
  stroke: var(--accent);
}

.avatar-wrap.sm .avatar-img,
.avatar.sm,
.avatar-wrap.avatar-sm .avatar-img,
.avatar.avatar-sm {
  width: 28px;
  height: 28px;
  font-size: 0.72rem;
}

.post-comments,
.post-comments-surface {
  position: static;
  margin: 0 12px 12px;
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--outline);
  border-radius: var(--radius-sm);
  box-shadow: var(--paper-highlight);
}

.post-comments-surface.is-open {
  /* Painel de comentários — nunca herda overlay/scrim do hero */
  z-index: auto;
}

.post-comments[hidden] {
  display: none;
}

.post-comments-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.post-comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.post-comment-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.post-comment-body {
  flex: 1;
  min-width: 0;
  padding: 0;
}

.post-comment-meta {
  display: flex;
  gap: 6px;
  align-items: baseline;
  flex-wrap: wrap;
  margin-bottom: 2px;
}

.post-comment-body .reply-body {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.4;
}

.post-comment-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 4px;
}

.post-comment-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 36px;
  padding: 4px 10px;
  margin: 0;
  border: none;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.post-comment-action:hover,
.post-comment-action:focus-visible {
  color: var(--accent);
  background: var(--accent-soft);
}

.btn-comment-react.active {
  color: var(--danger, #e11d48);
}

.btn-comment-react.active .post-comment-action-icon {
  color: var(--danger, #e11d48);
}

.post-comment-action-icon {
  font-size: 0.95rem;
  line-height: 1;
}

.count-comment-reacts {
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 0.75rem;
}

.post-comment-nested-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0 0 0 12px;
  border-left: 2px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.post-comment-nested-list .post-comment-item {
  gap: 8px;
}

.post-comment-nested-reply {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.post-comment-nested-reply[hidden] {
  display: none !important;
}

.post-comment-nested-actions {
  justify-content: flex-end;
}

.post-comments-empty {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.post-comment-composer {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.post-comment-input {
  resize: none;
  min-height: 40px;
  border-radius: var(--radius);
  background: transparent;
  border-color: var(--border-subtle);
}

.post-comment-composer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.post-comments-thread {
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: none;
}

.post-comments-thread:hover {
  color: var(--accent);
}

.action-btn.btn-share:hover {
  color: var(--success);
  background: var(--success-soft);
}

.action-btn.btn-save:hover {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
}

.action-btn.btn-save.active {
  color: #f59e0b;
}

.action-btn.btn-save.active .action-icon {
  fill: #f59e0b;
  stroke: #f59e0b;
}

@keyframes heartPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

.profile-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.1rem;
  margin-top: 0.85rem;
  font-size: 0.88rem;
}

/* Perfil ? grade de publicações (mobile-first, max ~935px) */
.profile-grid-layout {
  width: 100%;
  max-width: 935px;
  margin: 0 auto;
  padding: 0.5rem 0 2rem;
}

.profile-grid-header {
  padding: 0 1rem 0.75rem;
}

.profile-grid-top {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-bottom: 0.85rem;
}

.profile-grid-avatar-wrap {
  flex-shrink: 0;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  padding: 2px;
  background: var(--surface-solid);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.profile-grid-avatar-wrap .avatar-squircle,
.profile-grid-avatar-img.avatar-squircle {
  border-radius: 22%;
}

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

.profile-grid-avatar-fallback {
  width: 100%;
  height: 100%;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-grid-stats {
  flex: 1;
  display: flex;
  justify-content: space-around;
  gap: 0.5rem;
  min-width: 0;
}

.profile-grid-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
}

.profile-grid-stat-value {
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.2;
}

.profile-grid-stat-label {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.25;
}

.profile-grid-handle {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.profile-grid-verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
}

.profile-grid-display-name {
  margin: 0.15rem 0 0;
  font-size: 0.92rem;
  font-weight: 600;
}

.profile-grid-bio {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  white-space: pre-wrap;
}

.profile-grid-self-badge {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
}

.profile-grid-meta-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.5rem;
}

.profile-grid-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.profile-grid-btn {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
  padding: 0.45rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  line-height: 1.25;
}

.profile-grid-btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.profile-grid-btn-outline {
  background: transparent;
}

.profile-grid-btn.is-following {
  color: var(--muted);
}

.profile-grid-disclaimer {
  margin-top: 0.65rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.65rem;
  font-size: 0.85rem;
}

.profile-grid-disclaimer summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.profile-grid-disclaimer summary::-webkit-details-marker {
  display: none;
}

.profile-grid-disclaimer-body {
  margin-top: 0.5rem;
}

.profile-grid-mod-actions {
  margin-top: 0.5rem;
  font-size: 0.82rem;
}

.profile-grid-mod-actions-body {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.45rem;
}

.profile-grid-tabs {
  display: flex;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: 0.25rem;
}

.profile-grid-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.5rem;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.profile-grid-tab.active {
  color: var(--text);
  border-bottom-color: var(--text);
}

.profile-grid-tab-icon {
  display: block;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0 4px;
  background: transparent;
}

.profile-grid-item {
  position: relative;
  aspect-ratio: 1;
  background: var(--surface-soft);
  overflow: hidden;
  display: block;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--elevation-1);
}

.profile-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-grid-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--muted);
  background: linear-gradient(145deg, var(--surface-soft), var(--surface-solid));
}

.profile-grid-pin {
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 0.75rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.profile-grid-empty {
  padding: 2.5rem 1rem;
  text-align: center;
}

.profile-grid-about {
  padding: 0.75rem 1rem 1.5rem;
}

.profile-grid-about-heading {
  margin: 1.25rem 0 0.5rem;
  font-size: 0.95rem;
}

.profile-grid-official-note {
  margin: 0 0 0.65rem;
  font-size: 0.85rem;
}

.profile-grid-not-found-card {
  margin: 0 1rem;
}

.profile-grid-conflict {
  margin-top: 0.65rem;
}

@media (min-width: 768px) {
  .profile-grid-top {
    gap: 2.5rem;
  }

  .profile-grid-avatar-wrap {
    width: 150px;
    height: 150px;
  }

  .profile-grid-actions {
    max-width: 420px;
  }

  .profile-grid-btn {
    flex: 0 1 auto;
  }
}

/* Perfil Pro com Banner Cover & Overlap */
.profile-card {
  overflow: hidden;
  position: relative;
  padding: 0 0 16px;
}

.profile-cover {
  height: 100px;
  background: linear-gradient(
    135deg,
    rgba(43, 95, 184, 0.22) 0%,
    rgba(31, 168, 85, 0.18) 55%,
    rgba(245, 196, 0, 0.14) 100%
  );
  border-bottom: 1px solid var(--border);
  position: relative;
}

.profile-header-body {
  padding: 0 16px;
  position: relative;
}

.profile-avatar-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: -38px;
  margin-bottom: 10px;
}

.profile-avatar-wrap {
  border-radius: 50%;
  padding: 3px;
  background: var(--surface-solid);
  display: inline-flex;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.profile-title {
  margin: 0;
  font-size: 1.25rem;
}

.profile-route-id {
  margin: 3px 0 0;
  word-break: break-all;
}

.demo-badge {
  background: var(--signal-soft);
  color: var(--warning);
  border: 1px solid var(--warning-border);
  font-size: 0.72rem;
}

.profile-pix-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  margin-top: 8px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--text);
}

.pix-badge-icon {
  color: var(--accent);
  font-size: 0.95rem;
}

.pix-badge-link {
  font-size: 0.78rem;
  margin-left: 4px;
  text-decoration: underline;
}

/* Formulário Pix e Lookup */
.pix-section {
  margin-top: 0.75rem;
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}

.pix-label {
  font-size: 0.85rem;
  font-weight: 600;
  display: block;
  margin-bottom: 0.25rem;
}

.pix-desc {
  font-size: 0.8rem;
  margin: 0 0 0.4rem;
}

.pix-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pix-form input {
  flex: 1;
  min-width: 200px;
}

.pix-feedback {
  font-size: 0.82rem;
  margin-top: 0.3rem;
}

.pix-lookup-card {
  padding: 1.5rem;
}

.pix-lookup-header {
  margin-bottom: 0.5rem;
}

.post-actions,
.post-toolbar {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 6px;
}

.post-action-btn {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.82rem;
  transition: all 0.15s ease;
}

.post-action-btn:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

/* Feed Container Sem Caixa */
.feed-container {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  max-width: var(--feed-max, 500px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--feed-post-gap);
}

/* Grade de descoberta de comunidades (cartões compactos) */
.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.community-card {
  background: var(--surface-1);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--elevation-1), var(--paper-highlight);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: no-preference) {
  .community-card:hover {
    border-color: var(--outline);
    box-shadow: var(--elevation-2);
    transform: translateY(-2px);
  }
}

.community-cover-strip {
  height: 6px;
  width: 100%;
}

.community-card-body {
  padding: 14px 16px 0;
}

.community-card h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 700;
}

.community-card p.desc {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.community-card-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 12px;
  padding: 8px 16px 12px;
  border-top: 1px solid var(--border-subtle);
}

/* Comunidades ? fórum cívico Vox (carbono/pergaminho), sem feed social */
.community-vox-card-list {
  display: flex;
  overflow: hidden;
  padding: 0;
}

.community-vox-card-accent {
  flex: 0 0 5px;
  background: var(--community-accent, var(--brand-chrome));
}

.community-vox-card-main {
  flex: 1;
  min-width: 0;
  padding: 1rem 1.1rem 1rem;
}

.community-vox-card-title {
  text-decoration: none;
  color: inherit;
}

.community-vox-card-title h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
}

.community-vox-card-members,
.community-vox-card-type {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.community-vox-card-desc {
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.community-vox-card-actions {
  margin-top: 0.75rem;
  display: flex;
  justify-content: flex-end;
}

.community-vox-enter-btn {
  background: color-mix(in srgb, var(--brand-green) 88%, var(--brand-chrome));
  color: #fff;
  border: 1px solid color-mix(in srgb, var(--brand-green) 70%, #000);
  border-radius: 999px;
  font-weight: 600;
}

.community-vox-enter-btn:hover {
  filter: brightness(1.05);
  color: #fff;
}

.community-vox-page {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}

.community-vox-neighbor {
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-subtle);
  background: color-mix(in srgb, var(--surface) 92%, var(--brand-green) 8%);
}

.community-vox-neighbor-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 650;
}

.community-vox-neighbor-body {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  line-height: 1.45;
}

.community-vox-neighbor-read {
  display: block;
  margin-top: 0.25rem;
}

.community-vox-neighbor-alert {
  margin: 0 0 0.65rem;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--warn-bg, #fef3c7) 85%, transparent);
  font-size: 0.85rem;
}

.community-vox-neighbor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.35rem;
}

.community-vox-mirror-hint {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
}

.community-vox-mirror-hint--warn {
  color: var(--color-warning, #b45309);
}

.community-vox-neighbor-foot {
  margin: 0;
  font-size: 0.75rem;
}

.community-vox-seed {
  padding: 0.85rem 1rem;
  border: 1px dashed var(--border);
}

.community-vox-seed-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.community-vox-seed-title {
  margin: 0;
  font-size: 1rem;
}

.community-seed-steps {
  margin: 0.5rem 0 0.75rem;
  padding-left: 1.25rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.community-seed-step.is-done {
  color: var(--muted);
}

.community-vox-header {
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--elevation-1);
}

.community-vox-accent-rail {
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--community-accent, var(--brand-chrome)) 0%,
    color-mix(in srgb, var(--community-accent, var(--brand-chrome)) 55%, var(--brand-green)) 100%
  );
}

.community-vox-header-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  justify-content: space-between;
  align-items: flex-end;
  padding: 1rem 1.15rem 0.85rem;
}

.community-vox-header-copy {
  flex: 1 1 220px;
  min-width: 0;
}

.community-vox-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.community-vox-name {
  margin: 0;
  font-size: clamp(1.25rem, 4vw, 1.55rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.community-vox-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.55rem 0 0;
  padding: 0;
  list-style: none;
}

.community-vox-chip {
  margin: 0;
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-2, var(--surface-1));
  color: var(--muted);
}

.community-vox-chip-accent {
  color: var(--brand-chrome);
  border-color: color-mix(in srgb, var(--brand-chrome) 35%, var(--border-subtle));
  background: color-mix(in srgb, var(--brand-chrome) 8%, var(--surface-1));
}

.community-vox-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  justify-content: flex-end;
  flex: 0 1 auto;
}

.community-vox-about {
  margin: 0 1.15rem 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: color-mix(in srgb, var(--community-accent, var(--brand-chrome)) 4%, var(--surface-1));
}

.community-vox-desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text);
}

.community-vox-owner {
  margin: 0.45rem 0 0;
  font-size: 0.8rem;
}

.community-vox-join-pill {
  border: none;
  border-radius: 999px;
  padding: 0.5rem 1.15rem;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  background: var(--brand-chrome);
  color: #fff;
  box-shadow: 0 1px 0 color-mix(in srgb, var(--brand-chrome) 35%, #000);
}

.community-vox-join-pill:hover {
  filter: brightness(1.06);
}

.community-vox-join-pill.is-member {
  background: var(--brand-green);
  cursor: default;
}

.community-vox-recado {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--brand-chrome) 22%, var(--outline));
  background: color-mix(in srgb, var(--brand-chrome) 6%, var(--surface-1));
  box-shadow: none;
}

.community-vox-recado-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}

.community-vox-recado-icon {
  font-size: 1.1rem;
}

.community-vox-recado-body {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
}

.community-vox-nav {
  position: sticky;
  top: 0;
  z-index: 12;
  margin: 0;
  padding: 0.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--border-subtle);
}

.community-vox-nav .tab-btn {
  flex: 1;
  text-align: center;
  border-radius: var(--radius-sm);
}

.community-vox-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, min(300px, 32%));
  gap: 1rem 1.35rem;
  align-items: start;
}

.community-vox-layout > .community-vox-feed,
.community-vox-layout > .community-vox-aside {
  min-width: 0;
}

@media (max-width: 820px) {
  .community-vox-layout {
    grid-template-columns: 1fr;
  }

  .community-vox-toolbar {
    width: 100%;
    justify-content: stretch;
  }

  .community-vox-toolbar .community-vox-join-pill,
  .community-vox-toolbar .btn {
    flex: 1 1 auto;
    justify-content: center;
    text-align: center;
  }

  .community-vox-aside {
    position: static;
  }
}

.community-vox-sidebar {
  padding: 0.9rem 1rem 1rem;
}

.community-vox-aside {
  position: sticky;
  top: 3.5rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--elevation-1);
  overflow: hidden;
  box-sizing: border-box;
  container-type: inline-size;
  container-name: community-aside;
}

.community-vox-sidebar.card {
  padding: 0.85rem 0.9rem 0.95rem;
}

.community-vox-sidebar-block + .community-vox-sidebar-block {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
}

.community-vox-sidebar-title {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.community-vox-sidebar-hint {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.community-vox-online-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem 0.35rem;
  width: 100%;
  box-sizing: border-box;
}

@container community-aside (max-width: 11.5rem) {
  .community-vox-online-grid:not(.community-vox-online-grid--tab) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.community-vox-posts-wrap {
  width: 100%;
  min-width: 0;
}

.community-vox-members-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0;
  border: none;
  background: transparent;
}

.community-vox-members-panel .card {
  padding: 1rem 1.1rem 1.15rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--elevation-1);
}

.community-vox-members-head {
  margin-bottom: 0.65rem;
}

.community-vox-members-title {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.community-vox-online-grid--tab {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem 0.55rem;
  max-width: 36rem;
}

@media (max-width: 520px) {
  .community-vox-online-grid--tab {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
  }
}

.community-vox-online-grid--tab .community-vox-online-face {
  padding: 0.55rem 0.35rem;
  font-size: 0.82rem;
}

.community-vox-online-grid--tab .community-vox-online-face .avatar-wrap,
.community-vox-online-grid--tab .community-vox-online-face .avatar-wrap .avatar-img,
.community-vox-online-grid--tab .community-vox-online-face .avatar {
  width: min(100%, 3rem);
  height: min(100%, 3rem);
  max-width: 3rem;
  max-height: 3rem;
  font-size: 0.85rem;
}

.community-vox-stat-dl--wide {
  max-width: 22rem;
}

.community-vox-online-face {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
  max-width: 100%;
  padding: 0.3rem 0.15rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 0.72rem;
  color: var(--text);
  text-align: center;
  line-height: 1.2;
  box-sizing: border-box;
  transition: background 0.12s ease;
}

.community-vox-online-face .avatar-wrap,
.community-vox-online-face .avatar-wrap .avatar-img,
.community-vox-online-face .avatar {
  width: min(100%, 2.25rem);
  height: min(100%, 2.25rem);
  max-width: 2.25rem;
  max-height: 2.25rem;
  font-size: 0.72rem;
}

.community-vox-online-face .avatar-wrap {
  flex-shrink: 1;
}

.community-vox-online-face:hover {
  color: var(--brand-chrome);
  background: color-mix(in srgb, var(--brand-chrome) 6%, var(--surface-1));
}

.community-vox-online-name {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-vox-online-empty {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.community-vox-feed {
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.community-vox-feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  background: color-mix(in srgb, var(--surface-2, var(--surface-1)) 80%, var(--surface-1));
}

.community-vox-feed-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
}

.community-vox-topic-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.community-vox-topic-list .community-topic-row {
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--border-subtle);
  background: transparent;
}

.community-vox-topic-list .community-topic-row:last-child {
  border-bottom: none;
}

.community-vox-empty {
  padding: 1.5rem 1rem;
  text-align: center;
}

.community-topic-row {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  transition: background 0.12s ease;
}

.community-topic-row:hover {
  background: color-mix(in srgb, var(--brand-chrome) 5%, var(--surface-1));
}

.community-topic-row-body {
  flex: 1;
  min-width: 0;
}

.community-topic-row-title {
  margin: 0 0 0.25rem;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.3;
}

.community-topic-row-title a {
  color: var(--text);
  text-decoration: none;
}

.community-topic-row-title a:hover {
  color: var(--brand-chrome);
  text-decoration: underline;
}

.community-topic-row-meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.35rem;
}

.community-topic-row-author {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.community-topic-row-author:hover {
  color: var(--brand-chrome);
}

.community-topic-row-dot {
  opacity: 0.65;
}

.community-topic-row-excerpt {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text);
  opacity: 0.88;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.community-topic-row-thumb {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.community-topic-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.community-vox-panel {
  padding: 0.85rem 1rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  background: var(--surface-1);
  margin-bottom: 1rem;
}

.community-vox-panel .gov-info-card {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: color-mix(in srgb, var(--brand-green) 4%, var(--surface-1));
}

.community-vox-panel-feed .post-card.card,
.community-vox-panel-feed .listing-card,
.community-vox-panel-feed .proposal-card {
  border: 1px solid var(--border-subtle);
  box-shadow: none;
}

.community-vox-topics-bar {
  margin-bottom: 0.5rem;
}

.community-vox-stat-dl {
  margin: 0;
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
}

.community-vox-stat-dl div {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.community-vox-stat-dl dt {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
}

.community-vox-stat-dl dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

/* Tópicos e Threads Estilo X */
.topic-root {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
}

.topic-root h2 {
  font-size: 1.35rem;
  margin: 8px 0;
  line-height: 1.3;
}

.thread-replies {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.reply-item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

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

.thread-line {
  position: absolute;
  top: 48px;
  left: 36px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

/* Lista de DMs (inbox compacto) */
.dm-inbox-list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.dm-inbox-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text);
  text-decoration: none;
  transition: background 0.12s ease;
}

.dm-inbox-item:hover {
  background: var(--surface-soft);
  text-decoration: none;
}

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

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

.dm-inbox-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}

.dm-inbox-peer {
  font-weight: 700;
  font-size: 0.92rem;
}

.dm-inbox-preview {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Thread DM Aberta (Full Height Glass) */
.dm-thread-container {
  display: flex;
  flex-direction: column;
  height: calc(100dvh - 140px);
  background: var(--surface-1);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.dm-thread-header {
  padding: 10px 14px;
  border-bottom: 1px solid var(--outline);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface-2);
}

.dm-thread-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dm-bubble {
  max-width: 78%;
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  line-height: 1.4;
  word-break: break-word;
}

.dm-bubble.sent {
  align-self: flex-end;
  background: var(--brand-navy);
  color: #fff;
  border-bottom-right-radius: 4px;
  box-shadow: var(--elevation-1);
  border: none;
}

.dm-bubble.received {
  align-self: flex-start;
  background: var(--surface-soft);
  color: var(--text);
  border-bottom-left-radius: 4px;
  border: 1px solid var(--border-subtle);
}

.dm-bubble-meta {
  font-size: 0.7rem;
  opacity: 0.75;
  margin-top: 3px;
  text-align: right;
}

.dm-form-sticky {
  padding: 10px 12px;
  border-top: 1px solid var(--outline);
  background: var(--surface-2);
  display: flex;
  gap: 8px;
}

/* Elementos Padrão / Glass Cards */
.card {
  background: var(--surface-1);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  box-shadow: var(--elevation-1), var(--paper-highlight);
  margin-bottom: 0.85rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .card:hover {
    border-color: var(--outline);
    box-shadow: var(--elevation-2);
  }
}

.card h2, .card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.card .meta {
  font-size: 0.8rem;
  color: var(--muted);
  word-break: break-all;
}

.card .desc {
  margin: 0.45rem 0 0;
  font-size: 0.92rem;
}

.actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1rem 0 0.65rem;
}

.section-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.actions-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.card-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  background: var(--surface-soft);
  color: var(--text);
  text-decoration: none;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn:hover {
  text-decoration: none;
  background: var(--surface-soft);
  border-color: var(--border);
}

.btn:active:not(:disabled) {
  transform: scale(0.97);
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--brand-navy);
  color: var(--on-accent);
  border-color: transparent;
  box-shadow: var(--elevation-1);
}

.btn-primary:hover {
  filter: brightness(1.08);
  box-shadow: var(--elevation-2);
  color: var(--on-accent);
  background: var(--brand-chrome-hover);
}

.btn-secondary {
  background: var(--success);
  color: var(--on-accent);
}

.btn-secondary:hover {
  filter: brightness(1.06);
  color: var(--on-accent);
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-outline:hover {
  background: var(--surface-soft);
  border-color: var(--muted);
}

.btn-danger {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: transparent;
}

.btn-danger:hover {
  background: var(--danger);
  color: #fff;
}

.btn-sm {
  padding: 0.25rem 0.6rem;
  font-size: 0.78rem;
}

/* Formulários */
.form-group {
  margin-bottom: 0.85rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.84rem;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.form-control {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--surface);
  color: var(--text);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

/* Pills e Badges */
.pill {
  display: inline-block;
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  border: 1px solid var(--border);
  vertical-align: middle;
}

.badge-pill {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.p2p-pill {
  background: var(--success-soft);
  color: var(--success);
  border: 1px solid color-mix(in srgb, var(--success) 28%, transparent);
  font-size: 0.72rem;
  padding: 1px 6px;
}

.permanent-pill {
  background: var(--surface-soft);
  color: var(--muted);
  border: 1px solid var(--outline);
  font-size: 0.72rem;
  padding: 1px 6px;
}

.gossip-edited-pill {
  background: var(--accent-soft);
  color: var(--accent-hover);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  font-size: 0.72rem;
  padding: 1px 6px;
}

.post-gossip-deleted {
  opacity: 0.85;
  border-style: dashed;
}

.post-gossip-deleted-msg {
  margin: 0;
  padding: 1rem 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

/* Banners e Alertas */
.banner {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.banner.demo {
  background: rgba(234, 179, 8, 0.1);
  border-color: rgba(234, 179, 8, 0.3);
  color: var(--text);
}

.empty, .loading {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--muted);
}

.empty {
  padding: 3rem 1.5rem;
  background: var(--surface-1);
  border: 1px dashed var(--outline);
  border-radius: var(--radius);
  margin: 1rem auto;
  max-width: var(--feed-max, 500px);
  box-shadow: var(--elevation-1);
}

.error {
  background: var(--danger-soft);
  border: 1px solid var(--danger-soft);
  color: var(--danger);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.back-link:hover {
  color: var(--text);
}

/* Progressive Disclosure (Avançado) */
.advanced-settings {
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  margin-top: 1rem;
}

.advanced-settings summary {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 0;
  user-select: none;
}

.advanced-settings summary:hover {
  color: var(--text);
}

/* Skeleton Loaders */
.skeleton-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skeleton-item {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skeleton-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.skeleton-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--surface-soft) 25%, var(--border) 50%, var(--surface-soft) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.6s ease-in-out infinite;
}

.skeleton-line {
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--surface-soft) 25%, var(--border) 50%, var(--surface-soft) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.6s ease-in-out infinite;
  width: 100%;
}

.skeleton-line-sm {
  width: 35%;
  height: 12px;
}

.skeleton-line-lg {
  width: 80%;
  height: 16px;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* OAuth enrich — botões estilo GIS / Meta (ADR-002) */
.oauth-enrich-dialog {
  max-width: 420px;
  padding: 1.35rem 1.25rem 1.15rem;
  border-top: 3px solid var(--brand-green);
}

.oauth-enrich-title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.oauth-enrich-lead {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.45;
}

.oauth-enrich-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.oauth-enrich-error {
  margin: 0 0 0.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm, 8px);
  font-size: 0.875rem;
  line-height: 1.4;
  color: #fecaca;
  background: rgba(220, 38, 38, 0.18);
  border: 1px solid rgba(248, 113, 113, 0.45);
}

.oauth-enrich-error:empty,
.oauth-enrich-error[hidden] {
  display: none;
}

.oauth-btn[aria-busy="true"] {
  opacity: 0.72;
  cursor: wait;
}

.oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.oauth-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.oauth-btn__icon {
  flex-shrink: 0;
}

.oauth-btn--google {
  background: #fff;
  color: #1f1f1f;
  border: 1px solid #747775;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.oauth-btn--google:hover {
  background: #f8f8f8;
  border-color: #5f6368;
}

.oauth-btn--meta {
  background: #1877f2;
  color: #fff;
  border: 1px solid #1877f2;
}

.oauth-btn--meta:hover {
  background: #166fe5;
  border-color: #166fe5;
}

.oauth-btn--github {
  background: #24292f;
  color: #fff;
  border: 1px solid #24292f;
}

.oauth-btn--github:hover {
  background: #1b1f23;
  border-color: #1b1f23;
  color: #fff;
}

.oauth-btn--skip {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  font-weight: 500;
}

.oauth-btn--skip:hover {
  background: var(--surface-soft);
}

.oauth-enrich-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.85rem 0;
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: lowercase;
}

.oauth-enrich-divider::before,
.oauth-enrich-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

.oauth-enrich-error {
  margin: 0.75rem 0 0;
  padding: 0.55rem 0.65rem;
  font-size: 0.84rem;
  line-height: 1.35;
  color: var(--danger);
  background: color-mix(in srgb, var(--danger) 12%, transparent);
  border: 1px solid var(--danger);
  border-radius: var(--radius-sm);
}

.oauth-enrich-error[hidden] {
  display: none !important;
}

.oauth-enrich-legal {
  margin: 0.85rem 0 0;
  font-size: 0.75rem;
  line-height: 1.4;
}

@media (prefers-color-scheme: dark) {
  .oauth-btn--google {
    background: #fff;
    color: #1f1f1f;
    border-color: #8e918f;
  }

  .oauth-btn--meta {
    background: #1877f2;
    color: #fff;
  }
}

/* Modal Onboarding — opaque scrim + paper cards (no glass / purple wash) */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1rem;
}

.modal-sheet {
  background: rgba(0, 0, 0, 0.5);
}

.modal-sheet--raised {
  z-index: 10001;
}

.modal-dialog {
  background: var(--surface-1);
  color: var(--text);
  border-radius: calc(var(--radius) + 2px);
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--elevation-3), var(--paper-highlight);
  border: 1px solid var(--outline);
  padding: 1.5rem;
  animation: modalPop 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-card {
  background: var(--surface-2);
  border: 1px solid var(--outline);
  box-shadow: var(--elevation-2);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.modal-card--narrow {
  max-width: 420px;
}

.modal-card-title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.modal-card-lead {
  margin: 0 0 0.75rem;
}

.modal-connect-url {
  word-break: break-all;
  margin: 0;
}

.modal-card-header {
  margin-bottom: 1rem;
}

.modal-card-header--center {
  text-align: center;
}

.modal-card-heading {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
}

.modal-card-intro {
  margin: 0;
}

.modal-feature-desc {
  margin: 0.2rem 0 0;
}

.modal-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.modal-actions--stack {
  flex-direction: column;
  margin-top: 1.25rem;
}

.modal-actions--row {
  margin-top: 1rem;
}

.modal-card .btn-primary,
.modal-sheet .btn-primary.btn-pact-continue,
.modal-sheet .btn-primary.btn-cantina-enter {
  background: var(--brand-green);
  color: var(--on-accent);
  border-color: transparent;
  box-shadow: var(--elevation-1);
}

.modal-card .btn-primary:hover,
.modal-sheet .btn-primary.btn-pact-continue:hover,
.modal-sheet .btn-primary.btn-cantina-enter:hover {
  background: #19924c;
  filter: none;
  color: var(--on-accent);
}

.btn-pact-continue {
  padding: 0.65rem;
  font-weight: 700;
}

.btn-pact-settings {
  padding: 0.5rem;
  font-size: 0.85rem;
}

.btn-cantina-enter-lg {
  padding: 0.75rem;
  font-weight: 700;
  font-size: 1rem;
}

.cantina-details {
  font-size: 0.82rem;
  margin-top: 0.35rem;
  cursor: pointer;
}

.cantina-details-summary {
  color: var(--muted);
  text-align: center;
  list-style: none;
}

.cantina-details-body {
  margin: 0.4rem 0 0;
  text-align: left;
  font-size: 0.8rem;
  background: var(--surface-1);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--outline);
}

.modal-dialog-solid {
  background: var(--surface-2);
  border: 1px solid var(--outline);
  box-shadow: var(--elevation-2);
}

.post-edit-dialog {
  max-width: 480px;
  padding: 1.25rem;
}

.post-edit-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.post-edit-title {
  margin: 0;
  font-size: 1.1rem;
}

.post-edit-close {
  border: none;
  padding: 4px 8px;
  font-size: 1.1rem;
}

.post-edit-label {
  font-size: 0.82rem;
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

.post-edit-textarea {
  margin-bottom: 0.35rem;
}

.post-edit-char {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
}

.post-edit-remove-image {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  margin: 0.5rem 0 0;
}

.post-edit-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 1rem;
}

.post-owner-menu {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Porta da Cantina (Gate Cultural Anti-Bot) */
.cantina-dialog {
  max-width: 520px;
  padding: 0 1.25rem 1.25rem;
  text-align: center;
  overflow: hidden;
  border-color: var(--outline);
  box-shadow: var(--elevation-3);
}

.zap-modal-dialog {
  max-width: 440px;
  width: 100%;
  padding: 1.5rem;
}

.cantina-art-wrap {
  position: relative;
  display: block;
  width: calc(100% + 2.5rem);
  max-width: none;
  margin: 0 -1.25rem 1rem;
  background: #1c1612;
  overflow: hidden;
  aspect-ratio: 1024 / 575;
  max-height: min(52vh, 380px);
}

.cantina-art-img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 76% 16%;
}

.cantina-desc {
  margin: 0 0 0.25rem;
}

@media (prefers-reduced-motion: no-preference) {
  .cantina-art-img {
    animation: cantinaArtIn 0.45s ease;
  }
}

@keyframes cantinaArtIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.cantina-btn-enter {
  box-shadow: var(--elevation-2);
}

.pact-feature,
.modal-feature {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  align-items: flex-start;
  background: var(--surface-1);
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--outline);
}

.pact-feature-icon,
.modal-feature-icon {
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
}

.usage-meter {
  background: var(--border);
  border-radius: 999px;
  height: 6px;
  overflow: hidden;
  margin-top: 0.35rem;
  width: 100%;
}

.usage-fill {
  background: var(--accent);
  height: 100%;
  border-radius: 999px;
  transition: width 0.3s ease;
}

/* Welcome via DM — feed hint + thread intro */
.welcome-feed-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0 0 0.65rem;
  padding: 0.45rem 0.65rem;
  font-size: 0.84rem;
  border-radius: var(--radius-md, 8px);
  border: 1px solid var(--border);
  background: var(--surface-soft, var(--surface));
}

.welcome-feed-hint-text a {
  font-weight: 600;
}

.welcome-feed-hint-dismiss {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: var(--text-muted, var(--text));
  font-size: 1.25rem;
  line-height: 1;
  padding: 0 0.15rem;
  cursor: pointer;
  opacity: 0.7;
}

.welcome-feed-hint-dismiss:hover {
  opacity: 1;
}

.dm-welcome-intro {
  margin: 0.75rem 0;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
}

/* Toast */
.vox-toast {
  position: fixed;
  bottom: 4.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.84rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  /* Above .modal-overlay (10000) so errors show during onboarding modals */
  z-index: 10050;
}

.vox-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.vox-toast.error {
  background: var(--danger);
  color: #fff;
  border: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}

/* Feira Comunitária e Classificados (Fase M1) */
.community-tabs {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0 1.25rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.35rem;
}

.community-tabs .tab-btn {
  padding: 0.45rem 0.9rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
  text-decoration: none;
}

.community-tabs .tab-btn:hover {
  color: var(--text);
  background: var(--surface-soft);
  text-decoration: none;
}

.community-tabs .tab-btn.active {
  color: var(--text);
  background: var(--surface-1);
  border: 1px solid var(--outline);
  box-shadow: var(--elevation-1);
  font-weight: 700;
}

.listing-card {
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.listing-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin: 0.65rem 0 0.45rem;
  flex-wrap: wrap;
}

.listing-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: #10b981;
  text-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
  letter-spacing: -0.02em;
}

.listing-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  flex: 1 1 200px;
}

.listing-body {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.listing-location-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.75rem;
  color: var(--muted);
  padding: 1px 6px;
  background: var(--surface-soft);
  border-radius: var(--radius-sm);
}

.listing-verified-pill {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald, #10b981);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.listing-owner-block {
  margin: 0 0 0.5rem;
  padding: 0 1rem;
}

.listing-owner-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  align-items: center;
  font-size: 0.82rem;
}

.listing-owner-menu-label {
  color: var(--text-muted);
  margin-right: 4px;
}

.listing-owner-menu .btn-listing-status.is-active {
  font-weight: 600;
  text-decoration: underline;
}

.listing-status-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}

.listing-status-pill.status-available {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.listing-status-pill.status-reserved {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.listing-status-pill.status-sold {
  background: rgba(107, 114, 128, 0.15);
  color: #9ca3af;
  border: 1px solid rgba(107, 114, 128, 0.3);
}

.listing-footer-disclaimer {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  margin: 1.5rem 0 1rem;
  font-style: italic;
}

.btn-copy-pix {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

/* UI v3: Post-Card Star & Copy Markdown */
.action-btn.btn-star:hover {
  color: #eab308;
  background: rgba(234, 179, 8, 0.1);
}

.action-btn.btn-star.active {
  color: #eab308;
}

.action-btn.btn-star.active .action-icon {
  animation: starPop 0.25s cubic-bezier(0.17, 0.89, 0.32, 1.49);
  fill: #eab308;
  stroke: #eab308;
}

@keyframes starPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.35) rotate(15deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.action-btn.btn-copy-md:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

/* UI v3: Feed Segmented Nav (Para você | Seguindo) */
.feed-segmented-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--surface-soft);
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
}

.feed-tab {
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.15s ease;
  user-select: none;
}

.feed-tab:hover {
  color: var(--text);
  text-decoration: none;
}

.feed-tab.active {
  color: var(--text);
  background: var(--surface-card);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

/* Badges e Pinned Posts */
.pinned-pill {
  background: rgba(234, 179, 8, 0.12);
  color: #ca8a04;
  border: 1px solid rgba(234, 179, 8, 0.3);
  font-weight: 600;
}

/* GitHub Badge no Perfil */
.profile-github-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  margin-top: 0.4rem;
}

.profile-github-badge .github-badge-icon {
  display: inline-flex;
  align-items: center;
  color: var(--text);
}

.gh-pill {
  background: rgba(53, 132, 228, 0.15);
  color: var(--accent);
  font-size: 0.7rem;
  padding: 1px 6px;
}

/* GitHub UX: README.md no Perfil */
.profile-readme {
  padding: 14px 16px;
  border: 1px solid var(--border-glow);
  background: var(--surface-card);
  border-radius: var(--radius);
}

.readme-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 10px;
  font-size: 0.88rem;
}

.readme-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.readme-body {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text);
}

.readme-body h2,
.readme-body h3,
.readme-body h4 {
  margin: 10px 0 4px;
}

.readme-body p {
  margin: 4px 0 6px;
}

.readme-body ul,
.readme-body li {
  margin-left: 18px;
  list-style: disc;
}

.readme-body strong {
  color: var(--text);
  font-weight: 600;
}

.readme-body code {
  background: var(--surface-soft);
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 0.84rem;
}

.following-empty {
  padding: 2.5rem 1.5rem;
  text-align: center;
}

/* Governança Comunitária FOSS (G1) */
.gov-info-card {
  background: var(--surface-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius);
}

.proposal-card {
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.proposal-meta-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.status-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.status-pill.status-open {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-pill.status-merged {
  background: rgba(147, 51, 234, 0.15);
  color: #a855f7;
  border: 1px solid rgba(147, 51, 234, 0.3);
}

.status-pill.status-rejected {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-pill.status-expired {
  background: rgba(107, 114, 128, 0.15);
  color: #9ca3af;
  border: 1px solid rgba(107, 114, 128, 0.3);
}

.diff-viewer {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.85rem;
  line-height: 1.5;
  background: #0d1117;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
  padding: 0.5rem 0;
  margin: 1rem 0;
}

.diff-line {
  padding: 0.1rem 0.75rem;
  white-space: pre-wrap;
  word-break: break-all;
}

.diff-line-add {
  background: rgba(16, 185, 129, 0.18);
  color: #3fb950;
}

.diff-line-del {
  background: rgba(239, 68, 68, 0.18);
  color: #f85149;
}

.diff-line-hunk {
  background: rgba(56, 139, 253, 0.15);
  color: #58a6ff;
  font-weight: 600;
}

.diff-line-ctx {
  color: #c9d1d9;
}

.tally-container {
  margin: 1rem 0;
  padding: 1rem;
  background: var(--surface-soft);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.tally-bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  overflow: hidden;
  margin: 0.75rem 0;
  border: 1px solid var(--border);
}

.tally-segment {
  height: 100%;
  transition: width 0.3s ease;
}

.tally-segment.tally-yes {
  background: #10b981;
}

.tally-segment.tally-no {
  background: #ef4444;
}

.tally-segment.tally-abstain {
  background: #9ca3af;
}

.tally-stats-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.vote-action-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.vote-btn {
  flex: 1;
  min-width: 120px;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface-card);
  color: var(--text);
  transition: all 0.2s ease;
}

.vote-btn:hover {
  background: var(--surface-soft);
  border-color: var(--border-glow);
}

.vote-btn.selected {
  outline: 2px solid var(--accent);
  border-color: var(--accent);
  box-shadow: var(--elevation-1);
}

.vote-btn-yes {
  border-color: rgba(16, 185, 129, 0.4);
}

.vote-btn-yes.selected {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  outline-color: #10b981;
}

.vote-btn-no {
  border-color: rgba(239, 68, 68, 0.4);
}

.vote-btn-no.selected {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  outline-color: #ef4444;
}

.vote-btn-abstain {
  border-color: rgba(107, 114, 128, 0.4);
}

.vote-btn-abstain.selected {
  background: rgba(107, 114, 128, 0.2);
  color: #9ca3af;
  outline-color: #9ca3af;
}

.banner-warning {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #f59e0b;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  margin: 0.75rem 0;
}

.banner-info {
  background: rgba(53, 132, 228, 0.12);
  border: 1px solid rgba(53, 132, 228, 0.3);
  color: var(--accent);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  margin: 0.75rem 0;
}

.votes-table {
  width: 100%;
  font-size: 0.82rem;
  border-collapse: collapse;
  margin-top: 0.5rem;
}

.votes-table th,
.votes-table td {
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
}

.votes-table th {
  color: var(--muted);
  font-weight: 600;
}

/* Pix Zaps (v6.0) */
.btn-zap-post {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #eab308;
  transition: all 0.15s ease;
}

.btn-zap-post:hover {
  color: #facc15;
  transform: scale(1.05);
}

.icon-zap {
  stroke: #eab308;
  fill: rgba(234, 179, 8, 0.15);
}

.btn-zap-post.disabled {
  color: var(--muted);
  opacity: 0.35;
}

.btn-zap-post.disabled .icon-zap {
  stroke: var(--muted);
  fill: none;
}

.zap-amount-buttons {
  display: flex;
  gap: 6px;
  margin-bottom: 0.75rem;
}

.zap-amount-buttons .btn {
  flex: 1;
  text-align: center;
}

.zap-disclaimer {
  font-size: 0.76rem;
  line-height: 1.4;
  margin: 0;
  padding: 0.5rem 0.75rem;
}

/* Hashtags Gossip / Willow prefix discovery */
.hashtag-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  padding: 1px 3px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.hashtag-link:hover,
.hashtag-link:focus-visible {
  color: var(--accent-hover, #38bdf8);
  background-color: var(--surface-soft, rgba(255, 255, 255, 0.08));
  text-decoration: underline;
}

.tag-feed-header {
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

/* Open Frames (v6.2 Mini-Apps) */
.vox-frame {
  border: none;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  border-radius: 0;
  background: var(--surface-soft, rgba(255, 255, 255, 0.03));
  margin: 0;
  overflow: hidden;
}

.vox-frame-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.75rem;
  background: rgba(0, 0, 0, 0.18);
  border-bottom: 1px solid var(--border-subtle);
}

.pill-frame {
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
}

.vox-frame-tag {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.vox-frame-media {
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 600px;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vox-frame-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vox-frame-body {
  padding: 0.75rem;
}

.vox-frame-content {
  margin-bottom: 0.75rem;
}

.frame-prompt {
  font-size: 0.84rem;
  color: var(--muted);
  margin: 0 0 0.5rem 0;
}

.frame-poll-results {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.frame-poll-bar-wrapper {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  overflow: hidden;
  min-height: 28px;
  display: flex;
  align-items: center;
}

.frame-poll-bar-wrapper.user-choice {
  border: 1px solid var(--accent);
}

.frame-poll-bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: var(--accent);
  opacity: 0.35;
  transition: width 0.3s ease;
}

.frame-poll-bar-label {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 0.3rem 0.65rem;
  font-size: 0.82rem;
}

.frame-petition-box {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.frame-petition-metric {
  font-size: 0.86rem;
}

.frame-petition-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.frame-petition-bar-fill {
  height: 100%;
  background: #10b981;
  transition: width 0.3s ease;
}

.frame-signed-msg {
  font-size: 0.82rem;
  color: #10b981;
  font-weight: 600;
  margin: 0.25rem 0 0 0;
}

.frame-clt-box {
  background: rgba(0, 0, 0, 0.12);
  padding: 0.65rem;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.frame-clt-title {
  font-size: 0.88rem;
  margin: 0 0 0.3rem 0;
  font-weight: 600;
}

.frame-clt-result {
  font-size: 1.15rem;
  font-weight: 700;
  color: #10b981;
  margin: 0.25rem 0;
}

.frame-clt-detail {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}

.vox-frame-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.5rem;
}

.btn-frame-action {
  flex: 1 1 auto;
  text-align: center;
  min-width: 110px;
}

.btn-frame-action.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.vox-frame-footer {
  border-top: 1px solid var(--border);
  padding-top: 0.35rem;
  font-size: 0.7rem;
  color: var(--muted);
}

/* Voxpedia — leitura confortável, camadas em details */
.voxpedia-page {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0.5rem 0 1.5rem;
}

.voxpedia-hero h1 {
  margin: 0.25rem 0 0.5rem;
  font-size: 1.65rem;
  line-height: 1.2;
}

.voxpedia-kicker {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.voxpedia-hero-lead,
.voxpedia-lead {
  font-size: 0.95rem;
  line-height: 1.55;
}

.voxpedia-toc-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
}

.voxpedia-toc-list a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.voxpedia-toc-list a:hover {
  text-decoration: underline;
}

.voxpedia-section h2 {
  font-size: 1.2rem;
}

.voxpedia-layer {
  margin-top: 0.65rem;
  border: 1px solid var(--outline);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  padding: 0.35rem 0.65rem;
}

.voxpedia-layer > summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.35rem 0.15rem;
  list-style: none;
}

.voxpedia-layer > summary::-webkit-details-marker {
  display: none;
}

.voxpedia-layer > summary::before {
  content: "?";
  display: inline-block;
  margin-right: 0.4rem;
  color: var(--muted);
  transition: transform 0.15s ease;
}

.voxpedia-layer[open] > summary::before {
  transform: rotate(90deg);
}

.voxpedia-layer-body {
  font-size: 0.88rem;
  line-height: 1.5;
  padding: 0 0.15rem 0.5rem;
}

.voxpedia-layer .voxpedia-layer {
  margin-top: 0.5rem;
  background: var(--surface-1);
}

.voxpedia-steps {
  margin: 0.35rem 0 0;
  padding-left: 1.15rem;
}

.voxpedia-steps li {
  margin-bottom: 0.35rem;
}

.voxpedia-layer-body code {
  font-size: 0.82em;
  word-break: break-word;
}

.voxpedia-docs-github {
  margin-top: 0.75rem;
  border-left: 3px solid var(--accent);
}

.voxpedia-docs-github-lead {
  margin: 0.35rem 0 0.5rem;
  font-size: 0.88rem;
}

.voxpedia-docs-github-links {
  margin: 0;
  font-size: 0.88rem;
}

.voxpedia-gh-link {
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.voxpedia-gh-link:hover {
  text-decoration: underline;
}

.voxpedia-footer {
  margin-top: 1rem;
  font-size: 0.88rem;
}

@media (max-width: 480px) {
  .voxpedia-page {
    padding-left: 0.15rem;
    padding-right: 0.15rem;
  }
}

.qr-url-sheet[hidden],
.qr-url-sheet:not(.is-open) {
  display: none !important;
}

.qr-url-sheet {
  align-items: center;
  padding: 1rem;
}

.qr-url-panel {
  width: min(100%, 22rem);
  background: var(--surface-1, #fff);
  color: var(--text, #111);
  border-radius: 16px;
  padding: 1.1rem 1.2rem 1.2rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.qr-url-title {
  margin: 0;
  font-size: 1.05rem;
}

.qr-url-svg {
  display: flex;
  justify-content: center;
  margin: 0.75rem 0;
}

.qr-url-svg svg {
  width: min(72vw, 16rem);
  height: auto;
  background: #fff;
}

.qr-url-copy {
  font-size: 0.85rem;
  line-height: 1.4;
  margin: 0 0 0.6rem;
}

.qr-url-href {
  word-break: break-all;
  font-size: 0.75rem;
  margin: 0 0 0.9rem;
}

/* IG-like photo chrome (ritmo, sem marca Instagram) */
.post-ig-header.post-media-header {
  position: absolute;
  top: auto;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 4;
  pointer-events: auto;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 5px;
  min-height: 0;
  margin: 0;
  padding: 14px 8px 3px;
  background: linear-gradient(to top, rgba(6, 10, 18, 0.78) 0%, rgba(6, 10, 18, 0.35) 58%, rgba(6, 10, 18, 0) 100%);
  white-space: nowrap;
}

.post-ig-header .post-media-header-avatar {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.post-ig-header .post-media-header-avatar .avatar-img,
.post-ig-header .post-media-header-avatar .avatar {
  width: 26px;
  height: 26px;
  font-size: 0.66rem;
  border-width: 1.5px;
  border-color: rgba(255, 255, 255, 0.85);
}

.post-ig-header .post-media-header-username,
.post-ig-header .post-media-header-dot,
.post-ig-header .post-media-header-time,
.post-ig-header .btn-overlay-follow,
.post-ig-header .btn-post-more-menu {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.72);
}

.post-ig-header .post-media-header-username {
  flex: 0 1 auto;
  max-width: 34vw;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.74rem;
  line-height: 1.1;
}

.post-ig-header .post-media-header-dot,
.post-ig-header .post-media-header-time,
.post-ig-header-handle,
.post-ig-header-uf {
  flex-shrink: 0;
  font-size: 0.65rem;
  line-height: 1.1;
  color: rgba(255, 255, 255, 0.84);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
}

.post-ig-header-handle,
.post-ig-header-uf {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 4.5rem;
}

.post-ig-header-end {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  flex-shrink: 0;
}

.post-ig-header .btn-overlay-follow {
  font-size: 0.7rem;
  padding: 1px 4px;
  line-height: 1.1;
}

.post-ig-header .btn-post-more-menu {
  font-size: 0.88rem;
  padding: 0 3px;
  min-height: 20px;
  line-height: 1;
}

.post-ig-header .btn-post-more-menu:focus-visible {
  outline-color: var(--accent);
}

.post-photo-title {
  margin: 0;
  padding: 2px 12px 0;
  min-height: 0;
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-photo-title a {
  color: inherit;
  text-decoration: none;
}

.post-photo-message {
  padding: 4px 12px 8px;
  margin: 0 0 16px 0;
  min-height: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.post-photo-message .post-md-para {
  margin: 0;
}

.post-photo-message .post-md-para + .post-md-para {
  margin-top: 0.35rem;
}

.post-media-header-subtitle {
  display: none;
}

.post-ig-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 10px 1px;
}

.post-ig-toolbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.post-ig-toolbar .action-btn {
  color: var(--text);
  min-height: 26px;
  padding: 2px 5px;
  font-size: 0.78rem;
}

.post-ig-toolbar .action-icon {
  width: 18px;
  height: 18px;
}

.post-ig-toolbar .btn-like.active,
.post-ig-toolbar .btn-save.active {
  color: var(--danger, #e11d48);
}

.post-ig-likes {
  margin: 0;
  padding: 2px 12px 0;
  font-size: 0.88rem;
  font-weight: 700;
}

.post-ig-caption {
  padding: 4px 12px 10px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.repost-cite {
  margin: 0.4rem 12px 0.6rem;
  padding: 0.45rem 0.65rem;
  border-left: 3px solid var(--outline);
  background: var(--surface-soft);
  border-radius: 0 8px 8px 0;
}

.repost-cite-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.profile-grid-avatar-stage {
  position: relative;
  flex-shrink: 0;
}

.profile-note-bubble {
  position: absolute;
  top: -10px;
  right: -8px;
  max-width: 9.5rem;
  padding: 6px 8px;
  border: 1px solid var(--outline);
  border-radius: 12px 12px 12px 4px;
  background: var(--surface-solid, var(--surface-1));
  box-shadow: var(--elevation-1);
  font-size: 0.72rem;
  line-height: 1.25;
  text-align: left;
  color: var(--text);
  cursor: default;
  z-index: 2;
}

.profile-note-bubble[data-note-own="1"] {
  cursor: pointer;
}

.profile-note-bubble--empty {
  opacity: 0.7;
}

.profile-note-bubble-text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.profile-note-sheet:not(.is-open),
.photo-tag-picker:not(.is-open) {
  display: none !important;
}

.profile-note-sheet-panel,
.photo-tag-picker-panel {
  width: 100%;
  max-width: 420px;
  margin: auto 0 0;
  padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
  border-radius: 16px 16px 0 0;
  background: var(--surface-1);
}

.profile-note-sheet-hint,
.photo-tag-picker-panel .desc {
  font-size: 0.8rem;
  margin: 0 0 0.6rem;
}

.photo-tag-pins {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.photo-tag-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  max-width: 8rem;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 0.72rem;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.photo-tag-bar {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 4;
  display: flex;
  gap: 6px;
}

.photo-tag-bar button {
  border: 0;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
}

.photo-tag-pick-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 40vh;
  overflow: auto;
  margin-bottom: 0.6rem;
}

.photo-tag-pick-item {
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0.55rem 0.2rem;
  color: var(--text);
  cursor: pointer;
}

.photo-tag-paste {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}

body.photo-tagging .post-media-hero.photo-tag-mode {
  outline: 2px dashed var(--accent);
  outline-offset: -2px;
}

@media (max-width: 767px) {
  .app-sidebar.tab-bar {
    width: 0;
    padding: 0;
    border: 0;
    overflow: visible;
    background: transparent;
    box-shadow: none;
  }

  .app-layout:not(.sidebar-drawer-open) .sidebar-scroll,
  .app-layout:not(.sidebar-drawer-open) .sidebar-footer {
    display: none;
  }

  .app-layout:not(.sidebar-drawer-open) .sidebar-collapse-btn {
    position: fixed;
    left: 8px;
    top: 8px;
    z-index: 96;
    background: var(--surface-1);
    border: 1px solid var(--outline);
    border-radius: 999px;
  }

  .app-layout.sidebar-drawer-open .app-sidebar.tab-bar {
    width: min(var(--sidebar-width), 88vw);
    padding: 0.65rem 0.45rem;
    background: var(--surface-1);
    border-right: 1px solid var(--outline);
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.35);
  }

  .main-column {
    margin-left: 0;
  }

  main#app-main {
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
  }

  .feed-chrome,
  .stories-strip,
  .post-layout-photo.post-photo-bleed {
    max-width: 100%;
  }

  .stories-strip {
    padding-left: 12px;
    padding-right: 12px;
  }

  .feed-composer-section,
  .welcome-feed-hint {
    padding-left: 12px;
    padding-right: 12px;
  }

  .post-toolbar .btn-zap-post {
    display: none;
  }
}

/* Footer */
.app-footer {
  text-align: center;
  font-size: 0.76rem;
  color: var(--muted);
  padding: 1.5rem 1rem;
}

/* Acessibilidade: prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .network-chip .dot::after {
    display: none !important;
  }

  .community-card:hover,
  .post:hover {
    transform: none !important;
  }
}



/* ==========================================================================
   Profile Notes (Bolha de Nota no Perfil)
   ========================================================================== */
.profile-note-bubble {
  position: absolute;
  top: -8px;
  right: -8px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 140px;
  padding: 4px 10px;
  background: var(--surface-1);
  color: var(--text);
  border: 1px solid var(--outline);
  border-radius: 999px;
  box-shadow: var(--elevation-2);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
}

.profile-note-bubble:hover {
  transform: translateY(-1px) scale(1.03);
  background: var(--surface-2);
  box-shadow: var(--elevation-3);
}

.profile-note-bubble:active {
  transform: scale(0.97);
}

.profile-note-bubble--empty {
  opacity: 0.78;
  border-style: dashed;
  color: var(--muted);
  font-size: 0.72rem;
}

.profile-note-bubble--empty:hover {
  opacity: 1;
  color: var(--text);
}

.profile-note-bubble-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-note-sheet-panel {
  width: 100%;
  max-width: 440px;
  background: var(--surface-1);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1rem;
  box-shadow: var(--elevation-3);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.profile-note-sheet-hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}

.profile-note-sheet-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
}

.profile-note-sheet-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

/* ==========================================================================
   Photo Tag Pins & Bar (Marcas em Fotos)
   ========================================================================== */
.photo-tag-pins {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.photo-tag-pins.hidden {
  display: none;
}

.photo-tag-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: rgba(18, 18, 20, 0.84);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: transform 0.15s ease, background 0.15s ease;
}

.photo-tag-pin:hover {
  transform: translate(-50%, -50%) scale(1.08);
  background: rgba(2, 132, 199, 0.92);
  color: #fff;
  text-decoration: none;
}

.photo-tag-bar {
  position: absolute;
  top: 10px;
  left: 12px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-photo-tag,
.btn-photo-tag-vis {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(20, 18, 24, 0.65);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-photo-tag:hover,
.btn-photo-tag-vis:hover {
  background: rgba(20, 18, 24, 0.85);
  transform: translateY(-1px);
}

.post-media-hero.photo-tag-mode {
  cursor: crosshair;
}

.post-media-hero.photo-tag-mode::after {
  content: "Toque na foto para marcar um contato";
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  background: rgba(20, 18, 24, 0.88);
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

.photo-tag-pick-item {
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.12s ease;
}

.photo-tag-pick-item:hover {
  background: var(--surface-soft);
}

/* ==========================================================================
   Repost / Citação Honesta
   ========================================================================== */
blockquote.repost-cite {
  margin: 8px 0;
  padding: 10px 14px;
  background: var(--surface-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: normal;
}

.repost-cite-kicker {
  margin: 0 0 3px 0;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.repost-cite-link {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 4px;
}

.repost-cite-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.repost-cite .meta {
  font-size: 0.75rem;
  color: var(--muted);
}

.btn-repost.active,
.post-ig-toolbar .btn-repost.active {
  color: var(--accent);
}


/* ==========================================================================
   DM v2 — Mensageiro Essencial (Quote-Reply, Reações, Context Card, Inbox)
   ========================================================================== */
.dm-recent-controls {
  margin-bottom: 0.75rem;
}

.dm-search-input {
  width: 100%;
  padding: 0.55rem 0.85rem;
  font-size: 0.88rem;
  border-radius: 999px;
  border: 1px solid var(--outline);
  background: var(--surface-2);
  color: var(--text);
}

.dm-inbox-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dm-inbox-row--unread {
  border-left: 3px solid var(--accent);
}

.dm-inbox-row--pinned {
  background: var(--surface-2);
}

.dm-inbox-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.dm-inbox-link:hover {
  text-decoration: none;
}

.dm-inbox-main {
  flex: 1;
  min-width: 0;
}

.dm-inbox-title-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.dm-pin-indicator {
  font-size: 0.78rem;
}

.dm-unread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.38rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
}

.dm-inbox-preview {
  margin-top: 0.2rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dm-inbox-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  flex-shrink: 0;
}

.btn-dm-pin {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.3rem 0.45rem;
  font-size: 0.82rem;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.btn-dm-pin:hover,
.btn-dm-pin.active {
  opacity: 1;
  background: var(--surface-soft);
  border-color: var(--outline);
}

.dm-quote-block {
  margin-bottom: 0.4rem;
  padding: 0.35rem 0.6rem;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(0, 0, 0, 0.06);
  font-size: 0.78rem;
  line-height: 1.3;
}

.dm-quote-author {
  display: block;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.1rem;
}

.dm-quote-snippet {
  display: block;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dm-context-card {
  margin-bottom: 0.45rem;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--outline);
  background: var(--surface-1);
  color: var(--text);
  font-size: 0.82rem;
}

.dm-context-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}

.dm-context-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.dm-context-price {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--success, #16a34a);
}

.dm-context-title {
  display: block;
  font-size: 0.86rem;
  line-height: 1.3;
  margin-bottom: 0.35rem;
}

.dm-context-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.dm-bubble-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-top: 0.35rem;
}

.dm-reactions-row {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.dm-reaction-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.12rem 0.42rem;
  border-radius: 999px;
  border: 1px solid var(--outline);
  background: var(--surface-1);
  color: var(--text);
  font-size: 0.72rem;
  cursor: pointer;
}

.dm-reaction-pill.active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.dm-bubble-tools {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.btn-dm-reply-msg,
.dm-react-trigger {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 0.74rem;
  padding: 0.15rem 0.35rem;
  border-radius: 999px;
  cursor: pointer;
  list-style: none;
}

.dm-react-picker > summary::-webkit-details-marker {
  display: none;
}

.btn-dm-reply-msg:hover,
.dm-react-trigger:hover {
  color: var(--text);
  background: rgba(0, 0, 0, 0.06);
}

.dm-react-picker {
  position: relative;
}

.dm-react-popover {
  position: absolute;
  bottom: calc(100% + 4px);
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.25rem 0.4rem;
  border-radius: 999px;
  border: 1px solid var(--outline);
  background: var(--surface-1);
  box-shadow: var(--elevation-2);
}

.btn-dm-react-pick {
  background: transparent;
  border: none;
  font-size: 0.95rem;
  padding: 0.2rem 0.3rem;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.12s ease;
}

.btn-dm-react-pick:hover {
  transform: scale(1.2);
}

.dm-draft-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  margin-bottom: 0.45rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
  background: var(--surface-2);
  font-size: 0.8rem;
}

.dm-draft-banner[hidden] {
  display: none !important;
}

.dm-draft-banner-body {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  min-width: 0;
}


.dm-bubble-media {
  margin-bottom: 0.45rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  max-width: 240px;
  border: 1px solid var(--outline);
}

.dm-bubble-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.dm-attach-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.65rem;
  cursor: pointer;
  flex-shrink: 0;
}


/* ==========================================================================
   📢 DISPARO TÁTICO EXPLODE! (Replicação Multi-Redes)
   ========================================================================== */

.btn-explode {
  color: var(--text);
  transition: color 0.15s ease, transform 0.15s ease;
}

.btn-explode:hover {
  color: #f59e0b;
  transform: scale(1.12);
}

.btn-explode:active {
  transform: scale(0.95);
}

.btn-explode.exploded {
  color: #f59e0b;
}

.btn-explode .count-explodes {
  font-size: 0.8rem;
  font-weight: 700;
  color: #f59e0b;
  margin-left: 2px;
}

.explode-sheet[hidden],
.explode-sheet:not(.is-open) {
  display: none !important;
}

.explode-sheet {
  position: fixed;
  inset: 0;
  z-index: 10000;
  cursor: pointer;
}

.explode-sheet .post-more-sheet-panel {
  max-width: 440px;
  background: var(--surface);
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 24px rgba(245, 158, 11, 0.12);
  border-radius: var(--radius-lg, 16px);
  padding: 14px 16px 16px;
  cursor: default;
}

.explode-header {
  text-align: center;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--outline);
  margin-bottom: 12px;
}

.explode-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.explode-close-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.explode-close-btn:hover {
  color: var(--text);
  background: var(--surface-2, rgba(255, 255, 255, 0.08));
}

.explode-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d97706;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.28);
  padding: 2px 8px;
  border-radius: 999px;
}

.explode-title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin: 2px 0 4px;
  color: var(--text);
}

.explode-subtitle {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.35;
}

.explode-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.explode-grid-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 4px 8px;
  background: var(--bg);
  border: 1px solid var(--outline);
  border-radius: var(--radius, 10px);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.explode-grid-btn:hover {
  background: var(--paper-highlight, rgba(255, 255, 255, 0.06));
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.explode-grid-btn:active {
  transform: translateY(0);
}

.explode-grid-btn.btn-zap:hover { border-color: #25D366; box-shadow: 0 4px 12px rgba(37, 211, 102, 0.22); }
.explode-grid-btn.btn-instagram:hover { border-color: #E1306C; box-shadow: 0 4px 12px rgba(225, 48, 108, 0.22); }
.explode-grid-btn.btn-tiktok:hover { border-color: #25F4EE; box-shadow: 0 4px 12px rgba(37, 244, 238, 0.22); }
.explode-grid-btn.btn-x:hover { border-color: rgba(255, 255, 255, 0.5); box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15); }
.explode-grid-btn.btn-bluesky:hover { border-color: #1185fe; box-shadow: 0 4px 12px rgba(17, 133, 254, 0.22); }
.explode-grid-btn.btn-threads:hover { border-color: rgba(255, 255, 255, 0.5); box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15); }
.explode-grid-btn.btn-telegram:hover { border-color: #2AABEE; box-shadow: 0 4px 12px rgba(42, 171, 238, 0.22); }
.explode-grid-btn.btn-facebook:hover { border-color: #1877F2; box-shadow: 0 4px 12px rgba(24, 119, 242, 0.22); }
.explode-grid-btn.btn-webhooks:hover { border-color: #5865F2; box-shadow: 0 4px 12px rgba(88, 101, 242, 0.22); }

.explode-grid-connected {
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1;
  color: #10b981;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.45);
  border-radius: 999px;
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.explode-grid-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-logo-svg {
  display: block;
}

.explode-grid-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.explode-actions-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.explode-action-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--bg);
  border: 1px solid var(--outline);
  border-radius: var(--radius-sm, 8px);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.explode-action-row:hover {
  background: var(--paper-highlight, rgba(255, 255, 255, 0.05));
  border-color: rgba(245, 158, 11, 0.4);
  transform: translateY(-1px);
}

.explode-action-icon {
  font-size: 1.15rem;
  line-height: 1;
  flex-shrink: 0;
}

.explode-action-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.explode-action-text strong {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
}

.explode-action-text small {
  font-size: 0.69rem;
  color: var(--muted);
}

.explode-action-arrow {
  font-size: 0.74rem;
  font-weight: 700;
  color: #d97706;
}

.explode-batch-card {
  background: var(--surface-2, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--outline);
  border-radius: var(--radius-sm, 8px);
  padding: 8px 10px;
  margin-bottom: 8px;
}

.explode-batch-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.explode-preview-toggle {
  background: none;
  border: none;
  color: #d97706;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.explode-batch-buttons {
  display: flex;
  gap: 6px;
}

.btn-explode-burst {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm, 8px);
  font-weight: 700;
  font-size: 0.74rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn-explode-burst:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-explode-burst:active {
  transform: translateY(1px);
}

.btn-explode-cascade {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  background: var(--surface-2, rgba(255, 255, 255, 0.08));
  color: var(--text);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-sm, 8px);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-explode-cascade:hover {
  background: rgba(245, 158, 11, 0.12);
  border-color: #f59e0b;
}

.explode-preview {
  background: var(--bg);
  border: 1px solid var(--outline);
  border-radius: var(--radius-sm, 8px);
  padding: 8px 10px;
  font-size: 0.72rem;
  color: var(--muted);
  max-height: 72px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.35;
  margin-bottom: 8px;
}

.explode-cascade-bar {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 500px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid rgba(245, 158, 11, 0.5);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), 0 0 16px rgba(245, 158, 11, 0.15);
  border-radius: var(--radius, 12px);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 10002;
  animation: sheetSlideUp 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.explode-cascade-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #d97706;
  background: rgba(245, 158, 11, 0.12);
  padding: 1px 6px;
  border-radius: 999px;
  margin-right: 6px;
}

.explode-cascade-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}


/* ==========================================================================
   🌐 ABAS DE FEED & INGESTÃO PREDATÓRIA (AT Protocol / Bluesky)
   ========================================================================== */

.feed-tabs-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 6px 12px 10px;
  margin-bottom: 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.feed-tabs-bar::-webkit-scrollbar {
  display: none;
}

.feed-tab-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--outline);
  background: var(--bg);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.feed-tab-chip:hover {
  background: var(--paper-highlight, rgba(255, 255, 255, 0.05));
  color: var(--text);
  border-color: rgba(245, 158, 11, 0.4);
}

.feed-tab-chip.active {
  background: rgba(245, 158, 11, 0.12);
  border-color: #d97706;
  color: var(--text);
  font-weight: 700;
}

.badge-post-external {
  display: inline-flex;
  align-items: center;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}

.badge-post-external.bsky {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
}

.badge-post-external a {
  color: inherit;
  text-decoration: none;
}

.badge-post-external a:hover {
  text-decoration: underline;
}

.bsky-feed-manager {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius-sm, 8px);
  padding: 12px 14px;
  margin: 0 12px 16px;
}

.bsky-manager-head {
  margin-bottom: 10px;
}

.bsky-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 4px;
}

.bsky-manager-title {
  font-size: 0.96rem;
  font-weight: 750;
  margin: 0 0 2px;
  color: var(--text);
}

.bsky-manager-desc {
  font-size: 0.74rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.35;
}

.bsky-add-form {
  margin: 10px 0;
}

.bsky-input-group {
  display: flex;
  gap: 8px;
}

.bsky-input {
  flex: 1;
  min-width: 0;
  padding: 6px 10px;
  border-radius: var(--radius-sm, 8px);
  border: 1px solid var(--outline);
  background: var(--bg);
  color: var(--text);
  font-size: 0.8rem;
}

.bsky-subs-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  font-size: 0.74rem;
}

.bsky-subs-label {
  color: var(--muted);
  font-weight: 600;
  margin-right: 4px;
}

.bsky-subs-chips {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bsky-sub-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: var(--bg);
  border: 1px solid var(--outline);
  border-radius: 999px;
  font-size: 0.72rem;
  color: var(--text);
}

.btn-remove-bsky-sub {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
}

.btn-remove-bsky-sub:hover {
  color: var(--accent, #f59e0b);
}

.bsky-import-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 0;
  padding: 8px 10px;
  background: var(--bg);
  border: 1px dashed var(--outline);
  border-radius: var(--radius-sm, 8px);
}

.bsky-import-follows-row {
  display: flex;
  gap: 8px;
}

.bsky-suggestions-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.72rem;
}

.bsky-sugg-label {
  color: var(--muted);
  font-weight: 600;
}

.btn-add-suggestion {
  background: var(--surface-2);
  border: 1px solid var(--outline);
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 0.7rem;
  color: var(--accent);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-add-suggestion:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

.action-btn.btn-quote-external {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  font-size: 0.76rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid var(--outline);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s ease;
}

.action-btn.btn-quote-external:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

/* Card pós-pacto amigável e acolhedor (V-P09 / Onboarding) */
.post-pact-connect-card {
  max-width: 480px;
  width: 100%;
  padding: 1.5rem;
  border-radius: var(--radius-lg, 16px);
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  background: var(--surface-1, #131823);
  text-align: left;
}

.post-pact-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.28);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.post-pact-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.post-pact-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.post-pact-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.post-pact-identity-preview {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--surface-soft, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--border);
  border-radius: var(--radius-md, 10px);
  margin-bottom: 1.25rem;
}

.post-pact-identity-meta strong {
  display: block;
  font-size: 0.9rem;
}

.post-pact-identity-meta .meta {
  margin: 2px 0 0;
  font-size: 0.8rem;
}

.post-pact-actions {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.btn-post-pact-share {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #10b981 !important;
  border-color: #10b981 !important;
  color: #ffffff !important;
  font-weight: 600;
}

.btn-post-pact-share:hover {
  background: #059669 !important;
  border-color: #059669 !important;
}

.btn-post-pact-close {
  flex: 1;
}

/* Post Pinned Ribbon e Destaque Oficial */
.post-pinned-ribbon {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.post.post-pinned-highlight {
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.08) !important;
}
