/* portfoolio.me — warm editorial product UI
   Layered on top of style.css and scoped to the marketing site / dashboards so
   published portfolio themes keep their own look. */

body.lx:not(.portfolio-view),
body.studio:not(.portfolio-view),
body.ui-admin:not(.portfolio-view),
body.explore:not(.portfolio-view) {
  --paper: #f5f1e8;
  --paper-2: #efe8da;
  --surface: #fffdf8;
  --surface-2: #faf6ed;
  --ink: #1b1914;
  --ink-2: #4c473c;
  --muted: #787160;
  --muted2: #9c9382;
  --line: #e6dfd0;
  --line-strong: #d8cfba;
  --sun: #f5c84b;
  --sun-soft: #fbe7a3;
  --mint: #dcefdc;
  --mint-2: #c9e6cd;
  --lav: #e8e1f8;
  --peach: #f8dfc8;
  --sky: #dbe9f4;
  --rose: #f6dbe3;
  --danger: #b45309;

  --bg: var(--paper);
  --bg2: var(--paper-2);
  --card: var(--surface);
  --card2: var(--surface-2);
  --stroke: var(--line);
  --txt: var(--ink);
  --brand: var(--ink);
  --brand2: #7b68c9;
  --lime: var(--sun);
  --pink: var(--rose);
  --amber: var(--sun);
  --radius: 24px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --sh-sm: 0 2px 8px rgba(45, 38, 20, 0.05);
  --sh-md: 0 18px 44px rgba(45, 38, 20, 0.09);
  --sh-lg: 0 34px 84px rgba(45, 38, 20, 0.13);
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
}

body.lx:not(.portfolio-view),
body.studio:not(.portfolio-view),
body.ui-admin:not(.portfolio-view),
body.explore:not(.portfolio-view) {
  background: var(--paper);
  color: var(--ink);
}

body.lx:not(.portfolio-view) .bg-fx,
body.studio:not(.portfolio-view) .bg-fx,
body.ui-admin:not(.portfolio-view) .bg-fx,
body.explore:not(.portfolio-view) .bg-fx {
  background:
    radial-gradient(900px 620px at 88% 4%, rgba(245, 200, 75, 0.14), transparent 62%),
    radial-gradient(820px 620px at 6% 12%, rgba(201, 230, 205, 0.32), transparent 60%),
    radial-gradient(760px 700px at 54% 106%, rgba(232, 225, 248, 0.42), transparent 64%),
    linear-gradient(var(--paper), var(--paper));
}

body.lx:not(.portfolio-view) .grid-overlay,
body.studio:not(.portfolio-view) .grid-overlay,
body.ui-admin:not(.portfolio-view) .grid-overlay,
body.explore:not(.portfolio-view) .grid-overlay {
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(27, 25, 20, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 25, 20, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
}

body.lx:not(.portfolio-view) #particles,
body.studio:not(.portfolio-view) #particles,
body.ui-admin:not(.portfolio-view) #particles,
body.explore:not(.portfolio-view) #particles {
  display: none;
}

body.lx:not(.portfolio-view) ::selection,
body.studio:not(.portfolio-view) ::selection,
body.ui-admin:not(.portfolio-view) ::selection,
body.explore:not(.portfolio-view) ::selection {
  background: var(--sun);
  color: var(--ink);
}

body.lx:not(.portfolio-view) ::-webkit-scrollbar,
body.studio:not(.portfolio-view) ::-webkit-scrollbar,
body.ui-admin:not(.portfolio-view) ::-webkit-scrollbar,
body.explore:not(.portfolio-view) ::-webkit-scrollbar {
  width: 11px;
}

body.lx:not(.portfolio-view) ::-webkit-scrollbar-track,
body.studio:not(.portfolio-view) ::-webkit-scrollbar-track,
body.ui-admin:not(.portfolio-view) ::-webkit-scrollbar-track,
body.explore:not(.portfolio-view) ::-webkit-scrollbar-track {
  background: var(--paper);
}

body.lx:not(.portfolio-view) ::-webkit-scrollbar-thumb,
body.studio:not(.portfolio-view) ::-webkit-scrollbar-thumb,
body.ui-admin:not(.portfolio-view) ::-webkit-scrollbar-thumb,
body.explore:not(.portfolio-view) ::-webkit-scrollbar-thumb {
  background: #d5cbb6;
  border-radius: 8px;
  border: 2px solid var(--paper);
}

body.lx:not(.portfolio-view) ::-webkit-scrollbar-thumb:hover,
body.studio:not(.portfolio-view) ::-webkit-scrollbar-thumb:hover,
body.ui-admin:not(.portfolio-view) ::-webkit-scrollbar-thumb:hover,
body.explore:not(.portfolio-view) ::-webkit-scrollbar-thumb:hover {
  background: #b9ac91;
}

/* ── Landing navigation ─────────────────────────────────────────────── */
body.lx .lx-nav {
  top: 0;
  left: 0;
  right: 0;
  transform: none;
  width: 100%;
  padding: 20px clamp(20px, 4.5vw, 60px);
  background: rgba(245, 241, 232, 0.82);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  box-shadow: none;
}

body.lx #mainNav.scrolled {
  padding: 13px clamp(20px, 4.5vw, 60px);
  background: rgba(245, 241, 232, 0.94);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(27, 25, 20, 0.02);
}

body.lx .lx-progress {
  height: 2px;
  background: var(--ink);
  box-shadow: none;
  border-radius: 0;
}

body.lx .lx-brand {
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  gap: 11px;
}

body.lx .lx-brand .brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

body.lx .lx-brand em {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-left: 1px;
}

body.lx .lx-brand-wrap .lx-live-badge {
  display: none;
}

body.lx .nav-links {
  gap: 32px;
  font-size: 14.5px;
  font-weight: 600;
}

body.lx .nav-links .nav-link[href="#auth"] {
  display: none;
}

body.lx .nav-link {
  position: relative;
  color: #6d6759;
  opacity: 1;
  transition: color 0.2s var(--ease);
}

body.lx .nav-link:hover,
body.lx .nav-link.active {
  color: var(--ink);
}

body.lx .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}

body.lx .nav-link:hover::after,
body.lx .nav-link.active::after {
  transform: scaleX(1);
  background: var(--ink);
}

body.lx .lx-nav-cta {
  gap: 22px;
}

body.lx .lx-login {
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 700;
}

body.lx .lx-login:hover {
  color: #000;
}

body.lx .lx-btn {
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(27, 25, 20, 0.16);
}

body.lx .lx-btn::before {
  display: none;
}

body.lx .lx-btn:hover {
  transform: translateY(-1px);
  background: #000;
  box-shadow: 0 12px 26px rgba(27, 25, 20, 0.22);
}

body.lx .lx-btn:active {
  transform: translateY(0) scale(0.98);
}

/* ── Hero copy ──────────────────────────────────────────────────────── */
body.lx .lx-hero {
  position: relative;
  padding: 158px 0 54px;
  overflow: hidden;
}

body.lx #heroCanvas {
  display: none;
}

