/**
 * Studio x Digital skin.
 * Rebuilds Studio chrome in the deeneydigital.com hub language (Ghost purple, never GTA):
 * floating glass header + gliding nav pill, 1120px page column, brand hero with mesh + grid,
 * glass control panels, uppercase chips, tinted cards, marquee ticker.
 * Loaded last. Editor workspace (.view--editor) is left alone.
 */

:root {
  --dd-violet: #a78bfa;
  --dd-line: rgba(177, 163, 248, 0.18);
  --dd-glass: rgba(8, 12, 28, 0.62);
  --dd-capsule: rgba(8, 10, 28, 0.82);
  --dd-capsule-line: rgba(198, 188, 240, 0.32);
  --dd-page-w: 1120px;
  --dd-orange: #f1641e;
  --dd-mint: #3dce8f;
  --dd-sky: #77ddff;
  --dd-ease: cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes dd-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes dd-blob-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(8%, 10%) scale(1.12); }
}

@keyframes dd-blob-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-10%, -8%) scale(1.15); }
}

@keyframes dd-blob-c {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(12%, -14%) scale(1.2); }
  66% { transform: translate(-8%, 10%) scale(0.92); }
}

@keyframes dd-spark {
  0% { transform: translate(0, 0) scale(1); opacity: 0.85; }
  25% { transform: translate(18px, -22px) scale(1.35); opacity: 1; }
  50% { transform: translate(-10px, -36px) scale(0.9); opacity: 0.7; }
  75% { transform: translate(-22px, 8px) scale(1.2); opacity: 1; }
  100% { transform: translate(0, 0) scale(1); opacity: 0.85; }
}

@keyframes dd-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes dd-marquee {
  to { transform: translateX(-50%); }
}

/* ------------------------------------------------------------------ */
/* Header: floating glass card (shared by app shell + signed-out gate) */
/* ------------------------------------------------------------------ */

.shell-bar,
.dd-header {
  position: relative;
  width: min(var(--dd-page-w), calc(100% - 36px));
  margin: 16px auto 0;
  min-height: 72px;
  padding: 12px 16px 12px 14px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--dd-glass);
  backdrop-filter: blur(16px) saturate(1.45);
  -webkit-backdrop-filter: blur(16px) saturate(1.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 1px 0 rgba(167, 139, 250, 0.25),
    0 22px 40px -22px rgba(0, 0, 0, 0.8);
}

.dd-header {
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
}

.shell-bar .studio-brand-mark,
.dd-header .studio-brand-mark {
  width: 52px;
  height: 52px;
  box-shadow:
    0 0 0 3px #0a1230,
    0 0 0 6px rgba(177, 163, 248, 0.55),
    0 0 18px rgba(131, 100, 199, 0.35);
}

.shell-bar .shell-brand,
.dd-header .studio-brand-lockup {
  gap: 14px;
  padding-right: 18px;
}

.shell-bar .studio-brand-wordmark,
.dd-header .studio-brand-wordmark {
  align-items: flex-start;
  gap: 3px;
}

.shell-bar .shell-brand .studio-brand-name,
.dd-header .studio-brand-name {
  font-size: 1.2rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.shell-bar .shell-brand .studio-brand-sub,
.dd-header .studio-brand-sub {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: #c4bfd9;
}

.shell-bar .studio-brand-beta,
.dd-header .studio-brand-beta {
  font-size: 0.5rem;
}

/* Nav capsules (same recipe as Digital .nav-link-face) */
.dd-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px;
  margin: 0 auto;
  isolation: isolate;
}

.dd-nav-link,
.shell-bar .sidebar-nav-item {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--dd-capsule-line);
  background: var(--dd-capsule);
  color: #fff;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 8px 16px rgba(0, 0, 0, 0.28);
  transition:
    background 140ms ease-out,
    border-color 140ms ease-out,
    box-shadow 140ms ease-out,
    transform 160ms var(--dd-ease);
}

