/*
 * VibeForge launch polish
 *
 * Late-loaded, presentation-only refinements for shared member-facing surfaces.
 * Do not add layout, sticky, rail, or profile-customization rules here.
 */

:root {
  --vf-polish-ink: #17243a;
  --vf-polish-muted: #667892;
  --vf-polish-line: rgba(41, 67, 101, 0.12);
  --vf-polish-line-strong: rgba(41, 67, 101, 0.18);
  --vf-polish-surface: #ffffff;
  --vf-polish-soft: #f7f9fc;
  --vf-polish-shadow: 0 12px 28px rgba(23, 42, 68, 0.08);
  --vf-polish-shadow-hover: 0 16px 34px rgba(23, 42, 68, 0.12);
}

body:not(.night-mode) {
  background-color: #f2f6fa;
  background-image: linear-gradient(180deg, #f8fbfe 0%, #eef4f9 100%);
}

/* Shared content surfaces only. Navigation rails and profile studio surfaces retain their own rules. */
body:not(.night-mode):not(.vf-page-profile) #vf-main-content .sg-offcanvas-mainbar :is(.card, .post, .publisher),
body:not(.night-mode):not(.vf-page-profile) #vf-main-content .vf-side-rail :is(.card, .post, .publisher, .vf-side-card, .sidebar-meta-widget, .vf-sponsored-card),
body:not(.night-mode) #vf-main-content .modal-content,
body:not(.night-mode) #vf-main-content .dropdown-menu {
  border-color: var(--vf-polish-line) !important;
  box-shadow: var(--vf-polish-shadow) !important;
}

body:not(.night-mode):not(.vf-page-profile) #vf-main-content .sg-offcanvas-mainbar :is(.card, .post, .publisher),
body:not(.night-mode):not(.vf-page-profile) #vf-main-content .vf-side-rail :is(.card, .post, .publisher, .vf-side-card, .sidebar-meta-widget, .vf-sponsored-card) {
  background-color: var(--vf-polish-surface);
}

@media (hover: hover) and (pointer: fine) {
  body:not(.night-mode):not(.vf-page-profile) #vf-main-content .sg-offcanvas-mainbar :is(.card, .post):hover,
  body:not(.night-mode):not(.vf-page-profile) #vf-main-content .vf-side-rail :is(.card, .vf-side-card, .sidebar-meta-widget, .vf-sponsored-card):hover {
    box-shadow: var(--vf-polish-shadow-hover) !important;
  }
}

body:not(.night-mode) #vf-main-content :is(.card-header, .panel-heading) {
  border-bottom-color: var(--vf-polish-line) !important;
}

body:not(.night-mode) #vf-main-content :is(.card-footer, .panel-footer) {
  border-top-color: var(--vf-polish-line) !important;
  background-color: var(--vf-polish-soft) !important;
}

body:not(.night-mode) #vf-main-content :is(.text-muted, .post-meta, .post-time, .description, .card-text-muted) {
  color: var(--vf-polish-muted) !important;
}

body:not(.night-mode) #vf-main-content :is(.form-control, .form-select) {
  border-color: var(--vf-polish-line-strong) !important;
  background-color: #ffffff;
  color: var(--vf-polish-ink);
  box-shadow: inset 0 1px 1px rgba(15, 23, 42, 0.02);
}

body:not(.night-mode) #vf-main-content :is(.form-control, .form-select):hover {
  border-color: rgba(42, 89, 156, 0.28) !important;
}

body:not(.night-mode) #vf-main-content :is(.form-control, .form-select):focus {
  border-color: var(--vf-accent) !important;
  box-shadow: 0 0 0 3px rgba(76, 111, 255, 0.14) !important;
}

/* Buttons and action rows feel related without changing their color semantics. */
#vf-main-content .btn {
  font-weight: 750;
  letter-spacing: 0;
}

#vf-main-content .btn-light,
#vf-main-content .btn-outline-secondary {
  border-color: var(--vf-polish-line-strong);
}

#vf-main-content .btn-light:hover,
#vf-main-content .btn-outline-secondary:hover {
  border-color: rgba(42, 89, 156, 0.3);
  background-color: #f4f7fb;
}

body:not(.night-mode) #vf-main-content :is(.nav-tabs, .nav-pills, .page-tabs, .profile-tabs) {
  border-color: var(--vf-polish-line);
}

body:not(.night-mode) #vf-main-content :is(.nav-tabs .nav-link, .nav-pills .nav-link, .page-tabs a, .profile-tabs a) {
  color: #526681;
  font-weight: 750;
}

body:not(.night-mode) #vf-main-content :is(.nav-tabs .nav-link, .nav-pills .nav-link, .page-tabs a, .profile-tabs a):not(.active):hover {
  color: var(--vf-accent);
  background-color: rgba(76, 111, 255, 0.07);
}

/* Directory and discovery cards: predictable media framing and quieter overlays. */
body:not(.night-mode) #vf-main-content :is(.page-card, .group-card, .event-card, .user-card, .market-card, .product-card) {
  border-color: var(--vf-polish-line) !important;
  box-shadow: 0 8px 20px rgba(23, 42, 68, 0.07) !important;
}

body:not(.night-mode) #vf-main-content :is(.page-card, .group-card, .event-card, .user-card, .market-card, .product-card) :is(.card-title, .title) {
  color: var(--vf-polish-ink);
}

body:not(.night-mode) #vf-main-content :is(.empty-state, .no-data, .no-results, .no-posts) {
  border: 1px dashed var(--vf-polish-line-strong);
  background: rgba(255, 255, 255, 0.64);
  color: var(--vf-polish-muted);
}

/* Keep dropdowns readable above dense media and image cards. */
body:not(.night-mode) .dropdown-menu {
  border-color: var(--vf-polish-line-strong) !important;
  background-color: #ffffff;
}

body:not(.night-mode) .dropdown-menu .dropdown-item {
  color: #30445f;
  font-weight: 650;
}

body:not(.night-mode) .dropdown-menu .dropdown-item:hover,
body:not(.night-mode) .dropdown-menu .dropdown-item:focus {
  color: #173a74;
  background-color: rgba(76, 111, 255, 0.08);
}

/* Dark mode receives the same hierarchy without flattening customized profile themes. */
body.night-mode:not(.vf-page-profile) #vf-main-content .sg-offcanvas-mainbar :is(.card, .post, .publisher),
body.night-mode:not(.vf-page-profile) #vf-main-content .vf-side-rail :is(.card, .post, .publisher, .vf-side-card, .sidebar-meta-widget, .vf-sponsored-card) {
  border-color: rgba(148, 163, 184, 0.22) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2) !important;
}

