/* PALETA (tools/css_tokens.py): mesmos valores de antes, com nomes que o dark e o Halloween não redefinem */
:root { --p-white: #ffffff; --p-blue: #1da1f2; --p-link: #0084b4; --p-text: #292f33; --p-muted: #8899a6; --p-border: #e1e8ed; --p-gray-33: #333333; --p-sky: #2ac5fd; --p-bg: #f5f8fa; --p-link-dark: #058abb; --p-gray-dd: #dddddd; --p-border-strong: #ccd6dd; --p-text-soft: #66757f; --p-gray-99: #999999; --p-like: #e0245e; --p-sky-2: #16ade4; --p-link-deep: #006a91; --p-slate: #2b3945; --p-blue-2: #108cec; --p-blue-3: #56b4ef; --p-red: #ea240d; --p-gray-cc: #cccccc; --p-blue-4: #1d7dc7; --p-navy: #1c2732; --p-pure-red: #ff0000; }

/* ==========================================================================
   THEME V2 UX ENHANCEMENTS (Skeletons, Lightbox, Like Pop, Shortcuts)
   ========================================================================== */

/* ---------- 1. Skeleton Loaders ---------- */
@keyframes uxShimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.ux-skeleton-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
}

.ux-skeleton-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  background: var(--p-white);
  border: 1px solid var(--p-border);
}

.ux-sk-avatar,
.ux-sk-line {
  background: linear-gradient(90deg, #edf2f7 25%, #f7fafc 50%, #edf2f7 75%);
  background-size: 800px 100%;
  animation: uxShimmer 1.35s infinite linear;
}

.ux-sk-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ux-sk-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ux-sk-line {
  height: 11px;
  border-radius: 6px;
}

.ux-sk-line.w-40 { width: 40%; height: 12px; }
.ux-sk-line.w-90 { width: 92%; }
.ux-sk-line.w-70 { width: 68%; }

html.dark-mode .ux-skeleton-card {
  background: #15202b;
  border-color: #273544;
}

html.dark-mode .ux-sk-avatar,
html.dark-mode .ux-sk-line {
  background: linear-gradient(90deg, #1c2938 25%, #253649 50%, #1c2938 75%);
  background-size: 800px 100%;
}

/* ---------- 2. Modern Photo Lightbox ---------- */
.ux-lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(9, 13, 22, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  user-select: none;
}

.ux-lightbox-overlay.open {
  display: flex;
  animation: uxLbFade 0.16s ease-out;
}

@keyframes uxLbFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.ux-lb-topbar {
  position: fixed;
  top: 14px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
  pointer-events: none;
}

.ux-lb-topbar > * {
  pointer-events: auto;
}

.ux-lb-counter {
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 600;
}

.ux-lb-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ux-lb-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.75);
  color: #f8fafc;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  text-decoration: none !important;
}

.ux-lb-btn:hover {
  background: rgba(29, 161, 242, 0.85);
  color: var(--p-white);
  transform: scale(1.06);
}

.ux-lb-stage {
  position: relative;
  max-width: 92vw;
  max-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ux-lb-img {
  max-width: 92vw;
  max-height: 82vh;
  border-radius: 10px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
  object-fit: contain;
  cursor: zoom-in;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ux-lb-img.zoomed {
  transform: scale(1.85);
  cursor: zoom-out;
}

.ux-lb-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.72);
  color: var(--p-white);
  font-size: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background 0.15s ease, transform 0.15s ease;
}

.ux-lb-nav:hover {
  background: rgba(29, 161, 242, 0.9);
  transform: translateY(-50%) scale(1.06);
}

.ux-lb-prev { left: 16px; }
.ux-lb-next { right: 16px; }

/* ---------- 3. Like Button Micro-Animation ---------- */
@keyframes uxLikePop {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.38); }
  65%  { transform: scale(0.92); }
  100% { transform: scale(1); }
}

