html {
  background-color: #f8fafc;
}

html.dark,
html.theme-idforia,
html.theme-news,
html.theme-aurora,
html.theme-aurora-glass,
html.theme-luxury-dark {
  background-color: #0b1220;
}

html.light,
html.theme-luxury {
  background-color: #f8fafc;
}

body {
  --feed-accent: #6366f1;
  --feed-highlight: #22d3ee;
  --feed-surface: rgba(255, 255, 255, 0.62);
  --feed-card-bg: rgba(255, 255, 255, 0.82);
  --feed-card-border: rgba(148, 163, 184, 0.28);
  --feed-card-shadow: 0 32px 70px -26px rgba(15, 23, 42, 0.45);
  --feed-muted-color: #64748b;
  --feed-readmore-max-height: 320px;
  --feed-readmore-fade: rgba(248, 250, 252, 0.96);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  margin: 0;
  color: var(--text-color);
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(99, 102, 241, 0.16), transparent 60%),
    radial-gradient(120% 120% at 100% 0%, rgba(14, 165, 233, 0.18), transparent 62%),
    linear-gradient(180deg, #f8fafc 0%, #eef2ff 48%, #e0f2fe 100%);
  background-attachment: fixed;
  position: relative;
  padding-bottom: 48px;
}

.feed-nav-open {
  overflow: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.55;
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.3s ease;
}

body::before {
  top: -140px;
  left: -120px;
  background: rgba(99, 102, 241, 0.55);
}

body::after {
  bottom: -160px;
  right: -120px;
  background: rgba(14, 165, 233, 0.45);
}

body.dark {
  --feed-surface: rgba(15, 23, 42, 0.72);
  --feed-card-bg: rgba(2, 6, 23, 0.82);
  --feed-card-border: rgba(99, 102, 241, 0.35);
  --feed-card-shadow: 0 40px 95px -24px rgba(2, 6, 23, 0.85);
  --feed-muted-color: #94a3b8;
  --feed-readmore-fade: rgba(11, 15, 31, 0.92);
  color: var(--text-color);
  background:
    radial-gradient(110% 110% at 0% 0%, rgba(99, 102, 241, 0.24), transparent 58%),
    radial-gradient(110% 110% at 100% 0%, rgba(6, 182, 212, 0.22), transparent 60%),
    linear-gradient(185deg, #020617 0%, #0f172a 52%, #111827 100%);
}

body.dark::before {
  background: rgba(79, 70, 229, 0.45);
  opacity: 0.42;
}

body.dark::after {
  background: rgba(6, 182, 212, 0.35);
  opacity: 0.38;
}

body.theme-idforia {
  --text-color: #e2e8f0;
}

body.theme-news {
  --feed-accent: #38bdf8;
  --feed-highlight: #f59e0b;
  --feed-surface: rgba(15, 23, 42, 0.78);
  --feed-card-bg: rgba(15, 23, 42, 0.92);
  --feed-card-border: rgba(100, 116, 139, 0.35);
  --feed-card-shadow: 0 32px 68px -26px rgba(2, 6, 23, 0.72);
  --feed-muted-color: #cbd5f5;
  --feed-readmore-fade: rgba(15, 23, 42, 0.92);
  --text-color: #e2e8f0;
  background: linear-gradient(185deg, #0f172a 0%, #0b1220 52%, #020617 100%);
  color: var(--text-color);
}

body.theme-news::before {
  background: rgba(59, 130, 246, 0.22);
  opacity: 0.22;
}

body.theme-news::after {
  background: rgba(14, 165, 233, 0.28);
  opacity: 0.24;
}

.page-layout {
  position: relative;
  width: 100%;
  margin: 0 auto 0;
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr) minmax(240px, 280px);
  grid-template-areas: "sidebar main right";
  gap: clamp(18px, 3vw, 32px);
  align-items: flex-start;
  z-index: 1;
}

.page-layout--swapped {
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr) minmax(220px, 260px);
  grid-template-areas: "right main sidebar";
}

.page-layout--left-collapsed {
  grid-template-columns: minmax(72px, 96px) minmax(0, 1fr) minmax(240px, 280px);
}

.page-layout--right-collapsed {
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr) minmax(72px, 96px);
}

.page-layout--left-collapsed.page-layout--right-collapsed {
  grid-template-columns: minmax(72px, 96px) minmax(0, 1fr) minmax(72px, 96px);
}

.page-layout--right-collapsed .right-sidebar,
.page-layout--right-collapsed .right-sidebar.collapsed {
  margin-left: auto;
  justify-self: end;
}

.sidebar {
  grid-area: sidebar;
  position: sticky;
  top: 64px;
  align-self: start;
  width: auto;
  margin-top: 0;
  padding: clamp(18px, 2vw, 24px);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.04)),
    linear-gradient(165deg, rgba(99, 102, 241, 0.1), rgba(255, 255, 255, 0))
      var(--feed-card-bg);
  color: var(--text-color);
  border: 1px solid var(--feed-card-border);
  border-radius: 24px;
  box-shadow: 0 28px 58px -34px rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

body.dark .sidebar {
  background:
    linear-gradient(180deg, rgba(8, 10, 20, 0.6), rgba(2, 6, 23, 0.2)),
    linear-gradient(165deg, rgba(99, 102, 241, 0.16), rgba(2, 6, 23, 0.7))
      var(--feed-card-bg);
}

body.theme-news .sidebar {
  background: linear-gradient(160deg, rgba(30, 41, 59, 0.72), rgba(15, 23, 42, 0.88))
      var(--feed-card-bg);
  border-color: rgba(71, 85, 105, 0.35);
}

.right-sidebar {
  grid-area: right;
  position: sticky;
  top: 64px;
  align-self: start;
  padding: clamp(18px, 2vw, 24px);
  background: linear-gradient(165deg, rgba(14, 165, 233, 0.12), rgba(255, 255, 255, 0))
      var(--feed-card-bg);
  color: var(--text-color);
  border: 1px solid var(--feed-card-border);
  border-radius: 24px;
  box-shadow: var(--feed-card-shadow);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar,
.right-sidebar {
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--feed-muted-color) 60%, transparent)
    color-mix(in srgb, var(--feed-card-bg) 90%, transparent);
}

.sidebar::-webkit-scrollbar,
.right-sidebar::-webkit-scrollbar {
  width: 12px;
}

.sidebar::-webkit-scrollbar-track,
.right-sidebar::-webkit-scrollbar-track {
  background: color-mix(in srgb, var(--feed-card-bg) 90%, transparent);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--feed-muted-color) 18%, transparent);
}

.sidebar::-webkit-scrollbar-thumb,
.right-sidebar::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--feed-muted-color) 65%, transparent);
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: padding-box;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--feed-muted-color) 30%, transparent);
}

.sidebar:hover::-webkit-scrollbar-thumb,
.right-sidebar:hover::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--feed-muted-color) 85%, transparent);
}

body.dark .right-sidebar {
  background: linear-gradient(165deg, rgba(14, 165, 233, 0.16), rgba(2, 6, 23, 0.7))
      var(--feed-card-bg);
}

body.theme-news .right-sidebar {
  background: linear-gradient(165deg, rgba(30, 41, 59, 0.72), rgba(15, 23, 42, 0.88))
      var(--feed-card-bg);
  border-color: rgba(71, 85, 105, 0.32);
}

.right-sidebar-icons,
.sidebar-icons,
.left-sidebar-icons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-section-heading {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--feed-muted-color);
}


#pagesPanel.pages-panel {
  margin: 16px 0;
  border: 1px solid color-mix(in srgb, var(--feed-card-border) 70%, transparent);
  border-radius: 16px;
  overflow: hidden;
  background: color-mix(in srgb, var(--feed-card-bg) 92%, transparent);
}

.pages-panel__header {
  padding: 10px 12px;
  background: color-mix(in srgb, var(--feed-card-bg) 88%, rgba(15, 23, 42, 0.35));
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pages-panel__create {
  font-weight: 600;
  font-size: 12px;
  text-decoration: none;
  color: var(--feed-accent);
}

.pages-panel__list {
  max-height: 280px;
  overflow: auto;
  background: color-mix(in srgb, var(--feed-card-bg) 90%, rgba(15, 23, 42, 0.35));
}

.pages-panel__empty {
  padding: 10px 12px;
  color: var(--feed-muted-color);
}

.pages-panel__footer {
  padding: 10px 12px;
  background: color-mix(in srgb, var(--feed-card-bg) 86%, rgba(15, 23, 42, 0.4));
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--feed-card-border);
}

.pages-panel__label {
  font-size: 12px;
  color: var(--feed-muted-color);
}

.pages-panel__badge {
  font-size: 12px;
  font-weight: 700;
  background: color-mix(in srgb, var(--feed-card-bg) 92%, rgba(15, 23, 42, 0.6));
  border: 1px solid var(--feed-card-border);
  padding: 4px 8px;
  border-radius: 999px;
}

.pages-panel__clear {
  margin-left: auto;
  font-size: 12px;
  border: 1px solid var(--feed-card-border);
  background: color-mix(in srgb, var(--feed-card-bg) 90%, rgba(15, 23, 42, 0.5));
  color: var(--text-color);
  border-radius: 8px;
  padding: 4px 8px;
  cursor: pointer;
  display: none;
}

.right-sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.right-sidebar-cta {
  margin-bottom: 18px;
}

.feed-add-post-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--feed-accent) 45%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--feed-accent) 30%, transparent), rgba(255, 255, 255, 0.08));
  color: var(--feed-accent);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.feed-add-post-btn--live {
  border-color: color-mix(in srgb, #ff647c 55%, transparent);
  background: linear-gradient(135deg, rgba(255, 100, 124, 0.25), rgba(255, 255, 255, 0.08));
  color: #ff9aaa;
}

.feed-add-post-btn--live:hover,
.feed-add-post-btn--live:focus-visible {
  box-shadow: 0 12px 22px -18px rgba(255, 100, 124, 0.6);
  background: linear-gradient(135deg, rgba(255, 100, 124, 0.35), rgba(255, 255, 255, 0.12));
}

.feed-add-post-btn:hover,
.feed-add-post-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px -18px color-mix(in srgb, var(--feed-accent) 60%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--feed-accent) 45%, transparent), rgba(255, 255, 255, 0.12));
  outline: none;
}

.learning-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.learning-sidebar__status {
  margin: 0;
  font-size: 0.85rem;
  color: var(--feed-muted-color);
}

.learning-sidebar__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.learning-sidebar__item:hover {
  background: rgba(99, 102, 241, 0.16);
}

.learning-sidebar__type {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--feed-muted-color);
}

.learning-sidebar__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
}

.learning-sidebar__meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--feed-muted-color);
}

.learning-sidebar__link {
  color: inherit;
  text-decoration: none;
}

.sidebar .icon,
.right-sidebar .icon {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(148, 163, 184, 0.08);
  color: var(--text-color);
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
}

.sidebar .icon.icon--button,
.right-sidebar .icon.icon--button {
  width: 100%;
  border: none;
  text-align: left;
  cursor: pointer;
}

.sidebar .icon.icon--button:focus-visible,
.right-sidebar .icon.icon--button:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--feed-accent) 45%, transparent);
  outline-offset: 2px;
}

.sidebar .icon:hover,
.right-sidebar .icon:hover {
  background: rgba(99, 102, 241, 0.16);
  transform: translateX(2px);
}

.sidebar .icon .label a,
.right-sidebar .icon .label a,
.sidebar .icon a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.sidebar .icon .label a:hover,
.right-sidebar .icon .label a:hover,
.sidebar .icon a:hover {
  color: var(--feed-accent);
}

.sidebar #sidebarToggle,
.right-sidebar #rightSidebarToggle {
  --toggle-rotation: 0deg;
  align-self: flex-end;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: transparent;
  color: var(--text-color);
  display: grid;
  place-items: center;
  font-size: 18px;
  cursor: pointer;
  transform: rotate(var(--toggle-rotation));
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.sidebar-toggle-row {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.sidebar .sidebar-swap-toggle {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: transparent;
  color: var(--text-color);
  display: grid;
  place-items: center;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.sidebar .sidebar-swap-toggle:hover,
.sidebar .sidebar-swap-toggle:focus-visible {
  background: rgba(99, 102, 241, 0.14);
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-1px);
  outline: none;
}

.sidebar.collapsed #sidebarToggle {
  --toggle-rotation: 180deg;
}

.right-sidebar.collapsed #rightSidebarToggle {
  --toggle-rotation: 180deg;
}

.sidebar #sidebarToggle:hover,
.sidebar #sidebarToggle:focus-visible,
.right-sidebar #rightSidebarToggle:hover,
.right-sidebar #rightSidebarToggle:focus-visible {
  background: rgba(99, 102, 241, 0.14);
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-1px) rotate(var(--toggle-rotation));
  outline: none;
}

.main-content {
  grid-area: main;
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.5vw, 28px);
}

.story-rail {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(99, 102, 241, 0.16);
  background: linear-gradient(140deg, rgba(99, 102, 241, 0.12), rgba(14, 165, 233, 0.08))
      rgba(255, 255, 255, 0.78);
  box-shadow: 0 24px 48px -28px rgba(15, 23, 42, 0.45);
}

body.dark .story-rail {
  border-color: rgba(99, 102, 241, 0.32);
  background: linear-gradient(140deg, rgba(99, 102, 241, 0.22), rgba(14, 165, 233, 0.16))
      rgba(2, 6, 23, 0.82);
  box-shadow: 0 28px 54px -26px rgba(2, 6, 23, 0.75);
}

body.theme-news .story-rail {
  border-color: rgba(59, 130, 246, 0.32);
  background: linear-gradient(140deg, rgba(30, 41, 59, 0.68), rgba(15, 23, 42, 0.72))
      rgba(15, 23, 42, 0.84);
}

.story-rail__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.live-room-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.verify-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  margin: 12px 20px 0;
  border-radius: 16px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.verify-banner[hidden] {
  display: none !important;
}

.verify-banner__content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.verify-banner__title {
  font-weight: 700;
  color: var(--text-color);
}

.verify-banner__text {
  font-size: 0.9rem;
  color: rgba(15, 23, 42, 0.7);
}

body.dark .verify-banner__text {
  color: rgba(255, 255, 255, 0.72);
}

.verify-banner__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.verify-banner__btn {
  border: 1px solid rgba(59, 130, 246, 0.35);
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.verify-banner__btn:hover,
.verify-banner__btn:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: 0 10px 24px -16px rgba(59, 130, 246, 0.5);
  outline: none;
}

.verify-banner__btn--ghost {
  background: transparent;
  color: inherit;
  border-color: rgba(148, 163, 184, 0.4);
}

.verify-banner__status {
  font-size: 0.8rem;
  color: rgba(15, 23, 42, 0.6);
}

.verify-banner__status[data-tone="success"] {
  color: #16a34a;
}

.verify-banner__status[data-tone="error"] {
  color: #dc2626;
}

.verify-banner__status[data-tone="info"] {
  color: #2563eb;
}

body.dark .verify-banner__status {
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 720px) {
  .verify-banner {
    flex-direction: column;
    align-items: flex-start;
    margin: 12px 12px 0;
  }
}

.live-room-banner[hidden] {
  display: none !important;
}

.live-room-banner__content {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.live-room-banner__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.5px;
  box-shadow: 0 10px 22px -14px rgba(239, 68, 68, 0.7);
}

.live-room-banner__details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.live-room-banner__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-color);
}

.live-room-banner__status {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(15, 23, 42, 0.7);
}

body.dark .live-room-banner__status {
  color: rgba(255, 255, 255, 0.72);
}

.live-room-banner__cta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.16), rgba(249, 115, 22, 0.16));
  color: #ef4444;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.live-room-banner__cta:hover,
.live-room-banner__cta:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(239, 68, 68, 0.55);
  box-shadow: 0 10px 24px -16px rgba(239, 68, 68, 0.65);
  outline: none;
}

.live-room-banner__cta:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, #ef4444 25%, transparent);
}

body.dark .live-room-banner {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.28);
}

.story-rail__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.story-rail__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
}

.story-rail__add {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.4);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(99, 102, 241, 0.18));
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-color);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.story-rail__add:hover,
.story-rail__add:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 12px 28px -18px rgba(56, 189, 248, 0.6);
  outline: none;
}

.story-rail__add:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--feed-accent) 24%, transparent);
}

.story-rail__add-icon {
  font-size: 1rem;
}

.story-rail__add-label {
  white-space: nowrap;
}

.story-rail__add[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

body.dark .story-rail__add {
  border-color: rgba(56, 189, 248, 0.45);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(99, 102, 241, 0.22));
}

body.theme-news .story-rail__add {
  border-color: rgba(56, 189, 248, 0.55);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.32), rgba(59, 130, 246, 0.28));
}

.story-rail__refresh {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(99, 102, 241, 0.35);
  background: rgba(99, 102, 241, 0.12);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--text-color);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.story-rail__refresh:hover,
.story-rail__refresh:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 12px 24px -18px rgba(59, 130, 246, 0.55);
  outline: none;
}

.story-rail__refresh-text {
  display: none;
}

.story-rail__viewport {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
}

.story-rail.is-loading .story-card {
  opacity: 0.6;
  pointer-events: none;
}

.story-rail__nav {
  border: 1px solid rgba(99, 102, 241, 0.24);
  background: rgba(99, 102, 241, 0.12);
  color: var(--text-color);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.story-rail__nav:hover,
.story-rail__nav:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px -16px rgba(59, 130, 246, 0.6);
  outline: none;
}

.story-rail__nav[disabled] {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.story-rail:not(.story-rail--has-scroll) .story-rail__nav {
  display: none;
}

.story-rail__list {
  position: relative;
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 8px 4px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(99, 102, 241, 0.4) transparent;
  border-radius: 18px;
  outline: none;
}

.story-rail__list:focus-visible {
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.35);
}

.story-rail__list::-webkit-scrollbar {
  height: 6px;
}

.story-rail__list::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.4);
  border-radius: 999px;
}

.story-card-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 88px;
  max-width: 110px;
  scroll-snap-align: start;
}

.story-card {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 6px 4px 10px;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.story-card:hover,
.story-card:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.05);
  outline: none;
}

.story-card__avatar {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.68), rgba(14, 165, 233, 0.72));
}

.story-card__avatar::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--feed-card-bg);
  z-index: 0;
}

.story-card__avatar img,
.story-card__avatar video {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  z-index: 1;
}

.story-card__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  color: var(--text-color);
  line-height: 1.3;
}

.story-card.is-unread .story-card__avatar {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.92), rgba(99, 102, 241, 0.88));
}