body.night-mode #vf-main-content :is(.card-header, .panel-heading, .card-footer, .panel-footer) {
  border-color: rgba(148, 163, 184, 0.18) !important;
}

body.night-mode #vf-main-content :is(.form-control, .form-select) {
  border-color: rgba(148, 163, 184, 0.3) !important;
}

@media (max-width: 767.98px) {
  body:not(.night-mode) {
    background-image: none;
    background-color: #f4f7fb;
  }

  /* Mobile keeps surfaces calm and avoids shadow buildup in a single-column flow. */
  body:not(.night-mode):not(.vf-page-profile) #vf-main-content .sg-offcanvas-mainbar :is(.card, .post, .publisher),
  body:not(.night-mode):not(.vf-page-profile) #vf-main-content .vf-side-rail :is(.card, .post, .publisher, .vf-side-card, .sidebar-meta-widget, .vf-sponsored-card) {
    box-shadow: 0 7px 18px rgba(23, 42, 68, 0.07) !important;
  }
}

/* r220: Create Story uses template markup only; legacy pseudo-labels caused overlapping copy. */
html body.vf-page-index #vf-main-content .vf-stories-card #stories .add-story::before,
html body.vf-page-index #vf-main-content .vf-stories-card #stories .add-story::after,
html body.vf-page-index #vf-main-content .vf-stories-card #stories .add-story .add::after {
  display: none !important;
  content: none !important;
}

html body.vf-page-index #vf-main-content .vf-stories-card #stories .add-story {
  position: relative !important;
  display: block !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  padding: 0 !important;
  border: 1px solid rgba(47, 109, 255, 0.2) !important;
  background: linear-gradient(155deg, #eef6ff 0%, #e5fbfa 100%) !important;
  color: #172033 !important;
}

html body.vf-page-index #vf-main-content .vf-stories-card #stories .add-story .img {
  display: none !important;
}

html body.vf-page-index #vf-main-content .vf-stories-card #stories .add-story .vf-story-create-copy {
  position: absolute !important;
  z-index: 2 !important;
  top: 45% !important;
  right: 10px !important;
  left: 10px !important;
  display: grid !important;
  gap: 5px !important;
  transform: translateY(-50%) !important;
  text-align: center !important;
}

html body.vf-page-index #vf-main-content .vf-stories-card #stories .add-story .vf-story-create-title,
html body.vf-page-index #vf-main-content .vf-stories-card #stories .add-story .vf-story-create-description {
  display: block !important;
  margin: 0 !important;
  overflow: visible !important;
  color: #172033 !important;
  text-align: center !important;
  white-space: normal !important;
}

html body.vf-page-index #vf-main-content .vf-stories-card #stories .add-story .vf-story-create-title {
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  line-height: 1.18 !important;
}

html body.vf-page-index #vf-main-content .vf-stories-card #stories .add-story .vf-story-create-description {
  font-size: 0.68rem !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
}

html body.vf-page-index #vf-main-content .vf-stories-card #stories .add-story .add {
  position: absolute !important;
  z-index: 3 !important;
  top: auto !important;
  right: auto !important;
  bottom: 14px !important;
  left: 50% !important;
  display: inline-flex !important;
  width: auto !important;
  min-width: 0 !important;
  height: 34px !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  margin: 0 !important;
  padding: 0 12px 0 8px !important;
  border: 2px solid #ffffff !important;
  border-radius: 999px !important;
  background: #2f6dff !important;
  box-shadow: 0 7px 15px rgba(47, 109, 255, 0.28) !important;
  color: #ffffff !important;
  transform: translateX(-50%) !important;
}

html body.vf-page-index #vf-main-content .vf-stories-card #stories .add-story .add svg,
html body.vf-page-index #vf-main-content .vf-stories-card #stories .add-story .add .vf-story-create-action {
  display: inline-block !important;
  color: #ffffff !important;
  fill: currentColor !important;
  font-size: 0.7rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

@media (max-width: 767.98px) {
  html body.vf-page-index #vf-main-content .vf-stories-card #stories .add-story .vf-story-create-copy {
    top: 44% !important;
    right: 8px !important;
    left: 8px !important;
  }

  html body.vf-page-index #vf-main-content .vf-stories-card #stories .add-story .add {
    bottom: 11px !important;
    height: 32px !important;
    padding: 0 10px 0 7px !important;
  }
}

/* Marketplace discovery controls */
.vf-market-discovery-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin: 0 0 14px;
  padding: 15px 17px;
  border: 1px solid rgba(44, 77, 124, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 9px 22px rgba(32, 62, 106, 0.06);
}

.vf-market-discovery-heading,
.vf-market-discovery-actions,
.vf-market-discovery-chips,
.vf-market-availability,
.vf-market-layout-toggle {
  display: flex;
  align-items: center;
}

.vf-market-discovery-heading {
  gap: 8px;
  margin-right: auto;
}

.vf-market-discovery-heading strong {
  color: #172d4c;
  font-size: 15px;
}