.ux-like-pop {
  animation: uxLikePop 0.42s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* ---------- 4. Keyboard Shortcuts Modal (?) ---------- */
.ux-shortcuts-overlay {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: rgba(9, 13, 22, 0.65);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.ux-shortcuts-overlay.open {
  display: flex;
}

.ux-shortcuts-card {
  width: 100%;
  max-width: 380px;
  background: var(--p-white);
  color: #0f172a;
  border: 1px solid var(--p-border);
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.ux-shortcuts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-weight: 700;
  font-size: 15px;
}

.ux-shortcut-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-top: 1px solid #f1f5f9;
  font-size: 13.5px;
}

.ux-shortcut-row kbd {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  box-shadow: none;
}

html.dark-mode .ux-shortcuts-card {
  background: #15202b;
  color: #eef2f6;
  border-color: #273544;
}

html.dark-mode .ux-shortcut-row {
  border-top-color: #273544;
}

html.dark-mode .ux-shortcut-row kbd {
  background: #1c2938;
  border-color: #384a5e;
  color: #eef2f6;
}

/* ---------- 5. Back-to-Top Floating Button ---------- */
.ux-back-top {
  position: fixed;
  bottom: 74px;
  right: 20px;
  z-index: 9997;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #d5e0ea;
  background: rgba(255, 255, 255, 0.96);
  color: var(--p-blue);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.ux-back-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.ux-back-top:hover {
  background: var(--p-blue);
  border-color: var(--p-blue);
  color: var(--p-white);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(29, 161, 242, 0.34);
}

.ux-back-top:focus-visible {
  outline: 2px solid var(--p-blue);
  outline-offset: 2px;
}

.ux-back-top svg {
  width: 18px;
  height: 18px;
  display: block;
}

html.dark-mode .ux-back-top {
  background: rgba(21, 32, 43, 0.96);
  border-color: #273544;
  color: #38bdf8;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.48);
}

html.dark-mode .ux-back-top:hover {
  background: var(--p-blue);
  border-color: var(--p-blue);
  color: var(--p-white);
}

/* ---------- 6. Site Toast Notifications ---------- */
@keyframes uxToastIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.ux-toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  max-width: calc(100vw - 32px);
}

.ux-toast {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.94);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  animation: uxToastIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.ux-toast.is-leaving,
.ux-toast.ux-toast-out,
.ux-toast.hide {
  opacity: 0;
  transform: translateY(8px) scale(0.96);
}

.ux-toast.ux-toast-success,
.ux-toast.is-success {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(16, 185, 129, 0.45);
}

.ux-toast.ux-toast-error,
.ux-toast.is-error {
  background: rgba(127, 29, 29, 0.95);
  border-color: rgba(248, 113, 113, 0.45);
}

.ux-toast.ux-toast-info,
.ux-toast.is-info {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(29, 161, 242, 0.45);
}

html.dark-mode .ux-toast {
  background: rgba(21, 32, 43, 0.96);
  color: #eef2f6;
  border-color: #384a5e;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.52);
}

html.dark-mode .ux-toast.ux-toast-success,
html.dark-mode .ux-toast.is-success {
  border-color: rgba(16, 185, 129, 0.55);
}

html.dark-mode .ux-toast.ux-toast-error,
html.dark-mode .ux-toast.is-error {
  background: rgba(127, 29, 29, 0.96);
  border-color: rgba(248, 113, 113, 0.55);
}

/* ---------- 7. 1-Click Copy Post Link Button ---------- */
.ux-copy-link-btn {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  padding: 4px 8px;
  margin: 0;
  border-radius: 999px;
  color: #657786;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  vertical-align: middle;
  transition: color 0.16s ease, background-color 0.16s ease, transform 0.12s ease;
}

.ux-copy-link-btn:hover,
.ux-copy-link-btn:focus-visible {
  color: var(--p-blue);
  background: rgba(29, 161, 242, 0.1);
  outline: none;
}

.ux-copy-link-btn:focus-visible {
  box-shadow: 0 0 0 2px rgba(29, 161, 242, 0.35);
}

.ux-copy-link-btn:active {
  transform: scale(0.94);
}

.ux-copy-link-btn.is-copied,
.ux-copy-link-btn.copied {
  color: #10b981;
}

.ux-copy-link-btn svg {
  width: 15px;
  height: 15px;
  display: block;
}

html.dark-mode .ux-copy-link-btn {
  color: var(--p-muted);
}

html.dark-mode .ux-copy-link-btn:hover,
html.dark-mode .ux-copy-link-btn:focus-visible {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.14);
}

