﻿:root {
  --bg: #050505;
  --bg-2: #0b090d;
  --ink: #fff4fb;
  --muted: #c8a7b8;
  --line: rgba(255, 188, 222, 0.18);
  --panel: rgba(12, 12, 15, 0.88);
  --panel-strong: rgba(18, 17, 22, 0.96);
  --accent: #ffbfdc;
  --accent-deep: #ff9fcb;
  --accent-soft: rgba(255, 170, 212, 0.12);
  --olive: #3f333a;
  --shadow: 0 26px 60px rgba(0, 0, 0, 0.52);
  --input-bg: rgba(20, 18, 24, 0.96);
  --button-text: #180a14;
  --tab-bg: rgba(255, 190, 226, 0.08);
  --tab-active: linear-gradient(135deg, #ffcae2 0%, #ff8fc1 100%);
  --tab-text: rgba(255, 226, 240, 0.84);
  --overlay-line: rgba(255, 204, 230, 0.06);
}

:root[data-theme="dark"],
body[data-theme="dark"],
body.theme-dark {
  --bg: #000000;
  --bg-2: #070408;
  --ink: #fff7fc;
  --muted: #d8b4c7;
  --line: rgba(255, 194, 228, 0.22);
  --panel: rgba(8, 8, 11, 0.9);
  --panel-strong: rgba(14, 13, 18, 0.98);
  --accent: #ffc9e3;
  --accent-deep: #ffb0d3;
  --accent-soft: rgba(255, 176, 211, 0.14);
  --shadow: 0 30px 70px rgba(0, 0, 0, 0.64);
  --input-bg: rgba(16, 14, 20, 0.98);
  --button-text: #160813;
  --tab-bg: rgba(255, 201, 227, 0.1);
  --tab-active: linear-gradient(135deg, #ffd7ea 0%, #ffa1cc 100%);
  --tab-text: rgba(255, 235, 245, 0.9);
  --overlay-line: rgba(255, 209, 231, 0.05);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

@keyframes glow-pulse {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.98);
  }

  50% {
    opacity: 1;
    transform: scale(1.03);
  }
}

@keyframes float-slow {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -10px, 0);
  }
}

@keyframes float-wide {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(10px, -8px, 0);
  }
}

@keyframes orbit-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes shimmer-line {
  0% {
    transform: translateX(-130%);
  }

  100% {
    transform: translateX(130%);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 14%, rgba(255, 185, 223, 0.22), transparent 18%),
    radial-gradient(circle at 82% 10%, rgba(255, 160, 210, 0.14), transparent 20%),
    radial-gradient(circle at 50% 100%, rgba(255, 185, 225, 0.12), transparent 24%),
    linear-gradient(180deg, #000000 0%, var(--bg) 28%, var(--bg-2) 62%, #12060f 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 192, 228, 0.06), rgba(255, 192, 228, 0.03)),
    repeating-linear-gradient(90deg, transparent 0, transparent 34px, var(--overlay-line) 34px, var(--overlay-line) 35px);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.95), transparent 92%);
}

.page-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 72px;
}

body.editor-mode .page-shell {
  width: min(calc(100% - 20px), 1680px);
  padding: 14px 0 16px;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  margin-bottom: 34px;
}

body.editor-mode .hero {
  display: none;
}

.hero-copy,
.hero-panel,
.tool-panel,
.dashboard-card,
.surface-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-copy {
  padding: 40px;
  animation: rise-in 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-deep);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  font-weight: 700;
}

.hero-copy h1,
.panel-head h2,
.dashboard-card h2,
.metric-card strong,
.word-card h3,
.phrase-card h3,
.writing-callout h3,
.suggestion-help h3,
.quiz-question h3,
.empty-state h3 {
  font-family: "Fraunces", serif;
}

.hero-copy h1 {
  margin: 0 0 22px;
  font-size: clamp(2.7rem, 5vw, 5.2rem);
  line-height: 0.95;
  max-width: 11ch;
}

.hero-text,
.panel-head p,
.dashboard-card p,
.metric-card p,
.status-text,
.word-card p,
.phrase-card p,
.support-card p,
.suggestion-help p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-actions,
.tool-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 32px;
}

.top-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(420px, 1fr);
  align-items: start;
  gap: 18px;
  margin: 24px 0 18px;
}

.top-toolbar-floating {
  margin-top: 0;
  margin-bottom: 26px;
}

.category-subnav {
  margin: 8px 0 28px;
}

main {
  display: grid;
  gap: 30px;
}

[hidden] {
  display: none !important;
}

.category-workspace {
  display: none;
}

.category-workspace.is-active {
  display: block;
}

body.editor-mode .category-workspace[data-category-panel="text-editor"] {
  margin-top: 0;
}

body.editor-mode main {
  gap: 0;
}

body.editor-mode .category-workspace[data-category-panel="text-editor"] .tool-panel {
  padding-top: 0;
}

body.editor-mode .category-workspace[data-category-panel="text-editor"] .panel-head {
  display: none;
}

body.editor-mode .category-workspace[data-category-panel="text-editor"] > .tool-panel {
  min-height: calc(100vh - 12px);
}

body.editor-mode .editor-suite,
body.editor-mode .editor-shell {
  min-height: 0;
  height: calc(100vh - 12px);
}

body.editor-mode .editor-body {
  min-height: 0;
  height: 100%;
}

body.editor-mode .editor-canvas .ql-editor,
body.editor-mode .neurno-editor {
  min-height: 0;
}

body.editor-mode .app-header {
  position: fixed;
  top: 10px;
  left: 50%;
  width: min(calc(100vw - 20px), 1680px);
  margin: 0;
  z-index: 320;
  transform: translate(-50%, calc(-100% - 20px));
  opacity: 0;
  pointer-events: none;
  transition: transform 220ms ease, opacity 180ms ease, border-color 180ms ease, background 180ms ease;
  will-change: transform, opacity;
}

body.editor-mode.editor-header-visible .app-header,
body.editor-mode .app-header:hover,
body.editor-mode .app-header:focus-within {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.subject-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 22px;
}

.subject-overview-card {
  padding: 24px;
  border: 1px solid rgba(255, 201, 227, 0.16);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(12, 11, 16, 0.96), rgba(8, 8, 11, 0.94));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.subject-overview-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  margin-bottom: 18px;
}

.subject-overview-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255, 201, 227, 0.18);
  color: var(--ink);
  background: rgba(255, 201, 227, 0.08);
}

.subject-overview-icon-language {
  color: #f0b6da;
  background: rgba(190, 78, 135, 0.14);
}

.subject-overview-icon-practice {
  color: #92baff;
  background: rgba(32, 91, 204, 0.14);
}

.subject-overview-icon-output {
  color: #90e0ff;
  background: rgba(14, 123, 159, 0.14);
}

.subject-overview-icon-track {
  color: #7ef1cd;
  background: rgba(13, 132, 96, 0.14);
}

.subject-overview-icon-math {
  color: #ffcb87;
  background: rgba(178, 111, 18, 0.14);
}

.subject-overview-icon-science {
  color: #7ef1cd;
  background: rgba(13, 132, 96, 0.14);
}

.subject-overview-head h3 {
  margin: 0 0 4px;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  line-height: 1;
}

.subject-overview-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.subject-overview-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.subject-overview-list li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.6;
}

.subject-overview-list li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid currentColor;
  box-shadow: 0 0 0 1px rgba(255, 201, 227, 0.06);
}

.toolbar-actions {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}

.app-header {
  position: relative;
  z-index: 200;
  margin-bottom: 24px;
  overflow: visible;
}

.app-auth-nav {
  position: relative;
  z-index: 201;
  justify-content: space-between;
  gap: 18px;
  overflow: visible;
}

.app-category-nav {
  gap: 10px;
  margin: 0 auto;
}

.app-nav-tab {
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.app-nav-tab.is-active {
  background: rgba(255, 201, 227, 0.1);
  color: var(--ink);
}

.app-toolbar-actions {
  position: relative;
  z-index: 202;
  flex: 0 0 auto;
  margin-left: auto;
  overflow: visible;
}

.primary-link,
.secondary-link,
.primary-btn,
.secondary-btn,
.tool-tab,
.icon-btn,
.study-btn,
.quiz-option {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.primary-link,
.secondary-link,
.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.primary-link,
.primary-btn {
  border: 0;
  background: linear-gradient(135deg, #ffd1e7 0%, #ff92c5 100%);
  color: var(--button-text);
  box-shadow: 0 18px 38px rgba(255, 135, 197, 0.3);
}

.secondary-link,
.secondary-btn {
  border: 1px solid var(--line);
  background: var(--tab-bg);
  color: var(--ink);
}

.secondary-link.is-static,
.primary-link.is-static {
  cursor: default;
  pointer-events: none;
  opacity: 0.72;
}

.primary-link:hover,
.secondary-link:hover,
.primary-btn:hover,
.secondary-btn:hover,
.tool-tab:hover,
.icon-btn:hover,
.study-btn:hover,
.quiz-option:hover {
  transform: translateY(-1px);
}

.hero-panel {
  padding: 28px;
  display: grid;
  gap: 18px;
  animation: rise-in 760ms cubic-bezier(0.22, 1, 0.36, 1) both;
  background:
    radial-gradient(circle at top right, rgba(255, 176, 214, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(17, 15, 20, 0.98), rgba(10, 9, 13, 0.94));
}

.metric-card,
.mini-metric,
.word-card,
.phrase-card,
.empty-state,
.quiz-card,
.writing-callout,
.support-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel-strong);
}

.word-card,
.phrase-card,
.support-card,
.writing-callout,
.suggestion-help,
.quiz-question,
.empty-state {
  min-width: 0;
}

.metric-card {
  padding: 22px;
  animation: drift 6.5s ease-in-out 1.1s infinite;
}

.metric-label,
.card-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.metric-card strong {
  display: block;
  margin-top: 16px;
  font-size: 2.3rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.mini-metric {
  padding: 22px;
}

.mini-metric span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.mini-metric strong {
  display: block;
  margin-top: 10px;
  font-size: 1.6rem;
}

.tool-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  width: 100%;
  padding: 10px;
  gap: 12px;
  border: 1px solid rgba(255, 194, 228, 0.18);
  border-radius: 32px;
  background: rgba(15, 13, 19, 0.78);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);
}

.tool-nav-categories {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tool-nav-language {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tool-tab {
  min-height: 58px;
  width: 100%;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--tab-bg);
  color: var(--tab-text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}

.tool-nav-categories .tool-tab {
  min-height: 48px;
  padding: 0 14px;
  font-size: 0.95rem;
}

.tool-tab.is-active {
  background: var(--tab-active);
  color: var(--button-text);
  border-color: rgba(255, 227, 240, 0.5);
  box-shadow: 0 0 0 1px rgba(255, 217, 236, 0.28), 0 16px 30px rgba(255, 148, 202, 0.34);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-height: 52px;
  width: 100%;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.profile-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: auto;
  min-width: 64px;
  min-height: 64px;
  padding: 9px;
  border: 1px solid rgba(255, 197, 229, 0.22);
  border-radius: 999px;
  background:
    radial-gradient(circle at top left, rgba(255, 186, 221, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(18, 15, 21, 0.98), rgba(11, 9, 14, 0.95));
  color: #fff7fb;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.44);
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  flex: 0 0 auto;
}

.profile-button:hover,
.profile-button[aria-expanded="true"] {
  transform: translateY(-1px);
  box-shadow: 0 26px 48px rgba(57, 43, 63, 0.34);
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 226, 239, 0.98), rgba(255, 172, 209, 0.88));
  color: #2a0f1e;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-button-copy {
  display: none;
}

.profile-button-label,
.profile-button-meta {
  color: rgba(255, 240, 247, 0.78);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-button-label {
  margin-bottom: 2px;
}

.profile-button-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1.7rem;
  line-height: 1;
}

.profile-button-meta {
  display: none;
}

.profile-popover {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 1200;
  width: min(100vw - 32px, 520px);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(255, 179, 218, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(18, 16, 22, 0.98), rgba(10, 9, 13, 0.96));
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(18px);
}

.profile-popover[hidden] {
  display: none;
}

.profile-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.profile-popover-head h3 {
  margin: 12px 0 6px;
  font-size: 1.7rem;
}

.profile-popover-head p {
  margin: 0;
  color: var(--muted);
}

.profile-ring {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  min-height: 108px;
  padding: 16px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(18, 16, 22, 0.98) 42%, transparent 43%),
    conic-gradient(from 220deg, #ff99c7, #ffd5e9, #503745, #ff99c7);
  color: var(--ink);
  text-align: center;
  box-shadow: inset 0 0 0 10px rgba(255, 204, 229, 0.1);
}

.profile-ring strong {
  font-family: "Fraunces", serif;
  font-size: 1.5rem;
}

.profile-ring span {
  max-width: 68px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.profile-stats-grid,
.profile-insights {
  display: grid;
  gap: 14px;
}

.profile-stats-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 14px;
}

.profile-stat-card,
.profile-insight-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 201, 227, 0.06);
}

.profile-stat-label,
.profile-insight-label {
  color: var(--accent-deep);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-stat-card strong {
  display: block;
  margin: 10px 0 6px;
  font-family: "Fraunces", serif;
  font-size: 2rem;
}

.profile-stat-card p,
.profile-insight-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.profile-insights {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-insight-card p {
  margin-top: 8px;
  color: var(--ink);
  font-weight: 500;
}

.profile-language-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.profile-language-switcher {
  min-height: 58px;
  padding: 10px 14px;
  border-radius: 20px;
  background: rgba(255, 201, 227, 0.06);
  box-shadow: none;
}

.profile-language-switcher select {
  background: rgba(16, 14, 20, 0.96);
}

.profile-popover-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.profile-signout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(255, 168, 180, 0.2);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(46, 21, 31, 0.96), rgba(24, 12, 18, 0.98));
  color: #ffdbe2;
  text-decoration: none;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.profile-signout-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 168, 180, 0.34);
  background:
    linear-gradient(180deg, rgba(58, 24, 37, 0.98), rgba(28, 13, 22, 1));
}

.language-switcher {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.language-switcher select {
  min-height: 40px;
  min-width: 0;
  width: 100%;
  padding: 0 14px;
  border-radius: 999px;
}

.theme-toggle-track {
  position: relative;
  width: 58px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 181, 217, 0.56), rgba(48, 28, 40, 0.7));
}

.theme-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffe8f4, #ffbada);
  box-shadow: 0 4px 10px rgba(255, 142, 197, 0.24);
  transition: transform 180ms ease;
}

.theme-toggle.is-dark .theme-toggle-thumb,
:root[data-theme="dark"] .theme-toggle-thumb,
body[data-theme="dark"] .theme-toggle-thumb,
body.theme-dark .theme-toggle-thumb {
  transform: translateX(24px);
}

.theme-toggle.is-dark .theme-toggle-track,
:root[data-theme="dark"] .theme-toggle-track,
body[data-theme="dark"] .theme-toggle-track,
body.theme-dark .theme-toggle-track {
  background: linear-gradient(135deg, rgba(9, 8, 12, 0.94), rgba(255, 166, 209, 0.44));
}