.shell-bar .sidebar-nav-item .sidebar-nav-label,
.dd-nav-link span {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.shell-bar .sidebar-nav-item .sidebar-nav-icon,
.dd-nav-link i {
  color: #fff;
}

.dd-nav-link:hover,
.dd-nav-link:focus-visible,
.shell-bar .sidebar-nav-item:hover {
  transform: translateY(-1px);
  background: rgba(131, 100, 199, 0.22);
  border-color: rgba(198, 188, 240, 0.55);
}

.shell-bar .sidebar-nav-item.is-active,
.dd-nav-link.is-active {
  transform: none;
  background: var(--dd-violet);
  border-color: transparent;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 8px 18px rgba(167, 139, 250, 0.45);
}

.dd-nav-link--icon {
  width: 42px;
  padding: 0;
}

/* Glide pill: one shared violet pill slides to the current page */
.nav-glide-pill {
  position: absolute;
  top: 4px;
  left: 0;
  z-index: 0;
  width: 0;
  height: calc(100% - 8px);
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  background: var(--dd-violet);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 8px 18px rgba(167, 139, 250, 0.45);
  transform: translateX(0);
  transition:
    transform 0.34s cubic-bezier(0.34, 1.25, 0.64, 1),
    width 0.34s cubic-bezier(0.34, 1.25, 0.64, 1),
    opacity 0.2s ease;
}

.is-glide-ready > .nav-glide-pill {
  opacity: 1;
}

.is-glide-ready .sidebar-nav-item.is-active,
.is-glide-ready .dd-nav-link.is-active {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

/* Tools cluster: divider then round buttons */
.shell-bar .shell-nav-tools {
  gap: 5px;
  padding-left: 12px;
  border-left: 1px solid rgba(177, 163, 248, 0.32);
}

.dd-header-tools {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  padding-left: 12px;
  border-left: 1px solid rgba(177, 163, 248, 0.32);
}

.shell-bar .shell-nav-tools .sidebar-nav-item,
.shell-bar .shell-actions .icon-btn,
.shell-bar .shell-account-btn,
.dd-header-tools .dd-nav-link {
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 50%;
}

.shell-bar .shell-account-btn {
  border: 1px solid var(--dd-capsule-line);
  background: var(--dd-capsule);
  justify-content: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 8px 16px rgba(0, 0, 0, 0.28);
}

.shell-bar .shell-actions .icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--dd-capsule-line);
  background: var(--dd-capsule);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 8px 16px rgba(0, 0, 0, 0.28);
}

@media (min-width: 1000px) {
  .shell-bar .shell-nav-primary {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 4px;
    gap: 4px;
    isolation: isolate;
  }

  .dd-header .dd-nav {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
  }
}

@media (max-width: 999px) {
  .shell-bar .shell-nav-primary {
    position: relative;
  }
}

@media (max-width: 900px) {
  .shell-bar,
  .dd-header {
    width: calc(100% - 20px);
    margin-top: 10px;
    min-height: 64px;
    border-radius: 20px;
    padding: 8px 10px;
  }

  .shell-bar .shell-nav,
  .shell-bar .shell-nav.sidebar-nav {
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    border-radius: 20px;
  }

  .shell-bar .shell-nav-tools {
    padding-left: 0;
    border-left: 0;
  }

  .shell-bar .shell-nav-tools .sidebar-nav-item,
  .shell-bar .sidebar-nav-item {
    width: 100%;
    border-radius: 999px;
    justify-content: flex-start;
  }

  .dd-nav {
    display: none;
  }

  .dd-header-tools {
    padding-left: 0;
    border-left: 0;
  }
}

/* ------------------------------------------------------------------ */
/* Page column                                                         */
/* ------------------------------------------------------------------ */

.main {
  padding: 18px 0 0;
}

.view:not(.view--editor) {
  padding-left: max(18px, calc((100% - var(--dd-page-w)) / 2));
  padding-right: max(18px, calc((100% - var(--dd-page-w)) / 2));
  padding-bottom: 36px;
}

@media (max-width: 900px) {
  .main {
    padding: 12px 0 0;
  }
}

.dd-page {
  position: relative;
  z-index: 2;
  width: min(var(--dd-page-w), calc(100% - 36px));
  margin: 0 auto;
  padding: 18px 0 8px;
}

.customer-gate.studio-home-gate {
  padding: 0 0 40px;
}

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */

.dd-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(16px, 3vw, 40px);
  align-items: center;
  min-height: clamp(320px, 46vh, 470px);
  margin: 0 0 18px;
  padding: clamp(30px, 5vw, 52px) clamp(22px, 4vw, 48px);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 16, 40, 0.55);
  backdrop-filter: blur(16px) saturate(1.45);
  -webkit-backdrop-filter: blur(16px) saturate(1.45);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -24px 48px rgba(0, 0, 0, 0.22);
}

.dd-hero-fx {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  border-radius: inherit;
}

.dd-hero-aurora {
  position: absolute;
  inset: -20%;
  filter: blur(28px);
  opacity: 0.85;
}

.dd-hero-blob {
  position: absolute;
  border-radius: 50%;
}

.dd-hero-blob--a {
  width: 58%;
  height: 58%;
  top: -10%;
  left: -8%;
  background: radial-gradient(circle, rgba(131, 100, 199, 0.85), transparent 68%);
  animation: dd-blob-a 18s ease-in-out infinite;
}