html.dark-mode .ux-copy-link-btn.is-copied,
html.dark-mode .ux-copy-link-btn.copied {
  color: #34d399;
}

/* ---------- 8. Circular SVG Character Counter Ring ---------- */
.ux-char-ring {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  vertical-align: middle;
  flex-shrink: 0;
}

.ux-char-ring svg {
  width: 24px;
  height: 24px;
  display: block;
  transform: rotate(-90deg);
  overflow: visible;
}

.ux-char-ring-track {
  fill: none;
  stroke: var(--p-border);
  stroke-width: 2.5;
}

.ux-char-ring-fill {
  fill: none;
  stroke: var(--p-blue);
  stroke-width: 2.5;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.14s ease, stroke 0.14s ease;
}

.ux-char-ring.is-warn .ux-char-ring-fill,
.ux-char-ring-fill.is-warn {
  stroke: #f59e0b;
}

.ux-char-ring.is-over .ux-char-ring-fill,
.ux-char-ring-fill.is-over {
  stroke: #ef4444;
}

.ux-char-ring-num {
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: #657786;
  min-width: 18px;
  text-align: right;
}

.ux-char-ring.is-warn .ux-char-ring-num {
  color: #d97706;
}

.ux-char-ring.is-over .ux-char-ring-num {
  color: #ef4444;
}

html.dark-mode .ux-char-ring-track {
  stroke: #273544;
}

html.dark-mode .ux-char-ring-num {
  color: var(--p-muted);
}

html.dark-mode .ux-char-ring.is-warn .ux-char-ring-num {
  color: #fbbf24;
}

html.dark-mode .ux-char-ring.is-over .ux-char-ring-num {
  color: #f87171;
}

/* ---------- 9. Profile Hover Card ---------- */
.ux-hover-card {
  position: fixed;
  z-index: 99990;
  width: 280px;
  max-width: calc(100vw - 24px);
  background: var(--p-white);
  color: #0f172a;
  border: 1px solid var(--p-border);
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.18), 0 2px 8px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px) scale(0.98);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.ux-hover-card.open,
.ux-hover-card.show,
.ux-hover-card.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.ux-hc-banner {
  width: 100%;
  height: 64px;
  background: linear-gradient(135deg, var(--p-blue) 0%, #0d8ddb 100%);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.ux-hc-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ux-hc-body {
  padding: 0 14px 14px;
  position: relative;
}

.ux-hc-top,
.ux-hc-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: -26px;
  margin-bottom: 8px;
}

.ux-hc-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--p-white);
  background: var(--p-border);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.14);
  flex-shrink: 0;
  display: block;
}

.ux-hc-name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.ux-hc-handle,
.ux-hc-username {
  font-size: 13px;
  line-height: 1.3;
  color: #657786;
  margin-top: 1px;
}

.ux-hc-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(29, 161, 242, 0.12);
  color: var(--p-blue);
  vertical-align: middle;
}

.ux-hc-bio {
  margin: 8px 0 10px;
  font-size: 13px;
  line-height: 1.4;
  color: #334155;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.ux-hc-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 8px 0 12px;
  font-size: 12.5px;
  color: #657786;
}

.ux-hc-stats strong,
.ux-hc-stats b {
  color: #0f172a;
  font-weight: 700;
}

.ux-hc-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.ux-hc-btn,
.ux-hc-cta,
.ux-hc-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--p-blue);
  color: var(--p-white) !important;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  transition: background-color 0.15s ease, transform 0.12s ease;
}

.ux-hc-btn:hover,
.ux-hc-cta:hover,
.ux-hc-link:hover {
  background: #1a91da;
  color: var(--p-white) !important;
}

.ux-hc-btn:active,
.ux-hc-cta:active,
.ux-hc-link:active {
  transform: scale(0.97);
}

.ux-hc-loading {
  padding: 20px 14px;
  text-align: center;
  font-size: 13px;
  color: #657786;
}