.vf-market-discovery-kicker {
  color: #647896;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.vf-market-discovery-actions { gap: 10px; }
.vf-market-discovery-chips,
.vf-market-availability {
  gap: 5px;
  flex-wrap: wrap;
}

.vf-market-discovery-chips a,
.vf-market-availability a {
  border: 1px solid rgba(54, 87, 136, 0.13);
  border-radius: 999px;
  color: #506987;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 8px 11px;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.vf-market-discovery-chips a:hover,
.vf-market-discovery-chips a:focus-visible,
.vf-market-availability a:hover,
.vf-market-availability a:focus-visible {
  border-color: rgba(43, 103, 225, 0.3);
  background: #edf4ff;
  color: #225cbd;
}

.vf-market-discovery-chips a.active,
.vf-market-availability a.active {
  border-color: #2d70e8;
  background: #2d70e8;
  color: #fff;
}

.vf-market-layout-toggle {
  overflow: hidden;
  border: 1px solid rgba(54, 87, 136, 0.15);
  border-radius: 9px;
}

.vf-market-layout-toggle a {
  display: grid;
  width: 34px;
  height: 32px;
  place-items: center;
  color: #5d718d;
  text-decoration: none;
}

.vf-market-layout-toggle a + a { border-left: 1px solid rgba(54, 87, 136, 0.15); }
.vf-market-layout-toggle a.active { background: #eaf2ff; color: #2165d7; }
.vf-market-availability { width: 100%; }
.vf-market-legacy-filter { margin-top: 0; }

.market-products-list > [class*="col-"] { margin-bottom: 14px; }
.market-products-list .product {
  display: grid;
  grid-template-columns: minmax(220px, 30%) minmax(0, 1fr);
  overflow: hidden;
}

.market-products-list .product-image { min-height: 100%; }
.market-products-list .product-image > img { height: 100%; min-height: 230px; object-fit: cover; }
.market-products-list .product-info { display: flex; flex-direction: column; justify-content: center; }

.product-engagement {
  display: flex;
  gap: 12px;
  margin: 2px 0 8px;
  color: #71829b;
  font-size: 12px;
  font-weight: 700;
}

.product-engagement i { color: #6387cb; }

/* Keep optional commerce builders out of the initial product form scan. */
.vf-market-builder { overflow: hidden; }
.vf-market-builder-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 14px 16px;
  color: #294362;
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
  list-style: none;
}
.vf-market-builder-summary::-webkit-details-marker { display: none; }
.vf-market-builder-summary::after {
  content: "+";
  color: #3571de;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
}
.vf-market-builder[open] .vf-market-builder-summary { border-bottom: 1px solid rgba(44, 77, 124, 0.11); }
.vf-market-builder[open] .vf-market-builder-summary::after { content: "-"; }
.vf-market-builder-summary small { color: #71829b; font-size: 12px; font-weight: 600; }
body.night-mode .vf-market-builder-summary { color: #e1ebf8; }
body.night-mode .vf-market-builder-summary small { color: #9db0c9; }

/* Marketplace sell card */
.col-md-4 .marketplace-sell-card {
  height: 15%;
}

/* Home quick access uses existing modules without altering the composer. */
.vf-home-quick-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 14px;
  overflow: hidden;
  border: 1px solid rgba(43, 73, 113, 0.11);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 20px rgba(24, 47, 81, 0.06);
}
.vf-home-quick-link {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 11px;
  padding: 12px 14px;
  color: #253a56;
  text-decoration: none;
}
.vf-home-quick-link + .vf-home-quick-link { border-left: 1px solid rgba(43, 73, 113, 0.1); }
.vf-home-quick-link:hover,
.vf-home-quick-link:focus-visible { background: rgba(46, 111, 225, 0.055); color: #1e5cc2; }
.vf-home-quick-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 7px 14px rgba(30, 71, 140, 0.22);
}
.vf-home-quick-local .vf-home-quick-icon { background: linear-gradient(135deg, #ef6b43, #dc3c42); }
.vf-home-quick-dating .vf-home-quick-icon { background: linear-gradient(135deg, #fa5e9c, #d72f76); }
.vf-home-quick-contests .vf-home-quick-icon { background: linear-gradient(135deg, #8c5bea, #5d2fc5); }
.vf-home-quick-link strong,
.vf-home-quick-link small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vf-home-quick-link strong { color: inherit; font-size: 13px; font-weight: 800; line-height: 1.25; }
.vf-home-quick-link small { margin-top: 1px; color: #7c8ca2; font-size: 11px; font-weight: 600; }
body.night-mode .vf-home-quick-links { border-color: rgba(112, 146, 195, 0.22); background: rgba(18, 30, 49, 0.92); }
body.night-mode .vf-home-quick-link { color: #e4edf9; }
body.night-mode .vf-home-quick-link + .vf-home-quick-link { border-color: rgba(112, 146, 195, 0.18); }
body.night-mode .vf-home-quick-link small { color: #a7b8cf; }

@media (max-width: 767.98px) {
  .vf-home-quick-links {
    display: flex;
    overflow-x: auto;
    border-radius: 12px;
    scroll-snap-type: x proximity;
  }
  .vf-home-quick-link { min-width: 205px; padding: 11px 12px; scroll-snap-align: start; }
  .vf-home-quick-icon { width: 36px; height: 36px; flex-basis: 36px; }
}

body.night-mode .vf-market-discovery-toolbar {
  border-color: rgba(112, 146, 195, 0.22);
  background: rgba(19, 31, 50, 0.9);
}
body.night-mode .vf-market-discovery-heading strong { color: #eef5ff; }
body.night-mode .vf-market-discovery-chips a,
body.night-mode .vf-market-availability a,
body.night-mode .vf-market-layout-toggle { border-color: rgba(112, 146, 195, 0.25); }
body.night-mode .vf-market-discovery-chips a,
body.night-mode .vf-market-availability a,
body.night-mode .vf-market-layout-toggle a { color: #c4d3e7; }
body.night-mode .vf-market-layout-toggle a + a { border-color: rgba(112, 146, 195, 0.25); }
body.night-mode .vf-market-layout-toggle a.active { background: rgba(54, 114, 225, 0.22); color: #8db7ff; }
body.night-mode .product-engagement { color: #a7b8cd; }

@media (max-width: 767.98px) {
  .vf-market-discovery-toolbar { align-items: flex-start; padding: 13px; }
  .vf-market-discovery-heading { width: 100%; }
  .vf-market-discovery-actions { width: 100%; justify-content: space-between; }
  .vf-market-discovery-chips { flex: 1; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
  .vf-market-discovery-chips a { white-space: nowrap; }
  .market-products-list .product { display: block; }
  .market-products-list .product-image > img { height: auto; min-height: 0; max-height: 250px; }
}

/* Stories remain a compact media rail while preserving the existing viewer. */
body:not(.night-mode) .vf-stories-card {
  border-color: rgba(42, 72, 112, 0.14);
  box-shadow: 0 8px 20px rgba(23, 42, 68, 0.07);
}

.vf-stories-card .card-header {
  align-items: center;
  padding: 13px 16px 7px;
}

.vf-stories-card .vf-stories-heading strong {
  color: #20334f !important;
  font-size: 1rem;
  font-weight: 780;
}

.vf-stories-card .vf-stories-heading span {
  color: #7888a1;
  font-size: 0.77rem;
  font-weight: 600;
}

.vf-stories-card .stories-wrapper {
  margin-bottom: 0;
  padding: 4px 16px 14px;
}

.vf-stories-rail.stories.sngine.carousel,
.vf-stories-rail {
  align-items: flex-start;
  column-gap: 10px;
  min-height: 148px;
  padding: 1px 1px 3px;
  scroll-padding-inline: 1px;
  scroll-snap-type: x proximity;
}

.vf-stories-rail.stories.sngine.carousel .story,
.vf-stories-rail .add-story {
  flex: 0 0 88px;
  height: 142px;
  margin: 0;
  scroll-snap-align: start;
  width: 88px;
}

.vf-stories-rail.stories.sngine.carousel .story > .item-link > .item-preview,
.vf-stories-rail .add-story .img {
  height: 114px !important;
  border-radius: 13px;
}

.vf-stories-rail.stories.sngine .story > a > .item-preview > img {
  border: 2px solid #2d78ec;
  border-radius: 13px;
  padding: 2px;
}

.vf-stories-rail.stories.sngine .story.seen {
  opacity: 1;
}

.vf-stories-rail.stories.sngine .story.seen > a > .item-preview > img {
  border-color: #b7c2d2;
}

.vf-stories-rail.stories.carousel .story > .item-link > .info {
  color: #44556d;
  font-size: 0.73rem;
  font-weight: 700;
  line-height: 1.2;
  padding-top: 6px;
}

.vf-stories-rail .add-story .add {
  bottom: 19px;
  box-shadow: 0 4px 10px rgba(36, 88, 186, 0.23);
}

.vf-stories-rail .add-story::after {
  bottom: 0;
  color: #2a4c7d;
  content: "Add story";
  font-size: 0.73rem;
  font-weight: 750;
  left: 0;
  line-height: 1.2;
  position: absolute;
  text-align: center;
  width: 100%;
}

body.night-mode .vf-stories-card .vf-stories-heading strong {
  color: #f3f7ff !important;
}

body.night-mode .vf-stories-card .vf-stories-heading span,
body.night-mode .vf-stories-rail.stories.carousel .story > .item-link > .info,
body.night-mode .vf-stories-rail .add-story::after {
  color: #b9c7dc;
}

/* Mobile comments stay in context as a bottom sheet instead of replacing the reel. */
.vf-page-reels .reel-video-container {
  isolation: isolate;
}

.vf-page-reels .reel-actions .btn,
.vf-page-reels .reel-video-wrapper :is(.btn-prev, .btn-next) {
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.vf-page-reels .reel-actions .btn:focus-visible,
.vf-page-reels .reel-video-wrapper :is(.btn-prev, .btn-next):focus-visible {
  outline: 3px solid rgba(70, 181, 236, 0.72);
  outline-offset: 3px;
}

@media (max-width: 767.98px) {
  .vf-stories-card .card-header {
    padding: 11px 12px 4px;
  }

  .vf-stories-card .vf-stories-heading span {
    display: none;
  }

  .vf-stories-card .stories-wrapper {
    padding: 4px 12px 10px;
  }

  .vf-stories-rail.stories.sngine.carousel,
  .vf-stories-rail {
    column-gap: 8px;
    min-height: 132px;
  }

  .vf-stories-rail.stories.sngine.carousel .story,
  .vf-stories-rail .add-story {
    flex-basis: 76px;
    height: 126px;
    width: 76px;
  }

  .vf-stories-rail.stories.sngine.carousel .story > .item-link > .item-preview,
  .vf-stories-rail .add-story .img {
    height: 98px !important;
    border-radius: 12px;
  }

  .vf-stories-rail.stories.carousel .story > .item-link > .info,
  .vf-stories-rail .add-story::after {
    font-size: 0.66rem;
  }

  .vf-stories-rail .add-story .add {
    bottom: 16px;
  }

  html body.vf-page-reels .reel-comments-wrapper {
    bottom: 0;
    display: block;
    height: min(74dvh, 620px);
    left: 0;
    max-width: none;
    right: 0;
    top: auto;
    transform: translateY(104%);
    transition: transform 220ms ease, visibility 220ms ease;
    visibility: hidden;
    width: 100%;
    z-index: 9;
  }

  html body.vf-page-reels .reel-container.comments-shown .reel-comments-wrapper {
    display: block;
    transform: translateY(0);
    visibility: visible;
  }

  html body.vf-page-reels .reel-container.comments-shown .reel-video-wrapper {
    opacity: 0.28;
    pointer-events: none;
    width: 100%;
  }
}

/* Organization account signup fields. */
.vf-account-kind-field {
  margin: 0 0 14px;
}

.vf-account-kind-field .form-label,
.vf-organization-account-fields .form-label {
  margin-bottom: 6px;
  font-size: 0.82rem;
  font-weight: 750;
}

.vf-account-kind-field .form-text {
  margin-top: 6px;
  color: var(--vf-polish-muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.vf-organization-account-fields {
  margin: 0 0 16px;
  padding: 16px;
  border: 1px solid rgba(148, 177, 217, 0.32);
  border-radius: 14px;
  background: #17263b;
  color: #edf4ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.vf-organization-account-heading {
  display: grid;
  gap: 3px;
  margin-bottom: 14px;
}

.vf-organization-account-heading strong {
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 800;
}

.vf-organization-account-heading span {
  color: #b9c9dd;
  font-size: 0.78rem;
  line-height: 1.35;
}

.vf-organization-account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.vf-organization-account-fields .form-label {
  color: #f8fbff !important;
}

.vf-organization-account-fields :is(.form-control, .form-select) {
  border-color: rgba(203, 218, 238, 0.5) !important;
  background: #f8fafc !important;
  color: #1c2a3f !important;
}

.vf-organization-account-fields :is(.form-control, .form-select)::placeholder {
  color: #617086 !important;
  opacity: 1;
}

.vf-organization-account-fields :is(.form-control, .form-select):focus {
  border-color: #72a0ff !important;
  box-shadow: 0 0 0 3px rgba(114, 160, 255, 0.25) !important;
}

body.night-mode .vf-organization-account-fields {
  border-color: rgba(148, 177, 217, 0.32);
  background: #17263b;
}

body.night-mode .vf-organization-account-heading strong {
  color: #edf4ff;
}

body.night-mode .vf-account-kind-field .form-text,
body.night-mode .vf-organization-account-heading span {
  color: #aebed3;
}

@media (max-width: 575.98px) {
  .vf-organization-account-grid {
    grid-template-columns: 1fr;
  }
}

/*
 * Sitewide component consistency
 *
 * This is intentionally presentation-only. It standardizes shared controls and
 * feedback surfaces without changing grid, rail, sticky, or profile-studio rules.
 */
:root {
  --vf-polish-primary: #2f6fed;
  --vf-polish-primary-hover: #245fd1;
  --vf-polish-primary-active: #1e40af;
  --vf-polish-success: #0f9d75;
  --vf-polish-warning: #b86a00;
  --vf-polish-danger: #c92d55;
  --vf-polish-info: #1769c2;
  --vf-polish-radius: 12px;
}

/* Shared text hierarchy inside the application, excluding member-customized profiles. */
body:not(.night-mode):not(.vf-page-profile) #vf-main-content :is(.card-title, .panel-title, .section-title, .widget-title, .modal-title, .form-label) {
  color: var(--vf-polish-ink);
}

body:not(.night-mode):not(.vf-page-profile) #vf-main-content :is(.card-subtitle, .help-block, .form-text, .small.text-muted, .description) {
  color: var(--vf-polish-muted) !important;
}

/* Buttons share an accessible, predictable state language. */
#vf-main-content .btn-primary,
#modal .btn-primary,
#external-link-modal .btn-primary,
.vf-share-slideout .btn-primary {
  border-color: var(--vf-polish-primary) !important;
  background-color: var(--vf-polish-primary) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 14px rgba(47, 111, 237, 0.2);
}

#vf-main-content .btn-primary:hover,
#vf-main-content .btn-primary:focus,
#modal .btn-primary:hover,
#modal .btn-primary:focus,
#external-link-modal .btn-primary:hover,
#external-link-modal .btn-primary:focus,
.vf-share-slideout .btn-primary:hover,
.vf-share-slideout .btn-primary:focus {
  border-color: var(--vf-polish-primary-hover) !important;
  background-color: var(--vf-polish-primary-hover) !important;
  color: #ffffff !important;
}

#vf-main-content .btn-primary:active,
#vf-main-content .btn-primary.active,
#modal .btn-primary:active,
#modal .btn-primary.active,
#external-link-modal .btn-primary:active,
#external-link-modal .btn-primary.active,
.vf-share-slideout .btn-primary:active,
.vf-share-slideout .btn-primary.active {
  border-color: var(--vf-polish-primary-active) !important;
  background-color: var(--vf-polish-primary-active) !important;
}

#vf-main-content .btn-success,
#modal .btn-success,
#external-link-modal .btn-success {
  border-color: var(--vf-polish-success) !important;
  background-color: var(--vf-polish-success) !important;
  color: #ffffff !important;
}

#vf-main-content .btn-danger,
#modal .btn-danger,
#external-link-modal .btn-danger {
  border-color: var(--vf-polish-danger) !important;
  background-color: var(--vf-polish-danger) !important;
  color: #ffffff !important;
}

#vf-main-content .btn-warning,
#modal .btn-warning,
#external-link-modal .btn-warning {
  border-color: var(--vf-polish-warning) !important;
  background-color: var(--vf-polish-warning) !important;
  color: #ffffff !important;
}

/* A selected tab is always legible, even when page-specific colors are present. */
body:not(.night-mode):not(.vf-page-profile) #vf-main-content :is(.nav-pills, .nav-tabs, .page-tabs, .content-tabs) :is(.nav-link.active, li.active > a, a.active) {
  border-color: var(--vf-polish-primary) !important;
  background-color: var(--vf-polish-primary) !important;
  color: #ffffff !important;
}

body:not(.night-mode):not(.vf-page-profile) #vf-main-content :is(.nav-pills, .nav-tabs, .page-tabs, .content-tabs) :is(.nav-link.active, li.active > a, a.active) :is(i, svg, span) {
  color: inherit !important;
}

/* Form controls use the same border, focus, and validation language across pages and dialogs. */
body:not(.night-mode) :is(#vf-main-content, #modal, #external-link-modal, .vf-share-slideout) :is(.form-control, .form-select, .custom-select) {
  border-color: var(--vf-polish-line-strong) !important;
  border-radius: var(--vf-polish-radius) !important;
  color: var(--vf-polish-ink) !important;
  background-color: #ffffff;
}

body:not(.night-mode) :is(#vf-main-content, #modal, #external-link-modal, .vf-share-slideout) :is(.form-control, .form-select, .custom-select)::placeholder {
  color: #8796aa !important;
  opacity: 1;
}

body:not(.night-mode) :is(#vf-main-content, #modal, #external-link-modal, .vf-share-slideout) :is(.form-control, .form-select, .custom-select):focus {
  border-color: var(--vf-polish-primary) !important;
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.14) !important;
}

body:not(.night-mode) :is(#vf-main-content, #modal, #external-link-modal, .vf-share-slideout) input[type="checkbox"],
body:not(.night-mode) :is(#vf-main-content, #modal, #external-link-modal, .vf-share-slideout) input[type="radio"] {
  accent-color: var(--vf-polish-primary);
}

/* Menus are compact but not cramped, with reliable contrast over media-heavy pages. */
body:not(.night-mode) :is(.dropdown-menu, .action-dropdown-menu) {
  padding: 6px;
  border: 1px solid var(--vf-polish-line-strong) !important;
  border-radius: var(--vf-polish-radius) !important;
  background-color: #ffffff !important;
  box-shadow: 0 16px 34px rgba(23, 42, 68, 0.16) !important;
}

body:not(.night-mode) :is(.dropdown-menu, .action-dropdown-menu) .dropdown-item {
  min-height: 38px;
  margin: 1px 0;
  border-radius: 8px;
  color: #30445f !important;
  font-weight: 700;
}

body:not(.night-mode) :is(.dropdown-menu, .action-dropdown-menu) .dropdown-item:active,
body:not(.night-mode) :is(.dropdown-menu, .action-dropdown-menu) .dropdown-item.active,
body:not(.night-mode) :is(.dropdown-menu, .action-dropdown-menu) .dropdown-item:hover,
body:not(.night-mode) :is(.dropdown-menu, .action-dropdown-menu) .dropdown-item:focus {
  background-color: rgba(47, 111, 237, 0.1) !important;
  color: #183e80 !important;
}

/* Keep dialogs visually consistent without overriding branded or authentication backgrounds. */
#modal .modal-content,
#external-link-modal .modal-content,
.vf-share-slideout .vf-share-panel {
  border-color: var(--vf-polish-line-strong) !important;
  border-radius: 16px !important;
  box-shadow: 0 24px 56px rgba(10, 27, 51, 0.24) !important;
}

body:not(.night-mode) :is(#modal, #external-link-modal) :is(.modal-header, .modal-footer) {
  border-color: var(--vf-polish-line) !important;
}

body:not(.night-mode) :is(#modal, #external-link-modal) .modal-header .modal-title {
  color: var(--vf-polish-ink);
  font-weight: 800;
}

body:not(.night-mode) :is(#modal, #external-link-modal) .modal-header .btn-close,
body:not(.night-mode) :is(#modal, #external-link-modal) .modal-header .close {
  border-radius: 10px;
  opacity: 0.74;
}

body:not(.night-mode) :is(#modal, #external-link-modal) .modal-header .btn-close:hover,
body:not(.night-mode) :is(#modal, #external-link-modal) .modal-header .close:hover {
  background-color: rgba(47, 111, 237, 0.08);
  opacity: 1;
}

/* Feedback and status treatments use a limited, readable palette. */
body:not(.night-mode) #vf-main-content :is(.alert, .toast, .notice, .message) {
  border-radius: var(--vf-polish-radius);
}

body:not(.night-mode) #vf-main-content .alert-success,
body:not(.night-mode) #vf-main-content .alert-info {
  border-color: rgba(15, 157, 117, 0.22) !important;
  color: #075e48 !important;
  background-color: rgba(15, 157, 117, 0.09) !important;
}

body:not(.night-mode) #vf-main-content .alert-warning {
  border-color: rgba(217, 119, 6, 0.25) !important;
  color: #875000 !important;
  background-color: rgba(217, 119, 6, 0.1) !important;
}

body:not(.night-mode) #vf-main-content .alert-danger {
  border-color: rgba(201, 45, 85, 0.22) !important;
  color: #9f1d41 !important;
  background-color: rgba(201, 45, 85, 0.09) !important;
}

body:not(.night-mode) #vf-main-content :is(.badge, .label):not(.badge-light):not(.bg-light) {
  letter-spacing: 0.01em;
  font-weight: 750;
}

/* Dark mode preserves hierarchy and contrast instead of inheriting light-surface assumptions. */
body.night-mode :is(#vf-main-content, #modal, #external-link-modal, .vf-share-slideout) :is(.form-control, .form-select, .custom-select) {
  border-color: rgba(139, 164, 199, 0.34) !important;
  color: #edf4ff !important;
  background-color: #111d2e !important;
}

body.night-mode :is(#vf-main-content, #modal, #external-link-modal, .vf-share-slideout) :is(.form-control, .form-select, .custom-select):focus {
  border-color: #6c9bff !important;
  box-shadow: 0 0 0 3px rgba(108, 155, 255, 0.2) !important;
}

body.night-mode :is(.dropdown-menu, .action-dropdown-menu) {
  border-color: rgba(139, 164, 199, 0.28) !important;
  background-color: #162337 !important;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34) !important;
}

body.night-mode :is(.dropdown-menu, .action-dropdown-menu) .dropdown-item {
  color: #d8e4f3 !important;
}

body.night-mode :is(.dropdown-menu, .action-dropdown-menu) .dropdown-item:hover,
body.night-mode :is(.dropdown-menu, .action-dropdown-menu) .dropdown-item:focus,
body.night-mode :is(.dropdown-menu, .action-dropdown-menu) .dropdown-item.active {
  color: #ffffff !important;
  background-color: rgba(108, 155, 255, 0.16) !important;
}

body.night-mode #vf-main-content :is(.alert-success, .alert-info) {
  border-color: rgba(64, 220, 174, 0.28) !important;
  color: #9cf1d7 !important;
  background-color: rgba(15, 157, 117, 0.16) !important;
}

body.night-mode #vf-main-content .alert-warning {
  border-color: rgba(251, 191, 36, 0.3) !important;
  color: #fde5a2 !important;
  background-color: rgba(184, 106, 0, 0.18) !important;
}

body.night-mode #vf-main-content .alert-danger {
  border-color: rgba(251, 113, 133, 0.28) !important;
  color: #fec8d3 !important;
  background-color: rgba(201, 45, 85, 0.17) !important;
}

/* Refined interface rhythm: visual refinements only. Keep rail sizing,
 * positioning, feed behavior, and profile studio ownership in their dedicated files. */
body:not(.night-mode) .vf-simple-sidebar .vf-simple-section-label {
  color: #53647d;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

body:not(.night-mode) .vf-simple-sidebar .vf-simple-nav-item {
  color: #2e5368;
  font-weight: 700;
}

body:not(.night-mode) .vf-simple-sidebar .vf-simple-nav-item.is-active {
  background-color: #edf4ff;
  box-shadow: inset 3px 0 0 #2f7cf6;
  color: #173d73;
}

body:not(.night-mode) .vf-simple-sidebar .vf-simple-nav-item:hover {
  background-color: #f4f7fc;
  color: #173d73;
}

body.night-mode .vf-simple-sidebar .vf-simple-section-label {
  color: #9db0cb;
}

body.night-mode .vf-simple-sidebar .vf-simple-nav-item {
  color: #d7e4f5;
}

body.night-mode .vf-simple-sidebar .vf-simple-nav-item.is-active {
  background-color: rgba(92, 141, 255, 0.2);
  box-shadow: inset 3px 0 0 #79a6ff;
  color: #ffffff;
}

/* Keep utility views dense and legible, like a focused application workspace. */
:is(.vf-dashboard-shell, .vf-im-shell, .vf-bio-studio, .vf-live-map, .vf-public-showcase) :is(.btn, .nav-link, .vf-im-tabs a, .vf-bio-nav a) {
  font-weight: 750;
  letter-spacing: 0;
}

body:not(.night-mode) :is(.vf-dashboard-shell, .vf-im-shell, .vf-bio-studio, .vf-live-map) :is(.card, .vf-bio-panel, .vf-im-card, .vf-dashboard-card) {
  border-color: rgba(42, 72, 112, 0.14);
  box-shadow: 0 8px 20px rgba(23, 42, 68, 0.07);
}

body:not(.night-mode) :is(.vf-dashboard-shell, .vf-im-shell, .vf-bio-studio, .vf-live-map) :is(.form-label, label > span:first-child) {
  color: #52627b;
  font-size: 0.78rem;
  font-weight: 750;
}

/* Dropdowns should scan as concise command lists without changing their placement. */
:is(.dropdown-menu, .action-dropdown-menu) .dropdown-item {
  min-height: 40px;
  padding-top: 9px;
  padding-bottom: 9px;
}

:is(.dropdown-menu, .action-dropdown-menu) .dropdown-item :is(.action, .action-desc) {
  font-weight: 650;
}

/* A little separation lets profile identity read cleanly over variable cover art. */
body:not(.night-mode) .vf-profile-shell .profile-header {
  border: 1px solid rgba(36, 62, 96, 0.12);
  box-shadow: 0 14px 30px rgba(23, 42, 68, 0.1);
}

body.night-mode .vf-profile-shell .profile-header {
  border-color: rgba(139, 164, 199, 0.22);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.26);
}

/* Wide desktop workspaces use generous breathing room without
 * changing the laptop, tablet, or mobile geometry that Modern relies on. */
@media (min-width: 1440px) {
  .vf-profile-shell:not(.vf-profile-studio-enabled) {
    width: min(1480px, calc(100% - 48px)) !important;
    max-width: 1480px !important;
  }

  .vf-im-shell {
    width: min(1440px, calc(100% - 64px));
  }

  html body .main-wrapper .vf-lifted-hero-wrap.vf-dashboard-shell {
    width: min(1440px, calc(100% - 64px)) !important;
    max-width: 1440px !important;
  }

  html body.vf-page-messages .vf-messages-shell.vf-messages-pwa-shell {
    width: min(1440px, calc(100% - 64px)) !important;
    max-width: 1440px !important;
  }
}

@media (max-width: 767.98px) {
  body:not(.night-mode) :is(.dropdown-menu, .action-dropdown-menu) .dropdown-item {
    min-height: 42px;
  }

  #modal .modal-content,
  #external-link-modal .modal-content,
  .vf-share-slideout .vf-share-panel {
    border-radius: 14px !important;
  }
}

/* Finish the full-screen Stories viewer without changing its navigation,
 * reaction, or reply behavior. */
html body #zuck-modal {
  background: rgba(3, 11, 23, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

html body #zuck-modal-content .story-viewer .slides-pointers {
  top: max(10px, env(safe-area-inset-top)) !important;
  left: 50% !important;
  right: auto !important;
  width: min(540px, calc(100vw - 32px)) !important;
  transform: translateX(-50%);
}

html body #zuck-modal-content .story-viewer .slides-pointers > * > * {
  background: rgba(255, 255, 255, 0.38);
}

html body #zuck-modal-content .story-viewer .head {
  top: max(13px, env(safe-area-inset-top));
  left: 50%;
  width: min(540px, calc(100vw - 32px));
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(10, 23, 43, 0.88), rgba(20, 43, 73, 0.72));
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.26);
  transform: translateX(-50%);
}

html body #zuck-modal-content .story-viewer .head .item-preview {
  box-shadow: 0 0 0 2px rgba(91, 209, 223, 0.82);
}

html body #zuck-modal-content .story-viewer .head .right .close,
html body #zuck-modal-content .story-viewer .head .back {
  border-radius: 50%;
  color: #ffffff;
}

html body #zuck-modal-content .story-viewer .story-footer {
  bottom: max(8px, env(safe-area-inset-bottom));
  padding: 8px 14px;
}

html body #zuck-modal-content .story-viewer .reply-input {
  min-height: 42px;
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(9, 23, 43, 0.8);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
  color: #ffffff;
}

html body #zuck-modal-content .story-viewer .reply-input:focus {
  border-color: #62d6db;
  box-shadow: 0 0 0 3px rgba(98, 214, 219, 0.2);
}