.dd-hero-blob--b {
  width: 52%;
  height: 52%;
  right: -12%;
  bottom: -6%;
  background: radial-gradient(circle, rgba(24, 70, 180, 0.8), transparent 70%);
  animation: dd-blob-b 22s ease-in-out infinite;
}

.dd-hero-blob--c {
  width: 36%;
  height: 36%;
  left: 38%;
  top: 28%;
  background: radial-gradient(circle, rgba(119, 221, 255, 0.4), transparent 70%);
  animation: dd-blob-c 16s ease-in-out infinite;
}

.dd-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(177, 163, 248, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(177, 163, 248, 0.14) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 15%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 15%, transparent 78%);
  opacity: 0.85;
}

.dd-hero-spark {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #b1a3f8;
  box-shadow: 0 0 10px rgba(177, 163, 248, 0.9), 0 0 22px rgba(119, 221, 255, 0.45);
  animation: dd-spark 10s ease-in-out infinite;
}

.dd-hero-spark--1 { top: 12%; left: 46%; animation-duration: 9s; background: #77ddff; }
.dd-hero-spark--2 { top: 20%; right: 10%; animation-duration: 12s; animation-direction: reverse; }
.dd-hero-spark--3 { bottom: 20%; left: 8%; animation-duration: 11s; background: #8364c7; }
.dd-hero-spark--4 { bottom: 16%; right: 34%; animation-duration: 13s; animation-direction: reverse; background: #77ddff; }

.dd-hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.dd-hero-copy > * {
  animation: dd-rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.dd-hero-copy > :nth-child(2) { animation-delay: 0.06s; }
.dd-hero-copy > :nth-child(3) { animation-delay: 0.14s; }
.dd-hero-copy > :nth-child(4) { animation-delay: 0.22s; }
.dd-hero-copy > :nth-child(5) { animation-delay: 0.3s; }

.dd-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid rgba(177, 163, 248, 0.3);
  background: rgba(131, 100, 199, 0.16);
  color: #d8d2fb;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dd-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dd-mint);
  box-shadow: 0 0 10px rgba(61, 206, 143, 0.8);
}

.dd-hero h1,
.dd-hero h2.dd-hero-title {
  margin: 0;
  font-family: Nunito, system-ui, sans-serif;
  font-size: clamp(1.9rem, 4.2vw, 2.9rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.04em;
  color: #fff;
  background: none;
  -webkit-text-fill-color: currentColor;
  text-wrap: balance;
}

.dd-accent {
  background: linear-gradient(90deg, var(--brand-accent, #b1a3f8), var(--dd-sky));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.dd-hero-lead {
  max-width: 34rem;
  margin: 14px 0 0;
  color: #c4bfd9;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  font-weight: 600;
  line-height: 1.55;
}

.dd-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}

.dd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--dd-capsule-line);
  background: var(--dd-capsule);
  color: #fff;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 8px 16px rgba(0, 0, 0, 0.28);
}

.dd-btn--primary,
button.dd-btn--primary {
  border: 0;
  background: linear-gradient(135deg, #8364c7, #0e2c78) !important;
  box-shadow:
    0 16px 34px rgba(131, 100, 199, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.34) !important;
}

.dd-btn:hover {
  filter: brightness(1.08);
}

.dd-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.dd-trust li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--dd-line);
  background: rgba(8, 10, 28, 0.55);
  color: #ebe7f8;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.dd-trust i {
  color: var(--brand-accent, #b1a3f8);
}

/* Hero art: mascot sticker with floating glass chips */
.dd-hero-art {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  min-height: 280px;
}

.dd-hero-orb {
  position: relative;
  width: clamp(190px, 22vw, 260px);
  aspect-ratio: 1;
  animation: dd-bob 6s ease-in-out infinite;
}

.dd-hero-orb::before {
  content: "";
  position: absolute;
  inset: -14%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.55), rgba(24, 70, 180, 0.28) 48%, transparent 70%);
  filter: blur(22px);
}

.dd-hero-orb img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.45));
}

.dd-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 14, 36, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  animation: dd-bob 7s ease-in-out infinite;
}