:root[data-theme="dark"] .hero-panel,
body[data-theme="dark"] .hero-panel,
body.theme-dark .hero-panel {
  background:
    radial-gradient(circle at top right, rgba(255, 186, 221, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(13, 11, 16, 0.98), rgba(5, 4, 8, 0.96));
}

:root[data-theme="dark"] .profile-popover,
body[data-theme="dark"] .profile-popover,
body.theme-dark .profile-popover {
  background:
    radial-gradient(circle at top right, rgba(255, 186, 221, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(14, 12, 18, 0.98), rgba(6, 5, 9, 0.96));
}

:root[data-theme="dark"] .profile-stat-card,
:root[data-theme="dark"] .profile-insight-card,
body[data-theme="dark"] .profile-stat-card,
body[data-theme="dark"] .profile-insight-card,
body.theme-dark .profile-stat-card,
body.theme-dark .profile-insight-card {
  background: rgba(255, 255, 255, 0.04);
}

:root[data-theme="dark"] .profile-ring,
body[data-theme="dark"] .profile-ring,
body.theme-dark .profile-ring {
  background:
    radial-gradient(circle at center, rgba(14, 12, 18, 0.98) 42%, transparent 43%),
    conic-gradient(from 220deg, #ff99c7, #ffd5e9, #5f4353, #ff99c7);
}

:root[data-theme="dark"] .language-system-card,
body[data-theme="dark"] .language-system-card,
body.theme-dark .language-system-card {
  background:
    radial-gradient(circle at top right, rgba(255, 204, 229, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(16, 14, 19, 0.98), rgba(8, 7, 11, 0.96));
}

:root[data-theme="dark"] .language-track-detail,
body[data-theme="dark"] .language-track-detail,
body.theme-dark .language-track-detail {
  background: rgba(255, 255, 255, 0.04);
}

:root[data-theme="dark"] .tool-nav,
body[data-theme="dark"] .tool-nav,
body.theme-dark .tool-nav {
  background: rgba(11, 10, 15, 0.82);
  border-color: rgba(255, 199, 228, 0.16);
}

:root[data-theme="dark"] .tool-tab.is-active,
body[data-theme="dark"] .tool-tab.is-active,
body.theme-dark .tool-tab.is-active {
  box-shadow: 0 14px 28px rgba(255, 148, 202, 0.28);
}

:root[data-theme="dark"] .flashcard-face,
body[data-theme="dark"] .flashcard-face,
body.theme-dark .flashcard-face {
  background:
    radial-gradient(circle at top right, rgba(255, 184, 220, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(20, 18, 24, 0.98), rgba(11, 10, 14, 0.96));
}

:root[data-theme="dark"] .flashcard-back,
body[data-theme="dark"] .flashcard-back,
body.theme-dark .flashcard-back {
  background:
    radial-gradient(circle at bottom left, rgba(255, 180, 216, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(17, 15, 20, 0.98), rgba(9, 8, 12, 0.98));
}

:root[data-theme="dark"] .mini-metric,
:root[data-theme="dark"] .metric-card,
:root[data-theme="dark"] .word-card,
:root[data-theme="dark"] .phrase-card,
:root[data-theme="dark"] .quiz-card,
:root[data-theme="dark"] .writing-callout,
:root[data-theme="dark"] .support-card,
:root[data-theme="dark"] .empty-state,
body[data-theme="dark"] .mini-metric,
body[data-theme="dark"] .metric-card,
body[data-theme="dark"] .word-card,
body[data-theme="dark"] .phrase-card,
body[data-theme="dark"] .quiz-card,
body[data-theme="dark"] .writing-callout,
body[data-theme="dark"] .support-card,
body[data-theme="dark"] .empty-state,
body.theme-dark .mini-metric,
body.theme-dark .metric-card,
body.theme-dark .word-card,
body.theme-dark .phrase-card,
body.theme-dark .quiz-card,
body.theme-dark .writing-callout,
body.theme-dark .support-card,
body.theme-dark .empty-state {
  background: rgba(17, 16, 21, 0.96);
}

:root[data-theme="dark"] .tool-nav,
:root[data-theme="dark"] .secondary-link,
:root[data-theme="dark"] .secondary-btn,
body[data-theme="dark"] .tool-nav,
body[data-theme="dark"] .secondary-link,
body[data-theme="dark"] .secondary-btn,
body.theme-dark .tool-nav,
body.theme-dark .secondary-link,
body.theme-dark .secondary-btn {
  backdrop-filter: blur(14px);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 26px;
}

.language-system-card {
  grid-column: span 2;
  background:
    radial-gradient(circle at top right, rgba(255, 204, 229, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(17, 15, 20, 0.98), rgba(10, 9, 13, 0.94));
}

.language-track-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.language-track-detail {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 195, 225, 0.06);
}

.language-track-detail-wide {
  grid-column: 1 / -1;
}

.language-track-label {
  display: inline-flex;
  color: var(--accent-deep);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.language-track-detail strong {
  display: block;
  margin-top: 10px;
  line-height: 1.45;
}

.dashboard-card,
.tool-panel,
.surface-card,
.word-card,
.phrase-card,
.empty-state,
.quiz-card,
.writing-callout,
.support-card {
  padding: 28px;
}

.word-card,
.phrase-card,
.writing-callout,
.support-card,
.suggestion-help {
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: rise-in 380ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.dashboard-card h2,
.panel-head h2 {
  margin: 14px 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.dashboard-card {
  animation: rise-in 540ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.dashboard-card:nth-child(2) {
  animation-delay: 80ms;
}

.dashboard-card:nth-child(3) {
  animation-delay: 160ms;
}

.tool-panel {
  display: none;
}

.tool-panel.is-active {
  display: block;
  animation: panel-in 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.category-workspace[data-category-panel="text-editor"] > .tool-panel {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  overflow: visible;
}

.category-workspace[data-category-panel="text-editor"] > .tool-panel > .panel-head {
  margin-bottom: 24px;
}

.panel-head,
.section-bar,
.action-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.panel-head {
  align-items: end;
  margin-bottom: 26px;
}

.section-bar,
.action-row {
  align-items: center;
  margin-top: 18px;
}

.panel-head p {
  max-width: 56ch;
  margin: 0;
}

.control-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.control-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.control-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 700;
}

.control-field.full-width {
  width: 100%;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--input-bg);
  color: var(--ink);
  font: inherit;
  outline: none;
}

input,
select {
  min-height: 54px;
  padding: 0 16px;
}

textarea {
  min-height: 300px;
  padding: 16px 18px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(255, 166, 209, 0.56);
  box-shadow: 0 0 0 4px rgba(255, 176, 211, 0.16);
}

.tool-layout,
.writing-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
}

.editor-suite {
  display: block;
}

.editor-shell {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 20px;
  padding: 24px;
  border: 1px solid rgba(255, 197, 229, 0.1);
  border-radius: 34px;
  background:
    radial-gradient(circle at top right, rgba(255, 187, 223, 0.1), transparent 28%),
    radial-gradient(circle at top left, rgba(122, 209, 255, 0.07), transparent 24%),
    linear-gradient(180deg, rgba(16, 14, 22, 0.98), rgba(10, 9, 14, 0.96));
  box-shadow: 0 28px 58px rgba(0, 0, 0, 0.32);
}

body.editor-mode .editor-shell {
  grid-template-rows: minmax(0, 1fr);
  gap: 10px;
  padding: 16px;
}

body.editor-mode .editor-shell-head {
  display: none;
}

.editor-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 20%, transparent 80%, rgba(255, 255, 255, 0.02));
  pointer-events: none;
}

.editor-shell-head,
.editor-review-actions {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.editor-shell-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  position: relative;
  z-index: 40;
  padding: 16px 18px;
  border: 1px solid rgba(255, 197, 229, 0.12);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(255, 176, 214, 0.08), transparent 32%),
    rgba(20, 17, 27, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 14px 28px rgba(0, 0, 0, 0.16);
}

.editor-file-menu {
  position: relative;
  flex: 0 0 auto;
  z-index: 80;
}

.editor-file-toggle {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 197, 229, 0.12);
  background:
    linear-gradient(180deg, rgba(34, 28, 43, 0.92), rgba(19, 16, 25, 0.96));
  color: #f3e6ee;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 8px 20px rgba(0, 0, 0, 0.16);
}

.editor-file-toggle:hover,
.editor-file-toggle[aria-expanded="true"] {
  border-color: rgba(255, 197, 229, 0.22);
  background:
    linear-gradient(180deg, rgba(41, 34, 53, 0.96), rgba(21, 18, 29, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 12px 24px rgba(0, 0, 0, 0.18);
}

.editor-toolbar-file-mount,
.editor-toolbar-file-mount .editor-file-menu {
  display: flex;
  align-items: center;
}

.editor-toolbar .editor-file-toggle {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 197, 229, 0.12);
  background: rgba(28, 24, 37, 0.9);
  color: rgba(255, 236, 245, 0.82);
  box-shadow: none;
}

.editor-toolbar .editor-file-toggle:hover,
.editor-toolbar .editor-file-toggle[aria-expanded="true"] {
  border-color: rgba(255, 197, 229, 0.2);
  background: rgba(38, 33, 48, 0.94);
  box-shadow: none;
}

.editor-toolbar .editor-file-dropdown .editor-file-action,
.editor-toolbar .editor-file-submenu .editor-file-action {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #f2e7ee;
  box-shadow: none;
  text-align: left;
  white-space: normal;
}

.editor-toolbar .editor-file-dropdown .editor-file-parent,
.editor-toolbar .editor-file-submenu .editor-file-parent {
  justify-content: space-between;
}

.editor-toolbar .editor-file-dropdown .editor-file-action:hover,
.editor-toolbar .editor-file-submenu .editor-file-action:hover {
  border-color: rgba(255, 197, 229, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #f2e7ee;
  box-shadow: none;
}

.editor-toolbar .editor-file-dropdown .editor-file-icon,
.editor-toolbar .editor-file-submenu .editor-file-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.editor-file-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 140;
  width: min(320px, calc(100vw - 48px));
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 197, 229, 0.12);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(28, 23, 35, 0.98), rgba(17, 14, 23, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 20px 38px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(20px);
}

.editor-file-group {
  display: grid;
  gap: 6px;
}

.editor-file-group + .editor-file-group {
  padding-top: 10px;
  border-top: 1px solid rgba(255, 197, 229, 0.08);
}

.editor-file-group-label {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  color: rgba(244, 222, 233, 0.58);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.editor-file-flyout {
  position: relative;
}

.editor-file-parent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.editor-file-chevron {
  color: rgba(244, 222, 233, 0.46);
  font-size: 1rem;
  line-height: 1;
}

.editor-file-submenu {
  position: absolute;
  top: -6px;
  left: calc(100% + 8px);
  z-index: 141;
  width: min(280px, calc(100vw - 64px));
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid rgba(255, 197, 229, 0.12);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(28, 23, 35, 0.99), rgba(17, 14, 23, 0.99));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 20px 38px rgba(0, 0, 0, 0.34);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-6px);
  transition: opacity 160ms ease, transform 160ms ease;
  backdrop-filter: blur(20px);
}

.editor-file-flyout:hover .editor-file-submenu,
.editor-file-flyout:focus-within .editor-file-submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.editor-file-action {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #f2e7ee;
  font: inherit;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.editor-file-action:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 197, 229, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.editor-file-action.is-adapter {
  color: rgba(242, 231, 238, 0.84);
  justify-content: space-between;
}

.editor-file-action-neurno {
  justify-content: flex-start;
}

.editor-file-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid rgba(255, 212, 140, 0.16);
  border-radius: 999px;
  background: rgba(255, 198, 133, 0.08);
  color: rgba(255, 214, 168, 0.84);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.editor-file-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.editor-file-icon img {
  display: block;
  width: 100%;
  height: 100%;
}

.editor-head-main {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.editor-document-meta {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.editor-title-field {
  gap: 6px;
}

.editor-title-field span {
  color: rgba(244, 222, 233, 0.82);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.editor-title-field input {
  min-height: 56px;
  padding: 0 18px;
  font-size: 1.08rem;
  font-weight: 700;
}

.editor-head-support {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px 14px;
}

.editor-head-document-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.editor-shell-kickers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.editor-meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(127, 179, 255, 0.18);
  border-radius: 999px;
  background: rgba(63, 116, 198, 0.12);
  color: #9dc3ff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.editor-review-actions {
  display: grid;
  gap: 8px;
  min-width: min(100%, 360px);
  justify-items: end;
  align-content: center;
}

.editor-file-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(255, 197, 229, 0.12);
  border-radius: 999px;
  background: rgba(33, 27, 42, 0.72);
  color: rgba(240, 221, 230, 0.78);
  font-size: 0.78rem;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}

.editor-language-field {
  min-width: 200px;
}

.editor-review-btn {
  min-width: 128px;
}

.editor-fix-all-btn {
  min-width: 128px;
}

.editor-fix-all-btn[hidden] {
  display: none;
}

.editor-actions-label {
  color: rgba(244, 222, 233, 0.58);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.editor-review-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
}

.editor-pane-copy {
  display: grid;
  gap: 6px;
  max-width: 28rem;
}

.editor-pane-copy h3 {
  margin: 0;
  font-size: clamp(1.02rem, 0.3vw + 0.98rem, 1.22rem);
}

.editor-pane-copy p {
  margin: 0;
  color: rgba(236, 222, 231, 0.62);
  font-size: 0.92rem;
  line-height: 1.55;
}

.editor-toolbar-wrap {
  min-width: 0;
}

.editor-toolbar {
  position: relative;
  z-index: 20;
  overflow: visible;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  row-gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 197, 229, 0.14);
  border-radius: 22px;
  background: rgba(20, 17, 27, 0.86);
  backdrop-filter: blur(14px);
}

.editor-toolbar .ql-formats {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 0;
  padding-right: 12px;
  border-right: 1px solid rgba(255, 197, 229, 0.08);
}

.editor-toolbar .ql-formats:last-child {
  padding-right: 0;
  border-right: 0;
}

.editor-format-control {
  position: relative;
  z-index: 30;
  isolation: isolate;
}

.editor-toolbar .ql-picker,
.editor-toolbar button {
  border-radius: 14px;
}

.editor-toolbar .ql-picker.ql-header,
.editor-toolbar .ql-picker.ql-align,
.editor-toolbar .ql-picker.ql-background {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  overflow: hidden;
  vertical-align: middle;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.editor-toolbar .ql-picker-label,
.editor-toolbar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  min-width: 40px;
}

.editor-toolbar .ql-picker.ql-header .ql-picker-label,
.editor-toolbar .ql-picker.ql-align .ql-picker-label,
.editor-toolbar .ql-picker.ql-background .ql-picker-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0 !important;
  border: 1px solid rgba(255, 197, 229, 0.12);
  border-radius: 14px;
  background: rgba(28, 24, 37, 0.9);
}

.editor-toolbar .ql-picker-label svg,
.editor-toolbar .ql-picker-label .ql-stroke {
  margin: 0;
}

.editor-toolbar .ql-picker.ql-header .ql-picker-label svg,
.editor-toolbar .ql-picker.ql-align .ql-picker-label svg,
.editor-toolbar .ql-picker.ql-background .ql-picker-label svg {
  display: none !important;
}

.editor-toolbar .ql-picker.ql-header .ql-picker-options,
.editor-toolbar .ql-picker.ql-align .ql-picker-options,
.editor-toolbar .ql-picker.ql-background .ql-picker-options {
  margin-top: 8px;
}

.editor-toolbar .ql-picker.ql-header .ql-picker-label::before,
.editor-toolbar .ql-picker.ql-align .ql-picker-label::before,
.editor-toolbar .ql-picker.ql-background .ql-picker-label::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1;
}

.editor-toolbar .ql-picker.ql-header .ql-picker-label::before {
  content: "H";
}

.editor-toolbar .ql-picker.ql-header .ql-picker-label[data-value="1"]::before {
  content: "H1";
  font-size: 0.72rem;
}

.editor-toolbar .ql-picker.ql-header .ql-picker-label[data-value="2"]::before {
  content: "H2";
  font-size: 0.72rem;
}

.editor-toolbar .ql-picker.ql-header .ql-picker-label[data-value="3"]::before {
  content: "H3";
  font-size: 0.72rem;
}

.editor-toolbar .ql-picker.ql-align .ql-picker-label::before {
  content: "\2261";
  font-size: 1rem;
}

.editor-toolbar .ql-picker.ql-background .ql-picker-label::before {
  content: "";
  width: 16px;
  height: 14px;
  border-radius: 4px 4px 3px 3px;
  background:
    linear-gradient(180deg, rgba(255, 242, 248, 0.92) 0 42%, transparent 42% 100%),
    linear-gradient(180deg, rgba(255, 183, 218, 0.96), rgba(255, 183, 218, 0.96));
  box-shadow: 0 0 0 1px rgba(255, 236, 245, 0.14);
}

.editor-toolbar .ql-picker.ql-background .ql-picker-label::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 14px;
  height: 3px;
  border-radius: 999px;
  background: #ffb7da;
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(255, 183, 218, 0.22);
}

.editor-toolbar .ql-picker.ql-background .ql-picker-label[data-value="false"]::after,
.editor-toolbar .ql-picker.ql-background .ql-picker-label:not([data-value])::after {
  background: rgba(255, 236, 245, 0.18);
  box-shadow: none;
}

.editor-toolbar .ql-picker.ql-background .ql-picker-label[data-value="#ffd54f"]::after {
  background: #ffd54f;
}

.editor-toolbar .ql-picker.ql-background .ql-picker-label[data-value="#ffb7da"]::after {
  background: #ffb7da;
}

.editor-toolbar .ql-picker.ql-background .ql-picker-label[data-value="#ff9e7a"]::after {
  background: #ff9e7a;
}

.editor-toolbar .ql-picker.ql-background .ql-picker-label[data-value="#ffc98b"]::after {
  background: #ffc98b;
}

.editor-toolbar .ql-picker.ql-background .ql-picker-label[data-value="#b8ff7a"]::after {
  background: #b8ff7a;
}

.editor-toolbar .ql-picker.ql-background .ql-picker-label[data-value="#9df3c4"]::after {
  background: #9df3c4;
}

.editor-toolbar .ql-picker.ql-background .ql-picker-label[data-value="#96f0ff"]::after {
  background: #96f0ff;
}

.editor-toolbar .ql-picker.ql-background .ql-picker-label[data-value="#7ad1ff"]::after {
  background: #7ad1ff;
}

.editor-toolbar .ql-picker.ql-background .ql-picker-label[data-value="#d3b7ff"]::after {
  background: #d3b7ff;
}

.editor-toolbar .ql-picker.ql-background .ql-picker-label[data-value="#c8a6ff"]::after {
  background: #c8a6ff;
}

.editor-toolbar .ql-picker.ql-background .ql-picker-label.ql-active,
.editor-toolbar .ql-picker.ql-background.ql-expanded .ql-picker-label,
.editor-toolbar .ql-picker.ql-background .ql-picker-label[data-value]:not([data-value="false"]) {
  border-color: rgba(255, 183, 218, 0.34);
  background:
    radial-gradient(circle at top, rgba(255, 183, 218, 0.14), transparent 56%),
    rgba(28, 24, 37, 0.92);
  color: #fff3f9;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 0 0 1px rgba(255, 183, 218, 0.12),
    0 0 18px rgba(255, 183, 218, 0.16);
}

.editor-toolbar .ql-picker.ql-header .ql-picker-item::before,
.editor-toolbar .ql-picker.ql-align .ql-picker-item::before,
.editor-toolbar .ql-picker.ql-background .ql-picker-item::before {
  color: rgba(255, 236, 245, 0.8);
}

.editor-toolbar .ql-picker.ql-header .ql-picker-item[data-value="1"]::before {
  content: "Heading 1";
}

.editor-toolbar .ql-picker.ql-header .ql-picker-item[data-value="2"]::before {
  content: "Heading 2";
}

.editor-toolbar .ql-picker.ql-header .ql-picker-item[data-value="3"]::before {
  content: "Heading 3";
}

.editor-toolbar .ql-picker.ql-header .ql-picker-item:not([data-value])::before {
  content: "Normal";
}

.editor-toolbar .ql-picker.ql-align .ql-picker-item:not([data-value])::before {
  content: "Left";
}

.editor-toolbar .ql-picker.ql-align .ql-picker-item[data-value="center"]::before {
  content: "Center";
}

.editor-toolbar .ql-picker.ql-align .ql-picker-item[data-value="right"]::before {
  content: "Right";
}

.editor-toolbar .ql-picker.ql-align .ql-picker-item[data-value="justify"]::before {
  content: "Justify";
}

.editor-toolbar .ql-picker.ql-background .ql-picker-item {
  position: relative;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 12px;
  margin: 0;
  overflow: hidden;
}

.editor-toolbar .ql-picker.ql-background .ql-picker-options {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 32px);
  gap: 8px;
  width: max-content;
  padding: 40px 14px 14px;
}

.editor-toolbar .ql-picker.ql-background .ql-picker-options::before {
  content: "Highlight";
  position: absolute;
  top: 12px;
  left: 14px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 197, 229, 0.82);
}

.editor-toolbar .ql-picker.ql-background .ql-picker-item::before {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  content: "";
  box-shadow: inset 0 0 0 1px rgba(255, 236, 245, 0.08);
}

.editor-toolbar .ql-picker.ql-background .ql-picker-item[data-value="false"]::before,
.editor-toolbar .ql-picker.ql-background .ql-picker-item:not([data-value])::before {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.editor-toolbar .ql-picker.ql-background .ql-picker-item[data-value="#ffd54f"]::before {
  background: #ffd54f;
}

.editor-toolbar .ql-picker.ql-background .ql-picker-item[data-value="#ffb7da"]::before {
  background: #ffb7da;
}

.editor-toolbar .ql-picker.ql-background .ql-picker-item[data-value="#ff9e7a"]::before {
  background: #ff9e7a;
}

.editor-toolbar .ql-picker.ql-background .ql-picker-item[data-value="#ffc98b"]::before {
  background: #ffc98b;
}

.editor-toolbar .ql-picker.ql-background .ql-picker-item[data-value="#b8ff7a"]::before {
  background: #b8ff7a;
}

.editor-toolbar .ql-picker.ql-background .ql-picker-item[data-value="#9df3c4"]::before {
  background: #9df3c4;
}

.editor-toolbar .ql-picker.ql-background .ql-picker-item[data-value="#96f0ff"]::before {
  background: #96f0ff;
}

.editor-toolbar .ql-picker.ql-background .ql-picker-item[data-value="#7ad1ff"]::before {
  background: #7ad1ff;
}

.editor-toolbar .ql-picker.ql-background .ql-picker-item[data-value="#d3b7ff"]::before {
  background: #d3b7ff;
}

.editor-toolbar .ql-picker.ql-background .ql-picker-item[data-value="#c8a6ff"]::before {
  background: #c8a6ff;
}

.editor-toolbar .ql-picker.ql-background .ql-picker-item.ql-selected::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 10px;
  box-shadow:
    inset 0 0 0 2px rgba(15, 13, 20, 0.9),
    0 0 0 1px rgba(255, 209, 231, 0.82),
    0 0 14px rgba(255, 183, 218, 0.2);
  pointer-events: none;
}

.editor-toolbar button svg {
  width: 16px;
  height: 16px;
}

.editor-toolbar button,
.editor-toolbar .ql-picker-label {
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.editor-toolbar button:hover,
.editor-toolbar .ql-picker-label:hover {
  transform: translateY(-1px);
}

.editor-toolbar.ql-toolbar.ql-snow {
  border: 0;
  padding: 0;
}

.editor-toolbar .ql-picker.ql-expanded .ql-picker-label,
.editor-toolbar button:hover,
.editor-toolbar button.ql-active,
.editor-toolbar .ql-picker-label:hover,
.editor-toolbar .ql-picker-label.ql-active {
  color: #fff3f9;
}

.editor-toolbar .ql-picker-label,
.editor-toolbar button {
  border: 1px solid rgba(255, 197, 229, 0.12);
  background: rgba(28, 24, 37, 0.9);
  color: rgba(255, 236, 245, 0.8);
}

.editor-toolbar .ql-picker {
  color: rgba(255, 236, 245, 0.8);
}

.editor-toolbar .editor-format-toggle {
  position: relative;
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
}

.editor-toolbar .editor-format-toggle::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1;
}

.editor-toolbar .editor-header-toggle::before {
  content: "H";
}

.editor-header-control[data-header-value="1"] .editor-header-toggle::before {
  content: "H1";
  font-size: 0.72rem;
}

.editor-header-control[data-header-value="2"] .editor-header-toggle::before {
  content: "H2";
  font-size: 0.72rem;
}

.editor-header-control[data-header-value="3"] .editor-header-toggle::before {
  content: "H3";
  font-size: 0.72rem;
}

.editor-toolbar .editor-align-toggle::before {
  content: "\2261";
  font-size: 1rem;
}

.editor-toolbar .editor-format-toggle[aria-expanded="true"],
.editor-toolbar .editor-format-toggle.is-active {
  border-color: rgba(255, 183, 218, 0.34);
  background:
    radial-gradient(circle at top, rgba(255, 183, 218, 0.14), transparent 56%),
    rgba(28, 24, 37, 0.92);
  color: #fff3f9;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 0 0 1px rgba(255, 183, 218, 0.12),
    0 0 18px rgba(255, 183, 218, 0.16);
}

.editor-format-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 130;
  display: grid;
  gap: 6px;
  min-width: 164px;
  padding: 12px;
  border: 1px solid rgba(255, 197, 229, 0.12);
  border-radius: 18px;
  background: rgba(19, 17, 24, 0.98);
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.42);
  pointer-events: auto;
}

.editor-format-menu[hidden] {
  display: none;
}

.editor-toolbar .editor-format-option {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  justify-content: flex-start;
  padding: 0 12px;
  border-radius: 12px;
  color: rgba(255, 236, 245, 0.82);
  font-size: 0.84rem;
  font-weight: 600;
}

.editor-toolbar .editor-format-option:hover,
.editor-toolbar .editor-format-option.is-selected {
  border-color: rgba(255, 183, 218, 0.26);
  background:
    radial-gradient(circle at top, rgba(255, 183, 218, 0.12), transparent 58%),
    rgba(36, 30, 45, 0.96);
  color: #fff3f9;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 0 0 1px rgba(255, 183, 218, 0.08);
  transform: none;
}

.editor-highlight-control {
  --editor-highlight-color: rgba(255, 236, 245, 0.18);
}