html body #zuck-modal-content .story-viewer .send-button {
  color: #72e2d3;
}

/* A visible loading state makes fetching the next reel feel intentional. */
@keyframes vf-reel-loader-sheen {
  from {
    transform: translateX(-120%);
  }

  to {
    transform: translateX(180%);
  }
}

html body.vf-page-reels .main-wrapper .reels-loader {
  display: none;
  width: 130px;
  height: 172px;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  background: linear-gradient(180deg, #172238 0 68%, #101b2e 68% 100%);
  color: transparent;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32);
}

html body.vf-page-reels .main-wrapper .reels-loader::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 25%, rgba(255, 255, 255, 0.13) 46%, transparent 67%);
  content: "";
  transform: translateX(-120%);
  animation: vf-reel-loader-sheen 1.3s ease-in-out infinite;
}

html body.vf-page-reels .main-wrapper .reels-loader .spinner-grow {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  margin: 0 !important;
  color: #6adbd2;
  transform: translate(-50%, -50%);
}

/* The existing shared empty-state system remains intentionally quiet and
 * responsive on media views as well as regular application screens. */
html body.vf-page-reels .main-wrapper :is(.no-data, .empty-state, .vf-empty-state) {
  border-color: rgba(126, 156, 198, 0.24) !important;
  background: rgba(11, 24, 43, 0.82) !important;
  color: #c5d3e6 !important;
}

