:root,
html[data-theme="dark"] {
  --bg: #0b1220;
  --bg-2: #0e172a;
  --surface: #111c33;
  --surface-2: #132042;
  --border: rgba(255, 255, 255, 0.1);
  --text: #f3f4f6;
  --muted: #9ca3af;
  --muted-2: #6b7280;
  --primary: #3b82f6;
  --primary-2: #6366f1;
  --accent: #8b5cf6;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  --radius: 14px;
  --radius-lg: 18px;
  --ring: rgba(59, 130, 246, 0.38);
}

html[data-theme="light"] {
  --bg: #f8fafc;
  --bg-2: #f1f5f9;
  --surface: #ffffff;
  --surface-2: #ffffff;
  --border: rgba(15, 23, 42, 0.1);
  --text: #0f172a;
  --muted: #475569;
  --muted-2: #64748b;
  --primary: #3b82f6;
  --primary-2: #6366f1;
  --accent: #8b5cf6;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --shadow: 0 10px 24px rgba(2, 6, 23, 0.08);
  --ring: rgba(99, 102, 241, 0.26);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--text);
  background:
    radial-gradient(circle at 14% 0%, rgba(59, 130, 246, 0.14), transparent 32%),
    radial-gradient(circle at 84% 2%, rgba(99, 102, 241, 0.14), transparent 28%),
    var(--bg);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial,
    'Apple Color Emoji', 'Segoe UI Emoji';
  font-size: 15.5px;
  line-height: 1.45;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  color: var(--text);
  letter-spacing: -0.01em;
}

h2 {
  font-size: 24px;
  font-weight: 700;
}

h3 {
  font-size: 20px;
  font-weight: 650;
}

h4 {
  font-size: 16px;
  font-weight: 630;
}

p {
  margin: 0;
  color: var(--muted);
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--ring);
}

.auth-body {
  display: grid;
  place-items: center;
  position: relative;
  overflow-x: hidden;
  padding: clamp(18px, 3vw, 32px);
  background:
    radial-gradient(circle at 12% 10%, rgba(59, 130, 246, 0.18), transparent 24%),
    radial-gradient(circle at 88% 8%, rgba(99, 102, 241, 0.18), transparent 24%),
    radial-gradient(circle at 50% 105%, rgba(59, 130, 246, 0.12), transparent 36%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg-2) 58%, transparent), transparent 35%),
    var(--bg);
}

.auth-shell {
  width: min(520px, 100%);
  position: relative;
  z-index: 1;
}

.auth-shell-wide {
  width: min(920px, 100%);
}

.auth-shell-premium {
  width: min(1180px, 100%);
}

.auth-shell-terms {
  width: min(1240px, 100%);
}

.auth-card {
  background:
    linear-gradient(165deg, rgba(59, 130, 246, 0.08), transparent 50%),
    color-mix(in srgb, var(--surface) 88%, var(--bg-2));
  border: 1px solid color-mix(in srgb, var(--border) 88%, rgba(99, 102, 241, 0.18));
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(3, 8, 24, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 24px;
  display: grid;
  gap: 12px;
}

.auth-card p {
  color: var(--muted);
}

.auth-foot {
  font-size: 14px;
}

.auth-experience {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(420px, 0.96fr);
  gap: 24px;
  align-items: stretch;
}

.auth-scene,
.auth-panel,
.terms-hero,
.terms-side-card,
.terms-clause-card {
  position: relative;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--border) 84%, rgba(99, 102, 241, 0.2));
  box-shadow: 0 28px 68px rgba(4, 10, 28, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.auth-scene,
.auth-panel,
.terms-hero,
.terms-side-card {
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 32%),
    linear-gradient(145deg, color-mix(in srgb, var(--surface) 90%, rgba(59, 130, 246, 0.1)), color-mix(in srgb, var(--bg-2) 92%, rgba(99, 102, 241, 0.08)));
}

.auth-scene {
  min-height: 760px;
  padding: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    'copy signal'
    'chips signal'
    'metrics metrics'
    'rail rail';
  gap: 20px;
  isolation: isolate;
}

.auth-scene::before,
.terms-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size: 82px 82px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 88%);
  pointer-events: none;
}

.auth-scene::after,
.terms-hero::after {
  content: '';
  position: absolute;
  inset: auto -18% -28% 26%;
  height: 320px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.28), transparent 68%);
  filter: blur(24px);
  pointer-events: none;
}

.auth-scene-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.72;
  pointer-events: none;
}

.auth-scene-orb-primary {
  width: 220px;
  height: 220px;
  top: -70px;
  right: -40px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.42), transparent 68%);
}

.auth-scene-orb-secondary {
  width: 180px;
  height: 180px;
  left: -48px;
  bottom: 64px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.22), transparent 72%);
}

.auth-scene-copy,
.terms-hero-copy,
.auth-scene-metrics,
.auth-scene-rail,
.auth-chip-wrap,
.auth-signal-cluster {
  position: relative;
  z-index: 1;
}

.auth-scene-copy {
  grid-area: copy;
}

.auth-chip-wrap {
  grid-area: chips;
}

.auth-scene-metrics {
  grid-area: metrics;
}

.auth-scene-rail {
  grid-area: rail;
}

.auth-kicker {
  display: inline-flex;
  align-items: center;
  align-self: start;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.34);
  color: #dbeafe;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: rgba(30, 41, 59, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.auth-scene-copy {
  display: grid;
  gap: 14px;
  max-width: 520px;
}

.auth-scene-copy h2,
.terms-hero-copy h1,
.auth-panel-header h1 {
  letter-spacing: -0.04em;
  line-height: 0.96;
}

.auth-scene-copy h2 {
  font-size: clamp(44px, 5.4vw, 68px);
  max-width: 9ch;
}

.auth-scene-copy p,
.terms-hero-copy p {
  max-width: 560px;
  font-size: 16px;
  line-height: 1.7;
  color: color-mix(in srgb, var(--muted) 84%, white 16%);
}

.auth-signal-cluster {
  grid-area: signal;
  width: 190px;
  height: 190px;
  justify-self: end;
  align-self: start;
  display: grid;
  place-items: center;
}

.auth-signal-ring,
.auth-signal-core {
  position: absolute;
  border-radius: 999px;
}

.auth-signal-ring {
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  animation: authPulse 4.6s ease-in-out infinite;
}

.auth-signal-ring-outer {
  inset: 0;
}

.auth-signal-ring-mid {
  inset: 20px;
  animation-delay: -1s;
}

.auth-signal-ring-inner {
  inset: 42px;
  animation-delay: -2s;
}

.auth-signal-core {
  inset: 68px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.92), rgba(147, 197, 253, 0.55) 32%, rgba(99, 102, 241, 0.2) 58%, transparent 75%),
    linear-gradient(135deg, rgba(59, 130, 246, 0.76), rgba(99, 102, 241, 0.78));
  box-shadow: 0 0 42px rgba(99, 102, 241, 0.34);
}

.auth-chip-wrap {
  gap: 10px;
}

.auth-chip {
  min-height: 34px;
  padding: 0 12px;
  color: color-mix(in srgb, var(--text) 84%, #c7d2fe 16%);
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.34);
}

.auth-scene-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.auth-scene-metric {
  display: grid;
  gap: 10px;
  min-height: 122px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.34));
}

.auth-scene-metric strong {
  font-size: 18px;
  line-height: 1.25;
  color: var(--text);
}

.auth-scene-metric span {
  font-size: 13px;
  line-height: 1.55;
  color: color-mix(in srgb, var(--muted) 86%, white 14%);
}

.auth-scene-rail {
  margin-top: auto;
  display: grid;
  gap: 12px;
}

.auth-scene-rail-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.5), rgba(15, 23, 42, 0.24));
}

.auth-scene-rail-index,
.terms-clause-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.28), rgba(99, 102, 241, 0.24));
  border: 1px solid rgba(96, 165, 250, 0.24);
  color: #dbeafe;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.auth-scene-rail-copy {
  display: grid;
  gap: 4px;
}

.auth-scene-rail-copy strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 640;
}

.auth-scene-rail-copy span {
  color: color-mix(in srgb, var(--muted) 84%, white 16%);
  font-size: 13px;
  line-height: 1.55;
}

.auth-panel {
  padding: 30px;
  display: grid;
  gap: 24px;
  align-content: start;
}

.auth-panel-header {
  display: grid;
  gap: 12px;
}

.auth-panel-eyebrow {
  color: color-mix(in srgb, var(--primary-2) 54%, white 46%);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-panel-header h1 {
  font-size: clamp(34px, 4.2vw, 48px);
  max-width: 12ch;
}

.auth-panel-header p {
  max-width: 54ch;
  color: var(--muted);
  line-height: 1.68;
  font-size: 15px;
}

.auth-panel-stack {
  display: grid;
  gap: 16px;
}

.auth-social-btn,
.auth-submit-btn {
  min-height: 52px;
  border-radius: 18px;
  font-size: 15px;
}

.auth-inline-note {
  margin-top: -6px;
}

.auth-form {
  gap: 14px;
}

.auth-form label {
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  color: color-mix(in srgb, var(--muted) 86%, white 14%);
}

.auth-form input,
.auth-inline-form input {
  min-height: 52px;
  border-radius: 16px;
  padding: 14px 16px;
  background: color-mix(in srgb, var(--bg-2) 80%, rgba(255, 255, 255, 0.04));
}

.auth-check-item {
  padding: 2px 2px 2px 0;
}

.auth-check-item input {
  margin-top: 4px;
}

.auth-referral-note {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(96, 165, 250, 0.22);
  background: rgba(59, 130, 246, 0.08);
}

.auth-support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.auth-support-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.42), rgba(15, 23, 42, 0.2));
}

.auth-support-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.62;
}

.auth-support-card-soft {
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.3), rgba(15, 23, 42, 0.18));
}

.auth-support-label {
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
}

.auth-inline-form {
  gap: 12px;
}

.auth-link-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.auth-text-link {
  color: var(--text);
  font-weight: 620;
  transition: color 160ms ease, opacity 160ms ease;
}

.auth-text-link:hover {
  color: color-mix(in srgb, var(--primary) 58%, white);
}

.auth-foot-premium {
  color: var(--muted);
}

.terms-experience {
  display: grid;
  gap: 22px;
}

.terms-hero {
  padding: 32px;
  display: grid;
  gap: 18px;
}

.terms-hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  max-width: 760px;
}

.terms-hero-copy h1 {
  font-size: clamp(44px, 5vw, 66px);
  max-width: 10ch;
}

.terms-chip-wrap {
  position: relative;
  z-index: 1;
  gap: 10px;
}

.terms-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.terms-sidebar {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 16px;
}

.terms-side-card {
  padding: 24px;
  display: grid;
  gap: 14px;
}

.terms-side-card h2 {
  font-size: 18px;
}

.terms-side-card p {
  line-height: 1.65;
}

.terms-side-card-accent {
  background:
    linear-gradient(145deg, rgba(59, 130, 246, 0.14), transparent 52%),
    linear-gradient(155deg, color-mix(in srgb, var(--surface) 90%, rgba(99, 102, 241, 0.08)), color-mix(in srgb, var(--bg-2) 92%, rgba(59, 130, 246, 0.1)));
}

.terms-side-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: var(--muted);
  line-height: 1.6;
}

.terms-link-row .btn {
  min-height: 46px;
}

.terms-document {
  display: grid;
  gap: 16px;
}

.terms-clause-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 24px;
  border-radius: 26px;
  background:
    linear-gradient(165deg, rgba(59, 130, 246, 0.08), transparent 58%),
    color-mix(in srgb, var(--surface) 88%, var(--bg-2));
}

.terms-clause-copy {
  display: grid;
  gap: 10px;
}

.terms-clause-copy h3 {
  font-size: 21px;
}

.terms-clause-copy p {
  line-height: 1.72;
  font-size: 15px;
  color: var(--muted);
}

html[data-theme="light"] .auth-scene,
html[data-theme="light"] .auth-panel,
html[data-theme="light"] .terms-hero,
html[data-theme="light"] .terms-side-card,
html[data-theme="light"] .terms-clause-card,
html[data-theme="light"] .auth-card {
  box-shadow: 0 28px 64px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

html[data-theme="light"] .auth-scene,
html[data-theme="light"] .auth-panel,
html[data-theme="light"] .terms-hero,
html[data-theme="light"] .terms-side-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.74)),
    linear-gradient(145deg, rgba(59, 130, 246, 0.06), transparent 56%);
}

html[data-theme="light"] .auth-scene-metric,
html[data-theme="light"] .auth-scene-rail-item,
html[data-theme="light"] .auth-support-card,
html[data-theme="light"] .terms-clause-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92));
}

html[data-theme="light"] .auth-chip,
html[data-theme="light"] .auth-kicker {
  color: #1e3a8a;
  background: rgba(255, 255, 255, 0.78);
}

html[data-theme="light"] .auth-scene-copy p,
html[data-theme="light"] .terms-hero-copy p,
html[data-theme="light"] .auth-scene-metric span,
html[data-theme="light"] .auth-scene-rail-copy span {
  color: color-mix(in srgb, var(--muted) 92%, #0f172a 8%);
}

@keyframes authPulse {
  0%,
  100% {
    transform: scale(0.985);
    opacity: 0.52;
  }

  50% {
    transform: scale(1.02);
    opacity: 1;
  }
}

@media (max-width: 1180px) {
  .auth-experience,
  .terms-layout {
    grid-template-columns: 1fr;
  }

  .auth-scene {
    min-height: auto;
  }

  .terms-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .auth-body {
    padding: 16px;
  }

  .auth-experience,
  .terms-experience {
    gap: 16px;
  }

  .auth-scene,
  .auth-panel,
  .terms-hero,
  .terms-side-card,
  .terms-clause-card,
  .auth-card {
    border-radius: 24px;
  }

  .auth-scene,
  .auth-panel,
  .terms-hero {
    padding: 24px;
  }

  .auth-scene {
    grid-template-columns: 1fr;
    grid-template-areas:
      'copy'
      'signal'
      'chips'
      'metrics'
      'rail';
  }

  .auth-signal-cluster {
    justify-self: start;
    width: 156px;
    height: 156px;
  }

  .auth-signal-core {
    inset: 56px;
  }

  .auth-scene-copy h2,
  .terms-hero-copy h1,
  .auth-panel-header h1 {
    max-width: none;
  }

  .auth-scene-copy h2 {
    font-size: clamp(36px, 8vw, 50px);
  }

  .terms-hero-copy h1,
  .auth-panel-header h1 {
    font-size: clamp(32px, 7vw, 44px);
  }

  .auth-scene-metrics,
  .auth-support-grid,
  .terms-sidebar {
    grid-template-columns: 1fr;
  }

  .terms-clause-card {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 640px) {
  .auth-kicker {
    min-height: 34px;
    padding: 0 12px;
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  .auth-scene,
  .auth-panel,
  .terms-hero,
  .terms-side-card {
    padding: 20px;
  }

  .auth-scene-copy p,
  .terms-hero-copy p,
  .auth-panel-header p,
  .auth-support-card p,
  .terms-clause-copy p {
    font-size: 14px;
    line-height: 1.62;
  }

  .auth-scene-metrics {
    grid-template-columns: 1fr;
  }

  .auth-scene-metric,
  .auth-support-card,
  .terms-clause-card {
    padding: 18px;
  }

  .auth-social-btn,
  .auth-submit-btn,
  .auth-form input,
  .auth-inline-form input,
  .terms-link-row .btn {
    min-height: 48px;
  }

  .auth-link-row {
    align-items: stretch;
  }

  .auth-link-row .btn {
    width: 100%;
  }

.terms-link-row .btn:last-child {
    width: 100%;
  }
}

.admin-email-export {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--border) 84%, rgba(99, 102, 241, 0.18));
  background:
    linear-gradient(165deg, rgba(59, 130, 246, 0.08), transparent 62%),
    color-mix(in srgb, var(--surface) 90%, var(--bg-2));
}

.admin-email-export pre {
  margin: 0;
  padding: 14px;
  max-height: 220px;
  overflow: auto;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-2) 84%, var(--surface));
  color: var(--text);
  font: 500 13px/1.6 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
  white-space: pre-wrap;
  word-break: break-word;
}

.admin-signup-item h4 {
  word-break: break-word;
}

.admin-signup-meta {
  justify-content: flex-end;
}

.admin-table-shell {
  margin-top: 12px;
  overflow: auto;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--border) 84%, rgba(99, 102, 241, 0.16));
  background:
    linear-gradient(165deg, rgba(59, 130, 246, 0.06), transparent 68%),
    color-mix(in srgb, var(--surface) 92%, var(--bg-2));
}

.admin-user-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.admin-user-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 14px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--muted) 82%, white 18%);
  background: color-mix(in srgb, var(--surface) 92%, var(--bg-2));
  border-bottom: 1px solid var(--border);
}

.admin-user-table tbody td {
  padding: 14px 16px;
  border-top: 1px solid color-mix(in srgb, var(--border) 84%, rgba(255, 255, 255, 0.04));
  vertical-align: middle;
}

.admin-user-table tbody tr {
  transition: background-color 160ms ease;
}

.admin-user-table tbody tr:hover {
  background: color-mix(in srgb, var(--surface) 78%, var(--primary));
}

.admin-table-date,
.admin-table-email {
  color: var(--muted);
  font-size: 14px;
}

.admin-table-email {
  word-break: break-word;
}

.admin-preview-lead-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.admin-preview-lead-item h4,
.admin-preview-lead-item p {
  overflow-wrap: anywhere;
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.guide-card,
.guide-section,
.guide-side-card,
.guide-article-hero {
  display: grid;
  gap: 14px;
}

.guide-card-head,
.guide-article-meta,
.guide-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.guide-card-intent,
.guide-related-link span {
  color: var(--muted);
  font-size: 0.82rem;
}

.guide-card h2,
.guide-card p,
.guide-section h2,
.guide-section p,
.guide-side-card h3,
.guide-side-card p {
  margin: 0;
}

.guide-card h2 a,
.guide-related-link {
  color: inherit;
  text-decoration: none;
}

.guide-card h2 a:hover,
.guide-related-link:hover strong {
  color: var(--primary-2);
}

.guide-article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.8fr);
  gap: 16px;
  align-items: start;
}

.guide-article-main,
.guide-article-side {
  display: grid;
  gap: 16px;
}

.guide-article-lead {
  margin: 0;
  max-width: 60ch;
  font-size: 1.05rem;
  color: var(--text-soft);
}

.guide-section-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 32%, var(--border));
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text);
}

.guide-bullet-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--text-soft);
}

.guide-related-list {
  display: grid;
  gap: 10px;
}

.guide-related-link {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--border) 88%, rgba(255, 255, 255, 0.05));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent),
    color-mix(in srgb, var(--surface) 94%, rgba(255, 255, 255, 0.02));
}

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

.admin-seo-panel {
  display: grid;
  gap: 14px;
}

.admin-seo-table {
  display: grid;
  gap: 10px;
}

.admin-seo-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, auto);
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--border) 88%, rgba(255, 255, 255, 0.05));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent),
    color-mix(in srgb, var(--surface) 94%, rgba(255, 255, 255, 0.02));
}

.admin-seo-row h4,
.admin-seo-row p {
  margin: 0;
  overflow-wrap: anywhere;
}

.admin-seo-metric {
  text-align: right;
}

.admin-seo-metric strong {
  display: block;
  font-size: 0.96rem;
}

.admin-seo-metric span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
}

.admin-traffic-shell {
  display: grid;
  gap: 16px;
}

.admin-traffic-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-traffic-summary-card {
  min-height: 0;
  gap: 8px;
}

.admin-traffic-summary-card strong {
  font-size: 1.65rem;
  letter-spacing: -0.04em;
}

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

.admin-chart-panel {
  display: grid;
  gap: 14px;
}

.admin-chart-panel-wide {
  gap: 16px;
  overflow-x: auto;
}

.admin-chart-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.admin-chart-head h4,
.admin-chart-head p {
  margin: 0;
}

.admin-bar-chart {
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
  min-height: 238px;
}

.admin-bar-chart-column {
  display: grid;
  gap: 8px;
  align-content: end;
}

.admin-bar-chart-track,
.admin-hour-chart-track {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: center;
  min-height: 168px;
  padding: 10px 0;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--border) 88%, rgba(255, 255, 255, 0.05));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent),
    color-mix(in srgb, var(--surface) 92%, rgba(255, 255, 255, 0.02));
}

.admin-bar-chart-bar,
.admin-hour-chart-bar {
  width: calc(100% - 10px);
  min-height: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary-2) 82%, white 6%), color-mix(in srgb, var(--primary) 88%, rgba(12, 18, 30, 0.12)));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 10px 24px rgba(59, 130, 246, 0.2);
}

.admin-bar-chart-bar-alt {
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.92), rgba(14, 165, 233, 0.76));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 10px 24px rgba(14, 165, 233, 0.18);
}