.editor-highlight-control[data-highlight-value="#ffd54f"] {
  --editor-highlight-color: #ffd54f;
}

.editor-highlight-control[data-highlight-value="#ffb7da"] {
  --editor-highlight-color: #ffb7da;
}

.editor-highlight-control[data-highlight-value="#ff9e7a"] {
  --editor-highlight-color: #ff9e7a;
}

.editor-highlight-control[data-highlight-value="#ffc98b"] {
  --editor-highlight-color: #ffc98b;
}

.editor-highlight-control[data-highlight-value="#b8ff7a"] {
  --editor-highlight-color: #b8ff7a;
}

.editor-highlight-control[data-highlight-value="#9df3c4"] {
  --editor-highlight-color: #9df3c4;
}

.editor-highlight-control[data-highlight-value="#96f0ff"] {
  --editor-highlight-color: #96f0ff;
}

.editor-highlight-control[data-highlight-value="#7ad1ff"] {
  --editor-highlight-color: #7ad1ff;
}

.editor-highlight-control[data-highlight-value="#d3b7ff"] {
  --editor-highlight-color: #d3b7ff;
}

.editor-highlight-control[data-highlight-value="#c8a6ff"] {
  --editor-highlight-color: #c8a6ff;
}

.editor-toolbar .editor-highlight-toggle {
  position: relative;
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
}

.editor-toolbar .editor-text-color-toggle {
  position: relative;
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
}

.editor-toolbar .editor-text-color-toggle::before {
  content: "A";
  font-family: "Fraunces", serif;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--editor-text-color);
}

.editor-toolbar .editor-text-color-toggle::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 14px;
  height: 3px;
  border-radius: 999px;
  background: var(--editor-text-color);
  transform: translateX(-50%);
}

.editor-toolbar .editor-highlight-toggle::before {
  content: "";
  width: 16px;
  height: 14px;
  border-radius: 4px 4px 3px 3px;
  background:
    linear-gradient(180deg, rgba(255, 242, 248, 0.92) 0 42%, transparent 42% 100%),
    linear-gradient(180deg, rgba(255, 183, 218, 0.96), rgba(255, 183, 218, 0.96));
  box-shadow: 0 0 0 1px rgba(255, 236, 245, 0.14);
}

.editor-toolbar .editor-highlight-toggle::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 14px;
  height: 3px;
  border-radius: 999px;
  background: var(--editor-highlight-color);
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(255, 183, 218, 0.22);
}

.editor-highlight-control[data-highlight-value="false"] .editor-highlight-toggle::after {
  box-shadow: none;
}

.editor-text-color-control[data-color-value="false"] .editor-text-color-toggle::after {
  box-shadow: none;
}

.editor-toolbar .editor-text-color-toggle[aria-expanded="true"],
.editor-toolbar .editor-text-color-toggle.is-active,
.editor-toolbar .editor-highlight-toggle[aria-expanded="true"],
.editor-toolbar .editor-highlight-toggle.is-active {
  border-color: rgba(255, 183, 218, 0.34);
  background:
    radial-gradient(circle at top, rgba(255, 183, 218, 0.14), transparent 56%),
    rgba(28, 24, 37, 0.92);
  color: #fff3f9;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 0 0 1px rgba(255, 183, 218, 0.12),
    0 0 18px rgba(255, 183, 218, 0.16);
}

.editor-highlight-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 130;
  display: grid;
  grid-template-columns: repeat(5, 32px);
  gap: 8px;
  width: max-content;
  padding: 40px 14px 14px;
  border: 1px solid rgba(255, 197, 229, 0.12);
  border-radius: 18px;
  background: rgba(19, 17, 24, 0.98);
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.42);
  pointer-events: auto;
}

.editor-text-color-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 130;
  display: grid;
  grid-template-columns: repeat(10, 28px);
  gap: 6px;
  width: max-content;
  padding: 40px 12px 12px;
  border: 1px solid rgba(255, 197, 229, 0.12);
  border-radius: 18px;
  background: rgba(19, 17, 24, 0.98);
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.42);
  pointer-events: auto;
}

.editor-text-color-menu::before {
  content: "Text color";
  position: absolute;
  top: 12px;
  left: 14px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 197, 229, 0.82);
}

.editor-text-color-menu[hidden] {
  display: none;
}

.editor-highlight-menu::before {
  content: "Highlight";
  position: absolute;
  top: 12px;
  left: 14px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 197, 229, 0.82);
}

.editor-highlight-menu[hidden] {
  display: none;
}

.editor-toolbar .editor-highlight-menu .editor-highlight-swatch {
  position: relative;
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
  transform: none;
  cursor: pointer;
  pointer-events: auto;
  z-index: 1;
}

.editor-toolbar .editor-text-color-menu .editor-text-color-swatch {
  position: relative;
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
  transform: none;
  cursor: pointer;
  pointer-events: auto;
  z-index: 1;
}

.editor-toolbar .editor-highlight-menu .editor-highlight-swatch::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(255, 236, 245, 0.08);
}

.editor-toolbar .editor-highlight-menu .editor-highlight-swatch:hover {
  transform: none;
}

.editor-toolbar .editor-highlight-menu .editor-highlight-swatch.is-clear::before {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.editor-toolbar .editor-highlight-menu .editor-highlight-swatch.is-clear::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 7px;
  bottom: 7px;
  left: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, transparent 42%, rgba(255, 148, 182, 0.9) 42% 58%, transparent 58%);
}

.editor-toolbar .editor-highlight-menu .editor-highlight-swatch[data-editor-highlight-value="#ffd54f"]::before {
  background: #ffd54f;
}

.editor-toolbar .editor-highlight-menu .editor-highlight-swatch[data-editor-highlight-value="#ffb7da"]::before {
  background: #ffb7da;
}

.editor-toolbar .editor-highlight-menu .editor-highlight-swatch[data-editor-highlight-value="#ff9e7a"]::before {
  background: #ff9e7a;
}

.editor-toolbar .editor-highlight-menu .editor-highlight-swatch[data-editor-highlight-value="#ffc98b"]::before {
  background: #ffc98b;
}

.editor-toolbar .editor-highlight-menu .editor-highlight-swatch[data-editor-highlight-value="#b8ff7a"]::before {
  background: #b8ff7a;
}

.editor-toolbar .editor-highlight-menu .editor-highlight-swatch[data-editor-highlight-value="#9df3c4"]::before {
  background: #9df3c4;
}

.editor-toolbar .editor-highlight-menu .editor-highlight-swatch[data-editor-highlight-value="#96f0ff"]::before {
  background: #96f0ff;
}

.editor-toolbar .editor-highlight-menu .editor-highlight-swatch[data-editor-highlight-value="#7ad1ff"]::before {
  background: #7ad1ff;
}

.editor-toolbar .editor-highlight-menu .editor-highlight-swatch[data-editor-highlight-value="#d3b7ff"]::before {
  background: #d3b7ff;
}

.editor-toolbar .editor-highlight-menu .editor-highlight-swatch[data-editor-highlight-value="#c8a6ff"]::before {
  background: #c8a6ff;
}

.editor-toolbar .editor-highlight-menu .editor-highlight-swatch.is-selected::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 10px;
  box-shadow:
    inset 0 0 0 2px rgba(15, 13, 20, 0.88),
    0 0 0 1px rgba(255, 209, 231, 0.82),
    0 0 14px rgba(255, 183, 218, 0.2);
}

.editor-toolbar .editor-text-color-menu .editor-text-color-swatch.is-clear::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 7px;
  bottom: 7px;
  left: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, transparent 42%, rgba(255, 148, 182, 0.9) 42% 58%, transparent 58%);
}

.editor-toolbar .editor-text-color-menu .editor-text-color-swatch.is-selected::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 7px;
  box-shadow:
    inset 0 0 0 2px rgba(15, 13, 20, 0.88),
    0 0 0 1px rgba(255, 209, 231, 0.82),
    0 0 14px rgba(255, 183, 218, 0.2);
}

.editor-highlight-control {
  --editor-highlight-color: rgba(255, 236, 245, 0.18);
}

.editor-text-color-control {
  --editor-text-color: rgba(255, 236, 245, 0.72);
}

.editor-highlight-menu {
  grid-template-columns: repeat(10, 28px);
  gap: 6px;
  padding: 40px 12px 12px;
}

.editor-toolbar .editor-highlight-menu .editor-highlight-swatch {
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  border-radius: 8px;
}

.editor-toolbar .editor-highlight-menu .editor-highlight-swatch::before {
  border-radius: 6px;
  background: var(--editor-swatch-color, transparent);
  box-shadow: inset 0 0 0 1px rgba(255, 236, 245, 0.08);
}

.editor-toolbar .editor-text-color-menu .editor-text-color-swatch::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background: var(--editor-swatch-color, transparent);
  box-shadow: inset 0 0 0 1px rgba(255, 236, 245, 0.08);
}

.editor-toolbar .editor-highlight-menu .editor-highlight-swatch.is-clear::before {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.editor-toolbar .editor-text-color-menu .editor-text-color-swatch.is-clear::before {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.editor-toolbar .editor-highlight-menu .editor-highlight-swatch.is-selected::after {
  inset: 1px;
  border-radius: 7px;
}

.editor-toolbar .editor-voice-toggle {
  position: relative;
}

.editor-toolbar .editor-voice-toggle::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #ff5f78;
  box-shadow: 0 0 10px rgba(255, 95, 120, 0.42);
}

.editor-toolbar .editor-voice-toggle.is-active {
  border-color: rgba(255, 183, 218, 0.34);
  background:
    radial-gradient(circle at top, rgba(255, 183, 218, 0.14), transparent 56%),
    rgba(28, 24, 37, 0.92);
  color: #fff3f9;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 0 0 1px rgba(255, 183, 218, 0.12),
    0 0 18px rgba(255, 183, 218, 0.18);
}

.editor-toolbar .editor-voice-toggle.is-active::after {
  background: #7ef0bf;
  box-shadow: 0 0 10px rgba(126, 240, 191, 0.8);
}

.editor-toolbar .editor-voice-toggle.is-unsupported {
  opacity: 0.42;
  cursor: not-allowed;
  box-shadow: none;
}

.editor-toolbar .editor-voice-toggle.is-unsupported::after {
  display: none;
}

.editor-voice-visualizer {
  display: inline-flex;
  align-items: flex-end;
  gap: 4px;
  min-width: 42px;
  height: 20px;
  margin-left: 2px;
  padding: 0 2px;
}

.editor-voice-visualizer[hidden] {
  display: none;
}

.editor-voice-bar {
  --voice-bar-scale: 0.18;
  width: 4px;
  height: 100%;
  border-radius: 999px;
  transform-origin: 50% 100%;
  transform: scaleY(var(--voice-bar-scale));
  background: linear-gradient(180deg, rgba(255, 192, 228, 0.94), rgba(130, 238, 191, 0.88));
  box-shadow: 0 0 8px rgba(255, 183, 218, 0.14);
  transition: transform 90ms linear, background 140ms ease, box-shadow 140ms ease, opacity 140ms ease;
  opacity: 0.62;
}

.editor-voice-visualizer.is-speaking .editor-voice-bar {
  background: linear-gradient(180deg, rgba(255, 192, 228, 0.98), rgba(114, 239, 176, 0.94));
  box-shadow: 0 0 10px rgba(255, 183, 218, 0.22);
  opacity: 0.96;
}

.editor-toolbar .ql-picker-label {
  padding: 0 12px;
}

.editor-toolbar .ql-picker-options {
  border: 1px solid rgba(255, 197, 229, 0.12);
  border-radius: 18px;
  background: rgba(19, 17, 24, 0.98);
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.42);
}

.editor-toolbar .ql-stroke {
  stroke: currentColor;
}

.editor-toolbar .ql-fill {
  fill: currentColor;
}

.neurno-toast-viewport {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  display: grid;
  gap: 12px;
  width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}

.neurno-toast {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  border: 1px solid rgba(255, 197, 229, 0.16);
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(255, 176, 214, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(21, 18, 28, 0.97), rgba(11, 10, 16, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 22px 42px rgba(0, 0, 0, 0.34);
  animation: rise-in 220ms ease;
}

.neurno-toast.is-exiting {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.neurno-toast-icon {
  width: 12px;
  min-height: 12px;
  margin-top: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #cbb0ff, #ff9fd0);
  box-shadow: 0 0 18px rgba(215, 169, 255, 0.32);
}

.neurno-toast-success .neurno-toast-icon {
  background: linear-gradient(180deg, #80f4c6, #52c7dd);
  box-shadow: 0 0 18px rgba(82, 199, 221, 0.3);
}

.neurno-toast-error .neurno-toast-icon {
  background: linear-gradient(180deg, #ffb3ad, #ff7ea7);
  box-shadow: 0 0 18px rgba(255, 126, 167, 0.28);
}

.neurno-toast-copy {
  display: grid;
  gap: 4px;
}

.neurno-toast-copy strong,
.neurno-toast-copy p {
  margin: 0;
}

.neurno-toast-copy strong {
  color: #fff2f8;
  font-size: 0.94rem;
}

.neurno-toast-copy p {
  color: rgba(241, 222, 232, 0.76);
  line-height: 1.5;
}

.editor-unsaved-modal[hidden] {
  display: none !important;
}

.editor-unsaved-modal {
  position: fixed;
  inset: 0;
  z-index: 1250;
}

.editor-unsaved-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(7, 6, 10, 0.66);
  backdrop-filter: blur(8px);
}

.editor-unsaved-dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: min(460px, calc(100vw - 32px));
  padding: 24px;
  border: 1px solid rgba(255, 197, 229, 0.14);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(255, 176, 214, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(18, 16, 23, 0.98), rgba(10, 9, 14, 0.98));
  box-shadow: 0 36px 70px rgba(0, 0, 0, 0.42);
  transform: translate(-50%, -50%);
  pointer-events: auto;
}

.editor-unsaved-dialog h3,
.editor-unsaved-dialog p {
  margin: 0;
}

.editor-unsaved-dialog h3 {
  margin-top: 14px;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
}

.editor-unsaved-dialog p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.65;
}

.editor-unsaved-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
}

.editor-body {
  display: grid;
  grid-template-columns: minmax(0, calc(68% - 10px)) minmax(360px, calc(32% - 10px));
  gap: 20px;
  align-items: stretch;
  min-height: 0;
}

.editor-pane {
  min-width: 0;
  min-height: 0;
  border: 1px solid rgba(255, 197, 229, 0.1);
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(255, 176, 214, 0.05), transparent 24%),
    linear-gradient(180deg, rgba(24, 22, 29, 0.99), rgba(17, 16, 22, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 20px 36px rgba(0, 0, 0, 0.22);
}

.editor-writer-pane,
.editor-assistant-pane {
  display: grid;
  gap: 14px;
  padding: 20px;
  height: 100%;
}

.editor-writer-pane {
  grid-template-rows: auto auto minmax(0, 1fr);
}

.editor-assistant-pane {
  grid-template-rows: auto minmax(0, 1fr);
}

.editor-pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 44px;
}

.editor-pane-pill {
  flex: 0 0 auto;
}

.editor-inline-title {
  flex: 1 1 auto;
  min-width: 0;
  max-width: min(100%, 360px);
}

.editor-inline-title input {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  font-size: 0.94rem;
  font-weight: 700;
}

.editor-writer-status-mount {
  min-width: 0;
}

.editor-writer-status-mount .editor-file-status {
  margin: 0;
  min-height: 32px;
}

.editor-canvas-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 197, 229, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(236, 222, 231, 0.52);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.editor-canvas-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.editor-session-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff6f84;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 10px rgba(255, 111, 132, 0.28);
}

.editor-session-dot.is-active {
  background: #72efb0;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 12px rgba(114, 239, 176, 0.52);
}

.editor-session-dot.is-inactive {
  background: #ff5f78;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 12px rgba(255, 95, 120, 0.42);
}

.editor-canvas {
  min-height: 0;
  height: 100%;
  border: 0;
  border-radius: 26px;
  background: rgba(0, 0, 0, 0.08);
  padding: 0;
  overflow: hidden;
}

.editor-canvas-surface {
  min-height: 0;
  height: 100%;
  border: 1px solid rgba(255, 197, 229, 0.08);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(28, 26, 33, 0.98), rgba(23, 22, 28, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.editor-assistant-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(255, 197, 229, 0.12);
  border-radius: 999px;
  background: rgba(27, 23, 35, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.editor-assistant-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(243, 224, 235, 0.72);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.editor-assistant-tab:hover {
  transform: translateY(-1px);
}

.editor-assistant-tab.is-active {
  background: linear-gradient(135deg, rgba(255, 221, 237, 0.22), rgba(122, 209, 255, 0.18));
  color: #fff4fb;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 22px rgba(0, 0, 0, 0.16);
}

.editor-assistant-tab.is-busy:not(.is-active) {
  color: rgba(183, 213, 255, 0.86);
}

.editor-assistant-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  font-size: 0.72rem;
}

.editor-assistant-tab-count.has-issues {
  background: rgba(255, 186, 214, 0.18);
  color: #ffdceb;
}

.editor-assistant-body {
  display: grid;
  min-height: 0;
  height: 100%;
  border: 1px solid rgba(255, 197, 229, 0.08);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(28, 26, 33, 0.98), rgba(23, 22, 28, 0.98));
  overflow: hidden;
}

.editor-assistant-panel {
  display: grid;
  gap: 16px;
  height: 100%;
  min-height: 0;
  padding: 16px;
}

.editor-assistant-panel[data-assistant-panel="chat"] {
  grid-template-rows: minmax(0, 1fr) auto;
}

.editor-assistant-panel[data-assistant-panel="review"] {
  grid-template-rows: minmax(0, 1fr);
}

.editor-assistant-panel.is-active {
  display: grid;
}

.editor-assistant-messages {
  display: grid;
  align-content: stretch;
  gap: 12px;
  min-height: 0;
  overflow: auto;
  padding: 4px 4px 0 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 184, 221, 0.42) rgba(255, 255, 255, 0.04);
}

.editor-assistant-empty {
  min-height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 28px 18px;
}

.editor-assistant-empty-copy {
  display: grid;
  gap: 16px;
  max-width: 22rem;
}

.editor-assistant-empty h4 {
  margin: 0;
  color: #fff4fb;
  font-size: clamp(1.7rem, 1vw + 1.35rem, 2.5rem);
  line-height: 1.02;
}

.editor-assistant-empty p {
  margin: 0;
  color: rgba(236, 222, 231, 0.82);
  font-size: 1rem;
  line-height: 1.7;
}

.editor-review-overview {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(255, 197, 229, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.025);
}

.editor-assistant-message {
  display: grid;
  gap: 6px;
}

.editor-assistant-message-role {
  color: rgba(243, 224, 235, 0.5);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.editor-assistant-message-bubble {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 197, 229, 0.1);
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(255, 176, 214, 0.08), transparent 28%),
    rgba(24, 20, 31, 0.96);
}

.editor-assistant-message-user .editor-assistant-message-bubble {
  background: linear-gradient(180deg, rgba(33, 29, 43, 0.98), rgba(21, 19, 29, 0.98));
}

.editor-assistant-message-bubble strong,
.editor-assistant-message-bubble p,
.editor-assistant-message-bubble ul {
  margin: 0;
}

.editor-assistant-message-bubble p,
.editor-assistant-message-bubble li,
.editor-assistant-message-meta {
  color: rgba(236, 222, 231, 0.8);
  line-height: 1.6;
}

.editor-assistant-message-bubble ul {
  padding-left: 1.2rem;
}

.editor-assistant-message-meta {
  font-size: 0.78rem;
  color: rgba(243, 224, 235, 0.52);
}

.editor-assistant-form {
  display: grid;
  gap: 0;
  padding: 14px 0 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: transparent;
  align-self: end;
}

.editor-assistant-compose-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  padding: 12px 12px 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
}

.editor-assistant-field {
  gap: 0;
  min-width: 0;
}

.editor-assistant-field textarea {
  min-height: 56px;
  height: 56px;
  max-height: 120px;
  resize: none;
  border: 0;
  background: transparent;
  padding: 0;
  line-height: 1.45;
  overflow: auto;
  font-size: 0.98rem;
}

.editor-assistant-field textarea:focus {
  border-color: transparent;
  box-shadow: none;
  outline: none;
}

.editor-assistant-field textarea::-webkit-scrollbar {
  display: none;
}

.editor-assistant-compose-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.editor-assistant-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  min-width: 34px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 244, 251, 0.92);
  cursor: pointer;
  align-self: end;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.editor-assistant-send:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.12);
}

.editor-assistant-send svg {
  width: 14px;
  height: 14px;
}

.editor-assistant-panel-review {
  min-height: 0;
}

.editor-review-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.editor-review-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.editor-review-language-inline {
  min-width: 0;
  max-width: 190px;
}

.editor-review-language-inline span {
  display: none;
}