html.dark-mode .ux-hover-card {
  background: #15202b;
  color: #eef2f6;
  border-color: #273544;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}

html.dark-mode .ux-hc-avatar {
  border-color: #15202b;
  background: #1c2938;
}

html.dark-mode .ux-hc-name {
  color: #eef2f6;
}

html.dark-mode .ux-hc-handle,
html.dark-mode .ux-hc-username,
html.dark-mode .ux-hc-stats,
html.dark-mode .ux-hc-loading {
  color: var(--p-muted);
}

html.dark-mode .ux-hc-bio {
  color: #cbd5e1;
}

html.dark-mode .ux-hc-stats strong,
html.dark-mode .ux-hc-stats b {
  color: #eef2f6;
}

html.dark-mode .ux-hc-badge {
  background: rgba(56, 189, 248, 0.16);
  color: #38bdf8;
}

/* ---------- 10. Mobile & Touch-Safe Adjustments ---------- */
@media (max-width: 768px) {
  .ux-back-top {
    bottom: 74px;
    right: 20px;
  }

  .ux-toast-container {
    bottom: 18px;
    max-width: calc(100vw - 24px);
  }

  .ux-copy-link-btn {
    min-width: 36px;
    min-height: 36px;
    padding: 6px 10px;
  }
}

@media (hover: none), (max-width: 768px) {
  .ux-hover-card {
    display: none !important;
  }
}

/* ==========================================================================
   Melhorias de UI 21/11/2026
   ========================================================================== */

/* ---------- (5) Fotos: espaço reservado enquanto carregam ----------
   A cor média da foto vem do servidor (style="background-color:..."), as demais
   mostram um brilho neutro. Quando a foto carrega, o JS marca .ux-loaded. */
img.ProfileTweet-photo,
img.photoPost,
.pc-slide img {
  background-color: rgba(128, 140, 152, 0.16);
}
img.ProfileTweet-photo:not(.ux-loaded),
img.photoPost:not(.ux-loaded),
.pc-slide img:not(.ux-loaded) {
  background-image: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.14) 50%, transparent 80%);
  background-size: 200% 100%;
  animation: ux-shimmer 1.3s linear infinite;
}

@keyframes ux-shimmer {
  from { background-position: 150% 0; }
  to   { background-position: -50% 0; }
}

/* ---------- (6) Esqueletos de carregamento ---------- */
:root {
  --ux-skel: #e6ecf0;
  --ux-skel-hi: rgba(255, 255, 255, 0.55);
}
html.dark-mode {
  --ux-skel: #22303c;
  --ux-skel-hi: rgba(255, 255, 255, 0.06);
}

/* Feed, perfil e Discover: primeira carga (#container-loader) e "carregando mais" */
#container-loader,
.loading-bar.displayLoad:empty {
  position: relative;
  display: block;
  padding: 0 !important;
  box-shadow: none !important;
  overflow: hidden;
  background-color: transparent !important;
  background-repeat: no-repeat, repeat-y, repeat-y, repeat-y;
  background-image:
    radial-gradient(circle at 36px 36px, var(--ux-skel) 20px, transparent 21px),
    linear-gradient(var(--ux-skel) 0 10px, transparent 10px 100%),
    linear-gradient(var(--ux-skel) 0 10px, transparent 10px 100%),
    linear-gradient(var(--ux-skel) 0 10px, transparent 10px 100%);
}
#container-loader {
  height: 288px;
  float: none;
  /* 3 linhas: avatar repetido a cada 96px + 3 barras de texto */
  background-repeat: repeat-y;
  background-size: 100% 96px, 34% 96px, 70% 96px, 52% 96px;
  background-position: 0 0, 68px 18px, 68px 40px, 68px 60px;
}
.loading-bar.displayLoad:empty {
  height: 96px;
  background-repeat: no-repeat;
  background-size: 100% 96px, 34% 96px, 70% 96px, 52% 96px;
  background-position: 0 0, 68px 18px, 68px 40px, 68px 60px;
}
#container-loader::after,
.loading-bar.displayLoad:empty::after {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  border: 0 !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  border-radius: 0 !important;
  background: linear-gradient(100deg, transparent 25%, var(--ux-skel-hi) 50%, transparent 75%) !important;
  background-size: 200% 100% !important;
  animation: ux-shimmer 1.3s linear infinite !important;
}
#container-loader .loading-bar {
  display: none !important;
}