.admin-bar-chart-bar.is-today {
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.admin-bar-chart-value {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
}

.admin-bar-chart-label,
.admin-hour-chart-label {
  font-size: 0.7rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.3;
}

.admin-hour-chart {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  gap: 6px;
  align-items: end;
  min-height: 214px;
  min-width: 720px;
}

.admin-hour-chart-column {
  display: grid;
  gap: 8px;
  align-content: end;
}

.admin-hour-chart-track {
  min-height: 132px;
  padding: 8px 0;
  border-radius: 14px;
}

.admin-hour-chart-bar {
  width: calc(100% - 8px);
  background: linear-gradient(180deg, rgba(129, 140, 248, 0.9), rgba(99, 102, 241, 0.72));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 8px 18px rgba(99, 102, 241, 0.2);
}

.creator-admin-shell {
  gap: 18px;
}

.creator-admin-intro {
  margin-top: -4px;
}

.creator-admin-form,
.creator-admin-update-form {
  display: grid;
  gap: 14px;
}

.creator-admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.creator-admin-form-span {
  grid-column: 1 / -1;
}

.creator-admin-list {
  display: grid;
  gap: 16px;
}

.creator-admin-card {
  gap: 16px;
  padding: 18px;
  border-radius: 22px;
  border-color: color-mix(in srgb, var(--border) 82%, rgba(99, 102, 241, 0.18));
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.08), transparent 28%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 94%, var(--bg-2)), color-mix(in srgb, var(--bg-2) 92%, var(--surface)));
}

.creator-admin-card-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}

.creator-admin-card-head h4,
.creator-admin-card-head p {
  overflow-wrap: anywhere;
}

.creator-admin-card-head h4 {
  margin-bottom: 6px;
}

.creator-admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.creator-admin-metrics article {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--border) 86%, rgba(255, 255, 255, 0.04));
  background: color-mix(in srgb, var(--surface) 84%, var(--bg-2));
}

.creator-admin-metrics strong {
  color: var(--text);
  font-size: 1.05rem;
}

.creator-admin-link-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.creator-admin-link-row input {
  flex: 1 1 auto;
}

.creator-admin-account-row {
  display: grid;
  gap: 6px;
}

.danger-zone-card {
  border-color: color-mix(in srgb, var(--danger) 28%, var(--border));
  background:
    linear-gradient(165deg, rgba(239, 68, 68, 0.08), transparent 60%),
    color-mix(in srgb, var(--surface) 92%, var(--bg-2));
}

.settings-logout-card {
  border-color: color-mix(in srgb, var(--primary) 24%, var(--border));
  background:
    radial-gradient(circle at top right, rgba(99, 102, 241, 0.12), transparent 34%),
    linear-gradient(160deg, color-mix(in srgb, var(--surface) 94%, rgba(59, 130, 246, 0.05)), color-mix(in srgb, var(--bg-2) 92%, var(--surface)));
}

.danger-zone-form {
  margin-top: 12px;
}

.settings-logout-form {
  margin-top: 14px;
}

.legal-page-shell {
  display: grid;
  gap: 22px;
}

.legal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: end;
  overflow: hidden;
  position: relative;
  padding: 30px;
  border-radius: 30px;
  border: 1px solid color-mix(in srgb, var(--border) 82%, rgba(99, 102, 241, 0.18));
  background:
    radial-gradient(circle at 88% 12%, rgba(99, 102, 241, 0.18), transparent 22%),
    radial-gradient(circle at 6% 0%, rgba(59, 130, 246, 0.14), transparent 22%),
    linear-gradient(155deg, color-mix(in srgb, var(--surface) 92%, rgba(59, 130, 246, 0.08)), color-mix(in srgb, var(--bg-2) 94%, rgba(99, 102, 241, 0.08)));
  box-shadow: 0 22px 54px rgba(4, 10, 28, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.legal-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 78px 78px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 86%);
  pointer-events: none;
}

.legal-hero-copy,
.legal-hero-rail {
  position: relative;
  z-index: 1;
}

.legal-hero-copy {
  display: grid;
  gap: 14px;
}

.legal-hero-copy h1 {
  font-size: clamp(40px, 5.2vw, 62px);
  line-height: 0.97;
  letter-spacing: -0.045em;
  max-width: 12ch;
}

.legal-hero-lead {
  max-width: 60ch;
  font-size: 16px;
  line-height: 1.72;
  color: color-mix(in srgb, var(--muted) 86%, white 14%);
}

.legal-hero-rail {
  display: grid;
  gap: 12px;
}

.legal-hero-chip {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.48), rgba(15, 23, 42, 0.28));
}

.legal-hero-chip strong {
  font-size: 17px;
}

.legal-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.legal-surface-card {
  display: grid;
  gap: 10px;
  min-height: 196px;
}

.legal-surface-card h3 {
  font-size: 22px;
}

.legal-surface-card p {
  line-height: 1.68;
}

.legal-layout {
  align-items: start;
}

.legal-sidebar {
  top: 20px;
}

.legal-policy-grid {
  display: grid;
  gap: 16px;
}

.legal-policy-card {
  display: grid;
  gap: 16px;
}

.legal-policy-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
}

.legal-policy-head p {
  margin-top: 8px;
  line-height: 1.7;
}

.legal-policy-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
  color: var(--muted);
  line-height: 1.65;
}

html[data-theme="light"] .legal-hero,
html[data-theme="light"] .legal-hero-chip {
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

html[data-theme="light"] .legal-hero {
  background:
    radial-gradient(circle at 88% 12%, rgba(99, 102, 241, 0.12), transparent 22%),
    radial-gradient(circle at 6% 0%, rgba(59, 130, 246, 0.12), transparent 22%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.96));
}

html[data-theme="light"] .legal-hero-chip {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.94));
}

html[data-theme="light"] .legal-hero-lead,
html[data-theme="light"] .legal-policy-head p,
html[data-theme="light"] .legal-policy-list {
  color: color-mix(in srgb, var(--muted) 92%, #0f172a 8%);
}

.cookie-consent-panel {
  display: grid;
  gap: 16px;
}

.cookie-consent-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.cookie-consent-card {
  display: grid;
  gap: 8px;
  min-height: 154px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--border) 86%, rgba(99, 102, 241, 0.14));
  background: linear-gradient(165deg, rgba(59, 130, 246, 0.05), transparent 70%), color-mix(in srgb, var(--surface) 92%, var(--bg-2));
}

.cookie-consent-card strong {
  font-size: 18px;
}

.cookie-consent-card p {
  line-height: 1.62;
}

.cookie-consent-card.is-active {
  border-color: rgba(34, 197, 94, 0.26);
  background: linear-gradient(165deg, rgba(34, 197, 94, 0.08), transparent 70%), color-mix(in srgb, var(--surface) 92%, var(--bg-2));
}

.cookie-consent-card.is-inactive {
  border-color: color-mix(in srgb, var(--border) 92%, rgba(148, 163, 184, 0.1));
  opacity: 0.92;
}

.cookie-consent-card.is-necessary {
  border-color: rgba(96, 165, 250, 0.24);
  background: linear-gradient(165deg, rgba(59, 130, 246, 0.1), transparent 70%), color-mix(in srgb, var(--surface) 92%, var(--bg-2));
}

.legal-cookie-footer-grid .legal-surface-card {
  min-height: 0;
}

html[data-theme="light"] .cookie-consent-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
}

@media (max-width: 1120px) {
  .legal-hero {
    grid-template-columns: 1fr;
  }

  .legal-summary-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .legal-hero {
    padding: 22px;
    border-radius: 24px;
  }

  .legal-hero-copy h1 {
    max-width: none;
    font-size: clamp(34px, 8vw, 46px);
  }

  .legal-hero-lead {
    font-size: 14px;
    line-height: 1.64;
  }

  .legal-policy-head {
    grid-template-columns: 1fr;
  }

  .legal-hero-rail,
  .legal-summary-grid,
  .legal-policy-grid {
    gap: 12px;
  }

  .cookie-consent-grid {
    grid-template-columns: 1fr;
  }
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background:
    linear-gradient(165deg, rgba(59, 130, 246, 0.09) 0%, transparent 46%),
    var(--bg-2);
  border-right: 1px solid var(--border);
}

.brand-block {
  padding: 4px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.brand-logo-light {
  display: none;
}

html[data-theme="light"] .brand-logo-dark {
  display: none;
}

html[data-theme="light"] .brand-logo-light {
  display: block;
}

.brand-link p {
  font-size: 13px;
  color: var(--muted);
}

.sidebar-nav {
  display: grid;
  gap: 8px;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: var(--muted);
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease,
    transform 160ms ease;
}

.nav-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  bottom: 7px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--primary), var(--primary-2));
  opacity: 0;
  transition: opacity 160ms ease;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(99, 102, 241, 0.08);
  border-color: var(--border);
}

.nav-link.active {
  color: var(--text);
  background: rgba(99, 102, 241, 0.13);
  border-color: rgba(99, 102, 241, 0.35);
}

.nav-link.active::before {
  opacity: 1;
}

.nav-icon {
  font-size: 15px;
}

.upgrade-card {
  margin-top: auto;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(59, 130, 246, 0.12), transparent 66%), var(--surface);
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
}

.upgrade-card p {
  color: var(--muted);
  font-size: 14px;
}

.sidebar-user-card {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 85%, var(--bg-2));
  transition: border-color 140ms ease, background-color 140ms ease;
}

.sidebar-user-card:hover {
  border-color: color-mix(in srgb, var(--primary) 36%, var(--border));
  background: color-mix(in srgb, var(--surface) 78%, var(--primary));
}

.sidebar-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #eef2ff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  overflow: hidden;
}

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

.sidebar-user-meta {
  display: grid;
  line-height: 1.2;
}

.sidebar-user-meta strong {
  font-size: 13px;
}

.sidebar-user-meta small {
  color: var(--muted);
  font-size: 12px;
}

.app-main {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 10;
  margin: 18px 24px 0;
  padding: 14px 18px;
  border: 1px solid color-mix(in srgb, var(--border) 78%, rgba(255, 255, 255, 0.12));
  border-radius: 24px;
  backdrop-filter: blur(8px);
  background: linear-gradient(135deg, color-mix(in srgb, var(--surface) 72%, transparent), color-mix(in srgb, var(--bg-2) 68%, transparent));
  box-shadow: 0 12px 28px rgba(4, 10, 28, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px 18px;
  overflow: hidden;
  position: sticky;
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.04), transparent 35%, transparent 70%, rgba(99, 102, 241, 0.08));
  pointer-events: none;
}

.topbar > * {
  position: relative;
  z-index: 1;
}

html[data-theme="light"] .topbar {
  background: linear-gradient(135deg, color-mix(in srgb, #ffffff 74%, transparent), color-mix(in srgb, var(--bg-2) 60%, #ffffff 40%));
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.topbar-intro {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.topbar-title-block h2 {
  margin: 0;
  font-size: clamp(1.45rem, 1.8vw, 1.9rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.topbar-title-block p {
  margin: 2px 0 0;
  max-width: 58ch;
  font-size: 0.96rem;
  color: color-mix(in srgb, var(--muted) 88%, var(--text) 12%);
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.topbar-action-rail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--border) 84%, rgba(255, 255, 255, 0.08));
  background: color-mix(in srgb, var(--surface) 64%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.topbar .plan-chip {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--border) 78%, rgba(255, 255, 255, 0.08));
  background: color-mix(in srgb, var(--bg-2) 62%, transparent);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}

.topbar .btn,
.topbar-user {
  min-height: 42px;
}

.topbar-create-btn {
  padding-inline: 18px;
  border-radius: 14px;
  box-shadow: 0 10px 20px color-mix(in srgb, var(--primary) 22%, transparent);
}

.topbar-user {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  padding: 3px 12px 3px 3px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--border) 76%, rgba(255, 255, 255, 0.06));
  background: color-mix(in srgb, var(--surface) 62%, transparent);
  transition: border-color 140ms ease, background-color 140ms ease, transform 140ms ease;
}

.topbar-user:hover {
  border-color: color-mix(in srgb, var(--primary) 42%, var(--border));
  background: color-mix(in srgb, var(--surface) 72%, var(--bg-2) 28%);
  transform: translateY(-1px);
}

.topbar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--border) 60%, rgba(255, 255, 255, 0.12));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #eef2ff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  overflow: hidden;
  box-shadow: 0 8px 14px color-mix(in srgb, var(--primary) 18%, transparent);
}

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

.topbar-user-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.topbar .theme-toggle {
  min-width: 104px;
  justify-content: center;
  border-radius: 14px;
}

.theme-toggle-icon {
  font-size: 16px;
}

.topbar-logout-form {
  margin: 0;
}

.topbar-logout-btn {
  border-radius: 14px;
}

.content-wrap {
  padding: 20px 24px 28px;
  display: grid;
  gap: 16px;
}

.site-footer {
  margin: 0 24px 24px;
  padding: 18px 20px;
  border: 1px solid color-mix(in srgb, var(--border) 82%, rgba(255, 255, 255, 0.08));
  border-radius: 24px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  box-shadow: 0 12px 24px rgba(4, 10, 28, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 24px;
  flex-wrap: wrap;
}

.site-footer-copy {
  display: grid;
  gap: 6px;
}

.site-footer-copy strong {
  font-size: 1rem;
}

.site-footer-copy p,
.site-footer-copy small {
  margin: 0;
  color: var(--muted);
}

.site-footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 16px;
  flex-wrap: wrap;
}

.site-footer-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.site-footer-links a:hover {
  color: var(--primary-2);
}

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

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

.help-step-list,
.help-bullet-list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 8px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.help-chat-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 45;
  display: grid;
  justify-items: end;
  gap: 12px;
}

.help-chat-toggle {
  width: 52px;
  height: 52px;
  min-height: 52px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--border));
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #eef2ff;
  font: inherit;
  font-weight: 700;
  box-shadow: 0 18px 36px color-mix(in srgb, var(--primary) 24%, transparent);
  cursor: pointer;
}

.help-chat-panel {
  width: min(420px, calc(100vw - 32px));
  border: 1px solid color-mix(in srgb, var(--border) 82%, rgba(255, 255, 255, 0.08));
  border-radius: 24px;
  background: color-mix(in srgb, var(--surface) 88%, var(--bg) 12%);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 48px rgba(4, 10, 28, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.help-chat-header {
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--border);
  display: grid;
  gap: 10px;
}

.help-chat-header h3,
.help-chat-header p {
  margin: 0;
}

.help-chat-header p {
  color: var(--muted);
}

.help-chat-messages {
  max-height: 360px;
  padding: 16px;
  display: grid;
  gap: 12px;
  overflow-y: auto;
}

.help-chat-message {
  max-width: 92%;
  padding: 12px 14px;
  border-radius: 18px;
  line-height: 1.5;
}

.help-chat-message p {
  margin: 0;
  white-space: pre-line;
}

.help-chat-message-user {
  justify-self: end;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 72%, transparent), color-mix(in srgb, var(--primary-2) 68%, transparent));
  color: #eef2ff;
}

.help-chat-message-assistant {
  justify-self: start;
  background: color-mix(in srgb, var(--bg-2) 78%, var(--surface) 22%);
  border: 1px solid color-mix(in srgb, var(--border) 84%, rgba(255, 255, 255, 0.05));
}

.help-chat-message.is-loading {
  opacity: 0.78;
}

.help-chat-meta {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.help-chat-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.help-chat-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
}

.help-chat-links a:hover {
  color: var(--primary-2);
}

.help-chat-starters {
  padding: 0 16px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.help-chat-form {
  padding: 0 16px 16px;
  display: grid;
  gap: 10px;
}

.help-chat-form textarea {
  min-height: 78px;
  resize: vertical;
}

.card,
.list-item,
.idea-item,
.episode-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card {
  padding: 16px;
  display: grid;
  gap: 12px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.card:hover {
  border-color: color-mix(in srgb, var(--primary) 36%, var(--border));
  transform: translateY(-1px);
}

.card-grid {
  display: grid;
  gap: 12px;
}

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

.stat-card {
  min-height: 118px;
}

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

.stat-card-link .mini-note {
  margin-top: auto;
  color: var(--muted-2);
}

.stat-card-link:hover .mini-note {
  color: var(--text);
}

.active-stat-card {
  border-color: color-mix(in srgb, var(--primary) 50%, var(--border));
  background: linear-gradient(160deg, color-mix(in srgb, var(--primary) 14%, transparent), var(--surface));
}

.stat-card p {
  color: var(--muted);
  font-size: 14px;
}

.stat-card h3 {
  margin-top: 8px;
  font-size: 30px;
  font-weight: 760;
}

.stat-card.wide {
  grid-column: span 2;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

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

.settings-grid {
  align-items: start;
}

.settings-nav-card {
  gap: 18px;
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.14), transparent 34%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 96%, rgba(255, 255, 255, 0.02)), var(--surface));
}

.settings-tab-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.settings-tab-card {
  text-decoration: none;
  color: inherit;
  border: 1px solid color-mix(in srgb, var(--border) 84%, rgba(255, 255, 255, 0.08));
  border-radius: 18px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, rgba(255, 255, 255, 0.02)), color-mix(in srgb, var(--bg-2) 78%, var(--surface)));
  padding: 14px;
  min-height: 94px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.settings-tab-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--primary) 42%, var(--border));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 84%, rgba(59, 130, 246, 0.08)), color-mix(in srgb, var(--bg-2) 76%, var(--primary)));
  box-shadow: 0 14px 34px rgba(2, 6, 23, 0.22);
}

.active-settings-tab {
  border-color: color-mix(in srgb, var(--primary) 48%, var(--border));
  background:
    radial-gradient(circle at top right, rgba(99, 102, 241, 0.18), transparent 34%),
    linear-gradient(160deg, color-mix(in srgb, var(--primary) 18%, transparent), var(--surface));
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
}

.settings-tab-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: #e2e8f0;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.settings-tab-icon svg {
  width: 18px;
  height: 18px;
}

.settings-tab-text {
  display: grid;
  gap: 2px;
}

.settings-tab-text strong {
  font-size: 14px;
  color: var(--text);
}

.settings-tab-text small {
  font-size: 12px;
  color: var(--muted);
}

.settings-avatar {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 750;
  color: #eef2ff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  overflow: hidden;
}

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

.podcast-style-step {
  gap: 16px;
  padding: 16px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--primary) 22%, transparent), transparent 34%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, var(--bg-2) 8%), color-mix(in srgb, var(--bg-2) 94%, var(--surface) 6%));
}

.podcast-style-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.podcast-style-head h4 {
  margin-bottom: 6px;
}

.podcast-style-selection {
  display: grid;
  gap: 4px;
  min-width: 220px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--primary) 30%, var(--border));
  background: color-mix(in srgb, var(--surface) 80%, var(--primary));
}

.podcast-style-selection strong {
  font-size: 15px;
  color: var(--text);
}

.podcast-style-selection small {
  color: var(--muted);
}

.podcast-template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.podcast-template-card {
  width: 100%;
  text-align: left;
  display: grid;
  gap: 12px;
  appearance: none;
  font: inherit;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 94%, var(--bg-2) 6%), color-mix(in srgb, var(--bg-2) 92%, var(--surface) 8%));
  color: inherit;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.podcast-template-card:focus-visible {
  outline: none;
  border-color: color-mix(in srgb, var(--primary) 78%, white 22%);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 24%, transparent);
}

.podcast-template-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.24);
}

.podcast-template-card.is-selected {
  border-color: color-mix(in srgb, var(--primary) 68%, var(--border));
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--primary) 26%, transparent), transparent 40%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 82%, var(--primary)), color-mix(in srgb, var(--bg-2) 88%, var(--surface) 12%));
  box-shadow: 0 22px 44px rgba(76, 93, 214, 0.16);
}

.podcast-template-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #eef2ff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 88%, white 12%), color-mix(in srgb, var(--primary-2) 88%, white 12%));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.podcast-template-icon svg {
  width: 24px;
  height: 24px;
}

.podcast-template-copy {
  display: grid;
  gap: 6px;
}

.podcast-template-copy strong {
  color: var(--text);
  font-size: 15px;
}

.podcast-template-copy small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.podcast-template-meta,
.podcast-style-badges,
.podcast-style-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.podcast-style-preview {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--border));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 94%, var(--primary) 6%), color-mix(in srgb, var(--bg-2) 94%, var(--surface) 6%));
}

.podcast-style-preview-copy {
  display: grid;
  gap: 6px;
}

.podcast-style-preview-copy p,
.podcast-style-preview-card p {
  margin: 0;
  color: var(--text);
  line-height: 1.55;
}

.podcast-style-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.podcast-style-preview-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 88%, var(--bg-2));
}

.podcast-style-flow-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--primary) 26%, var(--border));
  background: color-mix(in srgb, var(--surface) 76%, var(--primary));
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}

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

.create-mode-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 6px;
}

.wizard-progress {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wizard-progress .step {
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 5px 10px;
  color: var(--muted);
  font-size: 12px;
  background: color-mix(in srgb, var(--surface) 88%, var(--bg-2));
}

.wizard-progress .step.active {
  color: var(--text);
  border-color: color-mix(in srgb, var(--primary) 42%, var(--border));
  background: color-mix(in srgb, var(--surface) 78%, var(--primary));
}

.wizard-progress-quick .step {
  padding-inline: 12px;
}

.wizard-step {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.single-quick-start-card {
  gap: 16px;
  padding: 18px;
  border-radius: 22px;
  border-color: color-mix(in srgb, var(--primary) 28%, var(--border));
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--primary) 20%, transparent), transparent 36%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, var(--primary) 8%), color-mix(in srgb, var(--bg-2) 90%, var(--surface) 10%));
}

.single-quick-start-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.single-quick-start-head h4 {
  margin-bottom: 6px;
}

.single-quick-start-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.single-quick-start-actions .mini-note {
  max-width: 54ch;
}