body.lx .lx-hero-inner {
  position: relative;
  width: min(1320px, 94%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: center;
  text-align: left;
}

body.lx .lx-hero-inner::before {
  content: "";
  position: absolute;
  top: -80px;
  left: -14%;
  width: 720px;
  max-width: 80vw;
  height: 640px;
  background: radial-gradient(ellipse at 40% 40%, rgba(201, 230, 205, 0.35), transparent 66%);
  filter: blur(24px);
  pointer-events: none;
  z-index: 0;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

body.lx .lx-title {
  margin: 0 0 24px;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: clamp(44px, 5.6vw, 78px);
  font-weight: 800;
  line-height: 0.99;
  letter-spacing: -0.052em;
  color: var(--ink);
  text-wrap: balance;
}

body.lx .lx-serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #7b68c9;
}

body.lx .lx-sub {
  margin: 0 0 32px;
  max-width: 536px;
  color: #6c6657;
  font-size: 17.5px;
  line-height: 1.66;
  text-wrap: pretty;
}

body.lx .lx-sub strong {
  color: var(--ink);
  font-weight: 700;
}

body.lx .lx-cta {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 14px;
  margin: 0 0 30px;
}

body.lx .lx-btn-lg {
  padding: 17px 28px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 0 16px 34px rgba(27, 25, 20, 0.22);
  animation: none;
  gap: 12px;
}

body.lx .lx-btn-lg::after {
  display: none;
}

body.lx .lx-btn-lg:hover {
  transform: translateY(-2px);
  background: #000;
  box-shadow: 0 22px 46px rgba(27, 25, 20, 0.28);
}

body.lx .lx-btn-lg i {
  font-size: 13px;
  transition: transform 0.25s var(--ease);
}

body.lx .lx-btn-lg:hover i {
  transform: translateX(4px);
}

body.lx .lx-btn-ghost {
  padding: 15px 24px;
  border-radius: 999px;
  border: 1px solid #cfc6b4;
  background: transparent;
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 700;
  gap: 11px;
}

body.lx .lx-btn-ghost:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
  background: var(--surface);
}

.hero-play {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e9e2d3;
  color: var(--ink);
  font-size: 9px;
  padding-left: 1px;
}

body.lx .lx-proof {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}

body.lx .lx-avatars span {
  width: 34px;
  height: 34px;
  border: 2px solid var(--paper);
  background: #dfe9da;
  color: #3c4237;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(45, 38, 20, 0.08);
}

