@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap');

/* ===== Millowi base + tokens ===== */
:root {
  --primary-600: #9d4dff;
  --primary-700: #7b3ff0;

  --navy-950: #050308;
  --navy-900: #110b1b;
  --navy-800: #21142f;
  --navy-700: #382551;
  --navy-400: #8f81ab;
  --navy-300: #b9acd2;

  --accent-blue: #9b7bff;
  --accent-purple: #b05aff;
  --accent-teal: #14b8a6;
  --accent-orange: #f97316;

  --text: #f3f4f6;
  --muted: #9ca3af;

  --radius-lg: 0.75rem; /* ~rounded-xl */
  --radius-md: 0.5rem;  /* ~rounded-lg */
  --radius-full: 9999px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

html {
  background: var(--navy-950);
}

body {
  margin: 0;
  position: relative;
  isolation: isolate;
  background: transparent;
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* Keep email addresses crisp and readable on dark surfaces instead of using
   the browser's saturated default link blue. */
a[href^="mailto:"] {
  color: var(--accent-blue);
  font-weight: 600;
  text-decoration-color: rgba(155, 123, 255, .7);
  text-decoration-thickness: .08em;
  text-underline-offset: .16em;
}

a[href^="mailto:"]:hover {
  color: #fff;
  text-decoration-color: currentColor;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: #08040d;
  background-image:
    radial-gradient(ellipse 34rem 27rem at -3% 18%, rgba(192, 72, 255, .24), transparent 70%),
    radial-gradient(ellipse 38rem 32rem at 103% 36%, rgba(112, 72, 255, .22), transparent 68%),
    radial-gradient(ellipse 30rem 36rem at 5% 82%, rgba(123, 55, 218, .16), transparent 72%),
    radial-gradient(ellipse 42rem 34rem at 95% 88%, rgba(207, 71, 255, .13), transparent 72%),
    radial-gradient(ellipse 48rem 20rem at 50% -4%, rgba(185, 115, 255, .12), transparent 70%),
    linear-gradient(132deg, rgba(255, 255, 255, .038) 0%, rgba(255, 255, 255, 0) 24%),
    linear-gradient(180deg, rgba(255, 255, 255, .026), rgba(255, 255, 255, .006) 22%, rgba(5, 3, 8, .2) 100%),
    linear-gradient(180deg, #21142f 0%, #120a1a 42%, #08040d 100%);
  background-repeat: no-repeat;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  z-index: -1;
  inset: -12%;
  background-image:
    repeating-radial-gradient(ellipse at 96% 64%, transparent 0 5.4rem, rgba(190, 123, 255, .085) 5.5rem, transparent 5.65rem),
    repeating-radial-gradient(ellipse at 4% 42%, transparent 0 7.4rem, rgba(142, 88, 255, .07) 7.5rem, transparent 7.65rem),
    radial-gradient(circle at 82% 19%, rgba(224, 125, 255, .2), transparent 0 18%),
    radial-gradient(circle at 17% 70%, rgba(121, 76, 255, .16), transparent 0 20%),
    radial-gradient(circle, rgba(242, 225, 255, .34) 0 .065rem, transparent .085rem),
    radial-gradient(circle, rgba(166, 117, 255, .24) 0 .045rem, transparent .065rem);
  background-size: auto, auto, auto, auto, 3.2rem 3.2rem, 5.3rem 5.3rem;
  background-position: center, center, center, center, 0 0, 1.3rem 2rem;
  opacity: .82;
  transform: translate3d(-1.5%, -1%, 0) scale(1);
  animation: millowi-ambient-drift 28s ease-in-out infinite alternate;
  pointer-events: none;
  will-change: transform;
}

@keyframes millowi-ambient-drift {
  50% {
    transform: translate3d(1.25%, 1.5%, 0) scale(1.025);
  }

  100% {
    transform: translate3d(-.5%, 2%, 0) scale(1.01);
  }
}

@media (prefers-reduced-motion: reduce) {
  body::after {
    animation: none;
    transform: none;
  }
}

/* ===== Layout utilities (subset) ===== */
.min-h-screen { min-height: 100vh; }

.container { width: 100%; margin: 0 auto; }
@media (min-width: 640px) { .container { max-width: 640px; } }
@media (min-width: 768px) { .container { max-width: 768px; } }
@media (min-width: 1024px){ .container { max-width: 1024px; } }
@media (min-width: 1280px){ .container { max-width: 1280px; } }

.mx-auto { margin-left: auto; margin-right: auto; }

.p-1 { padding: .25rem; }
.p-2 { padding: .5rem; }
.p-3 { padding: .75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }

.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }

.py-2 { padding-top: .5rem; padding-bottom: .5rem; }
.py-3 { padding-top: .75rem; padding-bottom: .75rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }

.mt-3 { margin-top: .75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: .5rem; }
.mb-3 { margin-bottom: .75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }

.gap-2 { gap: .5rem; }
.gap-3 { gap: .75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

.flex { display: flex; }
.inline { display: inline; }
.hidden { display: none; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.text-center { text-align: center; }
.flex-1 { flex: 1 1 0%; }
.flex-col { flex-direction: column; }

.space-x-2 > * + * { margin-left: .5rem; }
.space-x-3 > * + * { margin-left: .75rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-x-6 > * + * { margin-left: 1.5rem; }

.space-y-2 > * + * { margin-top: .5rem; }
.space-y-3 > * + * { margin-top: .75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

/* Responsive helpers used in your HTML */
@media (min-width: 768px) {
  .md\:hidden { display: none; }
  .md\:flex { display: flex; }
  .md\:inline { display: inline; }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .lg\:flex-row { flex-direction: row; }
  .lg\:w-1\/4 { width: 25%; }
  .lg\:w-2\/4 { width: 50%; }
}

/* Grid */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Width/height */
.w-full { width: 100%; }
.w-6 { width: 1.5rem; } .h-6 { height: 1.5rem; }
.w-8 { width: 2rem; }   .h-8 { height: 2rem; }
.w-10 { width: 2.5rem; } .h-10 { height: 2.5rem; }
.w-12 { width: 3rem; }  .h-12 { height: 3rem; }

.rounded-full { border-radius: var(--radius-full); }
.rounded-lg { border-radius: var(--radius-md); }
.rounded-xl { border-radius: var(--radius-lg); }

.border { border: 1px solid var(--navy-800); }
.border-b { border-bottom: 1px solid var(--navy-800); }
.border-t { border-top: 1px solid var(--navy-800); }

/* Positioning */
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.top-24 { top: 6rem; }
.z-50 { z-index: 50; }

/* Typography */
.text-xs { font-size: .75rem; }
.text-sm { font-size: .875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }

/* Colors (subset for your page) */
.text-white { color: #fff; }
.text-gray-100 { color: #f3f4f6; }
.text-navy-300 { color: var(--navy-300); }
.text-navy-400 { color: var(--navy-400); }
.bg-navy-950 { background: var(--navy-950); }
.bg-navy-900 { background: var(--navy-900); }
.bg-navy-800 { background: var(--navy-800); }
.bg-navy-700 { background: var(--navy-700); }

.bg-primary-600 { background: var(--primary-600); }
.bg-primary-700 { background: var(--primary-700); }

.text-accent-blue { color: var(--accent-blue); }
.text-accent-purple { color: var(--accent-purple); }
.text-accent-teal { color: var(--accent-teal); }
.text-accent-orange { color: var(--accent-orange); }
.bg-accent-orange { background: var(--accent-orange); }

/* Simple “shadow-lg” feel */
.shadow-lg { box-shadow: 0 10px 20px rgba(0,0,0,.25); }

/* Buttons */
button {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
  cursor: pointer;
}
button:disabled { opacity: .6; cursor: not-allowed; }

/* Inputs */
input {
  font: inherit;
  color: inherit;
}

/* ===== keep your existing custom CSS below this line ===== */

body {
    font-family: 'Inter', sans-serif;
}

.scrollbar-thin {
    scrollbar-width: thin;
    scrollbar-color: #334e68 #0a1929;
}

.scrollbar-thin::-webkit-scrollbar {
    width: 6px;
}

.scrollbar-thin::-webkit-scrollbar-track {
    background: #0a1929;
}

.scrollbar-thin::-webkit-scrollbar-thumb {
    background-color: #334e68;
    border-radius: 3px;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

.vote-btn:hover {
    background-color: rgba(59, 130, 246, 0.1);
}

.community-tag {
    transition: all 0.2s ease;
}

.community-tag:hover {
    background-color: rgba(139, 92, 246, 0.2);
    transform: scale(1.05);
}

.nav-link.active {
    background-color: rgba(51, 78, 104, 0.3);
    border-left: 3px solid #3b82f6;
}

.dropdown-menu {
    animation: slideUp 0.2s ease-out;
}

.home-shell {
  max-width: 1240px;
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 0;
  box-shadow: none;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, backdrop-filter .2s ease;
}

.site-header.is-scrolled {
  background: rgba(17, 10, 29, .76);
  border-bottom: 1px solid rgba(172, 126, 255, .1);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .38);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.legal-dock-shell {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .65rem;
  width: 280px;
  max-width: 100%;
  margin-left: auto;
  padding: 0 1rem 1.35rem;
}

.legal-dock-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: .65rem 1rem;
}

.legal-dock-links a,
.legal-dock-copy {
  color: var(--navy-300);
}

.legal-dock-links a {
  text-decoration: none;
  font-size: .92rem;
}

.legal-dock-links a:hover {
  color: #fff;
}

.legal-dock-copy {
  margin: 0;
  font-size: .92rem;
  text-align: right;
}

.site-header .home-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 280px;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 1.45rem;
  padding-right: 1rem;
  max-width: 1640px;
}

body.home-page .home-shell {
  max-width: 1640px;
}

.home-topbar-search {
  position: relative;
  display: block;
  min-height: 0;
  padding: .72rem 1rem;
  border: 1px solid rgba(172, 126, 255, .08);
  border-radius: 1.3rem;
  background:
    linear-gradient(180deg, rgba(38, 24, 62, .92), rgba(18, 12, 29, .96)),
    rgba(12, 9, 18, .98);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .38);
  backdrop-filter: blur(14px);
}

.home-topbar-search-inner {
  position: relative;
}

.home-topbar-search input {
  width: 100%;
  height: 3.15rem;
  padding: 0 3.5rem 0 1.1rem;
  border: 0;
  background: transparent;
  color: #f3f7ff;
  border-radius: 999px;
  font-size: .95rem;
  box-shadow: none;
}

.home-topbar-search input::placeholder {
  color: rgba(222, 226, 255, .7);
}

.home-topbar-search-submit {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  width: 2.2rem;
  height: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: rgba(241, 245, 255, .92);
  cursor: pointer;
}

.site-actions.home-topbar-actions {
  width: 280px;
  gap: .5rem;
  justify-content: flex-start;
  justify-self: end;
  align-self: center;
}

.home-topbar-actions > .action-menu {
  flex: 0 0 3.65rem;
  width: 3.65rem;
  height: 4rem;
  margin: 0;
  padding: 0;
}

.home-topbar-actions > .action-menu > .home-topbar-chip-summary {
  width: 100%;
  height: 100%;
}

.home-topbar-chip,
.home-topbar-chip-summary {
  width: 3.65rem;
  height: 4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(172, 126, 255, .08);
  border-radius: 1.2rem;
  background:
    linear-gradient(180deg, rgba(38, 24, 62, .92), rgba(18, 12, 29, .96)),
    rgba(12, 9, 18, .98);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .38);
  backdrop-filter: blur(14px);
}

.home-topbar-chip-summary {
  list-style: none;
  cursor: pointer;
}

.home-topbar-chip-summary::-webkit-details-marker {
  display: none;
}

.home-topbar-icon-chip {
  font-size: 1rem;
}

.header-post-action {
  width: auto;
  min-width: 5rem;
  gap: .4rem;
  padding: 0 .75rem;
  border-color: rgba(190, 132, 255, .32);
  background: linear-gradient(135deg, #a64cff, #6a3ef0);
  font-size: .9rem;
  font-weight: 800;
  box-shadow: 0 18px 36px rgba(82, 39, 170, .32);
}

.header-post-action:hover {
  border-color: rgba(214, 177, 255, .48);
  background: linear-gradient(135deg, #b45bff, #7950f5);
  transform: translateY(-1px);
}

.header-dropdown .mobile-menu-messages {
  display: none;
}

.home-topbar-avatar-chip .header-user-avatar {
  width: 2rem;
  height: 2rem;
}

.site-brand,
.site-actions,
.profile-head,
.community-left,
.composer-top,
.composer-bottom,
.feed-toolbar,
.post-meta,
.post-actions,
.online-row,
.trending-top {
  display: flex;
  align-items: center;
}

.site-brand {
  gap: .75rem;
  min-width: 0;
  justify-self: start;
  align-self: center;
}

.brand-link {
  text-decoration: none;
  color: inherit;
}

.flash-stack {
  padding: 1rem 1rem 0;
}

.flash-message {
  background: rgba(46, 194, 126, .14);
  border: 1px solid rgba(46, 194, 126, .4);
  color: #c9f5df;
  border-radius: .9rem;
  padding: .9rem 1rem;
}

.brand-mark,
.profile-avatar,
.online-avatar,
.promo-icon {
  border-radius: 9999px;
}

.brand-mark {
  width: 3.35rem;
  height: 3.35rem;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.brand-title {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 1.85rem;
  line-height: 1.1;
}

.footer-link,
.post-meta a,
.community-name {
  color: var(--accent-blue);
}

.brand-subtitle,
.muted-copy,
.muted-small {
  color: var(--navy-300);
}

.brand-subtitle,
.muted-small {
  font-size: .75rem;
}

.site-search {
  flex: 1;
  position: relative;
  width: 100%;
}

.site-search i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--navy-400);
}

.site-search input,
.composer-input {
  width: 100%;
  border: 0;
  background: transparent;
  color: #fff;
  border-radius: 9999px;
}

.site-search input {
  padding: .75rem 1rem .75rem 2.75rem;
}

.search-suggestions {
  position: absolute;
  top: calc(100% + .55rem);
  left: 0;
  right: 0;
  background: var(--navy-900);
  border: 1px solid var(--navy-700);
  border-radius: 1rem;
  box-shadow: 0 18px 30px rgba(0, 0, 0, .35);
  padding: .4rem;
  z-index: 40;
}

.search-suggestion-item,
.search-suggestion-empty {
  display: flex;
  gap: .8rem;
  padding: .8rem .9rem;
  border-radius: .8rem;
}

.search-suggestion-item {
  align-items: flex-start;
  text-decoration: none;
  color: #fff;
}

.search-suggestion-item:hover {
  background: var(--navy-800);
}

.search-suggestion-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.5rem;
  padding: .35rem .55rem;
  border-radius: 9999px;
  background: rgba(79, 70, 229, .18);
  color: #c7d2fe;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.search-suggestion-copy {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  min-width: 0;
}

.search-suggestion-copy strong,
.search-suggestion-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-suggestion-copy small,
.search-suggestion-empty {
  color: var(--navy-300);
}

.site-actions {
  gap: .75rem;
}

.header-icon-button {
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: transparent;
  color: var(--navy-300);
}

.header-icon-button:hover {
  color: #fff;
}

.notification-toggle {
  list-style: none;
}

.notification-toggle::-webkit-details-marker {
  display: none;
}

.header-notification-dot {
  position: absolute;
  top: .55rem;
  right: .55rem;
  width: .45rem;
  height: .45rem;
  border-radius: 9999px;
  background: var(--accent-orange);
}

.header-user-menu {
  position: relative;
}

.header-user-toggle {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: #fff;
  cursor: pointer;
}

.header-user-toggle::-webkit-details-marker {
  display: none;
}

.header-user-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-blue));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  flex: 0 0 auto;
}

.header-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-user-name {
  font-weight: 500;
}

.header-user-toggle i:last-child {
  color: var(--navy-400);
  font-size: .8rem;
}

.header-dropdown {
  min-width: 12rem;
}

.notification-dropdown {
  width: min(24rem, calc(100vw - 2rem));
  padding: .55rem;
}

.notification-dropdown-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .25rem .35rem .6rem;
}

.notification-mark-read {
  padding: 0;
  color: var(--accent-blue);
  font-size: .85rem;
}

.notification-list {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.notification-item {
  display: flex;
  gap: .75rem;
  text-decoration: none;
  color: #fff;
  padding: .75rem .8rem;
  border-radius: .75rem;
}

.notification-item:hover {
  background: var(--navy-800);
}

.notification-item.is-unread {
  background: rgba(79, 70, 229, .12);
}

.notification-item-copy {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}

.notification-item-copy small,
.notification-empty {
  color: var(--navy-300);
}

.notification-empty {
  margin: 0;
  padding: .8rem;
}

.primary-pill,
.ghost-pill,
.secondary-button,
.toolbar-icon,
.feed-tabs a,
.vote-arrow {
  text-decoration: none;
  transition: all .2s ease;
}

.primary-pill,
.ghost-pill,
.secondary-button,
.toolbar-icon,
.feed-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border-radius: 9999px;
  padding: .7rem 1rem;
  color: #fff;
}

.primary-pill {
  background: var(--primary-600);
}

.primary-pill:hover {
  background: var(--primary-700);
}

.primary-pill.ghost-swap {
  background: var(--navy-800);
}

.primary-pill.ghost-swap:hover {
  background: var(--navy-700);
}

.primary-pill.compact,
.ghost-pill,
.toolbar-icon {
  padding: .55rem .95rem;
}

.ghost-pill,
.secondary-button,
.toolbar-icon,
.feed-tabs a {
  background:
    linear-gradient(180deg, rgba(50, 29, 82, .84), rgba(26, 15, 45, .92)),
    rgba(17, 11, 29, .96);
  border: 1px solid rgba(172, 126, 255, .08);
}

.ghost-pill:hover,
.secondary-button:hover,
.toolbar-icon:hover,
.feed-tabs a:hover {
  background:
    linear-gradient(180deg, rgba(66, 38, 107, .88), rgba(34, 20, 58, .94)),
    rgba(22, 14, 36, .98);
}

.home-main {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 280px;
  gap: 1.5rem;
  padding: 1.5rem 1rem 2rem;
}

.home-main > .page-main {
  min-width: 0;
}

.page-shell {
  padding: 1.5rem 1rem 2rem;
}

.page-with-rail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 1.5rem;
  align-items: start;
}