.story-card:not(.is-unread) .story-card__avatar {
  background: linear-gradient(135deg, rgba(148, 163, 184, 0.38), rgba(148, 163, 184, 0.18));
}

.story-card__status {
  position: absolute;
  top: 6px;
  right: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--feed-highlight);
  border: 2px solid var(--feed-card-bg);
  transform: scale(0);
  transition: transform 0.2s ease;
}

.story-card.is-unread .story-card__status {
  transform: scale(1);
}

.story-card-wrapper--live .story-card__avatar {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.85), rgba(99, 102, 241, 0.9));
}

.story-card__live-pill {
  position: absolute;
  top: 6px;
  left: 10px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.9);
  color: #fff;
  box-shadow: 0 4px 12px -6px rgba(239, 68, 68, 0.7);
}

.story-card__live-badges {
  display: flex;
  gap: 6px;
  font-size: 0.7rem;
  color: rgba(15, 23, 42, 0.82);
}

.story-card__live-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.22);
  color: inherit;
  font-weight: 600;
}

.story-card__live-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.story-card__live-cta {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(99, 102, 241, 0.4);
  background: rgba(99, 102, 241, 0.12);
  color: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.story-card__live-cta:hover,
.story-card__live-cta:focus-visible {
  background: rgba(99, 102, 241, 0.22);
  border-color: rgba(99, 102, 241, 0.6);
  outline: none;
  transform: translateY(-1px);
}

.story-card__live-cta--danger {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.45);
  color: rgba(239, 68, 68, 0.95);
}

.story-card__live-cta--danger:hover,
.story-card__live-cta--danger:focus-visible {
  background: rgba(239, 68, 68, 0.28);
  border-color: rgba(239, 68, 68, 0.6);
}

body.dark .story-card__live-pill {
  background: rgba(239, 68, 68, 0.82);
}

body.dark .story-card__live-badge {
  background: rgba(148, 163, 184, 0.28);
  color: #e2e8f0;
}

body.dark .story-card__live-cta {
  border-color: rgba(99, 102, 241, 0.52);
  background: rgba(79, 70, 229, 0.2);
}

body.dark .story-card__live-cta--danger {
  background: rgba(239, 68, 68, 0.32);
  border-color: rgba(239, 68, 68, 0.55);
  color: #fee2e2;
}

.story-rail__status {
  margin: 0;
  font-size: 0.8rem;
  color: var(--feed-muted-color);
}

.story-rail__status[data-tone="loading"] {
  color: var(--feed-accent);
}

.story-rail__status[data-tone="error"] {
  color: #f87171;
}

.story-rail__status[data-tone="empty"] {
  color: var(--feed-muted-color);
  font-style: italic;
}

.story-rail__status:empty {
  display: none;
}

.story-composer {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-composer[hidden] {
  display: none;
}

.story-composer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
}

.story-composer__dialog {
  position: relative;
  width: min(520px, 92vw);
  max-height: min(90vh, 640px);
  overflow-y: auto;
  border-radius: 24px;
  border: 1px solid var(--feed-card-border);
  background: var(--feed-card-bg);
  box-shadow: var(--feed-card-shadow);
  padding: 28px 28px 32px;
  z-index: 1;
}

.story-composer__close {
  position: absolute;
  top: 18px;
  right: 18px;
  border: none;
  background: transparent;
  color: var(--feed-muted-color);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.story-composer__close:hover,
.story-composer__close:focus-visible {
  color: var(--feed-accent);
  transform: scale(1.04);
  outline: none;
}

.story-composer__title {
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-color);
}

.story-composer__hint {
  margin: 0 0 18px;
  font-size: 0.92rem;
  color: var(--feed-muted-color);
}

.story-composer__status {
  margin: 0 0 18px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.12);
  color: var(--text-color);
  font-weight: 600;
  transition: opacity 0.24s ease;
}

.story-composer__status:not(.is-visible) {
  opacity: 0;
}

.story-composer__status[data-variant="success"] {
  background: rgba(34, 197, 94, 0.14);
  color: #0f172a;
}

.story-composer__status[data-variant="error"] {
  background: rgba(239, 68, 68, 0.14);
  color: #7f1d1d;
}

.story-composer__status[data-variant="warning"] {
  background: rgba(251, 191, 36, 0.16);
  color: #7c2d12;
}

body.dark .story-composer__status[data-variant="success"] {
  color: #bbf7d0;
}

body.dark .story-composer__status[data-variant="error"] {
  color: #fecaca;
}

body.dark .story-composer__status[data-variant="warning"] {
  color: #fde68a;
}

.story-composer__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.story-composer__mode {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 4px;
}

.story-composer__mode-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.story-composer__mode-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: rgba(148, 163, 184, 0.12);
  cursor: pointer;
  font-weight: 600;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.story-composer__mode-option input {
  width: 16px;
  height: 16px;
  accent-color: #6366f1;
}

.story-composer__mode-option:hover,
.story-composer__mode-option:focus-within {
  border-color: rgba(99, 102, 241, 0.5);
  background: rgba(99, 102, 241, 0.18);
  transform: translateY(-1px);
}

.story-composer__mode-help {
  margin: 0;
  font-size: 0.75rem;
  color: #8a91a8;
}

.story-composer[data-mode='story'] [data-story-mode-live],
.story-composer[data-mode='live'] [data-story-mode-story] {
  display: none !important;
}

.story-composer__live {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(99, 102, 241, 0.24);
  background: rgba(99, 102, 241, 0.08);
}

.story-composer__text {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(148, 163, 184, 0.08);
}

body.dark .story-composer__mode-option {
  border-color: rgba(99, 102, 241, 0.28);
  background: rgba(79, 70, 229, 0.18);
}

body.dark .story-composer__mode-option:hover,
body.dark .story-composer__mode-option:focus-within {
  background: rgba(79, 70, 229, 0.28);
  border-color: rgba(129, 140, 248, 0.5);
}

body.dark .story-composer__mode-help {
  color: #a5b4fc;
}

body.dark .story-composer__live {
  border-color: rgba(99, 102, 241, 0.32);
  background: rgba(79, 70, 229, 0.18);
}


body.dark .story-composer__text {
  border-color: rgba(99, 102, 241, 0.32);
  background: rgba(15, 23, 42, 0.65);
}

.story-text-editor {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.story-text-card {
  width: 100%;
  min-height: 320px;
  border-radius: 28px;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  font-size: clamp(1.2rem, 2.2vw, 2.2rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.35);
  background: linear-gradient(135deg, #f97316, #db2777);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.story-text-card[data-align='left'] {
  text-align: left;
}

.story-text-card[data-align='right'] {
  text-align: right;
}

.story-text-card[data-font='sans'] {
  font-family: 'Inter', 'Helvetica Neue', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.story-text-card[data-font='serif'] {
  font-family: 'Playfair Display', 'Times New Roman', Georgia, serif;
}

.story-text-card[data-font='mono'] {
  font-family: 'Space Mono', 'Courier New', Courier, monospace;
}

.story-text-card[data-font='casual'] {
  font-family: 'Poppins', 'Comic Neue', 'Trebuchet MS', sans-serif;
}

.story-text-card__content {
  margin: 0;
  white-space: pre-line;
  line-height: 1.4;
}

.story-text-card__content[data-empty='true'] {
  opacity: 0.85;
}

.story-text-toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.story-text-toolbar__group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.story-text-toolbar__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
}

.story-text-swatch {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 2px solid transparent;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.story-text-swatch.is-active,
.story-text-swatch[aria-pressed='true'] {
  border-color: rgba(99, 102, 241, 0.9);
  transform: translateY(-1px);
}

.story-text-toolbar__button {
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 999px;
  padding: 6px 14px;
  background: rgba(99, 102, 241, 0.05);
  font-weight: 600;
  cursor: pointer;
  color: #1f2937;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.story-text-toolbar__button.is-active,
.story-text-toolbar__button[aria-pressed='true'] {
  background: rgba(99, 102, 241, 0.25);
  color: #0f172a;
  border-color: rgba(99, 102, 241, 0.55);
}

body.dark .story-text-toolbar__label {
  color: #a5b4fc;
}

body.dark .story-text-toolbar__button {
  color: #e5e7eb;
  border-color: rgba(99, 102, 241, 0.5);
  background: rgba(79, 70, 229, 0.18);
}

body.dark .story-text-toolbar__button.is-active,
body.dark .story-text-toolbar__button[aria-pressed='true'] {
  background: rgba(99, 102, 241, 0.4);
  color: #f8fafc;
}

body.dark .story-text-swatch {
  border-color: rgba(148, 163, 184, 0.35);
}

.story-text-card[data-theme='sunset'],
.story-text-swatch[data-story-text-theme='sunset'] {
  background-image: linear-gradient(135deg, #fb923c, #ec4899);
  color: #fff;
}

.story-text-card[data-theme='twilight'],
.story-text-swatch[data-story-text-theme='twilight'] {
  background-image: linear-gradient(135deg, #6366f1, #0ea5e9);
  color: #f8fafc;
}

.story-text-card[data-theme='lagoon'],
.story-text-swatch[data-story-text-theme='lagoon'] {
  background-image: linear-gradient(135deg, #14b8a6, #3b82f6);
  color: #ecfeff;
}

.story-text-card[data-theme='citrus'],
.story-text-swatch[data-story-text-theme='citrus'] {
  background-image: linear-gradient(135deg, #fde047, #fb923c);
  color: #1f2937;
}

.story-text-card[data-theme='midnight'],
.story-text-swatch[data-story-text-theme='midnight'] {
  background-image: linear-gradient(135deg, #0f172a, #312e81);
  color: #f1f5f9;
}

.story-lightbox__text-card {
  min-height: 420px;
  width: 100%;
}

@media (max-width: 640px) {
  .story-text-card {
    min-height: 260px;
    padding: 24px;
    font-size: 1.1rem;
  }

  .story-text-swatch {
    width: 34px;
    height: 34px;
  }

  .story-text-toolbar__group {
    gap: 6px;
  }
}

.story-composer__live-status {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.16);
  color: #0f172a;
  font-weight: 600;
  font-size: 0.85rem;
}

.story-composer__live-status[data-variant='error'] {
  background: rgba(248, 113, 113, 0.2);
  color: #b91c1c;
}

.story-composer__live-status[data-variant='success'] {
  background: rgba(74, 222, 128, 0.18);
  color: #166534;
}

body.dark .story-composer__live-status {
  color: #e2e8f0;
}

body.dark .story-composer__live-status[data-variant='error'] {
  color: #fecaca;
  background: rgba(239, 68, 68, 0.25);
}

body.dark .story-composer__live-status[data-variant='success'] {
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.22);
}

.story-composer__live-controls {
  display: none;
  flex-direction: column;
  gap: 6px;
}

.story-composer__live-controls[data-active='true'] {
  display: flex;
}

.story-composer__live-manage {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

.story-composer__live-manage:hover,
.story-composer__live-manage:focus-visible {
  text-decoration: underline;
  outline: none;
}

.story-composer__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.story-composer__label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-color);
}

.story-composer__field textarea,
.story-composer__field select {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(99, 102, 241, 0.22);
  background: rgba(148, 163, 184, 0.08);
  color: var(--text-color);
  font-size: 0.95rem;
  padding: 12px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.story-composer__field textarea {
  min-height: 88px;
  resize: vertical;
}

.story-composer__field select {
  cursor: pointer;
}

.story-composer__field textarea:focus,
.story-composer__field select:focus {
  outline: none;
  border-color: rgba(99, 102, 241, 0.55);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--feed-accent) 22%, transparent);
}

body.dark .story-composer__field textarea,
body.dark .story-composer__field select {
  background: rgba(15, 23, 42, 0.42);
  border-color: rgba(99, 102, 241, 0.28);
}

.story-composer__media {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  border: 1px dashed rgba(99, 102, 241, 0.42);
  background: rgba(148, 163, 184, 0.1);
}

.story-composer__media[data-empty="true"] {
  border-style: dashed;
}

body.dark .story-composer__media {
  background: rgba(30, 41, 59, 0.45);
  border-color: rgba(99, 102, 241, 0.32);
}

.story-composer__media-trigger {
  align-self: flex-start;
  border-radius: 12px;
  border: 1px solid rgba(99, 102, 241, 0.45);
  background: rgba(30, 64, 175, 0.14);
  color: var(--text-color);
  font-weight: 600;
  padding: 8px 14px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.story-composer__media-trigger:hover,
.story-composer__media-trigger:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(99, 102, 241, 0.65);
  box-shadow: 0 16px 28px -20px rgba(99, 102, 241, 0.55);
  outline: none;
}

.story-composer__media-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.story-composer__media-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-color);
}

.story-composer__media-name[data-empty="true"] {
  color: var(--feed-muted-color);
  font-weight: 500;
}

.story-composer__media-clear {
  border: none;
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.story-composer__media-clear:hover,
.story-composer__media-clear:focus-visible {
  background: rgba(239, 68, 68, 0.2);
  transform: translateY(-1px);
  outline: none;
}

.story-composer__preview {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.story-composer__preview img,
.story-composer__preview-video {
  width: 100%;
  border-radius: 16px;
  max-height: 320px;
  object-fit: cover;
  background: #000;
}

.story-composer__actions {
  display: flex;
  justify-content: flex-end;
}

#storyComposerSubmit {
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  background: linear-gradient(135deg, var(--feed-accent), var(--feed-highlight));
  color: #0f172a;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#storyComposerSubmit:hover,
#storyComposerSubmit:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px -20px rgba(56, 189, 248, 0.55);
  outline: none;
}

#storyComposerSubmit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

body.story-composer-open {
  overflow: hidden;
}

body.dark .story-rail__nav,
body.dark .story-rail__refresh {
  border-color: rgba(99, 102, 241, 0.42);
  background: rgba(99, 102, 241, 0.16);
}

.story-lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 11, 24, 0.76);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1200;
}

.story-lightbox__media--hidden {
  display: none;
}

.story-lightbox__live {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(99, 102, 241, 0.24);
  background: rgba(148, 163, 184, 0.12);
}

body.dark .story-lightbox__live {
  border-color: rgba(99, 102, 241, 0.32);
  background: rgba(30, 41, 59, 0.55);
}

.story-live__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.story-live__title-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.story-live__badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.92);
  color: #fff;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story-live__status {
  margin: 0;
  font-size: 0.85rem;
  color: #0f172a;
  font-weight: 600;
}

body.dark .story-live__status {
  color: #e2e8f0;
}

.story-live__description {
  margin: 0;
  font-size: 0.9rem;
  color: var(--feed-muted-color);
}

.story-live__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.story-live__action {
  border: 1px solid rgba(99, 102, 241, 0.32);
  background: rgba(99, 102, 241, 0.16);
  color: inherit;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.story-live__action:hover,
.story-live__action:focus-visible {
  background: rgba(99, 102, 241, 0.26);
  outline: none;
  transform: translateY(-1px);
}

.story-live__action--primary {
  background: #6366f1;
  border-color: #6366f1;
  color: #fff;
}

.story-live__action--danger {
  background: #ef4444;
  border-color: #ef4444;
  color: #fff;
}

.story-live__body {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.story-live__participants {
  flex: 1 1 220px;
}

.story-live__participants-status {
  margin: 0 0 6px;
  font-size: 0.8rem;
  color: var(--feed-muted-color);
}

.story-live__participants-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.story-live__participants-list li {
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(148, 163, 184, 0.18);
  color: var(--text-color);
  font-size: 0.85rem;
}

.story-live__participants-empty {
  font-style: italic;
  color: var(--feed-muted-color);
}

.story-live__chat-hint {
  flex: 1 1 180px;
  font-size: 0.85rem;
  color: var(--feed-muted-color);
}

body.dark .story-live__action {
  border-color: rgba(99, 102, 241, 0.45);
  background: rgba(79, 70, 229, 0.22);
}

body.dark .story-live__action--primary {
  background: #4f46e5;
  border-color: #4f46e5;
}

body.dark .story-live__action--danger {
  background: #dc2626;
  border-color: #dc2626;
}

.story-lightbox[hidden] {
  display: none;
}

.story-lightbox__backdrop {
  position: absolute;
  inset: 0;
}

.story-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(520px, 92vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border-radius: 24px;
  background: linear-gradient(140deg, rgba(99, 102, 241, 0.25), rgba(14, 165, 233, 0.18))
      rgba(2, 6, 23, 0.95);
  color: #f8fafc;
  box-shadow: 0 32px 80px -24px rgba(2, 6, 23, 0.85);
  outline: none;
}

.story-lightbox__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.story-lightbox__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.story-lightbox__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(99, 102, 241, 0.55);
}

.story-lightbox__name {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.story-lightbox__timestamp {
  margin: 0;
  font-size: 0.75rem;
  color: rgba(226, 232, 240, 0.75);
}

.story-lightbox__close {
  border: none;
  background: rgba(15, 23, 42, 0.4);
  color: inherit;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
}

.story-lightbox__close:hover,
.story-lightbox__close:focus-visible {
  transform: rotate(90deg);
  background: rgba(59, 130, 246, 0.45);
  outline: none;
}

.story-lightbox__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.85);
  min-height: 320px;
}

.story-lightbox__media img,
.story-lightbox__media video {
  width: 100%;
  height: auto;
  max-height: 62vh;
  object-fit: contain;
}

.story-lightbox__controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.story-lightbox__control {
  border: none;
  background: rgba(15, 23, 42, 0.45);
  color: inherit;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
}

.story-lightbox__control:hover,
.story-lightbox__control:focus-visible {
  transform: translateY(-1px);
  background: rgba(99, 102, 241, 0.55);
  outline: none;
}

.story-lightbox__progress {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.story-lightbox__progress-segment {
  position: relative;
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.28);
  overflow: hidden;
}

.story-lightbox__progress-segment::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 0;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.95), rgba(99, 102, 241, 0.95));
  border-radius: inherit;
  transform-origin: left center;
}

.story-lightbox__progress-segment.is-complete::after {
  width: 100%;
}

.story-lightbox__progress-segment.is-active::after {
  animation: story-progress var(--story-progress-duration, 5s) linear forwards;
}

.story-lightbox__progress-segment.is-static::after {
  animation: none;
  width: 100%;
}

.story-lightbox__progress-segment.is-live::after {
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.75), rgba(248, 113, 113, 0.75));
}

.story-lightbox__progress-segment.is-paused::after {
  animation-play-state: paused;
}

.story-lightbox__caption {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(226, 232, 240, 0.88);
}