.single-advanced-shell {
  padding: 0;
  overflow: hidden;
}

.single-advanced-shell[open] {
  border-color: color-mix(in srgb, var(--primary) 30%, var(--border));
}

.single-advanced-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  cursor: pointer;
  user-select: none;
}

.single-advanced-summary::-webkit-details-marker {
  display: none;
}

.single-advanced-summary::after {
  content: '+';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--border));
  background: color-mix(in srgb, var(--surface) 84%, var(--primary));
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  flex: 0 0 auto;
}

.single-advanced-shell[open] .single-advanced-summary::after {
  content: '−';
}

.single-advanced-body {
  display: grid;
  gap: 16px;
  padding: 0 18px 18px;
}

.single-advanced-section {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--border) 88%, rgba(255, 255, 255, 0.04));
  background: color-mix(in srgb, var(--surface) 88%, var(--bg-2));
}

.single-advanced-section h4 {
  margin: 0;
}

.single-collection-card {
  background: linear-gradient(165deg, rgba(59, 130, 246, 0.16), transparent 66%), var(--surface);
}

.list-stack,
.episode-divider-stack,
.theme-stack,
.checkbox-grid,
.form-grid {
  display: grid;
  gap: 10px;
}

.tone-section {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 88%, var(--primary));
}

.tone-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

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

.tone-card {
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 90%, var(--bg-2));
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, background-color 160ms ease;
}

.tone-card input {
  width: auto;
  margin: 0;
  accent-color: var(--primary);
}

.tone-card:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
}

.tone-card:has(input:checked) {
  border-color: color-mix(in srgb, var(--primary) 62%, var(--border));
  background: color-mix(in srgb, var(--surface) 78%, var(--primary));
}

.tone-card-title {
  color: var(--text);
  font-weight: 640;
}

.tone-card-desc {
  color: var(--muted);
  font-size: 13px;
}

.tone-card-example {
  color: var(--muted-2);
  font-size: 12px;
  font-style: italic;
}

.tone-card.compact .tone-card-example {
  display: none;
}

.list-item {
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: border-color 160ms ease, transform 160ms ease, background-color 160ms ease;
}

.list-item:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--primary) 30%, var(--border));
  background: color-mix(in srgb, var(--surface) 84%, var(--primary));
}

.list-item p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.studio-recent-item {
  min-height: 72px;
  max-height: 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  overflow: hidden;
}

.studio-recent-main {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.studio-recent-main h4,
.studio-recent-main p {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.studio-recent-item .inline-actions {
  flex-wrap: nowrap;
  min-width: max-content;
}

.studio-recent-item .mini-label,
.studio-recent-item .badge {
  white-space: nowrap;
}

label,
fieldset {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
}

input,
textarea,
select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-2) 78%, var(--surface));
  color: var(--text);
  font: inherit;
  transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

html[data-theme="light"] input,
html[data-theme="light"] textarea,
html[data-theme="light"] select {
  background: #fff;
}

textarea {
  resize: vertical;
}

fieldset {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
}

legend {
  padding: 0 6px;
  color: var(--muted);
  font-weight: 600;
}

.btn,
.btn-primary,
.btn-secondary,
.btn-ghost {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 9px 14px;
  font: inherit;
  font-weight: 620;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 130ms ease, filter 130ms ease, border-color 130ms ease,
    background-color 130ms ease;
}

.btn,
.btn-primary {
  color: #f8fafc;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

.btn-secondary {
  color: var(--text);
  border-color: var(--border);
  background: color-mix(in srgb, var(--surface) 80%, var(--bg-2));
}

.btn-ghost {
  color: var(--muted);
  border-color: var(--border);
  background: transparent;
}

.btn-danger {
  color: #fff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--danger) 96%, #000), var(--danger));
}

.btn-muted {
  color: var(--muted-2);
  background: color-mix(in srgb, var(--surface) 80%, var(--bg));
  border-color: var(--border);
}

.btn-google {
  width: 100%;
  color: #111827;
  border-color: color-mix(in srgb, #fff 72%, var(--border));
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.btn-google:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.btn-google[disabled] {
  color: #64748b;
  background: #e2e8f0;
  border-color: #cbd5e1;
}

html[data-theme="dark"] .btn-google {
  color: #e5e7eb;
  border-color: color-mix(in srgb, #fff 35%, var(--border));
  background: linear-gradient(160deg, color-mix(in srgb, #fff 8%, var(--surface)), var(--surface));
}

html[data-theme="dark"] .btn-google:hover {
  background: linear-gradient(160deg, color-mix(in srgb, #fff 11%, var(--surface)), var(--surface));
}

.google-mark {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  flex: 0 0 auto;
}

.google-mark svg {
  width: 14px;
  height: 14px;
  display: block;
}

.auth-separator {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted-2);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.auth-separator::before,
.auth-separator::after {
  content: '';
  height: 1px;
  flex: 1;
  background: var(--border);
}

.btn:hover,
.btn-primary:hover,
.btn-secondary:hover,
.btn-ghost:hover,
.btn-danger:hover,
.btn-muted:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.btn[disabled],
button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.badge,
.status-badge,
.plan-chip,
.mini-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 9px;
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 620;
  color: var(--muted);
}

.badge-planned,
.status-planned {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(59, 130, 246, 0.24);
}

.badge-draft,
.status-draft {
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.24);
}

.badge-ready,
.status-ready {
  color: #86efac;
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.24);
}

.badge-served,
.status-served {
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.14);
  border-color: rgba(139, 92, 246, 0.24);
}

.flash-stack {
  display: grid;
  gap: 8px;
}

.flash {
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  font-weight: 600;
}

.flash-success {
  color: #bbf7d0;
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.14);
}

.flash-error {
  color: #fecaca;
  border-color: rgba(239, 68, 68, 0.28);
  background: rgba(239, 68, 68, 0.14);
}

html[data-theme="light"] .flash-success {
  color: #166534;
}

html[data-theme="light"] .flash-error {
  color: #991b1b;
}

.mini-note,
.empty-state,
.chevron {
  color: var(--muted);
  font-size: 14px;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.inline-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.download-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.download-form select {
  min-width: 110px;
}

.check-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
}

.check-item input {
  width: auto;
  margin-top: 2px;
}

.chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  white-space: nowrap;
  border-radius: 999px;
  padding: 5px 10px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: color-mix(in srgb, var(--surface) 88%, var(--primary));
  font-size: 12px;
}

.active-chip {
  color: var(--text);
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
  background: color-mix(in srgb, var(--surface) 74%, var(--primary));
}

.studio-filter-bar {
  align-items: center;
  overflow-x: auto;
  padding-bottom: 2px;
}

.studio-filter-chip {
  min-height: 32px;
  padding: 0 12px;
  font-weight: 620;
}

.theme-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 90%, var(--accent));
  padding: 0;
  overflow: hidden;
}

.theme-summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  background: color-mix(in srgb, var(--surface) 84%, var(--primary));
  border-bottom: 1px solid var(--border);
}

.theme-summary::-webkit-details-marker {
  display: none;
}

.theme-summary p {
  margin-top: 4px;
}

.theme-body {
  padding: 12px;
  display: grid;
  gap: 12px;
}

.theme-add-episode {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: end;
}

.tone-override-card {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 84%, var(--accent));
  overflow: hidden;
}

.tone-override-card > summary {
  cursor: pointer;
  list-style: none;
  padding: 10px 12px;
  font-weight: 620;
  color: var(--text);
}

.tone-override-card > summary::-webkit-details-marker {
  display: none;
}

.tone-override-body {
  border-top: 1px solid var(--border);
  padding: 10px;
  display: grid;
  gap: 10px;
}

.tone-override-fields {
  display: grid;
  gap: 10px;
}

.episode-block {
  border-style: dashed;
  border-color: color-mix(in srgb, var(--primary) 28%, var(--border));
  padding: 12px;
  display: grid;
  gap: 8px;
}

.episode-block header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.idea-item {
  padding: 12px;
  display: grid;
  gap: 10px;
}

.danger-form {
  margin-top: 4px;
}

.transcript-locked,
.transcript-ready {
  border-radius: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  display: grid;
  gap: 10px;
}

.tone-warnings {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 6px;
}

.transcript-locked {
  background: color-mix(in srgb, var(--surface) 84%, var(--warning));
}

.transcript-ready {
  background: color-mix(in srgb, var(--surface) 84%, var(--success));
}

.theme-toggle {
  min-width: 96px;
}

.ai-loader-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 16px;
  background: color-mix(in srgb, var(--bg) 74%, rgba(0, 0, 0, 0.35));
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.ai-loader-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.ai-loader-card {
  width: min(460px, 100%);
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
  padding: 22px 20px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--primary) 34%, var(--border));
  background:
    radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--primary) 34%, transparent), transparent 44%),
    radial-gradient(circle at 88% 2%, color-mix(in srgb, var(--primary-2) 32%, transparent), transparent 44%),
    color-mix(in srgb, var(--surface) 92%, var(--bg-2));
  box-shadow: var(--shadow);
}

.ai-loader-card h3 {
  font-size: 20px;
}

.ai-loader-card p {
  color: var(--muted);
  max-width: 36ch;
}

.ai-loader-logo-wrap {
  position: relative;
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
}

.ai-loader-ring {
  position: absolute;
  width: 76px;
  height: 76px;
  border-radius: 999px;
  border: 2px solid transparent;
  border-top-color: color-mix(in srgb, var(--primary) 82%, #fff);
  border-right-color: color-mix(in srgb, var(--primary-2) 82%, #fff);
  animation: ai-loader-spin 1.1s linear infinite;
}

.ai-loader-logo {
  width: 58px;
  height: 58px;
  filter: drop-shadow(0 8px 18px rgba(59, 130, 246, 0.24));
  animation: ai-loader-pulse 1.7s ease-in-out infinite;
}

.ai-loader-logo-light {
  display: none;
}

html[data-theme="light"] .ai-loader-logo-dark {
  display: none;
}

html[data-theme="light"] .ai-loader-logo-light {
  display: block;
}

.ai-loader-steps {
  margin-top: 2px;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.ai-loader-step {
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 620;
  color: var(--muted-2);
  background: color-mix(in srgb, var(--surface) 86%, var(--bg-2));
  transition: color 140ms ease, border-color 140ms ease, background-color 140ms ease;
}

.ai-loader-step.is-complete {
  color: color-mix(in srgb, var(--success) 85%, var(--text));
  border-color: color-mix(in srgb, var(--success) 32%, var(--border));
  background: color-mix(in srgb, var(--surface) 82%, var(--success));
}

.ai-loader-step.is-active {
  color: #f8fafc;
  border-color: color-mix(in srgb, var(--primary) 46%, var(--border));
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

.onboarding-overlay {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  place-items: center;
  padding: 18px;
  background: transparent;
  backdrop-filter: none;
}

.onboarding-overlay.is-closing {
  pointer-events: none;
}

.onboarding-backdrop,
.onboarding-grid-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.onboarding-backdrop {
  background:
    radial-gradient(circle at 8% 0%, rgba(59, 130, 246, 0.2), transparent 44%),
    radial-gradient(circle at 92% 0%, rgba(99, 102, 241, 0.2), transparent 40%),
    color-mix(in srgb, var(--bg) 62%, transparent);
  opacity: 0;
}

.onboarding-grid-glow {
  background:
    linear-gradient(
      rgba(59, 130, 246, 0.11) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(99, 102, 241, 0.11) 1px,
      transparent 1px
    );
  background-size: 74px 74px;
  mask: radial-gradient(circle at 50% 50%, transparent 0, transparent 12%, #000 16%, #000 100%);
  opacity: 0;
}

.onboarding-highlight {
  position: fixed;
  border-radius: 16px;
  pointer-events: none;
  border: 1px solid color-mix(in srgb, var(--primary) 68%, #fff);
  box-shadow:
    0 0 20px rgba(99, 102, 241, 0.5),
    0 0 45px rgba(59, 130, 246, 0.28);
  background: color-mix(in srgb, var(--primary) 6%, transparent);
  transition: top 190ms ease, left 190ms ease, width 190ms ease, height 190ms ease;
}

.onboarding-highlight-pulse {
  position: absolute;
  inset: -18px;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--primary) 60%, #fff);
  opacity: 0;
  animation: onboarding-pulse 1.9s ease infinite;
}

.onboarding-highlight.is-active .onboarding-highlight-pulse {
  opacity: 1;
}

.onboarding-card {
  position: relative;
  width: min(540px, 100%);
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--primary) 44%, var(--border));
  padding: 20px 18px 18px;
  display: grid;
  gap: 12px;
  background:
    radial-gradient(circle at 10% 0%, color-mix(in srgb, var(--primary) 18%, transparent), transparent 44%),
    radial-gradient(circle at 90% 100%, color-mix(in srgb, var(--primary-2) 18%, transparent), transparent 44%),
    color-mix(in srgb, var(--surface) 92%, var(--bg-2));
  box-shadow:
    0 18px 50px rgba(2, 6, 23, 0.34),
    inset 0 1px 0 color-mix(in srgb, #fff 16%, transparent);
  overflow: hidden;
}

.onboarding-card-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 24%, color-mix(in srgb, var(--primary) 30%, transparent) 58%, transparent);
  opacity: 0.3;
  transform: translateX(-60%);
  transition: transform 360ms ease;
}

.onboarding-card.is-animated .onboarding-card-glow {
  transform: translateX(120%);
}

.onboarding-chip {
  justify-self: start;
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 650;
  border: 1px solid color-mix(in srgb, var(--primary) 48%, var(--border));
  color: var(--text);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
}

.onboarding-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.onboarding-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.onboarding-progress {
  display: grid;
  gap: 7px;
}

.onboarding-progress-track {
  position: relative;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 80%, var(--surface));
}

.onboarding-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  border-radius: 999px;
  width: 0;
  transition: width 210ms ease;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
}

.onboarding-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.onboarding-actions {
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.onboarding-links + .onboarding-actions {
  margin-top: 4px;
}

body.is-onboarding-active {
  overflow: hidden;
}

@keyframes onboarding-pulse {
  0%,
  100% {
    transform: scale(0.97);
    opacity: 0.35;
  }

  50% {
    transform: scale(1);
    opacity: 0.78;
  }
}

html[data-theme='light'] .onboarding-backdrop {
  background:
    radial-gradient(circle at 8% 0%, rgba(59, 130, 246, 0.12), transparent 44%),
    radial-gradient(circle at 92% 0%, rgba(99, 102, 241, 0.12), transparent 40%),
    color-mix(in srgb, var(--bg) 78%, transparent);
  opacity: 0;
}

.onboarding-overlay[hidden],
.onboarding-overlay.is-closing {
  display: none;
}

@keyframes ai-loader-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes ai-loader-pulse {
  0%,
  100% {
    transform: scale(0.96);
  }

  50% {
    transform: scale(1);
  }
}

.error-stack {
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 12px;
  padding: 10px;
  overflow: auto;
}

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

.plan-card {
  align-content: start;
}

.billing-hero {
  position: relative;
  overflow: hidden;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.9fr);
  gap: 22px;
}

.billing-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.16), transparent 26%),
    radial-gradient(circle at bottom left, rgba(56, 189, 248, 0.12), transparent 28%);
  pointer-events: none;
}

.billing-hero-premium {
  border-color: color-mix(in srgb, var(--primary) 24%, var(--border));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface) 88%, rgba(99, 102, 241, 0.06)), color-mix(in srgb, var(--bg-2) 88%, rgba(8, 47, 73, 0.28)));
}

.billing-hero-copy,
.billing-hero-panel {
  position: relative;
  z-index: 1;
}

.billing-hero-copy {
  display: grid;
  align-content: start;
  gap: 14px;
}

.billing-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.22);
  background: rgba(37, 99, 235, 0.12);
  color: #bfdbfe;
  font-size: 11px;
  font-weight: 720;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.billing-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.billing-hero-panel {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--border) 82%, rgba(255, 255, 255, 0.08));
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.34), rgba(15, 23, 42, 0.12));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.billing-panel-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.billing-stat-card {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--border) 86%, rgba(255, 255, 255, 0.06));
  background: color-mix(in srgb, var(--surface) 78%, rgba(255, 255, 255, 0.02));
}

.billing-stat-card strong {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.billing-stat-card small {
  color: var(--muted);
}

.billing-hero-panel--receipt {
  gap: 10px;
}

.billing-receipt-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--border) 86%, rgba(255, 255, 255, 0.06));
  background: color-mix(in srgb, var(--surface) 80%, rgba(255, 255, 255, 0.01));
}

.billing-receipt-row span {
  color: var(--muted);
}

.billing-receipt-row strong {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
  text-align: right;
}

.billing-receipt-row--session strong {
  max-width: 260px;
  font-size: 0.76rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.billing-launch-band {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px;
  border-color: color-mix(in srgb, var(--primary-2) 24%, var(--border));
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.08), transparent 42%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 94%, rgba(255, 255, 255, 0.02)), var(--surface));
}

.billing-timeline-card {
  gap: 16px;
}

.billing-timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.billing-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--border) 84%, rgba(255, 255, 255, 0.04));
  background: color-mix(in srgb, var(--surface) 82%, rgba(255, 255, 255, 0.02));
}

.billing-step strong {
  display: block;
  margin-bottom: 4px;
}

.billing-step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--bg-2) 84%, rgba(255, 255, 255, 0.04));
  border: 1px solid color-mix(in srgb, var(--border) 86%, rgba(255, 255, 255, 0.08));
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0.08em;
}

.billing-step.is-complete {
  border-color: rgba(34, 197, 94, 0.26);
  background: rgba(34, 197, 94, 0.08);
}

.billing-step.is-live {
  border-color: rgba(96, 165, 250, 0.28);
  background: rgba(59, 130, 246, 0.09);
}

.premium-plan-grid {
  gap: 16px;
}

.premium-plan-card {
  position: relative;
  overflow: hidden;
  gap: 16px;
  min-height: 100%;
  padding: 20px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 96%, rgba(255, 255, 255, 0.02)), color-mix(in srgb, var(--bg-2) 86%, var(--surface)));
}

.premium-plan-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), transparent 28%, transparent 74%, rgba(59, 130, 246, 0.08));
  pointer-events: none;
}

.premium-plan-card > * {
  position: relative;
  z-index: 1;
}

.premium-plan-card-featured {
  border-color: rgba(96, 165, 250, 0.26);
  box-shadow: 0 20px 38px rgba(2, 6, 23, 0.22);
}

.premium-plan-card-active {
  border-color: rgba(99, 102, 241, 0.42);
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.16);
}

.premium-plan-card-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}

.premium-price {
  font-size: clamp(2rem, 2.8vw, 2.7rem);
  letter-spacing: -0.05em;
}

.premium-plan-tagline {
  color: color-mix(in srgb, var(--text) 84%, var(--muted) 16%);
  font-size: 0.98rem;
}

.premium-plan-feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.premium-plan-feature-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  color: var(--text);
}

.premium-feature-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-top: 6px;
  background: linear-gradient(135deg, var(--primary), #38bdf8);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.plan-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 6px;
}

.price {
  margin: 0;
  font-size: 30px;
  color: var(--text);
  font-weight: 760;
  letter-spacing: -0.03em;
}

.active-plan {
  border-color: rgba(99, 102, 241, 0.42);
}

@media (max-width: 1180px) {
  .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .billing-hero,
  .billing-launch-band,
  .billing-timeline {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .topbar {
    position: static;
    top: auto;
    margin: 12px 16px 0;
    padding: 16px;
    border-radius: 20px;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .content-wrap {
    padding: 14px 16px 20px;
  }

  .billing-hero-panel {
    padding: 14px;
  }

  .billing-receipt-row {
    grid-template-columns: 1fr;
  }

  .billing-receipt-row strong {
    text-align: left;
  }

  .site-footer {
    margin: 0 16px 20px;
    padding: 16px;
    border-radius: 20px;
    align-items: flex-start;
  }

  .site-footer-links {
    justify-content: flex-start;
  }

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

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

  .idea-tool-form-row,
  .idea-tool-results-grid,
  .idea-tool-support-grid {
    grid-template-columns: 1fr;
  }

  .help-chat-widget {
    right: 16px;
    left: auto;
    bottom: 16px;
    justify-items: end;
  }

  .help-chat-toggle {
    width: 50px;
    height: 50px;
    min-height: 50px;
  }

  .help-chat-panel {
    width: 100%;
  }

  .topbar-title-block h2 {
    font-size: clamp(1.35rem, 6vw, 1.7rem);
  }

  .topbar-actions {
    width: 100%;
  }

  .topbar-action-rail {
    width: 100%;
    flex-wrap: wrap;
  }

  .topbar-action-rail--primary .plan-chip,
  .topbar-action-rail--primary .topbar-create-btn,
  .topbar-action-rail--account .theme-toggle,
  .topbar-action-rail--account .topbar-logout-btn {
    flex: 1 1 160px;
    justify-content: center;
  }

  .topbar-action-rail--account .topbar-user {
    flex: 1 1 100%;
  }

  .topbar-user-name {
    display: inline;
  }

  .split-grid,
  .settings-tab-grid,
  .create-mode-grid,
  .podcast-template-grid,
  .podcast-style-preview-grid,
  .stats-grid,
  .plan-grid,
  .two-col,
  .theme-add-episode,
  .tone-grid,
  .tone-grid.compact {
    grid-template-columns: 1fr;
  }

  .podcast-style-head {
    grid-template-columns: 1fr;
  }

  .podcast-style-selection {
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.app-shell-public {
  grid-template-columns: 1fr;
}

.app-body-public .topbar,
.app-body-public .content-wrap,
.app-body-public .site-footer {
  max-width: 1400px;
  width: calc(100% - 48px);
  margin-left: auto;
  margin-right: auto;
}

.app-body-public .content-wrap {
  padding-top: 24px;
}

.idea-tool-shell,
.idea-tool-support-grid {
  display: grid;
  gap: 20px;
}

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

.tool-hero {
  position: relative;
  overflow: hidden;
  padding: 28px;
  background:
    radial-gradient(circle at top right, rgba(99, 102, 241, 0.22), transparent 24%),
    radial-gradient(circle at left top, rgba(59, 130, 246, 0.16), transparent 28%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 94%, var(--bg-2) 6%), color-mix(in srgb, var(--bg-2) 94%, var(--surface) 6%));
}

.tool-hero-copy {
  display: grid;
  gap: 18px;
  max-width: 860px;
}

.idea-tool-form {
  display: grid;
  gap: 14px;
}

.idea-tool-form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.idea-tool-form-row input {
  min-height: 52px;
  border-radius: 18px;
}

.idea-tool-submit {
  min-width: 180px;
}

.idea-tool-inline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.idea-tool-results-shell {
  display: grid;
  gap: 16px;
}

.idea-tool-results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.idea-result-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--border));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 95%, var(--primary) 5%), color-mix(in srgb, var(--bg-2) 94%, var(--surface) 6%));
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.idea-result-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--primary) 34%, var(--border));
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.18);
}