@media (max-width: 767.98px) {
  html body #zuck-modal-content .story-viewer .slides-pointers {
    top: max(8px, env(safe-area-inset-top)) !important;
    width: calc(100vw - 24px) !important;
  }

  html body #zuck-modal-content .story-viewer .head {
    top: max(13px, env(safe-area-inset-top));
    width: calc(100vw - 24px);
  }

  html body #zuck-modal-content .story-viewer .story-footer {
    padding-bottom: max(8px, env(safe-area-inset-bottom));
  }

  html body.vf-page-reels .main-wrapper .reel-comments-wrapper {
    padding-bottom: max(14px, env(safe-area-inset-bottom));
  }

  html body.vf-page-reels .main-wrapper .reel-video-wrapper {
    min-height: min(540px, calc(100dvh - 190px - env(safe-area-inset-bottom))) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body.vf-page-reels .main-wrapper .reels-loader::before {
    animation: none;
  }
}

/* Marketplace has more actions than a generic underline tab row can carry.
 * Keep every destination visible while giving the bar a compact command-strip rhythm. */
html body .main-wrapper .marketplace-tabs {
  margin-bottom: 18px;
  padding: 8px !important;
  border: 1px solid rgba(53, 79, 116, 0.13);
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(23, 42, 68, 0.07) !important;
}