.community-page-shell {
  max-width: 1640px;
  grid-template-columns: 280px minmax(0, 1fr) 280px;
  padding-right: 1rem;
  padding-left: 1.45rem;
}

.community-page-shell > .page-main {
  min-width: 0;
  grid-column: 2;
}

.community-page-shell > .community-detail-rail {
  grid-column: 3;
}

.page-shell.narrow {
  max-width: 860px;
}

.page-main {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.page-breadcrumbs {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--navy-300);
  font-size: .9rem;
}

.page-breadcrumbs a {
  color: var(--accent-blue);
  text-decoration: none;
}

.home-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.community-detail-rail {
  margin-top: 2.35rem;
}

.community-report-panel summary {
  display: flex;
  align-items: center;
  gap: .55rem;
  cursor: pointer;
  font-weight: 700;
}

.community-report-panel summary i {
  color: var(--accent-purple);
}

.community-report-panel[open] summary {
  margin-bottom: 1rem;
}

.ads-detail-rail {
  margin-top: 2.35rem;
}

.panel {
  background:
    radial-gradient(circle at top left, rgba(168, 91, 255, .08), transparent 30%),
    radial-gradient(circle at bottom right, rgba(111, 61, 244, .08), transparent 24%),
    linear-gradient(180deg, rgba(34, 20, 54, .84), rgba(16, 10, 26, .9)),
    rgba(10, 8, 15, .96);
  border: 1px solid rgba(172, 126, 255, .08);
  border-radius: .95rem;
  padding: 1.25rem;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .34);
}

.hero-panel,
.form-panel,
.auth-panel,
.comments-panel {
  padding: 1.5rem;
}

.hero-copy h1 {
  margin: 0 0 .5rem;
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem;
}

.profile-name-row {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-wrap: wrap;
  margin-bottom: .5rem;
}

.profile-name-row h1 {
  margin-bottom: 0;
}

.millowi-staff-flair {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  overflow: hidden;
  padding: .32rem .62rem;
  border: 1px solid rgba(221, 179, 255, .48);
  border-radius: var(--radius-full);
  background:
    linear-gradient(135deg, rgba(176, 90, 255, .28), rgba(123, 63, 240, .16)),
    rgba(17, 11, 27, .88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .12),
    0 0 1.15rem rgba(157, 77, 255, .17);
  color: #ead6ff;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .055em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.millowi-staff-flair::after {
  position: absolute;
  z-index: -1;
  top: -160%;
  left: -30%;
  width: 32%;
  height: 420%;
  transform: rotate(24deg);
  background: rgba(255, 255, 255, .09);
  content: "";
}

.millowi-staff-flair i {
  color: #c895ff;
  font-size: .72rem;
  filter: drop-shadow(0 0 .28rem rgba(200, 149, 255, .45));
}

.millowi-staff-flair-compact {
  gap: .25rem;
  padding: .2rem .42rem;
  font-size: .57rem;
  letter-spacing: .045em;
  vertical-align: middle;
}

.millowi-staff-flair-compact i {
  font-size: .6rem;
}

.post-author-line {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  flex-wrap: wrap;
}

.hero-copy p {
  margin: 0;
  color: var(--navy-300);
  max-width: 46rem;
  line-height: 1.6;
}

.hero-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.community-hero-panel {
  position: relative;
  display: grid;
  gap: 1.15rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 18%, rgba(154, 77, 255, .14), transparent 0 28%),
    linear-gradient(145deg, rgba(36, 20, 58, .9), rgba(16, 10, 28, .94));
}

.community-hero-panel::after {
  content: "";
  position: absolute;
  width: 15rem;
  height: 15rem;
  right: -7rem;
  top: -8rem;
  border: 1px solid rgba(196, 145, 255, .1);
  border-radius: 50%;
  pointer-events: none;
}

.community-hero-main {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.community-hero-main .hero-copy {
  min-width: 0;
}

.community-hero-avatar {
  width: 4.5rem;
  height: 4.5rem;
  font-size: 1.8rem;
  box-shadow:
    0 0 0 3px rgba(183, 116, 255, .12),
    0 .7rem 1.5rem rgba(4, 2, 10, .3);
}

.community-hero-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid rgba(184, 126, 255, .12);
}

.community-hero-member-actions,
.community-hero-management-actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-wrap: wrap;
}

.community-hero-actions form {
  margin: 0;
}

.community-hero-management-actions .secondary-button {
  background: rgba(22, 13, 38, .56);
  color: var(--navy-300);
}

.community-owner-badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem .8rem;
  color: var(--navy-300);
  font-size: .85rem;
  font-weight: 700;
}

.community-owner-badge i {
  color: var(--accent-orange);
}

.centered {
  text-align: center;
}

.profile-avatar {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, #9d4dff, #6a3ef0);
  flex: 0 0 auto;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
}

.profile-avatar.small {
  width: 2.5rem;
  height: 2.5rem;
}

.profile-avatar img,
.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-head {
  gap: .85rem;
  margin-bottom: 1rem;
}

.profile-card-name-row {
  display: flex;
  align-items: center;
  gap: .45rem;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.profile-card-name-row .millowi-staff-flair {
  flex: 0 0 auto;
}

.profile-head h2,
.panel h3,
.panel-title,
.post-card-real h3 {
  margin: 0;
}

.profile-head p,
.promo-panel p,
.trending-item p {
  margin: .2rem 0 0;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin-bottom: 1rem;
  text-align: center;
}

.profile-stats strong,
.vote-score {
  display: block;
  color: #fff;
  font-size: 1rem;
}

.profile-stats span {
  display: block;
  color: var(--navy-400);
  font-size: .75rem;
}

.full-width {
  width: 100%;
}

.panel-title {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
  color: #fff;
  font-size: 1.05rem;
}

.panel-title i {
  color: var(--accent-orange);
}

.community-list,
.feed-list,
.trending-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.quick-links {
  display: flex;
  flex-direction: column;
  gap: .65rem;
}

.quick-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .9rem 1rem;
  border-radius: .85rem;
  background:
    linear-gradient(180deg, rgba(41, 24, 70, .86), rgba(19, 11, 33, .92)),
    rgba(12, 9, 20, .96);
  color: #fff;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}

.quick-link-row span {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
}

.quick-link-row i:last-child {
  color: var(--navy-400);
  font-size: .8rem;
}

.quick-link-row:hover {
  background:
    linear-gradient(180deg, rgba(57, 33, 96, .88), rgba(28, 17, 50, .94)),
    rgba(18, 11, 29, .97);
  transform: translateX(2px);
}

.community-row,
.trending-item {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  text-decoration: none;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(41, 24, 70, .82), rgba(19, 11, 33, .88)),
    rgba(12, 9, 20, .94);
  border-radius: .75rem;
  padding: .85rem;
}

.community-row:hover,
.trending-item:hover {
  background:
    linear-gradient(180deg, rgba(57, 33, 96, .86), rgba(28, 17, 50, .92)),
    rgba(18, 11, 29, .96);
}

.community-left {
  gap: .75rem;
}

.community-avatar,
.community-hero-avatar {
  border-radius: 9999px;
  overflow: hidden;
  background: linear-gradient(135deg, #9d4dff, #6a3ef0);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  flex: 0 0 auto;
}

.community-avatar {
  width: 2.2rem;
  height: 2.2rem;
}

.community-avatar.small {
  width: 1.7rem;
  height: 1.7rem;
}

.community-avatar img,
.community-hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.community-card-head {
  display: flex;
  align-items: center;
  gap: .85rem;
}

.community-dot {
  width: 1rem;
  height: 1rem;
  border-radius: 9999px;
  display: inline-block;
}

.community-dot-1 { background: #7c5cff; }
.community-dot-2 { background: #25a7ff; }
.community-dot-3 { background: #ff9f1c; }
.community-dot-4 { background: #2ec27e; }

.footer-link {
  display: inline-block;
  margin-top: 1rem;
  text-decoration: none;
  font-weight: 600;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.community-tag {
  display: inline-flex;
  align-items: center;
  padding: .45rem .7rem;
  background:
    linear-gradient(180deg, rgba(50, 29, 82, .82), rgba(26, 15, 45, .9)),
    rgba(17, 11, 29, .94);
  border-radius: 9999px;
  font-size: .82rem;
  color: #fff;
  text-decoration: none;
}

.composer-panel {
  margin-bottom: 1rem;
}

.composer-top {
  gap: .75rem;
  margin-bottom: 1rem;
}

.composer-input {
  display: block;
  padding: .9rem 1rem;
  text-decoration: none;
  color: var(--navy-300);
}

.composer-bottom,
.feed-toolbar,
.trending-top {
  justify-content: space-between;
}

.trending-top {
  gap: .5rem;
  min-width: 0;
}

.trending-top .community-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trending-top .muted-small {
  flex: 0 0 auto;
  white-space: nowrap;
}

.composer-tools,
.post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--navy-300);
  font-size: .9rem;
}

.feed-toolbar {
  margin-bottom: 1rem;
}

.listing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.settings-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}

.settings-card-head {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.settings-card-head .promo-icon {
  flex: 0 0 3rem;
  width: 3rem;
  height: 3rem;
  aspect-ratio: 1;
  border-radius: 50%;
}

.settings-card-head h2 {
  margin: 0;
}

.settings-card-copy {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  color: var(--navy-300);
  line-height: 1.6;
}

.settings-card-copy p {
  margin: 0;
}

.premium-page {
  gap: 1.5rem;
}

.premium-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, .8fr);
  gap: 1.25rem;
  align-items: stretch;
  background:
    radial-gradient(circle at top left, rgba(178, 95, 255, .14), transparent 35%),
    radial-gradient(circle at bottom right, rgba(124, 67, 255, .18), transparent 45%),
    var(--navy-900);
}

.premium-hero-copy h1,
.premium-comparison h2,
.premium-feature-card h2,
.premium-column h3 {
  margin: 0;
}

.premium-kicker {
  display: inline-flex;
  align-items: center;
  padding: .35rem .7rem;
  margin-bottom: .85rem;
  border-radius: 9999px;
  background: rgba(176, 90, 255, .14);
  color: #d8b2ff;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.premium-hero-copy p,
.premium-feature-card p,
.premium-price-card p,
.premium-column li {
  color: var(--navy-300);
  line-height: 1.7;
}

.premium-price-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 1rem;
  border: 1px solid rgba(172, 126, 255, .08);
  background: rgba(12, 9, 20, .74);
}

.premium-price-top strong {
  display: block;
  font-size: 2.2rem;
  line-height: 1.1;
}

.premium-price-top strong span {
  font-size: 1rem;
  color: var(--navy-300);
}

.premium-badge {
  display: inline-flex;
  margin-bottom: .8rem;
  padding: .32rem .65rem;
  border-radius: 9999px;
  background: rgba(176, 90, 255, .14);
  color: #d8b2ff;
  font-size: .76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.premium-grid,
.premium-columns {
  display: grid;
  gap: 1rem;
}

.premium-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.premium-feature-card {
  display: flex;
  flex-direction: column;
  gap: .8rem;
}

.premium-feature-icon {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: .9rem;
  background: linear-gradient(135deg, rgba(176, 90, 255, .28), rgba(109, 62, 240, .28));
  color: #fff;
}

.premium-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
}

.premium-column {
  border: 1px solid rgba(172, 126, 255, .08);
  border-radius: .95rem;
  padding: 1.1rem;
  background: rgba(12, 9, 20, .7);
}

.premium-column-highlight {
  border-color: rgba(176, 90, 255, .18);
  background: linear-gradient(180deg, rgba(176, 90, 255, .08), rgba(109, 62, 240, .08));
}

.premium-list {
  margin: .9rem 0 0;
  padding-left: 1.15rem;
}

.premium-list li + li {
  margin-top: .65rem;
}

.legal-panel {
  padding: 1.6rem;
}

.legal-copy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: var(--navy-300);
  line-height: 1.7;
}

.legal-copy h2 {
  margin: .6rem 0 0;
  color: #fff;
  font-size: 1.08rem;
}

.legal-copy p {
  margin: 0;
}

.error-page-shell {
  min-height: calc(100vh - 11rem);
  display: grid;
  align-items: center;
}

.error-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  text-align: center;
  padding: clamp(2rem, 6vw, 4.5rem);
}