.story-lightbox__feedback {
  min-height: 1.25rem;
  font-size: 0.8rem;
  color: rgba(226, 232, 240, 0.7);
  transition: color 0.2s ease;
}

.story-lightbox__feedback[data-variant="error"] {
  color: #f87171;
}

.story-lightbox__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.story-lightbox__action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.85rem;
  background: rgba(15, 23, 42, 0.55);
  color: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.story-lightbox__action:hover,
.story-lightbox__action:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(99, 102, 241, 0.65);
  background: rgba(59, 130, 246, 0.25);
  outline: none;
}

.story-lightbox__action.is-liked {
  border-color: rgba(236, 72, 153, 0.8);
  background: rgba(236, 72, 153, 0.2);
  color: #fbcfe8;
}

.story-lightbox__action--static {
  border-radius: 999px;
  padding: 6px 14px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.35);
}

.story-lightbox__action-icon {
  font-size: 1rem;
  line-height: 1;
}

.story-lightbox__action-count {
  font-weight: 600;
}

.story-lightbox__viewers {
  margin: 1rem 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid #222642;
  border-radius: 12px;
  background: #14172b;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.story-lightbox__viewers[hidden] {
  display: none;
}

.story-lightbox__viewers-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.story-lightbox__viewers-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #eaf0ff;
}

.story-lightbox__viewers-close {
  border: none;
  background: none;
  color: #8a91a8;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
}

.story-lightbox__viewers-close:hover,
.story-lightbox__viewers-close:focus-visible {
  color: #eaf0ff;
  background: rgba(255, 255, 255, 0.08);
}

.story-lightbox__viewers-status {
  margin: 0;
  font-size: 0.85rem;
  color: #8a91a8;
}

.story-lightbox__viewers-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.story-lightbox__viewer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.story-lightbox__viewer-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: #0f1220;
}

.story-lightbox__viewer-meta {
  display: flex;
  flex-direction: column;
}

.story-lightbox__viewer-name {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #eaf0ff;
}

.story-lightbox__viewer-username {
  margin: 0;
  font-size: 0.75rem;
  color: #8a91a8;
}

.story-lightbox__viewer-time {
  margin: 0;
  font-size: 0.75rem;
  color: #6d7390;
}

.story-lightbox__comment-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.story-lightbox__comment-form textarea {
  width: 100%;
  resize: vertical;
  min-height: 64px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.55);
  color: inherit;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 0.9rem;
}

.story-lightbox__comment-form textarea:focus-visible {
  outline: 2px solid rgba(99, 102, 241, 0.65);
  outline-offset: 2px;
}

.story-lightbox__comment-submit {
  align-self: flex-end;
  border: none;
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.85), rgba(99, 102, 241, 0.85));
  color: #f8fafc;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.story-lightbox__comment-submit:hover,
.story-lightbox__comment-submit:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -12px rgba(56, 189, 248, 0.75);
  outline: none;
}

.story-lightbox__comments {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 220px;
  overflow-y: auto;
}

.story-lightbox__comments li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.story-lightbox__comments-empty {
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.75);
  padding: 8px 4px;
}

.story-lightbox__comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(226, 232, 240, 0.8);
}

.story-lightbox__comment-author {
  font-weight: 600;
}

.story-lightbox__comment-meta {
  font-size: 0.75rem;
  color: rgba(148, 163, 184, 0.75);
}

.story-lightbox__comment-body {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.4;
  color: rgba(226, 232, 240, 0.85);
  word-break: break-word;
}

.story-lightbox__comment-delete {
  border: none;
  background: transparent;
  color: rgba(248, 113, 113, 0.9);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
}

.story-lightbox__comment-delete:hover,
.story-lightbox__comment-delete:focus-visible {
  text-decoration: underline;
  outline: none;
}

@keyframes story-progress {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

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

@media (min-width: 540px) {
  .story-rail__refresh-text {
    display: inline;
  }
}

@media (max-width: 720px) {
  .story-rail {
    padding: 16px 14px;
  }

  .story-rail__actions {
    width: 100%;
    justify-content: space-between;
  }

  .story-card {
    min-width: 72px;
    max-width: 90px;
  }

  .story-card__avatar {
    width: 62px;
    height: 62px;
  }

  .story-lightbox__dialog {
    width: min(96vw, 420px);
    padding: 18px;
  }

  .story-lightbox__media {
    min-height: 260px;
  }
}

@media (max-width: 540px) {
  .story-rail__viewport {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .story-rail__add-label {
    display: none;
  }

  .story-rail__add {
    padding: 6px 10px;
  }

  .story-composer__dialog {
    width: min(96vw, 440px);
    padding: 24px 20px 28px;
  }

  .story-rail__nav {
    display: none;
  }

  .story-rail__list {
    padding: 6px 2px;
  }
}

.main-content .container {
  background: var(--feed-card-bg);
  border: 1px solid var(--feed-card-border);
  border-radius: 28px;
  padding: clamp(22px, 3vw, 34px);
  box-shadow: var(--feed-card-shadow);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.8vw, 22px);
}

.main-content h2 {
  margin: 0;
  font-size: clamp(1.4rem, 1.8vw + 1rem, 2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.main-content h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--feed-muted-color);
}

.feed-restart-btn {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: -6px;
  margin-bottom: 6px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(99, 102, 241, 0.35);
  background: rgba(99, 102, 241, 0.08);
  color: var(--text-color);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.feed-restart-btn:hover,
.feed-restart-btn:focus-visible {
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(99, 102, 241, 0.55);
  box-shadow: 0 8px 20px -12px rgba(15, 23, 42, 0.6);
  transform: translateY(-1px);
  outline: none;
}

.feed-restart-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.feed-restart-btn__icon {
  font-size: 0.95rem;
}

.main-content hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0), rgba(99, 102, 241, 0.35), rgba(34, 211, 238, 0));
  margin: 4px 0;
}

.main-content [data-composer-hint] {
  color: var(--feed-muted-color);
  font-size: 0.75rem;
  letter-spacing: 0.01em;
  text-transform: none;
}

.composer-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.composer-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-color);
}

.composer-context {
  font-weight: 500;
}

.feed-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

#feedSentinel {
  width: 100%;
  min-height: 4px;
  margin: 32px 0;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.45), rgba(34, 211, 238, 0.45));
  border-radius: 999px;
}

.composer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(18px, 2.5vw, 24px);
  border-radius: 24px;
  border: 1px solid rgba(99, 102, 241, 0.18);
  background: linear-gradient(140deg, rgba(99, 102, 241, 0.12), rgba(34, 211, 238, 0.1))
      rgba(255, 255, 255, 0.85);
  box-shadow: 0 22px 45px -24px rgba(15, 23, 42, 0.45);
  margin-bottom: 16px;
}

body.dark .composer {
  background: linear-gradient(140deg, rgba(99, 102, 241, 0.18), rgba(14, 165, 233, 0.14))
      rgba(2, 6, 23, 0.86);
  border-color: rgba(99, 102, 241, 0.28);
  box-shadow: 0 28px 56px -26px rgba(2, 6, 23, 0.75);
}

body.theme-news .composer {
  background: linear-gradient(140deg, rgba(30, 41, 59, 0.68), rgba(15, 23, 42, 0.82))
      rgba(15, 23, 42, 0.9);
  border-color: rgba(71, 85, 105, 0.42);
  box-shadow: 0 26px 52px -24px rgba(2, 6, 23, 0.72);
}

.feed-list .post-card + .post-card {
  margin-top: 14px;
}

.post-link-preview {
  margin-top: 12px;
  border-radius: 14px;
  border: 1px solid var(--feed-card-border);
  background: linear-gradient(135deg, rgba(148, 163, 184, 0.18), rgba(59, 130, 246, 0.12))
      var(--feed-card-bg);
  overflow: hidden;
  box-shadow: 0 18px 36px -24px rgba(15, 23, 42, 0.45);
}

.post-link-preview .plp-row {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 14px;
  align-items: stretch;
  text-decoration: none;
  color: inherit;
}

.post-link-preview img {
  width: 112px;
  height: 112px;
  object-fit: cover;
  display: block;
}

.post-link-preview .plp-txt {
  padding: 12px 12px 12px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.post-link-preview .plp-title {
  font-weight: 700;
  line-height: 1.2;
  font-size: 1rem;
}

.post-link-preview .plp-desc {
  font-size: 0.95rem;
  opacity: 0.88;
  max-height: 3.2em;
  overflow: hidden;
}

.post-link-preview .plp-site {
  font-size: 0.85rem;
  opacity: 0.72;
}

.composer textarea {
  min-height: 72px;
  max-height: 320px;
  width: 100%;
  box-sizing: border-box;
  border-radius: 20px;
  border: 1px solid transparent;
  padding: 16px 18px;
  font-size: 1.05rem;
  line-height: 1.55;
  resize: vertical;
  color: inherit;
  caret-color: var(--feed-accent);
  overflow-y: auto;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.88)) padding-box,
    linear-gradient(135deg, rgba(99, 102, 241, 0.38), rgba(14, 165, 233, 0.32)) border-box;
  box-shadow: 0 26px 52px -28px rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

body.dark .composer textarea {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.86)) padding-box,
    linear-gradient(135deg, rgba(99, 102, 241, 0.48), rgba(14, 165, 233, 0.42)) border-box;
  box-shadow: 0 28px 58px -26px rgba(2, 6, 23, 0.85);
}

body.theme-news .composer textarea {
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.95), rgba(17, 24, 39, 0.88)) padding-box,
    linear-gradient(135deg, rgba(71, 85, 105, 0.45), rgba(100, 116, 139, 0.4)) border-box;
  box-shadow: 0 28px 58px -26px rgba(2, 6, 23, 0.78);
}

.composer textarea:hover {
  transform: translateY(-1px);
  box-shadow: 0 30px 64px -28px rgba(15, 23, 42, 0.58);
}

body.dark .composer textarea:hover {
  box-shadow: 0 32px 68px -26px rgba(6, 182, 212, 0.32);
}

body.theme-news .composer textarea:hover {
  box-shadow: 0 32px 68px -26px rgba(148, 163, 184, 0.32);
}

.composer textarea:focus {
  outline: none;
  transform: translateY(-1px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.94)) padding-box,
    linear-gradient(135deg, rgba(99, 102, 241, 0.6), rgba(14, 165, 233, 0.52)) border-box;
  box-shadow:
    0 0 0 3px rgba(99, 102, 241, 0.18),
    0 36px 70px -26px rgba(99, 102, 241, 0.35);
}

body.dark .composer textarea:focus {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.99), rgba(15, 23, 42, 0.92)) padding-box,
    linear-gradient(135deg, rgba(99, 102, 241, 0.68), rgba(14, 165, 233, 0.58)) border-box;
  box-shadow:
    0 0 0 3px rgba(99, 102, 241, 0.28),
    0 36px 72px -24px rgba(14, 165, 233, 0.45);
}

body.theme-news .composer textarea:focus {
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.99), rgba(17, 24, 39, 0.92)) padding-box,
    linear-gradient(135deg, rgba(71, 85, 105, 0.6), rgba(100, 116, 139, 0.52)) border-box;
  box-shadow:
    0 0 0 3px rgba(148, 163, 184, 0.22),
    0 36px 72px -24px rgba(15, 23, 42, 0.55);
}

.composer textarea::placeholder {
  color: rgba(100, 116, 139, 0.88);
  font-weight: 500;
  letter-spacing: 0.01em;
}

body.dark .composer textarea::placeholder {
  color: rgba(148, 163, 184, 0.74);
}

body.theme-news .composer textarea::placeholder {
  color: rgba(203, 213, 225, 0.68);
}

.composer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

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

.composer-add-menu {
  position: relative;
  display: inline-flex;
}

.composer-add-menu__trigger {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(99, 102, 241, 0.32);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(14, 165, 233, 0.14));
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.composer-add-menu__trigger:hover,
.composer-add-menu__trigger:focus-visible,
.composer-add-menu__trigger.is-open {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px -22px rgba(99, 102, 241, 0.6);
  outline: none;
}

body.dark .composer-add-menu__trigger {
  border-color: rgba(125, 211, 252, 0.35);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.24), rgba(14, 165, 233, 0.18));
}

.composer-add-menu__dropdown {
  position: absolute;
  top: 50px;
  left: 0;
  min-width: 200px;
  padding: 8px;
  border-radius: 18px;
  border: 1px solid rgba(99, 102, 241, 0.28);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 28px 52px -28px rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 32;
}

body.dark .composer-add-menu__dropdown {
  background: rgba(15, 23, 42, 0.94);
  border-color: rgba(125, 211, 252, 0.32);
  box-shadow: 0 32px 60px -26px rgba(2, 6, 23, 0.78);
}

.composer-add-menu__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.composer-add-menu__item span:first-child {
  font-size: 1.1rem;
}

.composer-add-menu__item:hover,
.composer-add-menu__item:focus-visible {
  background: rgba(99, 102, 241, 0.16);
  outline: none;
}

.composer-media {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px dashed rgba(99, 102, 241, 0.35);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.composer-media[data-empty] {
  display: none;
}

body.dark .composer-media {
  background: rgba(15, 23, 42, 0.68);
  border-color: rgba(125, 211, 252, 0.35);
  box-shadow: inset 0 1px 0 rgba(148, 163, 184, 0.08);
}

.composer-media__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}

.composer-media__trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 14px;
  border: 1px solid rgba(99, 102, 241, 0.32);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(14, 165, 233, 0.16));
  color: inherit;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.composer-media__trigger:hover,
.composer-media__trigger:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px -12px rgba(99, 102, 241, 0.6);
}

.composer-media__icon {
  font-size: 1rem;
}

.composer-media__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  justify-content: flex-start;
  min-width: 0;
}

.composer-media[data-empty] .composer-media__meta {
  display: none;
}

.composer-media[data-empty] .composer-media__meta {
  display: none;
}

.composer-media__name {
  font-size: 0.9rem;
  color: rgba(30, 41, 59, 0.72);
  font-weight: 500;
}

.composer-media__name[data-empty] {
  color: rgba(100, 116, 139, 0.75);
  font-style: italic;
}

body.dark .composer-media__name {
  color: rgba(226, 232, 240, 0.82);
}

body.dark .composer-media__name[data-empty] {
  color: rgba(148, 163, 184, 0.75);
}

.composer-media__clear {
  background: none;
  border: none;
  color: #ef4444;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
}

.composer-media__clear:hover,
.composer-media__clear:focus-visible {
  text-decoration: underline;
}

.composer-media__preview {
  border-radius: 14px;
  overflow: hidden;
  max-width: min(100%, 320px);
  box-shadow: 0 18px 32px -18px rgba(15, 23, 42, 0.45);
}

.composer-media__preview img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.composer-media__video {
  display: block;
  width: 100%;
  height: auto;
  border: none;
  background: #0f172a;
}

body.dark .composer-media__video {
  background: #020617;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--feed-muted-color);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
}

.toggle input[type="checkbox"] {
  appearance: none;
  width: 36px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  position: relative;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.toggle input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--feed-muted-color);
  transition: transform 0.2s ease, background 0.2s ease;
}

.toggle input[type="checkbox"]:checked {
  border-color: var(--feed-accent);
  background: rgba(99, 102, 241, 0.25);
}

.toggle input[type="checkbox"]:checked::after {
  transform: translateX(16px);
  background: var(--feed-accent);
}

.composer-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px dashed rgba(99, 102, 241, 0.25);
  background: rgba(255, 255, 255, 0.75);
}

body.dark .composer-panel {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(99, 102, 241, 0.38);
}

.composer-panel input[type="text"],
.composer-panel input[type="datetime-local"] {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 10px 14px;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.9);
  color: inherit;
}

body.dark .composer-panel input[type="text"],
body.dark .composer-panel input[type="datetime-local"] {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(99, 102, 241, 0.32);
}

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

#composer-submit {
  padding: 10px 20px;
  border-radius: 999px;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--feed-accent), var(--feed-highlight));
  box-shadow: 0 18px 32px rgba(99, 102, 241, 0.38);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#composer-submit:hover,
#composer-submit:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 22px 40px rgba(99, 102, 241, 0.48);
  outline: none;
}

#feed {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.4vw, 28px);
}

.post {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(18px, 2.4vw, 26px);
  border-radius: 26px;
  background: linear-gradient(160deg, rgba(99, 102, 241, 0.08), rgba(34, 211, 238, 0.05) 60%)
      var(--feed-card-bg);
  border: 1px solid var(--feed-card-border);
  box-shadow: var(--feed-card-shadow);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

body.dark .post {
  background: linear-gradient(160deg, rgba(99, 102, 241, 0.18), rgba(14, 165, 233, 0.12) 60%)
      var(--feed-card-bg);
}

body.theme-news .post {
  background: linear-gradient(162deg, rgba(30, 41, 59, 0.78), rgba(15, 23, 42, 0.94) 62%)
      var(--feed-card-bg);
  border-color: rgba(59, 130, 246, 0.28);
  box-shadow: 0 40px 84px -34px rgba(2, 6, 23, 0.72);
}

.post:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 34px 68px -30px rgba(15, 23, 42, 0.55);
}

.post .book-activity {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.post .book-activity__label {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-color);
}

.post .book-activity__caption,
.post .book-activity__review {
  margin: 0;
}


.post .book-card {
  display: grid;
  grid-template-columns: minmax(120px, 160px) minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  margin-top: 12px;
  box-sizing: border-box;
  background: var(--feed-card-bg);
  border: 1px solid var(--feed-card-border);
  box-shadow: var(--feed-card-shadow);
}

.post .book-card__meta {
  min-width: 0;
}

.post .book-card__authors {
  color: var(--feed-muted-color);
}

.post .book-card__authors a,
.post .book-card__authors a:visited {
  color: inherit;
  text-decoration: none;
}

.post .book-card__authors a:hover,
.post .book-card__authors a:focus-visible {
  text-decoration: underline;
}

.post .book-card__title-link {
  color: inherit;
  text-decoration: none;
}

.post .book-card__title-link:hover,
.post .book-card__title-link:focus-visible {
  text-decoration: underline;
}

.post .book-card__details {
  color: var(--text-color);
}