.idea-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.idea-result-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #eef2ff;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 88%, white 12%), color-mix(in srgb, var(--primary-2) 88%, white 12%));
}

.idea-result-body {
  display: grid;
  gap: 10px;
}

.idea-result-body h3 {
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.35;
}

.idea-result-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.idea-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.idea-result-actions .btn {
  flex: 1 1 160px;
  justify-content: center;
}

.landing-hero {
  position: relative;
  min-height: 76vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: center;
  gap: 28px;
  padding: 36px;
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 26%, rgba(255, 109, 61, 0.22), transparent 20%),
    radial-gradient(circle at 72% 44%, rgba(245, 93, 32, 0.18), transparent 28%),
    radial-gradient(circle at 18% 0%, rgba(59, 130, 246, 0.14), transparent 28%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, var(--bg) 8%), color-mix(in srgb, var(--bg-2) 90%, var(--surface) 10%));
}

.landing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(96, 165, 250, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  mask: radial-gradient(circle at 70% 40%, #000 0, #000 44%, transparent 88%);
  pointer-events: none;
}

.landing-copy,
.landing-visual {
  position: relative;
  z-index: 1;
}

.landing-copy {
  display: grid;
  gap: 18px;
  align-content: center;
}

.landing-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--primary) 34%, var(--border));
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  font-weight: 700;
  color: color-mix(in srgb, var(--text) 84%, var(--primary-2));
}

.landing-copy h1 {
  margin: 0;
  max-width: 10ch;
  font-size: clamp(3.2rem, 6vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.landing-lead {
  margin: 0;
  max-width: 60ch;
  font-size: 1.08rem;
  color: color-mix(in srgb, var(--muted) 84%, var(--text) 16%);
}

.landing-actions {
  align-items: center;
}

.landing-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.landing-visual {
  min-height: 620px;
  display: grid;
  place-items: center;
}

.landing-model-shell {
  position: relative;
  width: min(100%, 620px);
  height: 620px;
  overflow: hidden;
  animation: landing-float 7s ease-in-out infinite;
}

.hero-model-shell {
  position: relative;
}

.hero-model-shell model-viewer {
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.hero-model-shell.is-model-ready model-viewer {
  opacity: 1;
}

.hero-model-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  isolation: isolate;
  transition: opacity 220ms ease, transform 220ms ease;
}

.hero-model-shell.is-model-ready .hero-model-fallback {
  opacity: 0;
  transform: scale(0.97);
}

.hero-model-fallback-ring {
  position: absolute;
  inset: 16%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 0 0 18px rgba(97, 126, 255, 0.06),
    0 24px 80px rgba(29, 78, 216, 0.18);
  animation: landing-pulse 4.6s ease-out infinite;
}

.hero-model-fallback-logo {
  position: relative;
  z-index: 1;
  width: min(34%, 170px);
  height: auto;
  filter: drop-shadow(0 18px 42px rgba(37, 99, 235, 0.24));
}

.hero-model-fallback-logo-light {
  display: none;
}

.landing-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(18px);
  pointer-events: none;
}

.landing-orb-back {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(255, 136, 66, 0.62), rgba(255, 136, 66, 0.18) 48%, transparent 74%);
  top: 86px;
  right: 78px;
}

.landing-orb-front {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 78, 23, 0.42), rgba(255, 78, 23, 0.1) 44%, transparent 74%);
  bottom: 88px;
  right: 38px;
}

.landing-wave-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 129, 72, 0.22);
  pointer-events: none;
}

.landing-wave-ring-a {
  width: 420px;
  height: 420px;
  top: 54px;
  right: 44px;
  animation: landing-pulse 4.4s ease-out infinite;
}

.landing-wave-ring-b {
  width: 520px;
  height: 520px;
  top: 8px;
  right: -4px;
  animation: landing-pulse 4.4s ease-out 0.8s infinite;
}

.landing-status-chip {
  position: absolute;
  top: 92px;
  left: 14px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, #ff9257 28%, var(--border));
  background: color-mix(in srgb, var(--surface) 72%, rgba(10, 14, 24, 0.4));
  backdrop-filter: blur(12px);
  color: #f8fafc;
  font-size: 0.9rem;
  box-shadow: 0 12px 24px rgba(4, 10, 28, 0.2);
}

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

.landing-card {
  display: grid;
  gap: 14px;
  align-content: start;
}

.landing-card h3,
.landing-step-row article p {
  margin: 0;
}

.landing-card-index {
  font-size: 0.84rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--primary-2) 70%, var(--muted));
}

.landing-card p,
.landing-step-row article p {
  color: var(--muted);
}

.landing-steps {
  display: grid;
  gap: 18px;
}

.landing-step-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.landing-step-row article {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--border) 82%, rgba(255, 255, 255, 0.05));
  background: color-mix(in srgb, var(--surface) 72%, transparent);
}

.landing-step-label {
  display: inline-flex;
  margin-bottom: 10px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--text) 82%, var(--primary));
}

@keyframes landing-float {
  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-14px);
  }
}

@keyframes landing-pulse {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }

  28% {
    opacity: 0.6;
  }

  100% {
    opacity: 0;
    transform: scale(1.08);
  }
}

@media (max-width: 900px) {
  .app-body-public .topbar,
  .app-body-public .content-wrap,
  .app-body-public .site-footer {
    width: calc(100% - 32px);
  }

  .landing-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 24px 20px;
  }

  .landing-copy h1 {
    max-width: none;
    font-size: clamp(2.4rem, 11vw, 3.6rem);
  }

  .landing-visual {
    min-height: 420px;
  }

  .landing-model-shell {
    width: min(100%, 420px);
    height: 420px;
  }

  .landing-orb-back {
    width: 240px;
    height: 240px;
    top: 72px;
    right: 52px;
  }

  .landing-orb-front {
    width: 160px;
    height: 160px;
    bottom: 62px;
    right: 30px;
  }

  .landing-wave-ring-a {
    width: 300px;
    height: 300px;
    top: 46px;
    right: 36px;
  }

  .landing-wave-ring-b {
    width: 360px;
    height: 360px;
    top: 18px;
    right: 8px;
  }

  .landing-status-chip {
    top: 24px;
    left: 10px;
  }

  .landing-grid,
  .landing-momentum-strip,
  .landing-step-row {
    grid-template-columns: 1fr;
  }

  .landing-momentum-card {
    padding: 20px 18px;
    border-radius: 22px;
  }

  .landing-momentum-card h3 {
    max-width: none;
  }
}

.topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.topbar-brand-mark {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(67, 112, 255, 0.08));
  border: 1px solid rgba(104, 140, 255, 0.18);
  box-shadow: 0 18px 44px rgba(4, 10, 26, 0.18);
}

.topbar-brand-mark .brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.topbar-brand-copy {
  display: grid;
  gap: 2px;
}

.topbar-brand-copy strong {
  font-size: 1.7rem;
  line-height: 1;
}

.topbar-brand-copy small {
  font-size: 0.95rem;
  color: var(--text-soft);
}

.help-page-shell {
  display: grid;
  gap: 28px;
}

.help-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 24px;
  padding: clamp(28px, 3vw, 40px);
  background:
    radial-gradient(circle at top right, rgba(86, 116, 255, 0.22), transparent 38%),
    radial-gradient(circle at bottom left, rgba(255, 128, 76, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
}

.help-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 84px 84px;
  opacity: 0.15;
  pointer-events: none;
}

.help-hero-copy,
.help-hero-visual {
  position: relative;
  z-index: 1;
}

.help-hero-copy {
  display: grid;
  gap: 18px;
  align-content: center;
}

.help-hero-copy h2 {
  margin: 0;
  font-size: clamp(2.5rem, 4.5vw, 4.6rem);
  line-height: 0.96;
  max-width: 12ch;
}

.help-hero-lead,
.help-hero-note {
  margin: 0;
  max-width: 66ch;
}

.help-hero-lead {
  font-size: 1.08rem;
  line-height: 1.72;
  color: color-mix(in srgb, var(--text) 88%, white);
}

.help-hero-note {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(9, 16, 36, 0.68);
  border: 1px solid rgba(104, 140, 255, 0.18);
  color: var(--text-soft);
}

.help-hero-visual {
  min-height: 320px;
  display: grid;
  place-items: center;
  perspective: 1400px;
}

.help-visual-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(18px);
  pointer-events: none;
  animation: help-glow 8s ease-in-out infinite;
}

.help-visual-orb-a {
  width: 280px;
  height: 280px;
  top: 22px;
  right: 24px;
  background: radial-gradient(circle, rgba(97, 126, 255, 0.48), rgba(97, 126, 255, 0.08) 58%, transparent 74%);
}

.help-visual-orb-b {
  width: 180px;
  height: 180px;
  bottom: 34px;
  left: 26px;
  background: radial-gradient(circle, rgba(255, 122, 65, 0.36), rgba(255, 122, 65, 0.08) 56%, transparent 74%);
}

.help-visual-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 360px);
  display: grid;
  gap: 14px;
  padding: 24px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(11, 18, 41, 0.9), rgba(14, 22, 48, 0.72));
  border: 1px solid rgba(104, 140, 255, 0.2);
  box-shadow: 0 24px 60px rgba(3, 8, 20, 0.32);
  animation: help-float 9s ease-in-out infinite;
}

.help-visual-panel .mini-label {
  width: fit-content;
}

.help-mic-stage {
  position: relative;
  width: min(100%, 420px);
  height: 420px;
  display: grid;
  place-items: center;
}

.help-mic-shell {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.08), transparent 48%),
    radial-gradient(circle at 50% 78%, rgba(255, 124, 71, 0.18), transparent 36%);
}

.help-mic-motion {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  will-change: transform;
}

.hero-model-shell--help .hero-model-fallback-ring {
  inset: 18%;
  border-color: rgba(97, 126, 255, 0.18);
  box-shadow:
    0 0 0 14px rgba(97, 126, 255, 0.06),
    0 22px 72px rgba(15, 23, 42, 0.16);
}

.help-mic-chip {
  position: absolute;
  z-index: 2;
  max-width: 160px;
}

.help-mic-chip-a {
  top: 14px;
  left: 10px;
}

.help-mic-chip-b {
  top: 58px;
  right: -6px;
}

.help-mic-chip-c {
  top: 164px;
  left: -12px;
}

.help-mic-chip-d {
  top: 206px;
  right: -18px;
}

.help-mic-chip-e {
  bottom: 62px;
  left: 24px;
}

.help-mic-chip-f {
  bottom: 24px;
  right: -2px;
}

.help-anchor-strip {
  padding: 24px;
}

.help-anchor-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.help-story-stack {
  display: grid;
  gap: 22px;
}

.help-story-section {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 26px;
  padding: 26px;
}

.help-story-aside {
  display: grid;
  gap: 12px;
  align-content: start;
}

.help-story-aside h3 {
  margin: 0;
  font-size: 1.3rem;
}

.help-story-index {
  width: fit-content;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(64, 106, 255, 0.12);
  border: 1px solid rgba(104, 140, 255, 0.2);
  color: color-mix(in srgb, var(--text) 86%, var(--primary));
  font-weight: 700;
  letter-spacing: 0.08em;
}

.help-story-content {
  display: grid;
  gap: 16px;
}

.help-story-lead {
  margin: 0;
  font-size: 1.03rem;
  line-height: 1.72;
  color: color-mix(in srgb, var(--text) 88%, white);
}

.help-story-section .help-step-list,
.help-story-section .help-bullet-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 12px;
}

.help-story-section li {
  color: var(--text-soft);
  line-height: 1.65;
}

.help-faq-shell {
  padding: 28px;
}

.help-faq-stack {
  display: grid;
  gap: 14px;
}

.help-faq-item {
  border-radius: 22px;
  border: 1px solid rgba(104, 140, 255, 0.16);
  background: linear-gradient(180deg, rgba(12, 18, 40, 0.78), rgba(12, 18, 40, 0.58));
  padding: 0 20px;
  overflow: hidden;
}

.help-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 0;
  font-weight: 700;
  color: var(--text);
}

.help-faq-item summary::-webkit-details-marker {
  display: none;
}

.help-faq-item p {
  margin: 0;
  padding: 0 0 20px;
  color: var(--text-soft);
  line-height: 1.72;
}

[data-help-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--help-reveal-delay, 0ms);
}

[data-help-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes help-float {
  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes help-glow {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.82;
  }

  50% {
    transform: scale(1.06);
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .topbar-brand-mark {
    width: 50px;
    height: 50px;
  }

  .topbar-brand-copy strong {
    font-size: 1.45rem;
  }

  .topbar-brand-copy small {
    max-width: 32ch;
  }

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

  .help-hero-copy h2 {
    max-width: none;
  }

  .help-hero-visual {
    min-height: 240px;
  }

  .help-visual-panel {
    width: 100%;
  }

  .help-mic-stage {
    width: min(100%, 340px);
    height: 340px;
  }

  .help-mic-chip {
    position: static;
    max-width: none;
  }

  .help-mic-stage {
    gap: 10px;
  }

  .help-mic-shell {
    order: -1;
  }

  .help-story-section {
    grid-template-columns: 1fr;
  }
}

.about-visual-panel strong {
  font-size: 1.42rem;
  line-height: 1.15;
  color: var(--text);
}

.about-visual-panel p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.68;
}

.about-visual-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.landing-page-shell {
  display: grid;
  gap: 28px;
}

.landing-momentum-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.landing-momentum-card {
  gap: 16px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--primary-2) 18%, var(--border));
  background:
    radial-gradient(circle at top left, rgba(99, 102, 241, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(9, 15, 29, 0.9), rgba(10, 16, 28, 0.78));
  box-shadow:
    0 20px 46px rgba(2, 6, 23, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.landing-momentum-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.landing-momentum-card h3 {
  max-width: 16ch;
  font-size: 1.16rem;
  line-height: 1.08;
}

.landing-momentum-card p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.65;
  color: color-mix(in srgb, var(--muted) 84%, var(--text) 16%);
}

.landing-momentum-tag {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--primary) 26%, var(--border));
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: color-mix(in srgb, var(--text) 82%, var(--primary-2));
  font-size: 0.78rem;
  font-weight: 600;
}