body.lx .lx-avatars span:nth-child(2) { background: #f6dfc2; color: #5d4630; }
body.lx .lx-avatars span:nth-child(3) { background: #e8e1f8; color: #4c4270; }
body.lx .lx-avatars span:nth-child(4) { background: #f4dbe3; color: #6b4051; }
body.lx .lx-avatars span:nth-child(5) { background: var(--ink); color: #fff; }

body.lx .lx-avatars span:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(45, 38, 20, 0.16);
  border-color: var(--surface);
}

body.lx .lx-proof-text {
  color: #6c6657;
  font-size: 13.5px;
  font-weight: 600;
}

body.lx .lx-proof:hover .lx-proof-text {
  color: var(--ink);
}

body.lx .lx-stars {
  color: #e8a33d;
  letter-spacing: 2px;
  margin-right: 4px;
}

/* ── Hero node cluster ──────────────────────────────────────────────── */
.hero-nodes {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1 / 1;
  justify-self: end;
}

.hero-nodes::before {
  content: "";
  position: absolute;
  inset: 6% 4% 8% 6%;
  background:
    radial-gradient(circle at 58% 44%, rgba(251, 231, 163, 0.5), transparent 58%),
    radial-gradient(circle at 34% 68%, rgba(220, 239, 220, 0.55), transparent 62%);
  filter: blur(18px);
  pointer-events: none;
}

.hero-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.hero-lines path {
  stroke: #2c2921;
  stroke-width: 1.4;
  stroke-linecap: round;
  opacity: 0.26;
}

.hnode {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 20px;
  color: #2b2820;
  font-size: 23px;
  border: 1px solid rgba(43, 40, 32, 0.07);
  box-shadow:
    0 18px 34px rgba(58, 48, 24, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  animation: heroNodeFloat 6.4s ease-in-out infinite;
  will-change: transform;
}

.hnode i { pointer-events: none; }

.hnode-a { left: 26.9%; top: 11.1%; background: #dff0dd; animation-delay: -0.4s; }
.hnode-b { left: 64.6%; top: 11.1%; background: #fbe6a1; animation-delay: -1.6s; }
.hnode-c { left: 10.4%; top: 34.6%; background: #e8e1f8; animation-delay: -2.4s; }
.hnode-d { left: 74.2%; top: 34.6%; background: #d9efdb; animation-delay: -3.1s; }
.hnode-e { left: 10.4%; top: 63.5%; background: #f8e2c8; animation-delay: -1.1s; }
.hnode-f { left: 74.2%; top: 63.5%; background: #e8e1f8; animation-delay: -2.8s; }
.hnode-g { left: 48.1%; top: 78.5%; background: #d8edda; animation-delay: -0.8s; }

.hnode-plug {
  left: 22.7%;
  top: 48.1%;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #1b1914;
  color: #f5f1e8;
  font-size: 16px;
  animation-delay: -3.7s;
}

.hnode-hub {
  left: 41.2%;
  top: 41.2%;
  width: 92px;
  height: 92px;
  border-radius: 28px;
  background: #1b1914;
  color: #f5f1e8;
  font-size: 30px;
  z-index: 3;
  box-shadow:
    0 24px 46px rgba(27, 25, 20, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  animation-delay: -2s;
}

@keyframes heroNodeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ── Tool marquee ───────────────────────────────────────────────────── */
body.lx .lx-logos {
  width: min(1320px, 94%);
  margin: 0 auto;
  padding: 26px 0 4px;
}

body.lx .lx-logos-label {
  color: #9a927f;
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 800;
  margin-bottom: 16px;
}

body.lx .lx-logos-row {
  gap: 10px;
}

body.lx .lx-logos-row span {
  color: #7e7664;
  background: transparent;
  border: 1px solid #e3dbca;
  border-radius: 999px;
  padding: 8px 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
}

body.lx .lx-logos-row span:hover {
  color: var(--ink);
  border-color: #cdc3af;
  background: var(--surface);
}

/* ── Section rhythm ─────────────────────────────────────────────────── */
body.lx .lx-section {
  width: min(1200px, 92%);
  margin: 0 auto;
  padding: 100px 0 8px;
}

body.lx .lx-section + .lx-section::before {
  display: none;
}

body.lx .lx-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  margin-bottom: 16px;
  border: 0;
  background: none;
  color: #9a927f;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 2.2px;
  text-transform: uppercase;
}

body.lx .lx-kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: #c9bfa9;
  display: inline-block;
}

body.lx .lx-section:hover .lx-kicker::before {
  background: var(--ink);
}

body.lx .lx-section:hover .lx-kicker {
  border: 0;
  box-shadow: none;
}

body.lx .lx-h2 {
  margin-bottom: 14px;
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: clamp(32px, 3.9vw, 48px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.038em;
  text-wrap: balance;
}

body.lx .lx-lime {
  color: #7b68c9;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: currentColor;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
}

body.lx .lx-lead {
  max-width: 620px;
  color: #6c6657;
  font-size: 16.5px;
  line-height: 1.7;
}

/* ── Feature / bento cards ──────────────────────────────────────────── */
body.lx .lx-bento {
  gap: 18px;
  margin-top: 36px;
}

body.lx .lx-bento::before,
body.lx .lx-bento::after {
  display: none;
}

body.lx .lx-bento-card {
  padding: 28px 26px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

body.lx .lx-bento-card::before {
  display: none;
}

body.lx .lx-bento-card:hover {
  transform: translateY(-5px);
  border-color: #d9d0bd;
  box-shadow: var(--sh-md);
}

body.lx .lx-bento-card.lx-span {
  background: linear-gradient(150deg, #fbf6e9, var(--surface) 62%);
}

body.lx .lx-bento-card h3 {
  margin: 16px 0 8px;
  color: var(--ink);
  font-size: 19.5px;
  letter-spacing: -0.02em;
}

body.lx .lx-bento-card p {
  color: #6c6657;
  font-size: 14.5px;
  line-height: 1.65;
}

body.lx .lx-bento-card strong {
  color: var(--ink);
}

body.lx .lx-bento-icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  border: 0;
  color: var(--ink);
  background: var(--mint);
  box-shadow: none;
  font-size: 19px;
}

body.lx .lx-bento-card:nth-child(2) .lx-bento-icon { background: var(--sun-soft); }
body.lx .lx-bento-card:nth-child(3) .lx-bento-icon { background: var(--lav); }
body.lx .lx-bento-card:nth-child(4) .lx-bento-icon { background: var(--peach); }
body.lx .lx-bento-card:nth-child(5) .lx-bento-icon { background: var(--sky); }

body.lx .lx-bento-card:hover .lx-bento-icon {
  transform: translateY(-2px) rotate(-3deg);
  box-shadow: none;
}

body.lx .lx-bento-url {
  margin-top: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: #5f5849;
  font-size: 12px;
}

body.lx .lx-bento-url span {
  color: #4f7a52;
}

body.lx .lx-bento-url:hover {
  border-color: #cdc3af;
  color: var(--ink);
  box-shadow: none;
}

body.lx .lx-spark i {
  background: #2b2820;
  opacity: 0.22;
  border-radius: 4px;
}

body.lx .lx-swatches i {
  border-radius: 10px;
}

/* ── Theme gallery ──────────────────────────────────────────────────── */
body.lx .lx-gallery {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}

body.lx .lx-theme-card {
  padding: 12px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

body.lx .lx-theme-card:hover,
body.lx .lx-theme-card:focus-visible {
  transform: translateY(-6px);
  border-color: #d6cdb9;
  box-shadow: var(--sh-md);
}

body.lx .lx-theme-card::after {
  top: 26px;
  padding: 5px 12px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #f5f1e8;
  font-size: 10.5px;
  font-weight: 700;
}

body.lx .lx-tp {
  border: 1px solid #e2dac9;
  border-radius: 13px;
  margin-bottom: 12px;
}

body.lx .lx-theme-card:hover .lx-tp {
  box-shadow: none;
  transform: scale(1.015);
}

body.lx .lx-theme-name {
  gap: 1px;
  padding: 2px 4px 3px;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

body.lx .lx-theme-name em {
  color: #948c79;
  font-size: 11px;
  font-weight: 500;
}

/* ── Live showcase ──────────────────────────────────────────────────── */
body.lx .dir-filter {
  justify-content: flex-start;
  gap: 8px;
  margin: 22px 0 24px;
}

body.lx .dir-filter-btn {
  padding: 9px 17px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: #6c6657;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

body.lx .dir-filter-btn:hover {
  transform: translateY(-1px);
  border-color: #cfc5b1;
  background: var(--surface);
  color: var(--ink);
}

body.lx .dir-filter-btn.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #f5f1e8;
  box-shadow: none;
}

body.lx .dir-grid {
  gap: 16px;
}

body.lx .dir-card {
  padding: 22px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

body.lx .dir-card:hover {
  transform: translateY(-4px);
  border-color: #d6cdb9;
  box-shadow: var(--sh-md);
}

body.lx .dir-card h3 {
  color: var(--ink);
  font-size: 17px;
  letter-spacing: -0.02em;
}

body.lx .dir-card p {
  color: #6c6657;
  font-size: 13.5px;
}

body.lx .dir-card .mono {
  color: #7b68c9 !important;
  font-size: 12px !important;
}

body.lx .dir-card > div:first-child > span {
  background: var(--lav) !important;
  color: #4c4270 !important;
  font-weight: 800;
}

body.lx .dir-card .btn-primary {
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  box-shadow: none;
  padding: 9px 16px;
}

body.lx .dir-card .btn-primary:hover {
  background: #000;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(27, 25, 20, 0.2);
}

body.lx .lx-center {
  margin-top: 34px;
}

body.lx .lx-center .lx-btn-ghost {
  padding: 13px 22px;
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
}

body.lx .lx-center .lx-btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--surface);
}

/* ── Three-step process ─────────────────────────────────────────────── */
body.lx .lx-steps {
  gap: 18px;
  margin-top: 38px;
}

body.lx .lx-steps::before {
  display: none;
}

body.lx .lx-step {
  padding: 28px 26px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

body.lx .lx-step:hover {
  transform: translateY(-4px);
  border-color: #d6cdb9;
  box-shadow: var(--sh-md);
}

body.lx .lx-step-num {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 0;
  background: var(--mint);
  color: #34503a;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: none;
}

body.lx .lx-step:nth-child(2) .lx-step-num { background: var(--sun-soft); color: #6b5210; }
body.lx .lx-step:nth-child(3) .lx-step-num { background: var(--lav); color: #4c4270; }

body.lx .lx-step:hover .lx-step-num {
  transform: translateY(-2px);
  background: var(--mint);
  color: #34503a;
  box-shadow: none;
}

body.lx .lx-step:nth-child(2):hover .lx-step-num { background: var(--sun-soft); color: #6b5210; }
body.lx .lx-step:nth-child(3):hover .lx-step-num { background: var(--lav); color: #4c4270; }

body.lx .lx-step h3 {
  margin: 18px 0 8px;
  color: var(--ink);
  font-size: 19px;
  letter-spacing: -0.02em;
}

body.lx .lx-step p {
  color: #6c6657;
  font-size: 14.5px;
  line-height: 1.65;
}

body.lx .lx-step strong {
  color: var(--ink);
}

/* ── Testimonials ───────────────────────────────────────────────────── */
body.lx .lx-quotes {
  gap: 18px;
  margin-top: 38px;
}

body.lx .lx-quotes::before,
body.lx .lx-quotes::after {
  display: none;
}

body.lx .lx-quote {
  padding: 28px 26px 24px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

body.lx .lx-quote::before {
  display: none;
}

body.lx .lx-quote::after {
  display: none;
}

body.lx .lx-quote:hover {
  transform: translateY(-4px);
  border-color: #d6cdb9;
  box-shadow: var(--sh-md);
}

body.lx .lx-quote blockquote {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.62;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}

body.lx .lx-quote blockquote::before {
  color: #b9aee6;
  font-family: var(--serif);
  font-size: 46px;
  line-height: 0.55;
  margin-bottom: 14px;
}

body.lx .lx-quote figcaption {
  color: #6c6657;
  gap: 11px;
}

body.lx .lx-quote-ava {
  width: 36px;
  height: 36px;
  background: var(--mint) !important;
  color: #34503a !important;
  font-size: 13px;
}

body.lx .lx-quote:nth-child(2) .lx-quote-ava {
  background: var(--sun-soft) !important;
  color: #6b5210 !important;
}

body.lx .lx-quote:nth-child(3) .lx-quote-ava {
  background: var(--lav) !important;
  color: #4c4270 !important;
}

body.lx .lx-quote:hover .lx-quote-ava {
  box-shadow: 0 0 0 3px rgba(201, 230, 205, 0.6);
}

body.lx .lx-quote-name {
  color: var(--ink);
  font-size: 13.5px;
}

body.lx .lx-quote-role {
  color: #948c79;
  font-size: 11.5px;
}

body.lx .lx-verified {
  background: var(--mint-2);
  color: #34503a;
}

/* ── Closing CTA ────────────────────────────────────────────────────── */
body.lx .lx-cta-banner {
  margin-top: 36px;
  padding: 76px 32px;
  border: 0;
  border-radius: 32px;
  background: var(--ink);
  box-shadow: 0 30px 70px rgba(27, 25, 20, 0.2);
  transition: box-shadow 0.4s var(--ease);
}

body.lx .lx-cta-banner:hover {
  border: 0;
  box-shadow: 0 38px 84px rgba(27, 25, 20, 0.26);
}

body.lx .lx-cta-banner::before,
body.lx .lx-cta-banner::after {
  display: none;
}

body.lx .lx-cta-banner h2 {
  color: #f7f2e8;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: clamp(32px, 4.6vw, 54px);
  font-weight: 800;
  letter-spacing: -0.042em;
  line-height: 1.03;
  margin-bottom: 14px;
}

body.lx .lx-cta-banner h2 span {
  color: #c9bcf4;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
}

body.lx .lx-cta-banner p {
  color: #b9b2a2;
  font-size: 14.5px;
  margin-bottom: 30px;
}

body.lx .lx-cta-banner .lx-btn-lg {
  background: var(--sun);
  color: var(--ink);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
}

body.lx .lx-cta-banner .lx-btn-lg:hover {
  background: #ffd45f;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.36);
}

/* ── Auth section ───────────────────────────────────────────────────── */
body.lx .lx-auth-grid {
  gap: 48px;
  margin-top: 40px;
  align-items: center;
}

body.lx .lx-auth-points {
  margin: 24px 0;
  gap: 12px;
}

body.lx .lx-auth-points li {
  color: #5f594b;
  font-size: 14.5px;
}

body.lx .lx-auth-points li:hover {
  color: var(--ink);
}

body.lx .lx-auth-points i {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--mint-2);
  color: #34503a;
  font-size: 9px;
}

body.lx .lx-auth-grid .lx-btn-ghost {
  padding: 13px 20px;
  font-size: 14px;
  border-color: var(--line-strong);
  background: var(--surface);
}

body.lx .lx-auth-card {
  padding: 32px 30px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--sh-md);
}

body.lx .lx-auth-card::before {
  display: none;
}

body.lx .lx-auth-card:hover {
  border-color: #d6cdb9;
  box-shadow: var(--sh-md);
}

body.lx .lx-auth-card .auth-tabs {
  margin-bottom: 26px;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
}

body.lx .lx-auth-card .auth-tab {
  padding: 11px 16px;
  border-radius: 999px;
  color: #6c6657;
  font-size: 13.5px;
  font-weight: 700;
}

body.lx .lx-auth-card .auth-tab:hover {
  color: var(--ink);
}

body.lx .lx-auth-card .auth-tab.active,
body.lx .lx-auth-card .auth-tab.active:hover {
  background: var(--ink);
  color: #fff;
  box-shadow: none;
}

body.lx .lx-auth-card .flabel {
  color: #948c79;
  font-size: 11px;
  letter-spacing: 0.9px;
}

body.lx .lx-auth-card .input-wrapper input,
body.lx .lx-auth-card input {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 14.5px;
}

body.lx .lx-auth-card .input-wrapper input {
  padding-right: 44px;
}

body.lx .lx-auth-card input::placeholder {
  color: #a79e8b;
}

body.lx .lx-auth-card .input-wrapper input:focus,
body.lx .lx-auth-card input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(27, 25, 20, 0.08);
  background: var(--surface);
}

body.lx .lx-auth-card .input-icon,
body.lx .lx-auth-card .toggle-pass {
  color: #a79e8b;
}

body.lx .lx-auth-card .toggle-pass:hover {
  color: var(--ink);
}

body.lx .lx-auth-card .btn-primary-block {
  padding: 15px 24px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 12px 26px rgba(27, 25, 20, 0.18);
}

body.lx .lx-auth-card .btn-primary-block:hover {
  background: #000;
  box-shadow: 0 16px 32px rgba(27, 25, 20, 0.24);
}

body.lx .lx-auth-card .auth-msg,
body.lx .lx-auth-card .auth-hint,
body.lx .lx-auth-card .demo-text {
  color: #8a8272;
}

body.lx .lx-auth-card .auth-inline-switch-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--ink);
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  transition: opacity 0.2s var(--ease);
}
body.lx .lx-auth-card .auth-inline-switch-btn:hover {
  opacity: 0.75;
}

/* ── Footer ─────────────────────────────────────────────────────────── */
body.lx .lx-footer {
  margin-top: 80px;
  border-top: 1px solid var(--line);
  background: transparent;
}

body.lx .lx-footer-inner {
  width: min(1200px, 92%);
  padding: 36px 0;
}

body.lx .lx-footer .lx-brand {
  font-size: 15px;
}

body.lx .lx-footer-tag {
  color: #8a8272;
  font-size: 13px;
}

body.lx .lx-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: #5f7a5f;
  font-size: 12px;
  font-weight: 700;
}

body.lx .lx-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6aa86f;
}

body.lx .lx-footer-links a {
  color: #6c6657;
  font-size: 13.5px;
}

body.lx .lx-footer-links a:hover {
  color: var(--ink);
}

body.lx .lx-footer-links a::after {
  background: var(--ink);
}

/* ── Studio chrome ──────────────────────────────────────────────────── */
#dashboardApp {
  min-height: 100vh;
}

body.studio #dashboardApp {
  background: var(--paper);
  color: var(--ink);
  --card: var(--surface);
  --card2: var(--surface-2);
  --stroke: var(--line);
  --txt: var(--ink);
  --muted: #787160;
}

body.studio #dashboardApp h1,
body.studio #dashboardApp h2,
body.studio #dashboardApp h3 {
  color: var(--ink);
}

body.studio .dash-nav {
  top: 14px;
  width: min(1320px, 94%);
  margin: 16px auto;
  padding: 11px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.9);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: var(--sh-sm);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

body.studio .dash-nav:hover {
  border-color: #d9d0bd;
  box-shadow: var(--sh-sm);
}

body.studio .dash-nav:hover .dash-user-info {
  transform: none;
}

body.studio .dash-nav .logo {
  color: var(--ink);
  text-transform: uppercase;
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  gap: 10px;
}

body.studio .dash-nav .logo .brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

body.studio .dash-nav .logo small {
  margin-left: 1px;
  color: #948c79;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: lowercase;
}

body.studio .dash-user-info {
  gap: 11px;
}

body.studio .role-badge {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid rgba(93, 141, 98, 0.22);
  background: var(--mint);
  color: #3c6140;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1.1px;
}

body.studio .role-badge.user::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5f9c66;
}

body.studio .role-badge.user:hover {
  border-color: rgba(93, 141, 98, 0.35);
  box-shadow: none;
}

body.studio .role-badge.admin {
  background: var(--sun-soft);
  color: #6b5210;
  border-color: rgba(180, 139, 32, 0.22);
}

.dash-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--lav);
  color: #4c4270;
  font-size: 12.5px;
  border: 1px solid rgba(76, 66, 112, 0.08);
}

body.studio #dashUserEmail {
  color: #6c6657 !important;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12.5px !important;
  font-weight: 600;
}

body.studio #globalLogoutBtn {
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: #5f594b;
  font-size: 12.5px;
  font-weight: 700;
}

body.studio #globalLogoutBtn:hover {
  border-color: var(--ink);
  background: var(--surface);
  color: var(--ink);
}

body.studio #userDashboardView.wrap,
body.studio #adminDashboardView.wrap {
  width: min(1320px, 94%);
  padding-top: 4px !important;
}

/* ── Studio sidebar layout ──────────────────────────────────────────── */
body.studio #userDashboardView {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  column-gap: 20px;
  align-items: start;
}

body.studio .dash-header-card,
body.studio #subdomainWizardCard {
  grid-column: 1 / -1;
}