.post .book-card__details span {
  background: rgba(99, 102, 241, 0.14);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

body.dark .post .book-card__details span {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(129, 140, 248, 0.5);
}

.post .book-card__cover {
  grid-column: 1;
  grid-row: 1 / span 3;
  max-width: 160px;
}

.post .book-card__meta,
.post .book-card__progress,
.post .book-card__footer {
  grid-column: 2;
}

.post .book-card__cover img {
  width: 100%;
  height: auto;
}

.post .book-card__actions {
  justify-content: flex-start;
}

.post .book-card__shelf-select {
  min-width: 160px;
}

.post .book-card__shelf-select {
  color: #0f172a;
  background: #f8fafc;
}

.post .book-card__shelf-select option,
.post .book-card__shelf-select optgroup {
  color: #0f172a;
  background: #f8fafc;
}

body.dark .post .book-card__shelf-select {
  color: #e2e8f0;
  background: #0f172a;
}

body.dark .post .book-card__shelf-select option,
body.dark .post .book-card__shelf-select optgroup {
  color: #e2e8f0;
  background: #0f172a;
}

.feed-vito-post {
  padding: 16px 0 20px;
  background: transparent;
  border: none;
  box-shadow: none;
  gap: 16px;
  align-items: center;
}

.feed-vito-post:hover {
  transform: none;
  border: none;
  box-shadow: none;
}

body.dark .feed-vito-post,
body.theme-news .feed-vito-post {
  background: transparent;
  border: none;
  box-shadow: none;
}

.feed-vito-post__inner {
  width: 100%;
  display: flex;
  justify-content: center;
}

.feed-vito-post__inner .vito-card {
  margin: 0 auto;
}

.feed-vito-post__share {
  width: min(420px, 100%);
  margin: 0 auto;
  color: var(--text-color);
  font-size: 0.95rem;
  line-height: 1.45;
}

.feed-vito-post__share:not(:empty) {
  text-align: left;
}

.feed-vito-post__share p {
  margin: 0 0 0.35rem;
}

.feed-vito-post__share p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .feed-vito-post {
    padding: 12px 0 16px;
  }
}

body.theme-news .post:hover {
  border-color: rgba(56, 189, 248, 0.42);
  box-shadow: 0 40px 92px -36px rgba(2, 6, 23, 0.78);
}

.post-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.post-header__avatar-link {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  text-decoration: none;
}

.post-avatar {
  --feed-avatar-ring-color: rgba(99, 102, 241, 0.24);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.18);
  background: color-mix(in srgb, var(--feed-avatar-ring-color) 80%, transparent);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.2);
  transition: transform 0.2s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.post-avatar__image {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  display: block;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.22);
}

.post-avatar__live {
  position: absolute;
  bottom: -6px;
  right: -2px;
  padding: 2px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fb7185, #ef4444);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(239, 68, 68, 0.45);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.post-avatar--is-live .post-avatar__live {
  opacity: 1;
  transform: translateY(0);
}

.post-header__avatar-link:hover .post-avatar,
.post-header__avatar-link:focus-visible .post-avatar {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.3);
}

.post-header .avatar {
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  display: block;
  border: none;
}

.post-avatar--has-story {
  background: linear-gradient(135deg, rgba(148, 163, 184, 0.5), rgba(59, 130, 246, 0.32));
}

.post-avatar--has-unread-story {
  background: linear-gradient(135deg, #f472b6, #6366f1, #22d3ee);
  box-shadow: 0 16px 34px rgba(14, 165, 233, 0.38);
}

.post-avatar--is-live {
  background: linear-gradient(135deg, #fb7185, #ef4444, #f97316);
  box-shadow: 0 18px 38px rgba(239, 68, 68, 0.48);
}

.post-avatar--is-live .post-avatar__image {
  box-shadow: 0 12px 26px rgba(239, 68, 68, 0.32);
}

body.theme-news .post-avatar {
  --feed-avatar-ring-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 14px 30px rgba(2, 6, 23, 0.55);
}

body.dark .post-avatar {
  --feed-avatar-ring-color: rgba(99, 102, 241, 0.32);
  box-shadow: 0 14px 30px rgba(2, 6, 23, 0.72);
}

body.dark .post-avatar__image {
  box-shadow: 0 16px 32px rgba(2, 6, 23, 0.75);
}

body.dark .post-avatar--has-unread-story {
  box-shadow: 0 20px 40px rgba(14, 165, 233, 0.55);
}

body.dark .post-avatar--is-live {
  box-shadow: 0 22px 44px rgba(239, 68, 68, 0.62);
}

.post-header .user-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-link {
  color: inherit;
  text-decoration: none;
  font-size: 1rem;
}

.profile-link:hover,
.profile-link:focus-visible {
  color: var(--feed-accent);
  outline: none;
}

.post-header small {
  color: var(--feed-muted-color);
}

.post-privacy-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
}

.post-privacy-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  padding: 2px;
  border-radius: 999px;
  cursor: pointer;
  color: inherit;
}

.post-privacy-toggle:focus-visible {
  outline: 2px solid var(--feed-accent);
  outline-offset: 2px;
}

.post-privacy-icon {
  font-size: 0.9rem;
  opacity: 0.75;
}

.post-privacy-select {
  display: none;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--feed-border, #e2e8f0) 70%, transparent);
  background: color-mix(in srgb, var(--feed-card-bg, #fff) 85%, transparent);
  color: var(--text-color);
}

.post-privacy-control:hover .post-privacy-select,
.post-privacy-control:focus-within .post-privacy-select {
  display: inline-flex;
}

.post-privacy-select:focus-visible {
  outline: 2px solid var(--feed-accent);
  outline-offset: 2px;
}

.post-privacy-select:disabled {
  opacity: 0.6;
}

.post-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 72ch;
  width: 100%;
  line-height: 1.7;
  font-size: 1.06rem;
  letter-spacing: 0.005em;
  color: var(--text-color);
}

.post-content h4 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.35;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.post-title__link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.post-title__link:hover,
.post-title__link:focus-visible {
  color: var(--feed-accent);
  text-decoration: underline;
  outline: none;
}

.post-video-wrapper {
  position: relative;
}

.post--vito .post-content {
  align-items: center;
}

.post-video-wrapper--vito {
  width: min(100%, 480px);
  margin: 0 auto;
}

@media (min-width: 768px) {
  .post-video-wrapper--vito {
    width: min(100%, 560px);
  }
}

@media (min-width: 1200px) {
  .post-video-wrapper--vito {
    width: min(100%, 640px);
  }
}

.post-video--vito {
  aspect-ratio: 9 / 16;
  width: 100%;
  height: auto;
  object-fit: cover;
  background: #000;
}

.post-video__overlay-button {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.78);
  color: #e2e8f0;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.post-video__overlay-button:hover,
.post-video__overlay-button:focus-visible {
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--feed-accent) 48%, rgba(148, 163, 184, 0.2));
  outline: none;
}

.post-video__overlay-button:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--feed-accent) 28%, transparent);
}

body.theme-news .post-video__overlay-button {
  background: rgba(30, 41, 59, 0.78);
  border-color: rgba(59, 130, 246, 0.35);
  color: #e0f2fe;
}

body.theme-news .post-video__overlay-button:hover,
body.theme-news .post-video__overlay-button:focus-visible {
  background: rgba(30, 41, 59, 0.92);
  border-color: rgba(56, 189, 248, 0.6);
  color: #fff;
}

.post-body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 72ch;
  font-size: 1.06rem;
  line-height: 1.75;
  letter-spacing: 0.005em;
  color: var(--text-color);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.post-body[data-readmore-collapsed="true"] {
  max-height: var(--feed-readmore-max-height);
  overflow: hidden;
  position: relative;
}

.post-body[data-readmore-collapsed="true"]::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 84px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0), var(--feed-readmore-fade));
  pointer-events: none;
}

.post-body p {
  margin: 0;
}

.post-body h1,
.post-body h2,
.post-body h3,
.post-body h4,
.post-body h5,
.post-body h6 {
  margin: 0.4rem 0 0.2rem;
  font-weight: 700;
  color: var(--text-color);
}

.post-body h1 { font-size: 1.5rem; }
.post-body h2 { font-size: 1.3rem; }
.post-body h3 { font-size: 1.18rem; }
.post-body h4 { font-size: 1.08rem; }

.post-body ul,
.post-body ol {
  margin: 0.3rem 0 0.3rem 0;
  padding-left: 1.4rem;
  display: grid;
  gap: 0.35rem;
}

.post-body li {
  margin: 0;
  line-height: 1.5;
}

.post-body li::marker {
  color: var(--feed-accent);
}

.post-body blockquote {
  margin: 0.6rem 0;
  padding: 0.6rem 0.8rem;
  border-left: 4px solid rgba(99, 102, 241, 0.35);
  background: rgba(148, 163, 184, 0.12);
  border-radius: 12px;
  color: var(--feed-muted-color);
}

body.dark .post-body blockquote {
  background: rgba(99, 102, 241, 0.12);
  border-left-color: rgba(129, 140, 248, 0.65);
}

.post-body a {
  color: var(--feed-accent);
  text-decoration: none;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.post-body a:hover,
.post-body a:focus-visible {
  text-decoration: underline;
}

.post-body code {
  font-family: 'JetBrains Mono', 'Fira Code', 'Menlo', monospace;
  font-size: 0.95em;
  background: rgba(99, 102, 241, 0.12);
  color: inherit;
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
}

.post-body pre {
  margin: 0.6rem 0;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.9);
  color: #e2e8f0;
  overflow-x: auto;
  font-family: 'JetBrains Mono', 'Fira Code', 'Menlo', monospace;
  font-size: 0.95em;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.15);
}

body.dark .post-body pre {
  background: rgba(2, 6, 23, 0.9);
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.24);
}

.post-read-more-container {
  display: flex;
  justify-content: flex-start;
}

.post-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(99, 102, 241, 0.18);
  background: rgba(99, 102, 241, 0.08);
  color: var(--feed-accent);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.post-read-more::after {
  content: "→";
  font-size: 0.9rem;
  transition: transform 0.2s ease;
}

.post-read-more.is-expanded::after {
  transform: rotate(90deg);
}

.post-read-more:hover,
.post-read-more:focus-visible {
  background: rgba(99, 102, 241, 0.16);
  border-color: rgba(99, 102, 241, 0.42);
  outline: none;
  transform: translateY(-1px);
}

body.dark .post-read-more {
  border-color: rgba(99, 102, 241, 0.28);
  background: rgba(99, 102, 241, 0.12);
  color: #cdd5ff;
}

body.theme-news .post-read-more {
  border-color: rgba(56, 189, 248, 0.42);
  background: rgba(56, 189, 248, 0.14);
  color: #bae6fd;
}

body.dark .post-read-more:hover,
body.dark .post-read-more:focus-visible {
  background: rgba(99, 102, 241, 0.24);
  border-color: rgba(129, 140, 248, 0.55);
}

body.theme-news .post-read-more:hover,
body.theme-news .post-read-more:focus-visible {
  background: rgba(56, 189, 248, 0.24);
  border-color: rgba(59, 130, 246, 0.55);
  color: #e0f2fe;
}

.share-caption {
  padding: 12px 14px;
  border-left: 3px solid rgba(99, 102, 241, 0.35);
  background: rgba(148, 163, 184, 0.12);
  border-radius: 12px;
  color: var(--feed-muted-color);
}

body.theme-news .share-caption {
  border-left-color: rgba(59, 130, 246, 0.5);
  background: rgba(30, 41, 59, 0.68);
}

.post-image,
.post-video,
.post-audio {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: #0f172a;
  box-shadow: 0 18px 40px -26px rgba(15, 23, 42, 0.45);
}

.post-image--interactive {
  cursor: zoom-in;
}

.post-image--interactive:focus-visible {
  outline: 3px solid rgba(99, 102, 241, 0.55);
  outline-offset: 4px;
}

body.theme-news .post-image,
body.theme-news .post-video,
body.theme-news .post-audio {
  border-color: rgba(59, 130, 246, 0.32);
  background: rgba(15, 23, 42, 0.82);
  box-shadow: 0 22px 44px -28px rgba(2, 6, 23, 0.72);
}

.post-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding-top: 14px;
}

body.theme-news .post-footer {
  border-top-color: rgba(59, 130, 246, 0.28);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.vote-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.16);
}

body.theme-news .vote-actions {
  background: rgba(59, 130, 246, 0.18);
  border-color: rgba(56, 189, 248, 0.32);
}

.vote-count {
  min-width: 32px;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
}



.profile-dropdown__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding-bottom: 10px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.26);
  width: 100%;
}

body.dark .profile-dropdown__header,
body.theme-news .profile-dropdown__header {
  border-color: rgba(100, 116, 139, 0.38);
}

.profile-dropdown__eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(71, 85, 105, 0.82);
}

body.dark .profile-dropdown__eyebrow,
body.theme-news .profile-dropdown__eyebrow {
  color: rgba(148, 163, 184, 0.78);
}

.profile-dropdown__name {
  color: inherit;
}

.vote-btn {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: var(--feed-muted-color);
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

body.theme-news .vote-btn {
  color: #f8fafc;
}

.vote-btn:hover,
.vote-btn:focus-visible {
  background: rgba(99, 102, 241, 0.2);
  color: var(--feed-accent);
  outline: none;
  transform: translateY(-1px);
}

.vote-btn.voted {
  background: linear-gradient(135deg, var(--feed-accent), var(--feed-highlight));
  color: #fff;
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.35);
}

body.theme-news .vote-btn.voted {
  box-shadow: 0 16px 32px rgba(2, 6, 23, 0.65);
}

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

.other-actions button {
  border: none;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(148, 163, 184, 0.14);
  color: var(--feed-muted-color);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

body.theme-news .other-actions button {
  background: rgba(59, 130, 246, 0.16);
  color: #cbd5f5;
}

.other-actions button:hover,
.other-actions button:focus-visible {
  background: rgba(99, 102, 241, 0.22);
  color: var(--feed-accent);
  transform: translateY(-1px);
  outline: none;
}

body.theme-news .other-actions button:hover,
body.theme-news .other-actions button:focus-visible {
  background: rgba(56, 189, 248, 0.28);
  color: #f0f9ff;
}

.save-post.saved {
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.18), rgba(251, 191, 36, 0.28));
  color: #d97706;
}

.comments {
  margin-top: -4px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(99, 102, 241, 0.18);
  background: rgba(148, 163, 184, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

body.dark .comments {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: inset 0 1px 0 rgba(148, 163, 184, 0.1);
}

body.theme-news .comments {
  background: rgba(15, 23, 42, 0.78);
  border-color: rgba(59, 130, 246, 0.28);
  box-shadow: inset 0 1px 0 rgba(30, 64, 175, 0.35);
}

.post a.post-link-target {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--feed-accent);
  font-weight: 600;
}

.post a.post-link-target::after {
  content: "↗";
  font-size: 0.85em;
}

@media (max-width: 1180px) {
  .page-layout {
    grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
    grid-template-areas:
      "sidebar main"
      "right right";
  }

  .right-sidebar {
    position: static;
  }
}

@media (max-width: 960px) {
  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "main"
      "sidebar"
      "right";
  }

  .sidebar,
  .right-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 768px) {
  body {
    margin: 0;
    padding: 0 0 32px;
    overflow-x: hidden;
  }

  .page-layout {
    width: 100%;
    max-width: 100%;
    margin: 24px 0 0;
    padding: 0 1rem;
    box-sizing: border-box;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "main"
      "sidebar"
      "right";
    gap: 20px;
  }

  .main-content,
  .sidebar,
  .right-sidebar {
    width: 100%;
    max-width: 100%;
  }

  .sidebar,
  .right-sidebar {
    padding: 1.25rem 1rem;
  }

  .main-content .container {
    position: static;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 1.25rem 1rem;
    box-sizing: border-box;
    left: auto;
    top: auto;
    transform: none;
  }

  .main-content h2 {
    font-size: clamp(1.35rem, 6vw, 1.8rem);
  }

  .feed-tabs {
    justify-content: space-between;
    gap: 16px;
    padding: 0 4px;
    border-bottom: 1px solid #222642;
  }

  .feed-tabs__button {
    flex: 1 1 0;
    text-align: center;
  }

  .story-rail,
  .composer,
  .post {
    width: 100%;
  }

  .feed-search {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 0.5rem;
  }

  .feed-search input[type="search"],
  .feed-search__submit {
    width: 100%;
    flex: 1 1 100%;
    box-sizing: border-box;
  }

  .story-rail__viewport {
    overflow-x: auto;
  }
}

@media (max-width: 720px) {
  body {
    padding-bottom: 32px;
  }

  .main-content .container {
    padding: 20px;
  }

  .composer {
    padding: 18px;
  }

  .composer textarea {
    min-height: 100px;
  }

  .post {
    padding: 20px;
    border-radius: 22px;
  }

  .vote-actions {
    width: 100%;
    justify-content: center;
  }

  .other-actions {
    width: 100%;
    justify-content: space-between;
  }
}


.navbar {
  background: var(--header-bg);
  color: var(--text-color);
}

.feed-navbar {
  --feed-accent: #6366f1;
  --feed-muted: rgba(148, 163, 184, 0.18);
  display: flex;
  justify-content: center;
  width: 100%;
  padding: clamp(12px, 1.8vw, 20px) 0;
  background: linear-gradient(125deg, rgba(99, 102, 241, 0.14), rgba(59, 130, 246, 0.08)),
    var(--header-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.feed-navbar__inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 2vw, 28px);
  padding: clamp(12px, calc(1.2vw + 8px), 18px) clamp(16px, 2.5vw, 28px);
  border-radius: 0;
  border: 1px solid var(--feed-card-border);
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--feed-card-bg) 94%, transparent),
    color-mix(in srgb, var(--feed-card-bg) 86%, transparent)
  );
  box-shadow: 0 24px 46px rgba(15, 23, 42, 0.18);
  color: var(--text-color);
}

body.dark .feed-navbar__inner {
  border-color: rgba(71, 85, 105, 0.42);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.88));
  box-shadow: 0 28px 60px rgba(2, 6, 23, 0.65);
}

body.theme-news .feed-navbar__inner {
  border-color: rgba(71, 85, 105, 0.35);
  background: linear-gradient(140deg, rgba(17, 24, 39, 0.95), rgba(15, 23, 42, 0.88));
  box-shadow: 0 26px 52px rgba(2, 6, 23, 0.58);
}

.feed-navbar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.feed-navbar__menu-btn {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--feed-card-border) 80%, transparent);
  background: color-mix(in srgb, var(--feed-card-bg) 92%, transparent);
  color: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

body.dark .feed-navbar__menu-btn {
  background: rgba(15, 23, 42, 0.94);
  border-color: rgba(71, 85, 105, 0.5);
  box-shadow: 0 18px 32px rgba(2, 6, 23, 0.6);
}

body.theme-news .feed-navbar__menu-btn {
  background: rgba(17, 24, 39, 0.92);
  border-color: rgba(71, 85, 105, 0.42);
  box-shadow: 0 18px 34px rgba(2, 6, 23, 0.6);
}