.landing-generator-section {
  display: grid;
  gap: 26px;
  padding: clamp(26px, 3vw, 36px);
  background:
    radial-gradient(circle at top center, rgba(99, 102, 241, 0.22), transparent 28%),
    radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(9, 14, 28, 0.92), rgba(11, 17, 32, 0.82));
  border: 1px solid color-mix(in srgb, var(--primary-2) 22%, var(--border));
  box-shadow:
    0 30px 70px rgba(2, 6, 23, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.landing-generator-head {
  width: min(760px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 14px;
  text-align: center;
}

.landing-generator-head h2 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.landing-generator-copy {
  font-size: 1.02rem;
  color: color-mix(in srgb, var(--muted) 80%, var(--text) 20%);
}

.landing-generator-form {
  width: min(860px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.landing-generator-label,
.landing-preview-label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--text) 74%, var(--primary-2));
}

.landing-generator-textarea {
  width: 100%;
  min-height: 172px;
  resize: vertical;
  padding: 22px 24px;
  border-radius: 28px;
  border: 1px solid color-mix(in srgb, var(--primary-2) 18%, var(--border));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    rgba(8, 13, 24, 0.88);
  color: var(--text);
  font: inherit;
  font-size: 1.08rem;
  line-height: 1.65;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 18px 40px rgba(2, 6, 23, 0.2);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.landing-generator-textarea::placeholder {
  color: color-mix(in srgb, var(--muted) 90%, var(--text) 10%);
}

.landing-generator-textarea:focus {
  border-color: color-mix(in srgb, var(--primary-2) 54%, var(--primary));
  box-shadow:
    0 0 0 4px rgba(99, 102, 241, 0.14),
    0 22px 44px rgba(8, 15, 34, 0.26);
  transform: translateY(-1px);
}

.landing-generator-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.landing-generator-meta {
  display: grid;
  gap: 8px;
}

.landing-generator-meta p {
  max-width: 52ch;
  color: var(--muted);
}

.landing-generator-submit {
  min-width: 212px;
  min-height: 54px;
  border-radius: 18px;
  padding-inline: 24px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2) 62%, var(--accent));
  box-shadow:
    0 18px 34px rgba(79, 70, 229, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.landing-generator-form.is-loading .landing-generator-submit {
  transform: translateY(-1px);
  box-shadow:
    0 22px 38px rgba(79, 70, 229, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.landing-generator-status,
.landing-generator-error {
  margin: 0;
  min-height: 22px;
  font-size: 0.95rem;
}

.landing-generator-status {
  color: color-mix(in srgb, var(--text) 72%, var(--primary));
}

.landing-generator-error {
  color: #fca5a5;
}

.landing-pricing-shell {
  display: grid;
  gap: 20px;
  padding: clamp(24px, 3vw, 34px);
  border-color: color-mix(in srgb, var(--primary) 20%, var(--border));
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.14), transparent 28%),
    radial-gradient(circle at bottom right, rgba(99, 102, 241, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(8, 13, 26, 0.9), rgba(9, 15, 28, 0.82));
}

.landing-pricing-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
}

.landing-pricing-head h3 {
  margin-bottom: 8px;
}

.landing-pricing-copy {
  max-width: 64ch;
  color: color-mix(in srgb, var(--muted) 82%, var(--text) 18%);
}

.landing-pricing-badges {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.landing-plan-grid {
  gap: 18px;
}

.landing-plan-card h4 {
  margin: 6px 0 0;
  font-size: 1.18rem;
}

.landing-pricing-actions {
  justify-content: center;
}

.landing-preview-shell {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 360ms ease,
    transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
}

.landing-preview-shell.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.landing-preview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 18px;
}

.landing-preview-card,
.landing-locked-card,
.landing-preview-convert {
  border-radius: 28px;
  border: 1px solid color-mix(in srgb, var(--primary-2) 18%, var(--border));
  background:
    linear-gradient(180deg, rgba(17, 24, 39, 0.86), rgba(12, 18, 33, 0.76));
  box-shadow:
    0 22px 48px rgba(2, 6, 23, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.landing-preview-card-main {
  display: grid;
  gap: 22px;
  padding: 28px;
}

.landing-preview-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.landing-preview-live-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(129, 140, 248, 0.22);
  background: rgba(99, 102, 241, 0.12);
  color: color-mix(in srgb, var(--text) 86%, var(--primary-2));
  font-size: 0.88rem;
  font-weight: 600;
}

.landing-preview-block {
  display: grid;
  gap: 10px;
}

.landing-preview-block h3 {
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.08;
}

.landing-preview-hook,
.landing-preview-cta {
  margin: 0;
  color: color-mix(in srgb, var(--text) 88%, white);
  line-height: 1.72;
}

.landing-preview-block-cta {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-preview-outline {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  list-style: none;
}

.landing-preview-outline li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  color: color-mix(in srgb, var(--text) 86%, white);
  line-height: 1.6;
}

.landing-preview-outline-marker {
  color: color-mix(in srgb, var(--primary-2) 76%, var(--accent));
  min-width: 2ch;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.6;
}

.landing-preview-side {
  display: grid;
  gap: 18px;
  align-content: start;
}

.launch-pack-shell {
  display: grid;
  gap: 18px;
  padding-top: 4px;
}

.launch-pack-head {
  align-items: center;
}

.launch-pack-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
}

.launch-pack-panel,
.launch-pack-lock-card {
  display: grid;
  gap: 16px;
  padding: 24px;
  border-radius: 28px;
  border: 1px solid color-mix(in srgb, var(--primary-2) 18%, var(--border));
  background:
    radial-gradient(circle at top left, rgba(99, 102, 241, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(15, 22, 39, 0.88), rgba(10, 16, 29, 0.8));
  box-shadow:
    0 20px 44px rgba(2, 6, 23, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.launch-pack-block {
  display: grid;
  gap: 12px;
}

.launch-pack-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

.launch-pack-list li,
.launch-pack-copy,
.launch-pack-rich-copy {
  color: color-mix(in srgb, var(--text) 88%, white);
  line-height: 1.7;
}

.launch-pack-rich-copy {
  margin: 0;
  white-space: pre-line;
}

.launch-pack-locked-grid {
  display: grid;
  gap: 18px;
}

.launch-pack-lock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.launch-pack-lock-body {
  position: relative;
  min-height: 142px;
  overflow: hidden;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at top left, rgba(99, 102, 241, 0.08), transparent 42%),
    rgba(7, 11, 20, 0.92);
}

.launch-pack-locked-grid:not(.is-unlocked) .launch-pack-rich-copy,
.launch-pack-locked-grid:not(.is-unlocked) .launch-pack-list-captions {
  filter: blur(10px);
  opacity: 0.62;
}

.launch-pack-lock-overlay {
  position: absolute;
  inset: auto 18px 18px 18px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(129, 140, 248, 0.18);
  background: rgba(9, 15, 28, 0.82);
  backdrop-filter: blur(12px);
}

.launch-pack-lock-overlay p,
.landing-preview-convert p {
  color: color-mix(in srgb, var(--muted) 84%, var(--text) 16%);
}

.landing-preview-convert {
  padding: 22px;
  display: grid;
  gap: 14px;
  align-content: start;
}

.landing-unlock-btn {
  min-height: 52px;
  width: 100%;
  justify-content: center;
  border-radius: 18px;
}

.landing-story-stack .help-story-content {
  align-content: center;
}

.landing-story-stack .inline-actions {
  margin-top: 4px;
}

.landing-steps-shell {
  padding: 28px;
}

.share-link-card {
  gap: 16px;
  background:
    radial-gradient(circle at top right, rgba(99, 102, 241, 0.12), transparent 34%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 94%, var(--bg-2) 6%), color-mix(in srgb, var(--bg-2) 92%, var(--surface) 8%));
}

.share-link-toolbar {
  display: grid;
  gap: 14px;
}

.share-link-field {
  display: grid;
  gap: 10px;
}

.share-link-field input {
  width: 100%;
  min-height: 56px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--primary-2) 18%, var(--border));
  background: rgba(8, 13, 24, 0.88);
  color: var(--text);
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.shared-episode-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
  gap: 22px;
  align-items: start;
}

.shared-episode-doc {
  display: grid;
  gap: 28px;
  padding: clamp(28px, 4vw, 44px);
  border-radius: 32px;
  border: 1px solid color-mix(in srgb, var(--primary-2) 18%, var(--border));
  background:
    radial-gradient(circle at top left, rgba(99, 102, 241, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(12, 18, 31, 0.96), rgba(11, 17, 29, 0.92));
  box-shadow:
    0 28px 64px rgba(2, 6, 23, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.shared-episode-hero {
  display: grid;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.shared-episode-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(129, 140, 248, 0.2);
  background: rgba(99, 102, 241, 0.12);
  color: color-mix(in srgb, var(--text) 82%, var(--primary-2));
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shared-episode-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.shared-episode-hook {
  margin: 0;
  max-width: 62ch;
  color: color-mix(in srgb, var(--text) 84%, white);
  font-size: 1.06rem;
  line-height: 1.8;
}

.shared-episode-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
}

.shared-episode-meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary-2) 70%, white 30%);
}

.shared-episode-section,
.shared-launch-pack-shell {
  display: grid;
  gap: 18px;
}

.shared-episode-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.shared-episode-outline {
  margin: 0;
  padding: 0;
  counter-reset: shared-episode-step;
  list-style: none;
  display: grid;
  gap: 16px;
}

.shared-episode-outline li {
  counter-increment: shared-episode-step;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    rgba(7, 11, 20, 0.8);
  color: color-mix(in srgb, var(--text) 88%, white);
  line-height: 1.7;
}

.shared-episode-outline li::before {
  content: counter(shared-episode-step, decimal-leading-zero);
  color: color-mix(in srgb, var(--primary-2) 78%, var(--accent));
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.6;
}

.shared-episode-rail {
  position: sticky;
  top: 96px;
}

.shared-episode-rail-card {
  display: grid;
  gap: 14px;
  padding: 24px;
  border-radius: 28px;
  border: 1px solid color-mix(in srgb, var(--primary-2) 20%, var(--border));
  background:
    radial-gradient(circle at top right, rgba(99, 102, 241, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(13, 20, 34, 0.96), rgba(11, 16, 28, 0.92));
  box-shadow:
    0 22px 46px rgba(2, 6, 23, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.shared-episode-rail-card strong {
  font-size: 1.18rem;
  line-height: 1.3;
}

.shared-episode-rail-card p,
.shared-episode-url {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.shared-episode-url {
  word-break: break-word;
  font-size: 0.92rem;
}

.shared-episode-url span {
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .guides-grid,
  .guide-article-grid,
  .admin-seo-grid,
  .admin-traffic-summary,
  .admin-chart-grid {
    grid-template-columns: 1fr;
  }

  .admin-seo-row {
    grid-template-columns: 1fr;
  }

  .admin-seo-metric {
    text-align: left;
  }

  .admin-bar-chart {
    gap: 6px;
    min-height: 214px;
  }

  .admin-hour-chart {
    gap: 4px;
  }

  .creator-admin-form-grid,
  .creator-admin-metrics {
    grid-template-columns: 1fr;
  }

  .creator-admin-card-head,
  .creator-admin-link-row {
    flex-direction: column;
    align-items: stretch;
  }

  .creator-admin-link-row .btn {
    width: 100%;
  }

  .landing-generator-section {
    padding: 22px 18px;
  }

  .single-quick-start-head,
  .landing-pricing-head {
    grid-template-columns: 1fr;
  }

  .single-quick-start-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .single-quick-start-actions .btn {
    width: 100%;
  }

  .single-advanced-summary {
    align-items: start;
  }

  .landing-generator-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .landing-preview-grid,
  .launch-pack-grid {
    grid-template-columns: 1fr;
  }

  .landing-generator-submit {
    width: 100%;
  }

  .landing-pricing-badges {
    justify-items: start;
  }

  .share-link-toolbar .inline-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .shared-episode-shell {
    grid-template-columns: 1fr;
  }

  .shared-episode-doc {
    padding: 22px 18px;
    border-radius: 26px;
  }

  .shared-episode-rail {
    position: static;
  }
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 40;
  margin: 14px 20px 0;
  padding: 12px 14px;
  display: grid;
  gap: 0;
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, rgba(104, 140, 255, 0.24) 46%, var(--border));
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.12), transparent 30%),
    radial-gradient(circle at top right, rgba(99, 102, 241, 0.12), transparent 28%),
    linear-gradient(135deg, color-mix(in srgb, var(--surface) 86%, transparent), color-mix(in srgb, var(--bg-2) 84%, transparent));
  backdrop-filter: blur(18px);
  box-shadow:
    0 18px 42px rgba(3, 8, 23, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: visible;
}

.topbar::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.05), transparent 28%, transparent 72%, rgba(99, 102, 241, 0.08));
}

.topbar > * {
  position: relative;
  z-index: 1;
}

html[data-theme='light'] .topbar {
  border-color: color-mix(in srgb, rgba(99, 102, 241, 0.22) 42%, var(--border));
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.08), transparent 30%),
    radial-gradient(circle at top right, rgba(99, 102, 241, 0.08), transparent 28%),
    linear-gradient(135deg, color-mix(in srgb, #fff 84%, transparent), color-mix(in srgb, var(--bg-2) 58%, #fff 42%));
  box-shadow:
    0 16px 36px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.topbar-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px 18px;
}

.topbar-intro {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.topbar-title-block {
  display: grid;
  gap: 4px;
}

.topbar-title-block h2 {
  margin: 0;
  font-size: clamp(1.35rem, 1.45vw, 1.76rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.topbar-title-block p {
  margin: 0;
  max-width: 58ch;
  color: color-mix(in srgb, var(--muted) 84%, var(--text) 16%);
  font-size: 0.92rem;
}

.topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.topbar-brand-mark {
  position: relative;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 16px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(104, 140, 255, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(67, 112, 255, 0.08)),
    rgba(9, 14, 27, 0.64);
  box-shadow: 0 14px 32px rgba(4, 10, 26, 0.16);
}

.topbar-brand-mark .brand-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.topbar-brand-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.topbar-brand-copy strong {
  font-size: 1.34rem;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.topbar-brand-copy small {
  color: color-mix(in srgb, var(--muted) 84%, var(--text) 16%);
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.topbar-links-desktop {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.topbar-link {
  min-height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: 14px;
  border: 1px solid transparent;
  color: color-mix(in srgb, var(--muted) 82%, var(--text) 18%);
  font-size: 0.92rem;
  font-weight: 620;
  transition:
    transform 160ms ease,
    color 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.topbar-link:hover {
  color: var(--text);
  border-color: color-mix(in srgb, rgba(104, 140, 255, 0.18) 46%, var(--border));
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}

.topbar-quick-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

.topbar .btn,
.topbar-user,
.topbar-menu-toggle {
  min-height: 40px;
}

.topbar-language {
  position: relative;
  z-index: 4;
}

.topbar-language-trigger {
  min-height: 40px;
  padding: 0 10px 0 9px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid color-mix(in srgb, rgba(104, 140, 255, 0.16) 42%, var(--border));
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 68%, transparent);
  color: var(--text);
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.topbar-language-trigger:hover,
.topbar-language.is-open .topbar-language-trigger {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--primary-2) 28%, var(--border));
  background: color-mix(in srgb, var(--surface) 78%, var(--bg-2) 22%);
}

.topbar-language-trigger:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--primary-2) 78%, white 22%);
  outline-offset: 2px;
}

.topbar-language-flag {
  font-size: 1rem;
  line-height: 1;
}

.topbar-language-code {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: color-mix(in srgb, var(--text) 90%, var(--muted) 10%);
}

.topbar-language-caret {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.72;
}

.topbar-language-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 20;
  min-width: 204px;
  padding: 10px;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, rgba(104, 140, 255, 0.18) 42%, var(--border));
  background:
    linear-gradient(180deg, rgba(13, 20, 37, 0.96), rgba(8, 13, 24, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 18px 44px rgba(0, 0, 0, 0.34);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 160ms ease, transform 180ms ease;
}

.topbar-language-panel.is-open {
  opacity: 1;
  transform: translateY(0);
}

.topbar-language-heading {
  margin: 0 0 8px;
  padding: 0 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--muted) 84%, var(--text) 16%);
}

.topbar-language-form {
  margin: 0;
}

.topbar-language-option {
  width: 100%;
  min-height: 48px;
  padding: 0 10px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 15px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.topbar-language-option:hover {
  transform: translateY(-1px);
  background: color-mix(in srgb, var(--surface) 84%, transparent);
}

.topbar-language-option.is-active {
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 14%, transparent), color-mix(in srgb, var(--primary-2) 12%, transparent));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary-2) 24%, var(--border));
}

.topbar-language-option-flag {
  font-size: 1.05rem;
  line-height: 1;
}

.topbar-language-option-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.topbar-language-option-copy strong {
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--text);
}

.topbar-language-option-copy small {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: color-mix(in srgb, var(--muted) 86%, var(--text) 14%);
}

.topbar-language-check {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent);
}

.topbar-primary-cta {
  padding-inline: 16px;
  border-radius: 15px;
  box-shadow:
    0 14px 26px rgba(79, 70, 229, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.topbar-cta-label--compact {
  display: none;
}

.topbar-plan-chip {
  min-height: 38px;
  padding: 0 12px;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 700;
  background: color-mix(in srgb, var(--bg-2) 68%, transparent);
  border-color: color-mix(in srgb, rgba(104, 140, 255, 0.18) 38%, var(--border));
}

.topbar-user {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 3px 12px 3px 3px;
  min-width: 0;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, rgba(104, 140, 255, 0.14) 34%, var(--border));
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  color: var(--text);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.topbar-user:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--primary) 42%, var(--border));
  background: color-mix(in srgb, var(--surface) 80%, var(--bg-2) 20%);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}

.topbar-user-copy {
  min-width: 0;
}

.topbar-user-name {
  display: block;
  max-width: 15ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--text);
}

.topbar-avatar,
.topbar-menu-avatar,
.topbar-panel-user-avatar {
  overflow: hidden;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #eef2ff;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

.topbar-avatar {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, rgba(255, 255, 255, 0.16) 42%, var(--border));
  box-shadow: 0 10px 18px color-mix(in srgb, var(--primary) 16%, transparent);
}

.topbar-avatar img,
.topbar-menu-avatar img,
.topbar-panel-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topbar-logout-form,
.topbar-panel-form {
  margin: 0;
}

.topbar-logout-btn {
  border-radius: 14px;
}

.topbar-menu-toggle {
  display: none;
  min-width: 42px;
  padding: 0 8px;
  border: 1px solid color-mix(in srgb, rgba(104, 140, 255, 0.16) 42%, var(--border));
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 74%, transparent);
  color: var(--text);
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
  gap: 0;
}

.topbar-menu-toggle:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--primary-2) 32%, var(--border));
  background: color-mix(in srgb, var(--surface) 82%, var(--bg-2) 18%);
}

.topbar-menu-avatar {
  width: 26px;
  height: 26px;
  margin-right: 4px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.72rem;
}

.topbar-menu-icon {
  position: relative;
  width: 16px;
  height: 12px;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
}

.topbar-menu-line {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
  transition: transform 180ms ease, opacity 180ms ease;
}

.topbar-menu-toggle.is-active .topbar-menu-line:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.topbar-menu-toggle.is-active .topbar-menu-line:nth-child(2) {
  opacity: 0;
}

.topbar-menu-toggle.is-active .topbar-menu-line:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.topbar-mobile-panel {
  display: none;
}

.topbar-panel-user {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 4px 2px 2px;
}

.topbar-panel-user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.88rem;
}

.topbar-panel-user-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.topbar-panel-user-copy strong,
.topbar-panel-user-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-panel-user-copy strong {
  color: var(--text);
  font-size: 0.98rem;
}

.topbar-panel-user-copy small {
  color: var(--muted);
  font-size: 0.82rem;
}

.topbar-plan-chip--panel {
  align-self: flex-start;
}

.topbar-panel-links {
  display: grid;
  gap: 8px;
}

.topbar-panel-link {
  min-height: 44px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, rgba(104, 140, 255, 0.12) 36%, var(--border));
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 620;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.topbar-panel-link:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--primary) 34%, var(--border));
  background: color-mix(in srgb, var(--surface) 84%, var(--bg-2) 16%);
  box-shadow: 0 12px 20px rgba(15, 23, 42, 0.12);
}

.topbar-panel-action {
  width: 100%;
  min-height: 42px;
  justify-content: center;
  border-radius: 15px;
}

@media (max-width: 1280px) {
  .topbar {
    margin-inline: 18px;
    padding: 11px 12px;
  }

  .topbar-main {
    gap: 12px 14px;
  }

  .topbar--app .topbar-right,
  .topbar--app .topbar-links-desktop,
  .topbar--app .topbar-quick-actions {
    gap: 7px;
  }

  .topbar--app .topbar-link,
  .topbar--app .topbar-primary-cta,
  .topbar-language-trigger,
  .topbar-logout-btn {
    font-size: 0.9rem;
  }

  .topbar-brand-copy strong {
    font-size: 1.24rem;
  }
}

@media (max-width: 1120px) {
  .topbar {
    top: 10px;
    margin: 12px 16px 0;
    padding: 10px 12px;
    border-radius: 20px;
  }

  .topbar-main {
    gap: 10px 12px;
  }

  .topbar-links-desktop {
    display: none;
  }

  .topbar-quick-actions {
    gap: 6px;
  }

  .topbar-language-trigger {
    min-width: 40px;
    padding: 0 9px;
    border-radius: 13px;
  }

  .topbar-primary-cta {
    min-height: 38px;
    padding-inline: 14px;
    border-radius: 13px;
  }

  .topbar-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .topbar-mobile-panel {
    display: grid;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid color-mix(in srgb, rgba(104, 140, 255, 0.14) 32%, var(--border));
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 220ms ease;
  }

  .topbar-mobile-panel[hidden] {
    display: none;
  }

  .topbar-mobile-panel.is-open {
    display: grid;
    gap: 10px;
    opacity: 1;
    transform: translateY(0);
  }

  .topbar-brand-copy small {
    max-width: 26ch;
  }
}

@media (max-width: 720px) {
  .topbar {
    top: 8px;
    margin: 10px 12px 0;
    padding: 9px 10px;
    border-radius: 18px;
  }

  .topbar-brand {
    gap: 10px;
  }

  .topbar-brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }

  .topbar-brand-mark .brand-logo {
    width: 24px;
    height: 24px;
  }

  .topbar-brand-copy strong {
    font-size: 1.08rem;
  }

  .topbar-brand-copy small,
  .topbar-title-block p {
    display: none;
  }

  .topbar-title-block h2 {
    font-size: clamp(1.05rem, 5vw, 1.28rem);
  }

  .topbar-primary-cta {
    min-height: 36px;
    padding-inline: 12px;
    box-shadow:
      0 10px 20px rgba(79, 70, 229, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.14);
  }

  .topbar-cta-label--full {
    display: none;
  }

  .topbar-cta-label--compact {
    display: inline;
  }

  .topbar-language-trigger,
  .topbar-menu-toggle {
    min-height: 38px;
    border-radius: 12px;
  }

  .topbar-menu-avatar {
    width: 24px;
    height: 24px;
    border-radius: 9px;
    margin-right: 3px;
    font-size: 0.68rem;
  }

  .topbar-menu-toggle {
    min-width: 38px;
    padding-inline: 6px;
  }

  .topbar-language-code,
  .topbar-language-caret {
    display: none;
  }

  .topbar-language-trigger {
    min-width: 38px;
    justify-content: center;
    padding-inline: 0;
  }

  .topbar-language-panel {
    right: 0;
    min-width: 190px;
  }

  .topbar-panel-user {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .topbar-plan-chip--panel {
    grid-column: 1 / -1;
    justify-self: flex-start;
  }
}

@media (min-width: 1121px) {
  .topbar-mobile-panel {
    display: none !important;
  }
}

.landing-preview-growth-grid,
.idea-tool-save-grid,
.studio-growth-grid,
.share-growth-grid,
.proof-snippet-grid,
.example-preview-grid,
.template-proof-grid {
  display: grid;
  gap: 18px;
}

.landing-preview-growth-grid,
.idea-tool-save-grid,
.share-growth-grid,
.proof-snippet-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.studio-growth-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.95fr);
  margin-bottom: 20px;
}

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

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

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

.landing-proof-shell,
.landing-examples-shell,
.billing-proof-shell,
.example-library-proof,
.example-library-section {
  margin-top: 22px;
}

.landing-preview-growth-card,
.proof-snippet-card,
.example-preview-card,
.template-proof-card,
.share-growth-card,
.referral-growth-card,
.activation-checklist-card {
  position: relative;
  overflow: hidden;
}

.landing-preview-growth-card::before,
.proof-snippet-card::before,
.example-preview-card::before,
.template-proof-card::before,
.share-growth-card::before,
.referral-growth-card::before,
.activation-checklist-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(92, 97, 248, 0.18), transparent 70%);
  pointer-events: none;
}

.landing-preview-save-form,
.landing-preview-save-row {
  display: flex;
  gap: 12px;
}

.landing-preview-save-form {
  flex-direction: column;
  margin-top: 14px;
}

.landing-preview-save-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(225, 229, 255, 0.82);
}

.landing-preview-save-row input,
.share-link-field input {
  flex: 1;
}

.landing-preview-save-row input {
  min-height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(126, 141, 255, 0.18);
  background: rgba(14, 21, 40, 0.72);
  color: var(--text);
  padding: 0 16px;
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.landing-preview-save-row input:focus-visible {
  outline: 2px solid rgba(129, 140, 248, 0.8);
  outline-offset: 2px;
}

.landing-preview-save-status {
  margin: 6px 0 0;
  font-size: 0.88rem;
  color: rgba(197, 214, 255, 0.9);
}

.landing-preview-save-status.is-error {
  color: #ff9ba9;
}

.proof-snippet-card,
.template-proof-card,
.example-preview-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.proof-snippet-card h3,
.template-proof-card h3,
.example-preview-card h3 {
  margin: 0;
}

.proof-snippet-card p,
.template-proof-card p,
.example-preview-card p {
  margin: 0;
  color: rgba(209, 216, 255, 0.74);
}

.example-preview-head,
.template-proof-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.example-preview-template,
.template-proof-bestfor {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(154, 167, 255, 0.72);
}

.example-preview-hook {
  font-size: 0.98rem;
  line-height: 1.7;
}

.example-preview-outline {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: rgba(230, 235, 255, 0.86);
}

.example-preview-outline li {
  line-height: 1.6;
}

.example-preview-launch {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(11, 17, 32, 0.72);
  border: 1px solid rgba(126, 141, 255, 0.12);
}

.example-preview-launch-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(146, 163, 255, 0.82);
}

.example-preview-launch-titles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 12px;
}

.example-preview-launch-titles span,
.template-proof-labels li {
  display: inline-flex;
  align-items: center;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(86, 98, 227, 0.12);
  border: 1px solid rgba(126, 141, 255, 0.18);
  color: rgba(234, 239, 255, 0.88);
  font-size: 0.82rem;
}