/* DMs: lista de conversas e conversa enquanto carregam */
.ux-skel-rows {
  position: relative;
  overflow: hidden;
  list-style: none;
  padding: 6px 0;
}
.ux-skel-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
}
.ux-skel-row .ux-skel-av {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ux-skel);
  flex: 0 0 auto;
}
.ux-skel-row .ux-skel-lines {
  flex: 1;
}
.ux-skel-row .ux-skel-lines span {
  display: block;
  height: 10px;
  border-radius: 5px;
  background: var(--ux-skel);
  margin: 6px 0;
}
.ux-skel-row .ux-skel-lines span:first-child { width: 38%; }
.ux-skel-row .ux-skel-lines span:last-child  { width: 72%; }
.ux-skel-chat {
  position: relative;
  overflow: hidden;
  padding: 8px 0;
}
.ux-skel-bubble {
  height: 34px;
  border-radius: 17px;
  background: var(--ux-skel);
  margin: 10px 16px;
  width: 55%;
}
.ux-skel-bubble.is-mine { margin-left: auto; width: 42%; }
.ux-skel-rows::after,
.ux-skel-chat::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 25%, var(--ux-skel-hi) 50%, transparent 75%);
  background-size: 200% 100%;
  animation: ux-shimmer 1.3s linear infinite;
  pointer-events: none;
}

/* ---------- (9) Números do perfil: número em destaque, rótulo menor embaixo ---------- */
html body :is(.profile-canopy-2015, *) ul.profile-nav-stats.profile-nav-stats li a {
  display: flex !important;
  flex-direction: column-reverse !important;
  text-decoration: none !important;
}
html body :is(.profile-canopy-2015, *) ul.profile-nav-stats.profile-nav-stats li,
html body :is(.profile-canopy-2015, *) ul.profile-nav-stats.profile-nav-stats li.active,
html body :is(.profile-canopy-2015, *) ul.profile-nav-stats.profile-nav-stats li:hover,
html body :is(.profile-canopy-2015, *) ul.profile-nav-stats.profile-nav-stats li a,
html body :is(.profile-canopy-2015, *) ul.profile-nav-stats.profile-nav-stats li.active a,
html body :is(.profile-canopy-2015, *) ul.profile-nav-stats.profile-nav-stats li a:hover {
  border-bottom-width: 0 !important;
  box-shadow: none !important;
  text-decoration: none !important;
}
html body :is(.profile-canopy-2015, *) ul.profile-nav-stats.profile-nav-stats li::after,
html body :is(.profile-canopy-2015, *) ul.profile-nav-stats.profile-nav-stats li a::after {
  display: none !important;
}
html body :is(.profile-canopy-2015, *) ul.profile-nav-stats.profile-nav-stats .stat-value {
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  color: #14171a !important;
}
html body :is(.profile-canopy-2015, *) ul.profile-nav-stats.profile-nav-stats .stat-label {
  font-size: 12px !important;
  font-weight: 500 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  color: #657786 !important;
}
html body :is(.profile-canopy-2015, *) ul.profile-nav-stats.profile-nav-stats li.active .stat-value,
html body :is(.profile-canopy-2015, *) ul.profile-nav-stats.profile-nav-stats li a:hover .stat-value {
  color: #1d9bf0 !important;
}
html.dark-mode body :is(.profile-canopy-2015, *) ul.profile-nav-stats.profile-nav-stats .stat-value {
  color: #e7e9ea !important;
}
html.dark-mode body :is(.profile-canopy-2015, *) ul.profile-nav-stats.profile-nav-stats .stat-label {
  color: #8b98a5 !important;
}
html.dark-mode body :is(.profile-canopy-2015, *) ul.profile-nav-stats.profile-nav-stats li.active .stat-value,
html.dark-mode body :is(.profile-canopy-2015, *) ul.profile-nav-stats.profile-nav-stats li a:hover .stat-value {
  color: #1d9bf0 !important;
}