.feed-navbar__menu-btn:hover,
.feed-navbar__menu-btn:focus-visible {
  transform: translateY(-1px);
  border-color: var(--feed-accent);
  background: rgba(99, 102, 241, 0.12);
  outline: none;
}

.feed-navbar__menu-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.feed-navbar__menu-label {
  font-size: 0.9rem;
}

.feed-navbar__logo {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: inherit;
}

.feed-navbar__logo-img {
  height: 48px;
  width: auto;
  display: block;
  position: relative;
  top: -6px;
  transform: scale(0.8);
  transform-origin: left center;
}

.feed-navbar__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: none;
  border-radius: 999px;
  background: color-mix(in srgb, var(--feed-accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--feed-accent) 32%, transparent);
  color: var(--feed-accent);
  white-space: nowrap;
}

body.dark .feed-navbar__tag {
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(129, 140, 248, 0.32);
  color: #c7d2fe;
}

.feed-navbar__nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--feed-card-bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  flex-wrap: wrap;
  overflow: visible;
  max-width: 100%;
}

.feed-navbar__nav::-webkit-scrollbar {
  display: none;
}

.feed-navbar__nav::-webkit-scrollbar-thumb {
  display: none;
}

.feed-navbar__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: inherit;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.feed-navbar__dropdown {
  position: relative;
}

.feed-navbar__dropdown summary {
  list-style: none;
}

.feed-navbar__dropdown summary::-webkit-details-marker {
  display: none;
}

.feed-navbar__dropdown-toggle {
  cursor: pointer;
  gap: 10px;
}

.feed-navbar__caret {
  font-size: 0.75rem;
  opacity: 0.7;
  transition: transform 0.2s ease;
}

.feed-navbar__dropdown[open] .feed-navbar__caret {
  transform: rotate(180deg);
}

.feed-navbar__dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  display: grid;
  gap: 6px;
  padding: 8px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--feed-card-bg) 96%, transparent);
  border: 1px solid color-mix(in srgb, var(--feed-card-border) 85%, transparent);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.2);
  z-index: 10;
  box-sizing: border-box;
  overflow: hidden;
}


.feed-navbar__dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 24px;
  width: 12px;
  height: 12px;
  background: inherit;
  border-left: 1px solid color-mix(in srgb, var(--feed-card-border) 85%, transparent);
  border-top: 1px solid color-mix(in srgb, var(--feed-card-border) 85%, transparent);
  transform: rotate(45deg);
}

body.dark .feed-navbar__dropdown-menu::before {
  border-left-color: rgba(71, 85, 105, 0.4);
  border-top-color: rgba(71, 85, 105, 0.4);
}


body.dark .feed-navbar__dropdown-menu {
  background: rgba(15, 23, 42, 0.96);
  border-color: rgba(71, 85, 105, 0.4);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.7);
}

.feed-navbar__dropdown-link {
  justify-content: space-between;
  width: 100%;

  padding: 8px 12px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--feed-card-bg) 92%, transparent);
  box-sizing: border-box;
  color: inherit;
}

.feed-navbar__dropdown-link:hover,
.feed-navbar__dropdown-link:focus-visible {
  background: rgba(99, 102, 241, 0.18);
  color: var(--feed-accent);
  outline: none;
}

body.dark .feed-navbar__dropdown-link:hover,
body.dark .feed-navbar__dropdown-link:focus-visible {
  color: #a5b4fc;
}

.feed-navbar__dropdown-link .feed-navbar__pill {
  margin-left: auto;
}

.feed-navbar__link:hover,
.feed-navbar__link:focus-visible {
  background: rgba(99, 102, 241, 0.18);
  color: var(--feed-accent);
  outline: none;
}

.feed-navbar__link.is-active {
  background: rgba(99, 102, 241, 0.22);
  color: var(--feed-accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.feed-navbar__link::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--feed-accent), #22d3ee);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.feed-navbar__link.is-active::after {
  opacity: 1;
  transform: translateY(0);
}

.feed-navbar__icon {
  font-size: 1rem;
  line-height: 1;
}

.feed-navbar__tool-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--feed-accent), #22d3ee);
  box-shadow: 0 8px 18px rgba(59, 130, 246, 0.28);
}


.feed-navbar__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--feed-accent), #22d3ee);
  color: #fff;
}

.feed-navbar__pill--subtle {
  background: rgba(99, 102, 241, 0.18);
  color: var(--feed-accent);
}

.feed-navbar__right {
  display: inline-flex;
  align-items: center;
  gap: clamp(10px, 1.8vw, 18px);
  flex-wrap: nowrap;
}

.feed-navbar__extras {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-right: clamp(4px, 0.8vw, 12px);
  border-right: 1px solid color-mix(in srgb, var(--feed-card-border) 80%, transparent);
}

.feed-navbar__extra-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--feed-card-border) 80%, transparent);
  background: color-mix(in srgb, var(--feed-card-bg) 92%, transparent);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.feed-navbar__extra-link:hover,
.feed-navbar__extra-link:focus-visible {
  border-color: var(--feed-accent);
  background: rgba(99, 102, 241, 0.12);
  transform: translateY(-1px);
  outline: none;
}

body.dark .feed-navbar__extras {
  border-color: rgba(71, 85, 105, 0.45);
}

body.dark .feed-navbar__extra-link {
  border-color: rgba(71, 85, 105, 0.45);
  background: rgba(15, 23, 42, 0.9);
}

.feed-navbar__circle-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--feed-card-border) 85%, transparent);
  background: color-mix(in srgb, var(--feed-card-bg) 92%, transparent);
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

body.dark .feed-navbar__circle-btn {
  background: rgba(15, 23, 42, 0.92);
  border-color: rgba(71, 85, 105, 0.48);
  box-shadow: 0 12px 24px rgba(2, 6, 23, 0.55);
}

.feed-navbar__theme {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 170px;
}

.feed-theme-select {
  appearance: none;
  -webkit-appearance: none;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--feed-card-border) 80%, transparent);
  background: color-mix(in srgb, var(--feed-card-bg) 92%, transparent);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  color: var(--text-color);
  font: inherit;
  font-weight: 600;
  padding: 8px 36px 8px 14px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.feed-theme-select:focus-visible {
  outline: none;
  border-color: var(--feed-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--feed-accent) 24%, transparent);
}

.feed-theme-select:hover {
  transform: translateY(-1px);
}

.feed-navbar__theme::after {
  content: "▾";
  position: absolute;
  right: 16px;
  font-size: 0.85rem;
  pointer-events: none;
  color: color-mix(in srgb, var(--text-color) 65%, transparent);
}

body.dark .feed-theme-select {
  background: rgba(15, 23, 42, 0.92);
  border-color: rgba(71, 85, 105, 0.45);
  box-shadow: 0 14px 28px rgba(2, 6, 23, 0.55);
}

body.theme-news .feed-theme-select {
  background: rgba(17, 24, 39, 0.9);
  border-color: rgba(71, 85, 105, 0.4);
  box-shadow: 0 16px 30px rgba(2, 6, 23, 0.55);
}

body.dark .feed-navbar__theme::after {
  color: rgba(226, 232, 240, 0.65);
}

.feed-navbar__circle-btn:hover,
.feed-navbar__circle-btn:focus-visible {
  transform: translateY(-1px);
  background: rgba(99, 102, 241, 0.18);
  border-color: var(--feed-accent);
  outline: none;
}

.feed-navbar__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--feed-accent), #22d3ee);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 20px 38px rgba(99, 102, 241, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}


.feed-navbar__cta:hover,
.feed-navbar__cta:focus-visible {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 24px 42px rgba(99, 102, 241, 0.42);
  outline: none;
}

body.theme-luxury-dark .feed-navbar {
  --feed-luxe: #d6b879;
  --feed-luxe-glow: rgba(214, 184, 121, 0.18);
  background: linear-gradient(125deg, rgba(99, 102, 241, 0.12), rgba(59, 130, 246, 0.06), var(--feed-luxe-glow)),
    var(--header-bg);
}

body.theme-luxury-dark .feed-navbar__inner {
  border: 1px solid rgba(203, 172, 120, 0.35);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(247, 240, 231, 0.9));
  box-shadow: 0 28px 64px -34px rgba(15, 23, 42, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 -1px 0 rgba(217, 196, 168, 0.2);
}

body.dark.theme-luxury-dark .feed-navbar__inner {
  border-color: rgba(148, 163, 184, 0.28);
  background: linear-gradient(140deg, rgba(16, 22, 34, 0.92), rgba(26, 32, 48, 0.92));
  box-shadow: 0 32px 70px -40px rgba(2, 6, 23, 0.78), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.theme-luxury-dark .feed-navbar__logo-img {
  filter: drop-shadow(0 6px 12px rgba(15, 23, 42, 0.18));
}

body.theme-luxury-dark .feed-navbar__nav {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(236, 223, 199, 0.55));
  border: 1px solid rgba(214, 184, 121, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

body.theme-luxury-dark .feed-navbar__link:hover,
body.theme-luxury-dark .feed-navbar__link:focus-visible {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(236, 223, 199, 0.7));
  color: #352913;
  box-shadow: 0 10px 22px -16px rgba(15, 23, 42, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

body.theme-luxury-dark .feed-navbar__link.is-active {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(233, 218, 188, 0.78));
  color: #2b2011;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 10px 22px -16px rgba(15, 23, 42, 0.35);
}

body.theme-luxury-dark .feed-navbar__link::after {
  background: linear-gradient(135deg, var(--feed-luxe), #f2e1b3);
}

body.theme-luxury-dark .feed-navbar__tag {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(243, 230, 204, 0.95));
  border: 1px solid rgba(214, 184, 121, 0.38);
  color: #4b3b20;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

body.dark.theme-luxury-dark .feed-navbar__tag {
  background: rgba(214, 184, 121, 0.16);
  border-color: rgba(214, 184, 121, 0.32);
  color: #f3e2be;
}

body.theme-luxury-dark .feed-navbar__cta {
  background: linear-gradient(135deg, #111827, #1f2937);
  border: 1px solid rgba(214, 184, 121, 0.6);
  box-shadow: 0 20px 38px rgba(15, 23, 42, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

body.theme-luxury-dark .feed-navbar__cta:hover,
body.theme-luxury-dark .feed-navbar__cta:focus-visible {
  box-shadow: 0 24px 46px rgba(15, 23, 42, 0.45);
  filter: brightness(1.05);
}

.feed-navbar__cta-icon {
  font-size: 1.05rem;
}

.feed-search {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 16px 32px rgba(15, 23, 42, 0.12);
  min-width: clamp(240px, 22vw, 320px);
}

body.dark .feed-search {
  background: rgba(15, 23, 42, 0.94);
  border-color: rgba(71, 85, 105, 0.55);
  box-shadow: inset 0 1px 0 rgba(148, 163, 184, 0.12), 0 18px 36px rgba(2, 6, 23, 0.66);
}

body.theme-news .feed-search {
  background: rgba(17, 24, 39, 0.95);
  border-color: rgba(71, 85, 105, 0.45);
  box-shadow: inset 0 1px 0 rgba(148, 163, 184, 0.16), 0 18px 38px rgba(2, 6, 23, 0.6);
}

.feed-search.is-open {
  border-color: var(--feed-accent);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25), 0 20px 40px rgba(99, 102, 241, 0.24);
}

.feed-search__icon {
  font-size: 1rem;
  color: rgba(100, 116, 139, 0.9);
}

.feed-search input[type="search"] {
  flex: 1;
  border: none;
  background: transparent;
  color: inherit;
  font-size: 0.95rem;
  outline: none;
  min-width: 0;
}

.feed-search input[type="search"]::placeholder {
  color: rgba(148, 163, 184, 0.8);
}

.feed-search__submit {
  padding: 6px 12px;
  border-radius: 999px;
  border: none;
  background: rgba(99, 102, 241, 0.16);
  color: var(--feed-accent);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.feed-search__submit:hover,
.feed-search__submit:focus-visible {
  background: rgba(99, 102, 241, 0.26);
  transform: translateY(-1px);
  outline: none;
}

.feed-search__suggestions {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(320px, 85vw);
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 54px rgba(15, 23, 42, 0.26);
  z-index: 300;
}

body.dark .feed-search__suggestions {
  background: rgba(15, 23, 42, 0.98);
  border-color: rgba(71, 85, 105, 0.55);
  box-shadow: 0 32px 60px rgba(2, 6, 23, 0.7);
}

.feed-search__heading {
  display: block;
  margin-bottom: 10px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(100, 116, 139, 0.9);
}

.feed-search__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.feed-search__item {
  display: contents;
}

.feed-search__option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: rgba(99, 102, 241, 0.08);
  color: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  transition: border 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.feed-search__option:hover,
.feed-search__option.is-active,
.feed-search__option:focus-visible {
  border-color: rgba(99, 102, 241, 0.35);
  background: rgba(99, 102, 241, 0.18);
  transform: translateY(-1px);
  outline: none;
}

.feed-search__option-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.2);
  color: var(--feed-accent);
  font-weight: 600;
  font-size: 0.75rem;
}

.feed-search__option-label {
  flex: 1;
  text-align: left;
}

.feed-search__option-meta {
  margin-left: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(100, 116, 139, 0.9);
  white-space: nowrap;
}

body.dark .feed-search__option-meta {
  color: rgba(148, 163, 184, 0.9);
}

.feed-search__empty {
  padding: 8px 0;
  font-size: 0.85rem;
  color: rgba(100, 116, 139, 0.9);
}

.nav-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.profile-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.profile-avatar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: var(--feed-surface);
  color: inherit;
  cursor: pointer;
  font: inherit;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

body.dark .profile-avatar-btn,
body.theme-news .profile-avatar-btn {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.45);
  color: #e2e8f0;
}

.profile-avatar-btn:hover,
.profile-avatar-btn:focus-visible,
.profile-menu.open .profile-avatar-btn {
  border-color: var(--feed-accent);
  background: rgba(99, 102, 241, 0.2);
  color: #eef2ff;
  outline: none;
}

.profile-avatar-btn img {
  display: block;
}

.profile-avatar-caret {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.profile-menu.open .profile-avatar-caret {
  transform: rotate(180deg);
}

.profile-name {
  font-weight: 600;
  color: inherit;
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 48px rgba(15, 23, 42, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 400;
}

body.dark .profile-dropdown,
body.theme-news .profile-dropdown {
  background: rgba(15, 23, 42, 0.96);
  border-color: rgba(148, 163, 184, 0.32);
  box-shadow: 0 32px 56px rgba(2, 6, 23, 0.6);
}

.profile-menu.open .profile-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.profile-dropdown hr {
  border: none;
  height: 1px;
  margin: 6px 0;
  background: rgba(148, 163, 184, 0.26);
}

body.dark .profile-dropdown hr,
body.theme-news .profile-dropdown hr {
  background: rgba(100, 116, 139, 0.35);
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.profile-menu-item:hover,
.profile-menu-item:focus-visible {
  background: rgba(99, 102, 241, 0.16);
  color: var(--feed-accent);
  outline: none;
}

body.dark .profile-menu-item:hover,
body.dark .profile-menu-item:focus-visible,
body.theme-news .profile-menu-item:hover,
body.theme-news .profile-menu-item:focus-visible {
  background: rgba(99, 102, 241, 0.22);
  color: #c7d2fe;
}

.profile-menu-item--danger {
  color: #ef4444;
}

.profile-menu-item--danger:hover,
.profile-menu-item--danger:focus-visible {
  background: rgba(239, 68, 68, 0.18);
  color: #fee2e2;
}

.profile-dropdown__section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-dropdown__section--appearance {
  position: relative;
}

.profile-dropdown__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(71, 85, 105, 0.9);
}

body.dark .profile-dropdown__label,
body.theme-news .profile-dropdown__label {
  color: rgba(148, 163, 184, 0.78);
}

.profile-menu-item__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.profile-menu-item__title {
  font-weight: 600;
}

.profile-menu-item__hint {
  font-size: 0.75rem;
  color: rgba(100, 116, 139, 0.95);
}

body.dark .profile-menu-item__hint,
body.theme-news .profile-menu-item__hint {
  color: rgba(148, 163, 184, 0.85);
}

.profile-menu-item--appearance {
  justify-content: space-between;
}

.profile-menu-item__chevron {
  margin-left: auto;
  font-size: 0.8rem;
  opacity: 0.75;
  transition: transform 0.2s ease;
}

.profile-menu-item--appearance[aria-expanded="true"] .profile-menu-item__chevron {
  transform: rotate(90deg);
}

.profile-appearance-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(320px, 80vw);
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.97);
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.45);
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

body.dark .profile-appearance-panel,
body.theme-news .profile-appearance-panel {
  background: rgba(2, 6, 23, 0.98);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 20px 45px rgba(2, 6, 23, 0.65);
}

.profile-appearance-panel[hidden] {
  display: none;
}

.profile-appearance-panel[data-open="true"] {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.profile-appearance-panel__header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.profile-appearance-panel__back {
  border: none;
  background: rgba(148, 163, 184, 0.15);
  color: inherit;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  cursor: pointer;
}

.profile-appearance-panel__back:hover,
.profile-appearance-panel__back:focus-visible {
  background: rgba(99, 102, 241, 0.3);
  color: var(--feed-accent);
}

.profile-appearance-panel__title {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.profile-theme-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-theme-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.profile-theme-option:hover,
.profile-theme-option:focus-visible {
  border-color: rgba(99, 102, 241, 0.35);
  background: rgba(99, 102, 241, 0.14);
  outline: none;
}

.profile-theme-option.is-active {
  border-color: rgba(99, 102, 241, 0.5);
  background: rgba(99, 102, 241, 0.2);
  color: var(--feed-accent);
}

body.dark .profile-theme-option.is-active,
body.theme-news .profile-theme-option.is-active {
  border-color: rgba(129, 140, 248, 0.55);
  background: rgba(99, 102, 241, 0.32);
  color: #c7d2fe;
}

.profile-theme-option__icon {
  font-size: 1.2rem;
}

.profile-theme-option__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.profile-theme-option__label {
  font-weight: 600;
}

.profile-theme-option__hint {
  font-size: 0.75rem;
  color: rgba(100, 116, 139, 0.9);
}

body.dark .profile-theme-option__hint,
body.theme-news .profile-theme-option__hint {
  color: rgba(148, 163, 184, 0.76);
}

@media (max-width: 1100px) {
  .feed-navbar__inner {
    flex-wrap: wrap;
    row-gap: 16px;
  }

  .feed-navbar__right {
    order: 3;
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .feed-search {
    flex: 1 1 260px;
    min-width: min(280px, 100%);
  }

  .feed-navbar__theme {
    flex: 1 1 180px;
    min-width: 160px;
  }

  .feed-theme-select {
    width: 100%;
  }

  .feed-navbar__nav {
    order: 2;
    width: 100%;
    justify-content: center;
    max-width: none;
  }

  .feed-navbar__brand {
    order: 1;
  }
}

@media (max-width: 1400px) {
  .feed-navbar {
    padding: 0;
    position: relative;
    z-index: 1200;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    height: 0;
  }

  .feed-navbar__inner {
    padding: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    position: relative;
    z-index: 1202;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .feed-navbar__inner::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(15, 19, 36, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1200;
  }

  body.dark .feed-navbar__inner::after {
    background: rgba(4, 6, 14, 0.6);
  }

  body.feed-nav-open .feed-navbar__inner::after {
    opacity: 1;
    pointer-events: auto;
  }

  .feed-navbar__tag {
    display: none;
  }

  .feed-navbar__brand,
  .feed-navbar__right {
    display: none;
  }

  .feed-navbar__cta {
    padding-inline: 14px;
  }

  .feed-navbar__right {
    justify-content: space-between;
    width: 100%;
    flex-wrap: wrap;
    row-gap: 12px;
  }

  .feed-nav-ready .feed-navbar__nav {
    order: 3;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(82vw, 340px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 16px;
    background: var(--feed-card-bg);
    border-radius: 20px 0 0 20px;
    border: 1px solid var(--feed-card-border);
    box-shadow: -14px 0 40px rgba(15, 23, 42, 0.26);
    overflow-y: auto;
    max-height: none;
    opacity: 0;
    transform: translateX(105%);
    pointer-events: none;
    transition: transform 0.28s ease, opacity 0.22s ease;
    z-index: 1203;
  }

  body.dark .feed-nav-ready .feed-navbar__nav {
    background: var(--feed-card-bg);
    border-color: var(--feed-card-border);
    box-shadow: 14px 0 44px rgba(2, 6, 23, 0.7);
  }

  .feed-nav-ready .feed-navbar__nav.is-open {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
  }

  .feed-navbar__brand {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
  }

  .feed-navbar__menu-btn {
    display: inline-flex;
    position: fixed;
    top: 16px;
    right: 16px;
    order: 2;
    z-index: 1300;
    border-radius: 999px;
    padding: 10px 14px;
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.2);
  }

  .feed-navbar__menu-label {
    display: none;
  }

  .feed-navbar__logo {
    order: 1;
  }

  .feed-navbar__pill {
    display: none;
  }

  .feed-navbar__link {
    justify-content: flex-start;
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
  }

  .feed-navbar__dropdown {
    width: 100%;
  }

  .feed-navbar__dropdown-menu {
    position: static;
    min-width: 0;
    padding: 0 0 0 10px;
    border: none;
    box-shadow: none;
    background: transparent;
  }

  .feed-navbar__dropdown-menu::before {
    display: none;
  }

  .feed-navbar__dropdown-link {
    padding: 8px 10px;
  }

  .feed-navbar__link::after {
    display: none;
  }

  body.feed-nav-open {
    overflow: hidden;
  }
}

@media (max-width: 520px) {
  .feed-navbar__inner {
    gap: 12px;
  }

  .feed-navbar__right {
    flex-direction: column;
    align-items: stretch;
  }

  .feed-search,
  .feed-navbar__cta {
    width: 100%;
  }

  .feed-navbar__circle-btn,
  .icon-btn {
    width: 100%;
  }

  .feed-navbar__nav {
    box-shadow: 12px 0 36px rgba(15, 23, 42, 0.22);
  }
}

@media (prefers-reduced-motion: reduce) {
  .feed-navbar__link,
  .feed-navbar__circle-btn,
  .feed-navbar__cta,
  .feed-search,
  .feed-search__option {
    transition: none;
  }
}

/* Mobile hero search fixes */
@media (max-width: 768px) {
  .feed-navbar__right {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    box-sizing: border-box;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .feed-navbar .feed-search {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 0 1rem 0 !important;
    padding: 1rem !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    border-radius: 18px !important;
    box-sizing: border-box;
    z-index: 1 !important;
    flex-wrap: nowrap;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .feed-navbar .feed-search input[type="search"],
  .feed-navbar .feed-search__submit {
    width: 100% !important;
    box-sizing: border-box;
  }

  .main-content .container {
    margin-top: 0 !important;
    padding: 1.25rem 1rem 2rem 1rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  body {
    overflow-x: hidden !important;
  }
}

/*links*/
nav a {
  color: var(--text-color);
}

/*.sidebar */

/*search-bar*/
  .search-bar input {
    background: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--button-border);
  }
  
  .search-bar button {
    background: var(--button-bg);
    color: var(--text-color);
    border: 1px solid var(--button-border);
  }
  

/*buttons*/
button {
    background: var(--button-bg);
    color: var(--text-color);
    border: 1px solid var(--button-border);
    transition: background-color 0.3s;
  }
  
  button:hover {
    background: var(--button-hover);
  }

  /*Final example for Rito Form:*/
  #ritoForm button {
    background-color: var(--button-bg);
    color: var(--text-color);
    border: 1px solid var(--button-border);
  }
  
  /* visibility helper */
.hidden { display: none !important; }

/* portal menu rendered at <body> level */
.dropdown-portal{
  position: fixed;       /* anchored to viewport */
  top: 0; right: 0;
  min-width: 220px;
  background: #111;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
  z-index: 99999;        /* above everything */
}

.menu-item{display:block;width:100%;text-align:left;padding:10px 12px;color:#fff;
  text-decoration:none;border:none;background:transparent;cursor:pointer;border-radius:8px}
.menu-item:hover{background:#1a1a1a}
.menu-sep{border:none;border-top:1px solid #2a2a2a;margin:6px 0}
.menu-item.danger{color:#ff6b6b}

/* avatar button */
.avatar-btn{display:inline-flex;align-items:center;justify-content:center;border:none;background:transparent;cursor:pointer;padding:4px;border-radius:999px}
#navAvatar{width:36px;height:36px;border-radius:50%;object-fit:cover}

/*message icon*/
.badge {
  position: absolute; top: 4px; right: 4px;
  min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 999px; font: 11px/18px system-ui, sans-serif;
  background: #ef4444; color: #fff; text-align: center;
}
.badge.hidden { display: none; }

.icon--messages {
  position: relative;
  text-decoration: none;
}

.icon--messages__glyph {
  font-size: 1.1rem;
}

.icon--messages__label {
  font-weight: 600;
}

.icon--messages .badge {
  top: 6px;
  right: 12px;
}

.icon--courses {
  text-decoration: none;
}

.icon--courses__glyph {
  font-size: 1.1rem;
}

.icon--courses__label {
  font-weight: 600;
}

/* Pages panel styles */
#pagesList .page-row {
  display: flex;
  width: 100%;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
}

#pagesList .page-row .page-link {
  display: flex;
  flex: 1;
  gap: 10px;
  align-items: center;
  text-decoration: none;
}

#pagesList .page-row img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

#pagesList .page-row .page-name {
  font-size: 14px;
  color: #eaf0ff;
  font-weight: 600;
}

#pagesList .page-row .page-handle {
  font-size: 12px;
  color: #8a91a8;
}

#pagesList .page-row .switch-btn {
  font-size: 12px;
  border: 1px solid #222642;
  background: #0f1220;
  color: #eaf0ff;
  border-radius: 8px;
  padding: 4px 8px;
  cursor: pointer;
}

/* poll styles */
.post-poll {
  margin-top: 12px;
  padding: 14px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(241, 245, 249, 0.85);
}

body.dark .post-poll {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 18px 30px rgba(8, 11, 24, 0.35);
}

.poll-header {
  margin-bottom: -4px;
}

.poll-question {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.poll-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.poll-option-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.95);
  color: inherit;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

body.dark .poll-option-btn {
  background: rgba(12, 16, 32, 0.85);
  border-color: rgba(99, 102, 241, 0.25);
}

.poll-option-btn.is-selected {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.14);
}


.post-header {
  align-items: flex-start;
}

.post-header .user-info {
  flex: 1;
}

.post-menu-wrapper {
  margin-left: auto;
  position: relative;
  display: flex;
  align-items: flex-start;
}

.post-menu-toggle {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--text-color);
  font-size: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.post-menu-toggle:hover,
.post-menu-toggle:focus-visible {
  background-color: rgba(148, 163, 184, 0.18);
}

body.dark .post-menu-toggle:hover,
body.dark .post-menu-toggle:focus-visible {
  background-color: rgba(148, 163, 184, 0.24);
}

.post-menu-items {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--card-bg);
  border: 1px solid var(--button-border);
  border-radius: 12px;
  padding: 6px 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.25);
  z-index: 30;
}

.post-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 16px;
  background: transparent;
  border: none;
  color: var(--text-color);
  font: 500 14px/1.4 "Inter", system-ui, sans-serif;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.post-menu-item:hover,
.post-menu-item:focus-visible {
  background-color: rgba(148, 163, 184, 0.18);
}

.post-menu-item.danger {
  color: #f87171;
}

body.dark .post-menu-item.danger {
  color: #fca5a5;
}

body.dark .poll-option-btn.is-selected {
  background: rgba(99, 102, 241, 0.25);
}

.poll-option-btn:disabled {
  cursor: default;
  opacity: 0.88;
}

.poll-option-btn:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}

.poll-option-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.poll-option-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.poll-option-check {
  display: none;
  color: #6366f1;
}

.poll-option-btn.is-selected .poll-option-check {
  display: inline-flex;
}

.poll-option-metric {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(71, 85, 105, 0.9);
}

body.dark .poll-option-metric {
  color: rgba(203, 213, 225, 0.78);
}

.poll-option-percent {
  font-weight: 600;
}

.poll-option-bar {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.3);
  overflow: hidden;
}

.poll-option-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%);
  transition: width 0.2s ease;
}