.error-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 6.5rem;
  min-height: 3.25rem;
  padding: .55rem 1.25rem;
  border: 1px solid rgba(172, 126, 255, .16);
  border-radius: 9999px;
  background:
    linear-gradient(135deg, rgba(166, 76, 255, .2), rgba(20, 184, 166, .12)),
    rgba(17, 11, 29, .9);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.error-copy p {
  margin-inline: auto;
}

.error-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .75rem;
}

.search-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, .85fr);
  gap: 1.5rem;
  align-items: start;
}

.search-main,
.search-side {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.search-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: 1rem;
}

.search-section-head h2 {
  margin: 0;
}

.search-side-card {
  align-items: flex-start;
}

.search-side-card strong {
  display: block;
}

.search-side-copy {
  margin: .2rem 0 0;
  line-height: 1.5;
}

.list-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.list-card-copy {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  min-height: 6rem;
}

.list-card-actions {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.list-card h2,
.comments-panel h2 {
  margin: 0 0 .35rem;
}

.list-card h2 a {
  text-decoration: none;
  color: #fff;
}

.feed-tabs {
  display: inline-flex;
  gap: .35rem;
  background: rgba(11, 8, 18, .88);
  padding: .25rem;
  border-radius: .8rem;
}

.feed-tabs a.active {
  background: linear-gradient(135deg, rgba(174, 85, 255, .86), rgba(111, 61, 244, .74));
  border-color: transparent;
}

.post-card-real {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  background:
    radial-gradient(circle at top right, rgba(150, 79, 255, .08), transparent 24%),
    radial-gradient(circle at bottom left, rgba(211, 93, 255, .04), transparent 22%),
    linear-gradient(180deg, rgba(39, 23, 64, .86), rgba(18, 11, 30, .92)),
    rgba(11, 8, 18, .97);
  border: 1px solid rgba(172, 126, 255, .08);
  border-radius: .95rem;
  overflow: hidden;
  transition: all .25s ease;
}

.post-card-real.no-vote-rail {
  grid-template-columns: minmax(0, 1fr);
}

.post-card-real:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

.clickable-post-card {
  cursor: pointer;
}

.vote-rail {
  background: rgba(7, 5, 12, .9);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: 1rem 0;
}

.vote-arrow {
  color: var(--navy-300);
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 9999px;
}

.vote-arrow:hover {
  background: rgba(174, 85, 255, 0.1);
  color: #c796ff;
}

.vote-arrow.down:hover {
  color: var(--accent-orange);
}

.vote-arrow.active-up {
  color: var(--accent-blue);
}

.vote-arrow.active-down {
  color: var(--accent-orange);
}

.post-body {
  padding: 1.2rem 1.25rem;
}

.compact-post .vote-rail {
  justify-content: center;
}

.detail-card .post-body {
  padding: 1.4rem 1.5rem;
}

.detail-title {
  margin: .2rem 0 1rem;
  font-size: 1.8rem;
  line-height: 1.25;
}

.detail-content {
  color: var(--navy-300);
  line-height: 1.7;
}

.detail-actions {
  margin-top: 1.25rem;
}

.content-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.post-meta {
  flex-wrap: wrap;
  gap: .55rem;
  color: var(--navy-400);
  font-size: .82rem;
  margin-bottom: .7rem;
}

.post-meta.with-avatar,
.comment-meta.with-avatar {
  display: flex;
  align-items: center;
}

.author-avatar {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 9999px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-blue));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  flex: 0 0 auto;
}

.author-avatar.tiny {
  width: 1.7rem;
  height: 1.7rem;
}

.community-pill {
  display: inline-flex;
  align-items: center;
  padding: .2rem .55rem;
  border-radius: 9999px;
  background: rgba(79, 70, 229, .2);
  color: #c7d2fe;
  text-decoration: none;
}

.color-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.community-style-preview {
  padding: 1rem;
  border: 1px solid rgba(51, 78, 104, .6);
  border-radius: .85rem;
  background: rgba(16, 42, 67, .45);
}

input[type="color"] {
  min-height: 3rem;
  padding: .35rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: .2rem .55rem;
  border-radius: 9999px;
  background: rgba(249, 115, 22, .18);
  color: #fdba74;
}

.post-card-real h3 a,
.post-actions a,
.trending-item,
.community-row {
  color: #fff;
}

.post-card-real h3 a {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-decoration: none;
}

.community-identifier {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.post-card-real .post-body,
.post-card-real h3 {
  min-width: 0;
  max-width: 100%;
}

.post-excerpt {
  color: var(--navy-300);
  line-height: 1.6;
  margin: .8rem 0 1rem;
}

.post-copy {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.post-copy a {
  color: var(--accent-blue);
}

.markdown-body {
  color: var(--navy-200);
  line-height: 1.7;
}

.markdown-body > :first-child {
  margin-top: 0;
}

.markdown-body > :last-child {
  margin-bottom: 0;
}

.markdown-body p,
.markdown-body ul,
.markdown-body ol,
.markdown-body blockquote,
.markdown-body pre {
  margin: 0 0 1rem;
}

.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
  margin: 1.5rem 0 .7rem;
  color: #fff;
  line-height: 1.3;
}

.markdown-body h2 {
  font-size: 1.35rem;
}

.markdown-body h3 {
  font-size: 1.15rem;
}

.markdown-body h4 {
  font-size: 1rem;
}

.markdown-body ul,
.markdown-body ol {
  padding-left: 1.5rem;
}

.markdown-body li + li {
  margin-top: .35rem;
}

.markdown-body blockquote {
  padding: .15rem 0 .15rem 1rem;
  border-left: 3px solid var(--accent-purple);
  color: var(--navy-300);
}

.markdown-body code {
  padding: .15rem .35rem;
  border-radius: .35rem;
  background: rgba(8, 5, 14, .72);
  color: #e8d9ff;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .9em;
}

.markdown-body pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 1rem;
  border: 1px solid rgba(172, 126, 255, .14);
  border-radius: .75rem;
  background: rgba(8, 5, 14, .78);
}

.markdown-body pre code {
  padding: 0;
  background: transparent;
}

.markdown-body a {
  color: var(--accent-blue);
  overflow-wrap: anywhere;
}

.post-video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 0 1rem;
  overflow: hidden;
  border: 1px solid rgba(51, 78, 104, .6);
  border-radius: .85rem;
  background: #000;
}

.post-video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.post-media {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 1rem;
  border-radius: .85rem;
  overflow: hidden;
  border: 1px solid rgba(51, 78, 104, .6);
  background: rgba(16, 42, 67, .35);
}

.post-media img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 420px;
  object-fit: contain;
}

.detail-media img {
  max-height: min(70vh, 720px);
}

.post-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .45rem;
  margin: 0 0 1rem;
  overflow: hidden;
  border-radius: .85rem;
}

.post-gallery.image-count-1 { grid-template-columns: 1fr; }

.post-gallery-item {
  display: block;
  min-height: 180px;
  max-height: 300px;
  overflow: hidden;
  border: 1px solid rgba(51, 78, 104, .6);
  background: rgba(16, 42, 67, .35);
}

.post-gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 180px;
  max-height: 300px;
  object-fit: cover;
  transition: transform .2s ease;
}

.post-gallery-item:hover img { transform: scale(1.02); }

.post-gallery.image-count-1 .post-gallery-item,
.post-gallery.image-count-1 img { max-height: 520px; }

.post-gallery.image-count-1 img { object-fit: contain; }

.detail-gallery .post-gallery-item,
.detail-gallery .post-gallery-item img { max-height: min(55vh, 560px); }

.image-lightbox {
  width: min(96vw, 90rem);
  max-width: none;
  height: 94dvh;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  overflow: visible;
}

.image-lightbox::backdrop {
  background: rgba(3, 1, 9, .92);
  backdrop-filter: blur(8px);
}

.image-lightbox-shell {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.image-lightbox img {
  display: block;
  max-width: calc(100% - 7rem);
  max-height: calc(100% - 4rem);
  object-fit: contain;
  border-radius: .5rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .55);
}

.image-lightbox-close,
.image-lightbox-nav {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  background: rgba(15, 8, 27, .76);
  color: #fff;
  font: inherit;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.image-lightbox-close:hover,
.image-lightbox-nav:hover {
  border-color: rgba(190, 139, 255, .8);
  background: rgba(87, 37, 139, .9);
}

.image-lightbox-close:focus-visible,
.image-lightbox-nav:focus-visible {
  outline: 3px solid rgba(190, 139, 255, .72);
  outline-offset: 3px;
}

.image-lightbox-close {
  top: 0;
  right: 0;
}

.image-lightbox-previous { left: .25rem; }
.image-lightbox-next { right: .25rem; }

.image-lightbox-counter {
  position: absolute;
  bottom: 0;
  left: 50%;
  margin: 0;
  padding: .4rem .75rem;
  border-radius: 999px;
  background: rgba(15, 8, 27, .76);
  color: rgba(255, 255, 255, .84);
  font-size: .85rem;
  transform: translateX(-50%);
}

.image-lightbox-nav[hidden],
.image-lightbox-counter:empty {
  display: none;
}

@media (max-width: 560px) {
  .image-lightbox {
    width: 100vw;
    height: 100dvh;
  }

  .image-lightbox img {
    max-width: 100%;
    max-height: calc(100% - 5rem);
    border-radius: 0;
  }

  .image-lightbox-close {
    top: .75rem;
    right: .75rem;
  }

  .image-lightbox-nav {
    top: auto;
    bottom: .75rem;
  }

  .image-lightbox-previous { left: .75rem; }
  .image-lightbox-next { right: .75rem; }
  .image-lightbox-counter { bottom: 1.15rem; }
}

.post-actions a,
.share-post-button {
  text-decoration: none;
  color: var(--navy-300);
}

.post-actions a:hover,
.share-post-button:hover {
  color: #fff;
}

.reaction-row {
  align-items: center;
}

.reaction-score {
  color: #fff;
  font-weight: 700;
  padding: 0 .2rem;
}

.inline-action-form {
  margin: 0;
  display: inline-flex;
  align-items: center;
}

.reaction-button {
  color: var(--navy-300);
  padding: 0;
}

.share-post-button {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.share-post-button.is-copied {
  color: #fff;
}

.reaction-button:hover {
  color: #fff;
}

.reaction-button.is-active {
  color: #fff;
}

.reaction-button.is-active i {
  color: #fff;
}

.stack-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field-block {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

.field-block small {
  color: var(--navy-400);
}

.markdown-editor {
  overflow: hidden;
  border: 1px solid var(--navy-700);
  border-radius: .85rem;
  background: rgba(11, 8, 18, .5);
}

.markdown-toolbar {
  display: flex;
  align-items: center;
  gap: .3rem;
  padding: .5rem;
  border-bottom: 1px solid rgba(172, 126, 255, .12);
  background: rgba(25, 15, 42, .88);
}

.markdown-toolbar button {
  flex: 0 0 auto;
  width: 2.35rem;
  height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: .55rem;
  background: transparent;
  color: var(--navy-200);
  cursor: pointer;
}

.markdown-toolbar button:hover,
.markdown-toolbar button:focus-visible {
  border-color: rgba(172, 126, 255, .2);
  background: rgba(129, 76, 226, .18);
  color: #fff;
  outline: none;
}

.markdown-toolbar-divider {
  width: 1px;
  height: 1.6rem;
  margin: 0 .15rem;
  background: rgba(172, 126, 255, .16);
}

.markdown-editor textarea {
  min-height: 18rem;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: rgba(10, 7, 17, .42);
  line-height: 1.65;
}

.markdown-editor textarea:focus {
  border-color: transparent;
  box-shadow: inset 0 0 0 1px rgba(176, 90, 255, .42);
}

.markdown-preview {
  min-height: 18rem;
  padding: 1rem;
  background: rgba(10, 7, 17, .42);
}

.markdown-preview-error {
  margin: 0;
  color: #fecaca;
}

.markdown-editor-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .6rem .75rem;
  border-top: 1px solid rgba(172, 126, 255, .12);
  background: rgba(25, 15, 42, .72);
}

.markdown-preview-toggle {
  border: 0;
  background: transparent;
  color: var(--accent-blue);
  font-weight: 700;
  cursor: pointer;
}

.markdown-preview-toggle:disabled {
  opacity: .55;
  cursor: wait;
}

.community-avatar-preview {
  margin-top: .75rem;
  width: 6rem;
  height: 6rem;
  border-radius: 9999px;
  overflow: hidden;
  border: 1px solid rgba(51, 78, 104, .6);
}

.community-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-image-preview {
  margin-top: .75rem;
  max-width: 24rem;
  border-radius: .85rem;
  overflow: hidden;
  border: 1px solid rgba(51, 78, 104, .6);
}

.post-image-preview img {
  display: block;
  width: 100%;
  height: auto;
}

.post-image-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: .75rem;
}

.post-image-preview-grid:empty { display: none; }

.post-image-preview-grid .post-image-preview {
  margin-top: .25rem;
  max-width: none;
}

.post-image-preview-grid .post-image-preview img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.existing-images-fieldset {
  margin: .5rem 0 0;
  padding: .85rem;
  border: 1px solid rgba(51, 78, 104, .6);
  border-radius: .85rem;
}

.removable-image span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .55rem;
}