/* ---------- (10) Capa: degradê escuro embaixo ---------- */
.cover_user[style*="background-image"] {
  position: relative;
}
.cover_user[style*="background-image"]::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 55%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%);
  pointer-events: none;
}

/* ---------- (11) Acessibilidade: foco visível no teclado e menos movimento ---------- */
html body a:focus-visible,
html body button:focus-visible,
html body input:focus-visible,
html body textarea:focus-visible,
html body select:focus-visible,
html body [role="button"]:focus-visible,
html body [tabindex]:focus-visible {
  outline: 2px solid #1d9bf0 !important;
  outline-offset: 2px !important;
}
@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;
  }
}

/* ---------- (12) Avisos antigos (.popout) viram toasts; o elemento fica escondido ---------- */
.popout.ux-popout-toasted {
  visibility: hidden !important;
  pointer-events: none !important;
}

/* botão Criar conta do topo (sem login) só aparece no celular */
.nav-signup-cta {
  display: none;
}

/* ---------- Celular ---------- */
@media (max-width: 768px) {

  /* (3) Topo sem login: logo à esquerda + botão Criar conta */
  html body .twitter-2015-nav.unauthenticated .nav-center-bird {
    display: flex !important;
    margin: 0 auto 0 4px !important;
  }
  html body .twitter-2015-nav.unauthenticated .nav-right {
    gap: 6px !important;
  }
  html body .twitter-2015-nav.unauthenticated a.nav-signup-cta {
    display: inline-flex !important;
    align-items: center !important;
    height: 34px !important;
    min-height: 0 !important;
    line-height: 34px !important;
    padding: 0 14px !important;
    border-radius: 999px !important;
    background: #1d9bf0 !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
  }
  html body .twitter-2015-nav.unauthenticated .session-null-signin-btn {
    padding: 0 8px !important;
  }

  /* (4) Perfil: a grade de fotos sai de cima das abas (ela continua na aba Fotos) */
  .profile-col-left .profile-media-widget {
    display: none !important;
  }

  /* (7) Barra do topo (logado): ícones maiores e bem distribuídos, item ativo destacado */
  html body .warpper_top_bar {
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  }
  html body #navegation.twitter-2015-nav {
    gap: 8px !important;
  }
  html body #navegation.twitter-2015-nav .nav-left {
    display: flex !important;
    flex: 1 1 auto !important;
    justify-content: space-between !important;
    max-width: 230px !important;
    gap: 2px !important;
  }
  html body #navegation.twitter-2015-nav .nav-left > li {
    flex: 1 1 0 !important;
    position: relative !important;
  }
  html body #navegation.twitter-2015-nav .nav-left > li > a {
    position: relative !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    height: 48px !important;
    min-width: 0 !important;
    padding: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    color: #657786 !important;
  }
  html body #navegation.twitter-2015-nav .nav-left > li > a .nav-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 34px !important;
    border-radius: 17px !important;
    transition: background-color 0.15s ease;
  }
  html body #navegation.twitter-2015-nav .nav-left > li > a .nav-icon svg {
    width: 23px !important;
    height: 23px !important;
  }
  html body #navegation.twitter-2015-nav .nav-left > li > a:active .nav-icon {
    background: rgba(29, 155, 240, 0.12) !important;
  }
  html body #navegation.twitter-2015-nav .nav-left > li.active > a {
    color: #1d9bf0 !important;
  }
  html body #navegation.twitter-2015-nav .nav-left > li.active > a .nav-icon {
    background: rgba(29, 155, 240, 0.12) !important;
  }
  html body #navegation.twitter-2015-nav .nav-left > li.active > a::after {
    content: '' !important;
    position: absolute !important;
    left: 28% !important;
    right: 28% !important;
    bottom: 0 !important;
    top: auto !important;
    height: 3px !important;
    border-radius: 3px 3px 0 0 !important;
    background: #1d9bf0 !important;
    display: block !important;
  }
  html body #navegation.twitter-2015-nav .nav-left .nav-counter {
    top: 5px !important;
    right: calc(50% - 22px) !important;
    box-shadow: 0 0 0 2px #fff !important;
  }
  html.dark-mode body #navegation.twitter-2015-nav .nav-left > li > a {
    color: #8b98a5 !important;
  }
  html.dark-mode body #navegation.twitter-2015-nav .nav-left > li.active > a {
    color: #1d9bf0 !important;
  }
  html.dark-mode body #navegation.twitter-2015-nav .nav-left .nav-counter {
    box-shadow: 0 0 0 2px rgb(21, 32, 43) !important;
  }
  html body #navegation.twitter-2015-nav .nav-right {
    margin-left: auto !important;
    gap: 6px !important;
  }
  html body #navegation .nav-actions {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }
  html body #navegation .nav-actions > li {
    display: flex !important;
    align-items: center !important;
    height: 48px !important;
    margin: 0 !important;
  }
  html body #navegation .nav-actions .me-dropdown-toggle {
    display: flex !important;
    align-items: center !important;
    height: 48px !important;
    padding: 0 !important;
  }
  html body #navegation .nav-user-avatar {
    width: 32px !important;
    height: 32px !important;
    margin: 0 !important;
    border-radius: 50% !important;
    object-fit: cover !important;
  }
  html body #navegation .nav-actions .tweet-btn-2015 {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #1d9bf0 !important;
    border: 0 !important;
  }
  html body #navegation .nav-actions .tweet-btn-2015 .tweet-btn-text {
    display: none !important;
  }

  /* espaço vazio embaixo da barra: o body já reserva a altura dela, a .layout somava mais 56px */
  html body section.layout.session.session {
    padding-top: 0 !important;
  }

}