.editor-review-language-inline select {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.editor-review-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.editor-review-btn-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(255, 197, 229, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff4fb;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.editor-review-btn-inline:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 197, 229, 0.22);
  background: rgba(255, 255, 255, 0.07);
}

.editor-review-summary {
  margin: 0;
  color: var(--muted);
}

.editor-review-empty h4,
.editor-issue-card h4 {
  margin: 0;
  font-size: 1.2rem;
}

.editor-review-empty p,
.editor-issue-card p,
.editor-issue-meta,
.editor-issue-label {
  margin: 0;
  color: var(--muted);
}

.editor-review-status {
  min-height: 20px;
  color: #e7d2de;
}

.editor-review-status.is-loading {
  color: #b7d5ff;
}

.editor-review-status.is-error {
  color: #ffaaa7;
}

.editor-review-issues {
  display: grid;
  gap: 14px;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 184, 221, 0.42) rgba(255, 255, 255, 0.04);
}

.editor-review-footer {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 4px;
}

.editor-review-powered-pill {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  flex: 0 0 auto;
  width: fit-content !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 30px !important;
  padding: 0 14px !important;
  aspect-ratio: auto !important;
  border: 1px solid rgba(118, 152, 228, 0.22);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(28, 42, 82, 0.92), rgba(17, 25, 50, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 8px 18px rgba(9, 15, 34, 0.2);
  color: #9fc2ff;
  font-size: clamp(0.62rem, 0.3vw + 0.56rem, 0.76rem) !important;
  font-weight: 700;
  letter-spacing: 0.015em;
  text-transform: none;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  place-items: initial !important;
}

.editor-review-empty {
  padding: 18px;
  border: 1px dashed rgba(255, 197, 229, 0.16);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
}

.editor-review-empty[data-review-state="loading"] {
  border-color: rgba(122, 209, 255, 0.2);
  background:
    radial-gradient(circle at top right, rgba(122, 209, 255, 0.08), transparent 28%),
    rgba(255, 255, 255, 0.02);
}

.editor-review-empty[data-review-state="success"] {
  border-color: rgba(123, 243, 194, 0.18);
  background:
    radial-gradient(circle at top right, rgba(123, 243, 194, 0.08), transparent 28%),
    rgba(255, 255, 255, 0.02);
}

.editor-review-empty[data-review-state="error"] {
  border-color: rgba(255, 170, 167, 0.2);
  background:
    radial-gradient(circle at top right, rgba(255, 170, 167, 0.09), transparent 28%),
    rgba(255, 255, 255, 0.02);
}

.editor-review-empty-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #f2dce6;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.editor-issue-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 197, 229, 0.12);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(255, 176, 214, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(21, 18, 28, 0.98), rgba(13, 11, 18, 0.96));
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.editor-issue-card:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 197, 229, 0.22);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.22);
}

.editor-issue-card.is-hovered,
.editor-issue-card:focus-within {
  border-color: rgba(122, 209, 255, 0.24);
  box-shadow: 0 20px 36px rgba(122, 209, 255, 0.08);
}

.editor-issue-card.is-active {
  border-color: rgba(255, 197, 229, 0.28);
  box-shadow: 0 20px 36px rgba(255, 132, 197, 0.08);
}

.editor-issue-card.is-resolving {
  opacity: 0.72;
  transform: scale(0.995);
}

.editor-issue-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.editor-issue-heading {
  display: grid;
  gap: 8px;
}

.editor-issue-tone {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.editor-issue-tone-spelling {
  background: rgba(119, 226, 186, 0.16);
  color: #bff7df;
}

.editor-issue-tone-grammar {
  background: rgba(255, 198, 133, 0.16);
  color: #ffe0b0;
}

.editor-issue-tone-style {
  background: rgba(122, 209, 255, 0.16);
  color: #cbeeff;
}

.editor-issue-tone-clarity {
  background: rgba(211, 183, 255, 0.16);
  color: #e5d5ff;
}

.editor-issue-tone-suggestion {
  background: rgba(211, 183, 255, 0.16);
  color: #e5d5ff;
}

.editor-issue-rule {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(142, 112, 255, 0.16);
  color: #c9b1ff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.editor-issue-block {
  display: grid;
  gap: 6px;
}

.editor-issue-label {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.editor-issue-snippet,
.editor-issue-suggestion {
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.editor-issue-snippet {
  border: 1px solid rgba(255, 197, 229, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: #f7ecf1;
}

.editor-issue-suggestion {
  border: 1px solid rgba(116, 216, 168, 0.18);
  background: rgba(38, 115, 88, 0.16);
  color: #dff9ef;
}

.editor-issue-suggestion-btn {
  display: grid;
  gap: 4px;
  width: 100%;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.editor-issue-suggestion-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(123, 243, 194, 0.3);
  background: rgba(50, 136, 103, 0.2);
}

.editor-issue-suggestion-btn:focus-visible {
  outline: 2px solid rgba(159, 194, 255, 0.72);
  outline-offset: 2px;
}

.editor-issue-suggestion-label {
  color: rgba(223, 249, 239, 0.72);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.editor-issue-suggestion-value {
  color: #f4fff9;
  font-weight: 700;
  line-height: 1.5;
}

.editor-issue-replacements {
  display: grid;
  gap: 10px;
}

.editor-issue-suggestion.is-primary {
  border-color: rgba(116, 216, 168, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.editor-issue-suggestion.is-empty {
  border-style: dashed;
  background: rgba(255, 255, 255, 0.03);
  color: #f2dce6;
}

.editor-issue-context {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 197, 229, 0.08);
  background: rgba(255, 255, 255, 0.025);
  line-height: 1.6;
}

.editor-issue-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.editor-issue-btn {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.editor-issue-btn:hover {
  transform: translateY(-1px);
}

.editor-issue-btn:disabled {
  transform: none;
  cursor: not-allowed;
  opacity: 0.52;
}

.editor-issue-btn-accept {
  border: 0;
  background: linear-gradient(135deg, #7cf3c2 0%, #4fbad8 100%);
  color: #09201f;
}

.editor-issue-btn-ignore {
  border: 1px solid rgba(255, 197, 229, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: #f2dce6;
}

.editor-inline-review-menu {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 40;
  width: auto;
  max-width: min(540px, calc(100vw - 24px));
  padding: 0;
  border: 1px solid rgba(255, 236, 245, 0.14);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(36, 33, 41, 0.98), rgba(25, 23, 30, 0.98));
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(18px);
  overflow: visible;
}

.editor-inline-review-menu::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 12px;
  height: 12px;
  border-left: 1px solid rgba(255, 236, 245, 0.14);
  border-top: 1px solid rgba(255, 236, 245, 0.14);
  background: rgba(29, 26, 34, 0.98);
  transform: translateX(-50%) rotate(45deg);
}

.editor-inline-review-menu[data-placement="bottom"]::after {
  top: -8px;
}

.editor-inline-review-menu[data-placement="top"]::after {
  bottom: -8px;
  transform: translateX(-50%) rotate(225deg);
}

.editor-inline-review-menu[hidden] {
  display: none;
}

.editor-inline-review-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 6px;
}

.editor-inline-review-toolbar-divider {
  width: 1px;
  align-self: stretch;
  margin: 2px 4px;
  background: rgba(255, 255, 255, 0.12);
}

.editor-inline-review-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  color: #f8eef3;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.editor-inline-review-tool:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 236, 245, 0.1);
}

.editor-inline-review-tool-format.is-active {
  border-color: rgba(255, 183, 218, 0.3);
  background:
    radial-gradient(circle at top, rgba(255, 183, 218, 0.14), transparent 56%),
    rgba(36, 30, 45, 0.96);
  color: #fff3f9;
}

.editor-inline-review-tool-italic {
  font-style: italic;
}

.editor-inline-review-tool-underline {
  text-decoration: underline;
}

.editor-inline-review-tool-color {
  position: relative;
  min-width: 40px;
  font-family: "Fraunces", serif;
  color: var(--inline-text-color, #f8eef3);
}

.editor-inline-review-tool-color::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 7px;
  width: 12px;
  height: 3px;
  border-radius: 999px;
  background: var(--inline-text-color, rgba(255, 236, 245, 0.4));
}

.editor-inline-review-tool-highlight {
  position: relative;
  min-width: 40px;
}

.editor-inline-review-tool-highlight::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 7px;
  width: 12px;
  height: 3px;
  border-radius: 999px;
  background: var(--inline-highlight-color, rgba(255, 236, 245, 0.4));
}

.editor-inline-review-tool-fix {
  position: relative;
  padding-right: 18px;
}

.editor-inline-review-tool-fix::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-62%) rotate(45deg);
}

.editor-inline-review-tool-fix.is-open {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 236, 245, 0.1);
}

.editor-inline-review-color-popup {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: min(332px, calc(100vw - 24px));
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255, 236, 245, 0.14);
  border-radius: 16px;
  background:
    radial-gradient(circle at top right, rgba(255, 176, 214, 0.12), transparent 34%),
    rgba(24, 21, 29, 0.99);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.38);
}

.editor-inline-review-highlight-popup {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: min(360px, calc(100vw - 24px));
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255, 236, 245, 0.14);
  border-radius: 16px;
  background:
    radial-gradient(circle at top right, rgba(255, 176, 214, 0.12), transparent 34%),
    rgba(24, 21, 29, 0.99);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.38);
}

.editor-inline-review-menu[data-horizontal-placement="left"] .editor-inline-review-color-popup {
  left: auto;
  right: 0;
}

.editor-inline-review-menu[data-horizontal-placement="left"] .editor-inline-review-highlight-popup {
  left: auto;
  right: 0;
}

.editor-inline-review-color-popup[hidden] {
  display: none;
}

.editor-inline-review-highlight-popup[hidden] {
  display: none;
}

.editor-inline-review-color-popup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 4px;
  color: rgba(242, 220, 230, 0.8);
  font-size: 0.82rem;
  line-height: 1.45;
}

.editor-inline-review-color-popup-meta {
  color: rgba(242, 220, 230, 0.62);
  font-size: 0.74rem;
  font-weight: 600;
}

.editor-inline-review-highlight-popup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 4px;
  color: rgba(242, 220, 230, 0.8);
  font-size: 0.82rem;
  line-height: 1.45;
}

.editor-inline-review-highlight-popup-meta {
  color: rgba(242, 220, 230, 0.62);
  font-size: 0.74rem;
  font-weight: 600;
}

.editor-inline-review-color-grid {
  display: grid;
  grid-template-columns: repeat(10, 28px);
  gap: 6px;
}

.editor-inline-review-highlight-grid {
  display: grid;
  grid-template-columns: repeat(10, 28px);
  gap: 6px;
}

.editor-inline-review-color-swatch {
  position: relative;
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.editor-inline-review-highlight-swatch {
  position: relative;
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.editor-inline-review-color-swatch::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background: var(--editor-swatch-color, transparent);
  box-shadow: inset 0 0 0 1px rgba(255, 236, 245, 0.08);
}

.editor-inline-review-highlight-swatch::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background: var(--editor-swatch-color, transparent);
  box-shadow: inset 0 0 0 1px rgba(255, 236, 245, 0.08);
}

.editor-inline-review-color-swatch.is-clear::before {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.editor-inline-review-highlight-swatch.is-clear::before {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.editor-inline-review-color-swatch.is-clear::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 7px;
  bottom: 7px;
  left: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, transparent 42%, rgba(255, 148, 182, 0.9) 42% 58%, transparent 58%);
}

.editor-inline-review-highlight-swatch.is-clear::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 7px;
  bottom: 7px;
  left: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, transparent 42%, rgba(255, 148, 182, 0.9) 42% 58%, transparent 58%);
}

.editor-inline-review-color-swatch.is-selected::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 7px;
  box-shadow:
    inset 0 0 0 2px rgba(15, 13, 20, 0.88),
    0 0 0 1px rgba(255, 209, 231, 0.82),
    0 0 14px rgba(255, 183, 218, 0.2);
}

.editor-inline-review-highlight-swatch.is-selected::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 7px;
  box-shadow:
    inset 0 0 0 2px rgba(15, 13, 20, 0.88),
    0 0 0 1px rgba(255, 209, 231, 0.82),
    0 0 14px rgba(255, 183, 218, 0.2);
}

.editor-inline-review-fix-popup {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: auto;
  width: min(320px, calc(100vw - 24px));
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255, 236, 245, 0.14);
  border-radius: 16px;
  background:
    radial-gradient(circle at top right, rgba(255, 176, 214, 0.12), transparent 34%),
    rgba(24, 21, 29, 0.99);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.38);
}

.editor-inline-review-menu[data-horizontal-placement="left"] .editor-inline-review-fix-popup {
  left: auto;
  right: 0;
}

.editor-inline-review-fix-popup[hidden] {
  display: none;
}

.editor-inline-review-fix-popup-head {
  display: grid;
  gap: 2px;
  padding: 2px 2px 4px;
  color: rgba(242, 220, 230, 0.8);
  font-size: 0.82rem;
  line-height: 1.45;
}

.editor-inline-review-fix-popup-meta {
  color: rgba(242, 220, 230, 0.62);
  font-size: 0.74rem;
  font-weight: 600;
}

.editor-inline-review-tool:focus-visible,
.editor-inline-review-fix-option:focus-visible,
.editor-inline-review-color-swatch:focus-visible,
.editor-inline-review-highlight-swatch:focus-visible {
  outline: 2px solid rgba(159, 194, 255, 0.72);
  outline-offset: 2px;
}

.editor-inline-review-fix-option {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(123, 243, 194, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  color: #f8eef3;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.editor-inline-review-fix-option:hover {
  transform: translateY(-1px);
  border-color: rgba(123, 243, 194, 0.28);
  background: rgba(123, 243, 194, 0.08);
}

.editor-inline-review-fix-option-index {
  color: rgba(183, 213, 255, 0.82);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.editor-inline-review-fix-option-value {
  color: #9df3c4;
  font-weight: 700;
  line-height: 1.45;
  word-break: break-word;
}

.editor-inline-review-fix-empty {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 197, 229, 0.14);
  color: rgba(242, 220, 230, 0.7);
  font-size: 0.9rem;
  line-height: 1.5;
}

.neurno-editor {
  min-height: 0;
  height: 100%;
  width: 100%;
}

.editor-canvas .ql-toolbar.ql-snow {
  border: 0;
}

.editor-canvas .ql-container.ql-snow {
  border: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  background: transparent;
}

.editor-canvas .ql-editor {
  flex: 1 1 auto;
  min-height: 0;
  padding: 34px 38px 44px;
  color: #f8eef3;
  font-size: 1rem;
  line-height: 1.8;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 184, 221, 0.42) rgba(255, 255, 255, 0.04);
}

.editor-canvas .ql-editor::-webkit-scrollbar,
.editor-assistant-messages::-webkit-scrollbar,
.editor-review-issues::-webkit-scrollbar {
  width: 12px;
}

.editor-canvas .ql-editor::-webkit-scrollbar-track,
.editor-assistant-messages::-webkit-scrollbar-track,
.editor-review-issues::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-left: 1px solid rgba(255, 197, 229, 0.06);
}

.editor-canvas .ql-editor::-webkit-scrollbar-thumb,
.editor-assistant-messages::-webkit-scrollbar-thumb,
.editor-review-issues::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 205, 229, 0.78), rgba(255, 153, 204, 0.38)) padding-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 12px rgba(255, 159, 211, 0.08);
}

.editor-canvas .ql-editor::-webkit-scrollbar-thumb:hover,
.editor-assistant-messages::-webkit-scrollbar-thumb:hover,
.editor-review-issues::-webkit-scrollbar-thumb:hover {
  background:
    linear-gradient(180deg, rgba(255, 214, 234, 0.92), rgba(255, 168, 214, 0.52)) padding-box;
}

.editor-canvas .ql-editor::-webkit-scrollbar-corner,
.editor-assistant-messages::-webkit-scrollbar-corner,
.editor-review-issues::-webkit-scrollbar-corner {
  background: transparent;
}

.editor-canvas .ql-editor.ql-blank::before {
  left: 38px;
  right: 38px;
  color: rgba(243, 224, 235, 0.34);
  font-style: normal;
}

.editor-canvas .ql-editor h1,
.editor-canvas .ql-editor h2,
.editor-canvas .ql-editor h3 {
  color: #fff3f9;
  font-family: "Fraunces", serif;
  line-height: 1.15;
}

.editor-canvas .ql-editor ul,
.editor-canvas .ql-editor ol {
  padding-left: 1.5em;
}

.editor-canvas .ql-editor .editor-text-highlight {
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0.08em 0.16em;
  border-radius: 0.16em;
  background-clip: padding-box;
  box-shadow:
    inset 0 -0.08em 0 rgba(0, 0, 0, 0.14),
    0 0 0 1px rgba(15, 16, 20, 0.06);
}

.editor-canvas .ql-editor table {
  width: 100%;
  margin: 0 0 1.4rem;
  border-collapse: collapse;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 197, 229, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
}

.editor-canvas .ql-editor th,
.editor-canvas .ql-editor td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 197, 229, 0.08);
  border-right: 1px solid rgba(255, 197, 229, 0.06);
  text-align: left;
  vertical-align: top;
}

.editor-canvas .ql-editor th {
  color: #fff3f9;
  font-weight: 700;
  background: rgba(255, 183, 218, 0.08);
}

.editor-canvas .ql-editor tr:last-child td {
  border-bottom: 0;
}

.editor-canvas .ql-editor th:last-child,
.editor-canvas .ql-editor td:last-child {
  border-right: 0;
}

.editor-canvas .ql-editor .review-highlight {
  border-bottom: 2px solid rgba(255, 171, 197, 0.76);
  background:
    linear-gradient(180deg, rgba(255, 171, 197, 0), rgba(255, 171, 197, 0.14));
  box-shadow:
    inset 0 -1px 0 rgba(255, 171, 197, 0.2),
    inset 0 0 0 1px rgba(255, 171, 197, 0.03);
  cursor: pointer;
  border-radius: 0.32em;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, opacity 180ms ease;
}

.editor-canvas .ql-editor .review-highlight[data-review-tone="spelling"] {
  border-bottom-color: rgba(119, 226, 186, 0.88);
  background:
    linear-gradient(180deg, rgba(119, 226, 186, 0), rgba(119, 226, 186, 0.16));
}

.editor-canvas .ql-editor .review-highlight[data-review-tone="grammar"] {
  border-bottom-color: rgba(255, 198, 133, 0.9);
  background:
    linear-gradient(180deg, rgba(255, 198, 133, 0), rgba(255, 198, 133, 0.18));
}

.editor-canvas .ql-editor .review-highlight[data-review-tone="style"] {
  border-bottom-color: rgba(122, 209, 255, 0.88);
  background:
    linear-gradient(180deg, rgba(122, 209, 255, 0), rgba(122, 209, 255, 0.16));
}

.editor-canvas .ql-editor .review-highlight[data-review-tone="clarity"],
.editor-canvas .ql-editor .review-highlight[data-review-tone="suggestion"] {
  border-bottom-color: rgba(211, 183, 255, 0.9);
  background:
    linear-gradient(180deg, rgba(211, 183, 255, 0), rgba(211, 183, 255, 0.16));
}