@media (max-width: 560px) {
  .post-gallery-item,
  .post-gallery-item img {
    min-height: 130px;
    max-height: 220px;
  }
}

.form-actions {
  display: flex;
  gap: .75rem;
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.25rem;
}

.comment-card {
  background: rgba(36, 59, 83, .35);
  border: 1px solid rgba(51, 78, 104, .6);
  border-radius: .85rem;
  padding: 1rem;
}

.comment-depth-1,
.comment-depth-2,
.comment-depth-3,
.comment-depth-4 {
  position: relative;
}

.comment-depth-1 { margin-left: 2rem; }
.comment-depth-2 { margin-left: 4rem; }
.comment-depth-3 { margin-left: 6rem; }
.comment-depth-4 { margin-left: 8rem; }

.comment-depth-1::before,
.comment-depth-2::before,
.comment-depth-3::before,
.comment-depth-4::before {
  content: "";
  position: absolute;
  left: -1rem;
  top: 1rem;
  bottom: 1rem;
  width: 2px;
  background: rgba(79, 70, 229, .35);
  border-radius: 999px;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  color: var(--navy-400);
  margin-bottom: .5rem;
}

.comment-meta a {
  color: var(--accent-blue);
  text-decoration: none;
}

.comment-meta-text {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}

.comment-author-line {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.comment-author-line .millowi-staff-flair {
  flex: 0 0 auto;
}

.comment-body {
  color: var(--navy-300);
  line-height: 1.6;
}

a.mention {
  display: inline;
  color: var(--accent-blue);
  font-weight: 700;
  text-decoration: none;
  background: rgba(99, 102, 241, .14);
  border-radius: .3rem;
  padding: .05rem .18rem;
}

a.mention:hover,
a.mention:focus-visible {
  color: var(--accent-blue);
  background: rgba(99, 102, 241, .24);
  text-decoration: underline;
}

.comment-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-top: .9rem;
  gap: .9rem;
}

.comment-reply-button {
  color: var(--navy-300);
  padding: 0;
}

.comment-reply-button:hover {
  color: #fff;
}

.reply-form {
  margin-top: 1rem;
  padding: .9rem;
  border-radius: .85rem;
  border: 1px solid rgba(51, 78, 104, .5);
  background: rgba(16, 42, 67, .45);
}

.reply-form[hidden] {
  display: none !important;
}

.inline-report {
  margin-top: .7rem;
}

.text-link-button {
  padding: 0;
  background: none;
  color: var(--accent-blue);
}

.action-menu {
  position: relative;
}

.action-toggle {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  color: var(--navy-300);
  cursor: pointer;
}

.action-toggle::-webkit-details-marker {
  display: none;
}

.action-toggle:hover {
  background: var(--navy-800);
  color: #fff;
}

.action-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + .35rem);
  min-width: 11rem;
  background: var(--navy-900);
  border: 1px solid var(--navy-700);
  border-radius: .85rem;
  box-shadow: 0 18px 30px rgba(0, 0, 0, .35);
  padding: .4rem;
  z-index: 20;
}

.action-dropdown a,
.action-dropdown button,
.action-button {
  display: block;
  width: 100%;
  text-align: left;
  color: #fff;
  text-decoration: none;
  padding: .7rem .85rem;
  border-radius: .6rem;
}

.action-dropdown a:hover,
.action-dropdown button:hover,
.action-button:hover {
  background: var(--navy-800);
}

.report-modal {
  width: min(100%, 32rem);
  border: 1px solid var(--navy-700);
  border-radius: 1rem;
  background: var(--navy-900);
  color: #fff;
  padding: 1.25rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .4);
}

.report-modal::backdrop {
  background: rgba(10, 25, 41, .7);
}

.modal-shell {
  margin: 0;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.modal-head h2 {
  margin: 0;
}

.modal-close {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  color: var(--navy-300);
}

.modal-close:hover {
  background: var(--navy-800);
  color: #fff;
}

.auth-form p {
  margin: 0;
}

.error-copy {
  color: var(--accent-orange);
  margin: 0;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--navy-700);
  background: var(--navy-800);
  color: #fff;
  border-radius: .85rem;
  padding: .85rem 1rem;
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .16);
}

.online-row {
  gap: .75rem;
  margin-bottom: 1rem;
}

.online-avatar {
  width: 2rem;
  height: 2rem;
  display: inline-block;
}

.online-avatar.green { background: linear-gradient(135deg, #2ec27e, var(--accent-teal)); }
.online-avatar.purple { background: linear-gradient(135deg, var(--primary-600), var(--accent-purple)); }
.online-avatar.blue { background: linear-gradient(135deg, var(--accent-blue), var(--accent-teal)); }
.online-avatar.orange { background: linear-gradient(135deg, var(--accent-orange), #fbbf24); }
.online-avatar.pink { background: linear-gradient(135deg, #ec4899, #a855f7); }

.rules-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--navy-300);
}

.rules-list li + li {
  margin-top: .75rem;
}

.trending-item {
  display: block;
}

.promo-panel {
  text-align: center;
  background: linear-gradient(180deg, rgba(36, 59, 83, .95), rgba(16, 42, 67, 1));
}

.profile-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
}

.profile-hero-main {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.profile-hero-avatar {
  width: 5rem;
  height: 5rem;
  border-radius: 9999px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-blue));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  flex: 0 0 auto;
}

.profile-hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-social-stats {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.social-stat {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .45rem .75rem;
  border-radius: 9999px;
  background: rgba(36, 59, 83, .55);
  color: var(--navy-300);
}

.social-stat strong {
  color: #fff;
}

.profile-stat-link {
  color: inherit;
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.profile-stat-link:hover,
.profile-stat-link:focus-visible {
  border-color: rgba(147, 197, 253, .7);
  background: rgba(79, 70, 229, .18);
  transform: translateY(-1px);
}

/* ===== Profile experience v2 ===== */
.profile-page-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 280px;
  gap: 1.5rem;
  max-width: 1640px;
}

.profile-page-shell > .page-main {
  grid-column: 2;
  min-width: 0;
}

.profile-hero-v2 {
  position: relative;
  display: block;
  padding: 0;
  overflow: hidden;
  border-color: rgba(180, 112, 255, .24);
  background:
    linear-gradient(145deg, rgba(31, 16, 49, .97), rgba(12, 7, 23, .98));
  box-shadow:
    0 1.6rem 4rem rgba(3, 1, 8, .28),
    inset 0 1px rgba(255, 255, 255, .045);
}

.profile-cover {
  position: relative;
  height: 8.75rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 10%, rgba(240, 170, 255, .28), transparent 0 22%),
    radial-gradient(circle at 22% 110%, rgba(128, 78, 255, .35), transparent 0 35%),
    linear-gradient(120deg, #35105c, #54208b 48%, #281149);
}

.profile-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .48;
  background-image:
    linear-gradient(115deg, transparent 0 43%, rgba(255, 255, 255, .08) 43.25%, transparent 43.5%),
    linear-gradient(25deg, transparent 0 63%, rgba(255, 255, 255, .06) 63.25%, transparent 63.5%);
  background-size: 13rem 9rem, 18rem 12rem;
}

.profile-cover::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4rem;
  background: linear-gradient(transparent, rgba(18, 8, 30, .72));
}

.profile-cover-orbit {
  position: absolute;
  border: 1px solid rgba(221, 184, 255, .18);
  border-radius: 50%;
  transform: rotate(-9deg);
}

.profile-cover-orbit.orbit-one {
  width: 34rem;
  height: 9rem;
  right: -5rem;
  top: 1.25rem;
}

.profile-cover-orbit.orbit-two {
  width: 22rem;
  height: 5rem;
  right: 4rem;
  top: 3rem;
}

.profile-cover-star {
  position: absolute;
  width: .28rem;
  height: .28rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 .8rem rgba(255, 255, 255, .85);
}

.profile-cover-star.star-one { top: 1.65rem; left: 58%; }
.profile-cover-star.star-two { top: 4.2rem; left: 77%; width: .18rem; height: .18rem; }
.profile-cover-star.star-three { top: 2.6rem; left: 89%; width: .22rem; height: .22rem; }

.profile-identity {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 3.9rem;
  padding: 0 1.5rem;
}

.profile-hero-avatar-v2 {
  width: 7.25rem;
  height: 7.25rem;
  margin-top: -3.85rem;
  border: .32rem solid #170b27;
  background: linear-gradient(135deg, #c55cff, #7157ff);
  box-shadow:
    0 0 0 2px rgba(193, 113, 255, .66),
    0 .8rem 2rem rgba(5, 2, 12, .48),
    0 0 2.25rem rgba(156, 77, 255, .24);
}

.profile-actions-v2 {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding-top: .9rem;
}

.profile-actions-v2 form {
  margin: 0;
}

.profile-content-v2 {
  padding: .75rem 1.5rem 1.4rem;
}

.profile-name-row-v2 {
  gap: .65rem;
}

.profile-name-row-v2 h1 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.25rem);
  letter-spacing: -.035em;
}

.profile-account-badges {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: .65rem;
}

.profile-type-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .36rem .62rem;
  border: 1px solid rgba(184, 137, 255, .2);
  border-radius: 999px;
  background: rgba(133, 80, 207, .12);
  color: #cdbfe0;
  font-size: .78rem;
  font-weight: 600;
}

.profile-type-badge i {
  color: #b987ff;
}

.profile-bio-v2 {
  max-width: 43rem;
  margin: 1rem 0 .75rem;
  color: #eee8f7;
  line-height: 1.6;
}

.profile-meta-v2 {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--navy-300);
  font-size: .88rem;
}

.profile-meta-v2 a,
.profile-meta-v2 span {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
}

.profile-meta-v2 a {
  color: #b98bff;
  text-decoration: none;
}

.profile-meta-v2 a:hover {
  color: #fff;
}

.profile-meta-v2 i {
  color: #9d6de3;
}

.profile-social-stats-v2 {
  gap: 0;
  max-width: 30rem;
  margin-top: 1.2rem;
  padding: .5rem;
  border: 1px solid rgba(170, 116, 235, .16);
  border-radius: 1rem;
  background: rgba(5, 2, 12, .25);
}

.profile-stat-v2 {
  display: flex;
  flex: 1 1 7rem;
  flex-direction: column;
  align-items: center;
  gap: .12rem;
  padding: .5rem 1rem;
  border-radius: .7rem;
  color: var(--navy-300);
  text-decoration: none;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.profile-stat-v2 + .profile-stat-v2 {
  border-left: 1px solid rgba(170, 116, 235, .15);
}

.profile-stat-v2 strong {
  color: #fff;
  font-size: 1.15rem;
}

.profile-stat-v2 span {
  font-size: .78rem;
}

.profile-stat-static {
  cursor: default;
}

.profile-stat-v2:hover,
.profile-stat-v2:focus-visible {
  color: #fff;
  background: rgba(157, 77, 255, .14);
  transform: translateY(-1px);
}

.profile-completion-nudge {
  display: flex;
  align-items: center;
  gap: .8rem;
  max-width: 37rem;
  margin-top: 1rem;
  padding: .75rem .85rem;
  border: 1px solid rgba(187, 123, 255, .18);
  border-radius: .85rem;
  background: linear-gradient(90deg, rgba(157, 77, 255, .12), rgba(157, 77, 255, .035));
  color: #fff;
  text-decoration: none;
}

.profile-completion-nudge > span:nth-child(2) {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: .15rem;
}

.profile-completion-nudge small {
  color: var(--navy-300);
  line-height: 1.35;
}

.profile-completion-icon {
  display: grid;
  width: 2.15rem;
  height: 2.15rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: .65rem;
  background: rgba(157, 77, 255, .2);
  color: #c999ff;
}

.profile-completion-nudge:hover {
  border-color: rgba(197, 138, 255, .38);
  background: linear-gradient(90deg, rgba(157, 77, 255, .18), rgba(157, 77, 255, .06));
}

.profile-nav-v2 {
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: .55rem 1rem 0;
  overflow-x: auto;
  border-top: 1px solid rgba(168, 112, 225, .12);
  background: rgba(5, 2, 12, .18);
  scrollbar-width: none;
}

.profile-nav-v2::-webkit-scrollbar {
  display: none;
}

.profile-nav-v2 a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  flex: 0 0 auto;
  padding: .7rem .85rem .85rem;
  color: var(--navy-300);
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
}

.profile-nav-v2 a span {
  display: inline-grid;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 .3rem;
  place-items: center;
  border: 1px solid rgba(174, 122, 236, .16);
  border-radius: 999px;
  background: rgba(134, 77, 199, .1);
  color: #a99abd;
  font-size: .68rem;
  line-height: 1;
}

.profile-nav-v2 a::after {
  content: "";
  position: absolute;
  right: .7rem;
  bottom: 0;
  left: .7rem;
  height: 2px;
  border-radius: 99px;
  background: transparent;
}

.profile-nav-v2 a:hover,
.profile-nav-v2 a:focus-visible,
.profile-nav-v2 a.active {
  color: #fff;
}

