/* Responsive Masonry Grid Layout */
.masonry-feed {
  column-count: 2;
  column-gap: 0.5rem;
}

.feed-motion-entry {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 0.9rem;
  background: linear-gradient(100deg, rgba(8, 27, 39, 0.96), rgba(13, 18, 28, 0.94) 64%);
}

.feed-motion-entry-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  color: #67e8f9;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 0.7rem;
}

.feed-motion-entry-copy {
  min-width: 0;
  flex: 1;
}

.feed-motion-entry-title {
  color: #f8fafc;
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.3;
}

.feed-motion-entry-description {
  color: #a6b4c7;
  font-size: 0.73rem;
  line-height: 1.35;
}

.feed-motion-entry-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  padding: 0.55rem 0.9rem;
  flex: none;
  color: #06212a;
  background: #67e8f9;
  border-radius: 0.65rem;
  font-size: 0.75rem;
  font-weight: 800;
  transition: background 0.18s ease, transform 0.18s ease;
}

.feed-motion-entry-button:hover { background: #a5f3fc; transform: translateY(-1px); }
.feed-motion-entry-button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* Home discovery shelves */
.home-showcase { display: grid; gap: clamp(2.8rem, 6vw, 5.4rem); padding: clamp(2.5rem, 5vw, 4.5rem) 0 1rem; }
.home-showcase-section { min-width: 0; }
.home-shelf-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.15rem; }
.home-shelf-heading h2, .home-video-copy h2 { margin: .22rem 0 0; color: #f8fafc; font-size: clamp(1.3rem, 2.6vw, 2rem); font-weight: 850; letter-spacing: -.045em; line-height: 1.08; }
.home-shelf-heading p:not(.home-eyebrow) { margin: .48rem 0 0; color: #94a3b8; font-size: .83rem; }
.home-eyebrow { margin: 0; color: var(--accent-brand-soft); font-size: .66rem; font-weight: 850; letter-spacing: .16em; }
.home-shelf-count { color: rgba(255,255,255,.38); font: 700 1.6rem/1 ui-monospace, monospace; }
.home-preset-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .9rem; }
.home-preset-card, .home-model-card { min-width: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.09); border-radius: 1rem; background: linear-gradient(145deg,rgba(20,23,34,.98),rgba(10,12,20,.98)); transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.home-preset-card:hover, .home-model-card:hover { transform: translateY(-3px); border-color: rgba(var(--accent-brand-rgb), .42); box-shadow: 0 12px 38px rgba(var(--accent-brand-rgb), .08); }
.home-preset-card-featured { border-color: rgba(var(--accent-brand-rgb), .28); }
.home-preset-shelf .home-shelf-heading { margin-bottom: .7rem; }
.home-preset-shelf .home-preset-grid { display: grid; grid-auto-columns: minmax(17rem,24rem); grid-auto-flow: column; grid-template-columns: none; gap: .7rem; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x proximity; padding: .1rem .1rem .65rem; }
.home-preset-shelf .home-preset-card { display: grid; grid-template-columns: minmax(6.5rem, .72fr) minmax(0,1fr); min-height: 9rem; scroll-snap-align: start; }
.home-preset-shelf .home-preset-card-featured { grid-column: auto; }
.home-preset-shelf .home-card-media, .home-preset-shelf .home-preset-card-featured .home-card-media { min-width: 0; min-height: 100%; height: 100%; aspect-ratio: auto; }
.home-preset-shelf .home-card-copy { padding: .72rem; }
.home-preset-shelf .home-card-copy > p { display: -webkit-box; min-height: 0; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: .68rem; margin-bottom: .45rem; }
.home-preset-shelf .home-preset-meta { max-height: 2.7rem; overflow: hidden; }
.home-preset-shelf .home-card-cta { min-height: 2.75rem; width: 100%; margin-top: .55rem; padding-inline: .45rem; }
.home-card-media { position: relative; display: grid; min-height: 10rem; aspect-ratio: 16/10; overflow: hidden; place-items: center; background: radial-gradient(ellipse at 50% 40%,rgba(var(--accent-brand-rgb), .16),transparent 66%),#090b12; }
.home-model-card .home-card-media { aspect-ratio: 4/5; }
.home-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease, filter .2s ease; }
.home-preset-card:hover .home-card-media img, .home-model-card:hover .home-card-media img { transform: scale(1.035); }
.home-card-media .home-preview-blurred { filter: blur(22px); transform: scale(1.1); }
.home-preview-missing::after { content: 'PRÉVIA HYPERIA'; color: rgba(255,255,255,.35); font: 800 .65rem/1 ui-monospace,monospace; letter-spacing: .16em; }
.home-preset-card:nth-child(1) .home-preview-missing { background: radial-gradient(ellipse at 25% 30%,rgba(var(--accent-brand-rgb), .3),transparent 56%),linear-gradient(145deg,#211127,#0b0d15 72%); }
.home-preset-card:nth-child(2) .home-preview-missing { background: radial-gradient(ellipse at 75% 28%,rgba(139,92,246,.28),transparent 54%),linear-gradient(145deg,#16172b,#0b0d15 72%); }
.home-preset-card:nth-child(3) .home-preview-missing { background: radial-gradient(ellipse at 45% 38%,rgba(6,182,212,.22),transparent 58%),linear-gradient(145deg,#10202a,#0b0d15 72%); }
.home-rating-badge { position: absolute; top: .65rem; left: .65rem; z-index: 2; padding: .27rem .43rem; border: 1px solid; border-radius: .42rem; background: rgba(7,9,14,.86); font: 800 .62rem/1 ui-monospace,monospace; }
.home-rating-pending { color: #cbd5e1; border-color: rgba(148,163,184,.35); }
.home-preview-reveal { position: absolute; z-index: 3; inset: 50% auto auto 50%; transform: translate(-50%,-50%); padding: .5rem .7rem; border: 1px solid rgba(255,255,255,.25); border-radius: .65rem; background: rgba(7,9,14,.88); color: white; font-size: .68rem; font-weight: 800; white-space: nowrap; }
.home-card-copy { padding: .85rem; }
.home-card-kicker { color: var(--accent-brand-soft); font: 800 .58rem/1.2 ui-monospace,monospace; letter-spacing: .1em; }
.home-card-copy h3 { margin: .36rem 0 0; color: #f8fafc; font-size: .98rem; font-weight: 850; letter-spacing: -.025em; }
.home-card-copy > p { min-height: 2.5em; margin: .38rem 0 .8rem; color: #9ba7bb; font-size: .75rem; line-height: 1.55; }
.home-preset-meta { display: grid; gap: .28rem; padding-top: .6rem; border-top: 1px solid rgba(255,255,255,.07); color: #8894a7; font-size: .62rem; }
.home-card-cta, .home-primary-action { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.45rem; margin-top: .8rem; padding: .58rem .85rem; border: 1px solid rgba(var(--accent-brand-rgb), .46); border-radius: .68rem; background: linear-gradient(110deg,var(--accent-brand),var(--accent-brand-strong)); color: #080a0f; font-size: .72rem; font-weight: 900; box-shadow: 0 5px 22px rgba(var(--accent-brand-rgb), .17); transition: filter .18s ease, transform .18s ease; }
.home-card-cta:hover, .home-primary-action:hover { filter: brightness(1.12); transform: translateY(-1px); }
.home-card-cta:disabled { opacity: .45; cursor: not-allowed; filter: grayscale(.4); transform: none; }
.home-primary-action { padding: .8rem 1rem; font-size: .77rem; }
.home-card-cta:focus-visible, .home-primary-action:focus-visible, .home-text-link:focus-visible, .home-effect-filter:focus-visible, .home-effect-card:focus-visible { outline: 2px solid var(--accent-brand-soft); outline-offset: 3px; }
.home-text-link { color: var(--accent-brand-soft); font-size: .75rem; font-weight: 800; white-space: nowrap; }
.home-horizontal-rail { display: grid; grid-auto-columns: minmax(10.5rem,15rem); grid-auto-flow: column; gap: .8rem; overflow-x: auto; padding: .1rem .1rem .8rem; scrollbar-color: rgba(var(--accent-brand-rgb), .35) transparent; }
.home-model-card { display: block; color: inherit; text-align: left; }
.home-model-name, .home-model-arch { display: block; overflow: hidden; padding: 0 .7rem; text-overflow: ellipsis; white-space: nowrap; }
.home-model-name { padding-top: .7rem; color: #f8fafc; font-size: .75rem; font-weight: 800; }
.home-model-arch { padding-top: .25rem; padding-bottom: .75rem; color: #8390a4; font-size: .65rem; }
.home-shelf-status { grid-column: 1/-1; padding: 1rem; border: 1px dashed rgba(255,255,255,.14); border-radius: .8rem; color: #94a3b8; font-size: .75rem; }
.home-shelf-status button { color: var(--accent-brand-soft); font-weight: 800; }
.home-video-feature { position: relative; display: grid; grid-template-columns: minmax(0,1.1fr) minmax(17rem,.9fr); gap: 1.5rem; align-items: center; overflow: hidden; padding: clamp(1.1rem,3vw,2rem); border: 1px solid rgba(var(--accent-brand-rgb), .24); border-radius: 1.25rem; background: radial-gradient(ellipse at 95% 0%,rgba(var(--accent-brand-rgb), .16),transparent 42%),linear-gradient(125deg,#15101c,#0b0d15 68%); }
.home-video-feature::after { content: ''; position: absolute; top: -5rem; right: 28%; width: 1px; height: 170%; transform: rotate(22deg); background: linear-gradient(transparent,rgba(var(--accent-brand-rgb), .25),transparent); pointer-events: none; }
.home-video-copy { position: relative; z-index: 1; }
.home-video-copy h2 { max-width: 35rem; font-size: clamp(1.7rem,4vw,3rem); }
.home-video-copy h2 span { color: var(--accent-brand-soft); }
.home-video-copy > p:not(.home-eyebrow) { max-width: 32rem; margin: .65rem 0 0; color: #a0aabd; font-size: .83rem; line-height: 1.6; }
.home-video-engines { position: relative; z-index: 1; display: grid; gap: .5rem; }
.home-engine-card { display: flex; align-items: center; gap: .65rem; min-width: 0; padding: .65rem .75rem; border: 1px solid rgba(255,255,255,.08); border-radius: .75rem; background: rgba(6,8,14,.76); }
.home-engine-card.is-featured { border-color: rgba(var(--accent-brand-rgb), .42); background: rgba(43,10,41,.54); }
.home-engine-icon { display: grid; width: 2rem; height: 2rem; flex: none; place-items: center; border-radius: .62rem; background: rgba(var(--accent-brand-rgb), .13); color: var(--accent-brand-soft); font-size: .9rem; }
.home-engine-card > div { min-width: 0; flex: 1; }
.home-engine-card strong, .home-engine-card > div span { display: block; }
.home-engine-card strong { overflow: hidden; color: #f8fafc; font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.home-engine-card > div span { padding-top: .14rem; color: #929db0; font-size: .62rem; }
.home-engine-badge { flex: none; color: var(--accent-brand-soft); font: 800 .53rem/1 ui-monospace,monospace; letter-spacing: .08em; }
.home-engine-card.is-preparing .home-engine-badge { color: #7d8797; }
.home-effect-filters { display: flex; gap: .45rem; overflow-x: auto; margin-bottom: .75rem; padding-bottom: .25rem; }
.home-effect-filter { flex: none; padding: .48rem .72rem; border: 1px solid rgba(255,255,255,.09); border-radius: 999px; background: rgba(255,255,255,.035); color: #a0aabd; font-size: .68rem; font-weight: 750; }
.home-effect-filter.is-active { border-color: rgba(var(--accent-brand-rgb), .4); background: rgba(var(--accent-brand-rgb), .11); color: var(--accent-brand-soft); }
.home-effects-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .65rem; }
.home-effect-card { display: flex; min-width: 0; align-items: center; gap: .7rem; padding: .65rem; border: 1px solid rgba(255,255,255,.08); border-radius: .8rem; background: rgba(13,16,24,.86); color: inherit; text-align: left; transition: border-color .18s ease, transform .18s ease; }
.home-effect-card:hover { transform: translateY(-2px); border-color: rgba(var(--accent-brand-rgb), .35); }
.home-effect-art { display: grid; width: 3.25rem; height: 3.25rem; flex: none; place-items: center; overflow: hidden; border: 1px solid rgba(var(--accent-brand-rgb), .18); border-radius: .65rem; background: radial-gradient(circle at 50% 50%,rgba(var(--accent-brand-rgb), .22),transparent 70%),#090b12; color: var(--accent-brand-soft); font-size: 1.75rem; }
.home-effect-copy { display: grid; min-width: 0; gap: .18rem; }
.home-effect-copy small { overflow: hidden; color: var(--accent-brand-soft); font-size: .52rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.home-effect-copy strong { overflow: hidden; color: #f8fafc; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.home-effect-copy > span { overflow: hidden; color: #929db0; font-size: .6rem; text-overflow: ellipsis; white-space: nowrap; }
.home-effect-copy em { padding-top: .14rem; color: #c7b8c6; font-size: .58rem; font-style: normal; font-weight: 750; }
.site-footer { width: 100%; }
.site-footer--home { margin-top: 4rem; padding: clamp(2.6rem,6vw,5rem) clamp(1rem,4vw,3.5rem) 1.2rem; background: var(--accent-brand); color: #080a0f; }
.site-footer-inner { display: grid; width: min(100%, 1500px); grid-template-columns: minmax(14rem,2.2fr) repeat(3,minmax(8rem,1fr)); gap: 2.5rem clamp(1rem,4vw,3.5rem); margin: 0 auto; }
.site-navbar-wordmark { display: block; width: clamp(6.25rem, 10vw, 8.5rem); height: auto; flex: none; }
.nav-create-menu { position: relative; }
.nav-create-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.92rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, rgba(var(--accent-brand-rgb), 0.24) 0%, rgba(var(--accent-brand-rgb), 0.1) 100%);
  border: 1px solid rgba(var(--accent-brand-rgb), 0.65);
  box-shadow: 0 0 22px rgba(var(--accent-brand-rgb), 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-create-trigger:hover {
  color: #ffffff;
  border-color: var(--accent-brand);
  background: linear-gradient(135deg, rgba(var(--accent-brand-rgb), 0.34) 0%, rgba(var(--accent-brand-rgb), 0.16) 100%);
  box-shadow: 0 0 28px rgba(var(--accent-brand-rgb), 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}
.nav-create-trigger.is-active, .nav-create-trigger[aria-current="page"] {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(var(--accent-brand-rgb), 0.32) 0%, rgba(var(--accent-brand-rgb), 0.14) 100%);
  border-color: var(--accent-brand);
  font-weight: 850;
  box-shadow: 0 0 26px rgba(var(--accent-brand-rgb), 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}
.nav-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: #2cff05;
  box-shadow: 0 0 8px rgba(var(--accent-brand-rgb), 0.85);
  animation: navLivePulse 2.2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes navLivePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}
.nav-create-chevron { width: 0.75rem; height: 0.75rem; color: currentColor; opacity: 0.7; transition: transform 0.2s ease; }
.nav-create-trigger[aria-expanded="true"] .nav-create-chevron { transform: rotate(180deg); }

/* Header 3 2-Column Bento Mega-Menu Popover */
.nav-create-popover, .mobile-create-menu {
  z-index: 60;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(150deg, rgba(12, 17, 29, 0.98) 0%, rgba(7, 10, 18, 0.99) 100%);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.06), 0 0 36px rgba(var(--accent-brand-rgb), 0.12);
  animation: fadeInModal 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.nav-create-popover {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  transform: translateX(-50%);
  width: min(37rem, calc(100vw - 2rem));
  padding: 0.85rem;
  border-radius: 1.35rem;
}
.mobile-create-menu {
  position: absolute;
  bottom: calc(100% + 0.75rem);
  left: 50%;
  transform: translateX(-50%);
  width: min(25rem, calc(100vw - 2rem));
  padding: 0.65rem;
  border-radius: 1.15rem;
}
.nav-create-popover.hidden, .mobile-create-menu.hidden { display: none !important; }
.nav-create-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.2rem 0.4rem 0.6rem;
}
.nav-create-menu-heading {
  display: block;
  color: #94a3b8;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.nav-create-menu-subbadge {
  font-size: 0.58rem;
  font-weight: 800;
  font-family: ui-monospace, 'JetBrains Mono', monospace;
  color: var(--accent-brand-soft);
  background: rgba(var(--accent-brand-rgb), 0.12);
  border: 1px solid rgba(var(--accent-brand-rgb), 0.32);
  padding: 0.14rem 0.48rem;
  border-radius: 9999px;
}
.nav-create-bento-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}
@media (max-width: 639px) {
  .nav-create-bento-grid {
    grid-template-columns: 1fr;
  }
}
.nav-create-menu-item {
  display: flex;
  min-height: 4.5rem;
  align-items: center;
  gap: 0.75rem;
  border-radius: 0.95rem;
  padding: 0.65rem 0.75rem;
  color: #cbd5e1;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-create-menu-item:hover, .nav-create-menu-item:focus-visible {
  background: linear-gradient(135deg, rgba(var(--accent-brand-rgb), 0.14) 0%, rgba(var(--accent-brand-rgb), 0.04) 100%);
  border-color: rgba(var(--accent-brand-rgb), 0.48);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 18px rgba(var(--accent-brand-rgb), 0.12);
  color: #ffffff;
  transform: translateY(-2px);
}
.nav-create-menu-thumb {
  position: relative;
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #070a12;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}
.nav-create-menu-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}
.nav-create-menu-item:hover .nav-create-menu-thumb img {
  transform: scale(1.08);
}
.nav-create-menu-icon {
  position: absolute;
  right: 2px;
  bottom: 2px;
  display: grid;
  width: 1.25rem;
  height: 1.25rem;
  place-items: center;
  border: 1px solid rgba(var(--accent-brand-rgb), 0.45);
  border-radius: 0.4rem;
  background: rgba(8, 12, 20, 0.9);
  color: var(--accent-brand-soft);
  font-size: 0.68rem;
  font-weight: 800;
  backdrop-filter: blur(4px);
  transition: all 0.16s ease;
}
.nav-create-menu-item:hover .nav-create-menu-icon {
  background: var(--accent-brand);
  border-color: var(--accent-brand-soft);
  color: #06090f;
  box-shadow: 0 0 12px rgba(var(--accent-brand-rgb), 0.6);
}
.nav-create-menu-copy { display: grid; gap: 0.2rem; min-width: 0; flex: 1; }
.nav-create-menu-title-row { display: flex; align-items: center; justify-content: space-between; gap: 0.35rem; flex-wrap: wrap; }
.nav-create-menu-copy strong { font-size: 0.82rem; font-weight: 800; color: #f8fafc; letter-spacing: -0.01em; }
.nav-create-item-badge {
  font-size: 0.54rem;
  font-weight: 800;
  font-family: ui-monospace, 'JetBrains Mono', monospace;
  color: var(--accent-brand-soft);
  background: rgba(var(--accent-brand-rgb), 0.12);
  border: 1px solid rgba(var(--accent-brand-rgb), 0.32);
  padding: 0.1rem 0.38rem;
  border-radius: 9999px;
  white-space: nowrap;
}
.nav-create-menu-copy small { color: #8b98ad; font-size: 0.66rem; line-height: 1.32; }
.nav-create-menu-footer {
  margin-top: 0.6rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}
.nav-create-menu-utility {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #cbd5e1;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.16s ease;
}
.nav-create-utility-icon {
  display: grid;
  width: 1.65rem;
  height: 1.65rem;
  place-items: center;
  border-radius: 0.45rem;
  background: rgba(var(--accent-brand-rgb), 0.12);
  border: 1px solid rgba(var(--accent-brand-rgb), 0.3);
  color: var(--accent-brand-soft);
}
.nav-create-menu-utility:hover {
  background: rgba(var(--accent-brand-rgb), 0.1);
  border-color: rgba(var(--accent-brand-rgb), 0.38);
  color: #fff;
}
.nav-create-utility-arrow {
  margin-left: auto;
  color: var(--accent-brand-soft);
  font-weight: 800;
}
.mobile-create-menu .nav-create-menu-item { min-height: 3.85rem; margin-bottom: 0.35rem; }
.mobile-create-menu .nav-create-menu-item:last-child { margin-bottom: 0; }
.site-footer-wordmark { display: inline-flex; width: min(100%, 18rem); align-items: center; justify-content: center; overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: .7rem; padding: .45rem .65rem; background: #06080d; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.site-footer-symbol { display: block; width: 2.35rem; height: 2.35rem; flex: none; object-fit: contain; }
.site-footer-wordmark img:not(.site-footer-symbol) { display: block; width: min(100%, 10.5rem); height: auto; object-fit: contain; }
.site-footer-lockup { display: block; width: 100%; height: auto; object-fit: contain; }
.site-footer-brand h2 { margin: 1.2rem 0 .65rem; font-size: clamp(2rem,4vw,3.35rem); font-weight: 900; line-height: .98; letter-spacing: -.035em; }
.site-footer-brand p { max-width: 30rem; margin: 0; color: #3f0035; font-size: .85rem; line-height: 1.6; }
.site-footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; }
.site-footer-column h3 { margin: .15rem 0 .4rem; font-size: .75rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.site-footer-column button, .site-footer-column a, .site-footer-bottom { color: #3f0035; font-size: .78rem; font-weight: 650; text-align: left; }
.site-footer-column button:hover, .site-footer-column a:hover { color: #080a0f; text-decoration: underline; text-underline-offset: 3px; }
.site-footer-bottom { display: flex; justify-content: space-between; grid-column: 1 / -1; gap: 1rem; margin-top: 1rem; border-top: 1px solid rgba(22,0,18,.22); padding-top: 1rem; }
.site-footer--compact { max-width: 1720px; margin: 0 auto; padding: .42rem 1.5rem calc(.55rem + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255,255,255,.07); color: #8892a4; font-size: .7rem; }
.site-footer-compact-inner { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.site-footer--compact button { color: var(--accent-brand-soft); font-size: .7rem; font-weight: 750; }
.site-footer--compact button:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* Consent notice stays out of the way while the essential app is available. */
/* ─── Cookie Consent Banner & Modal ─── */
.cookie-consent-root[hidden] { display: none !important; }
.cookie-consent-root {
  position: fixed;
  z-index: 200;
  right: 1.25rem;
  bottom: 1.25rem;
  display: block;
  width: min(22.5rem, calc(100vw - 2.5rem));
  padding: 0;
  pointer-events: none;
  animation: cookieNoticeFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 767px) {
  .cookie-consent-root {
    right: 0.75rem;
    left: 0.75rem;
    bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
    width: auto;
    max-width: 440px;
    margin: 0 auto;
  }
}

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

.cookie-consent-root.is-preferences {
  inset: 0;
  display: grid;
  place-items: center;
  width: auto;
  max-width: none;
  margin: 0;
  overflow-y: auto;
  padding: 1.25rem;
  background: rgba(4, 6, 11, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: auto;
}

.cookie-consent-backdrop {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(var(--accent-brand-rgb), 0.12), transparent 65%);
}

.cookie-consent-dialog {
  position: relative;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.15rem;
  background: #090e17;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 24px rgba(var(--accent-brand-rgb), 0.08);
  pointer-events: auto;
}

.cookie-consent-notice {
  padding: 1rem 1.15rem;
}

.cookie-consent-notice h1 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 850;
  color: #f8fafc;
  letter-spacing: -0.01em;
}

.cookie-consent-notice > p:not(.cookie-consent-kicker):not(.cookie-consent-error) {
  margin: 0.35rem 0 0;
  color: #94a3b8;
  font-size: 0.72rem;
  line-height: 1.45;
}

.cookie-consent-notice .cookie-consent-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.cookie-consent-notice .cookie-consent-actions button {
  min-height: 2.25rem;
  padding: 0.4rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: 0.6rem;
  cursor: pointer;
  transition: all 0.18s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-consent-accept {
  background: var(--accent-brand);
  color: #06080d;
  border: none;
  font-weight: 900;
  box-shadow: 0 0 14px rgba(var(--accent-brand-rgb), 0.35);
}

.cookie-consent-accept:hover:not(:disabled) {
  background: var(--accent-brand-soft);
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(var(--accent-brand-rgb), 0.6);
}

.cookie-consent-reject {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
}

.cookie-consent-reject:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.cookie-consent-notice .cookie-consent-link {
  grid-column: 1 / -1;
  background: transparent;
  border: none;
  color: var(--accent-brand-soft);
  font-size: 0.68rem;
  font-weight: 750;
  min-height: 1.6rem !important;
  padding: 0.15rem 0 !important;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.cookie-consent-notice .cookie-consent-link:hover {
  color: #fff;
}

/* Settings Modal Mode */
.cookie-consent-dialog-settings {
  width: min(100%, 42rem);
  max-height: calc(100dvh - 3rem);
  overflow-y: auto;
  padding: clamp(1.2rem, 3.5vw, 2rem);
}

.cookie-consent-dialog-settings h1, .cookie-consent-dialog-settings h2 { max-width: 15ch; margin: 0 2rem .65rem 0; color: #f8fafc; font-size: clamp(1.35rem,3.5vw,1.85rem); font-weight: 850; line-height: 1.1; letter-spacing: -.025em; }
.cookie-consent-dialog-settings > p:not(.cookie-consent-kicker):not(.cookie-consent-error) { margin: .5rem 0 1rem; color: #cbd5e1; font-size: .82rem; line-height: 1.65; }
.cookie-consent-summary { display: flex; align-items: flex-start; gap: .65rem; margin: 1rem 0 1.2rem; border: 1px solid rgba(var(--accent-brand-rgb), .22); border-radius: .75rem; padding: .78rem .85rem; color: #dbe2ea; font-size: .73rem; line-height: 1.5; }
.cookie-consent-dot { width: .55rem; height: .55rem; flex: none; margin-top: .2rem; border-radius: 50%; background: var(--accent-brand); box-shadow: 0 0 12px rgba(var(--accent-brand-rgb), .45); }
.cookie-consent-actions-settings { display: flex; justify-content: flex-end; gap: 0.65rem; margin-top: 1.25rem; }
.cookie-consent-actions-settings .cookie-consent-accept { min-height: 2.5rem; padding: 0.55rem 1.4rem; font-size: 0.8rem; border-radius: 0.75rem; }
.cookie-consent-actions-settings:has([data-consent-action="back"]) .cookie-consent-accept { grid-column: auto; }
.cookie-consent-legal { color: #aeb8c8 !important; font-size: .66rem !important; }
.cookie-consent-legal a { color: var(--accent-brand-soft); text-decoration: underline; text-underline-offset: 2px; }
.cookie-consent-close { position: absolute; top: 1rem; right: 1rem; display: grid; width: 2rem; height: 2rem; place-items: center; border-radius: .55rem; color: #d7deea; font-size: 1.25rem; }
.cookie-consent-category { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; border-top: 1px solid rgba(255,255,255,.09); padding: .9rem 0; cursor: pointer; }
.cookie-consent-category strong { display: block; color: #f8fafc; font-size: .8rem; }
.cookie-consent-category p { max-width: 55ch; margin: .25rem 0 0; color: #b8c2d1; font-size: .68rem; line-height: 1.55; }
.cookie-consent-category input { position: relative; appearance: none; width: 2.35rem; height: 1.35rem; flex: none; margin: .1rem 0 0; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: #222837; cursor: pointer; transition: background .18s ease,border-color .18s ease; }
.cookie-consent-category input::after { position: absolute; top: .18rem; left: .18rem; width: .9rem; height: .9rem; border-radius: 50%; background: #d7deea; content: ''; transition: transform .18s ease,background .18s ease; }
.cookie-consent-category input:checked { border-color: var(--accent-brand-soft); background: var(--accent-brand); }
.cookie-consent-category input:checked::after { transform: translateX(1rem); background: #080a0f; }
.cookie-consent-required { flex: none; color: var(--accent-brand-soft); font-size: .63rem; font-weight: 750; }
.cookie-consent-inactive { display: flex; flex-direction: column; gap: .2rem; border-top: 1px solid rgba(255,255,255,.09); padding: .8rem 0 .2rem; }
.cookie-consent-inactive strong { color: #e2e8f0; font-size: .75rem; }
.cookie-consent-inactive span { color: #aeb8c8; font-size: .66rem; }
.cookie-consent-error { margin: .75rem 0 0; color: #fda4af; font-size: .75rem; line-height: 1.45; }
.cookie-consent-loading { margin: .8rem 0 0; color: var(--accent-brand-soft); font-size: .75rem; font-weight: 700; text-align: center; }
.cookie-consent-root :focus-visible { outline: 2px solid var(--accent-brand-soft); outline-offset: 3px; }
.app-startup-error { display: grid; gap: .45rem; max-width: 38rem; margin: 2rem auto; border: 1px solid rgba(244,63,94,.32); border-radius: 1rem; padding: 1.25rem; background: #10101b; color: #f8fafc; }
.app-startup-error span { color: #cbd5e1; font-size: .88rem; line-height: 1.5; }
.cookie-consent-dialog h1:focus, .cookie-consent-dialog h2:focus { outline: none; }
#hub-mobile-bottom-nav #mobile-btn-create-menu > div { background: var(--accent-brand); box-shadow: none; color: #080a0f; }
#hub-mobile-bottom-nav #mobile-btn-create-menu > span { color: var(--accent-brand-soft); transition: color .18s ease; }
#hub-mobile-bottom-nav #mobile-btn-create-menu:hover > span { color: #fff; }
#hub-mobile-bottom-nav #mobile-btn-create-menu[aria-current="page"] > div { outline: 2px solid rgba(var(--accent-brand-rgb), .36); outline-offset: 2px; }
#hub-mobile-bottom-nav .mobile-nav-target { min-width: 44px; min-height: 44px; }
@media (max-width: 767px) {
  .home-showcase { gap: 2.8rem; padding-top: 2.8rem; }
  .home-preset-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .58rem; }
  .home-preset-card-featured { grid-column: 1/-1; display: grid; grid-template-columns: minmax(0,.92fr) minmax(0,1.08fr); }
  .home-preset-card-featured .home-card-media { height: 100%; min-height: 100%; aspect-ratio: auto; }
  .home-preset-card:not(.home-preset-card-featured) .home-card-media { min-height: 7.8rem; }
  .home-card-copy { padding: .7rem; }
  .home-card-copy h3 { font-size: .83rem; }
  .home-card-copy > p { min-height: 0; font-size: .67rem; }
  .home-preset-meta { font-size: .56rem; }
  .home-card-cta { min-height: 2.25rem; width: 100%; padding: .45rem .55rem; font-size: .64rem; }
  .home-horizontal-rail { grid-auto-columns: minmax(9.5rem,42vw); }
  .home-model-card .home-card-media { aspect-ratio: 4/5; }
  .home-video-feature { grid-template-columns: 1fr; gap: 1.15rem; }
  .home-video-feature::after { display: none; }
  .home-video-copy h2 { font-size: 1.8rem; }
  .home-effects-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .45rem; }
  .home-effect-card { align-items: start; gap: .5rem; padding: .52rem; }
  .home-effect-art { width: 2.5rem; height: 2.5rem; font-size: 1.35rem; }
  .home-effect-copy > span { white-space: normal; line-height: 1.35; }
  .home-effect-copy em { font-size: .53rem; }
  .site-footer-inner { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.7rem 1rem; }
  .site-footer-brand { grid-column: 1 / -1; }
  .site-footer-bottom { flex-direction: column; gap: .35rem; }
  .site-footer--compact { padding-inline: .8rem; }
}

@media (max-width: 380px) {
  .cookie-consent-root { right: .65rem; bottom: .65rem; width: calc(100vw - 1.3rem); }
  .cookie-consent-root.is-preferences { inset: 0; width: auto; padding: .65rem; }
  .cookie-consent-dialog { max-height: calc(100dvh - 1.3rem); border-radius: .9rem; padding: 1rem; }
  .cookie-consent-notice .cookie-consent-actions { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cookie-consent-notice .cookie-consent-actions button { grid-column: auto; }
  .cookie-consent-notice .cookie-consent-link { grid-column: 1 / -1 !important; }
  .cookie-consent-dialog-settings .cookie-consent-actions { grid-template-columns: 1fr; }
  .cookie-consent-dialog-settings .cookie-consent-actions button { grid-column: 1 / -1; }
  .site-footer-compact-inner { flex-wrap: wrap; }
  .home-preset-grid { grid-template-columns: 1fr; }
  .home-preset-card-featured { grid-column: auto; display: block; }
  .home-preset-card-featured .home-card-media { min-height: 9rem; aspect-ratio: 16/10; }
  .home-effects-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .home-preset-card, .home-model-card, .home-card-media img, .home-card-cta, .home-primary-action, .home-effect-card { transition: none; }
  .home-preset-card:hover, .home-model-card:hover, .home-effect-card:hover, .home-card-cta:hover, .home-primary-action:hover { transform: none; }
}

@media (max-width: 639px) {
  .feed-motion-entry { flex-wrap: wrap; }
  .feed-motion-entry-copy { flex-basis: calc(100% - 3.5rem); }
  .feed-motion-entry-button { width: 100%; }
}

@media (min-width: 640px) {
  .masonry-feed {
    column-count: 3;
    column-gap: 0.85rem;
  }
}

@media (min-width: 1024px) {
  .masonry-feed {
    column-count: 4;
    column-gap: 1.15rem;
  }
}

@media (min-width: 1440px) {
  .masonry-feed {
    column-count: 5;
    column-gap: 1.25rem;
  }
}

@media (min-width: 1920px) {
  .masonry-feed {
    column-count: 6;
    column-gap: 1.5rem;
  }
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 0.5rem;
  display: block;
}

.masonry-feed.vault-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-count: initial;
  gap: 0.85rem;
}

.vault-grid .masonry-item {
  width: 100%;
  margin: 0;
  break-inside: auto;
}

.vault-drop-target {
  min-height: 6.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1rem 1.4rem;
  border: 1px dashed rgba(var(--accent-brand-rgb), 0.38);
  border-radius: 0.9rem;
  background: rgba(var(--accent-brand-rgb), 0.045);
  color: #e2e8f0;
  font-size: 0.75rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.vault-drop-target small { color: #94a3b8; font-size: 0.65rem; }
.vault-drop-target:hover, .vault-drop-target.is-dragging { border-color: var(--accent-brand); background: rgba(var(--accent-brand-rgb), 0.12); }
#motion-source-preview-wrap.is-dragging #motion-source-preview { border-color: var(--accent-brand); background-color: rgba(var(--accent-brand-rgb), 0.12); }
.vault-drop-target:focus-visible { outline: 2px solid var(--accent-brand); outline-offset: 3px; }
.vault-drop-target:disabled { opacity: 0.6; cursor: wait; }

.library-image-picker-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(2, 4, 9, 0.84);
  backdrop-filter: blur(8px);
}

.library-image-picker {
  width: min(100%, 1040px);
  max-height: min(90vh, 900px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.2rem;
  background: #0b0f18;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  color: #e2e8f0;
}

.library-image-picker-header, .library-image-picker-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.library-image-picker-header h2 { margin-top: 0.15rem; color: #fff; font-size: 1rem; font-weight: 800; }
.library-image-picker-header p:not(.library-image-picker-eyebrow) { margin-top: 0.25rem; color: #94a3b8; font-size: 0.72rem; }
.library-image-picker-eyebrow { color: #67e8f9; font-size: 0.58rem; font-weight: 800; letter-spacing: 0.15em; }
.library-image-picker-close { flex: none; width: 2.3rem; height: 2.3rem; border: 1px solid rgba(255,255,255,.12); border-radius: .7rem; color: #cbd5e1; font-size: 1.4rem; }
.library-image-picker-search { margin: .9rem 1.2rem 0; width: calc(100% - 2.4rem); border: 1px solid rgba(255,255,255,.12); border-radius: .7rem; background: #080b12; padding: .65rem .8rem; color: #f8fafc; font-size: .8rem; }
.library-image-picker-search:focus { outline: 2px solid var(--accent-brand); outline-offset: 1px; }
.library-image-picker-status { min-height: 1.2rem; padding: .5rem 1.2rem; color: #94a3b8; font-size: .68rem; }
.library-image-picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); align-content: start; gap: .6rem; overflow: auto; padding: .2rem .9rem .8rem; }
.library-image-picker-card { position: relative; min-width: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: .8rem; background: #101520; }
.library-image-picker-card.is-selected { border-color: var(--accent-brand); box-shadow: 0 0 0 1px rgba(var(--accent-brand-rgb), .35); }
.library-image-picker-card [data-picker-select] { display: block; width: 100%; text-align: left; }
.library-image-picker-image-wrap { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; background: #05070c; }
.library-image-picker-image-wrap img { width: 100%; height: 100%; object-fit: contain; }
.library-image-picker-image-wrap img.is-blurred { filter: blur(18px); transform: scale(1.08); }
.library-image-picker-rating, .library-image-picker-private { position: absolute; z-index: 6; top: .45rem; left: .45rem; border: 1px solid rgba(255,255,255,.15); border-radius: .35rem; background: rgba(0,0,0,.75); padding: .15rem .35rem; color: white; font-size: .55rem; font-weight: 800; }
.library-image-picker-private { right: .45rem; left: auto; color: #fcd34d; }
.library-image-picker-filename { display: block; overflow: hidden; padding: .4rem .5rem; color: #cbd5e1; font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
.library-image-picker-reveal { position: absolute; z-index: 7; inset: 0; width: max-content; height: max-content; margin: auto; border: 1px solid rgba(255,255,255,.25); border-radius: .65rem; background: rgba(0,0,0,.8); padding: .5rem .7rem; color: white; font-size: .65rem; font-weight: 800; }
.library-image-picker-empty { grid-column: 1 / -1; padding: 2rem 0; color: #94a3b8; text-align: center; font-size: .8rem; }
.library-image-picker-footer { border-top: 1px solid rgba(255,255,255,.08); border-bottom: 0; }
.library-image-picker-selection { overflow: hidden; color: #94a3b8; font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.library-image-picker-footer > div { display: flex; flex: none; gap: .5rem; }
.library-image-picker-cancel, .library-image-picker-use { border: 1px solid rgba(255,255,255,.12); border-radius: .65rem; padding: .55rem .8rem; color: #cbd5e1; font-size: .7rem; font-weight: 700; }
.library-image-picker-use { border-color: rgba(var(--accent-brand-rgb), .45); background: var(--accent-brand); color: #080a0f; }
.library-image-picker-use:disabled { opacity: .45; cursor: not-allowed; }
.library-image-picker-trigger { display: flex; width: 100%; align-items: center; justify-content: center; gap: .5rem; border: 1px solid rgba(var(--accent-brand-rgb), .25); border-radius: .75rem; background: rgba(var(--accent-brand-rgb), .06); padding: .65rem .8rem; color: var(--accent-brand-soft); font-size: .72rem; font-weight: 700; }
.library-image-picker-trigger:hover { border-color: rgba(var(--accent-brand-rgb), .55); background: rgba(var(--accent-brand-rgb), .12); }
.library-image-picker-trigger:focus-visible { outline: 2px solid var(--accent-brand); outline-offset: 2px; }

@media (min-width: 640px) {
  .masonry-feed.vault-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
}

@media (min-width: 1024px) {
  .masonry-feed.vault-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem; }
}

@media (min-width: 1440px) {
  .masonry-feed.vault-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
}

@media (min-width: 640px) {
  .masonry-item {
    margin-bottom: 0.85rem;
  }
}

@media (min-width: 1024px) {
  .masonry-item {
    margin-bottom: 1.15rem;
  }
}

/* Card Styling */
.media-card {
  position: relative;
  border-radius: 0.85rem;
  overflow: hidden;
  background: #0d121c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 640px) {
  .media-card {
    border-radius: 1.1rem;
  }
}

.media-card:hover {
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.75), 0 0 20px rgba(245, 158, 11, 0.2);
  transform: translateY(-3px);
}

.media-card-skeleton {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #090d16 0%, #151d2d 50%, #090d16 100%);
  background-size: 200% 100%;
  animation: card-shimmer 1.6s ease-in-out infinite;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 5;
}

.media-card-skeleton.is-hidden {
  opacity: 0;
  visibility: hidden;
}

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

.media-card .card-overlay {
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: translateY(0);
}

.media-card:hover .card-overlay {
  opacity: 1;
  pointer-events: none;
  transform: translateY(0);
}

.media-card:focus-within .card-overlay {
  opacity: 1;
  pointer-events: none;
  transform: translateY(0);
}

.media-card .card-overlay :is(button, a) {
  pointer-events: auto;
}

.media-card[data-is-blurred="true"] .media-card-open {
  pointer-events: none;
}

.media-card-open {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.media-card-open:focus-visible {
  outline: 3px solid var(--accent-brand);
  outline-offset: -4px;
  border-radius: inherit;
}

.media-card-favorite:focus-visible,
.feed-cat-btn:focus-visible,
.feed-favorites-button:focus-visible {
  outline: 2px solid var(--accent-brand);
  outline-offset: 2px;
}

.feed-favorites-button.is-active {
  color: #fda4af;
  border-color: rgba(244, 63, 94, .4);
  background: rgba(244, 63, 94, .14);
}

.mobile-search-panel:not(.hidden) {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  padding: .75rem;
  background: rgba(6, 8, 13, .98);
  border-bottom: 1px solid var(--border-medium);
}

/* Touch screen support: avoid hover traps */
@media (hover: none) {
  .media-card:active {
    transform: scale(0.99);
  }
  .media-card .card-header-badge {
    opacity: 1 !important;
  }
  .media-card .card-overlay {
    opacity: 1;
    pointer-events: none;
    transform: none;
  }
}

.media-card .card-header-badge {
  opacity: 0.95;
  transition: opacity 0.2s ease;
}

.media-card:hover .card-header-badge {
  opacity: 1;
}

/* Safe Area Insets for Mobile devices */
.pb-safe {
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0.75rem));
}
.pt-safe {
  padding-top: max(0.5rem, env(safe-area-inset-top, 0.5rem));
}

/* Directional Camera Compass & 3D Gyro (Higgsfield Style) */
.motion-stage-box {
  position: relative;
  perspective: 800px;
}

.motion-compass-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 220px;
  height: 220px;
  margin: 0 auto;
}

.gyro-ring {
  position: absolute;
  border-radius: 9999px;
  border: 1px dashed rgba(6, 182, 212, 0.25);
  pointer-events: none;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gyro-ring-1 {
  width: 210px;
  height: 210px;
  border-color: rgba(6, 182, 212, 0.2);
  animation: gyroSpin 20s linear infinite;
}

.gyro-ring-2 {
  width: 170px;
  height: 170px;
  border: 1px solid rgba(245, 158, 11, 0.15);
  animation: gyroSpinRev 15s linear infinite;
}

@keyframes gyroSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes gyroSpinRev {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

.motion-compass {
  position: relative;
  width: 150px;
  height: 150px;
  border-radius: 9999px;
  background: radial-gradient(circle, #101828 35%, #080d16 100%);
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.9), 0 6px 24px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  z-index: 2;
}

.compass-btn {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 9999px;
  background: rgba(18, 25, 41, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.compass-btn:hover, .compass-btn.active {
  background: #06b6d4;
  color: #06090e;
  border-color: #22d3ee;
  box-shadow: 0 0 18px rgba(6, 182, 212, 0.6);
  transform: scale(1.12);
}

.compass-btn:active {
  transform: scale(0.95);
}

/* Compass Positions */
.compass-n  { top: 6px; left: calc(50% - 17px); }
.compass-s  { bottom: 6px; left: calc(50% - 17px); }
.compass-w  { left: 6px; top: calc(50% - 17px); }
.compass-e  { right: 6px; top: calc(50% - 17px); }
.compass-center {
  width: 42px;
  height: 42px;
  border-radius: 9999px;
  background: #141d2f;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--accent-brand);
}
.compass-center:hover, .compass-center.active {
  background: var(--accent-brand);
  color: #06090e;
  border-color: var(--accent-brand-soft);
  box-shadow: 0 0 20px rgba(var(--accent-brand-rgb), 0.6);
}

/* Trigger Word Chip Pill */
.trigger-chip {
  background: rgba(var(--accent-brand-rgb), 0.1);
  border: 1px solid rgba(var(--accent-brand-rgb), 0.3);
  color: var(--accent-brand-soft);
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  padding: 3px 9px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}

.trigger-chip:hover {
  background: rgba(var(--accent-brand-rgb), 0.28);
  border-color: var(--accent-brand);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 0 10px rgba(var(--accent-brand-rgb), 0.3);
}

/* Preset director card */
.director-preset-card {
  background: rgba(16, 23, 37, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}

.director-preset-card:hover {
  border-color: rgba(6, 182, 212, 0.45);
  background: rgba(6, 182, 212, 0.08);
  transform: translateY(-2px);
}

.motion-advanced-controls[open] .motion-details-chevron {
  transform: rotate(180deg);
}

.motion-details-chevron {
  transition: transform 0.2s ease;
}

/* Floating Generation Queue */
.floating-queue-badge {
  position: fixed;
  bottom: 80px;
  left: 16px;
  z-index: 45;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 768px) {
  .floating-queue-badge {
    bottom: 24px;
    left: 24px;
  }
}

/* Checkerboard for Transparent Alpha Previews */
.checkerboard-bg {
  background-image: linear-gradient(45deg, #101623 25%, transparent 25%),
                    linear-gradient(-45deg, #101623 25%, transparent 25%),
                    linear-gradient(45deg, transparent 75%, #101623 75%),
                    linear-gradient(-45deg, transparent 75%, #101623 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
  background-color: #090c12;
}

/* Subtle Canvas Grid */
.studio-canvas-bg {
  background-color: #06080d;
  background-image: 
    radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 24px 24px, 72px 72px, 72px 72px;
}

@keyframes fadeInModal {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.animate-fade-in {
  animation: fadeInModal 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes shakeAlert {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.animate-shake {
  animation: shakeAlert 0.4s ease-in-out;
}

/* Compact LoRA picker inside the Studio checkpoint section */
.studio-lora-picker {
  padding: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 0.85rem;
  background: rgba(4, 8, 15, 0.45);
}

.studio-lora-picker-count {
  overflow: hidden;
  color: #94a3b8;
  font-size: 0.62rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.studio-lora-add-button,
.studio-lora-option-action {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  flex: none;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 0.55rem;
  padding: 0.35rem 0.6rem;
  background: rgba(245, 158, 11, 0.09);
  color: #fcd34d;
  font-size: 0.66rem;
  font-weight: 750;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.studio-lora-add-button:hover,
.studio-lora-option-action:hover:not(:disabled) {
  border-color: rgba(245, 158, 11, 0.7);
  background: rgba(245, 158, 11, 0.18);
}

.studio-lora-option-action.is-added {
  border-color: rgba(34, 211, 238, 0.25);
  background: rgba(34, 211, 238, 0.08);
  color: #67e8f9;
}

.studio-lora-add-button:focus-visible,
.studio-lora-search:focus-visible,
.studio-lora-option-action:focus-visible {
  outline: 2px solid var(--accent-brand-soft);
  outline-offset: 2px;
}

.studio-lora-search {
  width: 100%;
  min-height: 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.65rem;
  padding: 0.5rem 0.7rem;
  background: #090d16;
  color: #e2e8f0;
  font-size: 0.7rem;
}

.studio-lora-search::placeholder { color: #64748b; }
.studio-lora-search:focus { border-color: rgba(245, 158, 11, 0.65); outline: none; }

.studio-lora-picker-results {
  display: grid;
  max-height: 17rem;
  gap: 0.4rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 0.15rem;
  scrollbar-color: rgba(148, 163, 184, 0.3) transparent;
  scrollbar-width: thin;
}

.studio-lora-picker-message {
  margin: 0;
  border: 1px dashed rgba(148, 163, 184, 0.18);
  border-radius: 0.65rem;
  padding: 0.7rem;
  color: #94a3b8;
  font-size: 0.67rem;
  line-height: 1.45;
}

.studio-lora-option {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0.7rem;
  padding: 0.35rem;
  background: rgba(255, 255, 255, 0.025);
}

.studio-lora-option:hover { border-color: rgba(34, 211, 238, 0.25); }

.studio-lora-thumb {
  width: 3rem;
  height: 3.5rem;
  flex: none;
  border-radius: 0.5rem;
  object-fit: cover;
  background: #101827;
}

.studio-lora-thumb-blurred { filter: blur(8px); transform: scale(0.92); }

.studio-lora-thumb-placeholder {
  display: grid;
  place-items: center;
  border: 1px dashed rgba(148, 163, 184, 0.2);
  color: #64748b;
  text-align: center;
  font-size: 0.53rem;
  line-height: 1.2;
}

.studio-lora-option-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.16rem;
}

.studio-lora-option-name {
  width: 100%;
  overflow: hidden;
  color: #f1f5f9;
  font-size: 0.66rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.studio-lora-option-arch {
  overflow: hidden;
  max-width: 100%;
  color: #94a3b8;
  font-size: 0.59rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.studio-lora-rating {
  max-width: 100%;
  overflow: hidden;
  border-width: 1px;
  border-radius: 0.3rem;
  padding: 0.08rem 0.3rem;
  font-size: 0.53rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.studio-lora-rating-pending {
  border-color: rgba(148, 163, 184, 0.25);
  background: rgba(30, 41, 59, 0.75);
  color: #cbd5e1;
}

.studio-lora-option-action {
  min-width: 4.2rem;
  min-height: 2.25rem;
  padding-inline: 0.45rem;
  font-size: 0.59rem;
}

.studio-lora-option-action:disabled { cursor: default; opacity: 0.9; }

@media (max-width: 380px) {
  .studio-lora-option { gap: 0.4rem; }
  .studio-lora-option-action { min-width: 3.65rem; padding-inline: 0.3rem; }
  .studio-lora-thumb { width: 2.65rem; height: 3.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .studio-lora-add-button,
  .studio-lora-option-action { transition: none; }
}

/* Personal generation queue */
.queue-modal-layer {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(3, 3, 8, 0.78);
  backdrop-filter: blur(14px);
  animation: queue-overlay-in 180ms ease-out both;
}
.queue-modal-layer.hidden,.queue-minimized-tracker.hidden { display: none; }

.queue-modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  cursor: default;
}

.queue-modal {
  position: relative;
  display: flex;
  width: min(70rem, calc(100vw - 2.5rem));
  max-height: min(88dvh, 56rem);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(var(--accent-brand-rgb), 0.28);
  border-radius: 1.25rem;
  background: #0a0a12;
  color: #f8fafc;
  box-shadow: 0 2rem 7rem rgba(0, 0, 0, 0.62), 0 0 2.5rem rgba(var(--accent-brand-rgb), 0.08);
  animation: queue-dialog-in 220ms cubic-bezier(.2,.8,.2,1) both;
}

.queue-modal-header {
  display: flex;
  min-height: 4.7rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(105deg, rgba(var(--accent-brand-rgb), .08), transparent 42%);
}

.queue-modal-header h2 { margin: 0; font-size: 1rem; font-weight: 800; letter-spacing: -.02em; }
.queue-connection-text { margin: .22rem 0 0; color: #9293a5; font-size: .72rem; }
.queue-connection-text.is-reconnecting { color: #fbbf24; }
.queue-modal-controls,.queue-tracker-actions { display: flex; align-items: center; gap: .45rem; }
.queue-icon-button {
  display: inline-grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: .7rem;
  background: rgba(255,255,255,.035);
  color: #cbd5e1;
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}
.queue-icon-button:hover { border-color: rgba(var(--accent-brand-rgb), .45); background: rgba(var(--accent-brand-rgb), .1); color: #fff; }
.queue-icon-button svg { width: 1rem; height: 1rem; }
.queue-modal :focus-visible,.queue-minimized-tracker :focus-visible { outline: 2px solid var(--accent-brand-soft); outline-offset: 2px; }
.queue-reconnect-banner { margin: .7rem 1rem 0; padding: .65rem .8rem; border: 1px solid rgba(251,191,36,.22); border-radius: .75rem; background: rgba(120,53,15,.16); color: #fcd34d; font-size: .72rem; line-height: 1.45; }
.queue-modal-body { display: grid; min-height: 0; flex: 1; grid-template-columns: minmax(0, 1.1fr) minmax(18rem, .9fr); gap: 1rem; overflow: auto; padding: 1rem; }
.queue-featured-column { min-width: 0; }
.queue-featured-heading { display: flex; align-items: center; justify-content: space-between; margin: 0 0 .65rem; }
.queue-featured-heading h3,.queue-section-heading h3 { margin: 0; color: #f1f5f9; font-size: .82rem; font-weight: 750; }
.queue-featured-heading p { margin: .2rem 0 0; color: #83859a; font-size: .68rem; }
.queue-list-column { display: flex; min-width: 0; flex-direction: column; gap: 1rem; }
.queue-list-section { min-width: 0; }
.queue-section-heading { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin: 0 0 .55rem; }
.queue-section-heading > span { color: #818398; font-size: .64rem; }
.queue-section-heading > :last-child:not(h3) { display: grid; min-width: 1.35rem; height: 1.35rem; place-items: center; border: 1px solid rgba(255,255,255,.09); border-radius: 999px; background: rgba(255,255,255,.035); color: #d1d5db; font-size: .64rem; }
.queue-batch-list { display: flex; flex-direction: column; gap: .55rem; }
.queue-history-section { padding-top: .85rem; border-top: 1px solid rgba(255,255,255,.08); }
.queue-batch-card { min-width: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.085); border-radius: .9rem; background: #101018; }
.queue-batch-featured { border-color: rgba(var(--accent-brand-rgb), .21); background: linear-gradient(155deg, rgba(var(--accent-brand-rgb), .045), #101018 38%); }
.queue-card-content { padding: .82rem; }
.queue-batch-featured .queue-card-content { padding: 1rem; }
.queue-batch-featured .queue-operation-title { font-size: .92rem; }
.queue-batch-featured .queue-card-count { font-size: .73rem; }
.queue-batch-featured .queue-status-badge { padding: .28rem .58rem; font-size: .64rem; }
.queue-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: .6rem; }
.queue-operation-title { margin: 0; color: #f8fafc; font-size: .82rem; font-weight: 750; }
.queue-card-count { margin: .2rem 0 0; color: #85869a; font-size: .67rem; }
.queue-status-badge,.queue-history-status { flex: none; border: 1px solid rgba(255,255,255,.1); border-radius: 999px; padding: .22rem .48rem; background: rgba(255,255,255,.04); color: #cbd5e1; font-size: .59rem; font-weight: 750; white-space: nowrap; }
.queue-status-badge.status-processing,.queue-status-badge.status-uploading { border-color: rgba(var(--accent-brand-rgb), .3); background: rgba(var(--accent-brand-rgb), .1); color: var(--accent-brand-soft); }
.queue-status-badge.status-completed,.queue-history-status.status-completed { border-color: rgba(52,211,153,.25); background: rgba(16,185,129,.08); color: #6ee7b7; }
.queue-status-badge.status-failed,.queue-history-status.status-failed { color: #fda4af; }
.queue-status-badge.status-cancelled,.queue-status-badge.status-interrupted { color: #c4b5fd; }
.queue-summary { display: flex; flex-wrap: wrap; gap: .35rem; margin: .58rem 0; }
.queue-operation-chip,.queue-model-chip,.queue-lora-summary,.queue-batch-summary { max-width: 100%; overflow: hidden; border: 1px solid rgba(255,255,255,.075); border-radius: .4rem; padding: .24rem .42rem; background: rgba(255,255,255,.035); color: #bfc1d0; font-size: .61rem; text-overflow: ellipsis; white-space: nowrap; }
.queue-operation-chip { border-color: rgba(var(--accent-brand-rgb), .18); color: var(--accent-brand-soft); }
.queue-status-text,.queue-estimate-line { margin: .38rem 0 0; color: #b0b2c1; font-size: .69rem; line-height: 1.4; }
.queue-estimate-line { color: #9a9bac; }
.queue-estimate-line .is-offline { color: #fbbf24; }
.queue-estimate-line .is-online { color: #6ee7b7; }
.queue-estimate-label { display: block; margin-top: .18rem; color: #77798d; font-size: .58rem; }
.queue-error-text,.queue-media-unavailable { margin: .5rem 0 0; color: #fda4af; font-size: .68rem; line-height: 1.45; }
.queue-prompt-panel { margin-top: .55rem; padding: .7rem; border: 1px solid rgba(255,255,255,.09); border-radius: .75rem; background: rgba(0,0,0,.2); }
.queue-prompt-panel > p { margin: 0 0 .5rem; color: #a5a7b7; font-size: .68rem; line-height: 1.45; }
.queue-prompt-translation h3 { margin: 0 0 .45rem; color: #e5e7eb; font-size: .72rem; font-weight: 700; }
.queue-prompt-translation-entry { margin: .45rem 0; padding: .55rem; border-radius: .6rem; background: rgba(255,255,255,.035); }
.queue-prompt-translation-entry h4 { margin: 0; color: #c4b5fd; font-size: .65rem; font-weight: 700; }
.queue-prompt-translation-entry > p { margin: .25rem 0 .5rem; color: #a5a7b7; font-size: .62rem; }
.queue-prompt-translation-field { display: grid; gap: .2rem; margin-top: .4rem; }
.queue-prompt-translation-field dt { color: #8e91a3; font-size: .61rem; font-weight: 700; }
.queue-prompt-translation-field dd { margin: 0; color: #e5e7eb; font-size: .67rem; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-wrap; }
.queue-progress-track,.queue-tracker-progress { display: block; height: .32rem; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.1); }
.queue-progress-track { margin-top: .7rem; }
.queue-progress-track > span,.queue-tracker-progress > i { display: block; width: 100%; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--accent-brand-strong),var(--accent-brand-soft)); transform: scaleX(var(--queue-progress, 0)); transform-origin: left center; transition: transform .35s ease; }
.queue-progress-label { display: flex; justify-content: space-between; margin: .25rem 0 0; color: #9b9cad; font-size: .62rem; }
.queue-progress-label strong { color: var(--accent-brand-soft); }
.queue-card-preview { display: grid; min-height: 11rem; max-height: 20rem; place-items: center; overflow: hidden; background: radial-gradient(ellipse at center,rgba(var(--accent-brand-rgb), .08),transparent 68%),#07070c; }
.queue-result-gallery { width: 100%; min-width: 0; padding: .9rem; background: linear-gradient(145deg,rgba(var(--accent-brand-rgb), .045),transparent 55%); }
.queue-result-toolbar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin: 0 0 .7rem; }
.queue-result-eyebrow { color: var(--accent-brand-soft); font-size: .56rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.queue-result-heading { margin: .18rem 0 0; color: #f5f5fa; font-size: .84rem; font-weight: 800; letter-spacing: -.015em; }
.queue-result-counts { display: flex; flex: none; flex-direction: column; align-items: flex-end; gap: .18rem; }
.queue-result-count,.queue-result-failures { color: #a8a8b7; font-size: .61rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.queue-result-count { color: #d3d4df; font-weight: 700; }
.queue-result-failures { color: #fda4af; }
.queue-result-strip { display: flex; min-width: 0; gap: .65rem; overflow-x: auto; padding: .12rem .06rem .38rem; scroll-snap-type: x mandatory; scrollbar-color: rgba(var(--accent-brand-rgb), .45) transparent; }
.queue-output-card { position: relative; display: grid; width: min(56%, 17rem); min-width: 8rem; max-height: 22rem; flex: 0 0 min(56%, 17rem); aspect-ratio: 3 / 4; place-items: center; overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: .85rem; background: linear-gradient(145deg,#171521,#090910 68%); box-shadow: 0 .45rem 1.2rem rgba(0,0,0,.28); scroll-snap-align: start; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.queue-output-card.is-video { aspect-ratio: 16 / 9; max-height: 70vh; }
.queue-output-card:hover { transform: translateY(-2px); border-color: rgba(var(--accent-brand-rgb), .48); box-shadow: 0 .7rem 1.6rem rgba(0,0,0,.38),0 0 1.1rem rgba(var(--accent-brand-rgb), .1); }
.queue-output-media { position: relative; display: grid; width: 100%; height: 100%; max-height: 22rem; place-items: center; overflow: hidden; }
.queue-output-card.is-video .queue-output-media { max-height: 70vh; aspect-ratio: 16 / 9; }
.queue-output-card.is-video .queue-result-preview { height: 100%; max-height: 70vh; }
.queue-result-preview { display: block; width: 100%; height: 100%; max-height: 22rem; object-fit: contain; }
.queue-output-open { display: grid; width: 100%; height: 100%; place-items: center; overflow: hidden; border: 0; padding: 0; background: transparent; cursor: zoom-in; }
.queue-output-open .queue-result-preview { transition: transform .25s ease; }
.queue-output-open:hover .queue-result-preview { transform: scale(1.035); }
.queue-video-load { display: flex; width: 100%; height: 100%; flex-direction: column; align-items: center; justify-content: center; gap: .55rem; border: 0; background: radial-gradient(circle,rgba(var(--accent-brand-rgb), .14),transparent 70%); color: var(--accent-brand-soft); font-size: .65rem; font-weight: 700; }
.queue-video-load svg { width: 1.5rem; height: 1.5rem; }
.queue-output-index { position: absolute; z-index: 6; top: .4rem; left: .4rem; display: grid; min-width: 1.45rem; height: 1.45rem; place-items: center; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; background: rgba(5,5,10,.78); color: #fff; font-size: .58rem; font-variant-numeric: tabular-nums; }
.queue-output-error { display: flex; width: 100%; height: 100%; flex-direction: column; align-items: center; justify-content: center; gap: .45rem; padding: .65rem; color: #a8a8b7; font-size: .6rem; text-align: center; }
.queue-output-error svg { width: 1.2rem; height: 1.2rem; color: #fda4af; }
.queue-output-error .queue-action-button { margin-top: 0; }
.queue-result-hint { margin: .42rem 0 0; color: #85869a; font-size: .58rem; }
.queue-result-gallery.is-compact { padding: .35rem; }
.queue-result-gallery.is-compact .queue-result-toolbar,.queue-result-gallery.is-compact .queue-result-hint { display: none; }
.queue-result-gallery.is-compact .queue-output-card { width: 100%; min-width: 0; max-height: 8rem; flex-basis: 100%; aspect-ratio: 1; }
.queue-result-gallery.is-compact .queue-output-card.is-video { max-height: 70vh; aspect-ratio: 16 / 9; }
.queue-result-gallery.is-compact .queue-result-preview { max-height: 8rem; }
.queue-result-gallery.is-compact .queue-output-media { max-height: 8rem; }
.queue-result-gallery.is-compact .queue-output-card.is-video .queue-output-media,.queue-result-gallery.is-compact .queue-output-card.is-video .queue-result-preview { max-height: 70vh; }
.queue-preview-placeholder { display: flex; min-height: 11rem; flex-direction: column; align-items: center; justify-content: center; gap: .65rem; padding: 1rem; color: #898a9b; font-size: .69rem; text-align: center; }
.queue-preview-placeholder svg { width: 1.6rem; height: 1.6rem; color: #e879d6; }
.queue-preview-placeholder.is-compact { min-height: 4rem; }
.queue-action-button { min-height: 2.05rem; margin-top: .65rem; border: 1px solid rgba(255,255,255,.11); border-radius: .55rem; padding: .4rem .62rem; background: rgba(255,255,255,.04); color: #d9d9e3; font-size: .64rem; font-weight: 700; transition: border-color .15s ease, background .15s ease; }
.queue-action-button:hover { border-color: rgba(var(--accent-brand-rgb), .4); background: rgba(var(--accent-brand-rgb), .09); }
.queue-action-cancel { color: #fda4af; }
.queue-action-delete { border-color: rgba(251,113,133,.16); color: #fda4af; }
.queue-card-actions { display: flex; flex-wrap: wrap; gap: .35rem; }
.queue-mini-row,.queue-history-select { display: flex; width: 100%; min-width: 0; align-items: center; gap: .55rem; border: 1px solid rgba(255,255,255,.065); border-radius: .7rem; padding: .6rem; background: rgba(255,255,255,.025); color: #e5e7eb; text-align: left; }
.queue-mini-row:hover,.queue-history-select:hover { border-color: rgba(var(--accent-brand-rgb), .27); background: rgba(var(--accent-brand-rgb), .055); }
.queue-mini-status-dot { width: .48rem; height: .48rem; flex: none; border-radius: 999px; background: #64748b; }
.queue-mini-status-dot.is-active { background: var(--accent-brand-soft); box-shadow: 0 0 .7rem rgba(var(--accent-brand-rgb), .65); }
.queue-mini-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: .16rem; }
.queue-mini-copy strong { overflow: hidden; font-size: .67rem; text-overflow: ellipsis; white-space: nowrap; }
.queue-mini-copy small,.queue-history-select small { overflow: hidden; color: #85869a; font-size: .59rem; text-overflow: ellipsis; white-space: nowrap; }
.queue-mini-count { color: #bdbecb; font-size: .63rem; font-variant-numeric: tabular-nums; }
.queue-history-entry { overflow: hidden; border: 1px solid rgba(255,255,255,.07); border-radius: .75rem; background: rgba(255,255,255,.02); }
.queue-history-select { display: grid; grid-template-columns: 1fr auto; gap: .25rem .5rem; border: 0; border-radius: 0; background: transparent; }
.queue-history-select small { grid-column: 1 / -1; }
.queue-history-operation { color: #e5e7eb; font-size: .67rem; font-weight: 700; }
.queue-history-status { padding: .14rem .4rem; }
.queue-history-entry .queue-batch-card { margin: 0 .35rem .35rem; }
.queue-history-entry .queue-card-preview { min-height: 5rem; max-height: 9rem; }
.queue-history-entry .queue-output-card { width: min(55%, 8rem); min-width: 5.5rem; max-height: 9rem; flex-basis: min(55%, 8rem); }
.queue-history-entry .queue-output-card.is-video { max-height: 70vh; }
.queue-history-entry .queue-result-preview { max-height: 9rem; }
.queue-dismissed-section { display: flex; flex-direction: column; gap: .4rem; margin-top: .75rem; padding-top: .7rem; border-top: 1px solid rgba(255,255,255,.07); }
.queue-dismissed-section h4 { display: flex; align-items: center; gap: .4rem; margin: 0; color: #999aaa; font-size: .63rem; font-weight: 700; }
.queue-dismissed-section h4 span { color: var(--accent-brand-soft); }
.queue-dismissed-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; border: 1px solid rgba(255,255,255,.06); border-radius: .65rem; padding: .45rem .55rem; background: rgba(255,255,255,.02); }
.queue-dismissed-row > span { display: flex; min-width: 0; flex-direction: column; gap: .15rem; }
.queue-dismissed-row strong,.queue-dismissed-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.queue-dismissed-row strong { color: #d7d7e2; font-size: .62rem; }
.queue-dismissed-row small { color: #85869a; font-size: .56rem; }
.queue-dismissed-row > div { display: flex; flex: none; gap: .25rem; }
.queue-dismissed-row .queue-action-button { min-height: 1.85rem; margin: 0; padding: .3rem .45rem; font-size: .58rem; }
.queue-section-empty { margin: 0; padding: .7rem; color: #818398; font-size: .67rem; text-align: center; }
.queue-empty-state { display: flex; min-height: 18rem; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; border: 1px dashed rgba(255,255,255,.11); border-radius: .9rem; padding: 1.2rem; text-align: center; }
.queue-empty-icon { display: grid; width: 3rem; height: 3rem; place-items: center; border: 1px solid rgba(var(--accent-brand-rgb), .19); border-radius: 1rem; background: rgba(var(--accent-brand-rgb), .06); color: var(--accent-brand-soft); }
.queue-empty-icon svg { width: 1.25rem; height: 1.25rem; }
.queue-empty-state h3 { margin: 0; font-size: .84rem; }
.queue-empty-state p { max-width: 19rem; margin: 0; color: #8b8c9e; font-size: .68rem; line-height: 1.5; }
.queue-loading-state { display: flex; min-height: 18rem; flex-direction: column; align-items: center; justify-content: center; gap: .8rem; color: #9999aa; font-size: .7rem; }
.queue-loading-state p { margin: 0; }
.queue-loading-spinner { width: 1.65rem; height: 1.65rem; border: 2px solid rgba(255,255,255,.12); border-top-color: var(--accent-brand); border-radius: 50%; animation: queue-spin .8s linear infinite; }
.queue-minimized-tracker { position: fixed; z-index: 90; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); display: flex; width: min(27rem, calc(100vw - 2rem)); align-items: center; gap: .5rem; border: 1px solid rgba(var(--accent-brand-rgb), .3); border-radius: .95rem; padding: .55rem; background: rgba(10,10,18,.96); box-shadow: 0 .8rem 2.5rem rgba(0,0,0,.45),0 0 1.5rem rgba(var(--accent-brand-rgb), .08); backdrop-filter: blur(16px); }
.queue-minimized-tracker #queue-minimized-card { min-width: 0; flex: 1; }
.queue-tracker-content { display: flex; min-width: 0; align-items: center; gap: .65rem; }
.queue-tracker-thumb-wrap,.queue-tracker-thumb-placeholder { position: relative; display: grid; width: 2.8rem; height: 3.1rem; flex: none; place-items: center; overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: .55rem; background: #17131c; color: #e879d6; }
.queue-tracker-thumb { width: 100%; height: 100%; object-fit: cover; }
.queue-tracker-thumb-placeholder svg { width: 1rem; height: 1rem; }
.queue-tracker-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: .16rem; }
.queue-tracker-copy strong,.queue-tracker-copy > span,.queue-tracker-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.queue-tracker-copy strong { color: #f4f4f8; font-size: .68rem; }
.queue-tracker-copy > span { color: #c2c2cf; font-size: .62rem; }
.queue-tracker-copy small { color: #9394a4; font-size: .58rem; }
.queue-tracker-progress { height: .22rem; margin-top: .08rem; }
.queue-tracker-actions { flex: none; }
.queue-tracker-expand { display: flex; min-height: 2.2rem; align-items: center; gap: .3rem; border: 1px solid rgba(var(--accent-brand-rgb), .21); border-radius: .6rem; padding: .38rem .52rem; background: rgba(var(--accent-brand-rgb), .08); color: var(--accent-brand-soft); font-size: .63rem; font-weight: 750; }
.queue-tracker-expand svg { width: .85rem; height: .85rem; }
.queue-tracker-empty { margin: 0; color: #c4c4d1; font-size: .68rem; }
@keyframes queue-overlay-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes queue-dialog-in { from { opacity: 0; transform: translateY(.65rem) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes queue-spin { to { transform: rotate(360deg); } }

@media (max-width: 760px) {
  .queue-modal-layer { align-items: end; padding: 0; }
  .queue-modal { width: 100%; max-height: 88dvh; border-radius: 1.1rem 1.1rem 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .queue-modal-header { min-height: 4.25rem; padding: .7rem .9rem; }
  .queue-modal-body { display: flex; flex-direction: column; gap: 1rem; padding: .8rem; }
  .queue-featured-column { order: 0; }
  .queue-list-column { order: 1; }
  .queue-card-preview { min-height: 9rem; max-height: 30dvh; }
  .queue-result-gallery { padding: .75rem; }
  .queue-result-toolbar { align-items: flex-start; }
  .queue-result-heading { font-size: .8rem; }
  .queue-output-card { width: min(72%, 14rem); min-width: 8rem; max-height: 30dvh; flex-basis: min(72%, 14rem); }
  .queue-result-preview { max-height: 30dvh; }
  .queue-empty-state { min-height: 11rem; }
  .queue-minimized-tracker { right: .65rem; bottom: calc(4.6rem + env(safe-area-inset-bottom)); width: calc(100vw - 1.3rem); }
}

@media (prefers-reduced-motion: reduce) {
  .queue-modal-layer,.queue-modal,.queue-loading-spinner { animation: none; }
  .queue-icon-button,.queue-action-button,.queue-progress-track > span,.queue-tracker-progress > i,.queue-tracker-expand { transition: none; }
}
.profile-page { color: #eef1f7; }
.profile-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:1rem; margin-bottom:1.5rem; }
.profile-heading h1 { margin:0; font-size:1.65rem; line-height:1.15; font-weight:850; letter-spacing:-.025em; color:#fff; }
.profile-heading p,.profile-panel-heading p { margin:.45rem 0 0; max-width:62ch; color:#98a2b3; font-size:.84rem; line-height:1.55; }
.profile-account-mark { display:inline-flex; align-items:center; gap:.45rem; flex:none; padding:.5rem .7rem; border:1px solid rgba(16,185,129,.24); border-radius:.75rem; background:rgba(16,185,129,.07); color:#86efac; font-size:.68rem; font-weight:750; }
.profile-account-mark svg { width:.9rem; height:.9rem; }
.profile-panel { margin-top:1rem; padding:1.25rem; border:1px solid rgba(255,255,255,.085); border-radius:1rem; background:linear-gradient(145deg,rgba(15,19,30,.97),rgba(9,12,20,.98)); box-shadow:0 .75rem 2rem rgba(0,0,0,.18); }
.profile-identity-panel { display:flex; flex-direction:column; gap:1.25rem; }
.profile-identity-grid { display:grid; grid-template-columns:10.5rem minmax(0,1fr); align-items:start; gap:1.75rem; }
.profile-avatar-column { display:flex; flex-direction:column; align-items:center; gap:.85rem; width:100%; }
.profile-avatar-wrap { position:relative; width:7.2rem; height:7.2rem; overflow:hidden; display:grid; place-items:center; border:2px solid rgba(var(--accent-brand-rgb), .35); border-radius:1.25rem; background:#16111c; box-shadow:0 4px 20px rgba(0,0,0,.35); flex:none; }
.profile-avatar-image { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition:filter .2s ease, transform .2s ease; }
.profile-avatar-fallback { display:grid; place-items:center; width:100%; height:100%; color:var(--accent-brand-soft); font-size:1.8rem; font-weight:850; letter-spacing:-.04em; background:radial-gradient(circle at 25% 20%,rgba(var(--accent-brand-rgb), .22),transparent 58%),#11131d; }
.profile-avatar-edit { position:absolute; right:.4rem; bottom:.4rem; z-index:5; display:grid; place-items:center; width:2rem; height:2rem; border:1px solid rgba(255,255,255,.22); border-radius:.65rem; background:rgba(9,10,16,.92); color:var(--accent-brand-soft); cursor:pointer; box-shadow:0 2px 8px rgba(0,0,0,.5); transition:transform .15s ease, background .15s ease; }
.profile-avatar-edit:hover { transform:scale(1.08); background:var(--accent-brand-strong); color:#fff; }
.profile-avatar-edit svg { width:1rem; height:1rem; }
.profile-avatar-blur-badge { position:absolute; top:.4rem; left:.4rem; z-index:5; display:grid; place-items:center; width:1.8rem; height:1.8rem; border-radius:.6rem; background:rgba(10,12,20,.88); border:1px solid rgba(var(--accent-brand-rgb), .5); color:var(--accent-brand-soft); backdrop-filter:blur(4px); }
.profile-avatar-actions-col { display:flex; flex-direction:column; gap:.45rem; width:100%; }
.profile-avatar-actions-col button { width:100%; justify-content:center; font-size:.72rem; }
.profile-identity-fields { display:flex; flex-direction:column; gap:1.15rem; min-width:0; }
.profile-input-action-row { display:flex; align-items:center; gap:.65rem; }
.profile-input-action-row input { flex:1; min-width:0; }
.profile-input-action-row button { flex:none; white-space:nowrap; }
.profile-avatar-upload-card { padding:.9rem 1rem; border-radius:.85rem; border:1px solid rgba(255,255,255,.08); background:rgba(6,8,14,.6); display:flex; flex-direction:column; gap:.65rem; }
.profile-upload-meta-grid { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:.85rem; align-items:end; }
.profile-panel-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; margin-bottom:.5rem; }
.profile-panel-heading h2 { margin:0; color:#fff; font-size:1.05rem; font-weight:800; letter-spacing:-.01em; }
.credit-hero-card { position:relative; overflow:hidden; display:flex; align-items:center; justify-content:space-between; padding:1.25rem 1.5rem; border:1px solid rgba(var(--accent-brand-rgb), .25); border-radius:1rem; background:radial-gradient(circle at 10% 20%,rgba(var(--accent-brand-rgb), .12),transparent 50%),linear-gradient(135deg,rgba(17,24,39,.95),rgba(9,14,24,.98)); box-shadow:0 4px 24px rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.1); }
.credit-hero-main { display:flex; flex-direction:column; gap:.35rem; }
.credit-hero-label { color:#94a3b8; font-size:.72rem; font-weight:700; text-transform:uppercase; letter-spacing:.05em; }
.credit-hero-amount { display:flex; align-items:center; gap:.5rem; }
.credit-zap-icon { width:1.5rem; height:1.5rem; color:var(--accent-brand); fill:var(--accent-brand); filter:drop-shadow(0 0 8px rgba(var(--accent-brand-rgb), .6)); }
.credit-hero-amount strong { color:#fff; font-size:2rem; font-weight:900; letter-spacing:-.04em; line-height:1; }
.credit-hero-reserved { display:inline-flex; align-items:center; gap:.35rem; margin-top:.15rem; color:#fbbf24; font-size:.68rem; font-weight:650; }
.credit-hero-reserved svg { width:.8rem; height:.8rem; }
.credit-hero-ready { display:inline-flex; align-items:center; gap:.35rem; margin-top:.15rem; color:#86efac; font-size:.68rem; font-weight:650; }
.credit-hero-ready svg { width:.8rem; height:.8rem; }
.credit-inline-state,.credit-empty-state { padding:.8rem; color:#909bad; font-size:.72rem; }
.credit-ledger-heading { display:flex; align-items:center; justify-content:space-between; gap:.7rem; margin-top:1.1rem; }
.credit-ledger-heading h3 { margin:0; color:#e8ebf2; font-size:.76rem; font-weight:800; }
.credit-ledger-heading span { color:#818b9d; font-size:.64rem; }
.credit-ledger-list { margin-top:.4rem; }
.credit-ledger-row { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.72rem .1rem; border-bottom:1px solid rgba(255,255,255,.06); }
.credit-ledger-row:last-child { border-bottom:0; }
.credit-ledger-info { display:grid; gap:.22rem; min-width:0; }
.credit-event-title { color:#f1f5f9; font-size:.75rem; font-weight:750; }
.credit-reason-tag { display:inline-flex; padding:.1rem .4rem; border:1px solid rgba(255,255,255,.08); border-radius:.35rem; background:rgba(255,255,255,.04); color:#94a3b8; font-size:.62rem; font-weight:500; }
.credit-ledger-row small { overflow:hidden; color:#8993a5; font-size:.62rem; text-overflow:ellipsis; white-space:nowrap; }
.credit-delta-badge { display:inline-flex; align-items:center; padding:.25rem .55rem; border-radius:.5rem; background:rgba(255,255,255,.05); color:#cbd5e1; font-size:.72rem; font-weight:800; letter-spacing:-.01em; }
.credit-delta-badge.is-positive { background:rgba(34,197,94,.12); color:#4ade80; border:1px solid rgba(34,197,94,.25); }
.credit-delta-badge.is-charge { background:rgba(244,63,94,.12); color:#fb7185; border:1px solid rgba(244,63,94,.25); }
.credit-admin-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:end; gap:.75rem; padding:.85rem 0; border-top:1px solid rgba(255,255,255,.07); }
.credit-admin-account-picker { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(18rem,1.2fr); align-items:end; gap:.75rem; padding:.2rem 0 .75rem; }
.credit-admin-form:first-of-type { border-top:0; padding-top:0; }
.credit-admin-wide { grid-column:1/-1; }
.queue-credit-summary { display:inline-flex; padding:.25rem .45rem; border:1px solid rgba(var(--accent-brand-rgb), .18); border-radius:.45rem; background:rgba(var(--accent-brand-rgb), .055); color:var(--accent-brand-soft); font-size:.59rem; font-weight:750; }
.studio-credit-estimate { margin:.2rem 0 0; color:#a8b2c3; font-size:.64rem; line-height:1.4; }
.profile-heading-icon { width:1.15rem; height:1.15rem; color:var(--accent-brand-soft); flex:none; }
.profile-field { display:grid; gap:.4rem; min-width:0; color:#c6ccda; font-size:.72rem; font-weight:700; }
.profile-field input,.profile-field select { width:100%; min-height:2.55rem; padding:.65rem .75rem; border:1px solid rgba(255,255,255,.105); border-radius:.7rem; background:#080b12; color:#eef1f7; font:inherit; font-weight:500; outline:none; }
.profile-field input::placeholder { color:#697386; }
.profile-field input:focus,.profile-field select:focus { border-color:rgba(var(--accent-brand-rgb), .72); box-shadow:0 0 0 3px rgba(var(--accent-brand-rgb), .12); }
.profile-field small { color:#858fa1; font-size:.67rem; font-weight:500; }
.profile-avatar-actions { display:flex; align-items:end; justify-content:space-between; flex-wrap:wrap; gap:.8rem; margin-top:.75rem; }
.profile-avatar-rating { width:min(12rem,45%); }
.profile-button-row { display:flex; align-items:center; gap:.55rem; }
.profile-button-row .profile-field { margin-right:auto; }
.profile-primary-button,.profile-secondary-button,.profile-quiet-button { display:inline-flex; align-items:center; justify-content:center; gap:.45rem; min-height:2.45rem; padding:.62rem .9rem; border:1px solid transparent; border-radius:.7rem; font-size:.72rem; font-weight:800; cursor:pointer; transition:background .18s,border-color .18s,color .18s,transform .18s; }
.profile-primary-button { border-color:rgba(var(--accent-brand-rgb), .6); background:var(--accent-brand-strong); color:#080a0f; }
.profile-primary-button:hover:not(:disabled) { background:var(--accent-brand-soft); transform:translateY(-1px); }
.profile-secondary-button { border-color:rgba(255,255,255,.13); background:#151a26; color:#eef1f7; }
.profile-secondary-button:hover:not(:disabled) { border-color:rgba(var(--accent-brand-rgb), .38); background:#1b1e2b; }
.profile-quiet-button { min-height:2rem; padding:.45rem .65rem; background:transparent; color:#aab2c0; }
.profile-quiet-button:hover:not(:disabled) { color:#fda4af; background:rgba(244,63,94,.08); }
.profile-primary-button:disabled,.profile-secondary-button:disabled,.profile-quiet-button:disabled { opacity:.45; cursor:not-allowed; }
.profile-primary-button svg,.profile-secondary-button svg { width:.9rem; height:.9rem; }
.profile-inline-status { min-height:1rem; color:#8b95a7; font-size:.68rem; line-height:1.4; }
.profile-inline-status.is-error { color:#fda4af; }
.profile-adult-gate { padding:1rem; border:1px solid rgba(244,63,94,.22); border-radius:.8rem; background:linear-gradient(110deg,rgba(244,63,94,.06),rgba(244,63,94,.015)); }
.profile-adult-gate-copy { display:flex; align-items:center; gap:.7rem; }
.profile-rating-chip { display:grid; place-items:center; width:2.2rem; height:2.2rem; flex:none; border:1px solid rgba(244,63,94,.5); border-radius:.65rem; background:rgba(244,63,94,.14); color:#fda4af; font-size:.72rem; font-weight:900; }
.profile-adult-gate-copy strong,.profile-adult-toggle strong { display:block; color:#fff; font-size:.78rem; }
.profile-adult-gate-copy p { margin:.22rem 0 0; color:#a4adbc; font-size:.68rem; line-height:1.45; }
.profile-confirm-check { display:flex; align-items:center; gap:.55rem; margin-top:.9rem; color:#d9deea; font-size:.72rem; font-weight:650; }
.profile-confirm-check input,.profile-blur-choice input { accent-color:var(--accent-brand); }
.profile-adult-toggle { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-top:.75rem; padding-top:.75rem; border-top:1px solid rgba(255,255,255,.08); }
.profile-adult-toggle small { display:block; margin-top:.2rem; color:#8993a5; font-size:.66rem; }
.profile-adult-toggle input { width:1rem; height:1rem; accent-color:var(--accent-rose); }
.profile-adult-toggle.is-disabled { opacity:.48; }
.profile-blur-choice { display:flex; flex-wrap:wrap; align-items:center; gap:.85rem; padding:.85rem .2rem; color:#b9c1cf; font-size:.7rem; }
.profile-blur-choice > span { width:100%; color:#fff; font-size:.72rem; font-weight:800; }
.profile-blur-choice label { display:flex; align-items:center; gap:.4rem; }
.profile-safety-list { display:grid; }
.profile-setting-row { display:flex; align-items:center; justify-content:space-between; gap:1rem; min-height:4.2rem; padding:.65rem .1rem; border-bottom:1px solid rgba(255,255,255,.065); cursor:pointer; }
.profile-setting-row:last-child { border-bottom:0; }
.profile-setting-row.is-disabled { opacity:.42; cursor:not-allowed; }
.profile-setting-title,.profile-setting-description { display:block; }
.profile-setting-title { color:#e4e8f0; font-size:.75rem; font-weight:750; }
.profile-setting-description { margin-top:.18rem; color:#8e98aa; font-size:.66rem; line-height:1.4; }
.profile-switch { appearance:none; position:relative; width:2.2rem; height:1.25rem; flex:none; border:1px solid rgba(255,255,255,.16); border-radius:999px; background:#252b37; cursor:pointer; transition:background .18s,border-color .18s; }
.profile-switch::after { content:''; position:absolute; top:.16rem; left:.16rem; width:.82rem; height:.82rem; border-radius:50%; background:#d1d5df; transition:transform .18s,background .18s; }
.profile-switch:checked { border-color:rgba(244,63,94,.75); background:#e11d48; }
.profile-switch:checked::after { transform:translateX(.94rem); background:#fff; }
.profile-switch:focus-visible { outline:2px solid var(--accent-brand-soft); outline-offset:3px; }
.profile-form-footer { display:flex; align-items:center; justify-content:space-between; gap:.9rem; margin-top:1rem; padding-top:.9rem; border-top:1px solid rgba(255,255,255,.07); }
.profile-password-form { display:grid; grid-template-columns:repeat(auto-fit,minmax(13rem,1fr)); gap:.9rem; }
.profile-password-form .profile-form-footer { grid-column:1/-1; }
.profile-empty-state { max-width:35rem; margin:8vh auto; padding:2rem; text-align:center; border:1px solid rgba(255,255,255,.09); border-radius:1rem; background:#0d111a; }
.profile-empty-icon { display:grid; place-items:center; width:3rem; height:3rem; margin:0 auto 1rem; border:1px solid rgba(var(--accent-brand-rgb), .26); border-radius:.9rem; background:rgba(var(--accent-brand-rgb), .08); color:var(--accent-brand-soft); }
.profile-empty-icon svg { width:1.35rem; height:1.35rem; }
.profile-empty-state h1 { margin:0; color:#fff; font-size:1.25rem; font-weight:850; }
.profile-empty-state p { margin:.55rem auto 1.1rem; max-width:43ch; color:#98a2b3; font-size:.8rem; line-height:1.55; }
.profile-empty-state .profile-primary-button { margin:auto; }
.profile-page :is(button,input,select):focus-visible { outline:2px solid var(--accent-brand-soft); outline-offset:2px; }
.creator-card-link { max-width:100%; overflow:hidden; color:var(--accent-brand-soft); font-size:.65rem; font-weight:750; text-overflow:ellipsis; white-space:nowrap; }
.creator-card-link:hover { color:var(--accent-brand); text-decoration:underline; text-underline-offset:3px; }

/* Civitai-Style Creator Badge Pill */
.creator-badge-row { display: flex; align-items: center; gap: 0.4rem; max-width: 100%; }
.creator-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  max-width: 100%;
  padding: 0.18rem 0.55rem 0.18rem 0.22rem;
  border-radius: 9999px;
  background: rgba(10, 15, 26, 0.78);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f1f5f9;
  font-size: 0.7rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}
.creator-badge-pill:hover {
  background: rgba(22, 30, 49, 0.95);
  border-color: rgba(var(--accent-brand-rgb), 0.5);
  box-shadow: 0 0 12px rgba(var(--accent-brand-rgb), 0.25);
  color: #fff;
  transform: translateY(-1px);
}
.creator-badge-pill:active {
  transform: scale(0.97);
}
.creator-badge-avatar {
  position: relative;
  width: 1.25rem;
  height: 1.25rem;
  min-width: 1.25rem;
  min-height: 1.25rem;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  background: linear-gradient(135deg, #334155, #1e293b);
  display: block;
}
.creator-badge-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.creator-badge-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-brand), #06b6d4);
  color: #fff;
  font-size: 0.52rem;
  font-weight: 800;
  border-radius: 50%;
}
.creator-badge-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #f8fafc;
}

/* Civitai Video Timer Badge */
.card-video-timer-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.16rem 0.45rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f8fafc;
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  user-select: none;
}

/* Civitai Card Top-Right Action Buttons */
.card-icon-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}
.card-icon-action-btn:hover {
  background: rgba(22, 30, 48, 0.95);
  border-color: rgba(var(--accent-brand-rgb), 0.5);
  box-shadow: 0 0 12px rgba(var(--accent-brand-rgb), 0.35);
  transform: scale(1.08);
}
.card-icon-action-btn:active {
  transform: scale(0.95);
}

.card-dots-btn {
  color: #ffffff !important;
}
.card-dots-btn svg {
  width: 16px;
  height: 16px;
  fill: #ffffff;
  stroke: none;
}

/* Civitai Card Reactions Bar */
.card-reactions-bar {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.card-reactions-bar::-webkit-scrollbar {
  display: none;
}

.reaction-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.18rem 0.48rem;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 0.68rem;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  flex-shrink: 0;
}
.reaction-pill:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  transform: translateY(-1px);
}
.reaction-pill:active {
  transform: scale(0.95);
}
.reaction-pill.is-active {
  background: rgba(var(--accent-brand-rgb), 0.18);
  border-color: rgba(var(--accent-brand-rgb), 0.55);
  color: var(--accent-brand-soft);
  box-shadow: 0 0 10px rgba(var(--accent-brand-rgb), 0.25);
}
.reaction-emoji {
  font-size: 0.72rem;
  line-height: 1;
}
.reaction-count {
  font-size: 0.64rem;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Civitai Card Actions Floating Popover */
.card-actions-popover {
  position: fixed;
  z-index: 100;
  min-width: 12rem;
  padding: 0.4rem;
  border-radius: 14px;
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.8), 0 0 20px rgba(var(--accent-brand-rgb), 0.12);
  animation: fadeInModal 0.15s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.card-action-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.45rem 0.65rem;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: #e2e8f0;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}
.card-action-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.card-action-item svg {
  flex-shrink: 0;
}
.public-profile-page { min-height:65vh; color:#eef1f7; }
.public-profile-back { display:inline-flex; align-items:center; gap:.4rem; margin-bottom:1.1rem; color:#aab3c2; font-size:.73rem; font-weight:700; }
.public-profile-back:hover { color:#fff; }
.public-profile-back svg { width:.95rem; height:.95rem; }
.public-profile-header { display:flex; align-items:center; gap:1rem; min-height:8rem; padding:1.15rem; border:1px solid rgba(255,255,255,.09); border-radius:1rem; background:linear-gradient(120deg,rgba(20,17,29,.98),rgba(9,12,20,.98)); }
.public-profile-avatar { display:grid; place-items:center; width:5.5rem; height:5.5rem; flex:none; overflow:hidden; border:1px solid rgba(var(--accent-brand-rgb), .3); border-radius:1.2rem; background:radial-gradient(circle at 25% 20%,rgba(var(--accent-brand-rgb), .19),transparent 60%),#11131d; color:var(--accent-brand-soft); font-size:1.4rem; font-weight:850; }
.public-profile-avatar-image { width:100%; height:100%; object-fit:cover; }
.public-profile-title { min-width:0; flex:1; }
.public-profile-title h1 { overflow:hidden; margin:0; color:#fff; font-size:1.25rem; font-weight:850; text-overflow:ellipsis; white-space:nowrap; }
.public-profile-title p { margin:.16rem 0 .38rem; color:var(--accent-brand-soft); font-size:.72rem; }
.public-profile-title span { color:#939daf; font-size:.68rem; }
.public-profile-gallery { columns:2; column-gap:.85rem; margin-top:1.25rem; }
.public-profile-work { display:inline-block; width:100%; margin:0 0 .85rem; overflow:hidden; break-inside:avoid; border:1px solid rgba(255,255,255,.085); border-radius:.9rem; background:#0c1019; }
.public-profile-media { position:relative; display:block; width:100%; min-height:8rem; overflow:hidden; background:#06080d; }
.public-profile-media img,.public-profile-media video { display:block; width:100%; max-height:42rem; object-fit:cover; }
.public-profile-media.is-blurred img,.public-profile-media.is-blurred video { filter:blur(1.35rem); transform:scale(1.08); }
.public-profile-blur-cover { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.45rem; background:rgba(3,4,8,.58); color:#fff; font-size:.8rem; font-weight:800; }
.public-profile-blur-cover small { color:#b4bdcb; font-size:.65rem; font-weight:500; }
.public-profile-rating { display:inline-flex; width:max-content; border:1px solid rgba(255,255,255,.1); border-radius:.45rem; padding:.2rem .4rem; font-size:.58rem; font-weight:850; }
.public-profile-work-meta { display:flex; align-items:center; justify-content:space-between; gap:.5rem; padding:.6rem .7rem; }
.public-profile-work-meta time { color:#8c96a8; font-size:.63rem; }
.public-profile-reveal { display:flex; align-items:center; justify-content:center; gap:.4rem; width:calc(100% - 1.4rem); margin:0 .7rem .7rem; padding:.48rem; border:1px solid rgba(var(--accent-brand-rgb), .28); border-radius:.55rem; background:rgba(var(--accent-brand-rgb), .08); color:var(--accent-brand-soft); font-size:.67rem; font-weight:800; }
.public-profile-reveal svg { width:.85rem; height:.85rem; }
.public-profile-more,.public-profile-more-state { display:flex; justify-content:center; margin:1.2rem 0; color:#aab3c2; font-size:.75rem; }
.public-profile-empty { padding:3rem 1rem; color:#98a2b3; font-size:.85rem; text-align:center; }
.public-profile-loading { display:grid; gap:1rem; }
.profile-skeleton-line,.profile-skeleton-grid { display:block; border-radius:.8rem; background:linear-gradient(90deg,#111622,#1a2030,#111622); background-size:200% 100%; animation:profile-skeleton 1.2s ease-in-out infinite; }
.profile-skeleton-line { height:7rem; }
.profile-skeleton-grid { height:18rem; }
@keyframes profile-skeleton { to { background-position:-200% 0; } }
@media (min-width:640px) { .public-profile-gallery { columns:3; column-gap:1rem; } }
@media (min-width:1024px) { .public-profile-gallery { columns:4; } }
@media (max-width:520px) { .public-profile-header { gap:.75rem; padding:.8rem; } .public-profile-avatar { width:4.2rem; height:4.2rem; border-radius:.9rem; } .public-profile-title h1 { font-size:1rem; } .public-profile-header>.profile-secondary-button { min-height:2rem; padding:.45rem; font-size:0; } .public-profile-header>.profile-secondary-button svg { width:1rem; height:1rem; } }
@media (max-width:640px) {
  .profile-page { padding-top:1.25rem; padding-bottom:2rem; }
  .profile-heading { align-items:flex-start; flex-direction:column; margin-bottom:1rem; }
  .profile-heading h1 { font-size:1.4rem; }
  .profile-account-mark { display:none; }
  .profile-panel { padding:.9rem; border-radius:.85rem; }
  .credit-hero-card { padding:1rem; }
  .credit-hero-amount strong { font-size:1.6rem; }
  .credit-admin-account-picker,.credit-admin-form { grid-template-columns:1fr; }
  .credit-admin-wide { grid-column:auto; }
  .credit-ledger-row { align-items:flex-start; }
  .credit-ledger-row > span { max-width:8rem; font-size:.59rem; }
  .profile-identity-grid { grid-template-columns:1fr; gap:1.25rem; }
  .profile-avatar-column { flex-direction:row; flex-wrap:wrap; justify-content:center; gap:1rem; width:100%; }
  .profile-avatar-wrap { width:6.2rem; height:6.2rem; border-radius:1rem; }
  .profile-avatar-actions-col { width:auto; flex:1; min-width:10rem; }
  .profile-upload-meta-grid { grid-template-columns:1fr; }
  .profile-form-footer { align-items:stretch; flex-direction:column; }
  .profile-form-footer .profile-primary-button,.profile-form-footer .profile-secondary-button { width:100%; }
  .profile-password-form { grid-template-columns:1fr; }
  .profile-password-form .profile-form-footer { grid-column:auto; }
  .profile-adult-gate { padding:.8rem; }
  .profile-setting-description { max-width:35ch; }
}
.credit-reconciliation {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid rgba(242, 0, 204, .22);
  border-radius: 12px;
  background: rgba(242, 0, 204, .045);
}

/* ─── Floating Glassmorphic Cockpit Island Navbar ─── */
.header3-root {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  padding: 0.65rem 1rem 0;
  background: transparent;
  border-bottom: none;
  pointer-events: none;
}

.nav-island {
  pointer-events: auto;
  max-width: 1700px;
  margin: 0 auto;
  border-radius: 1.25rem;
  padding: 0 1.15rem;
  background: linear-gradient(135deg, rgba(10, 15, 25, 0.92) 0%, rgba(6, 9, 16, 0.96) 100%);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.72), 0 0 36px rgba(var(--accent-brand-rgb), 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  position: relative;
  transition: border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-island::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-brand), transparent);
  opacity: 0.9;
  pointer-events: none;
}

.header3-root.is-scrolled .nav-island {
  background: linear-gradient(135deg, rgba(8, 12, 22, 0.97) 0%, rgba(5, 7, 13, 0.98) 100%);
  border-color: rgba(var(--accent-brand-rgb), 0.28);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.82), 0 0 42px rgba(var(--accent-brand-rgb), 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.nav-engine-status {
  border-color: rgba(var(--accent-brand-rgb), 0.32);
  background: rgba(var(--accent-brand-rgb), 0.1);
  color: var(--accent-brand-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 14px rgba(var(--accent-brand-rgb), 0.1);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: #fff;
  font-weight: 900;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-brand:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.site-navbar-symbol {
  display: block;
  width: 28px;
  height: 28px;
  flex: none;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(var(--accent-brand-rgb), 0.4));
  transition: filter 0.2s ease, transform 0.2s ease;
}

.site-navbar-lockup {
  display: block;
  width: clamp(7.25rem, 10vw, 8.75rem);
  height: auto;
  flex: none;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .45));
}

.nav-brand:hover .site-navbar-symbol {
  filter: drop-shadow(0 0 16px rgba(var(--accent-brand-rgb), 0.75));
  transform: scale(1.04);
}

.brand-wordmark {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-wordmark-img {
  height: 22px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.brand-badge {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: rgba(var(--accent-brand-rgb), 0.15);
  color: var(--accent-brand-soft);
  border: 1px solid rgba(var(--accent-brand-rgb), 0.35);
  text-transform: uppercase;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

@media (min-width: 860px) {
  .nav-left {
    gap: 1.15rem;
  }
}

.nav-separator {
  display: none;
}

@media (min-width: 860px) {
  .nav-separator {
    display: block;
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.1);
  }
}

/* Header-3 Centered Segmented Nav Pill Container */
.nav-links {
  display: none;
}

@media (min-width: 860px) {
  .nav-links {
    display: flex;
    align-items: center;
    gap: 0.22rem;
    padding: 0.24rem 0.34rem;
    background: rgba(4, 7, 13, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.11);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 24px rgba(0, 0, 0, 0.35);
    border-radius: 9999px;
  }
}

@media (min-width: 1024px) {
  .nav-links {
    gap: 0.28rem;
  }
}

.nav-link, .nav-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
  border: 1px solid transparent;
  background: transparent;
}

@media (min-width: 1024px) {
  .nav-link, .nav-tab-btn {
    padding: 0.44rem 0.95rem;
  }
}

.nav-link:hover, .nav-tab-btn:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.06);
}

.nav-link.is-active, .nav-tab-btn.is-active, .nav-link[aria-current="page"], .nav-tab-btn[aria-current="page"] {
  background: radial-gradient(circle at 50% 100%, rgba(var(--accent-brand-rgb), 0.28), rgba(var(--accent-brand-rgb), 0.08) 70%);
  border-color: rgba(var(--accent-brand-rgb), 0.55);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0 18px rgba(var(--accent-brand-rgb), 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.nav-tab-btn.is-active::after, .nav-tab-btn[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 22%;
  right: 22%;
  height: 2px;
  border-radius: 999px;
  background: var(--accent-brand);
  box-shadow: 0 0 12px var(--accent-brand);
}

.nav-tab-btn.is-active svg, .nav-tab-btn[aria-current="page"] svg {
  color: var(--accent-brand);
  filter: drop-shadow(0 0 6px rgba(var(--accent-brand-rgb), 0.5));
}

.nav-badge-pill {
  font-size: 0.58rem;
  font-weight: 800;
  padding: 0.12rem 0.35rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
}

.nav-badge-novo {
  background: rgba(244, 63, 94, 0.2);
  color: #fda4af;
  border: 1px solid rgba(244, 63, 94, 0.4);
}

.nav-badge-beta {
  background: rgba(6, 182, 212, 0.2);
  color: #67e8f9;
  border: 1px solid rgba(6, 182, 212, 0.4);
}

.nav-chevron {
  opacity: 0.6;
  transition: transform 0.2s ease;
  width: 12px;
  height: 12px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .nav-right {
    gap: 0.6rem;
  }
}

/* Slide-down Integrated Search Panel */
.nav-search-panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  border-radius: 1.1rem;
  background: rgba(8, 12, 20, 0.98);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.78);
  padding: 0.65rem 1rem;
  z-index: 50;
  pointer-events: auto;
  animation: navSearchSlide 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.nav-search-panel.hidden {
  display: none !important;
}

.nav-search-panel-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #0b0f17;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0.45rem 0.85rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search-panel-inner:focus-within {
  border-color: rgba(var(--accent-brand-rgb), 0.5);
  box-shadow: 0 0 16px rgba(var(--accent-brand-rgb), 0.18);
}

.nav-search-panel-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  font-size: 0.88rem;
  color: #f8fafc;
  font-family: inherit;
}

.nav-search-panel-input::placeholder {
  color: #64748b;
}

.nav-search-panel-kbd {
  font-size: 0.62rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: #64748b;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.15rem 0.4rem;
  border-radius: 5px;
}

.nav-search-panel-close {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.25rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-search-panel-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.nav-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.nav-icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.16);
}

.nav-icon-btn.is-active {
  background: rgba(var(--accent-brand-rgb), 0.12);
  border-color: rgba(var(--accent-brand-rgb), 0.35);
  color: var(--accent-brand-soft);
}

.nav-icon-btn.hidden {
  display: none !important;
}

@media (min-width: 1280px) {
  .nav-search-cmd {
    width: auto;
    padding: 0 0.75rem;
    gap: 0.45rem;
  }
}

.nav-search-cmd-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: #cbd5e1;
}

.nav-search-cmd-kbd {
  font-size: 0.62rem;
  font-family: ui-monospace, 'JetBrains Mono', monospace;
  font-weight: 700;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.1rem 0.35rem;
  border-radius: 5px;
}

.nav-badge-count {
  position: absolute;
  top: -3px;
  right: -3px;
  background: #f43f5e;
  color: #ffffff;
  font-size: 0.58rem;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  border: 2px solid #06080d;
  font-family: 'JetBrains Mono', monospace;
}

.nav-badge-count.hidden {
  display: none !important;
}

.nav-credit-pill, .nav-credits-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  justify-content: center;
  height: 36px;
  padding: 0 0.65rem;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
  font-size: 0.78rem;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .nav-credit-pill, .nav-credits-pill {
    height: 38px;
    padding: 0 0.85rem;
    font-size: 0.82rem;
    gap: 0.45rem;
    border-radius: 12px;
  }
}

.nav-credit-pill:hover, .nav-credits-pill:hover {
  border-color: rgba(245, 158, 11, 0.65);
  background: rgba(245, 158, 11, 0.18);
  color: #fef08a;
  transform: translateY(-1px);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.25);
}

.nav-credit-pill svg, .nav-credits-pill svg, .credits-icon {
  width: 0.82rem;
  height: 0.82rem;
  fill: #f59e0b;
  color: #f59e0b;
  filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.5));
}

.nav-credit-pill.hidden,
.nav-credits-pill.hidden,
.nav-cta-upgrade.hidden {
  display: none !important;
}

/* Meshy Pro / Upgrade CTA Button */
.nav-cta-upgrade {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 36px;
  padding: 0 0.75rem;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-brand) 0%, var(--accent-brand-strong) 100%);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 850;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 18px rgba(var(--accent-brand-rgb), 0.35);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .nav-cta-upgrade {
    height: 38px;
    padding: 0 1rem;
    font-size: 0.82rem;
    border-radius: 12px;
  }
}

.nav-cta-upgrade:hover {
  filter: brightness(1.12);
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 6px 24px rgba(var(--accent-brand-rgb), 0.55);
}

.nav-cta-upgrade svg {
  width: 0.85rem;
  height: 0.85rem;
  fill: currentColor;
}

/* Meshy Guest Signup CTA */
.nav-cta-signup {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 36px;
  padding: 0 1.15rem;
  border-radius: 9999px;
  background: #ffffff;
  color: #090d16;
  font-size: 0.82rem;
  font-weight: 750;
  border: 1px solid rgba(255, 255, 255, 0.9);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 0 16px rgba(255, 255, 255, 0.15);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .nav-cta-signup {
    height: 38px;
    padding: 0 1.35rem;
    font-size: 0.84rem;
  }
}

.nav-cta-signup:hover {
  background: #f1f5f9;
  border-color: var(--accent-brand);
  transform: translateY(-1px);
  box-shadow: 0 4px 22px rgba(var(--accent-brand-rgb), 0.32);
}

.nav-login-ghost, .nav-login-button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 36px;
  padding: 0 0.95rem;
  border-radius: 9999px;
  background: transparent;
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 650;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .nav-login-ghost, .nav-login-button {
    height: 38px;
    padding: 0 1.05rem;
    font-size: 0.84rem;
  }
}

.nav-login-ghost:hover, .nav-login-button:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.dd-plan-tag {
  font-size: 0.58rem;
  font-weight: 850;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  background: rgba(var(--accent-brand-rgb), 0.18);
  color: var(--accent-brand-soft);
  border: 1px solid rgba(var(--accent-brand-rgb), 0.35);
  margin-left: auto;
  letter-spacing: 0.04em;
}

/* ─── User Avatar & Dropdown Menu ─── */
.nav-user-container {
  position: relative;
}

.nav-user-avatar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  flex: none;
  overflow: visible;
  border: 2px solid rgba(var(--accent-brand-rgb), 0.55);
  border-radius: 50%;
  background: #0b0f19;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(var(--accent-brand-rgb), 0.3);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  outline: none;
}

.nav-user-avatar:hover {
  transform: scale(1.05);
  border-color: var(--accent-brand);
  box-shadow: 0 0 0 2px var(--accent-brand), 0 0 18px rgba(var(--accent-brand-rgb), 0.55);
}

.nav-user-avatar-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-avatar-status {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #06080d;
  box-shadow: 0 0 6px #10b981;
  z-index: 5;
}

.nav-user-avatar img,
.nav-user-avatar .nav-user-avatar-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.nav-user-avatar .nav-user-avatar-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  font-weight: 800;
  background: radial-gradient(circle at 30% 30%, rgba(var(--accent-brand-rgb), 0.35), transparent 70%), #111827;
}

/* Avatar Content Moderation Blurring */
.nav-user-avatar-img.is-blurred,
.creator-badge-img.is-blurred,
.profile-avatar-image.is-blurred,
.public-profile-avatar-image.is-blurred {
  filter: blur(14px) !important;
  transform: scale(1.22) !important;
}

.nav-user-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 60;
  min-width: 14.5rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 0.5rem;
  background: #0d121d;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.75), 0 0 24px rgba(var(--accent-brand-rgb), 0.12);
  animation: fadeInModal 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.nav-user-dropdown-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.65rem 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-user-dropdown-header .nav-user-avatar {
  width: 2.2rem;
  height: 2.2rem;
  cursor: default;
}

.nav-user-dropdown-info {
  min-width: 0;
  flex: 1;
}

.nav-user-dropdown-name {
  display: block;
  overflow: hidden;
  color: #f8fafc;
  font-size: 0.82rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-user-dropdown-role {
  display: block;
  margin-top: 0.12rem;
  color: #8894a7;
  font-size: 0.65rem;
}

.nav-user-dropdown-credits {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0.35rem 0.35rem 0.15rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 0.6rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.02));
  cursor: pointer;
  transition: all 0.15s ease;
}

.nav-user-dropdown-credits:hover {
  border-color: rgba(245, 158, 11, 0.5);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(245, 158, 11, 0.05));
  transform: translateY(-1px);
}

.nav-user-dropdown-divider {
  height: 1px;
  margin: 0.25rem 0.35rem;
  background: rgba(255, 255, 255, 0.07);
}

.nav-user-dropdown-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.55rem;
  color: #c8cedb;
  font-size: 0.76rem;
  font-weight: 650;
  text-align: left;
  transition: background 0.14s ease, color 0.14s ease;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-user-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.055);
  color: #f8fafc;
}

.nav-user-dropdown-item svg {
  width: 0.95rem;
  height: 0.95rem;
  flex: none;
  color: #8894a7;
}

.nav-user-dropdown-item:hover svg {
  color: var(--accent-brand-soft);
}

.nav-user-dropdown-item.is-danger {
  color: #fda4af;
}

.nav-user-dropdown-item.is-danger svg {
  color: #fda4af;
}

.nav-user-dropdown-item.is-danger:hover {
  background: rgba(244, 63, 94, 0.08);
  color: #fecdd3;
}

/* ─── Simplified Navbar Search ─── */
.nav-search-trigger {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.03);
  color: #94a3b8;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.nav-search-trigger:hover {
  border-color: rgba(var(--accent-brand-rgb), 0.4);
  background: rgba(var(--accent-brand-rgb), 0.06);
  color: var(--accent-brand-soft);
}

.nav-search-trigger svg {
  width: 1rem;
  height: 1rem;
}

@media (max-width: 420px) {
  .nav-actions { gap: .35rem; }
  .site-navbar-wordmark { width: clamp(4.8rem, 23vw, 6.1rem); }
  .nav-credit-pill { min-width: 40px; padding-inline: .55rem; }
}

@media (max-width: 767px) {
  .home-preset-shelf .home-preset-grid { grid-auto-columns: minmax(17rem,82vw); }
}
@media (max-width: 420px) {
  .home-preset-shelf .home-preset-grid { grid-auto-columns: 84vw; grid-template-columns: none; }
}
#motion-engine-switcher { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; min-width: 0; }
@media (min-width: 1200px) { #motion-engine-switcher { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.motion-other-engines { min-width: 0; color: #94a3b8; font-size: .72rem; }
.motion-other-engines summary { min-height: 2.75rem; display: flex; align-items: center; cursor: pointer; }
.motion-other-engines > div { display: flex; flex-wrap: wrap; gap: .4rem; padding-bottom: .4rem; }
.motion-other-engines .engine-btn { min-height: 2.75rem; padding: .55rem .7rem; border: 1px solid rgba(255,255,255,.1); border-radius: .7rem; color: #94a3b8; font-size: .7rem; }
#motion-source-preview { text-align: center; }
#motion-source-preview:focus-visible, .motion-other-engines summary:focus-visible { outline: 2px solid #67e8f9; outline-offset: 3px; }
.motion-3d-fallback { min-height: 13rem; display: grid; align-content: center; justify-items: center; gap: .5rem; padding: 1.5rem; text-align: center; color: #cbd5e1; background: radial-gradient(ellipse at 50% 40%,rgba(6,182,212,.12),transparent 65%),#080d16; }
.motion-3d-fallback span { max-width: 28rem; color: #94a3b8; font-size: .75rem; line-height: 1.5; }

.credit-ledger-generation { color:#aab5c7; font-size:.68rem; line-height:1.4; }
.profile-avatar-picker { width:min(58rem,calc(100vw - 2rem)); max-width:none; max-height:min(86dvh,54rem); padding:1.1rem; overflow:auto; border:1px solid rgba(255,255,255,.13); border-radius:1rem; background:#0d111a; color:#eef1f7; box-shadow:0 1.5rem 5rem rgba(0,0,0,.62); }
.profile-avatar-picker::backdrop { background:rgba(2,4,9,.82); backdrop-filter:blur(5px); }
.profile-avatar-picker-head { display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; padding-bottom:.9rem; border-bottom:1px solid rgba(255,255,255,.08); }
.profile-avatar-picker-head h2 { margin:0; color:#fff; font-size:1.05rem; font-weight:850; }
.profile-avatar-picker-head p { margin:.35rem 0 0; color:#98a2b3; font-size:.74rem; line-height:1.5; }
.profile-avatar-picker-status { min-height:1.25rem; margin:.8rem 0; color:#a9b2c1; font-size:.72rem; }
.profile-avatar-picker-status.is-error { color:#fda4af; }
.profile-avatar-picker-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(9rem,1fr)); gap:.75rem; }
.profile-avatar-picker-card { min-width:0; overflow:hidden; border:1px solid rgba(255,255,255,.09); border-radius:.8rem; background:#090c13; }
.profile-avatar-picker-card > img { display:block; width:100%; aspect-ratio:1; object-fit:cover; background:#05070b; }
.profile-avatar-picker-card > img.is-blurred { filter:blur(1.1rem); transform:scale(1.05); }
.profile-avatar-picker-card-info { display:grid; gap:.55rem; padding:.6rem; }
.profile-avatar-picker-card-info > span { color:#c4ccda; font-size:.65rem; font-weight:800; }
.profile-avatar-picker-card-info > button { width:100%; min-height:2.15rem; }
@media (max-width:640px) {
  .profile-avatar-picker { width:calc(100vw - 1rem); max-height:90dvh; padding:.8rem; border-radius:.8rem; }
  .profile-avatar-picker-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:.5rem; }
  .profile-avatar-picker-head { gap:.5rem; }
}

/* Civitai Retention & Publish Confirmation Modal */
.pub-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(4, 7, 13, 0.85);
  backdrop-filter: blur(8px);
  animation: pub-fade-in 0.2s ease-out;
}
.pub-modal-dialog {
  width: 100%;
  max-width: 28rem;
  padding: 1.5rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(var(--accent-brand-rgb), 0.35);
  background: linear-gradient(155deg, #0e1524, #080c16);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(var(--accent-brand-rgb), 0.12);
  color: #f1f5f9;
  animation: pub-scale-in 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.pub-spinner {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  border: 2.5px solid rgba(255, 255, 255, 0.2);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: pub-spin 0.75s linear infinite;
}
.pub-spinner-sm {
  width: 0.95rem;
  height: 0.95rem;
  border-width: 2px;
}
@keyframes pub-spin {
  to { transform: rotate(360deg); }
}
@keyframes pub-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes pub-scale-in {
  from { opacity: 0; transform: scale(0.95) translateY(6px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Expiration Countdown Badges */
.card-expiry-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 0.375rem;
  padding: 0.125rem 0.375rem;
  font-size: 9px;
  font-weight: 800;
  font-family: ui-monospace, monospace;
  letter-spacing: -0.02em;
  background: rgba(180, 83, 9, 0.25);
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.4);
  backdrop-filter: blur(4px);
}
.card-expiry-badge.is-urgent {
  background: rgba(225, 29, 72, 0.25);
  color: #fecdd3;
  border-color: rgba(244, 63, 94, 0.5);
  animation: pub-pulse-glow 2s infinite ease-in-out;
}
@keyframes pub-pulse-glow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}


/* Scoped search and account feedback use the shared navigation palette. */
.nav-search-scope { max-width: 9rem; min-height: 44px; border: 1px solid var(--border-color, #334155); border-radius: .5rem; background: var(--bg-surface, #131821); color: var(--text-primary, #e2e8f0); padding: 0 .5rem; font: inherit; font-size: 13px; }
.nav-search-panel-input { min-width: 0; }
.nav-user-dropdown-credits { width: calc(100% - .7rem); text-align: left; }
.nav-account-status:empty { display: none; }
.nav-account-status { padding: .5rem .75rem; font-size: 13px; color: var(--text-primary, #e2e8f0); }
#mobile-btn-explore-menu.is-active { color: var(--brand-soft, #bbf765); }
@media (max-width: 480px) { .nav-search-panel-inner { gap: .35rem; } .nav-search-scope { max-width: 7.25rem; } }