html body .main-wrapper .marketplace-tabs > ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
}

html body .main-wrapper .marketplace-tabs > ul > li {
  float: none;
}

html body .main-wrapper .marketplace-tabs > ul > li > a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 11px !important;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #405975;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
}

html body .main-wrapper .marketplace-tabs > ul > li > a .main-icon {
  width: 19px !important;
  height: 19px !important;
  margin-right: 5px !important;
  color: #4a71ba;
}

html body .main-wrapper .marketplace-tabs > ul > li > a:hover,
html body .main-wrapper .marketplace-tabs > ul > li > a:focus-visible {
  border-color: rgba(55, 111, 222, 0.16);
  background: rgba(49, 107, 229, 0.08);
  color: #2058b4;
}

html body .main-wrapper .marketplace-tabs > ul > li.active > a {
  border-color: rgba(48, 104, 221, 0.18);
  background: linear-gradient(135deg, #2d76ed, #315ee7);
  box-shadow: 0 7px 16px rgba(39, 94, 213, 0.22);
  color: #ffffff !important;
}

html body .main-wrapper .marketplace-tabs > ul > li.active > a .main-icon {
  color: #ffffff !important;
}

/* The base icon rule sets fill with !important, so set every SVG layer here. */
html body .main-wrapper .marketplace-tabs > ul > li.active > a .main-icon,
html body .main-wrapper .marketplace-tabs > ul > li.active > a .main-icon * {
  color: #ffffff !important;
  fill: #ffffff !important;
  stroke: #ffffff !important;
}

@media (min-width: 1200px) {
  html body .main-wrapper .marketplace-tabs > ul {
    display: flex !important;
    width: 100% !important;
    gap: 4px;
  }

  html body .main-wrapper .marketplace-tabs > ul > li {
    flex: 1 1 0 !important;
    min-width: 0;
  }

  html body .main-wrapper .marketplace-tabs > ul > li > a {
    justify-content: center;
    width: 100%;
    padding-inline: 8px !important;
  }
}

body.night-mode .main-wrapper .marketplace-tabs {
  border-color: rgba(107, 137, 183, 0.24);
  background: rgba(18, 30, 49, 0.94);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2) !important;
}