.profile-nav-v2 a:hover span,
.profile-nav-v2 a:focus-visible span,
.profile-nav-v2 a.active span {
  border-color: rgba(195, 135, 255, .28);
  background: rgba(157, 77, 255, .18);
  color: #e5d7f7;
}

.profile-nav-v2 a.active::after {
  background: linear-gradient(90deg, #a84eff, #d07cff);
  box-shadow: 0 0 .75rem rgba(184, 91, 255, .7);
}

.profile-activity-v2 {
  scroll-margin-top: 1rem;
}

.profile-feed-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding: .45rem .15rem .1rem;
}

.profile-feed-heading h2 {
  margin: .15rem 0 0;
  font-size: 1.35rem;
}

.profile-feed-kicker {
  color: #a999c1;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.profile-feed-count {
  padding: .35rem .6rem;
  border: 1px solid rgba(168, 112, 225, .16);
  border-radius: 999px;
  color: var(--navy-300);
  font-size: .76rem;
}

@media (max-width: 700px) {
  .profile-cover {
    height: 7rem;
  }

  .profile-identity {
    align-items: flex-start;
    padding: 0 1rem;
  }

  .profile-hero-avatar-v2 {
    width: 6rem;
    height: 6rem;
    margin-top: -3rem;
  }

  .profile-actions-v2 {
    gap: .4rem;
    padding-top: .7rem;
  }

  .profile-actions-v2 a,
  .profile-actions-v2 button {
    padding-inline: .7rem;
    font-size: .76rem;
  }

  .profile-content-v2 {
    padding: .8rem 1rem 1.15rem;
  }

  .profile-social-stats-v2 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    max-width: none;
    padding: .35rem;
  }

  .profile-stat-v2 {
    min-width: 0;
    padding: .65rem .2rem;
    border-radius: .65rem;
  }

  .profile-stat-v2 + .profile-stat-v2 {
    border-left: 1px solid rgba(170, 116, 235, .15);
  }

  .profile-stat-v2 strong {
    font-size: 1.1rem;
  }

  .profile-stat-v2 span {
    font-size: .7rem;
    white-space: nowrap;
  }

  .profile-completion-nudge > .fa-chevron-right {
    display: none;
  }

  .profile-nav-v2 {
    padding-inline: .35rem;
  }
}

@media (max-width: 1100px) {
  .profile-page-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile-page-shell > .page-main {
    grid-column: 1;
  }
}

.connections-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.connections-head h1,
.connections-head p {
  margin: 0;
}

.connections-head p {
  margin-top: .4rem;
}

.connections-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

.connections-tabs a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .8rem 1rem;
  border: 1px solid var(--navy-700);
  border-radius: .8rem;
  color: var(--navy-300);
  text-decoration: none;
}

.connections-tabs a.active {
  border-color: var(--primary-500);
  background: rgba(79, 70, 229, .18);
  color: #fff;
}

.connections-tabs span {
  color: var(--navy-400);
}

.connections-list {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.connection-user {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .85rem;
  padding: .85rem;
  border: 1px solid rgba(51, 78, 104, .55);
  border-radius: .85rem;
  background: rgba(16, 42, 67, .32);
  color: #fff;
  text-decoration: none;
}

.connection-user:hover {
  background: var(--navy-800);
}

.connection-avatar {
  width: 3rem;
  height: 3rem;
  overflow: hidden;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-blue));
  display: grid;
  place-items: center;
  font-weight: 700;
}

.connection-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.connection-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}

.connection-copy small {
  overflow: hidden;
  color: var(--navy-300);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pagination-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--navy-300);
}

@media (max-width: 700px) {
  .connections-tabs {
    grid-template-columns: 1fr;
  }
}

.repost-activity-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.repost-activity-header i {
  color: #9b5cff;
}

.repost-activity-header a {
  color: var(--text-primary);
  text-decoration: none;
}

.repost-activity-header a:hover {
  color: #b889ff;
}

.repost-activity-header .repost-actor-avatar,
.repost-activity-header .repost-actor-avatar:hover {
  color: #fff;
}

.post-share-dialog {
  width: min(43rem, calc(100% - 2rem));
  max-width: none;
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 0;
  border-radius: 1.4rem;
  background: transparent;
  color: var(--text-primary);
  overflow: visible;
}

.post-share-dialog::backdrop {
  background: rgba(4, 1, 12, 0.8);
  backdrop-filter: blur(8px);
}

.post-share-dialog-shell {
  padding: 1.25rem;
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  border: 1px solid rgba(177, 116, 255, 0.34);
  border-radius: inherit;
  background:
    radial-gradient(circle at 90% 8%, rgba(183, 49, 255, 0.16), transparent 34%),
    linear-gradient(150deg, rgba(34, 16, 62, 0.99), rgba(12, 6, 25, 0.99));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.58);
}

.post-share-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.post-share-dialog-kicker {
  display: block;
  margin-bottom: 0.2rem;
  color: #bd8bff;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.post-share-dialog-head h2 {
  margin: 0;
  font-size: clamp(1.3rem, 4vw, 1.75rem);
}

.post-share-dialog-close {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(177, 116, 255, 0.24);
  border-radius: 999px;
  background: rgba(9, 4, 21, 0.6);
  color: var(--text-muted);
  cursor: pointer;
}

.post-share-dialog-close:hover {
  color: #fff;
  border-color: rgba(177, 116, 255, 0.55);
}

.post-share-format-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-bottom: 0.85rem;
}

.post-share-format-picker button {
  min-width: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 0.55rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(177, 116, 255, 0.2);
  border-radius: 0.85rem;
  background: rgba(9, 4, 21, 0.48);
  color: var(--text-muted);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.post-share-format-picker button i {
  grid-row: 1 / span 2;
  color: #b889ff;
}

.post-share-format-picker button span {
  color: #fff;
  font-weight: 800;
}

.post-share-format-picker button small {
  font-size: 0.7rem;
}

.post-share-format-picker button[aria-pressed="true"] {
  border-color: rgba(184, 137, 255, 0.72);
  background: linear-gradient(
    135deg,
    rgba(126, 53, 225, 0.38),
    rgba(77, 30, 130, 0.28)
  );
  box-shadow: inset 0 0 0 1px rgba(184, 137, 255, 0.15);
}

.post-share-preview-shell {
  position: relative;
  aspect-ratio: 1200 / 630;
  overflow: hidden;
  border: 1px solid rgba(177, 116, 255, 0.3);
  border-radius: 1rem;
  background: #0c0619;
}

.post-share-preview-shell[data-share-preview-format="story"] {
  width: min(14rem, 45vw);
  aspect-ratio: 9 / 16;
  margin-inline: auto;
}

.post-share-preview {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0;
  transition: opacity 180ms ease;
}

.post-share-preview.is-ready {
  opacity: 1;
}

.post-share-preview-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.65rem;
  color: var(--text-muted);
  background:
    radial-gradient(circle at 65% 40%, rgba(137, 55, 255, 0.23), transparent 38%),
    #0c0619;
}

.post-share-preview-loading[hidden] {
  display: none;
}

.post-share-selected-title {
  margin: 0.9rem 0 0;
  color: #fff;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-share-status {
  min-height: 1.25rem;
  margin: 0.25rem 0 0.85rem;
  color: var(--text-muted);
  font-size: 0.83rem;
}

.post-share-status[data-tone="success"] {
  color: #9ee7c4;
}

.post-share-status[data-tone="error"] {
  color: #ffb4c3;
}

.post-share-primary-actions,
.post-share-secondary-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.post-share-primary-actions > * {
  min-height: 3rem;
  justify-content: center;
  gap: 0.5rem;
}

.post-share-card-action:disabled {
  opacity: 0.55;
  cursor: wait;
}

.post-share-secondary-actions {
  margin-top: 0.7rem;
}

.post-share-secondary-actions button,
.post-share-secondary-actions a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(177, 116, 255, 0.2);
  border-radius: 0.8rem;
  background: rgba(9, 4, 21, 0.48);
  color: var(--text-muted);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.post-share-secondary-actions button:hover,
.post-share-secondary-actions a:hover {
  color: #fff;
  border-color: rgba(177, 116, 255, 0.48);
  background: rgba(91, 39, 151, 0.22);
}

.repost-contained-post {
  padding: 1rem;
  border: 1px solid rgba(168, 123, 255, 0.24);
  border-radius: 1rem;
  background: rgba(9, 5, 22, 0.28);
  overflow: hidden;
}

.repost-contained-post .post-media {
  overflow: hidden;
  border-radius: 0.8rem;
}

@media (max-width: 700px) {
  .repost-contained-post {
    padding: 0.75rem;
  }

  .repost-activity-header {
    align-items: center;
    flex-wrap: wrap;
  }

  .post-share-dialog {
    width: 100%;
    max-height: calc(100dvh - 0.75rem);
    margin: auto 0 0;
    border-radius: 1.35rem 1.35rem 0 0;
  }

  .post-share-dialog-shell {
    padding: 1rem;
    border-bottom: 0;
    max-height: calc(100dvh - 0.75rem);
    overflow-y: auto;
  }

  .post-share-primary-actions {
    grid-template-columns: 1fr;
  }
}

.promo-icon {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  margin: 0 auto .9rem;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-600), var(--accent-purple));
}

@media (max-width: 1100px) {
  .home-main {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-primary-sidebar {
    display: none;
  }

  .page-with-rail {
    grid-template-columns: 1fr;
  }

  .community-page-shell {
    grid-template-columns: minmax(0, 1fr);
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .community-page-shell > .page-main,
  .community-page-shell > .community-detail-rail {
    grid-column: 1;
  }

  .community-page-shell > .page-main,
  .community-page-shell > .community-detail-rail {
    display: contents;
  }

  .community-page-shell > .page-main > .page-breadcrumbs {
    order: 0;
  }

  .community-page-shell > .page-main > .community-hero-panel {
    order: 1;
  }

  .community-page-shell > .community-detail-rail > .community-report-panel {
    order: 2;
  }

  .community-page-shell > .page-main > .feed-list {
    order: 3;
  }

  .community-page-shell > .community-detail-rail > .panel:not(.community-report-panel) {
    order: 4;
  }

  .community-detail-rail {
    margin-top: 0;
  }

  .ads-detail-rail {
    margin-top: 0;
  }

  .moderation-detail-rail,
  .messaging-detail-rail {
    margin-top: 0;
  }

  .search-layout {
    grid-template-columns: 1fr;
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }

  .premium-hero,
  .premium-grid,
  .premium-columns {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    flex-direction: column;
    align-items: flex-start;
  }

  .community-hero-panel {
    align-items: stretch;
  }

  .community-hero-actions {
    align-items: flex-start;
  }

  .profile-hero {
    flex-direction: column;
  }

  .site-header .home-shell {
    flex-wrap: wrap;
  }

  .site-search {
    order: 3;
    width: 100%;
  }

  .color-field-grid {
    grid-template-columns: 1fr;
  }

  .listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .listing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .community-hero-panel {
    padding: 1.15rem;
  }

  .community-hero-main {
    display: grid;
    grid-template-columns: 3.5rem minmax(0, 1fr);
    align-items: flex-start;
    gap: .85rem;
  }

  .community-hero-avatar {
    width: 3.5rem;
    height: 3.5rem;
    font-size: 1.35rem;
  }

  .community-hero-main .hero-copy h1 {
    margin-bottom: .3rem;
    font-size: clamp(1.35rem, 8vw, 1.7rem);
    line-height: 1.15;
    overflow-wrap: anywhere;
  }

  .community-hero-main .community-identifier,
  .community-hero-main .hero-copy p,
  .community-page-shell .page-breadcrumbs > :last-child {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .community-hero-main .hero-copy p {
    margin-top: .3rem;
    font-size: .95rem;
    line-height: 1.5;
  }

  .community-hero-actions,
  .community-hero-member-actions,
  .community-hero-management-actions {
    width: 100%;
  }

  .community-hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .community-hero-member-actions,
  .community-hero-management-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .community-hero-member-actions > a,
  .community-hero-member-actions > form,
  .community-hero-member-actions > form button,
  .community-hero-management-actions > a,
  .community-owner-badge {
    width: 100%;
  }

  .community-hero-member-actions > a,
  .community-hero-member-actions > form button,
  .community-hero-management-actions > a,
  .community-owner-badge {
    justify-content: center;
    text-align: center;
  }

  .site-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .post-card-real {
    grid-template-columns: 1fr;
  }

  .vote-rail {
    flex-direction: row;
    justify-content: center;
    padding: .75rem;
  }

  .listing-grid {
    grid-template-columns: 1fr;
  }

  .legal-dock-shell,
  .legal-dock-copy {
    width: 100%;
    margin-left: 0;
    align-items: flex-start;
    text-align: left;
  }

  .legal-dock-links {
    justify-content: flex-start;
  }
}

.profile-image-editor-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(51, 78, 104, .6);
  border-radius: .95rem;
  background: rgba(16, 42, 67, .4);
}

.profile-image-editor-preview {
  width: 6rem;
  height: 6rem;
  border-radius: 9999px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-blue));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  flex: 0 0 auto;
}

.profile-image-editor-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-image-editor-preview img.is-adjustable {
  cursor: grab;
  touch-action: none;
  user-select: none;
  will-change: transform, object-position;
}

.profile-image-editor-preview img.is-dragging {
  cursor: grabbing;
}

.avatar-crop-controls {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding-top: .25rem;
}

.avatar-crop-controls[hidden] {
  display: none;
}

.avatar-crop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
}

.avatar-crop-grid label {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  color: var(--navy-300);
  font-size: .78rem;
}

.avatar-crop-grid input[type="range"] {
  width: 100%;
  padding: 0;
}

.avatar-crop-reset {
  width: fit-content;
}

.profile-image-editor-copy {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  min-width: 0;
}

.profile-image-editor-copy strong,
.profile-image-editor-copy p {
  margin: 0;
}

.profile-image-editor-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.upload-button {
  cursor: pointer;
}

.profile-image-editor input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.avatar-remove-toggle {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--navy-300);
}

.avatar-remove-toggle input[type="checkbox"] {
  width: auto;
  margin: 0;
}

@media (max-width: 1100px) {
  .profile-image-editor-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 700px) {
  .avatar-crop-grid {
    grid-template-columns: 1fr;
  }
}

.profile-account-badges {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
  margin: .8rem 0 0;
}