.dd-chip i {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 0.95rem;
  color: #fff;
  background: linear-gradient(135deg, #8364c7, #0e2c78);
}

.dd-chip--a { top: 8%; left: 2%; animation-delay: -1s; }
.dd-chip--b { top: 40%; right: -2%; animation-delay: -3s; }
.dd-chip--c { bottom: 6%; left: 8%; animation-delay: -5s; }
.dd-chip--b i { background: linear-gradient(135deg, #f1641e, #b13a0a); }
.dd-chip--c i { background: linear-gradient(135deg, #3dce8f, #12805a); }

@media (max-width: 860px) {
  .dd-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .dd-hero-art {
    min-height: 220px;
    order: -1;
  }

  .dd-hero-orb {
    width: 170px;
  }

  .dd-chip--b { right: 4%; }
}

/* ------------------------------------------------------------------ */
/* Marquee, features, steps, section heads                             */
/* ------------------------------------------------------------------ */

.dd-marquee {
  position: relative;
  overflow: hidden;
  margin: 0 0 18px;
  border: 1px solid rgba(177, 163, 248, 0.2);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(10, 14, 32, 0.55), rgba(131, 100, 199, 0.12), rgba(10, 14, 32, 0.55));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.dd-marquee-track {
  display: flex;
  width: max-content;
  animation: dd-marquee 40s linear infinite;
}

.dd-marquee:hover .dd-marquee-track {
  animation-play-state: paused;
}

.dd-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 13px 0 13px 22px;
  color: #ebe7f8;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.dd-marquee-item::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-accent, #b1a3f8);
  box-shadow: 0 0 10px rgba(177, 163, 248, 0.8);
}

.dd-section-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 8px 4px 14px;
}

.dd-section-head h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #fff;
  background: none;
  -webkit-text-fill-color: currentColor;
}

.dd-section-head p {
  margin: 0;
  color: #c4bfd9;
  font-size: 0.92rem;
  font-weight: 600;
}

.dd-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 22px;
}

.dd-feature {
  --accent: #a78bfa;
  position: relative;
  overflow: hidden;
  padding: 22px 20px 20px;
  border-radius: 22px;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent);
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 46%),
    linear-gradient(165deg, color-mix(in srgb, var(--accent) 9%, transparent), transparent 58%),
    rgba(10, 14, 36, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 2px 4px rgba(0, 0, 0, 0.3),
    0 18px 34px -14px rgba(0, 0, 0, 0.78);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s ease, box-shadow 0.28s ease;
}

.dd-feature:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 62%, transparent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 2px 4px rgba(0, 0, 0, 0.3),
    0 26px 44px -18px color-mix(in srgb, var(--accent) 55%, transparent);
}

.dd-feature--etsy { --accent: #f1641e; }
.dd-feature--mint { --accent: #3dce8f; }
.dd-feature--sky { --accent: #77ddff; }

.dd-feature-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  border-radius: 15px;
  font-size: 1.35rem;
  color: #fff;
  background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 88%, #fff 0%), color-mix(in srgb, var(--accent) 45%, #0a1230));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 10px 20px color-mix(in srgb, var(--accent) 38%, transparent);
}

.dd-feature h3 {
  margin: 0 0 6px;
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
}

.dd-feature p {
  margin: 0;
  color: #c4bfd9;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.5;
}

.dd-panel {
  position: relative;
  padding: 22px;
  margin: 0 0 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 16, 40, 0.55);
  backdrop-filter: blur(16px) saturate(1.45);
  -webkit-backdrop-filter: blur(16px) saturate(1.45);
  box-shadow:
    0 28px 56px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.28);
}

.dd-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: ddstep;
}

.dd-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--dd-line);
  background: linear-gradient(165deg, rgba(177, 163, 248, 0.1), transparent 55%), rgba(10, 14, 36, 0.55);
  color: #ebe7f8;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s ease;
}

.dd-step:hover {
  transform: translateY(-3px);
  border-color: rgba(119, 221, 255, 0.3);
}

.dd-step-num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 0.95rem;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #8364c7, #0e2c78);
  box-shadow: 0 8px 16px rgba(131, 100, 199, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.dd-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 26px 0 0;
  padding: 0;
}

.dd-footer a,
.dd-footer span {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--dd-line);
  background: rgba(8, 10, 28, 0.55);
  color: #c4bfd9;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
}

.dd-footer a:hover {
  color: #fff;
  border-color: rgba(198, 188, 240, 0.5);
}

@media (max-width: 900px) {
  .dd-feature-grid {
    grid-template-columns: 1fr;
  }

  .dd-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .dd-steps {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------------ */
/* Library / Media / Shop controls (glass control panel like /shop/)   */
/* ------------------------------------------------------------------ */

#library-toolbar,
#media-toolbar,
#shop-toolbar {
  position: relative;
  padding: 16px;
  margin-bottom: 16px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 16, 40, 0.55);
  backdrop-filter: blur(16px) saturate(1.45);
  -webkit-backdrop-filter: blur(16px) saturate(1.45);
  box-shadow:
    0 28px 56px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.28);
}

#library-toolbar .library-toolbar-kicker,
#media-toolbar .library-toolbar-kicker,
#shop-toolbar .library-toolbar-kicker {
  margin: 2px 4px 12px;
  color: #c4bfd9;
  font-size: 0.86rem;
  font-weight: 700;
}