.poll-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(71, 85, 105, 0.85);
}

body.dark .poll-footer {
  color: rgba(226, 232, 240, 0.65);
}

#galleryViewer {
  background: rgba(8, 11, 16, 0.96);
  backdrop-filter: blur(6px);
}

#galleryViewer .rv-track {
  padding: 36px 0 48px;
}

#galleryViewer .rv-slide {
  padding: 36px 0 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

#galleryViewer .rv-image,
#galleryViewer .rv-video {
  max-width: min(94vw, 980px);
  max-height: calc(100dvh - 190px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0b0f17;
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

#galleryViewer .rv-video {
  aspect-ratio: auto;
}

#galleryViewer .rv-bottom {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: min(94vw, 980px);
  padding: 14px 18px 18px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(11, 15, 23, 0) 0%, rgba(11, 15, 23, 0.55) 55%, rgba(11, 15, 23, 0.82) 100%);
  backdrop-filter: blur(6px);
}

#galleryViewer .rv-caption {
  color: #eef2f7;
  font-size: 1rem;
  line-height: 1.55;
  word-break: break-word;
}

#galleryViewer .rv-meta {
  color: #e2e8f0;
  font-weight: 600;
  align-self: end;
  text-align: right;
}



.post-body[data-readmore-collapsed="true"] {

  max-height: var(--feed-readmore-max-height, 320px);

  overflow: hidden;

  position: relative;

}



.post-body[data-readmore-collapsed="true"]::after {

  content: "";

  position: absolute;

  bottom: 0;

  left: 0;

  right: 0;

  height: 80px;

  background: linear-gradient(to bottom, transparent, var(--feed-readmore-fade));

  pointer-events: none;

}



.post-read-more-container {

  margin-top: 12px;

}



.post-read-more {

  display: inline-block;

  background: none;

  border: none;

  color: var(--feed-accent);

  font-weight: 600;

  cursor: pointer;

  padding: 4px 0;

}



.post-read-more:hover {

  text-decoration: underline;

}
@media (max-width: 720px) {
  .feed-navbar__logo-img {
    height: 40px;
    transform: scale(0.75);
    top: -3px;
  }
}