.ads-dashboard {
  gap: 1.5rem;
}

.ads-hero-panel,
.ads-form-panel,
.ads-list-panel,
.ads-side-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(172, 126, 255, .1);
  background:
    radial-gradient(circle at top left, rgba(196, 99, 255, .12), transparent 30%),
    radial-gradient(circle at bottom right, rgba(111, 61, 244, .1), transparent 28%),
    linear-gradient(180deg, rgba(36, 21, 58, .88), rgba(17, 10, 28, .94)),
    rgba(11, 8, 17, .97);
  box-shadow: 0 24px 55px rgba(0, 0, 0, .42);
  backdrop-filter: blur(18px);
}

.ads-hero-panel::before,
.ads-form-panel::before,
.ads-list-panel::before,
.ads-side-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, .05), transparent 42%);
  pointer-events: none;
}

.ads-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, .8fr);
  gap: 1.25rem;
  align-items: stretch;
  min-height: 250px;
}

.ads-hero-copy,
.ads-hero-aside,
.ads-form-group,
.ads-campaign-card,
.ads-side-card {
  position: relative;
  z-index: 1;
}

.ads-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: .95rem;
  padding: .35rem .75rem;
  border-radius: 9999px;
  background: rgba(176, 90, 255, .16);
  color: #dab8ff;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ads-kicker.subdued {
  background: rgba(172, 126, 255, .12);
  color: #cfc3ff;
}

.ads-hero-copy h1,
.ads-section-head h2,
.ads-group-head h3 {
  margin: 0;
}

.ads-hero-aside {
  display: grid;
  gap: 1rem;
}

.ads-stat-card,
.ads-orbital-card,
.ads-form-group {
  border: 1px solid rgba(172, 126, 255, .12);
  border-radius: 1.1rem;
  background:
    linear-gradient(180deg, rgba(43, 25, 71, .7), rgba(22, 13, 37, .82)),
    rgba(14, 9, 23, .9);
  backdrop-filter: blur(14px);
}

.ads-stat-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .45rem;
  padding: 1.25rem;
  min-height: 132px;
}

.ads-stat-label,
.ads-section-chip,
.ads-mini-pill,
.ads-action-note {
  color: var(--navy-300);
}

.ads-stat-card strong {
  font-size: 2.5rem;
  line-height: 1;
  color: #fff;
}

.ads-stat-card p,
.ads-group-head p {
  margin: 0;
  color: var(--navy-300);
  line-height: 1.6;
}

.ads-orbital-card {
  position: relative;
  min-height: 132px;
}

.ads-orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(.2px);
}

.ads-orb-primary {
  inset: 18% auto auto 16%;
  width: 4.5rem;
  height: 4.5rem;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .78), rgba(176, 90, 255, .92) 52%, rgba(111, 61, 244, .25) 100%);
  box-shadow: 0 0 50px rgba(176, 90, 255, .32);
}

.ads-orb-secondary {
  inset: auto 18% 18% auto;
  width: 3.4rem;
  height: 3.4rem;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .72), rgba(155, 123, 255, .9) 55%, rgba(91, 48, 178, .2) 100%);
  box-shadow: 0 0 44px rgba(155, 123, 255, .26);
}

.ads-orb-tertiary {
  inset: 24% 20% auto auto;
  width: .95rem;
  height: .95rem;
  background: rgba(218, 184, 255, .95);
  box-shadow: 0 0 24px rgba(176, 90, 255, .42);
}

.ads-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.ads-section-chip,
.ads-mini-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  border: 1px solid rgba(172, 126, 255, .14);
  background:
    linear-gradient(180deg, rgba(50, 29, 82, .72), rgba(26, 15, 45, .86)),
    rgba(17, 11, 29, .9);
}

.ads-section-chip {
  padding: .5rem .85rem;
  font-size: .82rem;
  white-space: nowrap;
}

.ads-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.ads-form-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.15rem;
}

.ads-form-group-wide {
  grid-column: 1 / -1;
}

.ads-group-head {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.ads-group-head h3,
.ads-campaign-card h3 {
  font-size: 1.02rem;
}

.ads-form-panel .field-block label {
  color: #f0e9ff;
  font-size: .92rem;
  font-weight: 600;
}

.ads-form-panel input,
.ads-form-panel textarea,
.ads-form-panel select {
  background:
    linear-gradient(180deg, rgba(24, 15, 38, .76), rgba(11, 8, 18, .9)),
    rgba(11, 8, 18, .96);
  border-color: rgba(172, 126, 255, .14);
  color: #f7f3ff;
}

.ads-form-panel input:focus,
.ads-form-panel textarea:focus,
.ads-form-panel select:focus {
  border-color: rgba(176, 90, 255, .5);
  box-shadow: 0 0 0 3px rgba(176, 90, 255, .12);
}

.ads-action-note {
  align-self: center;
  font-size: .88rem;
}

.ads-campaign-grid {
  gap: 1rem;
}

.ads-campaign-card {
  padding: 1.15rem;
  border-radius: 1.1rem;
  border-color: rgba(172, 126, 255, .12);
  background:
    radial-gradient(circle at top right, rgba(150, 79, 255, .08), transparent 26%),
    linear-gradient(180deg, rgba(39, 23, 64, .74), rgba(18, 11, 30, .88)),
    rgba(11, 8, 18, .94);
}

.ads-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: auto;
  padding-top: .9rem;
  border-top: 1px solid rgba(172, 126, 255, .1);
}

.ads-mini-pill {
  padding: .35rem .65rem;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.ads-empty-state {
  border-style: dashed;
}

.ads-side-card {
  padding: 1.35rem;
}

.ads-side-feature {
  background:
    radial-gradient(circle at top left, rgba(198, 96, 255, .12), transparent 32%),
    radial-gradient(circle at bottom right, rgba(132, 75, 255, .12), transparent 38%),
    linear-gradient(180deg, rgba(39, 23, 66, .88), rgba(19, 11, 32, .94)),
    rgba(12, 9, 20, .97);
}

.moderation-detail-rail {
  margin-top: 2.35rem;
}

.moderation-tabs {
  width: fit-content;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.moderation-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.moderation-card h2,
.moderation-card h3 {
  margin: 0;
}

.moderation-report-details,
.moderation-target {
  margin: 0;
  padding: 1rem;
  border: 1px solid rgba(172, 126, 255, .1);
  border-radius: 1rem;
  background:
    linear-gradient(180deg, rgba(30, 18, 50, .74), rgba(14, 9, 24, .86)),
    rgba(12, 9, 20, .94);
}

.moderation-target {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.moderation-target p {
  margin: 0;
}

.moderation-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .65rem;
}

.moderation-actions form {
  margin: 0;
}

.messaging-detail-rail {
  margin-top: 2.35rem;
}

.message-thread-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  color: #fff;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.message-thread-card:hover {
  transform: translateY(-2px);
  border-color: rgba(172, 126, 255, .22);
}

.message-thread-copy {
  min-width: 0;
}

.message-thread-copy h2,
.message-thread-copy p {
  margin: 0;
}

.message-thread-copy p,
.message-bubble-meta small {
  color: var(--navy-300);
}

.message-conversation-head {
  align-items: center;
}

.message-conversation-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.message-list {
  display: flex;
  flex-direction: column;
  gap: .85rem;
}

.message-bubble {
  max-width: min(75%, 42rem);
  align-self: flex-start;
  padding: .9rem 1rem;
  border: 1px solid rgba(172, 126, 255, .1);
  border-radius: 1rem 1rem 1rem .25rem;
  background:
    linear-gradient(180deg, rgba(35, 22, 58, .86), rgba(17, 11, 29, .94)),
    rgba(12, 9, 20, .96);
}

.message-bubble.mine {
  align-self: flex-end;
  border-radius: 1rem 1rem .25rem 1rem;
  background:
    linear-gradient(135deg, rgba(166, 76, 255, .92), rgba(106, 62, 240, .92)),
    var(--primary-600);
}

.message-bubble-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .4rem;
  font-size: .85rem;
}

.message-bubble p {
  margin: 0;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.message-read-state {
  display: block;
  margin-top: .4rem;
  color: rgba(255, 255, 255, .72);
  font-size: .72rem;
  text-align: right;
}

.message-connection-status {
  color: var(--navy-300);
}

.message-connection-status[data-state="live"] {
  color: #86efac;
}

.message-connection-status[data-state="offline"] {
  color: #fca5a5;
}

.message-typing-indicator {
  min-height: 1.25rem;
  margin: -.35rem 0 0;
  color: var(--navy-300);
  font-size: .85rem;
  font-style: italic;
}

.message-realtime-error {
  margin: 0;
}

.message-compose-form {
  padding-top: 1rem;
  border-top: 1px solid rgba(172, 126, 255, .1);
}

.home-main-blend {
  position: relative;
  gap: 1.75rem;
}

.home-main-blend::before,
.home-main-blend::after {
  display: none;
}

.home-sidebar-blend,
.home-feed-blend {
  position: relative;
  z-index: 1;
}

.home-sidebar-blend {
  gap: 1.2rem;
}

.blend-sidebar-block {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.blend-section-label {
  margin: 0;
  color: #aeb8e7;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.blend-panel,
.blend-post-card,
.blend-toolbar,
.home-main-blend .feed-tabs,
.home-main-blend .site-search input {
  backdrop-filter: blur(18px);
}

.blend-panel,
.blend-post-card,
.blend-toolbar {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(172, 126, 255, .08);
  background:
    radial-gradient(circle at top left, rgba(168, 91, 255, .08), transparent 28%),
    radial-gradient(circle at bottom right, rgba(111, 61, 244, .1), transparent 24%),
    linear-gradient(180deg, rgba(34, 20, 54, .84), rgba(16, 10, 26, .9)),
    rgba(10, 8, 15, .96);
  box-shadow: 0 22px 50px rgba(0, 0, 0, .44);
}

.blend-panel::before,
.blend-post-card::before,
.blend-toolbar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, .06), transparent 38%);
  pointer-events: none;
}

.blend-profile-panel {
  background:
    radial-gradient(circle at top left, rgba(196, 99, 255, .1), transparent 30%),
    radial-gradient(circle at bottom right, rgba(113, 66, 255, .08), transparent 26%),
    linear-gradient(180deg, rgba(41, 24, 64, .88), rgba(20, 12, 31, .92)),
    rgba(13, 9, 20, .97);
  border-radius: 1.45rem;
  padding: 1.45rem;
  border-color: rgba(172, 126, 255, .08);
}

.blend-side-panel {
  background:
    radial-gradient(circle at top right, rgba(151, 81, 255, .08), transparent 28%),
    radial-gradient(circle at top left, rgba(205, 97, 255, .06), transparent 26%),
    linear-gradient(180deg, rgba(36, 21, 58, .86), rgba(18, 11, 28, .92)),
    rgba(11, 8, 17, .97);
  border-radius: 1.45rem;
  border-color: rgba(172, 126, 255, .08);
}

.blend-profile-panel .profile-head {
  align-items: flex-start;
}

.blend-profile-panel .profile-avatar {
  width: 5rem;
  height: 5rem;
}

.blend-profile-panel .secondary-button {
  min-height: 3rem;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(81, 47, 147, .92), rgba(54, 31, 99, .96)),
    rgba(42, 24, 78, .98);
  border: 1px solid rgba(196, 142, 255, .12);
  color: #f7fbff;
  box-shadow: 0 10px 26px rgba(12, 20, 44, .2);
}

.blend-profile-panel .secondary-button:hover {
  background:
    linear-gradient(180deg, rgba(100, 61, 178, .96), rgba(67, 40, 124, .98)),
    rgba(55, 33, 101, 1);
}

.blend-composer-panel {
  padding: 1.1rem 1.35rem;
  border-radius: 2.1rem;
  background:
    radial-gradient(circle at top left, rgba(178, 95, 255, .09), transparent 16%),
    radial-gradient(circle at top right, rgba(120, 79, 255, .06), transparent 18%),
    linear-gradient(180deg, rgba(42, 25, 67, .86), rgba(20, 12, 31, .92)),
    rgba(13, 9, 21, .97);
  border-color: rgba(172, 126, 255, .09);
}

.blend-composer-glow {
  position: absolute;
  top: -3.5rem;
  right: 2rem;
  width: 12rem;
  height: 12rem;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(139, 92, 246, .34), transparent 68%);
  pointer-events: none;
}

.blend-composer-panel .composer-top {
  gap: 1.15rem;
  margin-bottom: 0;
  min-height: 5rem;
}

.blend-composer-panel .composer-top-simple {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 0;
  flex-wrap: nowrap;
}

.blend-composer-brand {
  position: relative;
  width: 3.7rem;
  height: 3.7rem;
  flex: 0 0 auto;
  border-radius: 9999px;
  background: linear-gradient(145deg, #1f54e5, #132885 72%);
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .04);
}

.blend-brand-dot {
  position: absolute;
  border-radius: 9999px;
}

.blend-brand-dot-a {
  top: .48rem;
  left: .5rem;
  width: 1.1rem;
  height: 1.1rem;
  background: #3d97ff;
}

.blend-brand-dot-b {
  right: .42rem;
  bottom: .5rem;
  width: .88rem;
  height: .88rem;
  background: #ff3b7f;
}

.home-main-blend .composer-input {
  background: transparent;
  border: 0;
  outline: none;
  min-height: auto;
  padding: 0;
  border-radius: 0;
  color: rgba(255, 255, 255, .96);
  font-size: 1.05rem;
  width: 100%;
  min-width: 0;
}

.home-main-blend .composer-input::placeholder {
  color: rgba(255, 255, 255, .78);
}

.home-main-blend .composer-input:focus,
.home-main-blend .composer-input:focus-visible {
  outline: none;
  box-shadow: none;
}

.home-main-blend .composer-input:disabled {
  opacity: 1;
  cursor: not-allowed;
}

.blend-composer-panel .composer-bottom {
  justify-content: flex-end;
  margin-top: -3.95rem;
}

.blend-composer-panel .composer-bottom-simple {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  margin-left: auto;
  flex: 0 0 auto;
  align-self: center;
}

.blend-composer-panel .composer-tools {
  gap: .75rem;
}

.blend-composer-panel .composer-tools-simple {
  display: flex;
  align-items: center;
  gap: .45rem;
}