body.studio #techStudio,
body.studio #visualStudio {
  grid-column: 1;
  grid-row: 2;
  position: sticky;
  top: 92px;
  align-self: start;
}

body.studio #studioPanes {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
}

body.studio .dash-tab-btns {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0;
  padding: 14px 10px 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
  overflow: visible;
}

body.studio .dash-tab-btns::before {
  content: "Workspace";
  display: block;
  padding: 2px 12px 10px;
  color: #a0977f;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

body.studio .dash-tab-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  width: 100%;
  padding: 11px 13px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #5f594b;
  font-size: 13.5px;
  font-weight: 600;
  text-align: left;
  box-shadow: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

body.studio .dash-tab-btn i {
  width: 17px;
  color: #948c79;
  font-size: 13.5px;
  text-align: center;
}

body.studio .dash-tab-btn:hover {
  background: var(--paper);
  color: var(--ink);
  box-shadow: none;
}

body.studio .dash-tab-btn:hover i {
  color: var(--ink);
}

body.studio .dash-tab-btn.active {
  background: var(--sun-soft);
  color: var(--ink);
  font-weight: 700;
  border: 0;
  box-shadow: none;
}

body.studio .dash-tab-btn.active i {
  color: var(--ink);
}

body.studio .dash-tab-btn:active {
  transform: none;
}

/* ── Welcome banner ─────────────────────────────────────────────────── */
body.studio .dash-header-card {
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
  padding: 26px 30px;
  border: 1px solid #e1dbc7;
  border-radius: 26px;
  background:
    radial-gradient(420px 220px at 96% 10%, rgba(245, 200, 75, 0.16), transparent 70%),
    linear-gradient(105deg, #eef6e8 0%, #f8f5e9 54%, #f4efdf 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

body.studio .dash-header-card:hover {
  border-color: #d9d2bd;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

body.studio .dash-header-card h2 {
  gap: 8px;
  color: var(--ink);
  font-size: clamp(22px, 2.1vw, 27px);
  font-weight: 800;
  letter-spacing: -0.032em;
}

body.studio .dash-header-card h2 .grad {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: currentColor;
  color: var(--ink);
}

body.studio #dashWelcomeSub {
  color: #6c6657 !important;
  font-size: 14px !important;
  margin-top: 5px !important;
}

.dash-live-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 22px rgba(27, 25, 20, 0.18);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.dash-live-link:hover {
  transform: translateY(-1px);
  background: #000;
  box-shadow: 0 14px 28px rgba(27, 25, 20, 0.24);
}

.dash-live-link i {
  font-size: 11px;
}

.dash-live-link:active {
  transform: translateY(0) scale(0.98);
}

body.studio #trackSwitchBtn {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid #cfc5b1;
  background: rgba(255, 253, 248, 0.6);
  color: #5f594b;
  font-size: 12.5px;
  font-weight: 700;
}

body.studio #trackSwitchBtn:hover {
  border-color: var(--ink);
  background: var(--surface);
  color: var(--ink);
}

body.studio .status-pill {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  box-shadow: none;
}

body.studio .status-pill.none {
  border: 1px solid var(--line);
  background: var(--surface);
  color: #8a8272;
}

body.studio .status-pill.live {
  border: 1px solid rgba(93, 141, 98, 0.24);
  background: var(--mint);
  color: #3c6140;
  box-shadow: none;
}

body.studio .status-pill.pending {
  border: 1px solid rgba(180, 139, 32, 0.24);
  background: var(--sun-soft);
  color: #6b5210;
  box-shadow: none;
}

body.studio .status-pill.rejected {
  border: 1px solid rgba(180, 82, 82, 0.22);
  background: var(--rose);
  color: #7c3b3b;
  box-shadow: none;
}

/* ── Studio cards ───────────────────────────────────────────────────── */
body.studio #studioPanes > .card,
body.studio #subdomainWizardCard {
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
  overflow: visible;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

body.studio #studioPanes > .card:hover,
body.studio #subdomainWizardCard:hover {
  transform: none;
  border-color: var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

body.studio #studioPanes > .card h3 {
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 6px;
}