.editor-canvas .ql-editor .review-highlight.is-hovered {
  box-shadow:
    inset 0 -1px 0 rgba(255, 255, 255, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

.editor-canvas .ql-editor .review-highlight.is-active {
  background:
    linear-gradient(180deg, rgba(255, 230, 171, 0), rgba(255, 230, 171, 0.26));
  border-bottom-color: rgba(255, 230, 171, 0.96);
  box-shadow:
    inset 0 -1px 0 rgba(255, 230, 171, 0.28),
    0 0 0 1px rgba(255, 230, 171, 0.12);
}

.editor-canvas .ql-editor .review-highlight.is-resolving {
  opacity: 0.42;
  transform: scale(0.99);
}

@media (max-width: 1120px) {
  body.editor-mode .app-header {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .editor-body {
    grid-template-columns: 1fr;
  }

  .editor-pane-head {
    flex-direction: column;
    align-items: stretch;
  }

  .editor-assistant-tabs {
    align-self: flex-start;
  }
}

@media (max-width: 820px) {
  .editor-shell {
    padding: 18px;
  }

  .editor-shell-head {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .editor-review-actions {
    width: 100%;
    justify-items: stretch;
  }

  .editor-head-support,
  .editor-head-document-tools,
  .editor-review-group {
    justify-content: stretch;
  }

  .editor-file-status,
  .editor-actions-label {
    justify-self: start;
  }

  .editor-language-field,
  .editor-fix-all-btn,
  .editor-review-btn {
    width: 100%;
  }

  .editor-file-toggle {
    width: auto;
  }

  .editor-file-dropdown {
    right: 0;
    left: 0;
  }

  .editor-file-submenu {
    position: static;
    width: 100%;
    margin-top: 6px;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .editor-language-field,
  .editor-review-btn,
  .editor-file-status {
    width: 100%;
  }

  .editor-file-status {
    text-align: left;
  }

  .editor-toolbar {
    padding: 12px;
  }

  .editor-toolbar .ql-formats {
    padding-right: 0;
    border-right: 0;
  }

  .editor-writer-pane,
  .editor-assistant-pane {
    padding: 16px;
  }

  .editor-assistant-compose-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .editor-canvas .ql-editor,
  .neurno-editor {
    min-height: 0;
  }

  .editor-canvas .ql-editor {
    padding: 28px 24px 34px;
  }

  .editor-canvas .ql-editor.ql-blank::before {
    left: 24px;
    right: 24px;
  }
}

.status-text {
  margin: 0;
  min-height: 24px;
}

.library-grid,
.phrase-grid,
.flashcard-deck {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.library-grid,
.phrase-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.word-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.word-card-head > div {
  min-width: 0;
}

.word-card h3,
.phrase-card h3,
.writing-callout h3,
.quiz-question h3,
.empty-state h3 {
  margin: 12px 0 10px;
  font-size: 1.5rem;
}

.word-card h3,
.phrase-card h3,
.writing-callout h3,
.quiz-question h3,
.empty-state h3,
.word-card p,
.phrase-card p,
.support-card p,
.status-text,
.quiz-option {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.word-card p,
.phrase-card p,
.writing-callout p,
.support-card p {
  margin: 0;
}

.word-card .study-btn {
  margin-top: auto;
  align-self: flex-start;
}

.icon-btn,
.study-btn,
.quiz-option {
  font: inherit;
  cursor: pointer;
}

.icon-btn,
.study-btn {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 700;
}

.icon-btn {
  border: 1px solid var(--line);
  background: var(--panel-strong);
}

.study-btn {
  border: 0;
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.flashcard-deck {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.flashcard {
  position: relative;
  min-height: 340px;
  border-radius: 24px;
  border: 1px solid var(--line);
  overflow: hidden;
  perspective: 1200px;
  -webkit-perspective: 1200px;
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  animation: rise-in 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.flashcard:hover,
.flashcard:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(255, 149, 202, 0.14);
}

.flashcard:nth-child(2) {
  animation-delay: 60ms;
}

.flashcard:nth-child(3) {
  animation-delay: 120ms;
}

.flashcard:nth-child(4) {
  animation-delay: 180ms;
}

.flashcard-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 340px;
  border-radius: inherit;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  will-change: transform;
  transition: transform 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

.flashcard-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 22px;
  border-radius: inherit;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  background:
    radial-gradient(circle at top right, rgba(255, 184, 220, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(20, 18, 24, 0.98), rgba(12, 11, 16, 0.96));
}

.flashcard-face h3,
.flashcard-face p {
  margin: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.flashcard-face h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  line-height: 1.15;
}

.flashcard-face p {
  line-height: 1.5;
}

.flashcard-front {
  transform: rotateY(0deg);
}

.flashcard-back {
  transform: rotateY(180deg);
  justify-content: flex-start;
  background:
    radial-gradient(circle at bottom left, rgba(255, 180, 216, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(16, 15, 20, 0.98), rgba(9, 8, 12, 0.98));
}

.flashcard-back h3 {
  font-size: clamp(1.05rem, 1.9vw, 1.35rem);
  line-height: 1.2;
}

.flashcard-back p {
  font-size: 0.98rem;
  line-height: 1.45;
}

.flashcard.is-flipped .flashcard-inner {
  transform: rotateY(180deg);
}

.quiz-card {
  min-height: 320px;
}

.quiz-options {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.quiz-option {
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px 16px;
  background: var(--panel-strong);
  color: var(--ink);
  font-weight: 600;
  text-align: left;
}

.quiz-option:hover,
.icon-btn:hover,
.study-btn:hover,
.secondary-btn:hover,
.tool-tab:hover {
  box-shadow: 0 10px 24px rgba(255, 155, 205, 0.16);
}

.scoreboard {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 220px;
}

.scoreboard h3 {
  margin: 12px 0;
  font-size: 3rem;
}

.writing-prompt-card {
  display: grid;
  gap: 16px;
  margin-top: 14px;
}

.writing-prompt-card > *,
#libraryGrid > *,
#phraseGrid > * {
  animation: rise-in 400ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.writing-prompt-card > *:nth-child(2),
#libraryGrid > *:nth-child(2),
#phraseGrid > *:nth-child(2) {
  animation-delay: 60ms;
}

.writing-prompt-card > *:nth-child(3),
#libraryGrid > *:nth-child(3),
#phraseGrid > *:nth-child(3) {
  animation-delay: 120ms;
}

.writing-prompt-card > *:nth-child(4),
#libraryGrid > *:nth-child(4),
#phraseGrid > *:nth-child(4) {
  animation-delay: 180ms;
}

.mock-card {
  min-height: 320px;
  margin-top: 18px;
}

.speed-card {
  min-height: 320px;
  margin-top: 18px;
}

.suggestion-layout {
  align-items: start;
}

.suggestion-help h3 {
  margin: 12px 0 8px;
  font-size: 1.5rem;
}

.suggestion-help p {
  margin: 0;
}

#suggestionMessage {
  min-height: 220px;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.empty-state {
  text-align: center;
}

@media (max-width: 1040px) {
  .hero,
  .tool-layout,
  .writing-layout,
  .dashboard-grid,
  .subject-overview-grid,
  .control-grid,
  .control-grid.compact {
    grid-template-columns: 1fr;
  }

  .panel-head,
  .section-bar,
  .action-row {
    flex-direction: column;
    align-items: start;
  }

  .top-toolbar {
    grid-template-columns: 1fr;
  }

  .tool-nav-categories,
  .tool-nav-language {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 18px, 1240px);
    padding-top: 18px;
    padding-bottom: 28px;
  }

  .hero-copy,
  .hero-panel,
  .tool-panel,
  .surface-card,
  .dashboard-card,
  .word-card,
  .phrase-card,
  .empty-state,
  .quiz-card,
  .writing-callout,
  .support-card {
    padding: 18px;
    border-radius: 20px;
  }

  .flashcard {
    min-height: 380px;
  }

  .flashcard-face {
    padding: 20px;
  }

  .flashcard-face h3 {
    font-size: 1.9rem;
  }

  .flashcard-back h3 {
    font-size: 1.2rem;
  }

  .flashcard-back p {
    font-size: 0.95rem;
  }

  .hero-copy h1 {
    max-width: 12ch;
  }

  .support-grid,
  .metric-grid,
  .library-grid,
  .phrase-grid,
  .flashcard-deck {
    grid-template-columns: 1fr;
  }

  .top-toolbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .hero-actions,
  .action-row {
    width: 100%;
  }

  .hero-actions > *,
  .action-row > button,
  .action-row > a {
    width: 100%;
  }

  .toolbar-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .app-auth-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .app-category-nav {
    width: 100%;
    justify-content: flex-start;
    margin: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .app-category-nav::-webkit-scrollbar {
    display: none;
  }

  .tool-nav {
    position: sticky;
    top: 10px;
    z-index: 3;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(140px, 1fr);
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    padding: 8px;
    border-radius: 18px;
    background: rgba(11, 10, 15, 0.9);
    backdrop-filter: blur(12px);
  }

  .tool-nav-categories,
  .tool-nav-language {
    grid-auto-columns: minmax(170px, 1fr);
    grid-template-columns: none;
  }

  .tool-nav::-webkit-scrollbar {
    display: none;
  }

  .tool-tab {
    min-height: 50px;
    white-space: nowrap;
  }

  .theme-toggle {
    width: 100%;
  }

  .profile-button {
    width: auto;
  }

  .profile-popover {
    right: 0;
    left: 0;
    width: 100%;
  }

  .language-switcher {
    width: 100%;
    padding: 10px 14px;
    border-radius: 20px;
  }

  .profile-language-grid {
    grid-template-columns: 1fr;
  }

  .language-switcher select {
    min-width: 0;
  }

  .control-grid,
  .control-grid.compact {
    gap: 12px;
  }

  .profile-popover-head {
    align-items: flex-start;
  }

  .profile-stats-grid,
  .profile-insights {
    grid-template-columns: 1fr;
  }

  .profile-ring {
    min-width: 92px;
    min-height: 92px;
  }

  .language-system-card {
    grid-column: auto;
  }

  .control-field {
    gap: 8px;
  }

  .panel-head p,
  .status-text {
    max-width: none;
  }

  .word-card-head {
    flex-direction: column;
  }

  .word-card .study-btn,
  .icon-btn,
  .study-btn,
  .primary-btn,
  .secondary-btn,
  .quiz-option {
    width: 100%;
  }

  textarea {
    min-height: 240px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
  }

  html {
    scroll-behavior: auto;
  }

  .flashcard-inner {
    transition: transform 320ms ease !important;
  }
}

.auth-shell {
  min-height: 100vh;
}

.auth-body {
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 193, 226, 0.2), transparent 16%),
    radial-gradient(circle at 84% 10%, rgba(255, 165, 211, 0.14), transparent 20%),
    radial-gradient(circle at 50% 100%, rgba(255, 191, 226, 0.08), transparent 22%),
    linear-gradient(180deg, #000000 0%, #060508 42%, #11070d 100%);
}

.auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 204, 232, 0.08);
  border-radius: 20px;
  background: rgba(8, 8, 11, 0.72);
  backdrop-filter: blur(18px);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-family: "Fraunces", serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: inline-flex;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  border-radius: 50%;
  filter: drop-shadow(0 12px 20px rgba(7, 15, 34, 0.26));
}

.brand-mark img {
  display: none !important;
}

.brand-mark-ring {
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
  border: 2.5px solid rgba(255, 233, 243, 0.94);
  border-right-color: rgba(255, 233, 243, 0.14);
  border-radius: 50%;
  box-shadow:
    0 0 0 1px rgba(255, 201, 227, 0.06),
    0 0 18px rgba(255, 180, 220, 0.12);
}

.brand-mark-orbit {
  position: absolute;
  inset: 8px;
  z-index: 2;
  animation: orbit-spin 5.4s linear infinite;
}

.brand-mark-orbit-ball {
  position: absolute;
  top: 0;
  left: 50%;
  width: 7px;
  height: 7px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffe5f1 0%, #ffb9dc 28%, #ff7aba 64%, #ff5eaa 100%);
  box-shadow:
    0 0 0 2px rgba(24, 19, 31, 0.78),
    0 0 18px rgba(255, 110, 181, 0.48),
    0 0 30px rgba(255, 155, 203, 0.2);
}

.auth-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  flex: 1;
  justify-content: space-between;
}

.public-nav-center,
.public-nav-actions {
  display: flex;
  align-items: center;
}

.public-nav-center {
  gap: 10px;
  margin: 0 auto;
}

.public-nav-actions {
  gap: 12px;
}

.public-nav-link,
.public-nav-login {
  color: rgba(255, 242, 248, 0.88);
  text-decoration: none;
  font-weight: 600;
}

.public-nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.public-nav-link:hover,
.public-nav-link.is-active {
  background: rgba(255, 201, 227, 0.08);
  color: var(--ink);
}

.public-nav-login:hover,
.public-nav-link:hover {
  transform: translateY(-1px);
}

.public-nav-cta {
  min-height: 48px;
  padding: 0 20px;
}

.auth-nav-label {
  color: var(--muted);
  font-weight: 700;
}

.auth-nav-user {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.auth-nav-avatar,
.admin-user-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 226, 239, 0.98), rgba(255, 172, 209, 0.88));
  color: #2a0f1e;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-nav-avatar img,
.admin-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-layout {
  display: grid;
  place-items: center;
}

.auth-layout-split {
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 22px;
  align-items: stretch;
}

.auth-hero-card,
.auth-card {
  width: 100%;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(12, 11, 16, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.auth-hero-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  background:
    radial-gradient(circle at top right, rgba(255, 183, 220, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(18, 16, 22, 0.94), rgba(10, 9, 13, 0.92));
}

.auth-hero-card h1 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(2.4rem, 4vw, 4.3rem);
  line-height: 0.94;
  max-width: 11ch;
}

.auth-hero-card-login {
  background:
    radial-gradient(circle at top right, rgba(255, 191, 225, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(16, 14, 20, 0.94), rgba(8, 7, 11, 0.96));
}

.auth-card-wide {
  width: min(100%, 820px);
}

.auth-card-admin {
  width: min(100%, 1280px);
}

.auth-card-form {
  max-width: 560px;
  justify-self: stretch;
  background: rgba(10, 10, 14, 0.92);
}

.auth-copy {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.65;
}

.auth-card h1 {
  margin: 0 0 12px;
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.95;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.remember-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 201, 227, 0.05);
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.remember-toggle:hover {
  border-color: rgba(255, 174, 213, 0.3);
  background: rgba(255, 201, 227, 0.08);
  box-shadow: 0 12px 28px rgba(255, 162, 207, 0.08);
  transform: translateY(-1px);
}

.remember-toggle .remember-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
  margin: 0;
}

.remember-toggle .remember-checkbox:focus-visible {
  outline: none;
}

.remember-toggle .remember-slider {
  display: inline-flex;
  align-items: center;
  width: 48px;
  height: 28px;
  padding: 3px;
  border: 1px solid rgba(255, 174, 213, 0.24);
  border-radius: 999px;
  background: rgba(255, 201, 227, 0.12);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.34);
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.remember-toggle .remember-slider::before {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 234, 245, 0.98), rgba(255, 184, 220, 0.96));
  box-shadow: 0 3px 8px rgba(255, 151, 203, 0.16);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.remember-toggle:hover .remember-slider::before {
  box-shadow: 0 4px 12px rgba(48, 37, 60, 0.18);
}

.remember-toggle .remember-checkbox:focus-visible + .remember-slider {
  outline: 2px solid rgba(255, 174, 213, 0.28);
  outline-offset: 2px;
}

.remember-toggle .remember-checkbox:checked + .remember-slider {
  border-color: rgba(255, 174, 213, 0.42);
  background: linear-gradient(135deg, #ffd2e7 0%, #ff94c6 100%);
  box-shadow: inset 0 1px 4px rgba(112, 28, 70, 0.18);
}

.remember-toggle .remember-checkbox:checked + .remember-slider::before {
  transform: translateX(20px);
  background: rgba(255, 245, 250, 0.98);
  box-shadow: 0 4px 12px rgba(255, 151, 203, 0.22);
}

.remember-toggle .remember-copy {
  line-height: 1;
}

.auth-submit-btn {
  min-height: 56px;
  font-size: 1rem;
}

.auth-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.auth-links a {
  color: var(--accent-deep);
  font-weight: 700;
  text-decoration: none;
}

.flash,
.inline-message {
  margin-bottom: 20px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  font-weight: 700;
}

.flash-success,
.inline-success {
  background: rgba(183, 231, 201, 0.45);
  color: #154e2c;
}

.flash-info,
.inline-info {
  background: rgba(233, 219, 255, 0.46);
  color: #4c3266;
}

.flash-error,
.inline-error {
  background: rgba(245, 173, 173, 0.36);
  color: #6a1b1b;
}

.auth-feature-list,
.auth-stat-grid {
  display: grid;
  gap: 14px;
}

.auth-stat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-feature {
  padding: 18px;
  border: 1px solid rgba(255, 198, 228, 0.14);
  border-radius: 22px;
  background: rgba(255, 201, 227, 0.05);
}

.auth-feature p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.admin-dashboard {
  display: grid;
  gap: 22px;
}

.admin-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.admin-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.admin-metric-card,
.admin-table-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 201, 227, 0.05);
}

.admin-metric-card-wide {
  grid-column: span 2;
}

.admin-metric-card strong {
  display: block;
  margin: 14px 0 8px;
  font-family: "Fraunces", serif;
  font-size: 2.3rem;
}

.admin-metric-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.admin-table-card h2 {
  margin: 14px 0 10px;
  font-family: "Fraunces", serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

.admin-table th,
.admin-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.admin-table th {
  color: var(--accent-deep);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-table td {
  color: var(--ink);
  vertical-align: middle;
}

.admin-user-cell {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.admin-status {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-status.is-verified {
  background: rgba(183, 231, 201, 0.45);
  color: #154e2c;
}

.admin-status.is-pending {
  background: rgba(245, 173, 173, 0.36);
  color: #6a1b1b;
}

.admin-panel-head {
  margin-bottom: 18px;
}

.admin-danger-card {
  border-color: rgba(255, 132, 170, 0.22);
  background:
    radial-gradient(circle at top right, rgba(255, 162, 196, 0.18), transparent 28%),
    rgba(25, 12, 17, 0.72);
}

.admin-bulk-delete {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.admin-filter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.6fr) auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 18px;
}

.admin-filter-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-action-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-action-stack form {
  margin: 0;
}

.admin-action-btn {
  min-height: 42px;
  padding: 0 14px;
}

.admin-danger-btn {
  border-color: rgba(255, 146, 184, 0.24);
  color: #ffb7d4;
  background: rgba(255, 163, 198, 0.08);
}

.admin-danger-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.admin-empty {
  color: var(--muted);
  text-align: center;
}

code {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 201, 227, 0.08);
}

.hero-account-panel {
  background:
    radial-gradient(circle at top right, rgba(255, 188, 222, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(17, 15, 20, 0.97), rgba(10, 9, 13, 0.94));
}

.account-summary strong {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
}

.marketing-page {
  display: grid;
  gap: 56px;
  position: relative;
}

.marketing-page::before,
.marketing-page::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
  filter: blur(12px);
}

.marketing-page::before {
  top: 44px;
  left: -40px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 171, 214, 0.14), transparent 68%);
  animation: glow-pulse 6s ease-in-out infinite;
}

.marketing-page::after {
  top: 280px;
  right: -60px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 188, 222, 0.1), transparent 72%);
  animation: glow-pulse 8s ease-in-out 1.2s infinite;
}

.marketing-page > * {
  position: relative;
  z-index: 1;
}

.marketing-hero-media {
  display: grid;
  justify-items: center;
}

.marketing-hero-video-shell {
  position: relative;
  overflow: hidden;
  width: min(100%, 1040px);
  min-height: 360px;
  border: 1px solid rgba(255, 204, 232, 0.14);
  border-radius: 32px;
  background:
    radial-gradient(circle at top left, rgba(255, 194, 228, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(14, 13, 18, 0.96), rgba(8, 8, 12, 0.94));
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
}

.marketing-hero-video-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 244, 249, 0.06);
}

.marketing-hero-video {
  display: block;
  width: 100%;
  min-height: 360px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  background: #09080c;
}

.marketing-section#features::before,
.marketing-section#features::after,
.marketing-editor-section::before,
.marketing-editor-section::after,
.marketing-import-section::before,
.marketing-import-section::after,
.marketing-interactive-section::before,
.marketing-interactive-section::after,
.marketing-journey-section::before,
.marketing-journey-section::after,
.marketing-section#pricing::before,
.marketing-section#pricing::after,
.marketing-faq-section::before,
.marketing-faq-section::after {
  content: "";
  position: absolute;
  top: 12%;
  bottom: 12%;
  width: 180px;
  pointer-events: none;
  filter: blur(42px);
  opacity: 0.28;
  z-index: 0;
}

.marketing-section#features::before,
.marketing-editor-section::before,
.marketing-import-section::before,
.marketing-interactive-section::before,
.marketing-journey-section::before,
.marketing-section#pricing::before,
.marketing-faq-section::before {
  left: -120px;
}

.marketing-section#features::after,
.marketing-editor-section::after,
.marketing-import-section::after,
.marketing-interactive-section::after,
.marketing-journey-section::after,
.marketing-section#pricing::after,
.marketing-faq-section::after {
  right: -120px;
}

.marketing-section#features::before,
.marketing-section#features::after {
  background: radial-gradient(circle, rgba(214, 72, 72, 0.34), transparent 68%);
}

.marketing-editor-section::before,
.marketing-editor-section::after {
  background: radial-gradient(circle, rgba(255, 201, 92, 0.3), transparent 68%);
}

.marketing-import-section::before,
.marketing-import-section::after {
  background: radial-gradient(circle, rgba(76, 134, 255, 0.34), transparent 68%);
}

.marketing-interactive-section::before,
.marketing-interactive-section::after {
  background: radial-gradient(circle, rgba(156, 98, 255, 0.34), transparent 68%);
}

.marketing-journey-section::before,
.marketing-journey-section::after {
  background: radial-gradient(circle, rgba(92, 208, 128, 0.34), transparent 68%);
}

.marketing-section#pricing::before,
.marketing-section#pricing::after {
  background: radial-gradient(circle, rgba(255, 192, 92, 0.28), transparent 68%);
}

.marketing-faq-section::before,
.marketing-faq-section::after {
  background: radial-gradient(circle, rgba(126, 163, 255, 0.26), transparent 68%);
}

.marketing-hero,
.marketing-section-split,
.marketing-cta {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 22px;
}