.blend-composer-panel .composer-tools span,
.blend-composer-panel .composer-bottom > .primary-pill {
  min-width: 2.75rem;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0 .95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1.05rem;
  background:
    linear-gradient(180deg, rgba(52, 30, 88, .84), rgba(29, 17, 50, .9)),
    rgba(20, 12, 34, .94);
  border: 1px solid rgba(172, 126, 255, .08);
  color: #edf3ff;
  font-size: .92rem;
  letter-spacing: .03em;
}

.blend-composer-panel .composer-tools-simple span,
.blend-composer-panel .composer-submit-simple {
  min-width: 2.75rem;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border-radius: .9rem;
}

.blend-composer-panel .composer-tools-simple span i,
.blend-composer-panel .composer-submit-simple i {
  font-size: .95rem;
}

.blend-composer-panel .composer-bottom > .primary-pill {
  background: linear-gradient(135deg, #8a5cff, #b458ff);
  color: #fff;
}

.blend-composer-panel .composer-submit-simple {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  align-self: center;
  margin-left: 0;
  box-shadow: 0 8px 18px rgba(118, 92, 255, .18);
}

.blend-toolbar {
  padding: .45rem;
  border-radius: 1.15rem;
  background:
    linear-gradient(180deg, rgba(43, 25, 71, .74), rgba(22, 13, 37, .8)),
    rgba(14, 9, 23, .94);
  border-color: rgba(172, 126, 255, .08);
}

body.home-page .blend-toolbar {
  padding: 0;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body.home-page .blend-toolbar::before {
  display: none;
}

.blend-composer-head {
  margin: .1rem 0 .85rem;
}

.blend-composer-head h2 {
  margin: .35rem 0 0;
  font-size: 1.42rem;
}

.blend-feed-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin: .1rem 0 .25rem;
}

.blend-feed-head h2 {
  margin: .35rem 0 0;
  font-size: 1.42rem;
}

.blend-head-link {
  color: var(--navy-300);
  text-decoration: none;
}

.blend-head-link:hover {
  color: #fff;
}

.home-main-blend .feed-tabs {
  background: transparent;
  padding: 0;
  gap: .5rem;
}

.home-main-blend .feed-tabs a,
.home-main-blend .toolbar-icon {
  background:
    linear-gradient(180deg, rgba(50, 29, 82, .86), rgba(26, 15, 45, .92)),
    rgba(17, 11, 29, .96);
  border: 1px solid rgba(172, 126, 255, .08);
  border-radius: .95rem;
  min-height: 3rem;
  color: #f2f6ff;
}

.home-main-blend .feed-tabs a.active {
  background: linear-gradient(135deg, rgba(174, 85, 255, .86), rgba(111, 61, 244, .74));
  border-color: transparent;
}

.blend-feed-list {
  gap: 1.2rem;
}

.feed-page {
  display: contents;
}

.feed-load-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 3.25rem;
  border: 1px solid rgba(172, 126, 255, .12);
  border-radius: 1rem;
  background: rgba(28, 17, 47, .72);
  color: #cdb8f5;
  font-size: .9rem;
  text-decoration: none;
}

.blend-post-card {
  grid-template-columns: minmax(0, 1fr);
  border-radius: 1.5rem;
  background:
    radial-gradient(circle at top right, rgba(150, 79, 255, .08), transparent 24%),
    radial-gradient(circle at bottom left, rgba(211, 93, 255, .04), transparent 22%),
    linear-gradient(180deg, rgba(39, 23, 64, .86), rgba(18, 11, 30, .92)),
    rgba(11, 8, 18, .97);
  border-color: rgba(172, 126, 255, .08);
}

.blend-post-card .post-body {
  padding: 1.45rem;
}

.blend-post-card .post-meta {
  margin-bottom: .9rem;
}

.blend-post-card h3 {
  font-size: 1.2rem;
  line-height: 1.35;
}

.blend-post-card .post-excerpt {
  font-size: .96rem;
  line-height: 1.75;
}

.blend-post-card .post-media {
  border-radius: 1.15rem;
  border-color: rgba(159, 179, 200, .16);
  background: rgba(10, 25, 41, .38);
}

.blend-post-card .post-actions {
  margin-top: 1.15rem;
  padding-top: .95rem;
  border-top: 1px solid rgba(159, 179, 200, .12);
}

.blend-promo-panel {
  text-align: left;
  background:
    radial-gradient(circle at top left, rgba(198, 96, 255, .09), transparent 32%),
    radial-gradient(circle at bottom right, rgba(132, 75, 255, .09), transparent 38%),
    linear-gradient(180deg, rgba(39, 23, 66, .88), rgba(19, 11, 32, .94)),
    rgba(12, 9, 20, .97);
  border-radius: 1.5rem;
  border-color: rgba(172, 126, 255, .08);
}

.blend-promo-panel .promo-icon {
  margin: 0 0 .9rem;
}

.home-main-blend .quick-link-row,
.home-main-blend .community-row,
.home-main-blend .trending-item,
.home-main-blend .community-tag {
  background:
    linear-gradient(180deg, rgba(41, 24, 70, .86), rgba(19, 11, 33, .92)),
    rgba(12, 9, 20, .96);
  border: 1px solid rgba(172, 126, 255, .08);
  border-radius: 1rem;
}

.home-main-blend .quick-link-row:hover,
.home-main-blend .community-row:hover,
.home-main-blend .trending-item:hover,
.home-main-blend .community-tag:hover {
  background:
    linear-gradient(180deg, rgba(57, 33, 96, .88), rgba(28, 17, 50, .94)),
    rgba(18, 11, 29, .97);
}

.home-main-blend .quick-link-row {
  padding: 1.1rem 1.15rem;
  font-size: 1rem;
  font-weight: 600;
}

.home-main-blend .quick-link-row span {
  gap: 0;
}