/* Aurora Glass feed theme */
body.theme-aurora {
  --feed-accent: #2dd4bf;
  --feed-highlight: #60a5fa;
  --feed-surface: rgba(8, 13, 24, 0.82);
  --feed-card-bg: rgba(7, 11, 23, 0.9);
  --feed-card-border: rgba(148, 163, 184, 0.26);
  --feed-card-shadow: 0 48px 120px -46px rgba(2, 6, 23, 0.92);
  --feed-muted-color: #94a3b8;
  --feed-readmore-fade: rgba(6, 10, 22, 0.97);
  --header-bg: rgba(6, 10, 22, 0.92);
  --text-color: #e2e8f0;
  color: var(--text-color);
  background:
    radial-gradient(circle at 12% 18%, rgba(59, 130, 246, 0.3), transparent 46%),
    radial-gradient(circle at 84% 12%, rgba(45, 212, 191, 0.26), transparent 44%),
    radial-gradient(circle at 78% 84%, rgba(248, 113, 113, 0.18), transparent 42%),
    linear-gradient(160deg, #0b1020 0%, #020617 100%);
  background-attachment: fixed;
}

body.theme-aurora::before {
  background: rgba(59, 130, 246, 0.46);
  opacity: 0.44;
}

body.theme-aurora::after {
  background: rgba(45, 212, 191, 0.4);
  opacity: 0.4;
}

body.theme-aurora .feed-navbar {
  background:
    linear-gradient(125deg, rgba(45, 212, 191, 0.1), rgba(59, 130, 246, 0.14)),
    var(--header-bg);
}

body.theme-aurora .feed-navbar__inner,
body.dark.theme-aurora .feed-navbar__inner {
  border-color: rgba(148, 163, 184, 0.32);
  background: linear-gradient(140deg, rgba(8, 13, 24, 0.96), rgba(15, 23, 42, 0.84));
  box-shadow:
    0 36px 84px -48px rgba(2, 6, 23, 0.9),
    inset 0 1px 0 rgba(148, 163, 184, 0.08);
}

body.theme-aurora .feed-navbar__menu-btn {
  background: rgba(8, 13, 24, 0.94);
  border-color: rgba(148, 163, 184, 0.36);
  box-shadow: 0 20px 38px rgba(2, 6, 23, 0.74);
}

body.theme-aurora .feed-navbar__menu-btn:hover,
body.theme-aurora .feed-navbar__menu-btn:focus-visible {
  background: rgba(45, 212, 191, 0.18);
  border-color: rgba(45, 212, 191, 0.62);
}

body.theme-aurora .feed-search {
  background: rgba(8, 13, 24, 0.92);
  border-color: rgba(148, 163, 184, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(148, 163, 184, 0.12),
    0 22px 48px rgba(2, 6, 23, 0.74);
}

body.theme-aurora .feed-search.is-open {
  border-color: var(--feed-accent);
  box-shadow:
    0 0 0 2px rgba(45, 212, 191, 0.32),
    0 26px 56px rgba(45, 212, 191, 0.24);
}

body.theme-aurora .feed-search__submit {
  background: rgba(45, 212, 191, 0.2);
}

body.theme-aurora .sidebar,
body.theme-aurora .right-sidebar {
  background:
      linear-gradient(165deg, rgba(15, 23, 42, 0.82), rgba(8, 13, 24, 0.94))
      var(--feed-card-bg);
  border-color: rgba(148, 163, 184, 0.3);
  box-shadow:
    0 42px 90px -52px rgba(2, 6, 23, 0.92),
    inset 0 1px 0 rgba(148, 163, 184, 0.06);
}

body.theme-aurora .composer {
  background: linear-gradient(155deg, rgba(15, 23, 42, 0.82), rgba(8, 13, 24, 0.94));
  border-color: rgba(148, 163, 184, 0.3);
  box-shadow:
    0 36px 84px -54px rgba(2, 6, 23, 0.92),
    inset 0 1px 0 rgba(148, 163, 184, 0.06);
}

body.theme-aurora .composer textarea {
  background: rgba(8, 13, 24, 0.9);
  border-color: rgba(148, 163, 184, 0.36);
}

body.theme-aurora .composer textarea:focus {
  border-color: rgba(45, 212, 191, 0.72);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.28);
}

body.theme-aurora .profile-dropdown {
  background: linear-gradient(145deg, rgba(8, 13, 24, 0.96), rgba(15, 23, 42, 0.9));
  border-color: rgba(148, 163, 184, 0.28);
  box-shadow:
    0 38px 88px -56px rgba(2, 6, 23, 0.94),
    inset 0 1px 0 rgba(148, 163, 184, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

body.theme-aurora .profile-dropdown hr {
  border-color: rgba(148, 163, 184, 0.22);
}

/* Luxe Noir feed theme */
body.theme-luxury-dark {
  --feed-luxe: #d6b879;
  --feed-luxe-strong: #f2e1b3;
  --feed-luxe-deep: #8b6b2a;
  --feed-luxe-ink: #0a0d15;
  --feed-accent: var(--feed-luxe);
  --feed-highlight: #f2d694;
  --feed-surface: rgba(10, 13, 20, 0.88);
  --feed-card-bg: rgba(9, 12, 19, 0.92);
  --feed-card-border: rgba(214, 184, 121, 0.25);
  --feed-card-shadow: 0 42px 92px -32px rgba(2, 6, 23, 0.82);
  --feed-muted-color: #cbbca0;
  --feed-readmore-fade: rgba(9, 12, 19, 0.96);
  --header-bg: rgba(9, 12, 19, 0.92);
  --text-color: #f7efe1;
  color: var(--text-color);
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(214, 184, 121, 0.18), transparent 58%),
    radial-gradient(120% 120% at 100% 0%, rgba(138, 98, 38, 0.22), transparent 60%),
    linear-gradient(185deg, #070a12 0%, #0a0f1b 55%, #0d1423 100%);
  background-attachment: fixed;
}

body.theme-luxury-dark::before {
  background: rgba(214, 184, 121, 0.32);
  opacity: 0.28;
}

body.theme-luxury-dark::after {
  background: rgba(126, 88, 32, 0.3);
  opacity: 0.26;
}

body.theme-luxury-dark .feed-navbar {
  background:
    linear-gradient(125deg, rgba(214, 184, 121, 0.08), rgba(26, 20, 10, 0.22)),
    var(--header-bg);
}

body.theme-luxury-dark .feed-navbar__inner,
body.dark.theme-luxury-dark .feed-navbar__inner {
  border-color: rgba(214, 184, 121, 0.3);
  background: linear-gradient(140deg, rgba(12, 16, 26, 0.95), rgba(15, 20, 30, 0.9));
  box-shadow: 0 30px 70px -40px rgba(2, 6, 23, 0.8), inset 0 1px 0 rgba(214, 184, 121, 0.08);
}

body.theme-luxury-dark .feed-navbar__logo-img {
  filter: drop-shadow(0 8px 14px rgba(214, 184, 121, 0.18));
}

body.theme-luxury-dark .feed-navbar__menu-btn {
  background: rgba(11, 15, 23, 0.92);
  border-color: rgba(214, 184, 121, 0.3);
  box-shadow: 0 18px 32px rgba(2, 6, 23, 0.7);
}

body.theme-luxury-dark .feed-navbar__menu-btn:hover,
body.theme-luxury-dark .feed-navbar__menu-btn:focus-visible {
  background: rgba(214, 184, 121, 0.14);
  border-color: rgba(214, 184, 121, 0.6);
}

body.theme-luxury-dark .feed-navbar__nav {
  background: linear-gradient(135deg, rgba(13, 17, 26, 0.92), rgba(9, 12, 20, 0.94));
  border-color: rgba(214, 184, 121, 0.28);
  box-shadow: inset 0 1px 0 rgba(214, 184, 121, 0.08);
}

body.theme-luxury-dark .feed-navbar__link:hover,
body.theme-luxury-dark .feed-navbar__link:focus-visible {
  background: rgba(214, 184, 121, 0.16);
  color: #f8f1e4;
  box-shadow: 0 10px 22px -16px rgba(2, 6, 23, 0.6), inset 0 1px 0 rgba(214, 184, 121, 0.2);
}

body.theme-luxury-dark .feed-navbar__link.is-active {
  background: rgba(214, 184, 121, 0.24);
  color: #fff5e6;
  box-shadow: inset 0 1px 0 rgba(214, 184, 121, 0.35), 0 10px 22px -16px rgba(2, 6, 23, 0.6);
}

body.theme-luxury-dark .feed-navbar__link::after {
  background: linear-gradient(135deg, var(--feed-luxe), var(--feed-luxe-strong));
}

body.theme-luxury-dark .feed-navbar__tag,
body.dark.theme-luxury-dark .feed-navbar__tag {
  background: rgba(214, 184, 121, 0.16);
  border: 1px solid rgba(214, 184, 121, 0.38);
  color: #f7e7c6;
  box-shadow: inset 0 1px 0 rgba(214, 184, 121, 0.18);
}

body.theme-luxury-dark .feed-navbar__cta {
  background: linear-gradient(135deg, #b3873a, #f2e1b3);
  border: 1px solid rgba(214, 184, 121, 0.75);
  color: #2b2011;
  font-weight: 700;
  box-shadow: 0 20px 40px rgba(2, 6, 23, 0.6);
}

body.theme-luxury-dark .feed-navbar__cta:hover,
body.theme-luxury-dark .feed-navbar__cta:focus-visible {
  filter: brightness(1.05);
  box-shadow: 0 26px 52px rgba(2, 6, 23, 0.75);
}

body.theme-luxury-dark .feed-navbar__circle-btn {
  background: rgba(12, 16, 24, 0.92);
  border-color: rgba(214, 184, 121, 0.35);
  box-shadow: 0 12px 24px rgba(2, 6, 23, 0.65);
}

body.theme-luxury-dark .feed-navbar__circle-btn:hover,
body.theme-luxury-dark .feed-navbar__circle-btn:focus-visible {
  background: rgba(214, 184, 121, 0.18);
  border-color: rgba(214, 184, 121, 0.6);
}

body.theme-luxury-dark .feed-theme-select {
  background: rgba(12, 16, 24, 0.92);
  border-color: rgba(214, 184, 121, 0.35);
  box-shadow: 0 16px 30px rgba(2, 6, 23, 0.6);
}

body.theme-luxury-dark .feed-navbar__theme::after {
  color: rgba(243, 226, 190, 0.65);
}

body.theme-luxury-dark .feed-search {
  background: rgba(12, 16, 24, 0.94);
  border-color: rgba(214, 184, 121, 0.32);
  box-shadow: inset 0 1px 0 rgba(214, 184, 121, 0.12), 0 18px 36px rgba(2, 6, 23, 0.7);
}

body.theme-luxury-dark .feed-search.is-open {
  box-shadow: 0 0 0 2px rgba(214, 184, 121, 0.22), 0 20px 40px rgba(214, 184, 121, 0.18);
}

body.theme-luxury-dark .feed-search__icon {
  color: rgba(214, 184, 121, 0.7);
}

body.theme-luxury-dark .feed-search input[type="search"]::placeholder {
  color: rgba(214, 184, 121, 0.55);
}

body.theme-luxury-dark .feed-search__submit {
  background: rgba(214, 184, 121, 0.2);
  color: #f7e7c6;
}

body.theme-luxury-dark .feed-search__submit:hover,
body.theme-luxury-dark .feed-search__submit:focus-visible {
  background: rgba(214, 184, 121, 0.32);
}

body.theme-luxury-dark .feed-search__suggestions {
  background: rgba(9, 12, 20, 0.98);
  border-color: rgba(214, 184, 121, 0.3);
  box-shadow: 0 32px 60px rgba(2, 6, 23, 0.7);
}

body.theme-luxury-dark .feed-search__heading {
  color: rgba(214, 184, 121, 0.7);
}

body.theme-luxury-dark .feed-search__option {
  background: rgba(214, 184, 121, 0.1);
}

body.theme-luxury-dark .feed-search__option:hover,
body.theme-luxury-dark .feed-search__option.is-active,
body.theme-luxury-dark .feed-search__option:focus-visible {
  border-color: rgba(214, 184, 121, 0.45);
  background: rgba(214, 184, 121, 0.22);
}

body.theme-luxury-dark .feed-search__option-index {
  background: rgba(214, 184, 121, 0.2);
  color: var(--feed-accent);
}

body.theme-luxury-dark .feed-search__option-meta,
body.theme-luxury-dark .feed-search__empty {
  color: rgba(214, 184, 121, 0.72);
}

body.theme-luxury-dark .sidebar {
  top: 64px;
  margin-top: 0;
  padding-top: clamp(20px, 2vw, 26px);
  background:
    linear-gradient(180deg, rgba(12, 10, 9, 0.98), rgba(10, 12, 18, 0.98)),
    radial-gradient(160% 120% at 18% -10%, rgba(214, 184, 121, 0.18), transparent 55%)
      rgba(8, 10, 16, 0.96);
  border-color: rgba(214, 184, 121, 0.4);
  box-shadow:
    0 32px 64px -38px rgba(2, 6, 23, 0.95),
    inset 0 0 0 1px rgba(214, 184, 121, 0.12);
}

body.theme-luxury-dark .right-sidebar {
  background: linear-gradient(160deg, rgba(24, 18, 10, 0.78), rgba(10, 14, 22, 0.92))
      var(--feed-card-bg);
  border-color: rgba(214, 184, 121, 0.24);
  box-shadow: 0 32px 70px -30px rgba(2, 6, 23, 0.85);
}

body.theme-luxury-dark .left-sidebar-icons,
body.theme-luxury-dark .right-sidebar-icons,
body.theme-luxury-dark .right-sidebar-section,
body.theme-luxury-dark #pagesPanel {
  border-radius: 18px;
  padding: 14px;
  background: rgba(10, 12, 18, 0.78);
  border: 1px solid rgba(214, 184, 121, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 32px -26px rgba(2, 6, 23, 0.9);
}

body.theme-luxury-dark .sidebar-section-heading {
  color: rgba(214, 184, 121, 0.78);
  letter-spacing: 0.2em;
  font-weight: 700;
}

body.theme-luxury-dark .sidebar .icon,
body.theme-luxury-dark .right-sidebar .icon {
  background: rgba(18, 14, 10, 0.75);
  border: 1px solid rgba(214, 184, 121, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.theme-luxury-dark .sidebar .icon:hover,
body.theme-luxury-dark .right-sidebar .icon:hover {
  background: rgba(214, 184, 121, 0.12);
  border-color: rgba(214, 184, 121, 0.45);
  transform: translateX(4px);
}

body.theme-luxury-dark .right-sidebar-dropdown__item {
  background: rgba(18, 14, 10, 0.7);
  border: 1px solid rgba(214, 184, 121, 0.2);
}

body.theme-luxury-dark .right-sidebar-dropdown__item:hover,
body.theme-luxury-dark .right-sidebar-dropdown__item:focus-visible {
  background: rgba(214, 184, 121, 0.16);
  border-color: rgba(214, 184, 121, 0.4);
  color: #f8f1e4;
}

body.theme-luxury-dark #pagesPanel {
  margin: 12px 0 0 !important;
}

body.theme-luxury-dark #pagesPanel > div:first-child,
body.theme-luxury-dark #pagesPanel > div:last-child {
  background: rgba(16, 12, 10, 0.88) !important;
  border-color: rgba(214, 184, 121, 0.25) !important;
}

body.theme-luxury-dark #pagesPanel #pagesList {
  background: rgba(10, 12, 18, 0.82) !important;
}

body.theme-luxury-dark #pagesPanel a,
body.theme-luxury-dark #pagesPanel [data-action="create-page"] {
  color: rgba(244, 220, 168, 0.9) !important;
}

body.theme-luxury-dark #pagesPanel [data-empty] {
  color: rgba(214, 184, 121, 0.72) !important;
}

body.theme-luxury-dark .sidebar #sidebarToggle,
body.theme-luxury-dark .right-sidebar #rightSidebarToggle {
  border-color: rgba(214, 184, 121, 0.28);
}

body.theme-luxury-dark .sidebar #sidebarToggle:hover,
body.theme-luxury-dark .sidebar #sidebarToggle:focus-visible,
body.theme-luxury-dark .right-sidebar #rightSidebarToggle:hover,
body.theme-luxury-dark .right-sidebar #rightSidebarToggle:focus-visible {
  background: rgba(214, 184, 121, 0.12);
  border-color: rgba(214, 184, 121, 0.45);
}

body.theme-luxury-dark .story-rail {
  border-color: rgba(214, 184, 121, 0.3);
  background: linear-gradient(150deg, rgba(24, 18, 10, 0.7), rgba(10, 14, 22, 0.92))
      rgba(10, 14, 22, 0.86);
  box-shadow: 0 28px 56px -28px rgba(2, 6, 23, 0.8);
}

body.theme-luxury-dark .story-rail__add {
  border-color: rgba(214, 184, 121, 0.45);
  background: linear-gradient(135deg, rgba(214, 184, 121, 0.18), rgba(133, 98, 39, 0.2));
}

body.theme-luxury-dark .story-rail__add:hover,
body.theme-luxury-dark .story-rail__add:focus-visible {
  border-color: rgba(214, 184, 121, 0.7);
  box-shadow: 0 12px 28px -18px rgba(214, 184, 121, 0.55);
}

body.theme-luxury-dark .story-rail__refresh {
  border-color: rgba(214, 184, 121, 0.4);
  background: rgba(214, 184, 121, 0.14);
}

body.theme-luxury-dark .story-rail__refresh:hover,
body.theme-luxury-dark .story-rail__refresh:focus-visible {
  border-color: rgba(214, 184, 121, 0.6);
  box-shadow: 0 12px 24px -18px rgba(214, 184, 121, 0.5);
}

body.theme-luxury-dark .story-rail__nav {
  border-color: rgba(214, 184, 121, 0.35);
  background: rgba(214, 184, 121, 0.12);
}

body.theme-luxury-dark .story-rail__nav:hover,
body.theme-luxury-dark .story-rail__nav:focus-visible {
  box-shadow: 0 10px 22px -16px rgba(214, 184, 121, 0.55);
}

body.theme-luxury-dark .story-rail__list {
  scrollbar-color: rgba(214, 184, 121, 0.45) transparent;
}

body.theme-luxury-dark .story-rail__list:focus-visible {
  box-shadow: 0 0 0 3px rgba(214, 184, 121, 0.35);
}

body.theme-luxury-dark .story-rail__list::-webkit-scrollbar-thumb {
  background: rgba(214, 184, 121, 0.45);
}

body.theme-luxury-dark .story-card__avatar {
  background: linear-gradient(135deg, rgba(214, 184, 121, 0.78), rgba(122, 88, 36, 0.82));
}

body.theme-luxury-dark .story-card.is-unread .story-card__avatar {
  background: linear-gradient(135deg, rgba(242, 216, 154, 0.96), rgba(214, 184, 121, 0.92));
}

body.theme-luxury-dark .story-card:not(.is-unread) .story-card__avatar {
  background: linear-gradient(135deg, rgba(148, 131, 96, 0.4), rgba(94, 78, 50, 0.32));
}

body.theme-luxury-dark .story-card-wrapper--live .story-card__avatar {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.85), rgba(214, 184, 121, 0.9));
}

body.theme-luxury-dark .story-card__live-badges {
  color: rgba(243, 230, 204, 0.78);
}

body.theme-luxury-dark #feedSentinel {
  background: linear-gradient(90deg, rgba(214, 184, 121, 0.5), rgba(133, 98, 39, 0.45));
}

body.theme-luxury-dark .composer {
  background: linear-gradient(140deg, rgba(24, 19, 11, 0.85), rgba(12, 16, 24, 0.9))
      rgba(11, 15, 24, 0.9);
  border-color: rgba(214, 184, 121, 0.3);
  box-shadow: 0 30px 60px -30px rgba(2, 6, 23, 0.8);
}

body.theme-luxury-dark .composer textarea {
  background:
    linear-gradient(135deg, rgba(17, 20, 28, 0.96), rgba(12, 15, 22, 0.92)) padding-box,
    linear-gradient(135deg, rgba(214, 184, 121, 0.55), rgba(133, 98, 39, 0.45)) border-box;
  box-shadow: 0 28px 58px -26px rgba(2, 6, 23, 0.85);
}

body.theme-luxury-dark .composer textarea:hover {
  box-shadow: 0 32px 68px -26px rgba(214, 184, 121, 0.35);
}

body.theme-luxury-dark .composer textarea:focus {
  background:
    linear-gradient(135deg, rgba(17, 20, 28, 0.99), rgba(12, 15, 22, 0.95)) padding-box,
    linear-gradient(135deg, rgba(214, 184, 121, 0.7), rgba(133, 98, 39, 0.55)) border-box;
  box-shadow:
    0 0 0 3px rgba(214, 184, 121, 0.22),
    0 36px 72px -24px rgba(214, 184, 121, 0.35);
}

body.theme-luxury-dark .composer textarea::placeholder {
  color: rgba(203, 190, 160, 0.68);
}

body.theme-luxury-dark .composer-add-menu__trigger {
  border-color: rgba(214, 184, 121, 0.35);
  background: linear-gradient(135deg, rgba(214, 184, 121, 0.22), rgba(133, 98, 39, 0.2));
}

body.theme-luxury-dark .composer-add-menu__trigger:hover,
body.theme-luxury-dark .composer-add-menu__trigger:focus-visible,
body.theme-luxury-dark .composer-add-menu__trigger.is-open {
  box-shadow: 0 16px 36px -22px rgba(214, 184, 121, 0.5);
}

body.theme-luxury-dark .composer-add-menu__dropdown {
  background: rgba(10, 14, 22, 0.96);
  border-color: rgba(214, 184, 121, 0.3);
  box-shadow: 0 32px 60px -26px rgba(2, 6, 23, 0.8);
}

body.theme-luxury-dark .composer-add-menu__item:hover,
body.theme-luxury-dark .composer-add-menu__item:focus-visible {
  background: rgba(214, 184, 121, 0.18);
}

body.theme-luxury-dark .composer-media {
  background: rgba(12, 16, 24, 0.7);
  border-color: rgba(214, 184, 121, 0.35);
  box-shadow: inset 0 1px 0 rgba(214, 184, 121, 0.2);
}

body.theme-luxury-dark #composer-submit {
  color: #2b2011;
  background: linear-gradient(135deg, #b3873a, #f2e1b3);
  box-shadow: 0 18px 32px rgba(2, 6, 23, 0.6);
}

body.theme-luxury-dark #composer-submit:hover,
body.theme-luxury-dark #composer-submit:focus-visible {
  box-shadow: 0 22px 40px rgba(2, 6, 23, 0.72);
}

body.theme-luxury-dark .post {
  background: linear-gradient(160deg, rgba(26, 20, 10, 0.82), rgba(12, 16, 24, 0.92) 60%)
      var(--feed-card-bg);
  border-color: rgba(214, 184, 121, 0.28);
  box-shadow: 0 40px 86px -34px rgba(2, 6, 23, 0.82);
}

body.theme-luxury-dark .post:hover {
  border-color: rgba(214, 184, 121, 0.45);
  box-shadow: 0 42px 92px -36px rgba(2, 6, 23, 0.88);
}

body.theme-luxury-dark .post-link-preview {
  border-color: rgba(214, 184, 121, 0.28);
  background: linear-gradient(135deg, rgba(214, 184, 121, 0.12), rgba(133, 98, 39, 0.14))
      var(--feed-card-bg);
  box-shadow: 0 22px 44px -28px rgba(2, 6, 23, 0.75);
}

body.theme-luxury-dark .post-body blockquote {
  border-left-color: rgba(214, 184, 121, 0.6);
  background: rgba(23, 19, 11, 0.6);
  color: rgba(243, 230, 204, 0.85);
}

body.theme-luxury-dark .post-body code {
  background: rgba(214, 184, 121, 0.14);
}

body.theme-luxury-dark .post-body pre {
  background: rgba(8, 11, 18, 0.95);
  box-shadow: inset 0 0 0 1px rgba(214, 184, 121, 0.18);
}

body.theme-luxury-dark .post-read-more {
  border-color: rgba(214, 184, 121, 0.38);
  background: rgba(214, 184, 121, 0.12);
  color: #f3e2be;
}

body.theme-luxury-dark .post-read-more:hover,
body.theme-luxury-dark .post-read-more:focus-visible {
  background: rgba(214, 184, 121, 0.24);
  border-color: rgba(214, 184, 121, 0.6);
  color: #fff;
}

body.theme-luxury-dark .share-caption {
  border-left-color: rgba(214, 184, 121, 0.6);
  background: rgba(23, 19, 11, 0.6);
}

body.theme-luxury-dark .post-image,
body.theme-luxury-dark .post-video,
body.theme-luxury-dark .post-audio {
  border-color: rgba(214, 184, 121, 0.3);
  background: rgba(8, 12, 20, 0.9);
  box-shadow: 0 22px 44px -28px rgba(2, 6, 23, 0.8);
}