.marketing-hero-copy,
.marketing-hero-panel,
.marketing-feature-card,
.marketing-showcase-card,
.marketing-quote-card,
.pricing-card,
.faq-card,
.marketing-cta,
.marketing-callout-card,
.marketing-stat-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.marketing-hero-copy,
.marketing-hero-panel,
.marketing-feature-card,
.marketing-showcase-card,
.marketing-quote-card,
.pricing-card,
.faq-card,
.marketing-callout-card,
.marketing-stat-card {
  padding: 28px;
}

.marketing-hero-copy {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(255, 194, 228, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(15, 14, 19, 0.92), rgba(8, 8, 12, 0.88));
  animation: rise-in 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.marketing-hero-copy::after {
  content: "";
  position: absolute;
  left: -30%;
  right: -30%;
  bottom: 14%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 196, 229, 0.5), transparent);
  animation: shimmer-line 6s linear infinite;
}

.marketing-hero-copy h1,
.marketing-section-head h2,
.marketing-feature-card h3,
.marketing-showcase-card h2,
.marketing-quote-card blockquote,
.pricing-card h3,
.faq-card h3,
.marketing-cta h2,
.marketing-stat-card h2 {
  font-family: "Fraunces", serif;
}

.marketing-hero-copy h1,
.marketing-section-head h2,
.marketing-showcase-card h2,
.marketing-cta h2,
.marketing-stat-card h2 {
  margin: 0 0 14px;
}

.marketing-proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.marketing-live-band {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.marketing-live-band span,
.marketing-proof-strip span {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 201, 227, 0.06);
  font-size: 0.92rem;
  font-weight: 700;
}

.marketing-live-band span {
  background: linear-gradient(135deg, rgba(255, 180, 218, 0.16), rgba(255, 180, 218, 0.04));
  box-shadow: 0 0 0 1px rgba(255, 198, 228, 0.08), 0 14px 28px rgba(255, 144, 200, 0.08);
  animation: float-slow 5.6s ease-in-out infinite;
}

.marketing-live-band span:nth-child(2) {
  animation-delay: 0.8s;
}

.marketing-live-band span:nth-child(3) {
  animation-delay: 1.6s;
}

.marketing-hero-panel,
.marketing-section {
  display: grid;
  gap: 18px;
}

.marketing-section {
  padding-top: 10px;
  padding-bottom: 10px;
}

.marketing-hero-panel {
  animation: rise-in 820ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.marketing-visual-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(255, 188, 222, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(14, 13, 18, 0.98), rgba(8, 8, 11, 0.96));
  box-shadow: var(--shadow);
}

.marketing-visual-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  z-index: 1;
}

.marketing-visual-main,
.marketing-visual-mini {
  border: 1px solid rgba(255, 197, 229, 0.14);
  border-radius: 22px;
  background: rgba(255, 201, 227, 0.05);
}

.marketing-visual-main {
  grid-column: 1 / -1;
  padding: 22px;
}

.marketing-visual-main strong,
.marketing-visual-mini strong {
  display: block;
  font-family: "Fraunces", serif;
}

.marketing-visual-main strong {
  margin: 14px 0 10px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.marketing-visual-main p,
.marketing-visual-mini span {
  color: var(--muted);
}

.marketing-visual-mini {
  padding: 18px;
  min-height: 112px;
  animation: float-wide 5.8s ease-in-out infinite;
}

.marketing-visual-mini strong {
  margin-top: 10px;
  font-size: 2rem;
}

.marketing-visual-mini-2 {
  animation-delay: 1s;
}

.marketing-visual-mini-3 {
  animation-delay: 2s;
}

.marketing-visual-orbit {
  position: absolute;
  inset: 18px;
  pointer-events: none;
  animation: orbit-spin 22s linear infinite;
}

.marketing-visual-orbit span {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffe0ef, #ff99c7);
  box-shadow: 0 0 18px rgba(255, 149, 202, 0.54);
}

.marketing-visual-orbit span:nth-child(1) {
  top: 12%;
  right: 16%;
}

.marketing-visual-orbit span:nth-child(2) {
  right: 8%;
  bottom: 30%;
}

.marketing-visual-orbit span:nth-child(3) {
  left: 18%;
  bottom: 8%;
}

.marketing-stat-grid,
.marketing-feature-grid,
.pricing-grid,
.faq-grid {
  display: grid;
  gap: 16px;
}

.marketing-stat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

  .marketing-feature-grid,
  .marketing-editor-shell,
  .pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

.marketing-section#features .eyebrow {
  color: #ff8e8e;
}

.marketing-section#features .marketing-feature-card {
  border-color: rgba(205, 86, 86, 0.18);
  background:
    radial-gradient(circle at top right, rgba(200, 63, 63, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(16, 11, 14, 0.96), rgba(11, 8, 10, 0.94));
  box-shadow:
    var(--shadow),
    inset 0 0 0 1px rgba(255, 116, 116, 0.03);
}

.marketing-section#features .marketing-feature-card .card-tag {
  border: 1px solid rgba(219, 95, 95, 0.18);
  background: rgba(181, 54, 54, 0.14);
  color: #ff9e9e;
}

.marketing-editor-section {
  gap: 26px;
  margin-top: 18px;
  margin-bottom: 18px;
}

.marketing-editor-head {
  text-align: center;
  justify-self: center;
}

.marketing-editor-head .eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 202, 91, 0.26);
  border-radius: 999px;
  background: rgba(255, 195, 77, 0.08);
  color: #ffc864;
  box-shadow: 0 12px 28px rgba(63, 42, 8, 0.22);
}

.marketing-editor-head .hero-text {
  max-width: 740px;
  margin: 0 auto;
}

.marketing-editor-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 18px;
}

.marketing-editor-stage,
.marketing-editor-note {
  border: 1px solid rgba(255, 202, 91, 0.16);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(255, 205, 113, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(19, 15, 10, 0.96), rgba(11, 9, 7, 0.94));
  box-shadow: var(--shadow);
}

.marketing-editor-stage {
  padding: 18px;
  overflow: hidden;
  position: relative;
}

.marketing-editor-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(rgba(255, 209, 109, 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.18;
  pointer-events: none;
}

.marketing-editor-topbar {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.marketing-editor-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffe6ae, #ffbf48);
  box-shadow: 0 0 12px rgba(255, 193, 73, 0.34);
}

.marketing-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.marketing-editor-toolbar span {
  padding: 10px 14px;
  border: 1px solid rgba(255, 202, 91, 0.14);
  border-radius: 999px;
  background: rgba(255, 196, 83, 0.06);
  color: #ffd27f;
  font-size: 0.86rem;
  font-weight: 700;
}

.marketing-editor-page {
  position: relative;
  z-index: 1;
  padding: 24px;
  border: 1px solid rgba(255, 202, 91, 0.14);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(30, 23, 15, 0.92), rgba(18, 14, 9, 0.9));
}

.marketing-editor-kicker {
  display: inline-flex;
  margin-bottom: 14px;
  color: #ffd27f;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.marketing-editor-page h3 {
  margin: 0 0 12px;
  font-family: "Fraunces", serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.marketing-editor-page p {
  margin: 0;
  max-width: 60ch;
  color: var(--muted);
  line-height: 1.8;
}

.marketing-editor-lines {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.marketing-editor-lines span {
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 207, 101, 0.12);
}

.marketing-editor-lines span:nth-child(1) {
  width: 92%;
}

.marketing-editor-lines span:nth-child(2) {
  width: 78%;
}

.marketing-editor-lines span:nth-child(3) {
  width: 85%;
}

.marketing-editor-notes {
  display: grid;
  gap: 14px;
}

.marketing-editor-note {
  padding: 22px;
}

.marketing-editor-note .card-tag {
  border-color: rgba(255, 202, 91, 0.18);
  background: rgba(255, 189, 59, 0.14);
  color: #ffd27f;
}

.marketing-editor-note p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.marketing-faq-section {
  display: grid;
  gap: 20px;
}

.marketing-import-section {
  gap: 28px;
  margin-top: 18px;
  margin-bottom: 18px;
}

.marketing-import-head {
  max-width: 980px;
  text-align: center;
  justify-self: center;
}

.marketing-import-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 14px;
  border: 1px solid rgba(77, 122, 226, 0.34);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(13, 32, 72, 0.92), rgba(10, 20, 44, 0.92));
  color: #78a8ff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(7, 15, 34, 0.34);
}

.marketing-section#features .eyebrow,
.marketing-interactive-section .eyebrow,
.marketing-journey-section .eyebrow,
.marketing-section#pricing .eyebrow,
.marketing-faq-section .eyebrow,
.marketing-editor-head .eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 16px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(16, 18, 30, 0.92), rgba(9, 11, 20, 0.92));
  box-shadow: 0 12px 28px rgba(7, 15, 34, 0.34);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.marketing-section#features .eyebrow {
  border-color: rgba(214, 72, 72, 0.34);
  color: #ff8e8e;
  background: linear-gradient(180deg, rgba(49, 16, 16, 0.92), rgba(30, 11, 11, 0.92));
}

.marketing-editor-head .eyebrow {
  border-color: rgba(255, 202, 91, 0.34);
  color: #ffc864;
  background: linear-gradient(180deg, rgba(58, 42, 10, 0.92), rgba(39, 29, 8, 0.92));
}

.marketing-interactive-section .eyebrow {
  border-color: rgba(161, 112, 255, 0.34);
  color: #c6a4ff;
  background: linear-gradient(180deg, rgba(35, 20, 64, 0.92), rgba(22, 13, 42, 0.92));
}

.marketing-journey-section .eyebrow,
.marketing-section-split .eyebrow {
  border-color: rgba(111, 201, 141, 0.34);
  color: #7fdca1;
  background: linear-gradient(180deg, rgba(18, 47, 28, 0.92), rgba(12, 29, 18, 0.92));
}

.marketing-section#pricing .eyebrow {
  border-color: rgba(255, 192, 92, 0.34);
  color: #ffd27f;
  background: linear-gradient(180deg, rgba(59, 40, 12, 0.92), rgba(39, 27, 8, 0.92));
}

.marketing-faq-section .eyebrow {
  border-color: rgba(126, 163, 255, 0.34);
  color: #9ab8ff;
  background: linear-gradient(180deg, rgba(18, 32, 64, 0.92), rgba(11, 20, 40, 0.92));
}

.marketing-import-head h2 {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.marketing-import-head .hero-text {
  max-width: 700px;
  margin: 0 auto;
}

.marketing-section#features .marketing-section-head,
.marketing-interactive-section .marketing-section-head,
.marketing-journey-section .marketing-section-head,
.marketing-section#pricing .marketing-section-head,
.marketing-faq-section .marketing-section-head {
  max-width: none;
  text-align: center;
  justify-self: center;
}

.marketing-import-shell {
  display: grid;
  gap: 20px;
  justify-items: center;
}

.marketing-import-stage {
  position: relative;
  overflow: hidden;
  width: min(100%, 1040px);
  min-height: 360px;
  border: 1px solid rgba(63, 95, 157, 0.28);
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(7, 9, 16, 0.99), rgba(3, 5, 10, 0.99));
  box-shadow: 0 32px 68px rgba(0, 0, 0, 0.34);
}

.marketing-import-video {
  display: block;
  width: 100%;
  min-height: 360px;
  height: auto;
  object-fit: cover;
  object-position: center;
}

.marketing-import-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 11, 19, 0.08), rgba(7, 11, 19, 0.02) 28%, rgba(7, 11, 19, 0.18) 100%);
  opacity: 1;
  pointer-events: none;
}

.marketing-import-glow {
  position: absolute;
  inset: 2% 12% 28%;
  background:
    radial-gradient(circle, rgba(58, 128, 255, 0.34), transparent 58%);
  filter: blur(26px);
  opacity: 0.85;
  pointer-events: none;
  animation: import-glow-drift 4.5s ease-in-out infinite;
  transition: background 320ms ease;
}

.marketing-import-gridline {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: 30px;
  height: 172px;
  background:
    linear-gradient(to top, rgba(30, 58, 112, 0.24), transparent 72%),
    repeating-linear-gradient(90deg, rgba(76, 119, 213, 0.18) 0, rgba(76, 119, 213, 0.18) 1px, transparent 1px, transparent 52px),
    repeating-linear-gradient(0deg, rgba(76, 119, 213, 0.14) 0, rgba(76, 119, 213, 0.14) 1px, transparent 1px, transparent 32px);
  transform: perspective(420px) rotateX(76deg);
  transform-origin: bottom center;
  opacity: 0.5;
  pointer-events: none;
  animation: import-grid-pan 3.8s linear infinite;
  transition: background 320ms ease;
}

.marketing-import-scanline {
  position: absolute;
  left: 12%;
  right: 12%;
  top: -16%;
  height: 32%;
  background: linear-gradient(180deg, rgba(120, 188, 255, 0), rgba(120, 188, 255, 0.26), rgba(120, 188, 255, 0));
  filter: blur(8px);
  opacity: 0.7;
  pointer-events: none;
  animation: import-scan 2.8s ease-in-out infinite;
  transition: background 320ms ease;
}

.marketing-import-pulse {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(150, 207, 255, 1), rgba(45, 106, 214, 0.12));
  box-shadow: 0 0 30px rgba(88, 155, 255, 0.5);
  pointer-events: none;
  transition: background 320ms ease, box-shadow 320ms ease;
}

.marketing-import-pulse-a {
  top: 26%;
  left: 24%;
  animation: import-pulse-float 2.4s ease-in-out infinite;
}

.marketing-import-pulse-b {
  top: 20%;
  right: 24%;
  animation: import-pulse-float 2.8s ease-in-out infinite 0.6s;
}

.marketing-import-board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: min(100%, 640px);
  padding: 14px;
  margin: 94px auto 0;
  border: 1px solid rgba(78, 112, 186, 0.34);
  border-radius: 14px;
  background: rgba(8, 12, 20, 0.74);
  box-shadow:
    inset 0 0 0 1px rgba(122, 164, 255, 0.08),
    0 0 38px rgba(26, 61, 128, 0.16);
  z-index: 1;
  animation: import-board-float 2.9s ease-in-out infinite;
  transition: border-color 320ms ease, background 320ms ease, box-shadow 320ms ease;
}

.marketing-import-column {
  min-height: 132px;
  padding: 12px;
  border: 1px solid rgba(92, 125, 194, 0.16);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(8, 13, 24, 0.96), rgba(7, 10, 18, 0.88));
  animation: import-card-breathe 1.9s ease-in-out infinite;
  transition: border-color 320ms ease, background 320ms ease, transform 220ms ease, opacity 220ms ease;
}

.marketing-import-column span {
  display: block;
  margin-bottom: 16px;
  color: #6cb2ff;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 320ms ease, opacity 220ms ease, transform 220ms ease;
}

.marketing-import-column strong {
  display: block;
  max-width: 11ch;
  padding: 18px 10px;
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(34, 92, 196, 0.58), rgba(19, 56, 126, 0.48));
  font-size: 0.86rem;
  line-height: 1.4;
  color: rgba(241, 251, 244, 0.96);
  transform-origin: center;
  transition: background 320ms ease, opacity 220ms ease, transform 220ms ease;
}

.marketing-import-column:nth-child(2) {
  animation-delay: 0.2s;
}

.marketing-import-column:nth-child(3) {
  animation-delay: 0.4s;
}

.marketing-import-column:nth-child(4) {
  animation-delay: 0.6s;
}

.marketing-import-column:nth-child(1) strong {
  animation: import-content-pop 2s ease-in-out infinite;
}

.marketing-import-column:nth-child(2) strong {
  animation: import-content-pop 2s ease-in-out infinite 0.25s;
}

.marketing-import-column:nth-child(3) strong {
  animation: import-content-pop 2s ease-in-out infinite 0.5s;
}

.marketing-import-column:nth-child(4) strong {
  animation: import-content-pop 2s ease-in-out infinite 0.75s;
}

.marketing-import-stage[data-import-theme="google"] {
  background:
    radial-gradient(circle at 55% 30%, rgba(45, 166, 98, 0.28), transparent 34%),
    linear-gradient(180deg, rgba(7, 12, 15, 0.99), rgba(3, 6, 8, 0.99));
}

.marketing-import-stage[data-import-theme="google"] .marketing-import-glow {
  background: radial-gradient(circle, rgba(62, 208, 123, 0.32), transparent 58%);
}

.marketing-import-stage[data-import-theme="google"] .marketing-import-gridline {
  background:
    linear-gradient(to top, rgba(20, 92, 50, 0.24), transparent 72%),
    repeating-linear-gradient(90deg, rgba(66, 179, 103, 0.18) 0, rgba(66, 179, 103, 0.18) 1px, transparent 1px, transparent 52px),
    repeating-linear-gradient(0deg, rgba(66, 179, 103, 0.14) 0, rgba(66, 179, 103, 0.14) 1px, transparent 1px, transparent 32px);
}

.marketing-import-stage[data-import-theme="google"] .marketing-import-scanline {
  background: linear-gradient(180deg, rgba(117, 224, 149, 0), rgba(117, 224, 149, 0.26), rgba(117, 224, 149, 0));
}

.marketing-import-stage[data-import-theme="google"] .marketing-import-pulse {
  background: radial-gradient(circle, rgba(155, 246, 188, 1), rgba(44, 161, 92, 0.12));
  box-shadow: 0 0 30px rgba(79, 216, 128, 0.5);
}

.marketing-import-stage[data-import-theme="google"] .marketing-import-board {
  border-color: rgba(71, 156, 97, 0.34);
  background: rgba(8, 20, 14, 0.74);
  box-shadow: inset 0 0 0 1px rgba(126, 214, 151, 0.08), 0 0 38px rgba(26, 93, 49, 0.16);
}

.marketing-import-stage[data-import-theme="google"] .marketing-import-column {
  border-color: rgba(86, 176, 111, 0.16);
  background: linear-gradient(180deg, rgba(8, 20, 13, 0.96), rgba(7, 14, 10, 0.88));
}

.marketing-import-stage[data-import-theme="google"] .marketing-import-column span {
  color: #7de39e;
}

.marketing-import-stage[data-import-theme="google"] .marketing-import-column strong {
  background: linear-gradient(180deg, rgba(42, 146, 82, 0.58), rgba(21, 99, 51, 0.48));
}

.marketing-import-stage[data-import-theme="creative"] {
  background:
    radial-gradient(circle at 55% 30%, rgba(255, 156, 77, 0.3), transparent 34%),
    linear-gradient(180deg, rgba(17, 11, 9, 0.99), rgba(8, 5, 4, 0.99));
}

.marketing-import-stage[data-import-theme="creative"] .marketing-import-glow {
  background: radial-gradient(circle, rgba(255, 133, 79, 0.34), transparent 58%);
}

.marketing-import-stage[data-import-theme="creative"] .marketing-import-gridline {
  background:
    linear-gradient(to top, rgba(132, 51, 25, 0.24), transparent 72%),
    repeating-linear-gradient(90deg, rgba(255, 141, 86, 0.18) 0, rgba(255, 141, 86, 0.18) 1px, transparent 1px, transparent 52px),
    repeating-linear-gradient(0deg, rgba(255, 141, 86, 0.14) 0, rgba(255, 141, 86, 0.14) 1px, transparent 1px, transparent 32px);
}

.marketing-import-stage[data-import-theme="creative"] .marketing-import-scanline {
  background: linear-gradient(180deg, rgba(255, 173, 118, 0), rgba(255, 173, 118, 0.26), rgba(255, 173, 118, 0));
}

.marketing-import-stage[data-import-theme="creative"] .marketing-import-pulse {
  background: radial-gradient(circle, rgba(255, 207, 168, 1), rgba(224, 96, 56, 0.12));
  box-shadow: 0 0 30px rgba(255, 133, 86, 0.5);
}

.marketing-import-stage[data-import-theme="creative"] .marketing-import-board {
  border-color: rgba(186, 98, 69, 0.34);
  background: rgba(23, 12, 10, 0.74);
  box-shadow: inset 0 0 0 1px rgba(255, 169, 138, 0.08), 0 0 38px rgba(128, 49, 26, 0.16);
}

.marketing-import-stage[data-import-theme="creative"] .marketing-import-column {
  border-color: rgba(214, 123, 95, 0.18);
  background: linear-gradient(180deg, rgba(27, 14, 11, 0.96), rgba(18, 10, 8, 0.88));
}

.marketing-import-stage[data-import-theme="creative"] .marketing-import-column span {
  color: #ffb487;
}

.marketing-import-stage[data-import-theme="creative"] .marketing-import-column strong {
  background: linear-gradient(180deg, rgba(208, 102, 67, 0.62), rgba(160, 66, 42, 0.5));
}

.marketing-import-column.is-entering span,
.marketing-import-column.is-entering strong {
  opacity: 0;
  transform: translateY(8px);
}