body.night-mode .main-wrapper .marketplace-tabs > ul > li > a {
  color: #c0d0e5;
}

body.night-mode .main-wrapper .marketplace-tabs > ul > li > a:hover,
body.night-mode .main-wrapper .marketplace-tabs > ul > li > a:focus-visible {
  border-color: rgba(108, 156, 255, 0.3);
  background: rgba(74, 126, 235, 0.17);
  color: #ffffff;
}

@media (max-width: 1199.98px) and (min-width: 768px) {
  html body .main-wrapper .marketplace-tabs > ul {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  html body .main-wrapper .marketplace-tabs > ul > li > a {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  html body .main-wrapper .marketplace-tabs {
    padding: 7px !important;
    border-radius: 14px !important;
  }

  html body .main-wrapper .marketplace-tabs > ul {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px;
  }

  html body .main-wrapper .marketplace-tabs > ul > li > a {
    justify-content: center;
    min-width: 0;
    padding: 9px 6px !important;
  }

  html body .main-wrapper .marketplace-tabs > ul > li > a .main-icon {
    margin-right: 0 !important;
  }

  html body .main-wrapper .marketplace-tabs > ul > li > a span {
    display: none !important;
  }
}

/* r221: final Stories cascade. Keep legacy generated labels out of the Create Story tile. */
html body.vf-page-index #vf-main-content .vf-stories-card #stories .add-story::before,
html body.vf-page-index #vf-main-content .vf-stories-card #stories .add-story::after,
html body.vf-page-index #vf-main-content .vf-stories-card #stories .add-story .add::after {
  display: none !important;
  content: none !important;
}

html body.vf-page-index #vf-main-content .vf-stories-card #stories .add-story {
  position: relative !important;
  display: block !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  padding: 0 !important;
  border: 1px solid rgba(47, 109, 255, 0.2) !important;
  background: linear-gradient(155deg, #eef6ff 0%, #e5fbfa 100%) !important;
  color: #172033 !important;
}

html body.vf-page-index #vf-main-content .vf-stories-card #stories .add-story .img {
  display: none !important;
}