body.theme-luxury-dark .post-footer {
  border-top-color: rgba(214, 184, 121, 0.28);
}

body.theme-luxury-dark .post-avatar {
  --feed-avatar-ring-color: rgba(214, 184, 121, 0.5);
  box-shadow: 0 16px 32px rgba(2, 6, 23, 0.7);
}

body.theme-luxury-dark .post-avatar--has-unread-story {
  background: linear-gradient(135deg, rgba(242, 216, 154, 0.92), rgba(214, 184, 121, 0.88));
  box-shadow: 0 18px 36px rgba(214, 184, 121, 0.35);
}

body.theme-luxury-dark .post-video__overlay-button {
  background: rgba(12, 16, 24, 0.85);
  border-color: rgba(214, 184, 121, 0.35);
  color: #f4e6cb;
}

body.theme-luxury-dark .post-video__overlay-button:hover,
body.theme-luxury-dark .post-video__overlay-button:focus-visible {
  background: rgba(17, 22, 32, 0.95);
  border-color: rgba(214, 184, 121, 0.6);
  color: #fff;
}

body.theme-luxury-dark .vote-actions {
  background: rgba(214, 184, 121, 0.16);
  border-color: rgba(214, 184, 121, 0.28);
}

body.theme-luxury-dark .vote-btn {
  color: #f3e2be;
}

body.theme-luxury-dark .vote-btn:hover,
body.theme-luxury-dark .vote-btn:focus-visible {
  background: rgba(214, 184, 121, 0.22);
  color: var(--feed-accent);
}

body.theme-luxury-dark .vote-btn.voted {
  box-shadow: 0 16px 32px rgba(2, 6, 23, 0.75);
}

body.theme-luxury-dark .other-actions button {
  background: rgba(214, 184, 121, 0.14);
  color: #e6d6b0;
}

body.theme-luxury-dark .other-actions button:hover,
body.theme-luxury-dark .other-actions button:focus-visible {
  background: rgba(214, 184, 121, 0.26);
  color: #fff;
}

body.theme-luxury-dark .comments {
  background: rgba(13, 17, 26, 0.88);
  border-color: rgba(214, 184, 121, 0.28);
  box-shadow: inset 0 1px 0 rgba(214, 184, 121, 0.12);
}

body.theme-luxury-dark .profile-avatar-btn {
  background: rgba(12, 16, 24, 0.9);
  border-color: rgba(214, 184, 121, 0.35);
  color: #f4e6cb;
}

body.theme-luxury-dark .profile-avatar-btn:hover,
body.theme-luxury-dark .profile-avatar-btn:focus-visible,
body.theme-luxury-dark .profile-menu.open .profile-avatar-btn {
  background: rgba(214, 184, 121, 0.18);
  border-color: rgba(214, 184, 121, 0.6);
  color: #fff;
}

body.theme-luxury-dark .profile-dropdown {
  background: rgba(9, 12, 20, 0.98);
  border-color: rgba(214, 184, 121, 0.28);
  box-shadow: 0 32px 56px rgba(2, 6, 23, 0.65);
}

body.theme-luxury-dark .profile-dropdown hr {
  background: rgba(214, 184, 121, 0.22);
}

body.theme-luxury-dark .profile-dropdown__header {
  border-color: rgba(214, 184, 121, 0.25);
}

body.theme-luxury-dark .profile-dropdown__label,
body.theme-luxury-dark .profile-dropdown__eyebrow,
body.theme-luxury-dark .profile-menu-item__hint,
body.theme-luxury-dark .profile-theme-option__hint {
  color: rgba(214, 184, 121, 0.7);
}

body.theme-luxury-dark .profile-menu-item:hover,
body.theme-luxury-dark .profile-menu-item:focus-visible {
  background: rgba(214, 184, 121, 0.2);
  color: #f8f1e4;
}

body.theme-luxury-dark .profile-appearance-panel {
  background: rgba(7, 10, 18, 0.98);
  border-color: rgba(214, 184, 121, 0.35);
  box-shadow: 0 20px 45px rgba(2, 6, 23, 0.7);
}

body.theme-luxury-dark .profile-appearance-panel__back {
  background: rgba(214, 184, 121, 0.14);
}

body.theme-luxury-dark .profile-appearance-panel__back:hover,
body.theme-luxury-dark .profile-appearance-panel__back:focus-visible {
  background: rgba(214, 184, 121, 0.3);
  color: #f8f1e4;
}

body.theme-luxury-dark .profile-theme-option:hover,
body.theme-luxury-dark .profile-theme-option:focus-visible {
  border-color: rgba(214, 184, 121, 0.45);
  background: rgba(214, 184, 121, 0.2);
}

body.theme-luxury-dark .profile-theme-option.is-active {
  border-color: rgba(214, 184, 121, 0.6);
  background: rgba(214, 184, 121, 0.28);
  color: #f5e8cf;
}
/* Soft Light feed theme */
body.light {
  --feed-surface: rgba(236, 227, 216, 0.88);
  --feed-card-bg: rgba(250, 242, 233, 0.97);
  --feed-card-border: rgba(160, 142, 122, 0.32);
  --feed-card-shadow: 0 26px 50px -28px rgba(15, 23, 42, 0.16);
  --feed-muted-color: #6a5f52;
  --feed-readmore-fade: rgba(240, 232, 222, 0.97);
  --header-bg: rgba(238, 228, 216, 0.96);
  --text-color: #1f2937;
  color: var(--text-color);
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(251, 191, 36, 0.2), transparent 60%),
    radial-gradient(120% 120% at 100% 0%, rgba(99, 102, 241, 0.12), transparent 62%),
    linear-gradient(180deg, #efe3d4 0%, #e9ddcf 52%, #e3eaf2 100%);
  background-attachment: fixed;
}

body.light::before {
  background: rgba(251, 191, 36, 0.28);
  opacity: 0.22;
}

body.light::after {
  background: rgba(147, 197, 253, 0.22);
  opacity: 0.22;
}

body.light .feed-navbar {
  background:
    linear-gradient(125deg, rgba(251, 191, 36, 0.1), rgba(99, 102, 241, 0.08)),
    var(--header-bg);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.light .feed-navbar__inner {
  border-color: rgba(160, 142, 122, 0.28);
  background: linear-gradient(135deg, rgba(255, 248, 240, 0.97), rgba(239, 229, 216, 0.92));
  box-shadow: 0 22px 40px rgba(15, 23, 42, 0.12);
}

body.light .feed-navbar__menu-btn {
  background: rgba(255, 248, 240, 0.96);
  border-color: rgba(160, 142, 122, 0.3);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
}

body.light .feed-navbar__menu-btn:hover,
body.light .feed-navbar__menu-btn:focus-visible {
  background: rgba(255, 241, 230, 0.96);
  border-color: rgba(99, 102, 241, 0.4);
}

body.light .feed-navbar__nav {
  background: linear-gradient(135deg, rgba(222, 209, 191, 0.72), rgba(243, 235, 224, 0.62));
  border: 1px solid rgba(160, 142, 122, 0.22);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.light .feed-navbar__link.is-active {
  background: rgba(99, 102, 241, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

body.light .feed-navbar__tag {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.18);
}

body.light .feed-navbar__extras {
  border-right-color: rgba(160, 142, 122, 0.3);
}

body.light .feed-navbar__extra-link {
  border-color: rgba(160, 142, 122, 0.32);
  background: rgba(255, 248, 240, 0.92);
}

body.light .feed-navbar__extra-link:hover,
body.light .feed-navbar__extra-link:focus-visible {
  background: rgba(99, 102, 241, 0.12);
}

body.light .feed-navbar__dropdown-menu {
  background: rgba(255, 248, 240, 0.98);
  border-color: rgba(160, 142, 122, 0.22);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

body.light .feed-navbar__dropdown-menu::before {
  border-left-color: rgba(160, 142, 122, 0.22);
  border-top-color: rgba(160, 142, 122, 0.22);
}

body.light .feed-navbar__dropdown-link {
  background: rgba(160, 142, 122, 0.08);
}

body.light .feed-navbar__dropdown-link:hover,
body.light .feed-navbar__dropdown-link:focus-visible {
  background: rgba(99, 102, 241, 0.16);
}

body.light .feed-navbar__circle-btn {
  background: rgba(255, 248, 240, 0.96);
  border-color: rgba(160, 142, 122, 0.28);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
}

body.light .feed-navbar__circle-btn:hover,
body.light .feed-navbar__circle-btn:focus-visible {
  background: rgba(99, 102, 241, 0.14);
  border-color: rgba(99, 102, 241, 0.4);
}

body.light .feed-theme-select {
  background: rgba(255, 248, 240, 0.96);
  border-color: rgba(160, 142, 122, 0.28);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.1);
}

body.light .feed-navbar__theme::after {
  color: rgba(71, 85, 105, 0.6);
}

body.light .feed-search {
  background: rgba(255, 248, 240, 0.95);
  border-color: rgba(160, 142, 122, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 16px 32px rgba(15, 23, 42, 0.12);
}

body.light .feed-search.is-open {
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2), 0 18px 36px rgba(15, 23, 42, 0.14);
}

body.light .feed-search__suggestions {
  background: rgba(255, 248, 240, 0.98);
  border-color: rgba(160, 142, 122, 0.24);
  box-shadow: 0 24px 46px rgba(15, 23, 42, 0.2);
}

body.light .feed-search__option {
  background: rgba(99, 102, 241, 0.06);
}

body.light .feed-search__option:hover,
body.light .feed-search__option.is-active,
body.light .feed-search__option:focus-visible {
  border-color: rgba(99, 102, 241, 0.3);
  background: rgba(99, 102, 241, 0.16);
}

body.light .feed-search__option-index {
  background: rgba(99, 102, 241, 0.16);
}

body.light .feed-search__option-meta,
body.light .feed-search__empty,
body.light .feed-search input[type="search"]::placeholder {
  color: rgba(106, 97, 86, 0.75);
}

body.light .feed-search__submit {
  background: rgba(99, 102, 241, 0.12);
}

body.light .feed-search__submit:hover,
body.light .feed-search__submit:focus-visible {
  background: rgba(99, 102, 241, 0.2);
}

body.light .sidebar,
body.light .right-sidebar {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.66), rgba(242, 232, 220, 0.55))
      var(--feed-card-bg);
  border-color: rgba(160, 142, 122, 0.24);
  box-shadow: 0 24px 50px -28px rgba(15, 23, 42, 0.18);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.light .main-content .container {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.light .story-rail {
  border-color: rgba(160, 142, 122, 0.22);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.68), rgba(242, 232, 220, 0.55))
      var(--feed-card-bg);
  box-shadow: 0 22px 44px -26px rgba(15, 23, 42, 0.18);
}

body.light .story-rail__add {
  border-color: rgba(99, 102, 241, 0.28);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(14, 165, 233, 0.1));
}

body.light .story-rail__nav {
  border-color: rgba(99, 102, 241, 0.22);
  background: rgba(99, 102, 241, 0.1);
}

body.light .story-rail__list {
  scrollbar-color: rgba(99, 102, 241, 0.35) transparent;
}

body.light .story-rail__list::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.35);
}

body.light .story-composer__backdrop {
  background: rgba(31, 41, 55, 0.18);
  backdrop-filter: blur(2px);
}

body.light .composer {
  background: linear-gradient(140deg, rgba(99, 102, 241, 0.08), rgba(14, 165, 233, 0.06))
      rgba(255, 248, 240, 0.9);
  border-color: rgba(99, 102, 241, 0.16);
  box-shadow: 0 22px 44px -28px rgba(15, 23, 42, 0.18);
}

body.light .composer textarea {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(250, 244, 236, 0.92)) padding-box,
    linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(14, 165, 233, 0.24)) border-box;
  box-shadow: 0 22px 44px -26px rgba(15, 23, 42, 0.2);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.light .composer textarea:focus {
  box-shadow:
    0 0 0 3px rgba(99, 102, 241, 0.18),
    0 30px 60px -26px rgba(99, 102, 241, 0.25);
}

body.light .composer-add-menu__dropdown {
  background: rgba(255, 248, 240, 0.98);
  border-color: rgba(160, 142, 122, 0.24);
  box-shadow: 0 24px 46px -26px rgba(15, 23, 42, 0.18);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.light .composer-media {
  background: rgba(255, 248, 240, 0.75);
  border-color: rgba(99, 102, 241, 0.24);
}

body.light .post {
  background: linear-gradient(160deg, rgba(99, 102, 241, 0.06), rgba(14, 165, 233, 0.04) 60%)
      var(--feed-card-bg);
  border-color: rgba(160, 142, 122, 0.24);
  box-shadow: 0 24px 50px -28px rgba(15, 23, 42, 0.2);
}

body.light .post:hover {
  border-color: rgba(99, 102, 241, 0.28);
  box-shadow: 0 28px 58px -30px rgba(15, 23, 42, 0.22);
}

body.light .post-link-preview {
  border-color: rgba(160, 142, 122, 0.24);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(14, 165, 233, 0.06))
      var(--feed-card-bg);
  box-shadow: 0 18px 36px -26px rgba(15, 23, 42, 0.18);
}

body.light .post-body blockquote {
  background: rgba(226, 214, 199, 0.45);
  border-left-color: rgba(99, 102, 241, 0.3);
  color: #6f6a60;
}

body.light .post-body pre {
  background: rgba(248, 240, 230, 0.95);
  color: #1f2937;
  box-shadow: inset 0 0 0 1px rgba(160, 142, 122, 0.24);
}

body.light .post-image,
body.light .post-video,
body.light .post-audio {
  border-color: rgba(160, 142, 122, 0.26);
  background: rgba(243, 236, 226, 0.92);
  box-shadow: 0 16px 32px -24px rgba(15, 23, 42, 0.18);
}

body.light .post-video__overlay-button {
  background: rgba(255, 248, 240, 0.95);
  border-color: rgba(160, 142, 122, 0.3);
  color: #3f3b32;
}

body.light .post-video__overlay-button:hover,
body.light .post-video__overlay-button:focus-visible {
  background: rgba(255, 241, 230, 0.98);
  border-color: rgba(99, 102, 241, 0.35);
  color: #1f2937;
}

body.light .post-read-more {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.22);
  color: var(--feed-accent);
}

body.light .post-read-more:hover,
body.light .post-read-more:focus-visible {
  background: rgba(99, 102, 241, 0.16);
  border-color: rgba(99, 102, 241, 0.35);
}

body.light .share-caption {
  background: rgba(226, 214, 199, 0.4);
  border-left-color: rgba(99, 102, 241, 0.28);
}

body.light .comments {
  background: rgba(226, 214, 199, 0.35);
  border-color: rgba(160, 142, 122, 0.22);
}

body.light .profile-avatar-btn {
  background: rgba(255, 248, 240, 0.95);
  border-color: rgba(160, 142, 122, 0.28);
  color: inherit;
}

body.light .profile-avatar-btn:hover,
body.light .profile-avatar-btn:focus-visible,
body.light .profile-menu.open .profile-avatar-btn {
  background: rgba(99, 102, 241, 0.14);
  border-color: rgba(99, 102, 241, 0.35);
}

body.light .profile-dropdown {
  background: rgba(255, 248, 240, 0.98);
  border-color: rgba(160, 142, 122, 0.24);
  box-shadow: 0 24px 46px rgba(15, 23, 42, 0.18);
}

body.light .profile-dropdown hr {
  background: rgba(160, 142, 122, 0.2);
}

body.light .profile-appearance-panel {
  background: rgba(255, 248, 240, 0.98);
  border-color: rgba(160, 142, 122, 0.24);
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.18);
}

body.light .profile-appearance-panel__back {
  background: rgba(148, 163, 184, 0.14);
}

body.light .profile-appearance-panel__back:hover,
body.light .profile-appearance-panel__back:focus-visible {
  background: rgba(99, 102, 241, 0.2);
  color: var(--feed-accent);
}

body.light .profile-theme-option:hover,
body.light .profile-theme-option:focus-visible {
  border-color: rgba(99, 102, 241, 0.28);
  background: rgba(99, 102, 241, 0.12);
}

body.light .profile-theme-option.is-active {
  border-color: rgba(99, 102, 241, 0.4);
  background: rgba(99, 102, 241, 0.2);
  color: var(--feed-accent);
}

body.light .feed-nav-ready .feed-navbar__nav {
  background: rgba(255, 248, 240, 0.98);
  border-color: rgba(160, 142, 122, 0.24);
  box-shadow: 14px 0 40px rgba(15, 23, 42, 0.18);
}



.feed-navbar .feed-navbar__cta,
.feed-navbar [data-track="nav_compose"] {
  display: none !important;
}

.save-folder-menu {
  position: absolute;
  z-index: 10050;
  min-width: 220px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(17, 24, 39, 0.98);
  border: 1px solid rgba(99, 102, 241, 0.3);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.45);
  color: #e2e8f0;
}

.save-folder-menu__header {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 8px;
}

.save-folder-menu__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.save-folder-menu__empty {
  font-size: 0.85rem;
  color: #94a3b8;
}

.save-folder-menu__chip {
  border: 1px solid rgba(99, 102, 241, 0.35);
  background: rgba(99, 102, 241, 0.14);
  color: #e0e7ff;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.save-folder-menu__chip:hover,
.save-folder-menu__chip:focus {
  border-color: rgba(99, 102, 241, 0.6);
  box-shadow: 0 8px 18px rgba(99, 102, 241, 0.25);
  transform: translateY(-1px);
}

.save-folder-menu__new {
  width: 100%;
  border: 1px dashed rgba(148, 163, 184, 0.5);
  background: transparent;
  color: #c7d2fe;
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 8px;
}

.save-folder-menu__new:hover,
.save-folder-menu__new:focus {
  border-color: rgba(99, 102, 241, 0.6);
  color: #eef2ff;
}

.save-folder-menu__form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
}

.save-folder-menu__input {
  border-radius: 10px;
  border: 1px solid rgba(99, 102, 241, 0.35);
  background: rgba(15, 23, 42, 0.9);
  color: #e2e8f0;
  padding: 6px 10px;
  font-size: 0.85rem;
}

.save-folder-menu__input:focus {
  outline: none;
  border-color: rgba(99, 102, 241, 0.7);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
}

.save-folder-menu__submit {
  border: none;
  border-radius: 10px;
  padding: 6px 12px;
  background: linear-gradient(135deg, #6366f1, #3b82f6);
  color: #f8fafc;
  font-weight: 700;
  cursor: pointer;
}

.save-folder-menu__submit:hover,
.save-folder-menu__submit:focus {
  background: linear-gradient(135deg, #4f46e5, #2563eb);
}