.template-proof-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.activation-progress-bar {
  position: relative;
  height: 10px;
  margin: 8px 0 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.activation-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(74, 124, 255, 0.92), rgba(120, 95, 255, 0.92));
  box-shadow: 0 0 24px rgba(94, 103, 255, 0.35);
}

.activation-checklist-steps {
  display: grid;
  gap: 12px;
}

.activation-checklist-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(126, 141, 255, 0.12);
  background: rgba(12, 18, 34, 0.72);
}

.activation-checklist-step.is-complete {
  border-color: rgba(95, 207, 161, 0.24);
  background: rgba(12, 23, 28, 0.72);
}

.activation-checklist-index {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(86, 98, 227, 0.16);
  color: rgba(232, 236, 255, 0.9);
  font-size: 0.84rem;
  font-weight: 700;
}

.activation-checklist-copy {
  min-width: 0;
}

.activation-checklist-copy strong {
  display: block;
  margin-bottom: 6px;
}

.activation-checklist-copy p {
  margin: 0;
  color: rgba(204, 212, 255, 0.72);
}

.referral-growth-card p,
.share-growth-card p {
  color: rgba(209, 216, 255, 0.76);
  line-height: 1.7;
}

.referral-growth-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.referral-growth-stats article {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(11, 17, 32, 0.72);
  border: 1px solid rgba(126, 141, 255, 0.12);
}

.referral-growth-stats strong {
  display: block;
  margin-top: 8px;
  font-size: 1.2rem;
}

.share-growth-grid {
  margin-top: 18px;
}

.share-growth-grid > :only-child {
  grid-column: 1 / -1;
}

.share-growth-card {
  padding: 18px;
}

.auth-referral-note {
  margin: 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(86, 98, 227, 0.1);
  border: 1px solid rgba(126, 141, 255, 0.16);
}

.example-library-shell .tool-hero,
.example-library-shell .example-library-section,
.example-library-shell .example-library-proof {
  margin-top: 22px;
}

.billing-proof-shell .example-preview-grid,
.landing-examples-shell .example-preview-grid {
  margin-top: 0;
}