body.studio #studioPanes > .card:hover h3 {
  color: var(--ink);
}

body.studio #studioPanes > .card p {
  color: #6c6657;
  font-size: 13.5px;
}

body.studio #studioPanes > .card > p:first-of-type,
body.studio #subdomainWizardCard .lead {
  color: #6c6657;
  font-size: 13.5px;
  line-height: 1.6;
}

body.studio .eyebrow {
  padding: 6px 12px;
  border: 1px solid #d9e5d4;
  background: var(--mint);
  color: #3c6140;
  font-size: 10px;
  letter-spacing: 1.2px;
  box-shadow: none;
}

body.studio .eyebrow:hover {
  border-color: #d9e5d4;
  background: var(--mint);
  box-shadow: none;
  transform: none;
}

body.studio .card .title,
body.studio .card h2.title {
  color: var(--ink);
  letter-spacing: -0.035em;
}

/* ── Studio forms ───────────────────────────────────────────────────── */
body.studio .form-grid {
  gap: 14px 16px;
}

body.studio label.flabel {
  margin-bottom: 7px;
  color: #948c79;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.1px;
}

body.studio input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
body.studio textarea,
body.studio select {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13.5px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

body.studio input:not([type="checkbox"]):not([type="radio"]):not([type="file"])::placeholder,
body.studio textarea::placeholder {
  color: #a79e8b;
}

body.studio input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
body.studio textarea:focus,
body.studio select:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(27, 25, 20, 0.07);
}

body.studio input[readonly] {
  background: var(--surface-2);
  color: #6c6657;
}

body.studio input[type="file"] {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: #6c6657;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
}

body.studio input[type="file"]::file-selector-button {
  margin-right: 10px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--ink);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

body.studio input[type="checkbox"],
body.studio input[type="radio"] {
  accent-color: var(--ink);
}

body.studio select option {
  background: var(--surface);
  color: var(--ink);
}

body.studio .mono {
  font-family: 'JetBrains Mono', monospace;
}

body.studio .gh-repo {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  font-size: 12.5px;
}

body.studio .gh-repo:hover {
  border-color: #d2c8b4;
  background: var(--surface);
  box-shadow: none;
  transform: none;
}

body.studio .gh-repo b {
  color: var(--ink);
  font-size: 12.5px;
}

body.studio .gh-repo small {
  color: #8a8272;
}

body.studio .proj-row {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-2);
}

body.studio .proj-row:hover {
  border-color: #d2c8b4;
  background: var(--surface);
}

/* ── Studio action bar ────────────────────────────────────────────── */
#deskActionBar {
  display: none;
}

#studioControls {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 14px 16px;
  border-top: 1px solid #e6dfd0;
  background: #fffdf8;
  box-shadow: 0 2px 8px rgba(45, 38, 20, 0.06);
  justify-content: space-between;
}

#studioControls .ctrl-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

#studioControls .ctrl-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 0;
  background: #1b1914;
  color: #f5f1e8;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 0 8px 18px rgba(27, 25, 20, 0.22);
  cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), background 0.15s var(--ease);
}

#studioControls .ctrl-btn:hover {
  transform: translateY(-1px);
  background: #000;
  box-shadow: 0 12px 24px rgba(27, 25, 20, 0.28);
}

#studioControls .ctrl-btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 6px 14px rgba(27, 25, 20, 0.18);
}