.marketing-import-apps {
  display: grid;
  width: min(100%, 980px);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 58px;
  gap: 12px;
  row-gap: 14px;
  align-items: stretch;
}

.marketing-import-app-word,
.marketing-import-app-excel,
.marketing-import-app-powerpoint,
.marketing-import-app-onenote,
.marketing-import-app-docs,
.marketing-import-app-sheets,
.marketing-import-app-slides,
.marketing-import-app-drive,
.marketing-import-app-canva,
.marketing-import-app-pdf {
  grid-row: 1;
}

.marketing-import-app-docs,
.marketing-import-app-sheets,
.marketing-import-app-slides,
.marketing-import-app-drive {
  grid-row: 2;
}

.marketing-import-app-canva,
.marketing-import-app-pdf {
  grid-row: 3;
}

.marketing-import-app {
  min-height: 58px;
  height: 58px;
  padding: 10px 18px;
  border: 1px solid rgba(90, 139, 255, 0.24);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(10, 12, 20, 0.98), rgba(7, 9, 15, 0.96));
  color: var(--text);
  font-weight: 600;
  font-size: 0.96rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  line-height: 1.15;
  box-shadow:
    inset 0 0 0 1px rgba(126, 163, 255, 0.03),
    0 0 0 1px rgba(34, 67, 137, 0.12);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.marketing-import-app-word,
.marketing-import-app-excel,
.marketing-import-app-onenote {
  white-space: nowrap;
}

.marketing-import-app-powerpoint {
  font-size: 0.84rem;
  line-height: 1.05;
}

.marketing-import-app-word {
  border-color: rgba(45, 116, 255, 0.26);
  background: linear-gradient(180deg, rgba(12, 17, 31, 0.98), rgba(8, 11, 21, 0.96));
  box-shadow: inset 0 0 0 1px rgba(76, 136, 255, 0.04), 0 0 0 1px rgba(28, 72, 156, 0.14);
}

.marketing-import-app-excel {
  border-color: rgba(38, 165, 101, 0.24);
  background: linear-gradient(180deg, rgba(10, 20, 16, 0.98), rgba(8, 14, 11, 0.96));
  box-shadow: inset 0 0 0 1px rgba(56, 191, 118, 0.04), 0 0 0 1px rgba(20, 112, 66, 0.14);
}

.marketing-import-app-powerpoint {
  border-color: rgba(216, 95, 20, 0.24);
  background: linear-gradient(180deg, rgba(24, 15, 11, 0.98), rgba(16, 10, 8, 0.96));
  box-shadow: inset 0 0 0 1px rgba(255, 139, 61, 0.04), 0 0 0 1px rgba(138, 61, 18, 0.14);
}

.marketing-import-app-onenote {
  border-color: rgba(160, 92, 255, 0.24);
  background: linear-gradient(180deg, rgba(18, 12, 28, 0.98), rgba(12, 9, 19, 0.96));
  box-shadow: inset 0 0 0 1px rgba(177, 116, 255, 0.04), 0 0 0 1px rgba(102, 45, 172, 0.14);
}

.marketing-import-app-docs {
  border-color: rgba(66, 133, 244, 0.24);
  background: linear-gradient(180deg, rgba(10, 16, 28, 0.98), rgba(8, 11, 20, 0.96));
  box-shadow: inset 0 0 0 1px rgba(93, 153, 255, 0.04), 0 0 0 1px rgba(36, 79, 160, 0.14);
}

.marketing-import-app-sheets {
  border-color: rgba(52, 168, 83, 0.24);
  background: linear-gradient(180deg, rgba(10, 19, 14, 0.98), rgba(8, 13, 10, 0.96));
  box-shadow: inset 0 0 0 1px rgba(80, 194, 110, 0.04), 0 0 0 1px rgba(31, 113, 56, 0.14);
}

.marketing-import-app-slides {
  border-color: rgba(251, 188, 4, 0.26);
  background: linear-gradient(180deg, rgba(24, 19, 9, 0.98), rgba(16, 12, 7, 0.96));
  box-shadow: inset 0 0 0 1px rgba(255, 207, 69, 0.04), 0 0 0 1px rgba(155, 113, 12, 0.14);
}

.marketing-import-app-drive {
  border-color: rgba(66, 133, 244, 0.22);
  background: linear-gradient(180deg, rgba(11, 17, 25, 0.98), rgba(8, 11, 17, 0.96));
  box-shadow: inset 0 0 0 1px rgba(93, 153, 255, 0.04), 0 0 0 1px rgba(34, 104, 151, 0.14);
}

.marketing-import-app-canva {
  border-color: rgba(80, 169, 255, 0.24);
  background: linear-gradient(180deg, rgba(10, 17, 27, 0.98), rgba(10, 11, 22, 0.96));
  box-shadow: inset 0 0 0 1px rgba(95, 198, 255, 0.04), 0 0 0 1px rgba(84, 77, 180, 0.14);
}

.marketing-import-app-pdf {
  border-color: rgba(233, 66, 53, 0.24);
  background: linear-gradient(180deg, rgba(26, 13, 12, 0.98), rgba(17, 9, 9, 0.96));
  box-shadow: inset 0 0 0 1px rgba(255, 103, 92, 0.04), 0 0 0 1px rgba(142, 44, 37, 0.14);
}

.marketing-import-app-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
}

.marketing-import-app-logo svg {
  display: block;
  width: 100%;
  height: 100%;
}

.marketing-import-app-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.marketing-import-app:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 10px 24px rgba(0, 0, 0, 0.22),
    0 0 22px rgba(255, 255, 255, 0.06);
}

.marketing-import-app:hover .marketing-import-app-logo {
  transform: scale(1.06);
}

.marketing-import-app-core {
  grid-row: 4;
  grid-column: 2 / span 2;
  min-height: 74px;
  max-width: 340px;
  justify-self: center;
  margin-top: 12px;
  border-color: rgba(65, 104, 202, 0.46);
  background: linear-gradient(180deg, rgba(24, 54, 126, 0.98), rgba(13, 31, 78, 0.98));
  box-shadow: 0 18px 32px rgba(13, 31, 77, 0.34);
  flex-direction: column;
  gap: 4px;
}

.marketing-import-app-core strong,
.marketing-import-app-core small {
  display: block;
}

.marketing-import-app-core strong {
  font-size: 0.98rem;
}

.marketing-import-app-core small {
  font-size: 0.7rem;
  color: rgba(197, 214, 255, 0.74);
  letter-spacing: 0.05em;
  text-transform: lowercase;
}

@keyframes import-glow-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, 16px, 0) scale(1.06);
  }
}

@keyframes import-grid-pan {
  0% {
    transform: perspective(420px) rotateX(76deg) translateY(0);
    opacity: 0.32;
  }
  50% {
    transform: perspective(420px) rotateX(76deg) translateY(16px);
    opacity: 0.6;
  }
  100% {
    transform: perspective(420px) rotateX(76deg) translateY(0);
    opacity: 0.32;
  }
}

@keyframes import-scan {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  18% {
    opacity: 0.38;
  }
  60% {
    opacity: 0.72;
  }
  100% {
    transform: translateY(310px);
    opacity: 0;
  }
}

@keyframes import-pulse-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(0.82);
    opacity: 0.44;
  }
  50% {
    transform: translate3d(0, -18px, 0) scale(1.18);
    opacity: 1;
  }
}

@keyframes import-board-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -10px, 0);
  }
}

@keyframes import-card-breathe {
  0%,
  100% {
    transform: translateY(0);
    border-color: rgba(92, 125, 194, 0.16);
    box-shadow: inset 0 0 0 1px rgba(92, 132, 215, 0.04);
  }
  50% {
    transform: translateY(-8px);
    border-color: rgba(108, 154, 255, 0.34);
    box-shadow: inset 0 0 0 1px rgba(118, 166, 255, 0.12), 0 12px 24px rgba(28, 73, 156, 0.14);
  }
}

@keyframes import-content-pop {
  0%,
  100% {
    transform: scale(1);
    background: linear-gradient(180deg, rgba(34, 92, 196, 0.54), rgba(19, 56, 126, 0.42));
  }
  50% {
    transform: scale(1.05);
    background: linear-gradient(180deg, rgba(58, 120, 240, 0.74), rgba(28, 73, 168, 0.58));
  }
}

@keyframes demo-aurora {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.72;
  }
  50% {
    transform: translate3d(0, 18px, 0) scale(1.08);
    opacity: 1;
  }
}

@keyframes demo-tab-sheen {
  0% {
    transform: translateX(0) skewX(-18deg);
  }
  100% {
    transform: translateX(430%) skewX(-18deg);
  }
}

@keyframes demo-bar-breathe {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.16);
  }
}

  100% {
    opacity: 0;
  }
}

.marketing-faq-head {
  max-width: none;
  text-align: center;
  justify-self: center;
}

.faq-accordion {
  display: grid;
  gap: 14px;
}

.faq-item {
  border: 1px solid rgba(129, 145, 182, 0.22);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(11, 12, 18, 0.96), rgba(8, 9, 14, 0.94));
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.faq-item summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 24px 64px 24px 22px;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "â€º";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.55rem;
  line-height: 1;
  color: rgba(231, 236, 255, 0.72);
  transition: transform 180ms ease, color 180ms ease;
}

.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(90deg);
  color: var(--accent);
}

.faq-answer {
  padding: 0 22px 22px;
}

.faq-answer p {
  margin: 0;
  max-width: 72ch;
  color: var(--muted);
  line-height: 1.7;
}

.marketing-section-head {
  max-width: 760px;
}

.marketing-feature-card h3,
.pricing-card h3,
.faq-card h3 {
  margin: 12px 0 10px;
}

.marketing-feature-card p,
.marketing-quote-card p,
.pricing-copy,
.faq-card p,
.marketing-callout-card p,
.marketing-stat-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.marketing-checklist,
.pricing-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 22px;
  padding: 0;
  list-style: none;
}

.marketing-checklist li,
.pricing-list li {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 201, 227, 0.05);
}

.marketing-quote-card blockquote {
  margin: 18px 0 12px;
  font-size: clamp(1.5rem, 2.8vw, 2.3rem);
  line-height: 1.1;
}

.pricing-card-featured {
  background:
    radial-gradient(circle at top right, rgba(255, 191, 225, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(18, 16, 22, 0.96), rgba(10, 9, 14, 0.92));
  transform: translateY(-6px);
}

.pricing-card h3 span {
  font-size: 1rem;
  color: var(--muted);
}

.marketing-cta {
  align-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at top right, rgba(255, 191, 225, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(16, 15, 20, 0.94), rgba(8, 7, 11, 0.9));
}

.marketing-interactive-section {
  overflow: hidden;
}

.marketing-interactive-shell {
  position: relative;
  padding: 18px;
  border: 1px solid rgba(255, 197, 229, 0.16);
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(255, 194, 228, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(13, 12, 17, 0.98), rgba(8, 8, 11, 0.96));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.marketing-interactive-shell::before,
.marketing-interactive-shell::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.marketing-interactive-shell::before {
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 20%, transparent 80%, rgba(255, 255, 255, 0.02)),
    radial-gradient(rgba(162, 118, 255, 0.08) 1px, transparent 1px);
  background-size: auto, 24px 24px;
  opacity: 0.32;
}

.marketing-interactive-shell::after {
  top: -20%;
  left: 24%;
  width: 52%;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(161, 112, 255, 0.16), transparent 70%);
  filter: blur(18px);
  animation: demo-aurora 6.4s ease-in-out infinite;
}

.marketing-demo-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.marketing-demo-tab {
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(255, 197, 229, 0.12);
  border-radius: 999px;
  background: rgba(255, 201, 227, 0.05);
  color: var(--tab-text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
  position: relative;
  overflow: hidden;
}

.marketing-demo-tab::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -34%;
  width: 30%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  transform: skewX(-18deg);
  opacity: 0;
  transition: opacity 180ms ease;
}

.marketing-demo-tab:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(255, 155, 205, 0.12);
}

.marketing-demo-tab:hover::before,
.marketing-demo-tab.is-active::before {
  opacity: 1;
  animation: demo-tab-sheen 2.4s linear infinite;
}

.marketing-demo-tab.is-active {
  border-color: rgba(255, 227, 240, 0.5);
  background: linear-gradient(135deg, #ffd7ea 0%, #ffa1cc 100%);
  color: var(--button-text);
  box-shadow: 0 0 0 1px rgba(255, 217, 236, 0.22), 0 16px 28px rgba(255, 148, 202, 0.26);
}

.marketing-demo-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 18px;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

.marketing-demo-visual,
.marketing-demo-copy {
  border: 1px solid rgba(255, 197, 229, 0.12);
  border-radius: 26px;
  background: rgba(255, 201, 227, 0.04);
}

.marketing-demo-visual {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  padding: 24px;
}

.marketing-demo-visual::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(161, 112, 255, 0.06), transparent 24%, transparent 80%, rgba(161, 112, 255, 0.06));
  opacity: 0.7;
  pointer-events: none;
}

.marketing-demo-surface {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 18px;
  min-height: 100%;
  padding: 24px;
  border: 1px solid rgba(255, 201, 227, 0.14);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(255, 191, 225, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(16, 15, 20, 0.98), rgba(10, 9, 13, 0.94));
  box-shadow: inset 0 0 0 1px rgba(198, 169, 255, 0.04);
  transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.marketing-demo-surface-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.marketing-demo-pulse {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffe1ef, #ff98c7);
  box-shadow: 0 0 0 0 rgba(255, 152, 199, 0.45);
  animation: glow-pulse 2.6s ease-in-out infinite;
}

.marketing-demo-card {
  padding: 22px;
  border: 1px solid rgba(255, 201, 227, 0.12);
  border-radius: 22px;
  background: rgba(255, 201, 227, 0.05);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.26);
  transform: translateY(0);
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.marketing-demo-card strong {
  display: block;
  margin-bottom: 10px;
  font-family: "Fraunces", serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.marketing-demo-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.marketing-demo-bars {
  display: grid;
  gap: 12px;
}

.marketing-demo-bars span {
  --bar-size: 50%;
  position: relative;
  display: block;
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 201, 227, 0.08);
  overflow: hidden;
}

.marketing-demo-bars span::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--bar-size);
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 221, 237, 0.94), rgba(255, 148, 202, 0.78));
  box-shadow: 0 0 22px rgba(255, 148, 202, 0.22);
  transition: width 320ms ease;
  animation: demo-bar-breathe 2.8s ease-in-out infinite;
}

.marketing-demo-float {
  position: absolute;
  z-index: 3;
  padding: 10px 14px;
  border: 1px solid rgba(255, 197, 229, 0.12);
  border-radius: 999px;
  background: rgba(10, 10, 14, 0.88);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.26);
  animation: float-slow 4.8s ease-in-out infinite;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.marketing-demo-float-a {
  top: 34px;
  right: 28px;
}

.marketing-demo-float-b {
  right: 18px;
  bottom: 92px;
  animation-delay: 1s;
}

.marketing-demo-float-c {
  left: 28px;
  bottom: 28px;
  animation-delay: 2s;
}