@media (max-width: 1180px) {
  .example-preview-grid,
  .template-proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .studio-growth-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .landing-preview-growth-grid,
  .idea-tool-save-grid,
  .share-growth-grid,
  .proof-snippet-grid,
  .example-preview-grid,
  .example-preview-grid-compact,
  .template-proof-grid,
  .referral-growth-stats {
    grid-template-columns: 1fr;
  }

  .activation-checklist-step {
    grid-template-columns: auto 1fr;
  }

  .activation-checklist-step .btn {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 720px) {
  .landing-preview-save-row {
    flex-direction: column;
  }

  .landing-preview-save-row .btn,
  .share-growth-card .inline-actions .btn,
  .proof-snippet-card .btn,
  .example-preview-card .inline-actions .btn,
  .template-proof-card .inline-actions .btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .landing-momentum-strip {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .landing-momentum-card {
    gap: 12px;
    padding: 18px 16px;
    border-radius: 20px;
  }

  .landing-momentum-meta {
    gap: 10px;
  }

  .landing-momentum-card h3 {
    font-size: 1.1rem;
    line-height: 1.1;
  }

  .landing-momentum-card p {
    font-size: 0.94rem;
    line-height: 1.58;
  }

  .landing-momentum-tag {
    padding: 6px 10px;
    font-size: 0.72rem;
    white-space: nowrap;
  }
}

/* Premium Shell Refresh */

:root {
  --vp-shell-bg: #070c16;
  --vp-surface-0: rgba(9, 14, 27, 0.92);
  --vp-surface-1: rgba(12, 18, 34, 0.9);
  --vp-surface-2: rgba(16, 24, 44, 0.92);
  --vp-surface-3: rgba(20, 30, 52, 0.94);
  --vp-border-soft: rgba(139, 164, 255, 0.12);
  --vp-border-strong: rgba(139, 164, 255, 0.2);
  --vp-text-strong: #f3f7ff;
  --vp-text-body: rgba(225, 232, 255, 0.78);
  --vp-text-muted: rgba(176, 189, 230, 0.58);
  --vp-accent-a: #4f7dff;
  --vp-accent-b: #775fff;
  --vp-shell-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  --vp-card-shadow: 0 18px 48px rgba(2, 6, 23, 0.32);
  --vp-radius-shell: 28px;
  --vp-radius-card: 24px;
  --vp-radius-button: 16px;
  --vp-radius-chip: 14px;
  --vp-space-1: 4px;
  --vp-space-2: 8px;
  --vp-space-3: 12px;
  --vp-space-4: 16px;
  --vp-space-5: 20px;
  --vp-space-6: 24px;
  --vp-space-7: 32px;
}

html[data-theme="light"] {
  --vp-shell-bg: #eef4ff;
  --vp-surface-0: rgba(255, 255, 255, 0.92);
  --vp-surface-1: rgba(255, 255, 255, 0.96);
  --vp-surface-2: rgba(246, 249, 255, 0.98);
  --vp-surface-3: rgba(237, 243, 255, 0.98);
  --vp-border-soft: rgba(96, 123, 255, 0.12);
  --vp-border-strong: rgba(96, 123, 255, 0.2);
  --vp-text-strong: #0f172a;
  --vp-text-body: rgba(30, 41, 59, 0.78);
  --vp-text-muted: rgba(71, 85, 105, 0.72);
  --vp-shell-shadow: 0 28px 80px rgba(15, 23, 42, 0.08);
  --vp-card-shadow: 0 18px 48px rgba(15, 23, 42, 0.06);
}

html,
body {
  background:
    radial-gradient(circle at top left, rgba(74, 115, 255, 0.12), transparent 34%),
    radial-gradient(circle at top right, rgba(125, 93, 255, 0.1), transparent 32%),
    linear-gradient(180deg, #09101d 0%, #060b14 100%);
}

.app-body {
  color: var(--vp-text-strong);
}

.app-body:not(.app-body-public) {
  background:
    radial-gradient(circle at top left, rgba(74, 115, 255, 0.08), transparent 30%),
    radial-gradient(circle at top right, rgba(125, 93, 255, 0.06), transparent 28%),
    linear-gradient(180deg, #070c16 0%, #050913 100%);
}

.app-body:not(.app-body-public) .app-shell {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  min-height: 100svh;
  gap: 0;
}

.app-body:not(.app-body-public) .app-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.app-body:not(.app-body-public) .content-wrap {
  width: 100%;
  max-width: none;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.app-body:not(.app-body-public) .app-main > .site-footer {
  margin: 0 24px 24px;
}

.app-body:not(.app-body-public) .card {
  border-radius: var(--vp-radius-card);
  border: 1px solid var(--vp-border-soft);
  background:
    linear-gradient(180deg, rgba(18, 26, 47, 0.92), rgba(11, 17, 31, 0.95)),
    rgba(12, 18, 34, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.02),
    var(--vp-card-shadow);
}

.app-body:not(.app-body-public) .card:hover {
  border-color: rgba(139, 164, 255, 0.16);
}

.app-body:not(.app-body-public) h1,
.app-body:not(.app-body-public) h2,
.app-body:not(.app-body-public) h3,
.app-body:not(.app-body-public) h4 {
  color: var(--vp-text-strong);
  letter-spacing: -0.02em;
}

.app-body:not(.app-body-public) p,
.app-body:not(.app-body-public) li,
.app-body:not(.app-body-public) label,
.app-body:not(.app-body-public) .mini-note {
  color: var(--vp-text-body);
}

.app-body:not(.app-body-public) .mini-label,
.app-body:not(.app-body-public) small {
  color: var(--vp-text-muted);
}

.app-body .btn {
  min-height: 46px;
  padding: 0 18px;
  border-radius: var(--vp-radius-button);
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.app-body .btn:hover {
  transform: translateY(-1px);
}

.app-body .btn:active {
  transform: translateY(0) scale(0.985);
}

.app-body .btn:focus-visible {
  outline: 2px solid rgba(131, 145, 255, 0.88);
  outline-offset: 2px;
}

.app-body .btn-primary {
  color: #ffffff;
  border-color: rgba(122, 142, 255, 0.26);
  background:
    linear-gradient(135deg, rgba(78, 120, 255, 1), rgba(123, 91, 255, 0.96));
  box-shadow:
    0 16px 30px rgba(72, 91, 255, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.app-body .btn-primary:hover {
  box-shadow:
    0 20px 38px rgba(72, 91, 255, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.app-body .btn-secondary {
  color: var(--vp-text-strong);
  border-color: rgba(135, 152, 218, 0.16);
  background:
    linear-gradient(180deg, rgba(20, 28, 47, 0.92), rgba(12, 18, 33, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.app-body .btn-ghost,
.app-body .btn-tertiary {
  color: rgba(225, 232, 255, 0.72);
  border-color: rgba(135, 152, 218, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.app-body .btn-ghost:hover,
.app-body .btn-tertiary:hover {
  color: var(--vp-text-strong);
  border-color: rgba(135, 152, 218, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

.sidebar-shell {
  position: relative;
  min-height: 100svh;
  padding: 24px 0 24px 24px;
}

.sidebar-backdrop {
  display: none;
}

.sidebar-panel {
  position: sticky;
  top: 24px;
  height: calc(100svh - 48px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-radius: var(--vp-radius-shell);
  border: 1px solid rgba(139, 164, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(10, 16, 29, 0.96), rgba(8, 12, 23, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.02),
    18px 0 60px rgba(0, 0, 0, 0.16);
}

.sidebar-panel-main,
.sidebar-panel-bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-mobile-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-mobile-section-label {
  display: none;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(176, 189, 230, 0.5);
}

.sidebar-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.sidebar-brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(139, 164, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(17, 25, 46, 0.96), rgba(10, 16, 31, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 12px 28px rgba(8, 15, 34, 0.24);
}

.sidebar-brand-mark .brand-logo {
  width: 24px;
  height: 24px;
}

.sidebar-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.sidebar-brand-copy strong {
  font-size: 1.55rem;
  line-height: 1;
}

.sidebar-brand-copy small {
  max-width: 18ch;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--vp-text-muted);
}

.sidebar-close {
  display: none;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(139, 164, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--vp-text-strong);
}

.sidebar-close span {
  position: absolute;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.sidebar-close span:first-child {
  transform: rotate(45deg);
}

.sidebar-close span:last-child {
  transform: rotate(-45deg);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-link {
  position: relative;
  min-height: 50px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 16px;
  color: rgba(215, 224, 255, 0.66);
  text-decoration: none;
  border: 1px solid transparent;
  background: transparent;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.nav-link:hover {
  transform: translateY(-1px);
  color: var(--vp-text-strong);
  background: rgba(255, 255, 255, 0.03);
}

.nav-link.active {
  color: var(--vp-text-strong);
  border-color: rgba(129, 150, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(21, 31, 56, 0.92), rgba(13, 20, 39, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 14px 28px rgba(7, 12, 24, 0.18);
}

.nav-link-accent {
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 999px;
  opacity: 0;
  background: linear-gradient(180deg, var(--vp-accent-a), var(--vp-accent-b));
  box-shadow: 0 0 12px rgba(96, 111, 255, 0.4);
  transition: opacity 180ms ease;
}

.nav-link.active .nav-link-accent {
  opacity: 1;
}

.nav-icon {
  width: 18px;
  display: inline-flex;
  justify-content: center;
  font-size: 0.95rem;
  opacity: 0.82;
}

.nav-label {
  font-weight: 500;
}

.sidebar-user-card,
.upgrade-card {
  border-radius: 20px;
  border: 1px solid rgba(139, 164, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(15, 22, 40, 0.92), rgba(10, 15, 28, 0.98));
}

.sidebar-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  text-decoration: none;
  color: inherit;
}

.sidebar-user-card:hover {
  border-color: rgba(139, 164, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
}

.sidebar-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(78, 120, 255, 0.88), rgba(117, 95, 255, 0.84));
  color: #ffffff;
  font-weight: 700;
  font-size: 0.82rem;
  overflow: hidden;
}

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

.sidebar-user-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-user-meta strong,
.sidebar-user-meta small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-user-meta strong {
  font-size: 0.94rem;
}

.sidebar-user-meta small {
  color: var(--vp-text-muted);
}

.upgrade-card {
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.upgrade-card::before {
  content: "";
  position: absolute;
  inset: -40px auto auto -30px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(88, 119, 255, 0.18), transparent 68%);
  pointer-events: none;
}

.upgrade-card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}

.upgrade-card p {
  margin: 0 0 14px;
  color: var(--vp-text-muted);
  line-height: 1.55;
}

.upgrade-card .btn {
  width: 100%;
}

.topbar--app {
  position: sticky;
  top: 24px;
  z-index: 30;
  margin: 24px 24px 0 0;
  padding: 16px 20px;
  min-height: 78px;
  border-radius: 24px;
  border: 1px solid rgba(139, 164, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(13, 20, 37, 0.9), rgba(8, 14, 28, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 18px 38px rgba(3, 7, 18, 0.28);
  backdrop-filter: blur(18px);
}

.topbar--app .topbar-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.topbar--app .topbar-intro {
  min-width: 0;
}

.topbar--app .topbar-title-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.topbar--app .topbar-title-block h2 {
  margin: 0;
  font-size: clamp(1.42rem, 2vw, 1.85rem);
  line-height: 1;
}

.topbar--app .topbar-title-block p {
  margin: 0;
  color: var(--vp-text-muted);
  line-height: 1.45;
}

.topbar--app .topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar--app .topbar-links-desktop {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar--app .topbar-link {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  color: rgba(218, 226, 255, 0.68);
  text-decoration: none;
  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.topbar--app .topbar-link:hover {
  color: var(--vp-text-strong);
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(-1px);
}

.topbar--app .topbar-quick-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar--app .topbar-plan-chip {
  padding: 0 12px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border-radius: 14px;
  border: 1px solid rgba(139, 164, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(224, 231, 255, 0.74);
  font-size: 0.78rem;
  white-space: nowrap;
}

.topbar--app .topbar-theme-toggle {
  min-width: 42px;
  padding-inline: 12px;
}

.topbar--app .topbar-theme-toggle .theme-toggle-label {
  font-size: 0.82rem;
}

.topbar--app .topbar-primary-cta {
  min-width: 136px;
}

.topbar-account {
  position: relative;
  z-index: 5;
}

.topbar-account-trigger {
  min-height: 44px;
  padding: 4px 10px 4px 6px;
  border-radius: 16px;
  border: 1px solid rgba(139, 164, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--vp-text-strong);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.topbar-account-trigger:hover,
.topbar-account.is-open .topbar-account-trigger {
  transform: translateY(-1px);
  border-color: rgba(139, 164, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
}

.topbar-account-trigger:focus-visible {
  outline: 2px solid rgba(131, 145, 255, 0.88);
  outline-offset: 2px;
}

.topbar-account-avatar {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(82, 123, 255, 0.88), rgba(117, 95, 255, 0.82));
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
}

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

.topbar-account-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  line-height: 1.15;
}

.topbar-account-copy strong {
  font-size: 0.92rem;
}

.topbar-account-copy small {
  color: var(--vp-text-muted);
  font-size: 0.72rem;
}

.topbar-account-mobile-menu {
  display: none;
  width: 14px;
  flex-direction: column;
  gap: 4px;
}

.topbar-account-mobile-menu span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.76;
}

.topbar-account-caret {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.74;
}

.topbar-account-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 20;
  min-width: 210px;
  padding: 10px;
  border-radius: 20px;
  border: 1px solid rgba(139, 164, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(13, 20, 37, 0.96), rgba(8, 13, 24, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 18px 44px rgba(0, 0, 0, 0.36);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 160ms ease, transform 180ms ease;
}

.topbar-account-panel.is-open {
  opacity: 1;
  transform: translateY(0);
}

.topbar-account-link,
.topbar-account-logout {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: rgba(227, 234, 255, 0.76);
  text-decoration: none;
  font: inherit;
  transition: background 160ms ease, color 160ms ease;
}

.topbar-account-link:hover,
.topbar-account-logout:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--vp-text-strong);
}

.topbar-account-form {
  margin: 0;
}

.topbar--app .topbar-menu-toggle,
.topbar--app .topbar-mobile-panel {
  display: none;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.section-head h3 {
  margin: 0;
  font-size: 1.18rem;
}

.studio-hero-card {
  padding: 24px;
}

.studio-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.78fr);
  gap: 20px;
  align-items: stretch;
}

.studio-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.studio-hero-kicker {
  width: fit-content;
}

.studio-hero-copy h3 {
  margin: 0;
  font-size: clamp(1.65rem, 2.2vw, 2.2rem);
  line-height: 1.05;
}

.studio-hero-copy p {
  margin: 0;
  max-width: 58ch;
  color: var(--vp-text-body);
}

.studio-hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
}

.studio-hero-side {
  display: grid;
  gap: 12px;
}

.studio-hero-stat {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(139, 164, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
}

.studio-hero-stat strong {
  display: block;
  margin-top: 8px;
  font-size: 1.05rem;
}

.studio-hero-settings {
  justify-self: flex-start;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stat-card {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(139, 164, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(15, 22, 40, 0.88), rgba(10, 15, 28, 0.96));
}

.stat-card p {
  margin: 0 0 10px;
  color: var(--vp-text-muted);
}

.stat-card h3 {
  margin: 0 0 6px;
  font-size: 1.8rem;
}

.stat-card-link {
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.stat-card-link:hover {
  transform: translateY(-1px);
  border-color: rgba(139, 164, 255, 0.16);
}

.active-stat-card {
  border-color: rgba(106, 128, 255, 0.22);
  box-shadow: 0 16px 36px rgba(4, 9, 20, 0.24);
}

.activation-checklist-card,
.referral-growth-card,
.share-growth-card {
  padding: 22px;
}

.help-chat-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
}

.help-chat-toggle {
  width: 52px;
  height: 52px;
  min-height: 52px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 18px;
  border: 1px solid rgba(128, 145, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(87, 110, 255, 0.92), rgba(104, 86, 255, 0.88));
  color: #ffffff;
  box-shadow:
    0 14px 32px rgba(53, 74, 196, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.help-chat-toggle-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.help-chat-toggle-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.help-chat-toggle-label {
  font-size: 0.88rem;
  font-weight: 600;
}

.help-chat-toggle-label--compact {
  display: none;
}

.help-chat-panel {
  border-radius: 22px;
  border: 1px solid rgba(139, 164, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(13, 20, 37, 0.96), rgba(8, 13, 24, 0.98));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

.site-footer {
  border-radius: 24px;
  border: 1px solid rgba(139, 164, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(11, 16, 28, 0.82), rgba(7, 10, 19, 0.94));
}

html[data-theme="light"],
html[data-theme="light"] body {
  background:
    radial-gradient(circle at top left, rgba(74, 115, 255, 0.09), transparent 34%),
    radial-gradient(circle at top right, rgba(125, 93, 255, 0.08), transparent 32%),
    linear-gradient(180deg, #f8fbff 0%, #edf3ff 100%);
}

html[data-theme="light"] .app-body:not(.app-body-public) {
  background:
    radial-gradient(circle at top left, rgba(74, 115, 255, 0.07), transparent 28%),
    radial-gradient(circle at top right, rgba(125, 93, 255, 0.06), transparent 26%),
    linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
}

html[data-theme="light"] .app-body:not(.app-body-public) .card {
  border-color: var(--vp-border-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(245, 248, 255, 0.98)),
    rgba(255, 255, 255, 0.98);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    var(--vp-card-shadow);
}

html[data-theme="light"] .app-body .btn-secondary {
  color: var(--vp-text-strong);
  border-color: var(--vp-border-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(242, 246, 255, 0.98));
  box-shadow:
    0 10px 24px rgba(15, 23, 42, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

html[data-theme="light"] .app-body .btn-ghost,
html[data-theme="light"] .app-body .btn-tertiary {
  color: var(--vp-text-body);
  border-color: rgba(96, 123, 255, 0.1);
  background: rgba(255, 255, 255, 0.66);
}

html[data-theme="light"] .app-body .btn-ghost:hover,
html[data-theme="light"] .app-body .btn-tertiary:hover {
  color: var(--vp-text-strong);
  border-color: rgba(96, 123, 255, 0.16);
  background: rgba(255, 255, 255, 0.92);
}

html[data-theme="light"] .sidebar-panel {
  border-color: var(--vp-border-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 255, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    18px 0 60px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .sidebar-brand-mark {
  border-color: var(--vp-border-soft);
  background:
    linear-gradient(180deg, rgba(249, 251, 255, 0.98), rgba(237, 243, 255, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 12px 28px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .sidebar-mobile-section-label {
  color: rgba(71, 85, 105, 0.56);
}

html[data-theme="light"] .nav-link {
  color: rgba(30, 41, 59, 0.72);
}

html[data-theme="light"] .nav-link:hover {
  color: var(--vp-text-strong);
  background: rgba(96, 123, 255, 0.08);
}

html[data-theme="light"] .nav-link.active {
  border-color: rgba(96, 123, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(239, 244, 255, 0.98), rgba(231, 238, 255, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 14px 28px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .sidebar-user-card,
html[data-theme="light"] .upgrade-card {
  border-color: var(--vp-border-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(245, 248, 255, 0.98));
}

html[data-theme="light"] .sidebar-user-card:hover {
  background: rgba(255, 255, 255, 0.98);
}

html[data-theme="light"] .topbar--app {
  border-color: var(--vp-border-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(243, 247, 255, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 18px 38px rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .topbar--app .topbar-link {
  color: rgba(30, 41, 59, 0.72);
}

html[data-theme="light"] .topbar--app .topbar-link:hover {
  color: var(--vp-text-strong);
  background: rgba(96, 123, 255, 0.08);
}

html[data-theme="light"] .topbar--app .topbar-plan-chip,
html[data-theme="light"] .topbar-language-trigger,
html[data-theme="light"] .topbar-account-trigger {
  border-color: rgba(96, 123, 255, 0.12);
  background: rgba(255, 255, 255, 0.76);
  color: var(--vp-text-strong);
}

html[data-theme="light"] .topbar-account-trigger:hover,
html[data-theme="light"] .topbar-account.is-open .topbar-account-trigger {
  border-color: rgba(96, 123, 255, 0.18);
  background: rgba(96, 123, 255, 0.08);
}

html[data-theme="light"] .topbar-account-panel {
  border-color: var(--vp-border-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 255, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 18px 44px rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .topbar-language-panel {
  border-color: var(--vp-border-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 255, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 18px 44px rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .topbar-language-heading,
html[data-theme="light"] .topbar-language-option-copy small {
  color: rgba(71, 85, 105, 0.7);
}

html[data-theme="light"] .topbar-language-option:hover {
  background: rgba(96, 123, 255, 0.08);
}

html[data-theme="light"] .topbar-language-option.is-active {
  background: linear-gradient(180deg, rgba(237, 243, 255, 0.96), rgba(228, 236, 255, 0.98));
  box-shadow: inset 0 0 0 1px rgba(96, 123, 255, 0.14);
}

html[data-theme="light"] .topbar-account-link,
html[data-theme="light"] .topbar-account-logout {
  color: var(--vp-text-body);
}

html[data-theme="light"] .topbar-account-link:hover,
html[data-theme="light"] .topbar-account-logout:hover {
  background: rgba(96, 123, 255, 0.08);
  color: var(--vp-text-strong);
}

html[data-theme="light"] .studio-hero-stat,
html[data-theme="light"] .stat-card,
html[data-theme="light"] .activation-checklist-step,
html[data-theme="light"] .referral-growth-stats article {
  border-color: var(--vp-border-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(244, 248, 255, 0.96));
}

html[data-theme="light"] .activation-checklist-step.is-complete {
  border-color: rgba(34, 197, 94, 0.2);
  background:
    linear-gradient(180deg, rgba(240, 253, 244, 0.96), rgba(232, 249, 238, 0.98));
}

html[data-theme="light"] .activation-progress-bar {
  background: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .help-chat-panel {
  border-color: var(--vp-border-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 255, 0.98));
  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

html[data-theme="light"] .admin-bar-chart-track,
html[data-theme="light"] .admin-hour-chart-track {
  border-color: var(--vp-border-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(244, 248, 255, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

html[data-theme="light"] .site-footer {
  border-color: rgba(96, 123, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(243, 247, 255, 0.96));
}

html[data-theme="light"] .tool-hero,
html[data-theme="light"] .landing-generator-section,
html[data-theme="light"] .landing-pricing-shell,
html[data-theme="light"] .landing-momentum-card,
html[data-theme="light"] .shared-episode-doc,
html[data-theme="light"] .shared-episode-rail-card,
html[data-theme="light"] .landing-preview-card,
html[data-theme="light"] .landing-locked-card,
html[data-theme="light"] .landing-preview-convert,
html[data-theme="light"] .launch-pack-panel,
html[data-theme="light"] .launch-pack-lock-card,
html[data-theme="light"] .help-visual-panel,
html[data-theme="light"] .help-faq-item {
  border-color: var(--vp-border-soft);
  box-shadow:
    0 22px 50px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

html[data-theme="light"] .tool-hero,
html[data-theme="light"] .landing-generator-section,
html[data-theme="light"] .landing-pricing-shell,
html[data-theme="light"] .landing-momentum-card {
  background:
    radial-gradient(circle at top right, rgba(99, 102, 241, 0.12), transparent 26%),
    radial-gradient(circle at left top, rgba(59, 130, 246, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(243, 247, 255, 0.98));
}

html[data-theme="light"] .single-quick-start-card,
html[data-theme="light"] .single-advanced-section,
html[data-theme="light"] .single-advanced-summary::after {
  border-color: rgba(96, 123, 255, 0.14);
}

html[data-theme="light"] .single-quick-start-card,
html[data-theme="light"] .single-advanced-section {
  background:
    radial-gradient(circle at top right, rgba(99, 102, 241, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 247, 255, 0.98));
}

html[data-theme="light"] .single-advanced-summary::after {
  background: rgba(96, 123, 255, 0.08);
}

html[data-theme="light"] .landing-generator-textarea,
html[data-theme="light"] .share-link-field input,
html[data-theme="light"] .landing-preview-save-row input,
html[data-theme="light"] .idea-tool-form-row input {
  border-color: rgba(96, 123, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 255, 0.98));
  color: var(--vp-text-strong);
  box-shadow:
    0 10px 28px rgba(15, 23, 42, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

html[data-theme="light"] .landing-generator-textarea::placeholder,
html[data-theme="light"] .landing-preview-save-row input::placeholder,
html[data-theme="light"] .idea-tool-form-row input::placeholder {
  color: rgba(71, 85, 105, 0.56);
}

html[data-theme="light"] .landing-preview-card,
html[data-theme="light"] .landing-locked-card,
html[data-theme="light"] .landing-preview-convert {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 255, 0.98));
}

html[data-theme="light"] .launch-pack-panel,
html[data-theme="light"] .launch-pack-lock-card {
  background:
    radial-gradient(circle at top left, rgba(99, 102, 241, 0.08), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 255, 0.98));
}

html[data-theme="light"] .launch-pack-lock-body,
html[data-theme="light"] .shared-episode-outline li,
html[data-theme="light"] .example-preview-launch,
html[data-theme="light"] .referral-growth-stats article,
html[data-theme="light"] .activation-checklist-step {
  border-color: rgba(96, 123, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(241, 246, 255, 0.98));
}

html[data-theme="light"] .launch-pack-lock-overlay {
  border-color: rgba(96, 123, 255, 0.16);
  background: rgba(255, 255, 255, 0.82);
}

html[data-theme="light"] .shared-episode-doc {
  background:
    radial-gradient(circle at top left, rgba(99, 102, 241, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(244, 248, 255, 0.99));
}

html[data-theme="light"] .shared-episode-hero {
  border-bottom-color: rgba(96, 123, 255, 0.1);
}

html[data-theme="light"] .shared-episode-rail-card {
  background:
    radial-gradient(circle at top right, rgba(99, 102, 241, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(243, 247, 255, 0.99));
}

html[data-theme="light"] .help-hero {
  background:
    radial-gradient(circle at top right, rgba(86, 116, 255, 0.14), transparent 38%),
    radial-gradient(circle at bottom left, rgba(255, 128, 76, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(243, 247, 255, 0.98));
}

html[data-theme="light"] .help-hero::before {
  background:
    linear-gradient(90deg, rgba(96, 123, 255, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(96, 123, 255, 0.05) 1px, transparent 1px);
}

html[data-theme="light"] .help-hero-note,
html[data-theme="light"] .help-mic-shell,
html[data-theme="light"] .auth-referral-note {
  border-color: rgba(96, 123, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(244, 248, 255, 0.96));
  box-shadow:
    0 14px 34px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

html[data-theme="light"] .hero-model-fallback-logo-dark {
  display: none;
}

html[data-theme="light"] .hero-model-fallback-logo-light {
  display: block;
}

html[data-theme="light"] .help-visual-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(243, 247, 255, 0.99));
}

html[data-theme="light"] .help-story-index,
html[data-theme="light"] .shared-episode-kicker,
html[data-theme="light"] .landing-preview-live-pill,
html[data-theme="light"] .example-preview-launch-titles span,
html[data-theme="light"] .landing-momentum-tag,
html[data-theme="light"] .template-proof-labels li {
  border-color: rgba(96, 123, 255, 0.18);
  background: rgba(96, 123, 255, 0.1);
  color: rgba(37, 55, 120, 0.9);
}

html[data-theme="light"] .landing-preview-hook,
html[data-theme="light"] .landing-preview-cta,
html[data-theme="light"] .landing-preview-outline li,
html[data-theme="light"] .launch-pack-list li,
html[data-theme="light"] .launch-pack-copy,
html[data-theme="light"] .launch-pack-rich-copy,
html[data-theme="light"] .shared-episode-hook,
html[data-theme="light"] .shared-episode-outline li,
html[data-theme="light"] .help-hero-lead,
html[data-theme="light"] .help-story-lead {
  color: rgba(30, 41, 59, 0.82);
}

html[data-theme="light"] .landing-preview-block-cta,
html[data-theme="light"] .shared-episode-hero {
  border-color: rgba(96, 123, 255, 0.1);
}

html[data-theme="light"] .launch-pack-lock-overlay p,
html[data-theme="light"] .landing-preview-convert p,
html[data-theme="light"] .help-hero-note,
html[data-theme="light"] .proof-snippet-card p,
html[data-theme="light"] .template-proof-card p,
html[data-theme="light"] .example-preview-card p,
html[data-theme="light"] .referral-growth-card p,
html[data-theme="light"] .share-growth-card p,
html[data-theme="light"] .activation-checklist-copy p,
html[data-theme="light"] .landing-preview-save-status,
html[data-theme="light"] .shared-episode-rail-card p,
html[data-theme="light"] .shared-episode-url,
html[data-theme="light"] .help-faq-item p {
  color: rgba(71, 85, 105, 0.82);
}

html[data-theme="light"] .proof-snippet-card,
html[data-theme="light"] .template-proof-card,
html[data-theme="light"] .example-preview-card,
html[data-theme="light"] .landing-preview-growth-card,
html[data-theme="light"] .share-growth-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 255, 0.98));
}

html[data-theme="light"] .example-preview-template,
html[data-theme="light"] .template-proof-bestfor,
html[data-theme="light"] .example-preview-launch-label {
  color: rgba(67, 89, 177, 0.78);
}

html[data-theme="light"] .example-preview-outline,
html[data-theme="light"] .shared-episode-meta,
html[data-theme="light"] .topbar-brand-copy small {
  color: rgba(71, 85, 105, 0.78);
}

html[data-theme="light"] .help-faq-item summary,
html[data-theme="light"] .about-visual-panel strong,
html[data-theme="light"] .shared-episode-url span {
  color: var(--vp-text-strong);
}

html[data-theme="light"] .shared-episode-meta-dot {
  background: rgba(96, 123, 255, 0.72);
}

.about-page-shell {
  gap: 24px;
}

.about-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 28px;
  padding: clamp(28px, 4vw, 42px);
  border-radius: 32px;
  border: 1px solid color-mix(in srgb, var(--primary-2) 18%, var(--border));
  background:
    radial-gradient(circle at 18% 18%, rgba(59, 130, 246, 0.16), transparent 26%),
    radial-gradient(circle at 82% 18%, rgba(120, 95, 255, 0.18), transparent 28%),
    radial-gradient(circle at 76% 78%, rgba(255, 129, 72, 0.12), transparent 32%),
    linear-gradient(145deg, color-mix(in srgb, var(--surface) 94%, var(--bg) 6%), color-mix(in srgb, var(--bg-2) 92%, var(--surface) 8%));
  box-shadow:
    0 32px 80px rgba(2, 6, 23, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.about-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(96, 123, 255, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(96, 123, 255, 0.05) 1px, transparent 1px);
  background-size: 84px 84px;
  mask: radial-gradient(circle at 70% 40%, #000 0, #000 48%, transparent 90%);
  pointer-events: none;
  opacity: 0.72;
}

.about-hero {
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  align-items: center;
}

.about-hero-copy,
.about-hero-visual {
  position: relative;
  z-index: 1;
}

.about-hero-copy {
  display: grid;
  gap: 18px;
}

.about-hero-copy h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(3.1rem, 6vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.about-hero-lead {
  margin: 0;
  max-width: 62ch;
  font-size: 1.05rem;
  line-height: 1.8;
  color: color-mix(in srgb, var(--muted) 82%, var(--text) 18%);
}

.about-hero-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.about-hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.about-hero-proof span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--primary-2) 18%, var(--border));
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  color: color-mix(in srgb, var(--text) 82%, white 18%);
  font-size: 0.9rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.about-hero-visual {
  min-height: 560px;
  display: grid;
  place-items: center;
}

.about-orb,
.about-grid-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.about-orb {
  filter: blur(18px);
  animation: about-float 9s ease-in-out infinite;
}

.about-orb-a {
  width: 250px;
  height: 250px;
  top: 62px;
  right: 34px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.4), rgba(99, 102, 241, 0.08) 58%, transparent 74%);
}

.about-orb-b {
  width: 200px;
  height: 200px;
  bottom: 92px;
  left: 22px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.28), rgba(59, 130, 246, 0.06) 58%, transparent 74%);
  animation-delay: -3s;
}

.about-orb-c {
  width: 140px;
  height: 140px;
  top: 222px;
  left: 88px;
  background: radial-gradient(circle, rgba(255, 129, 72, 0.22), rgba(255, 129, 72, 0.04) 58%, transparent 74%);
  animation-delay: -5.6s;
}

.about-grid-glow {
  inset: 10% 8%;
  border: 1px solid rgba(120, 136, 255, 0.14);
  border-radius: 28px;
  background:
    linear-gradient(90deg, rgba(96, 123, 255, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(96, 123, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.7;
}

.about-command-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  display: grid;
  gap: 18px;
  padding: 24px;
  border-radius: 30px;
  border: 1px solid color-mix(in srgb, var(--primary-2) 18%, var(--border));
  background:
    linear-gradient(180deg, rgba(11, 18, 34, 0.9), rgba(8, 13, 24, 0.96));
  box-shadow:
    0 26px 62px rgba(2, 6, 23, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px);
}

.about-command-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.about-command-status {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(120, 136, 255, 0.2);
  background: rgba(96, 123, 255, 0.12);
  color: color-mix(in srgb, var(--text) 84%, var(--primary-2));
  font-size: 0.82rem;
  font-weight: 600;
}

.about-command-core {
  position: relative;
  min-height: 280px;
  display: grid;
  place-items: center;
}

.about-command-node {
  position: absolute;
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  border-radius: 22px;
  border: 1px solid rgba(120, 136, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(9, 15, 28, 0.78);
  box-shadow:
    0 18px 38px rgba(2, 6, 23, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.about-command-node strong {
  font-size: 1.02rem;
  line-height: 1.2;
}

.about-command-node-center {
  position: relative;
  width: 120px;
  height: 120px;
  padding: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.12), transparent 48%),
    radial-gradient(circle at 50% 50%, rgba(14, 22, 40, 0.94), rgba(8, 12, 23, 0.98));
}

.about-command-node-center .brand-logo {
  width: 52px;
  height: 52px;
  position: relative;
  z-index: 1;
}

.about-command-node-ring {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px solid rgba(120, 136, 255, 0.18);
  animation: about-pulse-ring 4.2s ease-out infinite;
}

.about-command-node-idea {
  left: 0;
  top: 16px;
}

.about-command-node-structure {
  right: 2px;
  top: 34px;
}

.about-command-node-launch {
  right: 40px;
  bottom: 12px;
}

.about-command-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, rgba(96, 123, 255, 0.12), rgba(120, 95, 255, 0.44), rgba(96, 123, 255, 0.12));
  transform-origin: left center;
}

.about-command-line-a {
  width: 116px;
  left: 94px;
  top: 96px;
  transform: rotate(-22deg);
}

.about-command-line-b {
  width: 106px;
  left: 214px;
  top: 108px;
  transform: rotate(18deg);
}

.about-command-line-c {
  width: 118px;
  left: 212px;
  top: 180px;
  transform: rotate(72deg);
}

.about-command-feed {
  display: grid;
  gap: 10px;
}

.about-command-feed article {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(120, 136, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.about-command-feed strong {
  font-size: 0.96rem;
  line-height: 1.3;
}

.about-surface-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.about-surface-card {
  display: grid;
  gap: 12px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.about-surface-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(92, 97, 248, 0.16), transparent 72%);
  pointer-events: none;
}

.about-surface-card h2 {
  margin: 0;
  font-size: 1.38rem;
  line-height: 1.12;
}

.about-surface-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.72;
}

.about-workflow {
  padding: 28px;
  display: grid;
  gap: 20px;
}

.about-workflow-head {
  align-items: flex-start;
}

.about-workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.about-workflow-step {
  display: grid;
  gap: 12px;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--primary-2) 16%, var(--border));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    rgba(9, 15, 29, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 16px 34px rgba(2, 6, 23, 0.16);
}

.about-workflow-step-label {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(120, 136, 255, 0.18);
  background: rgba(96, 123, 255, 0.1);
  color: color-mix(in srgb, var(--text) 86%, var(--primary-2));
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-workflow-step h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.25;
}

.about-workflow-step p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.72;
}

.about-manifesto-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.about-manifesto-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  padding: 24px;
  align-items: start;
}

.about-manifesto-index {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(120, 136, 255, 0.18);
  background: rgba(96, 123, 255, 0.1);
  color: color-mix(in srgb, var(--text) 88%, var(--primary-2));
  font-weight: 800;
  letter-spacing: 0.08em;
}

.about-manifesto-copy {
  display: grid;
  gap: 10px;
}

.about-manifesto-copy h3 {
  margin: 0;
  font-size: 1.3rem;
}

.about-manifesto-copy p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.76;
}

.about-closing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 28px;
  overflow: hidden;
  position: relative;
}

.about-closing::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(96, 123, 255, 0.12), transparent 28%),
    radial-gradient(circle at bottom left, rgba(255, 129, 72, 0.08), transparent 32%);
  pointer-events: none;
}

.about-closing-copy,
.about-closing-actions {
  position: relative;
  z-index: 1;
}

.about-closing-copy {
  display: grid;
  gap: 10px;
}

.about-closing-copy h2 {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1;
}

.about-closing-copy p {
  margin: 0;
  max-width: 62ch;
  color: var(--text-soft);
  line-height: 1.76;
}

.about-closing-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

@keyframes about-float {
  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes about-pulse-ring {
  0% {
    opacity: 0.24;
    transform: scale(0.92);
  }

  60% {
    opacity: 0.08;
  }

  100% {
    opacity: 0;
    transform: scale(1.18);
  }
}

html[data-theme="light"] .about-hero {
  background:
    radial-gradient(circle at 18% 18%, rgba(59, 130, 246, 0.1), transparent 26%),
    radial-gradient(circle at 82% 18%, rgba(120, 95, 255, 0.12), transparent 28%),
    radial-gradient(circle at 76% 78%, rgba(255, 129, 72, 0.08), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(243, 247, 255, 0.99));
  box-shadow:
    0 32px 80px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

html[data-theme="light"] .about-hero::before {
  background:
    linear-gradient(90deg, rgba(96, 123, 255, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(96, 123, 255, 0.04) 1px, transparent 1px);
}

html[data-theme="light"] .about-hero-lead,
html[data-theme="light"] .about-surface-card p,
html[data-theme="light"] .about-workflow-step p,
html[data-theme="light"] .about-manifesto-copy p,
html[data-theme="light"] .about-closing-copy p {
  color: rgba(71, 85, 105, 0.82);
}

html[data-theme="light"] .about-hero-proof span,
html[data-theme="light"] .about-surface-card,
html[data-theme="light"] .about-workflow-step,
html[data-theme="light"] .about-manifesto-card,
html[data-theme="light"] .about-closing {
  border-color: rgba(96, 123, 255, 0.14);
}

html[data-theme="light"] .about-hero-proof span,
html[data-theme="light"] .about-surface-card,
html[data-theme="light"] .about-workflow-step,
html[data-theme="light"] .about-manifesto-card,
html[data-theme="light"] .about-closing,
html[data-theme="light"] .about-command-panel,
html[data-theme="light"] .about-command-node,
html[data-theme="light"] .about-command-feed article {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(244, 248, 255, 0.98));
  box-shadow:
    0 18px 42px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

html[data-theme="light"] .about-command-status,
html[data-theme="light"] .about-workflow-step-label,
html[data-theme="light"] .about-manifesto-index {
  border-color: rgba(96, 123, 255, 0.18);
  background: rgba(96, 123, 255, 0.1);
  color: rgba(37, 55, 120, 0.9);
}

html[data-theme="light"] .about-command-node-center {
  background:
    radial-gradient(circle at 50% 45%, rgba(96, 123, 255, 0.08), transparent 48%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.98), rgba(240, 245, 255, 0.98));
}

@media (max-width: 1080px) {
  .about-hero {
    grid-template-columns: 1fr;
  }

  .about-hero-copy h1 {
    max-width: none;
  }

  .about-hero-visual {
    min-height: 480px;
  }

  .about-surface-grid,
  .about-workflow-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .about-manifesto-grid {
    grid-template-columns: 1fr;
  }

  .about-closing {
    grid-template-columns: 1fr;
  }

  .about-closing-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .about-hero {
    padding: 22px 18px;
    border-radius: 26px;
  }

  .about-hero-visual {
    min-height: 420px;
  }

  .about-command-panel {
    width: 100%;
    padding: 18px;
    border-radius: 24px;
  }

  .about-command-core {
    min-height: 250px;
  }

  .about-command-node {
    padding: 12px 14px;
  }

  .about-command-node strong {
    font-size: 0.94rem;
  }

  .about-command-node-center {
    width: 96px;
    height: 96px;
  }

  .about-command-node-center .brand-logo {
    width: 42px;
    height: 42px;
  }

  .about-command-node-idea {
    left: 0;
    top: 20px;
  }

  .about-command-node-structure {
    right: 0;
    top: 36px;
  }

  .about-command-node-launch {
    right: 18px;
    bottom: 14px;
  }

  .about-command-line-a {
    width: 84px;
    left: 78px;
    top: 92px;
  }

  .about-command-line-b {
    width: 78px;
    left: 160px;
    top: 103px;
  }

  .about-command-line-c {
    width: 92px;
    left: 160px;
    top: 162px;
  }

  .about-surface-card,
  .about-workflow,
  .about-manifesto-card,
  .about-closing {
    padding: 20px;
  }

  .about-manifesto-card {
    grid-template-columns: 1fr;
  }

  .about-closing-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-orb,
  .about-command-node-ring {
    animation: none !important;
  }
}

@media (max-width: 1180px) {
  .app-body:not(.app-body-public) .app-shell {
    grid-template-columns: 102px minmax(0, 1fr);
  }

  .sidebar-shell {
    padding-right: 0;
  }

  .sidebar-panel {
    padding-inline: 12px;
    gap: 14px;
  }

  .sidebar-brand {
    justify-content: center;
  }

  .sidebar-brand-copy,
  .nav-label,
  .sidebar-user-meta small,
  .upgrade-card p {
    display: none;
  }

  .sidebar-brand-copy strong,
  .sidebar-user-meta strong {
    display: none;
  }

  .nav-link {
    justify-content: center;
    padding-inline: 0;
  }

  .nav-link-accent {
    left: 8px;
  }

  .sidebar-user-card,
  .upgrade-card {
    padding-inline: 12px;
    justify-content: center;
  }

  .upgrade-card h3 {
    text-align: center;
    font-size: 0.88rem;
  }

  .upgrade-card .btn {
    min-width: 0;
    padding-inline: 12px;
  }

  .topbar--app .topbar-plan-chip {
    display: none;
  }
}

@media (max-width: 860px) {
  .app-body.app-drawer-open {
    overflow: hidden;
  }

  .app-body:not(.app-body-public) .app-shell {
    display: block;
  }

  .sidebar-shell {
    position: fixed;
    inset: 0;
    z-index: 60;
    pointer-events: none;
    padding: 0;
  }

  .sidebar-backdrop {
    position: absolute;
    inset: 0;
    display: block;
    background: rgba(5, 9, 19, 0.56);
    opacity: 0;
    transition: opacity 180ms ease;
  }

  .sidebar-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: min(82vw, 304px);
    height: 100svh;
    padding: 14px 14px 16px;
    gap: 14px;
    border-radius: 0 24px 24px 0;
    transform: translateX(-104%);
    transition: transform 220ms ease;
  }

  .sidebar-shell.is-open {
    pointer-events: auto;
  }

  .sidebar-shell.is-open .sidebar-backdrop {
    opacity: 1;
  }

  .sidebar-shell.is-open .sidebar-panel {
    transform: translateX(0);
  }

  .sidebar-brand {
    justify-content: flex-start;
    gap: 10px;
  }

  .sidebar-panel-main,
  .sidebar-panel-bottom {
    gap: 12px;
  }

  .sidebar-panel-head {
    align-items: center;
  }

  .sidebar-brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 14px;
  }

  .sidebar-brand-mark .brand-logo {
    width: 20px;
    height: 20px;
  }

  .sidebar-brand-copy,
  .nav-label,
  .sidebar-user-meta small,
  .upgrade-card p,
  .sidebar-user-meta strong {
    display: initial;
  }

  .sidebar-brand-copy {
    display: flex;
    gap: 2px;
  }

  .sidebar-brand-copy strong,
  .sidebar-brand-copy small {
    display: block;
  }

  .sidebar-brand-copy strong {
    font-size: 1.12rem;
  }

  .sidebar-brand-copy small {
    max-width: 16ch;
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .sidebar-mobile-section-label {
    display: block;
  }

  .nav-link {
    justify-content: flex-start;
    min-height: 44px;
    padding-inline: 14px;
    gap: 10px;
    border-radius: 14px;
  }

  .nav-link-accent {
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 2px;
    box-shadow: 0 0 10px rgba(96, 111, 255, 0.32);
  }

  .nav-icon {
    width: 16px;
    font-size: 0.86rem;
  }

  .sidebar-user-card,
  .upgrade-card {
    justify-content: flex-start;
    padding-inline: 12px;
    border-radius: 18px;
  }

  .sidebar-user-card {
    padding-block: 10px;
    gap: 10px;
  }

  .sidebar-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    font-size: 0.76rem;
  }

  .sidebar-user-meta strong {
    font-size: 0.88rem;
  }

  .sidebar-user-meta small {
    font-size: 0.72rem;
  }

  .upgrade-card {
    padding: 14px 12px;
  }

  .upgrade-card h3 {
    margin-bottom: 6px;
    font-size: 0.92rem;
  }

  .upgrade-card p {
    margin-bottom: 12px;
    line-height: 1.4;
  }

  .upgrade-card .btn {
    width: auto;
    min-height: 38px;
    padding-inline: 14px;
  }

  .sidebar-close {
    position: relative;
    display: inline-flex;
  }

  .topbar--app {
    top: 12px;
    margin: 12px 12px 0;
    padding: 10px 10px 10px 12px;
    min-height: 56px;
    border-radius: 18px;
  }

  .topbar--app .topbar-main {
    gap: 10px;
  }

  .app-body:not(.app-body-public) .content-wrap {
    padding: 14px 12px 18px;
    gap: 14px;
  }

  .app-body:not(.app-body-public) .app-main > .site-footer {
    margin: 0 12px 16px;
  }

  .topbar--app .topbar-title-block p,
  .topbar-account-copy small,
  .topbar-account-copy strong,
  .topbar-account-caret {
    display: none;
  }

  .topbar-language-code,
  .topbar-cta-label--full {
    display: none;
  }

  .topbar-cta-label--compact {
    display: inline;
  }

  .topbar-language-trigger,
  .topbar-account-trigger,
  .topbar-primary-cta {
    min-height: 38px;
    border-radius: 12px;
  }

  .topbar-language-trigger {
    min-width: 38px;
    width: 38px;
    padding-inline: 0;
  }

  .topbar-primary-cta {
    min-width: 0;
    padding-inline: 12px;
    font-size: 0.86rem;
  }

  .topbar-account-trigger {
    gap: 6px;
    padding: 3px 6px 3px 3px;
  }

  .topbar-account-avatar {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    font-size: 0.72rem;
  }

  .topbar-account-mobile-menu {
    display: inline-flex;
  }

  .topbar-account-panel {
    display: none !important;
  }

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

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

  .studio-hero-card,
  .activation-checklist-card,
  .referral-growth-card,
  .share-growth-card {
    padding: 16px;
  }

  .studio-hero-copy {
    gap: 10px;
  }

  .studio-hero-copy h3 {
    font-size: 1.34rem;
  }

  .studio-hero-copy p {
    max-width: none;
    font-size: 0.92rem;
  }

  .studio-hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  .studio-hero-actions .btn-primary {
    grid-column: 1 / -1;
  }

  .studio-hero-actions .btn-ghost {
    display: none;
  }

  .studio-hero-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .studio-hero-stat {
    padding: 12px 14px;
    border-radius: 16px;
  }

  .studio-hero-stat strong {
    margin-top: 6px;
    font-size: 0.96rem;
  }

  .studio-hero-settings {
    grid-column: 1 / -1;
  }

  .section-head {
    gap: 10px;
    align-items: flex-start;
  }

  .section-head h3 {
    font-size: 1.05rem;
  }

  .activation-progress-bar {
    margin: 4px 0 14px;
  }

  .activation-checklist-steps {
    gap: 10px;
  }

  .activation-checklist-step {
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
  }

  .activation-checklist-index {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    font-size: 0.76rem;
  }

  .activation-checklist-copy strong {
    margin-bottom: 4px;
    font-size: 0.94rem;
  }

  .activation-checklist-copy p,
  .referral-growth-card p {
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .referral-growth-stats article {
    padding: 12px 14px;
    border-radius: 14px;
  }

  .referral-growth-stats strong {
    font-size: 1.02rem;
  }

  .stat-card {
    min-height: 98px;
    padding: 14px;
    border-radius: 18px;
  }

  .stat-card h3 {
    font-size: 1.45rem;
  }

  .stat-card p {
    margin-bottom: 8px;
    font-size: 0.78rem;
  }

  .list-item {
    padding: 10px 12px;
    gap: 8px;
    border-radius: 16px;
  }

  .studio-recent-item {
    min-height: 64px;
    max-height: none;
  }

  .studio-filter-bar {
    gap: 6px;
  }

  .studio-filter-chip {
    min-height: 30px;
    padding-inline: 11px;
  }

  .help-chat-widget {
    right: 12px;
    bottom: 12px;
  }

  .help-chat-toggle {
    width: 46px;
    height: 46px;
    min-height: 46px;
    padding: 0;
    gap: 0;
    border-radius: 16px;
    box-shadow:
      0 10px 24px rgba(53, 74, 196, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.14);
  }

  .help-chat-toggle-icon {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 560px) {
  .app-body .btn {
    min-height: 40px;
    padding-inline: 12px;
    border-radius: 12px;
  }

  .topbar--app .topbar-right {
    gap: 6px;
  }

  .topbar--app .topbar-title-block h2 {
    max-width: 13ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1.04rem;
  }

  .topbar-primary-cta {
    padding-inline: 10px;
    font-size: 0.82rem;
  }

  .sidebar-panel {
    width: min(88vw, 292px);
    padding: 12px 12px 14px;
  }

  .sidebar-brand-copy small {
    display: none;
  }

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

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

  .section-head > .mini-label,
  .section-head > .btn {
    align-self: flex-start;
  }

  .studio-hero-card,
  .activation-checklist-card,
  .referral-growth-card,
  .share-growth-card,
  .app-body:not(.app-body-public) .card {
    gap: 10px;
  }

  .studio-hero-actions {
    grid-template-columns: 1fr;
  }

  .studio-hero-side {
    grid-template-columns: 1fr;
  }

  .referral-growth-card .inline-actions .btn-ghost,
  .studio-recent-item .inline-actions .mini-label {
    display: none;
  }

  .help-chat-toggle-label {
    font-size: 0.76rem;
  }
}

.auth-shell-error {
  width: min(1180px, 100%);
}

.error-shell {
  display: grid;
  gap: 18px;
}

.error-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 42px);
  border-radius: 32px;
  border: 1px solid color-mix(in srgb, var(--primary-2) 20%, var(--border));
  background:
    radial-gradient(circle at 18% 16%, rgba(59, 130, 246, 0.16), transparent 24%),
    radial-gradient(circle at 80% 24%, rgba(99, 102, 241, 0.18), transparent 28%),
    radial-gradient(circle at 70% 70%, rgba(255, 121, 74, 0.12), transparent 30%),
    linear-gradient(145deg, color-mix(in srgb, var(--surface) 94%, var(--bg) 6%), color-mix(in srgb, var(--bg-2) 94%, var(--surface) 6%));
  box-shadow:
    0 30px 72px rgba(2, 6, 23, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.error-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(96, 123, 255, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(96, 123, 255, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask: radial-gradient(circle at 68% 42%, #000 0, #000 42%, transparent 88%);
  pointer-events: none;
  opacity: 0.7;
}

.error-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 28px;
  align-items: center;
}

.error-copy {
  display: grid;
  gap: 18px;
  align-content: center;
}

.error-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--primary) 32%, var(--border));
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: color-mix(in srgb, var(--text) 88%, var(--primary-2));
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.error-copy h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(3rem, 6vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.error-lead {
  margin: 0;
  max-width: 58ch;
  font-size: 1.03rem;
  line-height: 1.8;
  color: color-mix(in srgb, var(--muted) 82%, var(--text) 18%);
}

.error-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.error-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--primary-2) 22%, var(--border));
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  color: color-mix(in srgb, var(--text) 82%, white 18%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.error-meta-chip strong,
.error-meta-chip code {
  color: var(--text);
}

.error-meta-chip code {
  max-width: 28ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.error-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.error-support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 4px;
}

.error-support-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid color-mix(in srgb, var(--primary-2) 16%, var(--border));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    rgba(9, 15, 29, 0.56);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 14px 30px rgba(2, 6, 23, 0.16);
}

.error-support-card strong {
  font-size: 1.02rem;
  line-height: 1.35;
}

.error-support-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.error-visual {
  position: relative;
  min-height: 560px;
  display: grid;
  align-items: center;
  justify-items: center;
}

.error-orb,
.error-grid-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.error-orb {
  filter: blur(16px);
  animation: error-float 9s ease-in-out infinite;
}

.error-orb-a {
  width: 260px;
  height: 260px;
  top: 72px;
  right: 48px;
  background: radial-gradient(circle, rgba(88, 122, 255, 0.42), rgba(88, 122, 255, 0.08) 58%, transparent 74%);
}

.error-orb-b {
  width: 180px;
  height: 180px;
  bottom: 104px;
  left: 26px;
  background: radial-gradient(circle, rgba(255, 131, 79, 0.28), rgba(255, 131, 79, 0.06) 56%, transparent 74%);
  animation-delay: -2.8s;
}

.error-orb-c {
  width: 140px;
  height: 140px;
  top: 214px;
  left: 82px;
  background: radial-gradient(circle, rgba(120, 95, 255, 0.24), rgba(120, 95, 255, 0.04) 56%, transparent 74%);
  animation-delay: -5.2s;
}

.error-grid-glow {
  inset: 12% 10%;
  border: 1px solid rgba(120, 136, 255, 0.14);
  background:
    linear-gradient(90deg, rgba(96, 123, 255, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(96, 123, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  border-radius: 28px;
  opacity: 0.7;
  mask: linear-gradient(180deg, rgba(0, 0, 0, 0.92), transparent 92%);
}

.error-code-cluster {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  gap: clamp(10px, 2vw, 22px);
}

.error-code-digit {
  position: relative;
  font-size: clamp(6.4rem, 13vw, 10rem);
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.08em;
  color: rgba(243, 247, 255, 0.88);
  text-shadow:
    0 0 26px rgba(99, 102, 241, 0.14),
    0 0 54px rgba(59, 130, 246, 0.08);
  animation: error-glitch 3.6s ease-in-out infinite;
}

.error-code-digit:last-child {
  animation-delay: -1.8s;
}

.error-signal-core {
  position: relative;
  width: clamp(132px, 20vw, 182px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.14), transparent 48%),
    radial-gradient(circle at 50% 50%, rgba(14, 22, 40, 0.92), rgba(8, 12, 23, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 20px 50px rgba(2, 6, 23, 0.32);
}

.error-signal-core::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 1px solid rgba(120, 136, 255, 0.12);
}

.error-signal-ring,
.error-signal-scan {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.error-signal-ring {
  inset: 0;
  border: 1px solid rgba(120, 136, 255, 0.24);
  animation: error-pulse-ring 4.2s ease-out infinite;
}

.error-signal-ring-b {
  inset: -14px;
  border-color: rgba(120, 136, 255, 0.16);
  animation-delay: -1.4s;
}

.error-signal-ring-c {
  inset: -28px;
  border-color: rgba(255, 131, 79, 0.14);
  animation-delay: -2.6s;
}

.error-signal-scan {
  inset: 12px;
  background: conic-gradient(from 0deg, transparent 0deg 300deg, rgba(96, 123, 255, 0.28) 344deg 360deg);
  animation: error-spin 6s linear infinite;
  opacity: 0.9;
}

.error-signal-logo {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
}

.error-wave-panel {
  position: absolute;
  right: 14px;
  bottom: 26px;
  z-index: 1;
  width: min(100%, 310px);
  display: grid;
  gap: 12px;
  padding: 18px 18px 16px;
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--primary-2) 18%, var(--border));
  background:
    linear-gradient(180deg, rgba(13, 20, 38, 0.88), rgba(8, 14, 28, 0.94));
  box-shadow:
    0 20px 44px rgba(2, 6, 23, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px);
}

.error-wave-bars {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  gap: 6px;
  min-height: 92px;
}

.error-wave-bars span {
  display: block;
  width: 100%;
  min-height: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(110, 136, 255, 0.96), rgba(120, 95, 255, 0.42));
  box-shadow: 0 0 18px rgba(88, 110, 255, 0.18);
  animation: error-wave 1.8s ease-in-out infinite;
  animation-delay: calc(var(--bar-index) * -0.11s);
}

.error-wave-panel p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.error-debug-card {
  padding: 0;
  border-radius: 22px;
  border: 1px solid color-mix(in srgb, var(--border) 86%, rgba(255, 255, 255, 0.06));
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  overflow: hidden;
}

.error-debug-card summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 20px;
  font-weight: 700;
}

.error-debug-card summary::-webkit-details-marker {
  display: none;
}

.error-stack {
  margin: 0;
  padding: 0 20px 20px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--text-soft);
}

@keyframes error-float {
  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes error-glitch {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
    text-shadow:
      0 0 26px rgba(99, 102, 241, 0.14),
      0 0 54px rgba(59, 130, 246, 0.08);
  }

  18% {
    transform: translate3d(1px, -1px, 0);
  }

  19% {
    transform: translate3d(-2px, 1px, 0);
    text-shadow:
      -3px 0 rgba(56, 189, 248, 0.22),
      3px 0 rgba(167, 139, 250, 0.18),
      0 0 32px rgba(99, 102, 241, 0.18);
  }

  21% {
    transform: translate3d(0, 0, 0);
  }

  62% {
    transform: translate3d(-1px, 1px, 0);
  }

  63% {
    transform: translate3d(2px, -1px, 0);
    text-shadow:
      -2px 0 rgba(251, 146, 60, 0.16),
      2px 0 rgba(96, 165, 250, 0.18),
      0 0 34px rgba(99, 102, 241, 0.16);
  }

  65% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes error-pulse-ring {
  0% {
    opacity: 0.24;
    transform: scale(0.92);
  }

  60% {
    opacity: 0.08;
  }

  100% {
    opacity: 0;
    transform: scale(1.16);
  }
}

@keyframes error-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes error-wave {
  0%,
  100% {
    height: 22px;
    opacity: 0.6;
  }

  50% {
    height: calc(28px + ((var(--bar-index) + 1) * 5px));
    opacity: 1;
  }
}

html[data-theme="light"] .error-hero {
  background:
    radial-gradient(circle at 18% 16%, rgba(59, 130, 246, 0.1), transparent 24%),
    radial-gradient(circle at 80% 24%, rgba(99, 102, 241, 0.12), transparent 28%),
    radial-gradient(circle at 70% 70%, rgba(255, 121, 74, 0.08), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(242, 247, 255, 0.99));
  box-shadow:
    0 30px 72px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

html[data-theme="light"] .error-kicker,
html[data-theme="light"] .error-meta-chip,
html[data-theme="light"] .error-support-card,
html[data-theme="light"] .error-wave-panel,
html[data-theme="light"] .error-debug-card {
  border-color: rgba(96, 123, 255, 0.14);
}

html[data-theme="light"] .error-meta-chip,
html[data-theme="light"] .error-support-card,
html[data-theme="light"] .error-debug-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 248, 255, 0.98));
  box-shadow:
    0 16px 36px rgba(15, 23, 42, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

html[data-theme="light"] .error-lead,
html[data-theme="light"] .error-support-card p,
html[data-theme="light"] .error-wave-panel p,
html[data-theme="light"] .error-stack {
  color: rgba(71, 85, 105, 0.84);
}

html[data-theme="light"] .error-code-digit {
  color: rgba(15, 23, 42, 0.88);
  text-shadow:
    0 0 18px rgba(96, 123, 255, 0.1),
    0 0 40px rgba(96, 123, 255, 0.06);
}

html[data-theme="light"] .error-signal-core {
  background:
    radial-gradient(circle at 50% 48%, rgba(96, 123, 255, 0.08), transparent 48%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.98), rgba(240, 245, 255, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 20px 50px rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .error-wave-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(243, 247, 255, 0.98));
  box-shadow:
    0 20px 44px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

@media (max-width: 980px) {
  .error-hero-grid {
    grid-template-columns: 1fr;
  }

  .error-copy h1 {
    max-width: none;
  }

  .error-visual {
    min-height: 460px;
  }

  .error-wave-panel {
    position: static;
    width: 100%;
    margin-top: 18px;
  }
}

@media (max-width: 720px) {
  .error-hero {
    padding: 22px 18px;
    border-radius: 26px;
  }

  .error-support-grid {
    grid-template-columns: 1fr;
  }

  .error-code-cluster {
    gap: 8px;
  }

  .error-meta-chip {
    max-width: 100%;
  }

  .error-meta-chip-path {
    width: 100%;
    justify-content: space-between;
  }

  .error-meta-chip-path code {
    max-width: 16ch;
  }

  .error-actions .btn {
    width: 100%;
  }

  .error-visual {
    min-height: 380px;
  }

  .error-wave-bars {
    min-height: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .error-orb,
  .error-code-digit,
  .error-signal-ring,
  .error-signal-scan,
  .error-wave-bars span {
    animation: none !important;
  }
}