#studioControls .ctrl-btn.ghost {
  background: transparent;
  color: #1b1914;
  box-shadow: none;
  border: 1px solid #d8cfba;
}

#studioControls .ctrl-btn.ghost:hover {
  background: #faf6ed;
  border-color: #1b1914;
  box-shadow: 0 4px 10px rgba(27, 25, 20, 0.12);
}

#studioControls .ctrl-btn:focus-visible {
  outline: 2px solid #7b68c9;
  outline-offset: 2px;
}

#studioControls .ctrl-btn.ghost:focus-visible {
  outline-offset: 2px;
}

#studioControls .ctrl-label {
  color: #787160;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-right: 4px;
}

body.studio .dash-header-card .dash-live-link {
  box-shadow: 0 12px 26px rgba(27, 25, 20, 0.3);
}

body.studio .dash-header-card .dash-live-link:hover {
  box-shadow: 0 16px 32px rgba(27, 25, 20, 0.36);
}

/* ── Vertical studio controls (left action rail) ────────────────────── */
#verticalControls {
  display: none;
}

#verticalControls .vctrl-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 56px;
  padding: 18px 8px;
  border-right: 1px solid #e6dfd0;
  background: #fffdf8;
}

#verticalControls .vctrl-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: #1b1914;
  font-size: 17px;
  box-shadow: none;
  cursor: pointer;
  transition: background 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.15s var(--ease);
}

#verticalControls .vctrl-btn:hover {
  background: #faf6ed;
  box-shadow: 0 4px 10px rgba(27, 25, 20, 0.1);
  transform: translateY(-1px);
}

#verticalControls .vctrl-btn:active {
  transform: translateY(0) scale(0.96);
}

#verticalControls .vctrl-btn.primary {
  background: #1b1914;
  color: #f5f1e8;
  box-shadow: 0 8px 18px rgba(27, 25, 20, 0.22);
  width: 46px;
  height: 46px;
}

#verticalControls .vctrl-btn.primary:hover {
  background: #000;
  box-shadow: 0 12px 24px rgba(27, 25, 20, 0.28);
}

#verticalControls .vctrl-btn.primary:active {
  box-shadow: 0 6px 14px rgba(27, 25, 20, 0.18);
  transform: translateY(0) scale(0.96);
}

#verticalControls .vctrl-btn:focus-visible {
  outline: 2px solid #7b68c9;
  outline-offset: 2px;
}

#verticalControls .vctrl-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: #787160;
  margin-top: 10px;
  line-height: 1;
}

/* ── Bottom ribbon variant (landscape action bar) ─────────────────── */
#ribbonBar {
  display: none;
}

#ribbonBar .ribbon-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-bottom: 1px solid #e6dfd0;
  background: #fffdf8;
  box-shadow: 0 2px 8px rgba(45, 38, 20, 0.06);
}

#ribbonBar .ribbon-row .ctrl-btn {
  padding: 9px 18px;
  font-size: 13px;
}

#ribbonBar .ribbon-row .ctrl-btn.ghost {
  border-color: #d8cfba;
}

#ribbonBar .ribbon-spacer {
  flex: 1;
}

#ribbonBar .ribbon-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #787160;
  font-size: 11.5px;
  font-weight: 600;
}

#ribbonBar .ribbon-meta strong {
  color: #1b1914;
  font-weight: 800;
}

/* ── Theme picker ───────────────────────────────────────────────────── */
body.studio .tpl-card {
  border: 1.5px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  overflow: hidden;
}

body.studio .tpl-card:hover {
  border-color: #d2c8b4;
  transform: translateY(-2px);
}

body.studio .tpl-card.selected {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--sun-soft);
}

body.studio .tpl-card.selected:hover {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--sun-soft);
}

body.studio .tpl-card input:focus-visible + .tpl-preview {
  border-color: var(--ink);
}

body.studio .tpl-preview {
  height: 92px;
  border-bottom: 1px solid var(--line);
}

body.studio .tpl-meta {
  padding: 11px 13px;
}

body.studio .tpl-meta b {
  color: var(--ink);
  font-size: 13px;
  letter-spacing: -0.01em;
}

body.studio .tpl-meta span {
  color: #8a8272;
  font-size: 11.5px;
}

/* ── Works gallery ──────────────────────────────────────────────────── */
body.studio .works-grid {
  columns: 3;
  column-gap: 14px;
}

body.studio .work-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
  break-inside: avoid;
  margin: 0 0 14px;
}

body.studio .work-card img {
  background: var(--surface-2);
}

body.studio .work-card .work-meta {
  padding: 12px 14px;
}

body.studio .work-card .work-meta b {
  color: var(--ink);
}

body.studio .work-card .work-meta small {
  color: #8a8272;
}

body.studio .work-card input {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 12.5px;
}

body.studio .work-cover {
  padding: 3px 9px;
  border: 1px solid rgba(180, 139, 32, 0.2);
  background: var(--sun-soft);
  color: #6b5210;
  font-size: 10px;
}

body.studio .work-row-btns button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: #5f594b;
  font-size: 11.5px;
  font-weight: 700;
  padding: 7px 12px;
}

body.studio .work-row-btns button:hover {
  border-color: var(--ink);
  background: var(--surface);
  color: var(--ink);
}

body.studio .work-row-btns button[data-wrm] {
  border-color: rgba(180, 82, 82, 0.2);
  background: var(--rose);
  color: #7c3b3b;
}

body.studio .work-row-btns button[data-wrm]:hover {
  background: #f3ccd6;
  color: #6b2f2f;
}

body.studio .work-staging {
  margin: 4px 0 16px;
}

body.studio .work-stage-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
}

body.studio .work-stage-name {
  color: #8a8272;
}

/* ── Upload tab ─────────────────────────────────────────────────────── */
body.studio #tabUpload #uploadDrop {
  padding: 34px 22px !important;
  border: 1.5px dashed #cfc5b1 !important;
  border-radius: 18px !important;
  background: var(--surface-2) !important;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

body.studio #tabUpload #uploadDrop:hover,
body.studio #tabUpload #uploadDrop.dragover {
  border-color: var(--ink) !important;
  background: var(--paper) !important;
}

body.studio #tabUpload #uploadDrop p {
  color: #8a8272 !important;
}

body.studio #tabUpload #uploadDrop p[style*="font-weight"] {
  color: var(--ink) !important;
}

body.studio #tabUpload b,
body.studio #tabUpload strong {
  color: var(--ink) !important;
}

body.studio #tabUpload #uploadModeBanner {
  border: 1px solid var(--line) !important;
  background: var(--mint) !important;
  color: #3c6140 !important;
  border-radius: 14px !important;
}

body.studio #tabUpload iframe,
body.studio #tabResume iframe {
  border: 1px solid var(--line) !important;
  border-radius: 14px !important;
}

body.studio #tabUpload #uploadFileList > p {
  color: #8a8272 !important;
}

/* ── Resume quick-fill panel ────────────────────────────────────────── */
body.studio #tabResume > div[style*="background"] {
  border: 1px solid var(--line) !important;
  background: var(--surface-2) !important;
  border-radius: 16px !important;
}

body.studio #tabResume > div[style*="background"] p {
  color: #8a8272 !important;
}

/* ── Share tab ──────────────────────────────────────────────────────── */
body.studio #tabShare > div[style*="background"] {
  padding: 20px !important;
  border: 1px solid var(--line) !important;
  border-radius: 18px !important;
  background: var(--surface-2) !important;
}

body.studio #shareSub {
  color: var(--ink) !important;
  font-size: 13.5px !important;
  font-weight: 600;
}