.marketing-demo-copy {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.marketing-demo-copy::before {
  content: "";
  position: absolute;
  inset: auto -20% -26% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(161, 112, 255, 0.14), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.marketing-demo-copy h3 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1;
}

.marketing-demo-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.marketing-demo-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.marketing-demo-list li {
  padding: 14px 16px;
  border: 1px solid rgba(255, 197, 229, 0.12);
  border-radius: 18px;
  background: rgba(255, 201, 227, 0.05);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.marketing-interactive-shell:hover .marketing-demo-surface {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(77, 34, 146, 0.18), inset 0 0 0 1px rgba(205, 178, 255, 0.06);
}

.marketing-interactive-shell:hover .marketing-demo-card {
  transform: translateY(-6px);
  box-shadow: 0 26px 54px rgba(0, 0, 0, 0.3), 0 0 26px rgba(145, 95, 255, 0.08);
}

.marketing-interactive-shell:hover .marketing-demo-float-a {
  transform: translate3d(-2px, -8px, 0);
}

.marketing-interactive-shell:hover .marketing-demo-float-b {
  transform: translate3d(4px, -10px, 0);
}

.marketing-interactive-shell:hover .marketing-demo-float-c {
  transform: translate3d(-4px, -6px, 0);
}

.marketing-interactive-shell:hover .marketing-demo-list li {
  transform: translateX(4px);
}

.marketing-interactive-shell[data-active-step="quiz"] .marketing-demo-surface,
.marketing-interactive-shell[data-active-step="write"] .marketing-demo-surface,
.marketing-interactive-shell[data-active-step="retain"] .marketing-demo-surface {
  transition: background 240ms ease, border-color 240ms ease;
}

.marketing-interactive-shell[data-active-step="quiz"] .marketing-demo-surface {
  background:
    radial-gradient(circle at top right, rgba(255, 188, 222, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(14, 15, 20, 0.98), rgba(9, 9, 14, 0.94));
}

.marketing-interactive-shell[data-active-step="write"] .marketing-demo-surface {
  background:
    radial-gradient(circle at top right, rgba(255, 174, 214, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(17, 13, 20, 0.98), rgba(10, 8, 14, 0.94));
}

.marketing-interactive-shell[data-active-step="retain"] .marketing-demo-surface {
  background:
    radial-gradient(circle at top right, rgba(255, 205, 230, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(14, 14, 19, 0.98), rgba(8, 8, 12, 0.94));
}


.marketing-preloader {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(255, 188, 222, 0.12), transparent 22%),
    linear-gradient(180deg, rgba(5, 5, 8, 0.98), rgba(0, 0, 0, 1));
  transition: opacity 420ms ease, visibility 420ms ease;
}

.marketing-preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.marketing-preloader-core {
  position: relative;
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
}

.marketing-preloader-core strong {
  font-family: "Fraunces", serif;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
}

.marketing-preloader-core p {
  margin: 0;
  color: var(--muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.marketing-preloader-ring {
  position: absolute;
  width: 124px;
  height: 124px;
  border: 1px solid rgba(255, 202, 228, 0.22);
  border-radius: 50%;
  animation: orbit-spin 2.8s linear infinite;
}

.marketing-preloader-ring::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffe1ef, #ff98c7);
  box-shadow: 0 0 18px rgba(255, 152, 199, 0.54);
}

.marketing-preloader-ring-delay {
  width: 168px;
  height: 168px;
  animation-direction: reverse;
  animation-duration: 4.2s;
}

.marketing-hero {
  --hero-progress: 0;
}

.marketing-hero-copy {
  transform: translateY(calc(var(--hero-progress) * 22px));
}

.marketing-hero-panel {
  transform: translateY(calc(var(--hero-progress) * -18px));
}

.marketing-hero-constellation {
  position: absolute;
  inset: auto 24px 22px auto;
  width: 220px;
  height: 120px;
  opacity: calc(0.6 + (var(--hero-progress) * 0.2));
  pointer-events: none;
}

.marketing-hero-node,
.marketing-hero-beam {
  position: absolute;
}

.marketing-hero-node {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffe0ef, #ff98c7);
  box-shadow: 0 0 18px rgba(255, 149, 202, 0.48);
}

.marketing-hero-node-a {
  top: 8px;
  left: 20px;
}

.marketing-hero-node-b {
  right: 46px;
  top: 34px;
}

.marketing-hero-node-c {
  left: 94px;
  bottom: 16px;
}

.marketing-hero-beam {
  height: 1px;
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(255, 214, 236, 0.64), rgba(255, 214, 236, 0));
}

.marketing-hero-beam-a {
  top: 13px;
  left: 28px;
  width: 132px;
  transform: rotate(15deg);
}

.marketing-hero-beam-b {
  top: 40px;
  left: 96px;
  width: 92px;
  transform: rotate(118deg);
}

.marketing-journey-shell {
  position: relative;
  display: grid;
  gap: 34px;
  padding: 24px 0;
}

.marketing-journey-section {
  margin-top: 18px;
  margin-bottom: 18px;
}

.marketing-journey-section .eyebrow,
.marketing-section-split .eyebrow {
  color: #7fdca1;
}

.marketing-journey-section .card-tag,
.marketing-section-split .card-tag {
  border-color: rgba(111, 201, 141, 0.18);
  background: rgba(78, 168, 108, 0.12);
  color: #9ae8b5;
}

.marketing-journey-rail {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
}

.marketing-journey-line {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(117, 214, 152, 0.18), rgba(73, 194, 116, 0.62), rgba(117, 214, 152, 0.18));
  box-shadow: 0 0 18px rgba(73, 194, 116, 0.22);
}

.marketing-journey-card {
  width: min(100%, 520px);
  padding: 24px;
  border: 1px solid rgba(111, 201, 141, 0.16);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(112, 214, 150, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(12, 11, 16, 0.96), rgba(8, 8, 11, 0.94));
  box-shadow: var(--shadow);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
  animation: float-slow 6s ease-in-out infinite;
}

.marketing-journey-card h3 {
  margin: 14px 0 10px;
  font-family: "Fraunces", serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1;
}

.marketing-journey-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.marketing-journey-card:nth-child(2) {
  animation-delay: 0.5s;
}

.marketing-journey-card:nth-child(3) {
  animation-delay: 1s;
}

.marketing-journey-card:nth-child(4) {
  animation-delay: 1.5s;
}

.marketing-journey-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(122, 226, 156, 0.34);
  background:
    radial-gradient(circle at top right, rgba(126, 236, 168, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(12, 12, 16, 0.98), rgba(8, 10, 11, 0.96));
  box-shadow:
    0 28px 56px rgba(0, 0, 0, 0.3),
    0 0 34px rgba(88, 212, 127, 0.14),
    inset 0 0 0 1px rgba(144, 240, 175, 0.06);
}

.marketing-journey-card:hover h3 {
  text-shadow: 0 0 18px rgba(185, 255, 208, 0.12);
}

.marketing-journey-card-left {
  position: relative;
  justify-self: start;
}

.marketing-journey-card-right {
  position: relative;
  justify-self: end;
}

.marketing-journey-card-left::after,
.marketing-journey-card-right::after {
  content: "";
  position: absolute;
  top: 34px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(180deg, #d8ffe7, #5fd48c);
  box-shadow: 0 0 18px rgba(95, 212, 140, 0.46);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.marketing-journey-card-left::after {
  right: -51px;
}

.marketing-journey-card-right::after {
  left: -51px;
}

.marketing-journey-card-left:hover::after,
.marketing-journey-card-right:hover::after {
  transform: scale(1.12);
  box-shadow: 0 0 28px rgba(95, 212, 140, 0.76);
}

.marketing-interactive-section .eyebrow {
  color: #c6a4ff;
}

.marketing-interactive-section {
  margin-top: 18px;
  margin-bottom: 18px;
}

.marketing-interactive-section .marketing-interactive-shell {
  border-color: rgba(161, 112, 255, 0.18);
  background:
    radial-gradient(circle at top right, rgba(161, 112, 255, 0.14), transparent 26%),
    linear-gradient(180deg, rgba(14, 11, 19, 0.98), rgba(9, 7, 13, 0.96));
}

.marketing-interactive-section .marketing-demo-tab {
  border-color: rgba(166, 122, 255, 0.16);
  background: rgba(163, 116, 255, 0.06);
}

.marketing-interactive-section .marketing-demo-tab:hover {
  box-shadow: 0 10px 24px rgba(142, 92, 255, 0.14);
}

.marketing-interactive-section .marketing-demo-tab.is-active {
  border-color: rgba(219, 201, 255, 0.54);
  background: linear-gradient(135deg, #dec7ff 0%, #a167ff 100%);
  color: #180d2b;
  box-shadow: 0 0 0 1px rgba(218, 196, 255, 0.24), 0 16px 28px rgba(126, 70, 255, 0.28);
}

.marketing-interactive-section .marketing-demo-visual,
.marketing-interactive-section .marketing-demo-copy {
  border-color: rgba(166, 122, 255, 0.14);
  background: rgba(163, 116, 255, 0.05);
}

.marketing-interactive-section .marketing-demo-surface {
  border-color: rgba(177, 136, 255, 0.14);
  background:
    radial-gradient(circle at top right, rgba(167, 118, 255, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(18, 13, 23, 0.98), rgba(11, 8, 15, 0.94));
}

.marketing-interactive-section .marketing-demo-pulse {
  background: linear-gradient(180deg, #ebdeff, #a56dff);
  box-shadow: 0 0 0 0 rgba(165, 109, 255, 0.45);
}

.marketing-interactive-section .marketing-demo-card {
  border-color: rgba(166, 122, 255, 0.14);
  background: rgba(163, 116, 255, 0.06);
}

.marketing-interactive-section .marketing-demo-bars span {
  background: rgba(166, 122, 255, 0.08);
}

.marketing-interactive-section .marketing-demo-bars span::before {
  background: linear-gradient(135deg, rgba(228, 214, 255, 0.96), rgba(158, 103, 255, 0.82));
  box-shadow: 0 0 22px rgba(145, 95, 255, 0.24);
}

.marketing-interactive-section .marketing-demo-float {
  border-color: rgba(166, 122, 255, 0.16);
}

.marketing-interactive-section .marketing-demo-list li {
  border-color: rgba(166, 122, 255, 0.14);
  background: rgba(163, 116, 255, 0.06);
}

.marketing-interactive-section .card-tag {
  border-color: rgba(166, 122, 255, 0.16);
  background: rgba(147, 93, 255, 0.14);
  color: #d2b6ff;
}

.marketing-interactive-section .marketing-interactive-shell[data-active-step="quiz"] .marketing-demo-surface {
  background:
    radial-gradient(circle at top right, rgba(164, 118, 255, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(17, 14, 22, 0.98), rgba(11, 9, 15, 0.94));
}

.marketing-interactive-section .marketing-interactive-shell[data-active-step="write"] .marketing-demo-surface {
  background:
    radial-gradient(circle at top right, rgba(147, 93, 255, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(19, 12, 24, 0.98), rgba(12, 8, 16, 0.94));
}

.marketing-interactive-section .marketing-interactive-shell[data-active-step="retain"] .marketing-demo-surface {
  background:
    radial-gradient(circle at top right, rgba(190, 154, 255, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(16, 12, 20, 0.98), rgba(10, 8, 14, 0.94));
}

.marketing-interactive-section {
  overflow: hidden;
}

.marketing-interactive-shell {
  position: relative;
  padding: 18px;
  border: 1px solid rgba(255, 197, 229, 0.16);
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(255, 194, 228, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(13, 12, 17, 0.98), rgba(8, 8, 11, 0.96));
  box-shadow: var(--shadow);
}

.marketing-demo-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.marketing-demo-tab {
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(255, 197, 229, 0.12);
  border-radius: 999px;
  background: rgba(255, 201, 227, 0.05);
  color: var(--tab-text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.marketing-demo-tab:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(255, 155, 205, 0.12);
}

.marketing-demo-tab.is-active {
  border-color: rgba(255, 227, 240, 0.5);
  background: linear-gradient(135deg, #ffd7ea 0%, #ffa1cc 100%);
  color: var(--button-text);
  box-shadow: 0 0 0 1px rgba(255, 217, 236, 0.22), 0 16px 28px rgba(255, 148, 202, 0.26);
}

.marketing-demo-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 18px;
  align-items: stretch;
}

.marketing-demo-visual,
.marketing-demo-copy {
  border: 1px solid rgba(255, 197, 229, 0.12);
  border-radius: 26px;
  background: rgba(255, 201, 227, 0.04);
}

.marketing-demo-visual {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  padding: 24px;
}

.marketing-demo-surface {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 18px;
  min-height: 100%;
  padding: 24px;
  border: 1px solid rgba(255, 201, 227, 0.14);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(255, 191, 225, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(16, 15, 20, 0.98), rgba(10, 9, 13, 0.94));
}

.marketing-demo-surface-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.marketing-demo-pulse {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffe1ef, #ff98c7);
  box-shadow: 0 0 0 0 rgba(255, 152, 199, 0.45);
  animation: glow-pulse 2.6s ease-in-out infinite;
}

.marketing-demo-card {
  padding: 22px;
  border: 1px solid rgba(255, 201, 227, 0.12);
  border-radius: 22px;
  background: rgba(255, 201, 227, 0.05);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.26);
}

.marketing-demo-card strong {
  display: block;
  margin-bottom: 10px;
  font-family: "Fraunces", serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.marketing-demo-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.marketing-demo-bars {
  display: grid;
  gap: 12px;
}

.marketing-demo-bars span {
  --bar-size: 50%;
  position: relative;
  display: block;
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 201, 227, 0.08);
  overflow: hidden;
}

.marketing-demo-bars span::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--bar-size);
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 221, 237, 0.94), rgba(255, 148, 202, 0.78));
  box-shadow: 0 0 22px rgba(255, 148, 202, 0.22);
  transition: width 320ms ease;
}

.marketing-demo-float {
  position: absolute;
  z-index: 3;
  padding: 10px 14px;
  border: 1px solid rgba(255, 197, 229, 0.12);
  border-radius: 999px;
  background: rgba(10, 10, 14, 0.88);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.26);
  animation: float-slow 4.8s ease-in-out infinite;
}

.marketing-demo-float-a {
  top: 34px;
  right: 28px;
}

.marketing-demo-float-b {
  right: 18px;
  bottom: 92px;
  animation-delay: 1s;
}

.marketing-demo-float-c {
  left: 28px;
  bottom: 28px;
  animation-delay: 2s;
}

.marketing-demo-copy {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.marketing-demo-copy h3 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1;
}

.marketing-demo-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.marketing-demo-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.marketing-demo-list li {
  padding: 14px 16px;
  border: 1px solid rgba(255, 197, 229, 0.12);
  border-radius: 18px;
  background: rgba(255, 201, 227, 0.05);
}

.marketing-interactive-shell[data-active-step="quiz"] .marketing-demo-surface,
.marketing-interactive-shell[data-active-step="write"] .marketing-demo-surface,
.marketing-interactive-shell[data-active-step="retain"] .marketing-demo-surface {
  transition: background 240ms ease, border-color 240ms ease;
}

.marketing-interactive-shell[data-active-step="quiz"] .marketing-demo-surface {
  background:
    radial-gradient(circle at top right, rgba(255, 188, 222, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(14, 15, 20, 0.98), rgba(9, 9, 14, 0.94));
}

.marketing-interactive-shell[data-active-step="write"] .marketing-demo-surface {
  background:
    radial-gradient(circle at top right, rgba(255, 174, 214, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(17, 13, 20, 0.98), rgba(10, 8, 14, 0.94));
}

.marketing-interactive-shell[data-active-step="retain"] .marketing-demo-surface {
  background:
    radial-gradient(circle at top right, rgba(255, 205, 230, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(14, 14, 19, 0.98), rgba(8, 8, 12, 0.94));
}

@media (max-width: 720px) {
  .auth-header,
  .auth-nav,
  .auth-links {
    flex-direction: column;
    align-items: stretch;
  }

  .auth-card {
    padding: 20px;
    border-radius: 20px;
  }

  .admin-hero,
  .admin-filter-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-filter-grid {
    grid-template-columns: 1fr;
  }

  .admin-bulk-delete {
    grid-template-columns: 1fr;
  }

  .marketing-feature-grid,
  .marketing-editor-shell,
  .pricing-grid,
  .faq-grid,
  .marketing-import-apps,
  .marketing-stat-grid,
  .admin-metric-grid,
  .marketing-demo-nav {
    grid-template-columns: 1fr;
  }

  .marketing-import-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .marketing-import-apps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .marketing-import-app-core {
    grid-column: 1 / -1;
    max-width: none;
  }

  .admin-metric-card-wide {
    grid-column: auto;
  }
}

.profile-avatar {
  overflow: hidden;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 194, 228, 0.14);
  border-radius: 22px;
  background: rgba(255, 201, 227, 0.05);
}

.avatar-form-copy p,
.avatar-status {
  margin: 6px 0 0;
  color: var(--muted);
}

.avatar-upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffd1e7, #ff92c5);
  color: #180a14;
  font-weight: 700;
  cursor: pointer;
}

.avatar-status {
  grid-column: 1 / -1;
  font-size: 0.92rem;
}

.community-chat-toggle {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  width: 68px;
  height: 68px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffd1e7, #ff92c5);
  color: #fff8fc;
  font: inherit;
  font-weight: 700;
  box-shadow: 0 22px 40px rgba(255, 142, 197, 0.24);
  cursor: pointer;
}

.community-chat-panel {
  position: fixed;
  top: 20px;
  right: 20px;
  bottom: 104px;
  z-index: 29;
  width: min(390px, calc(100vw - 24px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 194, 228, 0.18);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(255, 188, 222, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(17, 15, 20, 0.98), rgba(9, 8, 12, 0.97));
  box-shadow: 0 34px 60px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(18px);
}

.community-chat-panel[hidden] {
  display: none;
}

.community-chat-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.community-chat-head h3 {
  margin: 10px 0 0;
  font-size: 1.45rem;
}

.community-chat-close {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 194, 228, 0.14);
  border-radius: 999px;
  background: rgba(255, 201, 227, 0.06);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.community-chat-messages {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

.community-chat-empty {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 201, 227, 0.05);
  border: 1px solid rgba(255, 194, 228, 0.12);
}

.community-chat-empty h4,
.community-chat-empty p {
  margin: 0;
}

.community-chat-empty p {
  margin-top: 8px;
  color: var(--muted);
}

.community-message {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.community-message-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 226, 239, 0.98), rgba(255, 172, 209, 0.88));
  color: #2a0f1e;
  font-weight: 700;
}

.community-message-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.community-message-card {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 201, 227, 0.06);
  border: 1px solid rgba(255, 194, 228, 0.12);
}

.community-message.is-own .community-message-card {
  background: linear-gradient(135deg, rgba(255, 170, 212, 0.18), rgba(82, 39, 61, 0.22));
}

.community-message-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-bottom: 8px;
  font-size: 0.82rem;
  color: var(--muted);
}

.community-message-meta strong {
  color: var(--ink);
}

.community-message-card p {
  margin: 0;
  line-height: 1.5;
  word-break: break-word;
}

.community-chat-form textarea {
  width: 100%;
  min-height: 108px;
  resize: vertical;
}

.community-chat-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
}

.community-chat-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 1040px) {
  .auth-layout-split {
    grid-template-columns: 1fr;
  }

  .auth-card-form {
    max-width: none;
  }

  .marketing-hero,
  .marketing-section-split,
  .marketing-cta,
  .marketing-demo-stage,
  .marketing-editor-shell {
    grid-template-columns: 1fr;
  }

  .pricing-card-featured {
    transform: none;
  }

  .community-chat-panel {
    left: 12px;
    right: 12px;
    top: 12px;
    bottom: 92px;
    width: auto;
  }

  .community-chat-toggle {
    right: 16px;
    bottom: 16px;
  }

  .avatar-form,
  .community-chat-actions {
    grid-template-columns: 1fr;
  }

  .marketing-journey-rail {
    left: 18px;
    transform: none;
  }

  .marketing-journey-card {
    width: auto;
    margin-left: 38px;
  }

  .marketing-journey-card-left,
  .marketing-journey-card-right {
    justify-self: stretch;
  }

  .marketing-journey-card-left::after,
  .marketing-journey-card-right::after {
    left: -49px;
    right: auto;
  }
}

@media (max-width: 720px) {
  .marketing-preloader-ring {
    width: 104px;
    height: 104px;
  }

  .marketing-preloader-ring-delay {
    width: 142px;
    height: 142px;
  }

  .marketing-hero-constellation {
    position: relative;
    inset: auto;
    width: 100%;
    margin-top: 24px;
  }

}

.auth-shell {
  width: min(1320px, calc(100% - 40px));
  padding-top: 32px;
  padding-bottom: 72px;
}

.auth-header {
  margin-bottom: 34px;
}

.auth-body::after {
  content: "";
  position: fixed;
  inset: auto auto 8% 8%;
  width: 360px;
  height: 360px;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 192, 228, 0.08), transparent 70%);
  filter: blur(14px);
}

.auth-shell .marketing-page {
  gap: 34px;
}

.auth-shell .marketing-hero-video-shell {
  border-color: rgba(255, 204, 232, 0.12);
  border-radius: 32px;
}

.auth-shell .marketing-hero {
  align-items: stretch;
  gap: 28px;
}

.auth-shell .marketing-section {
  gap: 22px;
}

.auth-shell .marketing-section-head {
  max-width: 860px;
}

.auth-shell .marketing-section-head h2 {
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.auth-shell .marketing-hero-copy,
.auth-shell .marketing-hero-panel,
.auth-shell .marketing-feature-card,
.auth-shell .marketing-showcase-card,
.auth-shell .marketing-quote-card,
.auth-shell .pricing-card,
.auth-shell .faq-card,
.auth-shell .marketing-cta,
.auth-shell .marketing-callout-card,
.auth-shell .marketing-stat-card,
.auth-shell .marketing-visual-card,
.auth-shell .marketing-interactive-shell,
.auth-shell .marketing-journey-card {
  border-color: rgba(255, 204, 232, 0.12);
  border-radius: 34px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
}

.auth-shell .marketing-hero-copy,
.auth-shell .marketing-hero-panel,
.auth-shell .marketing-feature-card,
.auth-shell .marketing-showcase-card,
.auth-shell .marketing-quote-card,
.auth-shell .pricing-card,
.auth-shell .faq-card,
.auth-shell .marketing-callout-card,
.auth-shell .marketing-stat-card,
.auth-shell .marketing-visual-card {
  padding: 36px;
}

.auth-shell .marketing-hero-copy h1 {
  font-size: clamp(3.4rem, 6.8vw, 6.2rem);
  line-height: 0.9;
  max-width: 10.5ch;
  letter-spacing: -0.05em;
}

.auth-shell .hero-text,
.auth-shell .marketing-feature-card p,
.auth-shell .marketing-quote-card p,
.auth-shell .pricing-copy,
.auth-shell .faq-card p,
.auth-shell .marketing-callout-card p,
.auth-shell .marketing-stat-card p,
.auth-shell .auth-copy {
  font-size: 1.02rem;
  line-height: 1.8;
}

.auth-shell .marketing-feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-shell .pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.auth-shell .faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-shell .marketing-feature-card,
.auth-shell .faq-card,
.auth-shell .pricing-card {
  min-height: 260px;
}

.auth-shell .marketing-feature-card h3,
.auth-shell .pricing-card h3,
.auth-shell .faq-card h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1;
}

.auth-shell .marketing-showcase-card,
.auth-shell .marketing-quote-card,
.auth-shell .marketing-cta {
  min-height: 320px;
}

.auth-layout {
  align-items: start;
}

.auth-layout-split {
  gap: 28px;
}

.auth-hero-card,
.auth-card {
  border-radius: 34px;
  padding: 38px;
  border-color: rgba(255, 204, 232, 0.12);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
}

.auth-hero-card h1,
.auth-card h1 {
  font-size: clamp(2.4rem, 5vw, 4.3rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
}

.auth-card-form {
  max-width: 620px;
}

.auth-feature,
.auth-stat-grid .mini-metric,
.auth-hero-card .mini-metric {
  border-radius: 24px;
  background: rgba(255, 201, 227, 0.04);
  border: 1px solid rgba(255, 204, 232, 0.1);
}

.auth-form {
  gap: 18px;
}

.control-field span,
.auth-links a,
.brand-link {
  letter-spacing: -0.01em;
}

.auth-card-form input,
.auth-card-form select,
.auth-card-form textarea {
  min-height: 58px;
  border-radius: 20px;
}

.auth-card-form textarea {
  min-height: 180px;
}

.auth-submit-btn,
.auth-card .primary-btn,
.auth-card .secondary-btn {
  min-height: 58px;
}

.auth-links {
  margin-top: 24px;
  gap: 16px;
}

.auth-links a {
  font-weight: 600;
}

@media (max-width: 1040px) {
  .auth-shell .marketing-feature-grid,
  .auth-shell .pricing-grid,
  .auth-shell .faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .marketing-import-stage {
    min-height: 240px;
    border-radius: 24px;
  }

  .marketing-import-video {
    min-height: 240px;
  }

  .marketing-hero-video-shell {
    min-height: 240px;
    border-radius: 24px;
  }

  .marketing-hero-video {
    min-height: 240px;
  }

  .marketing-import-board {
    grid-template-columns: 1fr;
    margin-top: 56px;
    padding: 14px;
  }

  .marketing-import-apps {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .auth-shell {
    width: min(100% - 20px, 1320px);
    padding-top: 20px;
    padding-bottom: 40px;
  }

  .auth-hero-card,
  .auth-card,
  .auth-shell .marketing-hero-copy,
  .auth-shell .marketing-hero-panel,
  .auth-shell .marketing-feature-card,
  .auth-shell .marketing-showcase-card,
  .auth-shell .marketing-quote-card,
  .auth-shell .pricing-card,
  .auth-shell .faq-card,
  .auth-shell .marketing-callout-card,
  .auth-shell .marketing-stat-card,
  .auth-shell .marketing-visual-card {
    padding: 24px;
    border-radius: 26px;
  }

  .auth-shell .marketing-hero-video-shell {
    border-radius: 24px;
  }

  .auth-shell .marketing-hero-copy h1 {
    font-size: clamp(2.6rem, 11vw, 4.2rem);
  }

  .auth-header,
  .auth-nav,
  .public-nav-center,
  .public-nav-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .public-nav-center,
  .public-nav-actions {
    width: 100%;
  }

  .public-nav-link,
  .public-nav-login,
  .public-nav-cta {
    text-align: center;
  }
}