.dm-skel-holder,
.dm-skel-holder .ux-skel-row {
  list-style: none !important;
  padding: 0;
  margin: 0;
  border: 0 !important;
  background: none !important;
}
.dm-skel-holder .ux-skel-row {
  padding: 12px 16px;
}

/* ---------- Botões do perfil: Seguir (azul) / Seguindo e Editar perfil (contorno) ----------
   Antes o mobile.css pintava os dois de roxo (#5865f2) com texto azul, quase ilegível. */
html body .profile-nav-actions .follow_button,
html body .profile-nav-actions .followBtn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  min-height: 36px !important;
  height: auto !important;
  width: auto !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
  padding: 0 18px !important;
  border-radius: 999px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  background: #1d9bf0 !important;
  background-image: none !important;
  border: 1px solid #1d9bf0 !important;
  color: #ffffff !important;
  text-shadow: none !important;
  box-shadow: none !important;
}
html body .profile-nav-actions .follow_button *,
html body .profile-nav-actions .followBtn * {
  color: inherit !important;
  fill: currentColor !important;
}
html body .profile-nav-actions .follow_button:hover,
html body .profile-nav-actions .followBtn:hover {
  background: #1a8cd8 !important;
  border-color: #1a8cd8 !important;
}
html body .profile-nav-actions .follow_button.follow_active,
html body .profile-nav-actions .followBtn.follow_active,
html body .profile-nav-actions .follow_button.edit_profile_btn {
  background: #ffffff !important;
  border: 1px solid #cfd9de !important;
  color: #0f1419 !important;
}
html body .profile-nav-actions .follow_button.follow_active:hover,
html body .profile-nav-actions .followBtn.follow_active:hover,
html body .profile-nav-actions .follow_button.edit_profile_btn:hover {
  background: #f2f4f5 !important;
}
html.dark-mode body .profile-nav-actions .follow_button.follow_active,
html.dark-mode body .profile-nav-actions .followBtn.follow_active,
html.dark-mode body .profile-nav-actions .follow_button.edit_profile_btn {
  background: transparent !important;
  border-color: #536471 !important;
  color: #e7e9ea !important;
}
html.dark-mode body .profile-nav-actions .follow_button.follow_active:hover,
html.dark-mode body .profile-nav-actions .followBtn.follow_active:hover,
html.dark-mode body .profile-nav-actions .follow_button.edit_profile_btn:hover {
  background: rgba(231, 233, 234, 0.1) !important;
}