body.studio #sharePath,
body.studio #shareViews {
  color: #8a8272 !important;
}

body.studio #shareResume {
  color: #7b68c9 !important;
}

body.studio .share-row {
  gap: 8px;
  margin-top: 14px !important;
}

/* ── Admin console ──────────────────────────────────────────────────── */
body.ui-admin .console-bar {
  top: 14px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: var(--sh-sm);
}

body.ui-admin .console-bar b {
  color: var(--ink);
  letter-spacing: -0.01em;
}

body.ui-admin .console-bar .live {
  background: #5f9c66;
  box-shadow: 0 0 0 6px rgba(95, 156, 102, 0.14);
}

body.ui-admin .tiles {
  gap: 14px;
}

body.ui-admin .tile {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

body.ui-admin .tile:hover {
  transform: translateY(-3px);
  border-color: #d6cdb9;
  box-shadow: var(--sh-md);
}

body.ui-admin .tile b {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

body.ui-admin .tile span {
  color: #8a8272;
  font-size: 10.5px;
  letter-spacing: 1.2px;
}

body.ui-admin .tile.pending b { color: #6b5210; }
body.ui-admin .tile.live b { color: #3c6140; }
body.ui-admin .tile.users b { color: #7b68c9; }
body.ui-admin .tile.rejected b { color: #7c3b3b; }

body.ui-admin .panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

body.ui-admin .panel h3 {
  color: var(--ink);
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

body.ui-admin .rowline {
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-2);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

body.ui-admin .rowline:hover {
  background: var(--surface);
  border-color: #d2c8b4;
}

body.ui-admin .rowline .meta {
  color: #8a8272;
}

body.ui-admin .rowline > div:first-child > span {
  background: var(--lav) !important;
  color: #4c4270 !important;
}

body.ui-admin .ok-btn,
body.ui-admin .no-btn,
body.ui-admin .ghost-btn {
  border-radius: 999px;
  padding: 8px 15px;
  font-size: 12px;
  font-weight: 700;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

body.ui-admin .ok-btn {
  border: 1px solid rgba(93, 141, 98, 0.24);
  background: var(--mint);
  color: #3c6140;
}

body.ui-admin .ok-btn:hover {
  background: #cfe8d2;
}

body.ui-admin .no-btn {
  border: 1px solid rgba(180, 82, 82, 0.2);
  background: var(--rose);
  color: #7c3b3b;
}

body.ui-admin .no-btn:hover {
  background: #f3ccd6;
}

body.ui-admin .ghost-btn {
  border: 1px solid var(--line);
  background: transparent;
  color: #5f594b;
}

body.ui-admin .ghost-btn:hover {
  border-color: var(--ink);
  background: var(--surface);
  color: var(--ink);
}

body.ui-admin .st {
  padding: 4px 10px;
  font-size: 10px;
  letter-spacing: 0.7px;
}

body.ui-admin .st.pending {
  border: 1px solid rgba(180, 139, 32, 0.2);
  background: var(--sun-soft);
  color: #6b5210;
}

body.ui-admin .st.approved {
  border: 1px solid rgba(93, 141, 98, 0.24);
  background: var(--mint);
  color: #3c6140;
}

body.ui-admin .st.rejected {
  border: 1px solid rgba(180, 82, 82, 0.2);
  background: var(--rose);
  color: #7c3b3b;
}

body.ui-admin .searchbar input {
  padding: 12px 16px 12px 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13.5px;
}

body.ui-admin .searchbar input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(27, 25, 20, 0.07);
}

body.ui-admin .searchbar::before {
  opacity: 0.45;
  left: 16px;
}

body.ui-admin #gate .panel > div[style*="gradient"] {
  background: var(--sun-soft) !important;
  border-color: rgba(180, 139, 32, 0.2) !important;
  border-radius: 18px !important;
}

/* Admin dashboard inside index.html */
body.studio #adminDashboardView .admin-console {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

body.studio #adminDashboardView .admin-head {
  border-bottom: 1px solid var(--line);
}

body.studio #adminDashboardView .admin-head h2 {
  color: var(--ink);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

body.studio #adminDashboardView .admin-tile {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-2);
}

body.studio #adminDashboardView .admin-tile:hover {
  transform: translateY(-3px);
  border-color: #d6cdb9;
  box-shadow: var(--sh-sm);
}

body.studio #adminDashboardView .admin-tile b {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

body.studio #adminDashboardView .admin-tile.pending b { color: #6b5210; }
body.studio #adminDashboardView .admin-tile.live b { color: #3c6140; }
body.studio #adminDashboardView .admin-tile.total b { color: #7b68c9; }
body.studio #adminDashboardView .admin-tile.rejected b { color: #7c3b3b; }

body.studio #adminDashboardView .panel {
  border: 1px solid var(--line) !important;
  border-radius: 22px !important;
  background: var(--surface) !important;
}

body.studio #adminDashboardView .panel h3 {
  color: var(--ink);
  letter-spacing: -0.02em;
}

body.studio #adminDashboardView .admin-table-row {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-2);
}

body.studio #adminDashboardView .admin-table-row:hover {
  border-color: #d2c8b4;
  background: var(--surface);
  transform: none;
}

body.studio #adminDashboardView input {
  border-radius: 999px;
}

/* ── Admin gate form ────────────────────────────────────────────────── */
body.ui-admin input:not([type="checkbox"]):not([type="radio"]) {
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13.5px;
}

body.ui-admin input:not([type="checkbox"]):not([type="radio"])::placeholder {
  color: #a79e8b;
}

body.ui-admin input:not([type="checkbox"]):not([type="radio"]):focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(27, 25, 20, 0.07);
}

body.ui-admin .flabel {
  margin-bottom: 7px;
  color: #948c79;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.1px;
}

body.ui-admin .btn-primary {
  padding: 14px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: 0 12px 26px rgba(27, 25, 20, 0.18);
}

body.ui-admin .btn-primary:hover {
  background: #000;
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(27, 25, 20, 0.24);
}

body.ui-admin #gate .panel {
  max-width: 540px;
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  body.lx .lx-hero-inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-nodes {
    justify-self: center;
    max-width: 500px;
  }

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

  body.studio #userDashboardView {
    grid-template-columns: 1fr;
  }

  body.studio #techStudio,
  body.studio #visualStudio {
    grid-column: 1;
    grid-row: auto;
    position: static;
  }

  body.studio #studioPanes {
    grid-column: 1;
    grid-row: auto;
  }

  body.studio #techStudio,
  body.studio #visualStudio,
  body.studio #studioPanes,
  body.studio .dash-header-card,
  body.studio #subdomainWizardCard {
    min-width: 0;
    max-width: 100%;
  }

  body.studio .dash-tab-btns {
    flex-direction: row;
    max-width: 100%;
    gap: 4px;
    padding: 8px;
    border-radius: 16px;
    overflow-x: auto;
  }

  body.studio .dash-tab-btns::before {
    display: none;
  }

  body.studio .dash-tab-btn {
    width: auto;
    white-space: nowrap;
  }

  body.studio .works-grid {
    columns: 2;
  }
}