/* One surface per control: the wrapper is the pill, the field inside is bare */
.library-search-wrap,
.library-sort-wrap {
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(177, 163, 248, 0.2);
  background: rgba(0, 0, 0, 0.3);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.library-search-wrap:focus-within,
.library-sort-wrap:focus-within {
  border-color: rgba(177, 163, 248, 0.6);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.2);
}

.library-search-wrap .library-search-input,
.library-search-input,
.library-sort-wrap .library-sort-select,
.library-sort-select {
  height: 44px;
  min-height: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 0.9rem;
  font-weight: 800;
}

.library-sort-select option {
  background: #0a0e24;
  color: #fff;
}

.library-collection-tabs,
.media-kind-tabs {
  gap: 8px;
}

.collection-tab,
.media-kind-tabs .collection-tab {
  padding: 10px 16px;
  min-height: 0;
  border-radius: 999px !important;
  border: 1px solid var(--dd-capsule-line);
  background: var(--dd-capsule);
  color: #ebe7f8;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 6px 12px rgba(0, 0, 0, 0.24);
}

.collection-tab.is-active,
.media-kind-tabs .collection-tab.is-active {
  border-color: transparent !important;
  background: var(--dd-violet) !important;
  color: #fff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 8px 18px rgba(167, 139, 250, 0.45) !important;
}

/* Cards: Digital shop-card recipe */
.widget-grid {
  gap: 18px;
}

.widget-grid .card {
  position: relative;
  overflow: hidden;
  border-radius: 22px !important;
  border: 1px solid rgba(177, 163, 248, 0.24) !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(131, 100, 199, 0.18), transparent 42%),
    linear-gradient(160deg, rgba(131, 100, 199, 0.08), transparent 55%),
    rgba(10, 14, 36, 0.72) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 2px 4px rgba(0, 0, 0, 0.3),
    0 18px 34px -14px rgba(0, 0, 0, 0.78) !important;
}

.widget-grid .card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -140%;
  z-index: 3;
  width: 55%;
  height: 100%;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.14) 45%, transparent 100%);
  transform: skewX(-18deg);
  pointer-events: none;
}

.widget-grid .card:hover::after {
  animation: dd-shine 0.9s ease;
}

@keyframes dd-shine {
  to { left: 160%; }
}

@media (hover: hover) and (pointer: fine) {
  .widget-grid .card:hover {
    transform: translateY(-5px);
    border-color: rgba(177, 163, 248, 0.5) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.14),
      0 2px 4px rgba(0, 0, 0, 0.3),
      0 28px 48px -18px rgba(131, 100, 199, 0.6) !important;
  }
}

/* Panels: every Studio info surface gets the same glass recipe */
.first-run,
.help-card,
.account-card,
.account-profile-card,
.studio-empty,
.studio-shop-unlock,
.redeem-panel {
  border-radius: 24px !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  background: rgba(10, 16, 40, 0.55) !important;
  backdrop-filter: blur(16px) saturate(1.45);
  -webkit-backdrop-filter: blur(16px) saturate(1.45);
  box-shadow:
    0 28px 56px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.28) !important;
}

/* Shop view hero becomes a Digital page-intro */
#view-shop .studio-shop-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 16px;
  padding: clamp(28px, 4vw, 44px) 24px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(ellipse 70% 90% at 15% 0%, rgba(131, 100, 199, 0.5), transparent 62%),
    radial-gradient(ellipse 60% 80% at 92% 100%, rgba(24, 70, 180, 0.5), transparent 66%),
    rgba(10, 16, 40, 0.6);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -24px 48px rgba(0, 0, 0, 0.22);
}

#view-shop .studio-shop-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(177, 163, 248, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(177, 163, 248, 0.12) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 15%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 15%, transparent 78%);
}

#view-shop .studio-shop-hero > * {
  position: relative;
}

#view-shop .studio-shop-kicker {
  display: inline-flex;
  margin: 0 0 12px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid rgba(177, 163, 248, 0.3);
  background: rgba(131, 100, 199, 0.16);
  color: #d8d2fb;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

#view-shop .studio-shop-hero h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #fff;
  background: none;
  -webkit-text-fill-color: currentColor;
}

#view-shop .studio-shop-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

#view-shop .studio-shop-pills span {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--dd-line);
  background: rgba(8, 10, 28, 0.55);
  color: #ebe7f8;
  font-size: 0.76rem;
  font-weight: 800;
}

/* Companion pages (auth, claim, connections) */
body.claim-page .claim-card,
body.connections-page .connections-card,
.auth-card {
  border-radius: 28px !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  background: rgba(10, 16, 40, 0.62) !important;
  backdrop-filter: blur(16px) saturate(1.45);
  -webkit-backdrop-filter: blur(16px) saturate(1.45);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -24px 48px rgba(0, 0, 0, 0.18) !important;
}