.home-main-blend .quick-link-row.active {
  background: linear-gradient(135deg, #a64cff, #6a3ef0);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 18px 34px rgba(73, 34, 156, .34);
}

.home-main-blend .community-row,
.home-main-blend .trending-item {
  padding: 1rem;
}

.home-main-blend .panel-title {
  margin-bottom: 1rem;
}

.blend-community-panel .panel-title {
  font-size: 1.25rem;
}

.blend-library-block .community-list {
  gap: .85rem;
}

.blend-community-panel .community-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.blend-community-panel .community-left {
  min-width: 0;
}

.blend-community-panel .community-row-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blend-community-panel .community-row-count {
  min-width: 2ch;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 700px) {
  .markdown-toolbar {
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: thin;
  }

  .markdown-editor textarea,
  .markdown-preview {
    min-height: 14rem;
  }

  .blend-feed-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 1100px) {
  .site-header .home-shell {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .site-header .site-brand {
    grid-column: 1;
    grid-row: 1;
  }

  .site-header .home-topbar-actions {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    flex-wrap: nowrap;
  }

  .site-header .home-topbar-search {
    grid-column: 1 / -1;
    grid-row: 2;
    order: initial;
  }
}

.menu-side-panel .blend-section-label {
  margin-bottom: .85rem;
}

@media (max-width: 700px) {
  .mobile-hidden-message-action {
    display: none;
  }

  .header-dropdown .mobile-menu-messages {
    display: block;
  }

  .site-header .home-topbar-chip.header-post-action {
    display: inline-flex;
    width: auto;
    min-width: 4.6rem;
    gap: .45rem;
    padding: 0 .9rem;
    font-size: .86rem;
    font-weight: 800;
  }

  .site-header .home-topbar-chip.header-post-action i {
    font-size: .75rem;
  }

  .mobile-hidden-sidebar-section {
    display: none;
  }

  .header-notifications-menu .notification-dropdown {
    position: fixed;
    top: 5.25rem;
    right: 1rem;
    left: 1rem;
    width: auto;
    max-height: calc(100dvh - 6.25rem);
    overflow: hidden;
  }

  .notification-dropdown-head {
    align-items: flex-start;
  }

  .notification-dropdown-head strong,
  .notification-mark-read {
    white-space: nowrap;
  }

  .notification-list {
    max-height: calc(100dvh - 10.25rem);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .notification-item,
  .notification-item-copy {
    min-width: 0;
  }

  .notification-item-copy strong,
  .notification-item-copy small {
    overflow-wrap: anywhere;
  }

  .site-header {
    position: relative;
  }

  .site-header .home-shell {
    gap: .85rem .75rem;
    padding: .85rem 1rem 1rem;
  }

  .site-header .site-actions {
    width: auto;
    flex-wrap: nowrap;
    gap: .45rem;
    justify-self: end;
  }

  .site-header .home-topbar-chip,
  .site-header .home-topbar-chip-summary {
    width: 3rem;
    height: 3rem;
    border-radius: .9rem;
  }

  .site-header .home-topbar-actions > .action-menu {
    flex-basis: 3rem;
    width: 3rem;
    height: 3rem;
  }

  .site-header .home-topbar-search {
    padding: .55rem .75rem;
  }

  .site-header .home-topbar-search-inner {
    min-height: 3.4rem;
  }

  .site-header .brand-mark {
    width: 3rem;
    height: 3rem;
  }

  .brand-title {
    font-size: 1.65rem;
  }

  .home-main {
    padding-top: .75rem;
  }

  .site-header .home-shell {
    padding-bottom: .25rem;
  }

  body.home-page .home-main {
    padding-top: .25rem;
  }

  .blend-profile-panel,
  .blend-side-panel {
    border-radius: 1.15rem;
    padding: 1.1rem;
  }

  .home-main-blend .quick-link-row {
    padding: .95rem 1rem;
  }
}

@media (max-width: 480px) {
  .site-header .home-shell {
    column-gap: .5rem;
    padding-left: .75rem;
    padding-right: .75rem;
  }

  .site-header .site-brand {
    gap: .5rem;
  }

  .site-header .brand-mark {
    width: 2.5rem;
    height: 2.5rem;
  }

  .site-header .brand-title {
    font-size: 1.3rem;
  }

  .site-header .site-actions {
    gap: .25rem;
  }

  .site-header .home-topbar-chip,
  .site-header .home-topbar-chip-summary {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: .8rem;
  }

  .site-header .home-topbar-actions > .action-menu {
    flex-basis: 2.5rem;
    width: 2.5rem;
    height: 2.5rem;
  }

  .site-header .home-topbar-chip.header-post-action {
    width: auto;
    min-width: 4rem;
    gap: .3rem;
    padding: 0 .55rem;
    font-size: .8rem;
  }
}

@media (max-width: 380px) {
  .site-header .home-shell {
    column-gap: .4rem;
    padding-left: .65rem;
    padding-right: .65rem;
  }

  .site-header .site-actions {
    gap: .2rem;
  }

  .site-header .home-topbar-chip,
  .site-header .home-topbar-chip-summary {
    width: 2.35rem;
    height: 2.35rem;
  }

  .site-header .home-topbar-actions > .action-menu {
    flex-basis: 2.35rem;
    width: 2.35rem;
    height: 2.35rem;
  }

  .site-header .home-topbar-chip.header-post-action {
    width: auto;
    min-width: 3.9rem;
    padding: 0 .5rem;
  }

  .site-header .brand-mark {
    width: 2.35rem;
    height: 2.35rem;
  }

  .brand-title {
    font-size: 1.15rem;
  }
}

@media (max-width: 1100px) {
  .ads-hero-panel,
  .ads-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .ads-section-head,
  .ads-card-foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .ads-action-note {
    align-self: flex-start;
  }

  .moderation-detail-rail,
  .messaging-detail-rail {
    margin-top: 0;
  }

  .blend-composer-panel .composer-bottom {
    justify-content: flex-start;
    margin-top: 1rem;
  }
}
/* Stories */
.story-create-dialog {
  background: transparent;
  border: 0;
  color: #fff;
  max-height: calc(100vh - 32px);
  max-width: min(520px, calc(100vw - 28px));
  padding: 0;
  width: 100%;
}

.story-create-dialog::backdrop {
  background: rgba(5, 2, 10, .82);
  backdrop-filter: blur(8px);
}

.story-create-dialog-shell {
  background: linear-gradient(155deg, #21142f, #120a1c 72%);
  border: 1px solid rgba(189, 164, 255, .2);
  border-radius: 22px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .6);
  overflow: hidden;
  padding: 24px;
}

.story-create-dialog-head {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.story-create-dialog-head span {
  color: #bda4ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .9px;
  text-transform: uppercase;
}

.story-create-dialog-head h2 {
  font-size: 25px;
  margin: 5px 0 0;
}

.story-create-dialog-head button {
  align-items: center;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.story-create-dialog form {
  display: grid;
  gap: 15px;
}

.story-create-dropzone {
  align-items: center;
  aspect-ratio: 4 / 3;
  background: rgba(4, 2, 8, .38);
  border: 1px dashed rgba(189, 164, 255, .45);
  border-radius: 16px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.story-create-dropzone > input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.story-create-empty {
  align-items: center;
  color: #b8b0c9;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 22px;
  text-align: center;
}

.story-create-empty i {
  color: #bda4ff;
  font-size: 34px;
  margin-bottom: 4px;
}

.story-create-empty strong {
  color: #fff;
}

.story-create-empty small {
  color: #7e748f;
}

.story-create-dropzone > img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.story-create-caption {
  display: grid;
  gap: 7px;
}

.story-create-caption > span {
  color: #d9d3e4;
  font-size: 12px;
  font-weight: 800;
}

.story-create-caption small {
  color: #7e748f;
  font-weight: 600;
}

.story-create-caption input {
  background: rgba(4, 2, 8, .38);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  color: #fff;
  padding: 13px 14px;
  width: 100%;
}

.story-create-status {
  color: #ff9aaa;
  font-size: 12px;
  margin: 0;
  min-height: 16px;
}

.story-create-submit {
  border: 0;
  cursor: pointer;
  justify-self: stretch;
  min-height: 48px;
}

.story-create-submit:disabled {
  cursor: wait;
  opacity: .6;
}

.profile-status-dialog {
  background: transparent;
  border: 0;
  color: #fff;
  max-width: min(430px, calc(100vw - 28px));
  padding: 0;
  width: 100%;
}

.profile-status-dialog::backdrop {
  background: rgba(5, 2, 10, .82);
  backdrop-filter: blur(8px);
}

.profile-status-dialog-shell {
  background: linear-gradient(155deg, #21142f, #120a1c 72%);
  border: 1px solid rgba(189, 164, 255, .2);
  border-radius: 22px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .6);
  padding: 24px;
}

.profile-status-dialog form,
.profile-status-dialog label {
  display: grid;
  gap: 9px;
}

.profile-status-dialog label > span {
  color: #d9d3e4;
  font-size: 12px;
  font-weight: 800;
}

.profile-status-dialog textarea {
  background: rgba(4, 2, 8, .38);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  color: #fff;
  font: inherit;
  padding: 14px;
  resize: none;
}

.profile-status-meta {
  align-items: center;
  color: #7e748f;
  display: flex;
  font-size: 11px;
  justify-content: space-between;
}

.profile-status-meta p {
  color: #ff9aaa;
  margin: 0;
}

.profile-status-dialog form > button {
  border: 0;
  cursor: pointer;
  min-height: 46px;
}

.story-tray-shell {
  margin-bottom: 16px;
  max-width: 100%;
  min-width: 0;
  position: relative;
  width: 100%;
}

.story-tray-heading {
  align-items: center;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.story-tray-heading h2 {
  font-size: 15px;
  margin: 0;
}

.story-tray-heading a {
  color: var(--muted, #aaa1ba);
  font-size: 12px;
}

.story-tray {
  cursor: grab;
  display: flex;
  gap: 14px;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 0 0 8px;
  scrollbar-width: none;
  touch-action: pan-x;
  width: 100%;
  -webkit-overflow-scrolling: touch;
}

.story-tray::-webkit-scrollbar {
  display: none;
}

.story-tray.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.story-tray.is-dragging img {
  pointer-events: none;
}

.story-bubble {
  align-items: center;
  color: var(--muted, #aaa1ba);
  display: flex;
  flex: 0 0 66px;
  flex-direction: column;
  font-size: 11px;
  gap: 7px;
  min-width: 0;
  text-align: center;
  text-decoration: none;
}

.story-home-status-bubble {
  background: #fff;
  border-radius: 14px;
  bottom: calc(100% + 8px);
  box-sizing: border-box;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
  color: #21142f;
  font-size: 11px;
  font-weight: 800;
  left: 0;
  line-height: 1.35;
  max-width: 230px !important;
  min-width: 92px;
  overflow: visible !important;
  overflow-wrap: anywhere;
  padding: 8px 10px;
  position: absolute;
  text-align: left;
  white-space: normal !important;
  width: max-content;
  z-index: 18;
}

.story-home-status-bubble::after {
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid #fff;
  bottom: -6px;
  content: "";
  left: 25px;
  position: absolute;
}

.story-bubble:hover,
.story-bubble:focus {
  text-decoration: none;
}

.story-bubble.has-no-story {
  opacity: .56;
}

.story-bubble.has-no-story .story-avatar {
  filter: grayscale(.8);
}

.story-bubble.has-no-story:hover,
.story-bubble.has-no-story:focus {
  opacity: .78;
}

.story-bubble > span:last-child {
  max-width: 66px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.story-avatar-ring {
  background: #51475e;
  border-radius: 50%;
  display: grid;
  height: 66px;
  padding: 3px;
  place-items: center;
  position: relative;
  width: 66px;
}

.story-bubble.is-unseen .story-avatar-ring,
.story-avatar-ring.story-avatar-ring-active,
.profile-hero-avatar-v2.has-story {
  background: conic-gradient(
    from 210deg,
    #43d8ff,
    #8f45ff 30%,
    #ff4fd8 58%,
    #ffb347 78%,
    #43d8ff
  ) !important;
  box-shadow: 0 0 0 1px rgba(189, 164, 255, .35), 0 0 16px rgba(143, 69, 255, .35);
}

.profile-hero-avatar-v2.has-story {
  background-clip: border-box;
  background-origin: border-box;
  border-color: transparent !important;
}

.profile-story-menu {
  flex: 0 0 auto;
  position: relative;
  z-index: 12;
}

.profile-story-menu > summary {
  cursor: pointer;
  list-style: none;
}

.profile-story-menu > summary::-webkit-details-marker {
  display: none;
}

.profile-story-dropdown {
  left: 0;
  top: 62px;
}

.profile-identity {
  position: relative;
}

.profile-status-bubble {
  background: #fff;
  border-radius: 16px;
  bottom: calc(100% + 55px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
  color: #21142f;
  font-size: 12px;
  font-weight: 800;
  left: 1.5rem;
  max-width: 190px;
  overflow-wrap: anywhere;
  padding: 9px 12px;
  position: absolute;
  z-index: 10;
}

.profile-status-bubble::after {
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 8px solid #fff;
  bottom: -7px;
  content: "";
  left: 28px;
  position: absolute;
}

.story-avatar {
  align-items: center;
  background: #211429;
  border: 2px solid #150d1c;
  border-radius: 50%;
  color: #fff;
  display: flex;
  font-weight: 800;
  height: 100%;
  justify-content: center;
  overflow: hidden;
  width: 100%;
}

.story-avatar img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.story-add-badge {
  align-items: center;
  background: #8f45ff;
  border: 2px solid #180e20;
  border-radius: 50%;
  bottom: -1px;
  box-sizing: border-box;
  color: #fff;
  display: flex;
  font-size: 9px;
  font-weight: 800;
  height: 20px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  position: absolute;
  right: -1px;
  width: 20px;
}

.story-add-badge i {
  display: block;
  line-height: 1;
}

.story-self-menu {
  flex: 0 0 66px;
  position: relative;
}

.story-self-menu > summary {
  cursor: pointer;
  list-style: none;
}

.story-self-menu > summary::-webkit-details-marker {
  display: none;
}

.story-self-dropdown {
  background: #211429;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
  display: grid;
  left: 0;
  min-width: 180px;
  padding: 6px;
  position: absolute;
  top: 94px;
  z-index: 20;
}

.story-tray-dropdown {
  display: none;
}

.story-tray-shell:has(.story-self-menu[open]) > .story-tray-dropdown,
.story-tray-shell.story-menu-open > .story-tray-dropdown {
  display: grid;
}

.story-self-dropdown a {
  align-items: center;
  border-radius: 8px;
  color: #fff;
  display: flex;
  font-size: 13px;
  font-weight: 700;
  gap: 9px;
  padding: 10px 11px;
  text-decoration: none;
  white-space: nowrap;
}

.story-self-dropdown a:hover,
.story-self-dropdown a:focus {
  background: rgba(181, 133, 255, .14);
  text-decoration: none;
}

.story-status-remove-form {
  margin: 0;
}

.story-status-remove-form button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: #ff8b9d;
  cursor: pointer;
  display: flex;
  font-size: 13px;
  font-weight: 700;
  gap: 9px;
  padding: 10px 11px;
  width: 100%;
}

.story-status-remove-form button:hover,
.story-status-remove-form button:focus {
  background: rgba(255, 107, 122, .12);
}

@media (max-width: 720px) {
  body.home-page {
    max-width: 100%;
    overflow-x: hidden;
  }

  .home-main,
  .home-main > .page-main {
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }

  .story-home-status-bubble {
    bottom: calc(100% + 7px);
    font-size: 10px;
    max-width: min(230px, calc(100vw - 32px)) !important;
    padding: 8px 11px;
  }

  .story-self-dropdown {
    max-width: calc(100vw - 32px);
  }

  .profile-status-bubble {
    bottom: calc(100% + 42px);
    left: 1rem;
    max-width: 150px;
  }
}

.story-page-shell {
  display: block;
  max-width: 860px;
}

.story-form-panel,
.story-viewers-panel {
  margin: 28px auto;
  max-width: 680px;
  padding: clamp(22px, 5vw, 42px);
}

.story-create-form {
  margin-top: 28px;
}

.story-create-form input[type="file"] {
  border: 1px dashed rgba(181, 133, 255, .5);
  border-radius: 16px;
  padding: 22px;
  width: 100%;
}

.story-form-actions,
.story-archive-actions {
  align-items: center;
  display: flex;
  gap: 12px;
}

.story-viewer-page .site-header,
.story-viewer-page .legal-dock-shell {
  display: none;
}

.story-viewer {
  align-items: center;
  background: #08050c;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 12px;
}

.story-stage {
  background: #160d1e;
  border-radius: 22px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .58);
  height: min(900px, calc(100vh - 24px));
  max-width: 500px;
  overflow: hidden;
  position: relative;
  width: min(100%, 500px);
}

.story-progress {
  display: flex;
  gap: 4px;
  left: 14px;
  position: absolute;
  right: 14px;
  top: 12px;
  z-index: 5;
}

.story-progress span {
  background: rgba(255, 255, 255, .3);
  border-radius: 10px;
  flex: 1;
  height: 3px;
  overflow: hidden;
}

.story-progress i {
  background: #fff;
  display: block;
  height: 100%;
  width: 0;
}

.story-progress i.is-running {
  animation: story-progress 6s linear forwards;
}

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

.story-viewer-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  left: 16px;
  position: absolute;
  right: 16px;
  top: 25px;
  z-index: 6;
}

.story-viewer-author {
  align-items: center;
  color: #fff;
  display: flex;
  gap: 10px;
  text-shadow: 0 1px 8px #000;
  text-decoration: none;
}

.story-viewer-author:hover,
.story-viewer-author:focus {
  text-decoration: none;
}

.story-viewer-author .story-avatar {
  height: 36px;
  width: 36px;
}

.story-viewer-close {
  align-items: center;
  color: #fff;
  display: flex;
  font-size: 20px;
  height: 36px;
  justify-content: center;
  line-height: 1;
  text-shadow: 0 1px 8px #000;
  text-decoration: none;
  width: 36px;
}

.story-viewer-close:hover,
.story-viewer-close:focus {
  text-decoration: none;
}

.story-viewer-head-actions {
  align-items: center;
  display: flex;
  gap: 16px;
  height: 36px;
}

.story-owner-menu {
  position: relative;
}

.story-owner-menu summary {
  align-items: center;
  color: #fff;
  cursor: pointer;
  display: flex;
  font-size: 20px;
  height: 36px;
  justify-content: center;
  list-style: none;
  text-shadow: 0 1px 8px #000;
  width: 36px;
}

.story-owner-menu summary i,
.story-viewer-close i {
  display: block;
  line-height: 1;
}

.story-owner-menu summary::-webkit-details-marker {
  display: none;
}

.story-owner-menu form {
  background: #211429;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
  padding: 6px;
  position: absolute;
  right: 0;
  top: 42px;
  width: 170px;
}

.story-owner-menu button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: #ff8b9d;
  cursor: pointer;
  display: flex;
  font-weight: 700;
  gap: 9px;
  padding: 10px 12px;
  width: 100%;
}

.story-owner-menu button:hover,
.story-owner-menu button:focus {
  background: rgba(255, 107, 122, .12);
}

.story-slides,
.story-slide {
  height: 100%;
  width: 100%;
}

.story-slide {
  display: none;
  position: relative;
}

.story-slide.is-active {
  display: block;
}

.story-slide > img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.story-caption {
  background: rgba(0, 0, 0, .5);
  border-radius: 12px;
  bottom: 100px;
  color: #fff;
  left: 28px;
  margin: 0;
  padding: 10px 14px;
  position: absolute;
  right: 28px;
  text-align: center;
}

.story-viewer-count {
  bottom: 24px;
  color: #fff;
  left: 22px;
  position: absolute;
  text-decoration: none;
  z-index: 7;
}

.story-viewer-count:hover,
.story-viewer-count:focus {
  text-decoration: none;
}

.story-nav {
  background: transparent;
  border: 0;
  bottom: 80px;
  position: absolute;
  top: 70px;
  width: 36%;
  z-index: 4;
}

.story-nav-prev { left: 0; }
.story-nav-next { right: 0; }

.story-viewer-footer {
  align-items: flex-end;
  bottom: 18px;
  display: flex;
  gap: 8px;
  left: 18px;
  position: absolute;
  right: 18px;
  z-index: 8;
}

.story-reply-form {
  background: rgba(16, 10, 23, .82);
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  display: flex;
  flex: 1;
  overflow: hidden;
}

.story-reply-form input {
  background: transparent;
  border: 0;
  color: #fff;
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
}

.story-reply-form button {
  background: transparent;
  border: 0;
  color: #cba8ff;
  font-weight: 800;
  padding: 0 16px;
}

.story-report-menu {
  position: relative;
}

.story-report-menu summary {
  align-items: center;
  background: rgba(16, 10, 23, .82);
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.story-report-menu form {
  background: #211429;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 16px;
  bottom: 54px;
  padding: 16px;
  position: absolute;
  right: 0;
  width: 280px;
}

.story-archive-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  margin: 24px 0;
}

.story-archive-card {
  overflow: hidden;
  padding: 0;
}

.story-archive-card > img {
  aspect-ratio: 9 / 16;
  object-fit: cover;
  width: 100%;
}

.story-archive-card > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
}

.story-archive-card span,
.story-viewer-list small {
  color: var(--muted, #aaa1ba);
  font-size: 12px;
}

.story-archive-actions {
  align-items: center;
  flex-direction: row !important;
  justify-content: space-between;
}

.story-archive-viewers {
  align-items: center;
  background: rgba(143, 69, 255, .16);
  border: 1px solid rgba(189, 164, 255, .42);
  border-radius: 999px;
  color: #d8c8ff;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 6px;
  padding: 7px 11px;
  text-decoration: none;
}

.story-archive-viewers:hover,
.story-archive-viewers:focus {
  background: rgba(143, 69, 255, .28);
  border-color: #bda4ff;
  color: #fff;
  text-decoration: none;
}

.story-archive-actions button {
  background: none;
  border: 0;
  color: #ff8b9d;
  cursor: pointer;
  padding: 0;
}

.story-viewer-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.story-viewer-list > a {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: #fff;
  display: flex;
  gap: 12px;
  padding-top: 10px;
}

.story-viewer-list .story-avatar {
  height: 44px;
  width: 44px;
}

.story-viewer-list a > span:last-child {
  display: flex;
  flex-direction: column;
}

@media (max-width: 700px) {
  .story-viewer { padding: 0; }
  .story-stage {
    border-radius: 0;
    height: 100vh;
    max-width: none;
    width: 100%;
  }
}