@media (max-width: 760px) {
  body.lx .lx-nav {
    padding: 14px 18px;
  }

  body.lx #mainNav.scrolled {
    padding: 11px 18px;
  }

  body.lx .lx-brand {
    font-size: 15px;
  }

  body.lx .lx-login {
    display: none;
  }

  body.lx .lx-hero {
    padding: 128px 0 40px;
  }

  body.lx .lx-title {
    font-size: clamp(37px, 10vw, 54px);
    letter-spacing: -0.045em;
  }

  body.lx .lx-sub {
    font-size: 16px;
  }

  body.lx .lx-cta {
    flex-direction: column;
    align-items: stretch;
  }

  body.lx .lx-btn-lg,
  body.lx .lx-btn-ghost {
    width: 100%;
    justify-content: center;
  }

  body.lx .hero-nodes {
    max-width: 380px;
  }

  .hnode {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    font-size: 18px;
  }

  .hnode-hub {
    left: 42.9%;
    top: 42.9%;
    width: 74px;
    height: 74px;
    border-radius: 22px;
    font-size: 24px;
  }

  .hnode-plug {
    width: 38px;
    height: 38px;
    font-size: 13px;
  }

  body.lx .lx-section {
    padding-top: 76px;
  }

  body.lx .lx-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  body.lx .lx-bento,
  body.lx .lx-steps,
  body.lx .lx-quotes,
  body.lx .lx-auth-grid {
    grid-template-columns: 1fr;
  }

  body.lx .lx-bento-card.lx-span {
    grid-column: auto;
  }

  body.lx .lx-cta-banner {
    padding: 52px 22px;
    border-radius: 26px;
  }

  body.lx .lx-footer-inner {
    justify-content: flex-start;
    gap: 14px;
  }

  body.studio .dash-nav {
    width: 96%;
    padding: 9px 13px;
  }

  body.studio #dashUserEmail {
    display: none;
  }

  body.studio .dash-header-card {
    padding: 20px;
  }

  body.studio .dash-header-card h2 {
    font-size: 22px;
  }

  body.studio #studioPanes > .card,
  body.studio #subdomainWizardCard {
    padding: 20px;
  }

  body.studio .works-grid {
    columns: 1;
  }
}

@media (max-width: 460px) {
  body.lx .lx-nav-cta .lx-btn {
    padding: 10px 16px;
    font-size: 12.5px;
  }

  body.lx .lx-brand em {
    display: none;
  }

  body.lx .lx-title {
    font-size: 36px;
  }

  body.lx .lx-section {
    width: min(1200px, 90%);
  }

  body.studio .dash-avatar {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hnode {
    animation: none;
  }

  body.lx .lx-btn-lg:hover,
  body.lx .lx-btn-ghost:hover,
  body.lx .lx-bento-card:hover,
  body.lx .lx-theme-card:hover,
  body.lx .lx-step:hover,
  body.lx .lx-quote:hover,
  body.lx .dir-card:hover {
    transform: none;
  }
}

/* ── Explore directory (public marketing route) ─────────────────────── */
body.explore {
  background: #f5f1e8;
}

body.explore .bg-fx {
  background:
    radial-gradient(900px 620px at 88% 4%, rgba(245, 200, 75, 0.14), transparent 62%),
    radial-gradient(820px 620px at 6% 12%, rgba(201, 230, 205, 0.32), transparent 60%),
    radial-gradient(760px 700px at 54% 106%, rgba(232, 225, 248, 0.42), transparent 64%),
    linear-gradient(#f5f1e8, #f5f1e8);
}

body.explore .grid-overlay {
  opacity: 0.18;
}

#app .lx-explore {
  --surface: #fffdf8;
  --surface-2: #faf6ed;
  --paper: #f5f1e8;
  --ink: #1b1914;
  --line: #e6dfd0;
  --line-strong: #d8cfba;
  --muted: #787160;
  --lav: #e8e1f8;
  --sun: #f5c84b;
  --sh-md: 0 18px 44px rgba(45, 38, 20, 0.09);
  padding: 88px 0 80px;
}

#app .lx-explore .lx-kicker::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  background: #c9bfa9;
  color: transparent;
}

#app .lx-explore .lx-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 0;
  border: 0;
  background: none;
  color: #9a927f;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 2.2px;
  text-transform: uppercase;
}

#app .lx-explore .lx-h1 {
  margin: 0 0 14px;
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

#app .lx-explore .lx-lead {
  margin-bottom: 28px;
  color: #6c6657;
  font-size: 16px;
}

#app .lx-explore .dir-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

#app .lx-explore .dir-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#app .lx-explore .dir-card:hover {
  transform: translateY(-4px);
  border-color: #d6cdb9;
  box-shadow: var(--sh-md);
}

#app .lx-explore .dir-card h3 {
  color: var(--ink);
  font-size: 17px;
  letter-spacing: -0.02em;
}

#app .lx-explore .dir-card p {
  color: #6c6657;
  font-size: 13.5px;
}

#app .lx-explore .dir-card .mono {
  color: #7b68c9 !important;
  font-size: 12px !important;
}

#app .lx-explore .dir-card > div:first-child > span {
  background: var(--lav) !important;
  color: #4c4270 !important;
}

#app .lx-explore .dir-card .btn-primary {
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  box-shadow: none;
}

#app .lx-explore .dir-card .btn-primary:hover {
  background: #000;
  box-shadow: 0 8px 18px rgba(27, 25, 20, 0.2);
}

@media (max-width: 900px) {
  #app .lx-explore .dir-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  #app .lx-explore {
    padding: 56px 0 60px;
  }

  #app .lx-explore .dir-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Defensive studio buttons (portfolio template rules use an id) ──── */
body.studio #dashboardApp .btn-primary {
  border: 0;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 22px rgba(27, 25, 20, 0.16);
}

body.studio #dashboardApp .btn-primary:hover {
  background: #000;
  color: #fff;
  box-shadow: 0 14px 28px rgba(27, 25, 20, 0.22);
}

body.studio #dashboardApp .btn-ghost {
  border: 1px solid var(--line);
  background: transparent;
  color: #5f594b;
}

body.studio #dashboardApp .btn-ghost:hover {
  border-color: var(--ink);
  background: var(--surface);
  color: var(--ink);
}

body.studio #dashboardApp .btn,
body.studio #dashboardApp .btn-primary,
body.studio #dashboardApp .btn-ghost {
  border-radius: 999px;
}

/* Action bar: pinned colours so a stale template attribute can never hide it */
body.studio #edSaveBtn {
  border: 0 !important;
  background: var(--ink) !important;
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(27, 25, 20, 0.16) !important;
}

body.studio #edSaveBtn:hover {
  background: #000 !important;
  color: #fff !important;
}

body.studio #edPreviewBtn,
body.studio #exportHtmlBtn,
body.studio #exportPdfBtn {
  border: 1px solid var(--line) !important;
  background: transparent !important;
  color: #5f594b !important;
  box-shadow: none !important;
}

body.studio #edPreviewBtn:hover,
body.studio #exportHtmlBtn:hover,
body.studio #exportPdfBtn:hover {
  border-color: var(--ink) !important;
  background: var(--surface) !important;
  color: var(--ink) !important;
}

body.lx :focus-visible,
body.studio :focus-visible,
body.ui-admin :focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-radius: 8px;
}

/* ── Accent actions ─────────────────────────────────────────────────── */
body.studio #workUpBtn,
body.studio #edSaveThemeBtn {
  border: 0;
  background: var(--sun);
  color: var(--ink);
  box-shadow: 0 10px 20px rgba(180, 139, 32, 0.18);
}

body.studio #workUpBtn:hover,
body.studio #edSaveThemeBtn:hover {
  background: #ffd45f;
  color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(180, 139, 32, 0.24);
}

/* ===== APPEND ===== */
/* Hide Netlify injected badge / drawer overlays */
iframe[title*="Netlify" i],
iframe[src*="netlify" i],
#netlify-badge,
.netlify-badge,
[data-netlify-badge] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