body.claim-page .claim-header,
body.connections-page .connections-header {
  padding: 14px 18px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--dd-glass);
  backdrop-filter: blur(16px) saturate(1.45);
  -webkit-backdrop-filter: blur(16px) saturate(1.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 22px 40px -22px rgba(0, 0, 0, 0.8);
}

/* Light theme keeps Studio's own palette: neutralise the dark-only glass */
html[data-theme="light"] .shell-bar,
html[data-theme="light"] .dd-header,
html[data-theme="light"] .dd-hero,
html[data-theme="light"] .dd-panel,
html[data-theme="light"] .dd-feature,
html[data-theme="light"] .dd-step {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(14, 44, 120, 0.14);
  box-shadow: 0 18px 40px rgba(14, 44, 120, 0.1), inset 0 1px 0 #fff;
}

html[data-theme="light"] .dd-hero h1,
html[data-theme="light"] .dd-hero h2.dd-hero-title,
html[data-theme="light"] .dd-feature h3,
html[data-theme="light"] .dd-section-head h2 {
  color: #0e2c78;
}

html[data-theme="light"] .dd-hero-lead,
html[data-theme="light"] .dd-feature p,
html[data-theme="light"] .dd-section-head p,
html[data-theme="light"] .dd-step {
  color: #3d4a6e;
}

html[data-theme="light"] .shell-bar .sidebar-nav-item,
html[data-theme="light"] .dd-nav-link {
  background: #fff;
  border-color: rgba(14, 44, 120, 0.18);
  color: #0e2c78;
}

html[data-theme="light"] .shell-bar .sidebar-nav-item .sidebar-nav-label,
html[data-theme="light"] .shell-bar .sidebar-nav-item .sidebar-nav-icon,
html[data-theme="light"] .dd-nav-link span,
html[data-theme="light"] .dd-nav-link i {
  color: #0e2c78;
  text-shadow: none;
}

html[data-theme="light"] .shell-bar .sidebar-nav-item.is-active .sidebar-nav-label,
html[data-theme="light"] .shell-bar .sidebar-nav-item.is-active .sidebar-nav-icon,
html[data-theme="light"] .dd-nav-link.is-active span,
html[data-theme="light"] .dd-nav-link.is-active i {
  color: #fff;
}

/* ------------------------------------------------------------------ */
/* Tidy pass: fewer banners, one container width, consistent pills     */
/* ------------------------------------------------------------------ */

/* Same column on every page (matches the header) */
.help-page,
.account-page {
  max-width: none;
  width: 100%;
  margin: 0;
}

.view--help,
.view--account {
  padding-top: 8px;
}

/* Plain page headers instead of extra banners */
.help-page-header {
  margin: 4px 2px 0;
}

.help-page-header h2 {
  margin: 0 0 6px;
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  background: none;
  -webkit-text-fill-color: currentColor;
}

.help-page-header .hint {
  margin: 0;
  max-width: 62ch;
  color: #c4bfd9;
  font-size: 0.92rem;
  font-weight: 600;
}

.help-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.help-card {
  padding: 20px 22px;
}

.help-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: #d8d2fb;
}

.help-card h3 i {
  color: var(--dd-violet, #a78bfa);
  font-size: 1rem;
}

.help-links a {
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: #fff;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.help-links a:hover {
  background: rgba(131, 100, 199, 0.16);
  border-color: rgba(177, 163, 248, 0.28);
}

@media (max-width: 900px) {
  .help-grid {
    grid-template-columns: 1fr;
  }
}

/* Account */
.account-page-header {
  margin-bottom: 16px;
}

.account-page-grid {
  gap: 16px;
}

/* Shop: compact intro, no pill row, no centred banner */
#view-shop .studio-shop-hero {
  align-items: flex-start;
  text-align: left;
  margin-bottom: 14px;
  padding: 24px 28px;
  border-radius: 24px;
}

#view-shop .studio-shop-kicker {
  margin-bottom: 10px;
}

#view-shop .studio-shop-hero h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
}

#view-shop .studio-shop-tagline {
  margin: 6px 0 0;
  max-width: 60ch;
  color: #c4bfd9;
  font-size: 0.92rem;
  font-weight: 600;
}

#view-shop .studio-shop-pills {
  display: none;
}

/* Shop unlock: one tidy row (copy left, field right) */
.studio-shop-unlock {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 460px);
  gap: 6px 24px;
  align-items: center;
  margin: 0 0 14px;
  padding: 18px 22px;
}

.studio-shop-unlock-badge {
  grid-column: 1;
  justify-self: start;
}

.studio-shop-unlock-copy {
  grid-column: 1;
}