html body.vf-page-index #vf-main-content .vf-stories-card #stories .add-story .vf-story-create-copy {
  position: absolute !important;
  z-index: 2 !important;
  top: 45% !important;
  right: 10px !important;
  left: 10px !important;
  display: grid !important;
  gap: 5px !important;
  transform: translateY(-50%) !important;
  text-align: center !important;
}

html body.vf-page-index #vf-main-content .vf-stories-card #stories .add-story .vf-story-create-title,
html body.vf-page-index #vf-main-content .vf-stories-card #stories .add-story .vf-story-create-description {
  display: block !important;
  margin: 0 !important;
  overflow: visible !important;
  color: #172033 !important;
  text-align: center !important;
  white-space: normal !important;
}

html body.vf-page-index #vf-main-content .vf-stories-card #stories .add-story .vf-story-create-title {
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  line-height: 1.18 !important;
}

html body.vf-page-index #vf-main-content .vf-stories-card #stories .add-story .vf-story-create-description {
  font-size: 0.68rem !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
}

html body.vf-page-index #vf-main-content .vf-stories-card #stories .add-story .add {
  position: absolute !important;
  z-index: 3 !important;
  top: auto !important;
  right: auto !important;
  bottom: 14px !important;
  left: 50% !important;
  display: inline-flex !important;
  width: auto !important;
  min-width: 0 !important;
  height: 34px !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  margin: 0 !important;
  padding: 0 12px 0 8px !important;
  border: 2px solid #ffffff !important;
  border-radius: 999px !important;
  background: #2f6dff !important;
  box-shadow: 0 7px 15px rgba(47, 109, 255, 0.28) !important;
  color: #ffffff !important;
  transform: translateX(-50%) !important;
}

html body.vf-page-index #vf-main-content .vf-stories-card #stories .add-story .add svg,
html body.vf-page-index #vf-main-content .vf-stories-card #stories .add-story .add .vf-story-create-action {
  display: inline-block !important;
  color: #ffffff !important;
  fill: currentColor !important;
  font-size: 0.7rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

@media (max-width: 767.98px) {
  html body.vf-page-index #vf-main-content .vf-stories-card #stories .add-story .vf-story-create-copy {
    top: 44% !important;
    right: 8px !important;
    left: 8px !important;
  }

  html body.vf-page-index #vf-main-content .vf-stories-card #stories .add-story .add {
    bottom: 11px !important;
    height: 32px !important;
    padding: 0 10px 0 7px !important;
  }
}