.studio-shop-unlock-row {
  grid-column: 2;
  grid-row: 1 / span 2;
  flex-wrap: nowrap;
  align-self: center;
}

.studio-shop-unlock-input {
  flex: 1 1 auto;
  height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(177, 163, 248, 0.2);
  background: rgba(0, 0, 0, 0.3);
}

.studio-shop-unlock-input:focus {
  outline: none;
  border-color: rgba(177, 163, 248, 0.6);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.2);
}

.studio-shop-unlock-btn {
  flex: 0 0 auto;
  height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  white-space: nowrap;
}

.studio-shop-unlock-msg {
  grid-column: 1 / -1;
  min-height: 0;
}

.studio-shop-unlock-msg:empty {
  display: none;
}

@media (max-width: 860px) {
  .studio-shop-unlock {
    grid-template-columns: 1fr;
  }

  .studio-shop-unlock-row {
    grid-column: 1;
    grid-row: auto;
  }
}

/* Toolbars: no kicker line, one control row, chips only when present */
#library-toolbar .library-toolbar-kicker,
#shop-toolbar .library-toolbar-kicker {
  display: none;
}

#library-toolbar,
#media-toolbar,
#shop-toolbar {
  padding: 14px;
  border-radius: 22px;
}

.library-toolbar-controls {
  gap: 10px;
  align-items: center;
}

.library-collection-tabs:empty {
  display: none;
}

.library-collection-tabs,
.media-kind-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.media-toolbar .media-kind-tabs {
  margin-top: 0;
  margin-left: auto;
}

#media-toolbar .library-toolbar-kicker {
  margin: 0 4px 10px;
  color: #d8d2fb;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Secondary pill buttons (links and buttons share one look) */
a.secondary.icon-text-btn,
button.secondary.icon-text-btn,
.studio-empty-actions .secondary,
.first-run .secondary,
.first-run-dismiss {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--dd-capsule-line, rgba(255, 255, 255, 0.16));
  background: var(--dd-capsule, rgba(8, 10, 28, 0.7));
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

a.secondary.icon-text-btn,
button.secondary.icon-text-btn {
  min-height: 46px;
}

a.secondary.icon-text-btn:hover,
button.secondary.icon-text-btn:hover,
.studio-empty-actions .secondary:hover,
.first-run .secondary:hover,
.first-run-dismiss:hover {
  border-color: rgba(198, 188, 240, 0.5);
  background: rgba(131, 100, 199, 0.22);
}

.primary.icon-text-btn {
  min-height: 46px;
  border-radius: 999px;
}

/* First-run checklist: lighter, less boxy */
.first-run {
  padding: 18px 22px;
  margin-bottom: 16px;
}

.first-run-list li {
  padding: 12px 0;
}

/* Empty states */
.studio-empty {
  max-width: 520px;
  margin: 24px auto 0;
  padding: 28px 24px;
}

.studio-empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* Account menu: left-aligned list with real hover states */
.shell-account-menu {
  min-width: 264px;
  gap: 2px;
  padding: 8px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(10, 14, 36, 0.96);
  backdrop-filter: blur(18px) saturate(1.45);
  -webkit-backdrop-filter: blur(18px) saturate(1.45);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  text-align: left;
  align-items: stretch;
}

.shell-account-menu-item {
  justify-content: flex-start;
  padding: 10px 12px;
  border-radius: 12px;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 800;
  text-align: left;
}

.shell-account-menu-item i {
  color: var(--dd-violet, #a78bfa);
  font-size: 1.05rem;
}

.shell-account-menu-item:hover {
  background: rgba(131, 100, 199, 0.2);
}

.shell-account-menu-item--muted {
  color: #c4bfd9;
}

.shell-account-menu .studio-legal {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 6px;
  margin: 6px 0;
  padding: 10px 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  justify-content: stretch;
}

.shell-account-menu .studio-legal a {
  display: block;
  padding: 7px 10px;
  border-radius: 10px;
  color: #c4bfd9;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
}

.shell-account-menu .studio-legal a:hover {
  background: rgba(131, 100, 199, 0.2);
  color: #fff;
}

.shell-account-menu .sidebar-dev-toggle {
  padding: 8px 12px;
  border-radius: 12px;
}

/* Hero art: text logo badge (it carries its own purple disc) */
.dd-hero-art {
  min-height: 340px;
}

.dd-hero-orb {
  width: clamp(200px, 22vw, 250px);
}

/* Chips sit in the free corners so they never cover the logo text */
.dd-chip--a { top: 2%; left: 0; }
.dd-chip--b { top: auto; bottom: 14%; right: 0; }
.dd-chip--c { bottom: 2%; left: 2%; }

@media (max-width: 860px) {
  .dd-hero-art { min-height: 300px; }
  .dd-hero-orb { width: 180px; }
}

.dd-hero-orb img {
  border-radius: 50%;
  filter: drop-shadow(0 22px 36px rgba(0, 0, 0, 0.5));
}

/* Header: keep the brand lockup and Beta tag from crowding */
.shell-bar .shell-brand .studio-brand-subrow,
.dd-header .studio-brand-subrow {
  display: flex;
  align-items: center;
  gap: 6px;
}

.shell-bar .studio-brand-beta,
.dd-header .studio-brand-beta {
  padding: 2px 7px;
  font-size: 0.56rem;
  line-height: 1.3;
}

/* Floating ghosts are retired */
.floating-ghosts {
  display: none !important;
}

/* Tidy pass: light theme counterparts */
html[data-theme="light"] .help-page-header h2,
html[data-theme="light"] .help-links a,
html[data-theme="light"] .shell-account-menu-item,
html[data-theme="light"] a.secondary.icon-text-btn,
html[data-theme="light"] button.secondary.icon-text-btn,
html[data-theme="light"] .studio-empty-actions .secondary,
html[data-theme="light"] .first-run .secondary,
html[data-theme="light"] .first-run-dismiss {
  color: #0e2c78;
}

html[data-theme="light"] .help-page-header .hint,
html[data-theme="light"] .help-card h3,
html[data-theme="light"] #view-shop .studio-shop-tagline,
html[data-theme="light"] .shell-account-menu-item--muted,
html[data-theme="light"] .shell-account-menu .studio-legal a {
  color: #3d4a6e;
}

html[data-theme="light"] .shell-account-menu {
  background: rgba(255, 255, 255, 0.97);
  border-color: rgba(14, 44, 120, 0.16);
  box-shadow: 0 24px 48px rgba(14, 44, 120, 0.16);
}

html[data-theme="light"] .library-search-wrap,
html[data-theme="light"] .library-sort-wrap,
html[data-theme="light"] .studio-shop-unlock-input {
  background: #fff;
  border-color: rgba(14, 44, 120, 0.18);
}

html[data-theme="light"] a.secondary.icon-text-btn,
html[data-theme="light"] button.secondary.icon-text-btn,
html[data-theme="light"] .studio-empty-actions .secondary,
html[data-theme="light"] .first-run .secondary,
html[data-theme="light"] .first-run-dismiss {
  background: #fff;
  border-color: rgba(14, 44, 120, 0.18);
}

html[data-theme="light"] .library-sort-select option {
  background: #fff;
  color: #0e2c78;
}

/* Account + unlock inputs: same pill field as search */
input.studio-shop-unlock-input,
input.account-redeem-input {
  height: 46px;
  padding: 0 18px;
  border-radius: 999px !important;
  border: 1px solid rgba(177, 163, 248, 0.2) !important;
  background: rgba(0, 0, 0, 0.3) !important;
  color: #fff;
}

input.studio-shop-unlock-input:focus,
input.account-redeem-input:focus {
  outline: none;
  border-color: rgba(177, 163, 248, 0.6) !important;
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.2);
}

.account-redeem-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.account-redeem-form .account-redeem-input {
  flex: 1 1 auto;
  min-width: 0;
}

.account-redeem-btn {
  flex: 0 0 auto;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
}

.account-profile-card--hero {
  padding: 16px 20px;
  border-radius: 22px;
}

.account-profile-card--hero .account-profile-avatar {
  width: 56px;
  height: 56px;
}

.account-profile-card--hero .account-profile-avatar-fallback {
  font-size: 2.6rem;
}

.account-page {
  gap: 16px;
}

.account-page-grid {
  align-items: stretch;
}

.account-page-footer {
  display: flex;
  justify-content: center;
  padding-top: 2px;
}

.account-signout-btn {
  min-width: 0;
  min-height: 42px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(8, 10, 28, 0.7);
  color: #ebe7f8;
  font-weight: 800;
}

html[data-theme="light"] input.studio-shop-unlock-input,
html[data-theme="light"] input.account-redeem-input {
  background: #fff !important;
  border-color: rgba(14, 44, 120, 0.18) !important;
  color: #0e2c78;
}

html[data-theme="light"] .account-signout-btn {
  background: #fff;
  color: #0e2c78;
  border-color: rgba(14, 44, 120, 0.18);
}

.account-page-footer .account-signout-btn {
  width: auto !important;
}

.account-redeem-form {
  flex-wrap: nowrap;
}

.account-redeem-form input.account-redeem-input {
  width: auto;
}

@media (max-width: 860px) {
  .dd-chip { display: none; }
  .dd-hero-art { min-height: 0; padding: 8px 0 4px; }
  .library-sort-wrap { flex: 1 1 100%; max-width: none; }
}
