@font-face {
  font-family: "Helvetica Neue";
  src: url("/assets/fonts/HelveticaNeueLTStd-Lt.woff?v=20260528-fonts") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Helvetica Neue";
  src: url("/assets/fonts/HelveticaNeueLTStd-LtIt.woff?v=20260528-fonts") format("woff");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Helvetica Neue";
  src: url("/assets/fonts/HelveticaNeueLTStd-Roman.woff?v=20260528-fonts") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Helvetica Neue";
  src: url("/assets/fonts/HelveticaNeueLTStd-It.woff?v=20260528-fonts") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Helvetica Neue";
  src: url("/assets/fonts/HelveticaNeueLTStd-Md.woff?v=20260528-fonts") format("woff");
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Helvetica Neue";
  src: url("/assets/fonts/HelveticaNeueLTStd-MdIt.woff?v=20260528-fonts") format("woff");
  font-weight: 500 600;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Helvetica Neue";
  src: url("/assets/fonts/HelveticaNeueLTStd-Bd.woff?v=20260528-fonts") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Helvetica Neue";
  src: url("/assets/fonts/HelveticaNeueLTStd-BdIt.woff?v=20260528-fonts") format("woff");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Helvetica Neue";
  src: url("/assets/fonts/HelveticaNeueLTStd-Hv.woff?v=20260528-fonts") format("woff");
  font-weight: 800 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Helvetica Neue";
  src: url("/assets/fonts/HelveticaNeueLTStd-HvIt.woff?v=20260528-fonts") format("woff");
  font-weight: 800 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Oxanium";
  src: url("/assets/fonts/Oxanium-400.woff?v=20260528-fonts") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Oxanium";
  src: url("/assets/fonts/Oxanium-500.woff?v=20260528-fonts") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Oxanium";
  src: url("/assets/fonts/Oxanium-600.woff?v=20260528-fonts") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Oxanium";
  src: url("/assets/fonts/Oxanium-700.woff?v=20260528-fonts") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "OCR A Std";
  src: url("/assets/fonts/OCRA.woff?v=20260528-fonts") format("woff");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ui-type-y: 5px;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-soft: #fdfdff;
  --ink: #1d1d1f;
  --muted: #66717f;
  --line: rgba(28, 32, 38, 0.1);
  --accent: #4a2476;
  --accent-strong: #331552;
  --button-gradient: linear-gradient(135deg, #000 0%, #17101f 48%, #4a2476 100%);
  --button-gradient-hover: linear-gradient(135deg, #000 0%, #1f142b 44%, #5a2c8d 100%);
  --button-hover-wash: linear-gradient(135deg, rgba(255, 255, 255, 0) 0%, rgba(125, 74, 184, 0.18) 46%, rgba(133, 82, 198, 0.62) 100%);
  --dark-card-gradient: linear-gradient(145deg, #000 0%, #14101c 52%, #4a2476 100%);
  --dark-card-gradient-soft: linear-gradient(145deg, #050506 0%, #191120 50%, #3f1e65 100%);
  --teal: #147a7e;
  --violet: #7047c5;
  --rose: #b6416d;
  --gold: #a76500;
  --danger: #9f2d20;
  --ok: #237044;
  --panel: #eef1f6;
  --shadow: 0 28px 90px rgba(35, 42, 54, 0.13);
  --shadow-soft: 0 12px 36px rgba(35, 42, 54, 0.08);
}

* {
  box-sizing: border-box;
}

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

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 110px;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, #f7f8fb 0%, #ffffff 48%, #f3f6fb 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: no-preference) {
  body {
    animation: pageFadeIn 150ms ease-out both;
    transition: opacity 140ms ease;
  }

  body.is-page-leaving {
    opacity: 0;
  }
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 108px;
  z-index: 39;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(248, 249, 252, 1) 0%,
      rgba(248, 249, 252, 1) 72%,
      rgba(248, 249, 252, 0.96) 84%,
      rgba(247, 248, 251, 0) 100%
    );
}

a {
  color: inherit;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 40;
  min-height: 62px;
  width: min(1180px, calc(100% - 32px));
  margin: 12px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 22px 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 34px rgba(30, 36, 48, 0.08);
  backdrop-filter: saturate(180%) blur(22px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0;
  color: var(--ink);
}

.brand-mark {
  --brand-logo-size: 34px;
  width: var(--brand-logo-size);
  height: var(--brand-logo-size);
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
}

.brand-zdog {
  width: var(--brand-logo-size) !important;
  height: var(--brand-logo-size) !important;
  max-width: var(--brand-logo-size);
  max-height: var(--brand-logo-size);
  display: block;
}

.brand-text {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  line-height: 1;
  transform: translateY(4px);
}

.brand-accent {
  color: var(--accent);
  font-weight: 700;
}

nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 0.9rem;
}

nav a,
nav button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  text-decoration: none;
  line-height: 1;
  border-radius: 8px;
  padding: 9px 2px 5px;
  transition: color 160ms ease, background 160ms ease;
}

nav a:hover,
nav button:hover {
  color: var(--ink);
}

nav form {
  margin: 0;
}

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

.nav-menu {
  position: relative;
  display: inline-flex;
}

.nav-menu summary {
  list-style: none;
}

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

.nav-menu summary::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 8px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.72;
}

.nav-menu[open] summary::after {
  transform: rotate(180deg);
}

.nav-menu-list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 70;
  min-width: 178px;
  padding: 8px;
  border: 1px solid rgba(28, 32, 38, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 42px rgba(28, 32, 38, 0.16);
  backdrop-filter: blur(18px);
}

.nav-menu-list form {
  margin: 0;
}

.nav-menu-list a,
.nav-menu-list button {
  display: flex;
  width: 100%;
  border: 0;
  padding: 10px 12px;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  line-height: 1.15;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
}

.nav-menu-list a:hover,
.nav-menu-list button:hover {
  background: rgba(74, 36, 118, 0.08);
  color: var(--accent-strong);
}

.nav-cta,
.button {
  --button-bg: var(--button-gradient);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(5, 6, 7, 0.88);
  border-radius: 8px;
  padding: 3px 16px 0;
  background: var(--button-bg);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(8, 10, 14, 0.2);
  transition: border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.nav-cta::before,
.button::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--button-hover-wash);
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms ease;
}

.button.primary,
.nav-cta {
  --button-bg: var(--button-gradient);
  border-color: rgba(5, 6, 7, 0.88);
  color: #fff;
  box-shadow: 0 14px 32px rgba(8, 10, 14, 0.22);
}

.button:hover,
.button.primary:hover,
.nav-cta:hover {
  box-shadow: 0 18px 36px rgba(8, 10, 14, 0.24);
}

.button:hover::before,
.button.primary:hover::before,
.nav-cta:hover::before {
  opacity: 1;
}

.button.account-gradient {
  --button-bg: var(--button-gradient);
  border-color: rgba(5, 6, 7, 0.88);
  color: #fff;
  box-shadow: 0 14px 32px rgba(8, 10, 14, 0.2);
}

.button.account-gradient:hover {
  box-shadow: 0 18px 36px rgba(8, 10, 14, 0.24);
}

.button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.button:disabled:hover {
  box-shadow: 0 14px 32px rgba(8, 10, 14, 0.12);
}

.button:disabled:hover::before {
  opacity: 0;
}

.button.plan-initial {
  --button-bg: linear-gradient(135deg, #b9bbc2 0%, #6d7078 44%, #050505 100%);
  --button-hover-wash: linear-gradient(135deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.22) 48%, rgba(255, 255, 255, 0.08) 100%);
  border-color: rgba(5, 6, 7, 0.54);
  color: #fff;
  box-shadow: 0 14px 30px rgba(8, 10, 14, 0.16);
}

.button.plan-initial:hover {
  box-shadow: 0 18px 36px rgba(8, 10, 14, 0.22);
}

.button.flat {
  --button-bg: var(--button-gradient);
  border-color: rgba(5, 6, 7, 0.88);
  color: #fff;
  box-shadow: 0 10px 24px rgba(8, 10, 14, 0.12);
}

.button.flat:hover {
  box-shadow: 0 12px 28px rgba(8, 10, 14, 0.18);
}

.topbar .nav-actions .button.flat {
  --button-bg: #252a31;
  --button-hover-wash: rgba(235, 238, 243, 0.18);
  border-color: rgba(37, 42, 49, 0.88);
  background: var(--button-bg);
  color: #f7f8fb;
  box-shadow: none;
}

.topbar .nav-actions .button.flat:hover {
  border-color: rgba(79, 86, 96, 0.5);
  box-shadow: none;
}

.topbar .nav-actions .button.flat:hover::before {
  opacity: 1;
}

.topbar .nav-actions .nav-menu > summary.button.flat {
  --button-bg: #646b75;
  --button-hover-wash: rgba(255, 255, 255, 0.2);
  min-height: 42px;
  border-color: rgba(100, 107, 117, 0.72);
  border-radius: 999px;
  padding: 3px 17px 0;
  background: var(--button-bg);
  color: #fff;
}

.topbar .nav-actions .nav-menu > summary.button.flat:hover {
  --button-bg: #737b86;
  border-color: rgba(115, 123, 134, 0.76);
}

.button.flat.is-active,
.button.flat[aria-pressed="true"] {
  --button-bg: linear-gradient(135deg, #000 0%, #21142f 48%, #62309a 100%);
  border-color: rgba(5, 6, 7, 0.88);
  color: #fff;
}

.button:disabled:hover {
  box-shadow: 0 14px 32px rgba(8, 10, 14, 0.12);
}

[data-landing-editable] {
  transition: box-shadow 180ms ease, background 180ms ease, outline-color 180ms ease;
}

body.is-landing-edit-mode [data-landing-editable] {
  cursor: text;
}

body.is-landing-edit-mode [data-landing-editable]:hover,
body.is-landing-edit-mode [data-landing-editable]:focus {
  outline: none;
  background: rgba(74, 36, 118, 0.04);
  box-shadow: 0 0 0 1px rgba(74, 36, 118, 0.24);
  border-radius: 8px;
}

body.is-landing-edit-mode [data-landing-editable][contenteditable="true"] {
  padding: 4px 8px;
}

.console-copy[data-landing-resizable-panel] {
  min-height: var(--hero-copy-editor-height, auto);
  margin-top: var(--hero-copy-editor-top-offset, 0px);
  position: relative;
}

body.is-landing-edit-mode .console-copy[data-landing-resizable-panel] {
  outline: 1px dashed rgba(74, 36, 118, 0.22);
  outline-offset: 12px;
  padding-bottom: 42px;
}

.landing-resize-handle {
  width: 118px;
  height: 30px;
  position: absolute;
  left: 50%;
  z-index: 18;
  display: none;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(74, 36, 118, 0.18);
  transform: translateX(-50%);
  cursor: ns-resize;
}

.landing-resize-handle.is-top {
  top: -52px;
}

.landing-resize-handle.is-bottom {
  bottom: 8px;
}

.landing-resize-handle::before {
  content: "";
  width: 82px;
  height: 5px;
  display: block;
  margin: 12px auto 0;
  border-radius: 999px;
  background: rgba(74, 36, 118, 0.58);
}

body.is-landing-edit-mode .landing-resize-handle {
  display: block;
}

.process-resize-handle {
  width: 118px;
  height: 30px;
  position: absolute;
  top: -31px;
  left: 50%;
  z-index: 18;
  display: none;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(74, 36, 118, 0.18);
  transform: translateX(-50%);
  cursor: ns-resize;
}

.process-resize-handle::before {
  content: "";
  width: 82px;
  height: 5px;
  display: block;
  margin: 12px auto 0;
  border-radius: 999px;
  background: rgba(74, 36, 118, 0.58);
}

body.is-landing-edit-mode .process-resize-handle {
  display: block;
}

body.is-landing-resizing,
body.is-landing-resizing * {
  cursor: ns-resize !important;
  user-select: none !important;
}

[data-landing-editable] .text-size-small {
  font-size: 0.86em;
}

[data-landing-editable] .text-size-normal {
  font-size: 1em;
}

[data-landing-editable] .text-size-large {
  font-size: 1.16em;
}

[data-landing-editable] .text-size-xlarge {
  font-size: 1.32em;
}

[data-landing-editable] .line-height-tight {
  display: block;
  line-height: 1.05;
}

[data-landing-editable] .line-height-normal {
  display: block;
  line-height: 1.28;
}

[data-landing-editable] .line-height-loose {
  display: block;
  line-height: 1.5;
}

[data-landing-editable] .line-height-xloose {
  display: block;
  line-height: 1.72;
}

[data-landing-editable] span[style*="line-height"] {
  display: block;
}

[data-landing-editable] .text-align-left,
[data-landing-editable] .text-align-center,
[data-landing-editable] .text-align-right {
  display: block;
  width: 100%;
}

[data-landing-editable] .text-align-left {
  text-align: left;
}

[data-landing-editable] .text-align-center {
  text-align: center;
}

[data-landing-editable] .text-align-right {
  text-align: right;
}

body.is-landing-edit-mode .semantic-hud {
  opacity: 0;
  visibility: hidden;
}

body.is-landing-edit-mode .semantic-hud,
body.is-landing-edit-mode .semantic-hud * {
  animation-play-state: paused !important;
}

.landing-editor-toolbar {
  position: fixed;
  top: 92px;
  right: max(16px, calc((100vw - min(1180px, calc(100% - 32px))) / 2));
  z-index: 60;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 34px rgba(30, 36, 48, 0.08);
  backdrop-filter: saturate(180%) blur(22px);
}

body.is-landing-edit-mode .landing-editor-toolbar {
  display: inline-flex;
}

.landing-editor-toolbar button {
  --button-bg: var(--button-gradient);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-width: 38px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(28, 32, 38, 0.08);
  border-radius: 8px;
  padding: 2px 10px 0;
  background: var(--button-bg);
  color: #fff;
  font: inherit;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.landing-editor-toolbar button::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--button-hover-wash);
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms ease;
}

.landing-editor-toolbar button:hover::before {
  opacity: 1;
}

.landing-editor-toolbar .font-size-button {
  min-width: 42px;
}

.landing-editor-toolbar .font-size-button[data-edit-font="-1"] {
  font-size: 0.88rem;
}

.landing-editor-toolbar .font-size-button[data-edit-font="1"] {
  font-size: 1.08rem;
}

.landing-editor-toolbar .line-height-button {
  min-width: 48px;
  font-size: 0.78rem;
}

.landing-editor-toolbar .align-button {
  width: 38px;
  min-width: 38px;
  padding: 2px 0 0;
}

.landing-editor-toolbar .align-button svg {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.landing-editor-toolbar-status {
  min-width: 72px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  text-align: right;
}

.hero {
  min-height: auto;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 36px;
  padding: 86px 0 64px;
  position: relative;
}

.hero h1,
.section h1,
.dashboard-head h1,
.settings h1,
.auth-box h1 {
  margin: 0;
  max-width: 820px;
  font-size: 3.2rem;
  line-height: 0.92;
  letter-spacing: 0;
}

.section h1,
.dashboard-head h1,
.settings h1,
.auth-box h1 {
  font-size: 2.3rem;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lead {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.45;
}

.lead.small {
  font-size: 1rem;
}

.section-lead {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.console-copy h1 {
  max-width: 760px;
}

.source-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.source-chips span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  border: 1px solid rgba(28, 32, 38, 0.08);
  border-radius: 8px;
  padding: 3px 9px 0;
  background: rgba(255, 255, 255, 0.68);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
}

.hero-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  max-width: 680px;
  margin: 34px 0 0;
  padding: 0;
}

.hero-metrics div {
  min-height: 76px;
  padding: 16px;
  border: 1px solid rgba(28, 32, 38, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset;
}

.hero-metrics dt {
  margin: 0 0 5px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 800;
}

.hero-metrics dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.product-stage {
  position: relative;
  min-height: 430px;
  display: grid;
  align-items: center;
}

.console-stage {
  min-height: 470px;
}

.blob-float-stage {
  min-height: 520px;
}

.product-stage::before {
  content: "";
  position: absolute;
  inset: 24px 0 18px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(74, 36, 118, 0.14), rgba(20, 122, 126, 0.12) 46%, rgba(182, 65, 109, 0.1));
  transform: rotate(-2deg);
}

.product-stage.blob-float-stage::before {
  content: none;
  display: none;
}

.stage-glass {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: saturate(170%) blur(24px);
}

.stage-top {
  min-height: 54px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.stage-top strong {
  color: var(--ink);
  font-size: 0.92rem;
}

.stage-top em {
  font-style: normal;
  color: var(--ok);
}

.blob-stage {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background: transparent;
}

.blob-stage canvas {
  width: 100%;
  height: 100%;
  min-height: 520px;
  display: block;
}

.semantic-hud {
  --hud-progress: 0;
  position: absolute;
  inset: 0 0 0 auto;
  width: min(430px, 52vw);
  z-index: 3;
  pointer-events: none;
  display: block;
  padding: 0;
  color: #050505;
  font-family: "Oxanium", "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-align: right;
  opacity: 0.84;
  mix-blend-mode: multiply;
}

.semantic-hud::before {
  content: "";
  position: absolute;
  inset: 5% 0 6% 0;
  background:
    repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.035) 0 1px, transparent 1px 8px);
  opacity: calc(0.12 + var(--hud-progress) * 0.24);
  animation: hudScan 1800ms linear infinite;
}

.semantic-pages {
  position: absolute;
  top: 86px;
  right: 0;
  width: min(420px, 100%);
  height: 318px;
  overflow: hidden;
  display: block;
  opacity: calc(0.53 + var(--hud-progress) * 0.1);
  font-family: "OCR A Std", "OCR-A", "OCR A Extended", "Courier New", monospace;
}

.semantic-stream {
  position: absolute;
  inset: 0;
  width: 100%;
  display: grid;
  gap: 0;
  align-content: start;
  will-change: opacity;
}

.semantic-stream-line {
  min-height: 1.18em;
  margin: 0;
  color: rgba(0, 0, 0, 0.66);
  font-size: 0.57rem;
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: 0.025em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  text-align: right;
}

.semantic-stream-line strong {
  font-weight: 800;
  color: rgba(0, 0, 0, 0.82);
}

.semantic-stream-line em {
  font-style: italic;
  color: rgba(0, 0, 0, 0.74);
}

.semantic-stream-line.is-markdown-heading {
  color: rgba(0, 0, 0, 0.8);
  letter-spacing: 0.08em;
}

.semantic-stream-line.is-markdown-h1 {
  min-height: 1.24em;
  font-size: 0.64rem;
  line-height: 1.24;
}

.semantic-stream-line.is-markdown-h2 {
  min-height: 1.2em;
  font-size: 0.6rem;
  line-height: 1.2;
}

.semantic-stream-line .semantic-line-heading {
  display: inline-block;
  font-weight: 800;
  text-transform: uppercase;
}

.semantic-stream-line.is-new {
  animation: streamLineBlink 780ms steps(1, end);
}

.semantic-pages.is-cypher .semantic-stream-line {
  font-size: 0.54rem;
  line-height: 1.13;
  min-height: 1.13em;
  letter-spacing: 0.018em;
}

.semantic-pages.is-minified {
  width: min(340px, 100%);
  height: 340px;
}

.semantic-pages.is-minified .semantic-stream-line {
  min-height: 1.18em;
  font-size: 0.57rem;
  line-height: 1.18;
  letter-spacing: 0;
  font-weight: 700;
}

.semantic-hud-lines {
  display: none;
}

.semantic-hud-lines p {
  margin: 0;
  transform: translateX(calc(26px - var(--hud-progress) * 18px));
  opacity: 0;
  animation: hudEnter 900ms cubic-bezier(0.2, 0.7, 0.18, 1) forwards;
}

.semantic-hud-lines p {
  min-height: 1.15em;
  font-size: 0.78rem;
  line-height: 1.28;
  font-weight: 600;
  letter-spacing: 0.035em;
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.34),
    0 0 12px rgba(0, 0, 0, 0.08);
  animation-delay: calc(var(--line-index, 0) * 130ms);
}

.semantic-hud-lines p::after {
  content: "_";
  display: inline-block;
  width: 0.8ch;
  opacity: 0.52;
  animation: hudBlink 860ms steps(2, end) infinite;
}

.semantic-process {
  position: absolute;
  right: 0;
  bottom: 274px;
  width: min(340px, 100%);
  height: 102px;
  margin: 0;
  display: grid;
  grid-template-rows: 15px 24px 2px 25px;
  align-content: start;
  gap: 8px;
  padding-right: 0;
  opacity: calc(0.82 + var(--hud-progress) * 0.14);
  filter: none;
  transform: none;
  transition: opacity 220ms ease;
}

.semantic-process span {
  color: rgba(0, 0, 0, 0.58);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
}

.semantic-process strong {
  color: #020202;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.semantic-process i {
  height: 2px;
  display: block;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.12);
}

.semantic-process b {
  width: calc(var(--hud-progress) * 100%);
  height: 100%;
  display: block;
  background: #050505;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.28);
}

.semantic-process code {
  color: rgba(0, 0, 0, 0.76);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.055em;
  white-space: normal;
  min-height: 25px;
  overflow: hidden;
}

.hero.is-pointer-hover .semantic-hud,
.blob-float-stage.is-pointer-hover .semantic-hud {
  opacity: 0.95;
}

.hero.is-camera-editing .semantic-hud,
.blob-float-stage.is-camera-editing .semantic-hud {
  opacity: 0;
}

.blob-stage.is-camera-editing canvas,
.blob-float-stage.is-camera-editing canvas {
  cursor: grab;
}

.blob-stage.is-camera-dragging canvas {
  cursor: grabbing;
}

.blob-stage.is-camera-panning canvas {
  cursor: move;
}

@keyframes hudEnter {
  0% {
    opacity: 0;
    transform: translateX(42px);
    clip-path: inset(0 0 0 100%);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
    clip-path: inset(0 0 0 0);
  }
}

@keyframes hudBlink {
  0%,
  42% {
    opacity: 0;
  }
  43%,
  100% {
    opacity: 0.62;
  }
}

@keyframes hudScan {
  from {
    transform: translateY(-8px);
  }
  to {
    transform: translateY(8px);
  }
}

@keyframes streamLineBlink {
  0%,
  20% {
    color: rgba(0, 0, 0, 0.28);
  }
  21%,
  27% {
    color: rgba(0, 0, 0, 0.66);
  }
  28%,
  48% {
    color: rgba(0, 0, 0, 0.58);
  }
  49%,
  55% {
    color: rgba(0, 0, 0, 0.66);
  }
  56%,
  76% {
    color: rgba(0, 0, 0, 0.94);
  }
  77%,
  100% {
    color: rgba(0, 0, 0, 0.66);
  }
}

@media (max-width: 920px) {
  .semantic-hud {
    display: none;
  }
}

.blob-overlay {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: grid;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.blob-overlay span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.blob-overlay strong {
  color: var(--ink);
  font-size: 1rem;
}

.webgl-unavailable .blob-stage::before {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(74, 36, 118, 0.42), rgba(98, 211, 199, 0.18) 58%, transparent 70%);
  filter: blur(4px);
}

.compression-demo {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 18px;
}

.demo-doc,
.compression-core {
  border: 1px solid rgba(28, 32, 38, 0.08);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.demo-doc {
  min-height: 180px;
  padding: 18px;
}

.demo-source {
  animation: sourceFocus 7600ms ease-in-out infinite;
}

.demo-output {
  animation: outputFocus 7600ms ease-in-out infinite;
}

.demo-doc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}

.demo-doc-head span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 0 9px;
  background: #f3edf9;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
}

.demo-output .demo-doc-head span {
  background: #e8f7f5;
  color: var(--teal);
}

.demo-doc-head strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.96rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-lines {
  display: grid;
  gap: 8px;
  margin: 4px 0 20px;
}

.document-lines span {
  height: 8px;
  border-radius: 8px;
  background: #e8edf5;
  transform-origin: left center;
  animation: lineFold 7600ms ease-in-out infinite;
}

.document-lines span:nth-child(1) {
  width: 86%;
}

.document-lines span:nth-child(2) {
  width: 64%;
}

.document-lines span:nth-child(3) {
  width: 74%;
}

.document-lines span:nth-child(4) {
  width: 58%;
}

.document-lines span:nth-child(5) {
  width: 78%;
}

.demo-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.demo-stats span {
  min-height: 52px;
  display: grid;
  align-content: center;
  gap: 2px;
  border: 1px solid rgba(28, 32, 38, 0.08);
  border-radius: 8px;
  padding: 8px 10px;
  background: #f7f9fc;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.demo-stats b {
  color: var(--ink);
  font-size: 1.12rem;
}

.semantic-snippet {
  min-height: 96px;
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.5;
  animation: semanticReveal 7600ms ease-in-out infinite;
}

.compression-core {
  display: grid;
  gap: 14px;
  align-content: center;
  justify-items: center;
  min-height: 180px;
  padding: 18px;
  background: var(--dark-card-gradient);
  color: #f7f8fb;
}

.fold-core {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(74, 36, 118, 0.22), rgba(98, 211, 199, 0.16));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 20px 44px rgba(0, 0, 0, 0.28);
  animation: coreBreathe 7600ms ease-in-out infinite;
}

.fold-core span {
  width: 42px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  transform: rotate(45deg);
  animation: coreTurn 7600ms ease-in-out infinite;
}

.progress-shell {
  width: min(100%, 180px);
  height: 9px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
}

.progress-shell span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8a5cc2, #62d3c7);
}

.compression-core p {
  min-height: 34px;
  margin: 0;
  display: flex;
  align-items: center;
  text-align: center;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 700;
}

@keyframes sourceFocus {
  0%, 28% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  58%, 100% {
    opacity: 0.64;
    transform: translateY(2px) scale(0.985);
  }
}

@keyframes outputFocus {
  0%, 34% {
    opacity: 0.42;
    transform: translateY(2px) scale(0.985);
  }

  64%, 100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes lineFold {
  0%, 28% {
    opacity: 1;
    transform: scaleX(1);
  }

  58%, 100% {
    opacity: 0.38;
    transform: scaleX(0.18);
  }
}

@keyframes semanticReveal {
  0%, 34% {
    opacity: 0.2;
    transform: translateY(8px);
  }

  62%, 100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes coreBreathe {
  0%, 100% {
    transform: scale(0.96);
  }

  44%, 62% {
    transform: scale(1.05);
  }
}

@keyframes coreTurn {
  0% {
    transform: rotate(45deg) scale(1);
  }

  58% {
    transform: rotate(225deg) scale(0.72);
  }

  100% {
    transform: rotate(225deg) scale(0.72);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .demo-source,
  .demo-output,
  .document-lines span,
  .semantic-snippet,
  .fold-core,
  .fold-core span {
    animation: none;
  }
}

.artifact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 18px 18px;
}

.artifact-strip span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(28, 32, 38, 0.08);
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.flow-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: center;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(28, 32, 38, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-soft);
}

.flow-strip span {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  --flow-fill: 0;
  --flow-shift: -100%;
  --flow-tail: 72px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding-top: 2px;
  background: #f7f9fc;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
  transition: color 260ms ease, box-shadow 260ms ease;
}

.flow-strip span::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 0;
  width: calc(100% + var(--flow-tail));
  border-radius: inherit;
  background: linear-gradient(90deg, #000 0%, #17101f 48%, #4a2476 calc(100% - var(--flow-tail)), rgba(74, 36, 118, 0) 100%);
  opacity: 0.96;
  transform: translateX(var(--flow-shift));
  transform-origin: left center;
  transition: transform 260ms cubic-bezier(0.32, 0.72, 0.22, 1);
}

.flow-strip span.is-complete::before {
  transform: translateX(0);
}

.flow-strip span > b {
  position: relative;
  z-index: 1;
  font: inherit;
  line-height: 1;
  transform: translateY(2px);
}

.flow-strip span.is-active,
.flow-strip span.is-complete {
  color: #fff;
  box-shadow: 0 12px 26px rgba(35, 20, 52, 0.18);
}

.flow-strip span.is-active > b,
.flow-strip span.is-complete > b {
  text-shadow:
    0 0 5px rgba(74, 36, 118, 0.92),
    0 0 12px rgba(74, 36, 118, 0.55);
}

.flow-strip i {
  position: relative;
  overflow: hidden;
  --flow-fill: 0;
  --flow-shift: -100%;
  --flow-tail: 18px;
  width: 1px;
  height: 18px;
  justify-self: center;
  background: rgba(74, 36, 118, 0.22);
}

.flow-strip i::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  width: 100%;
  height: calc(100% + var(--flow-tail));
  background: linear-gradient(180deg, #000 0%, #17101f 48%, #4a2476 calc(100% - var(--flow-tail)), rgba(74, 36, 118, 0) 100%);
  transform: translateY(var(--flow-shift));
  transform-origin: center top;
  transition: transform 260ms cubic-bezier(0.32, 0.72, 0.22, 1);
}

.process-flow {
  position: relative;
  margin: calc(-4px + var(--process-flow-editor-top-offset, 0px)) 0 34px;
}

.process-orb-canvas {
  width: 100%;
  height: 152px;
  display: block;
  margin: -4px 0 -10px;
  background: transparent !important;
  pointer-events: none;
}

.section {
  padding: 68px 0;
}

.section h2,
.workbench h2,
.settings-box h2 {
  margin: 0 0 20px;
  font-size: 2.1rem;
  line-height: 1.05;
  letter-spacing: 0;
}

.steps,
.plans {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  grid-auto-rows: 1fr;
  gap: 16px;
}

.steps article,
.plan,
.auth-box,
.upload-panel,
.library,
.settings-box {
  border: 1px solid rgba(28, 32, 38, 0.08);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.steps article,
.plan {
  position: relative;
  overflow: hidden;
  padding: 24px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.plan {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.steps article:hover {
  transform: translateY(-3px);
  border-color: rgba(74, 36, 118, 0.18);
  box-shadow: 0 22px 54px rgba(35, 42, 54, 0.12);
}

.plan:hover {
  border-color: rgba(74, 36, 118, 0.18);
  box-shadow: 0 22px 54px rgba(35, 42, 54, 0.12);
}

.steps strong {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border-radius: 8px;
  padding-top: 3px;
  background: #f3edf9;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
}

.steps h3,
.plan h3 {
  margin: 18px 0 8px;
  font-size: 1.15rem;
}

.steps p,
.plan p,
.muted {
  color: var(--muted);
  line-height: 1.45;
}

.token-estimate {
  display: block;
  margin: -8px 0 10px;
  color: color-mix(in srgb, var(--muted) 76%, white);
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.2;
}

.billing-toggle {
  width: max-content;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 22px auto 20px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.billing-toggle span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1;
  text-transform: lowercase;
  white-space: nowrap;
  transform: translateY(var(--ui-type-y));
}

.billing-toggle small {
  color: var(--ink);
  font-size: 0.68rem;
  line-height: 1;
  transform: translateY(var(--ui-type-y));
}

.billing-switch {
  width: 54px;
  height: 30px;
  position: relative;
  display: inline-flex;
  cursor: pointer;
}

.billing-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.billing-switch i {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 999px;
  background: var(--button-gradient);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.billing-switch i::before {
  content: "";
  width: 22px;
  height: 22px;
  position: absolute;
  top: 4px;
  left: 4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.22);
  transition: transform 180ms ease;
}

.billing-switch input:checked + i::before {
  transform: translateX(24px);
}

.annual-note {
  min-height: 0.86rem;
  display: block;
  margin: -8px 0 14px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 750;
  line-height: 1.15;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 220ms ease;
}

body.is-annual-billing .annual-note {
  opacity: 1;
  visibility: visible;
}

.plan-contract {
  width: auto;
  min-width: 138px;
  margin-top: auto;
  margin-left: auto;
  align-self: flex-end;
  padding-top: 4px;
}

.plan p:last-of-type {
  margin-bottom: 18px;
}

.plan-login-box {
  margin-top: 22px;
}

.plan-login-box[hidden] {
  display: none;
}

.plan-login-box .auth-box {
  max-width: 720px;
  margin: 0 auto;
}

.plan-login-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.about {
  display: grid;
  gap: 18px;
  border-top: 1px solid rgba(28, 32, 38, 0.08);
  border-bottom: 1px solid rgba(28, 32, 38, 0.08);
}

.console-about {
  align-items: center;
}

.about h2,
.contact-band h1,
.contact-band h2 {
  max-width: 860px;
  margin-bottom: 0;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.compare-card {
  min-height: 190px;
  padding: 24px;
  border: 1px solid rgba(28, 32, 38, 0.08);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.compare-card span {
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.compare-card h3 {
  margin: 22px 0 10px;
  font-size: 1.35rem;
}

.compare-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.compare-card.strong {
  background: var(--dark-card-gradient);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
}

.compare-card.strong span {
  color: #d7c5ef;
}

.compare-card.strong p {
  color: rgba(255, 255, 255, 0.74);
}

.landing-document-demo {
  grid-column: 1 / -1;
  margin-top: 18px;
}

.landing-document-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}

.landing-document-demo .landing-document-card {
  min-height: 164px;
  align-content: start;
  padding: 14px;
  background: #fff;
  transform: translateY(0);
  transition:
    border-color 240ms ease,
    box-shadow 420ms ease,
    color 420ms ease,
    filter 420ms ease;
}

.landing-document-demo .landing-document-card:hover,
.landing-document-demo .landing-document-card:focus-visible {
  transform: translateY(0);
}

.landing-document-demo .landing-document-card strong {
  white-space: normal;
}

.landing-document-demo .landing-document-card:not(.is-demo-complete) {
  --document-cell-bg: #fff;
  --document-cell-hover-bg: #fbf8ff;
  border-color: rgba(74, 36, 118, 0.16);
  background: linear-gradient(135deg, #fff 0%, #fbf8ff 100%);
  color: var(--ink);
  box-shadow: 0 14px 32px rgba(35, 42, 54, 0.08);
}

.landing-document-demo .landing-document-card:not(.is-demo-complete) strong,
.landing-document-demo .landing-document-card:not(.is-demo-complete) span,
.landing-document-demo .landing-document-card:not(.is-demo-complete) small {
  color: var(--ink);
  text-shadow: none;
}

.landing-document-demo .landing-document-card:not(.is-demo-complete) span,
.landing-document-demo .landing-document-card:not(.is-demo-complete) small {
  color: rgba(88, 95, 110, 0.72);
}

.landing-document-demo .landing-document-card:not(.is-demo-complete) .compression-badge {
  visibility: hidden;
  opacity: 0;
}

.landing-document-demo .landing-document-card:not(.is-demo-complete)[data-document-preview]::after {
  opacity: 0;
  transform: translateY(4px) scale(0.92);
}

.landing-document-demo .landing-document-card.is-demo-complete[data-document-preview]::after {
  opacity: 1;
  transform: translateY(0) scale(1);
  background-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18),
    0 0 18px rgba(255, 255, 255, 0.62),
    0 0 34px rgba(215, 197, 239, 0.46);
  animation: landingPreviewGlowPulse 2.4s ease-in-out infinite;
}

@keyframes landingPreviewGlowPulse {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.16),
      0 0 13px rgba(255, 255, 255, 0.44),
      0 0 26px rgba(215, 197, 239, 0.34);
  }

  50% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.24),
      0 0 22px rgba(255, 255, 255, 0.72),
      0 0 42px rgba(215, 197, 239, 0.54);
  }
}

.landing-document-demo .landing-document-card.is-demo-complete {
  border-color: rgba(215, 197, 239, 0.24);
  color: #fff;
  box-shadow: 0 14px 34px rgba(8, 10, 14, 0.08);
  animation: landingDocumentCardIn 720ms ease-out both;
}

.landing-document-demo .landing-document-card.is-demo-complete strong,
.landing-document-demo .landing-document-card.is-demo-complete span,
.landing-document-demo .landing-document-card.is-demo-complete small {
  color: #fff;
}

.landing-document-demo .landing-document-card.is-demo-complete span,
.landing-document-demo .landing-document-card.is-demo-complete small {
  color: rgba(255, 255, 255, 0.74);
}

.landing-document-demo .document-original.is-demo-complete {
  --document-cell-bg: linear-gradient(135deg, #241037 0%, #4a2476 54%, #7e3ec6 100%);
  --document-cell-hover-bg: linear-gradient(135deg, #170921 0%, #552985 54%, #8b48d8 100%);
  background: linear-gradient(135deg, #241037 0%, #4a2476 54%, #7e3ec6 100%);
  padding-bottom: 38px;
}

.landing-document-demo .document-prosefold.is-demo-complete {
  --document-cell-bg: var(--dark-card-gradient-soft);
  background: var(--dark-card-gradient-soft);
}

.landing-document-demo .document-cypher.is-demo-complete {
  --document-cell-bg: linear-gradient(135deg, #000 0%, #18101f 48%, #4a2476 100%);
  background: linear-gradient(135deg, #000 0%, #18101f 48%, #4a2476 100%);
}

.landing-document-demo .document-minified.is-demo-complete {
  --document-cell-bg: var(--button-gradient);
  background: var(--button-gradient);
}

.landing-document-demo .document-source-pills {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.landing-document-demo .document-original.is-demo-complete .document-source-pills {
  opacity: 1;
  transform: translateY(0);
}

.landing-document-demo .document-source-pill {
  cursor: pointer;
}

.landing-demo-progress {
  opacity: 1;
  transition: opacity 260ms ease, transform 260ms ease;
}

.landing-document-demo .document-original.is-demo-complete .landing-demo-progress {
  opacity: 0;
  transform: translateY(5px);
  pointer-events: none;
}

.landing-document-demo .landing-document-card[data-document-preview]::after {
  right: 10px;
  top: 10px;
  bottom: auto;
}

.landing-document-note {
  max-width: 980px;
  margin: 14px 0 0 auto;
  color: rgba(88, 95, 110, 0.78);
  font-size: 0.92rem;
  line-height: 1.55;
  text-align: right;
}

.landing-document-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.service-integrations-note {
  margin-top: 18px;
}

.service-integrations-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.service-integrations-actions .button {
  min-height: 40px;
  padding: 2px 16px 0;
  font-size: 0.84rem;
}

@keyframes landingDocumentCardIn {
  from {
    box-shadow:
      inset 0 0 0 999px rgba(255, 255, 255, 0.94),
      0 14px 34px rgba(8, 10, 14, 0);
    filter: saturate(0.72) brightness(1.08);
  }
  to {
    box-shadow:
      inset 0 0 0 999px rgba(255, 255, 255, 0),
      0 14px 34px rgba(8, 10, 14, 0.08);
    filter: saturate(1) brightness(1);
  }
}

.service-cards article:nth-child(2) strong {
  background: #e8f7f5;
  color: var(--teal);
}

.service-cards article:nth-child(3) strong {
  background: #fff6e8;
  color: var(--gold);
}

.service-cards article:nth-child(4) strong {
  background: #f4efff;
  color: var(--violet);
}

.contact-band {
  display: grid;
  gap: 22px;
  align-items: start;
  border-top: 1px solid var(--line);
}

.contact-page {
  min-height: calc(100vh - 220px);
  grid-template-columns: 1fr;
  border-top: 0;
}

.contact-band.contact-page {
  grid-template-columns: 1fr;
}

.contact-page-head {
  max-width: 860px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  grid-template-areas: "contact ticket";
  gap: 18px;
  align-items: stretch;
}

.contact-layout.is-contact-only {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  grid-template-areas: "contact .";
}

.contact-layout.is-contact-only .contact-form {
  grid-area: contact;
}

.contact-primary-form {
  grid-area: contact;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  align-content: stretch;
}

.contact-ticket-panel {
  grid-area: ticket;
}

.contact-form,
.contact-ticket-panel,
.contact-ticket-history {
  width: 100%;
  display: grid;
  gap: 12px;
  border: 1px solid rgba(28, 32, 38, 0.08);
  border-radius: 8px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.contact-form label {
  margin: 0;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-self: end;
  gap: 10px;
  margin-top: auto;
}

.contact-form .button,
.contact-ticket-form .button {
  justify-self: end;
}

.contact-action-button {
  min-width: 156px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 2px 18px 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.contact-ticket-panel {
  grid-template-rows: auto 1fr;
  align-content: stretch;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(251, 248, 255, 0.92));
}

.contact-ticket-history {
  background: rgba(255, 255, 255, 0.82);
}

.contact-ticket-head h2 {
  margin: 2px 0 0;
  font-size: 1.32rem;
  line-height: 1.12;
}

.contact-ticket-form {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-content: stretch;
  gap: 10px;
  height: 100%;
}

.contact-ticket-form label {
  margin: 0;
}

.contact-ticket-form textarea {
  min-height: 118px;
}

.contact-ticket-form .contact-action-button {
  align-self: end;
}

.contact-ticket-list {
  display: grid;
  gap: 8px;
}

.contact-ticket-list h3 {
  margin: 0;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.2;
}

.contact-ticket-card {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(74, 36, 118, 0.1);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.74);
}

.contact-ticket-card.is-resolved {
  opacity: 0.58;
  filter: saturate(0.7);
}

.contact-ticket-card strong,
.contact-ticket-card span,
.contact-ticket-card p {
  display: block;
}

.contact-ticket-card strong {
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1.25;
}

.contact-ticket-card span {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
}

.contact-ticket-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.38;
}

.library-promise {
  display: grid;
  gap: 22px;
  align-items: center;
  border-top: 1px solid rgba(28, 32, 38, 0.08);
}

.library-preview-shell {
  display: grid;
  gap: 12px;
}

.library-preview {
  overflow: hidden;
  border: 1px solid rgba(28, 32, 38, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.library-preview-actions {
  display: flex;
  justify-content: flex-end;
}

.library-preview-note {
  max-width: 100%;
  margin: 0;
}

.library-preview-actions .button {
  min-height: 40px;
  padding: 2px 16px 0;
  font-size: 0.84rem;
}

.library-preview-head {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(28, 32, 38, 0.08);
}

.library-preview-head span {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
}

.library-files {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.library-files span {
  min-height: 44px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  border: 1px solid rgba(28, 32, 38, 0.08);
  border-radius: 8px;
  padding: 2px 14px 0;
  background: #f7f9fc;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1;
}

.library-file-markdown {
  background: #fbf8ff !important;
  border-color: rgba(74, 36, 118, 0.12) !important;
  color: var(--accent);
}

.library-file-prosefold,
.library-file-cypher,
.library-file-minified {
  border-color: rgba(255, 255, 255, 0.16) !important;
  color: #fff !important;
  text-shadow:
    0 0 5px rgba(74, 36, 118, 0.92),
    0 0 12px rgba(74, 36, 118, 0.55);
}

.library-file-prosefold {
  background: var(--dark-card-gradient-soft) !important;
}

.library-file-cypher {
  background: linear-gradient(135deg, #000 0%, #18101f 48%, #4a2476 100%) !important;
}

.library-file-minified {
  background: var(--button-gradient) !important;
  box-shadow: 0 14px 32px rgba(8, 10, 14, 0.16);
}

.plan-matrix {
  display: grid;
  grid-template-columns: minmax(132px, 1.1fr) repeat(3, minmax(116px, 1fr));
  gap: 1px;
  overflow: auto;
  margin: 0 0 18px;
  border: 1px solid rgba(28, 32, 38, 0.08);
  border-radius: 8px;
  background: rgba(28, 32, 38, 0.08);
  box-shadow: var(--shadow-soft);
}

.plan-matrix div {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 11px 12px;
  background: #fff;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.plan-matrix .matrix-head {
  background: var(--dark-card-gradient-soft);
  color: rgba(255, 255, 255, 0.86);
}

.price {
  color: var(--ink) !important;
  font-size: 2rem;
  font-weight: 800;
}

.price [data-plan-price] {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.price span:not([data-plan-price]),
.price [data-plan-period-label] {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
}

.plan.featured {
  background: var(--dark-card-gradient);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
}

.plan.plan-basic {
  background: linear-gradient(135deg, #7d818a 0%, #363942 42%, #050505 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
}

.plan.featured p,
.plan.featured .price span,
.plan.plan-basic p,
.plan.plan-basic .price span {
  color: rgba(255, 255, 255, 0.72) !important;
}

.plan.featured .price,
.plan.featured h3,
.plan.plan-basic .price,
.plan.plan-basic h3 {
  color: #fff !important;
}

.plan.plan-basic .token-estimate,
.plan.plan-basic .annual-note {
  color: rgba(255, 255, 255, 0.56);
}

.plan-badge {
  min-height: 30px;
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  border-radius: 8px;
  padding: 4px 10px 0;
  background: rgba(215, 197, 239, 0.18);
  color: #e2d1f7;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.flash {
  margin: 12px 0 20px;
  padding: 13px 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}

.toast {
  position: fixed;
  top: 92px;
  right: max(16px, calc((100vw - min(1180px, calc(100% - 32px))) / 2));
  z-index: 120;
  width: min(430px, calc(100vw - 32px));
  margin: 0;
  border-color: rgba(74, 36, 118, 0.16);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: 0 18px 56px rgba(35, 42, 54, 0.16);
  backdrop-filter: saturate(180%) blur(22px);
  pointer-events: none;
  animation: toastLifecycle 5200ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.toast.info {
  border-color: rgba(74, 36, 118, 0.2);
  color: var(--accent-strong);
}

.flash.success {
  border-color: #aad4ba;
  color: var(--ok);
}

.flash.error {
  border-color: #e2aca5;
  color: var(--danger);
}

.confirm-shell {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: grid;
  place-items: center;
  padding: 24px;
}

.confirm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 10, 14, 0.24);
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 160ms ease;
}

.confirm-window {
  position: relative;
  width: min(420px, 100%);
  border: 1px solid rgba(28, 32, 38, 0.08);
  border-radius: 8px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 90px rgba(8, 10, 14, 0.22);
  opacity: 0;
  transform: translateY(10px) scale(0.985);
  transition: opacity 160ms ease, transform 160ms ease;
}

.confirm-shell.is-open .confirm-backdrop,
.confirm-shell.is-open .confirm-window {
  opacity: 1;
}

.confirm-shell.is-open .confirm-window {
  transform: translateY(0) scale(1);
}

.confirm-window h2 {
  margin: 0 0 10px;
  font-size: 1.24rem;
  line-height: 1.16;
}

.confirm-window p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

@keyframes toastLifecycle {
  0% {
    opacity: 0;
    transform: translateY(-10px) scale(0.985);
  }
  10%,
  82% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-8px) scale(0.99);
  }
}

.auth-shell {
  min-height: calc(100vh - 152px);
  display: grid;
  place-items: center;
  padding: 42px 0;
}

.auth-box {
  width: min(460px, 100%);
  padding: 28px;
}

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

.payment-method-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

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

.payment-payer-fields label {
  margin: 0;
}

.payment-method-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.pix-qrcode {
  width: min(280px, 100%);
  height: auto;
  display: block;
  margin: 18px auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(8, 10, 14, 0.12);
}

label {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  color: var(--ink);
  font-weight: 700;
}

.field {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.field-label {
  color: var(--ink);
  font-weight: 700;
}

.secret-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.key-status-dot {
  width: 9px;
  height: 9px;
  display: inline-block;
  flex: 0 0 auto;
  border-radius: 999px;
}

.key-status-dot.is-set {
  background: #20b765;
  box-shadow:
    0 0 0 4px rgba(32, 183, 101, 0.15),
    0 0 14px rgba(32, 183, 101, 0.46);
  animation: keyStatusPulse 1.7s ease-in-out infinite;
}

.key-status-dot.is-empty {
  background: #c7ccd6;
  box-shadow: 0 0 0 4px rgba(28, 32, 38, 0.06);
}

@keyframes keyStatusPulse {
  0%,
  100% {
    box-shadow:
      0 0 0 4px rgba(32, 183, 101, 0.12),
      0 0 10px rgba(32, 183, 101, 0.36);
    transform: scale(1);
  }

  50% {
    box-shadow:
      0 0 0 6px rgba(32, 183, 101, 0.2),
      0 0 20px rgba(32, 183, 101, 0.62);
    transform: scale(1.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  .key-status-dot.is-set {
    animation: none;
  }
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 160px;
  resize: vertical;
}

.dashboard-head,
.settings {
  padding: 36px 0 24px;
}

.dashboard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.dashboard-plan-button {
  min-width: 178px;
  min-height: 58px;
  align-self: flex-start;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  padding: 8px 15px;
  text-align: right;
  white-space: nowrap;
}

.dashboard-plan-title {
  display: block;
  transform: translateY(2px);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.67rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  line-height: 1.1;
  text-transform: uppercase;
}

.dashboard-plan-title [data-basic-plan-word] {
  display: inline-block;
  min-width: 78px;
  color: #fff;
  text-align: left;
  transition: opacity 320ms ease;
}

.dashboard-plan-title [data-basic-plan-word].is-fading {
  opacity: 0;
}

.workbench {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 16px 0 64px;
}

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

.upload-panel,
.library,
.settings-box {
  padding: 22px;
}

.settings-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.settings-column {
  display: grid;
  gap: 14px;
}

.settings-column-title {
  margin: 0;
  color: var(--accent-strong);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.settings-box {
  display: grid;
  gap: 14px;
}

.settings-box h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.18;
}

.settings-box label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.admin-keys-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.admin-key-box {
  align-self: stretch;
}

.admin-prices-box {
  margin-top: 18px;
}

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

.admin-price-card {
  border: 1px solid rgba(28, 32, 38, 0.08);
  border-radius: 8px;
  padding: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(249, 247, 252, 0.92));
}

.admin-price-card h2 {
  margin-bottom: 10px;
}

.admin-price-card small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 650;
}

.admin-prices-actions {
  justify-content: flex-end;
  margin-top: 2px;
}

.admin-coupon-form,
.admin-coupons-list {
  margin-top: 18px;
}

.admin-coupon-create-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.admin-coupon-create-grid label,
.admin-coupon-create-grid .field {
  margin: 0;
}

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

.coupon-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(86px, 0.35fr) minmax(110px, 0.45fr) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(74, 36, 118, 0.14);
  border-radius: 8px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 241, 251, 0.94));
  transition: opacity 180ms ease, filter 180ms ease, background 180ms ease, border-color 180ms ease;
}

.coupon-row.is-dimmed {
  border-color: rgba(28, 32, 38, 0.08);
  background: linear-gradient(135deg, rgba(245, 246, 248, 0.9), rgba(237, 239, 243, 0.82));
  filter: grayscale(1);
  opacity: 0.48;
}

.coupon-row strong,
.coupon-row span,
.coupon-row small {
  display: block;
}

.coupon-row strong {
  color: var(--ink);
  font-size: 0.96rem;
}

.coupon-row span,
.coupon-row small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.coupon-row form {
  margin: 0;
}

.admin-sales,
.admin-users {
  display: grid;
  gap: 18px;
}

.admin-control-list {
  margin-top: 0;
}

.admin-control-row,
.admin-user-row {
  display: grid;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(28, 32, 38, 0.08);
  border-radius: 8px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 244, 251, 0.92));
}

.admin-control-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.admin-control-row.sale-status-paid {
  border-color: rgba(32, 183, 101, 0.18);
}

.admin-control-row.sale-status-cancelled,
.admin-control-row.sale-status-failed,
.admin-control-row.sale-status-refunded {
  filter: grayscale(1);
  opacity: 0.62;
}

.admin-user-row {
  grid-template-columns: minmax(220px, 1.25fr) minmax(132px, 0.62fr) minmax(132px, 0.62fr) minmax(132px, 0.62fr) minmax(130px, 0.58fr) minmax(170px, 0.82fr) minmax(228px, auto);
}

.admin-control-row strong,
.admin-control-row span,
.admin-control-row small,
.admin-user-identity strong,
.admin-user-identity span,
.admin-user-identity small {
  display: block;
}

.admin-control-row strong,
.admin-user-identity strong {
  color: var(--ink);
  font-size: 0.96rem;
}

.admin-control-row span,
.admin-control-row small,
.admin-user-identity span,
.admin-user-identity small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.admin-user-identity.is-suspended {
  filter: grayscale(1);
  opacity: 0.56;
}

.admin-user-usage {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.admin-user-usage span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border: 1px solid rgba(74, 36, 118, 0.14);
  border-radius: 999px;
  padding: 3px 8px 1px;
  background: rgba(246, 241, 251, 0.82);
  color: var(--accent-strong);
  font-size: 0.7rem;
  font-weight: 760;
  line-height: 1;
  white-space: nowrap;
}

.admin-control-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.admin-control-actions form,
.admin-user-row label,
.admin-user-row .field {
  margin: 0;
}

.admin-user-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  align-self: end;
}

.admin-user-actions .button {
  min-width: 0;
  min-height: 42px;
  padding-inline: 13px;
}

.admin-tickets {
  display: grid;
  gap: 18px;
}

.admin-ticket-list {
  margin-top: 0;
}

.ticket-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(74, 36, 118, 0.14);
  border-radius: 8px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 244, 251, 0.92));
}

.ticket-card.is-resolved {
  filter: grayscale(1);
  opacity: 0.62;
}

.ticket-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.ticket-card-head strong,
.ticket-card-head span,
.ticket-meta span {
  display: block;
}

.ticket-card-head strong {
  color: var(--ink);
  font-size: 1rem;
}

.ticket-card-head span,
.ticket-meta span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.ticket-meta {
  display: grid;
  gap: 3px;
}

.ticket-message {
  margin: 0;
  color: var(--ink);
  line-height: 1.5;
}

.ticket-error {
  margin: 0;
  color: var(--danger);
  font-weight: 750;
}

.admin-stats {
  display: grid;
  gap: 18px;
}

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

.stats-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.stat-card {
  border: 1px solid rgba(28, 32, 38, 0.08);
  border-radius: 8px;
  padding: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(246, 241, 251, 0.92));
  box-shadow: var(--shadow-soft);
}

.stat-card span,
.stat-card small {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.3;
}

.stat-card span {
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-card strong {
  display: block;
  margin: 8px 0 4px;
  color: var(--ink);
  font-size: clamp(1.55rem, 2vw, 2.35rem);
  line-height: 1;
}

.stats-table {
  display: grid;
  gap: 6px;
  overflow-x: auto;
}

.stats-table-row {
  min-width: 560px;
  display: grid;
  grid-template-columns: repeat(var(--stats-columns, 3), minmax(0, 1fr));
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  padding: 9px 10px;
  background: rgba(246, 247, 250, 0.72);
}

.stats-table-row.is-head {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.92), rgba(74, 36, 118, 0.86));
}

.stats-table-row span {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stats-table-row.is-head span {
  color: #fff;
  text-shadow: 0 0 8px rgba(74, 36, 118, 0.72);
}

.secret-field small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
}

.secret-field input::placeholder {
  color: var(--ink);
  letter-spacing: 0.14em;
  opacity: 0.62;
}

.upload-panel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.workbench .upload-panel h2,
.workbench .documents-library h2 {
  margin-bottom: 16px;
  font-size: 1.38rem;
  line-height: 1.14;
}

.file-drop {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 178px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 1.5px dashed rgba(74, 36, 118, 0.24);
  border-radius: 8px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(251, 248, 255, 0.9));
  color: var(--muted);
  cursor: pointer;
  text-align: center;
  transition: border-color 320ms ease, box-shadow 320ms ease;
}

.file-drop::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(250, 247, 255, 1), rgba(232, 219, 249, 0.96));
  opacity: 0;
  transition: opacity 520ms ease;
}

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

.file-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.file-drop span {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.file-drop strong {
  color: var(--ink);
  font-size: 1.02rem;
}

.file-drop small {
  max-width: 310px;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.35;
}

.file-drop.is-dragover,
.file-drop:hover {
  border-color: rgba(74, 36, 118, 0.54);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(243, 237, 249, 0.96));
  box-shadow: 0 18px 42px rgba(35, 42, 54, 0.1);
}

.file-drop.is-filled {
  border-color: rgba(74, 36, 118, 0.58);
  box-shadow: 0 18px 42px rgba(74, 36, 118, 0.12);
}

.file-drop.is-filled::before {
  opacity: 1;
}

.file-drop.is-filled strong {
  color: var(--accent-strong);
}

.file-drop.is-invalid {
  border-color: rgba(159, 45, 32, 0.46);
  background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(255, 243, 241, 0.96));
}

.url-import-drop {
  box-sizing: border-box;
  height: 178px;
  min-height: 178px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 9px;
  border: 1.5px dashed rgba(74, 36, 118, 0.24);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(251, 248, 255, 0.9));
  color: var(--ink);
  cursor: text;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.url-import-drop:hover,
.url-import-drop:focus-within {
  border-color: rgba(74, 36, 118, 0.54);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(243, 237, 249, 0.96));
  box-shadow: 0 18px 42px rgba(35, 42, 54, 0.1);
}

.url-import-drop textarea {
  width: 100%;
  min-height: 0;
  border: 0;
  padding: 0;
  resize: none;
  background: transparent;
  color: var(--ink);
  outline: 0;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.45;
}

.url-import-drop textarea::placeholder {
  color: rgba(28, 31, 38, 0.42);
}

.url-import-drop small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.35;
}

.custom-select {
  position: relative;
}

.custom-select-trigger {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 40px 10px 12px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  text-align: left;
}

.custom-select-trigger::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  opacity: 0.54;
  transform: translateY(-65%) rotate(45deg);
  transition: transform 160ms ease;
}

.custom-select.is-open .custom-select-trigger::after {
  transform: translateY(-35%) rotate(225deg);
}

.custom-select-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 50;
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(28, 32, 38, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 42px rgba(28, 32, 38, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.custom-select.is-open .custom-select-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.custom-select-menu button {
  min-height: 38px;
  border: 0;
  border-radius: 7px;
  padding: 8px 10px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 720;
  text-align: left;
}

.custom-select-menu button:hover,
.custom-select-menu button.is-selected {
  background: rgba(74, 36, 118, 0.08);
  color: var(--accent-strong);
}

.compression-slider-field {
  margin: 14px 0;
}

.upload-panel > .compression-slider-field {
  margin-top: -6px;
}

.compression-slider-row {
  min-height: 30px;
}

.compression-slider {
  min-height: 24px;
  display: grid;
  grid-template-columns: auto 42px auto;
  align-items: center;
  justify-content: end;
  gap: 7px;
  margin: 0 0 0 auto;
  color: var(--ink);
  font-weight: 800;
}

.compression-slider input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.compression-slider i {
  width: 42px;
  height: 22px;
  position: relative;
  display: block;
  border-radius: 999px;
  background: linear-gradient(135deg, #4a2476 0%, #241039 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  transition: background 180ms ease;
}

.compression-slider i::before {
  content: "";
  width: 16px;
  height: 16px;
  position: absolute;
  top: 3px;
  left: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.26);
  transition: transform 180ms ease, background 180ms ease;
}

.compression-slider input[type="checkbox"]:checked + i {
  background: linear-gradient(135deg, #24252a 0%, #000 100%);
}

.compression-slider input[type="checkbox"]:checked + i::before {
  transform: translateX(20px);
  background: #f4edff;
}

.compression-option {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.1;
  transition: color 160ms ease;
}

.compression-slider:not(.is-ultra) .compression-option:first-child,
.compression-slider.is-ultra .compression-option:last-child {
  color: var(--ink);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
  padding-top: 14px;
}

.upload-panel > .form-actions .button {
  padding-top: 2px;
}

.table {
  display: grid;
  gap: 8px;
}

.row {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.row strong,
.row span,
.row small {
  display: block;
}

.row span,
.row small {
  margin-top: 4px;
  color: var(--muted);
}

.icon-button,
.downloads a {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 900;
  color: var(--accent);
}

.downloads {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  max-width: 420px;
}

.downloads a {
  width: auto;
  min-width: 74px;
  height: 34px;
  flex: 0 0 auto;
  padding: 0 10px;
  font-size: 0.8rem;
  font-weight: 800;
}

.documents-table {
  display: grid;
  gap: 8px;
}

.documents-library {
  scroll-margin-top: 110px;
}

.documents-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
}

.workbench .documents-titlebar h2 {
  margin-bottom: 0;
}

.document-filter {
  position: relative;
  width: min(100%, 320px);
  display: block;
  flex: 0 1 320px;
}

.document-filter input {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(74, 36, 118, 0.14);
  border-radius: 8px;
  padding: 8px 38px 8px 12px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 400;
  outline: 0;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.document-filter input::placeholder {
  color: rgba(88, 95, 110, 0.48);
  font-weight: 400;
}

.document-filter input:focus {
  border-color: rgba(74, 36, 118, 0.42);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(74, 36, 118, 0.08);
}

.document-filter input::-webkit-search-cancel-button {
  display: none;
}

.document-filter button {
  position: absolute;
  top: 50%;
  right: 6px;
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 180ms ease, color 180ms ease;
}

.document-filter button:hover,
.document-filter button:focus-visible {
  background: rgba(74, 36, 118, 0.08);
  color: var(--accent-strong);
}

.document-row.is-filter-hidden {
  display: none;
}

.documents-filter-empty {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.documents-pump-status {
  margin: -6px 0 16px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
}

.documents-header,
.document-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) repeat(3, minmax(124px, 0.95fr)) 44px;
  gap: 8px;
  align-items: stretch;
}

.document-row {
  transform-origin: center;
  will-change: transform, opacity, filter;
  transition:
    opacity 360ms ease,
    filter 360ms ease,
    transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.document-row.is-client-pending {
  animation: pendingDocumentIn 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.document-row.is-client-pending .document-cell {
  border-color: rgba(74, 36, 118, 0.18);
}

@keyframes pendingDocumentIn {
  from {
    opacity: 0;
    filter: blur(3px);
    transform: translateY(-10px) scale(0.992);
  }
  55% {
    opacity: 1;
    filter: blur(0.6px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

.document-row.is-removing {
  opacity: 0;
  filter: blur(2px);
  pointer-events: none;
  transform: translateY(-6px) scale(0.985);
}

.documents-header {
  padding: 0 2px 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.document-cell {
  --document-cell-bg: #fff;
  --document-cell-hover-bg: #fbf8ff;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 68px;
  display: grid;
  align-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--document-cell-bg);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.document-cell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--document-cell-hover-bg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.document-cell[data-document-preview]::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 1;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-sizing: border-box;
  background-color: rgba(255, 255, 255, 0.1);
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http://www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%222.4%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2210.5%22%20cy%3D%2210.5%22%20r%3D%225.5%22/%3E%3Cpath%20d%3D%22M15%2015l4.5%204.5%22/%3E%3C/svg%3E");
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: 14px 14px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 0;
  opacity: 0;
  transform: translateY(4px) scale(0.92);
  transition: opacity 180ms ease, transform 180ms ease;
  box-shadow: 0 0 12px rgba(74, 36, 118, 0.38);
}

.document-cell[data-document-preview]:hover::after,
.document-cell[data-document-preview]:focus-visible::after {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.document-cell[data-document-preview] strong::after {
  content: none;
}

.document-cell:hover {
  border-color: rgba(74, 36, 118, 0.24);
  box-shadow: 0 10px 24px rgba(35, 42, 54, 0.08);
}

.document-cell:hover::before {
  opacity: 1;
}

.document-row:not(.is-client-pending) .document-original:not(.is-disabled) {
  --document-cell-bg: linear-gradient(135deg, #241037 0%, #4a2476 54%, #7e3ec6 100%);
  --document-cell-hover-bg: linear-gradient(135deg, #170921 0%, #552985 52%, #8b48d8 100%);
  border-color: rgba(215, 197, 239, 0.24);
  padding-bottom: 38px;
  color: #fff;
  box-shadow: 0 14px 34px rgba(74, 36, 118, 0.12);
  animation: completedCellBackgroundIn 760ms ease-out;
}

.document-source-pills {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  gap: 5px;
}

.document-source-pill {
  min-height: 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 4px 8px 0;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.62rem;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  text-transform: lowercase;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.document-source-pill:hover,
.document-source-pill:focus-visible {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.document-prosefold,
.document-cypher,
.document-minified {
  --document-cell-hover-bg: var(--button-gradient-hover);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
  box-shadow: 0 14px 34px rgba(8, 10, 14, 0.08);
}

.documents-library .document-prosefold,
.documents-library .document-cypher,
.documents-library .document-minified {
  align-content: start;
}

.document-row:not(.is-client-pending) .document-prosefold:not(.is-disabled),
.document-row:not(.is-client-pending) .document-cypher:not(.is-disabled),
.document-row:not(.is-client-pending) .document-minified:not(.is-disabled) {
  animation: completedCellBackgroundIn 840ms ease-out;
}

.document-row:not(.is-client-pending) .document-cypher:not(.is-disabled) {
  animation-delay: 90ms;
}

.document-row:not(.is-client-pending) .document-minified:not(.is-disabled) {
  animation-delay: 180ms;
}

@keyframes completedCellBackgroundIn {
  from {
    box-shadow:
      inset 0 0 0 999px rgba(255, 255, 255, 0.92),
      0 14px 34px rgba(8, 10, 14, 0);
    filter: saturate(0.72) brightness(1.08);
  }
  to {
    box-shadow:
      inset 0 0 0 999px rgba(255, 255, 255, 0),
      0 14px 34px rgba(8, 10, 14, 0.08);
    filter: saturate(1) brightness(1);
  }
}

.document-prosefold {
  --document-cell-bg: var(--dark-card-gradient-soft);
}

.document-cypher {
  --document-cell-bg: linear-gradient(135deg, #000 0%, #18101f 48%, #4a2476 100%);
}

.document-minified {
  --document-cell-bg: var(--button-gradient);
}

.document-prosefold:hover,
.document-cypher:hover,
.document-minified:hover {
  border-color: rgba(215, 197, 239, 0.28);
  box-shadow: 0 16px 36px rgba(8, 10, 14, 0.18);
}

.document-row:not(.is-client-pending) .document-original:not(.is-disabled):hover {
  border-color: rgba(215, 197, 239, 0.34);
  box-shadow: 0 16px 36px rgba(74, 36, 118, 0.2);
}

.document-cell strong,
.document-cell span,
.document-cell small {
  position: relative;
  display: block;
}

.document-cell strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-title-with-badge {
  display: flex !important;
  align-items: center;
  gap: 7px;
}

.compression-badge {
  width: 25px;
  min-width: 25px;
  height: 22px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  color: #fff;
  font-size: 0.64rem;
  font-weight: 900;
  line-height: 1;
  padding-top: 3px;
  text-shadow: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 8px 18px rgba(0, 0, 0, 0.2);
}

.compression-badge.is-high {
  background: linear-gradient(135deg, #4c515c 0%, #111318 100%);
}

.compression-badge.is-ultra {
  background: var(--button-gradient);
}

.document-prosefold strong,
.document-cypher strong,
.document-minified strong {
  color: #fff;
  text-shadow:
    0 0 5px rgba(74, 36, 118, 0.92),
    0 0 12px rgba(74, 36, 118, 0.55);
}

.document-cell span,
.document-cell small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.25;
}

.document-cell .document-compression-meta {
  font-size: 0.72rem;
}

.document-row:not(.is-client-pending) .document-original:not(.is-disabled) strong {
  color: #fff;
  text-shadow:
    0 0 5px rgba(74, 36, 118, 0.76),
    0 0 12px rgba(74, 36, 118, 0.42);
}

.document-row:not(.is-client-pending) .document-original:not(.is-disabled) span,
.document-row:not(.is-client-pending) .document-original:not(.is-disabled) small {
  color: rgba(255, 255, 255, 0.72);
}

.document-progress-chip {
  position: absolute !important;
  right: 8px;
  bottom: 7px;
  z-index: 1;
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  min-width: 62px;
  height: 24px;
  margin: 0;
  padding: 0;
  color: var(--accent-strong) !important;
  line-height: 1;
  white-space: nowrap;
  contain: layout paint;
  pointer-events: none;
}

.document-progress-chip b {
  color: var(--accent-strong);
  font-family: "Oxanium", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 10px rgba(74, 36, 118, 0.28);
}

.document-progress-loader {
  width: 24px;
  height: 24px;
  display: block;
  flex: 0 0 24px;
}

.document-progress-chip:not(.is-processing) .document-progress-loader {
  opacity: 0.42;
}

.markdown-preview-shell {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
}

.markdown-preview-shell[hidden] {
  display: none;
}

.markdown-preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 10, 14, 0.24);
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 320ms ease;
}

.markdown-preview-window {
  position: relative;
  width: min(780px, 100%);
  box-sizing: border-box;
  max-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 28px 96px rgba(8, 10, 14, 0.24);
  backdrop-filter: saturate(180%) blur(24px);
  opacity: 0;
  overflow: hidden;
  transform: translateY(18px) scale(0.982);
  transition:
    max-height 560ms cubic-bezier(0.22, 1, 0.36, 1),
    padding-top 420ms cubic-bezier(0.22, 1, 0.36, 1),
    padding-bottom 420ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 320ms ease,
    transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.markdown-preview-shell.is-open .markdown-preview-backdrop,
.markdown-preview-shell.is-open .markdown-preview-window {
  opacity: 1;
}

.markdown-preview-shell.is-open .markdown-preview-window {
  max-height: 168px;
  padding-top: 20px;
  padding-bottom: 20px;
  transform: translateY(0) scale(1);
}

.markdown-preview-shell.is-open.is-content-ready .markdown-preview-window {
  max-height: min(78vh, 780px);
  padding-top: 24px;
  padding-bottom: 24px;
}

.markdown-preview-window header {
  padding-right: 38px;
}

.markdown-preview-window h2 {
  margin: 2px 0 14px;
  font-size: 1.28rem;
  line-height: 1.1;
}

.markdown-preview-close {
  width: 34px;
  height: 34px;
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(28, 32, 38, 0.08);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 0;
  line-height: 1;
  padding: 0;
}

.markdown-preview-close::before {
  content: "×";
  display: block;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.32rem;
  font-weight: 500;
  line-height: 1;
  transform: translateY(4px);
}

.markdown-preview-body {
  min-height: 0;
  overflow: auto;
  scrollbar-gutter: stable;
  padding: 2px 4px 4px 0;
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.45;
}

.markdown-preview-body h1,
.markdown-preview-body h2,
.markdown-preview-body h3,
.markdown-preview-body h4,
.markdown-preview-body h5,
.markdown-preview-body h6 {
  margin: 0.95em 0 0.32em;
  color: var(--ink);
  line-height: 1.12;
}

.markdown-preview-body h1 {
  font-size: 1.36rem;
}

.markdown-preview-body h2 {
  font-size: 1.08rem;
}

.markdown-preview-body h3 {
  font-size: 0.96rem;
}

.markdown-preview-body h4,
.markdown-preview-body h5,
.markdown-preview-body h6 {
  font-size: 0.88rem;
}

.markdown-preview-body p,
.markdown-preview-body ul,
.markdown-preview-body ol,
.markdown-preview-body blockquote,
.markdown-preview-body pre {
  margin: 0 0 0.62em;
}

.markdown-preview-body .prosefold-declaration {
  margin: 0 0 3px;
  line-height: 1.34;
}

.markdown-preview-body ul,
.markdown-preview-body ol {
  padding-left: 1.2em;
}

.markdown-preview-body li {
  margin: 0.22em 0;
}

.markdown-preview-body code {
  border-radius: 5px;
  padding: 0.08em 0.28em;
  background: rgba(74, 36, 118, 0.08);
  color: var(--accent-strong);
  font-size: 0.88em;
}

.markdown-preview-body pre {
  overflow: auto;
  padding: 12px;
  border-radius: 8px;
  background: #f7f3fb;
}

.markdown-preview-body pre code {
  padding: 0;
  background: transparent;
}

.markdown-preview-body blockquote {
  padding-left: 12px;
  border-left: 3px solid rgba(74, 36, 118, 0.24);
  color: var(--muted);
}

.markdown-minified {
  display: block;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
  padding: 14px;
  border-radius: 8px;
  background: rgba(74, 36, 118, 0.06);
  font-family: "Oxanium", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.76rem;
  line-height: 1.32;
}

.markdown-minified code {
  padding: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
}

.markdown-preview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(28, 32, 38, 0.08);
}

.markdown-preview-meta {
  display: grid;
  gap: 3px;
  color: rgba(102, 113, 127, 0.88);
  font-size: 0.68rem;
  font-weight: 400;
  line-height: 1.24;
}

.markdown-preview-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

.markdown-preview-actions .button {
  min-height: 38px;
  min-width: 86px;
  padding: 3px 14px 0;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1;
}

.markdown-preview-copy {
  padding-top: 1px;
  padding-bottom: 2px;
}

.markdown-preview-copy:disabled {
  cursor: progress;
  opacity: 0.58;
}

.markdown-preview-copy[hidden] {
  display: none !important;
}

.document-prosefold span,
.document-prosefold small,
.document-cypher span,
.document-cypher small,
.document-minified span,
.document-minified small {
  color: rgba(255, 255, 255, 0.72);
}

.document-original strong {
  white-space: normal;
}

.document-cell.is-disabled {
  --document-cell-bg: #f7f8fb;
  --document-cell-hover-bg: #f7f8fb;
  color: var(--muted);
  cursor: default;
  box-shadow: none;
}

.document-cell.is-disabled:hover {
  border-color: var(--line);
  box-shadow: none;
  transform: none;
}

.document-cell.is-disabled:hover::before {
  opacity: 0;
}

.document-action-cell {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  margin: 0;
  padding: 0;
  background: transparent;
}

.document-delete-button {
  --button-bg: linear-gradient(135deg, #070707 0%, #241018 46%, #6b1f3a 100%);
  --button-hover-wash: linear-gradient(135deg, rgba(255, 255, 255, 0) 0%, rgba(138, 40, 76, 0.16) 46%, rgba(180, 58, 101, 0.58) 100%);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  width: 100%;
  min-height: 68px;
  height: 100%;
  border: 1px solid rgba(95, 18, 36, 0.32);
  border-radius: 8px;
  padding: 0;
  background: var(--button-bg);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.document-delete-button::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--button-hover-wash);
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms ease;
}

.document-delete-button:hover {
  border-color: rgba(138, 40, 76, 0.58);
  box-shadow: 0 10px 24px rgba(95, 18, 36, 0.18);
}

.document-delete-button:hover::before {
  opacity: 1;
}

.document-delete-button:disabled {
  cursor: progress;
  opacity: 0.62;
}

.inline-document-action {
  margin-top: 4px;
}

.inline-document-action .button {
  min-height: 30px;
  padding: 6px 12px;
  font-size: 0.72rem;
}

.document-prosefold.is-disabled,
.document-cypher.is-disabled,
.document-minified.is-disabled {
  --document-cell-bg: #fbf8ff;
  --document-cell-hover-bg: #fbf8ff;
  border-color: rgba(74, 36, 118, 0.12);
  color: var(--muted);
}

.document-prosefold.is-disabled strong,
.document-cypher.is-disabled strong,
.document-minified.is-disabled strong {
  color: var(--accent);
  text-shadow: none;
}

.document-prosefold.is-disabled span,
.document-cypher.is-disabled span,
.document-minified.is-disabled span {
  color: var(--muted);
}

.settings {
  display: grid;
  gap: 18px;
}

.settings-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
}

.token,
.code {
  display: block;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #f1f1f3;
  color: #263036;
  white-space: pre-wrap;
}

.developer-docs {
  display: grid;
  gap: 18px;
}

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

.developer-toc a {
  min-height: 76px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(28, 32, 38, 0.08);
  border-radius: 8px;
  padding: 13px 14px 11px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 244, 251, 0.92));
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(8, 10, 14, 0.06);
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.developer-toc a:hover {
  border-color: rgba(74, 36, 118, 0.22);
  background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(240, 232, 249, 0.98));
  box-shadow: 0 16px 34px rgba(74, 36, 118, 0.12);
}

.developer-toc strong,
.developer-toc span {
  display: block;
}

.developer-toc strong {
  font-size: 0.9rem;
  line-height: 1.05;
}

.developer-toc span {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.24;
}

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

.developer-grid.compact {
  gap: 12px;
  margin: 16px 0;
}

.developer-card {
  scroll-margin-top: 120px;
  border: 1px solid rgba(28, 32, 38, 0.08);
  border-radius: 8px;
  padding: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.developer-card h2 {
  margin: 0 0 12px;
  font-size: 1.2rem;
  line-height: 1.15;
}

.developer-card h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.12;
}

.developer-card .code {
  margin: 12px 0 0;
}

.developer-grid.compact .code {
  margin-top: 0;
}

.developer-copybar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.developer-copybar span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 780;
}

.developer-copy-button {
  min-height: 34px;
  padding: 2px 12px 0;
  font-size: 0.78rem;
}

.developer-schema {
  max-height: 520px;
  font-size: 0.72rem;
  line-height: 1.45;
}

.developer-schema.small {
  max-height: 320px;
  font-size: 0.78rem;
}

.developer-limit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.developer-capability-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.developer-limit-grid span {
  display: grid;
  gap: 5px;
  align-content: start;
  min-height: 96px;
  border: 1px solid rgba(74, 36, 118, 0.12);
  border-radius: 8px;
  padding: 13px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(246, 241, 251, 0.9));
}

.developer-capability-grid a {
  display: grid;
  gap: 6px;
  align-content: start;
  min-height: 118px;
  border: 1px solid rgba(74, 36, 118, 0.12);
  border-radius: 8px;
  padding: 13px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 241, 251, 0.92));
  color: inherit;
  text-decoration: none;
  transition: border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.developer-capability-grid a:hover {
  border-color: rgba(74, 36, 118, 0.24);
  background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(239, 230, 249, 0.98));
  box-shadow: 0 14px 30px rgba(74, 36, 118, 0.12);
}

.developer-limit-grid strong {
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.08;
}

.developer-capability-grid strong {
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.08;
}

.developer-limit-grid small {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.developer-capability-grid small {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.developer-params {
  display: grid;
  gap: 8px;
  margin: 0;
}

.developer-params dt {
  color: var(--ink);
  font-weight: 850;
}

.developer-params dd {
  margin: -4px 0 8px;
  color: var(--muted);
  line-height: 1.45;
}

.footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 42px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.footer a {
  text-decoration: none;
  color: var(--muted);
}

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

@media (min-width: 760px) {
  .hero {
    padding: 86px 0 64px;
  }

  .hero h1 {
    font-size: 4.6rem;
  }

  .console-copy h1 {
    font-size: 4.35rem;
  }

  .lead {
    font-size: 1.32rem;
  }

  .section h2,
  .workbench h2,
  .settings-box h2 {
    font-size: 2.7rem;
  }

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

  .flow-strip {
    grid-template-columns: 1fr 22px 1.2fr 22px 1fr 22px 1fr 22px 1.1fr;
  }

  .flow-strip i {
    width: 100%;
    height: 1px;
  }

  .flow-strip i::before {
    inset: 0 auto 0 0;
    width: calc(100% + 28px);
    height: 100%;
    background: linear-gradient(90deg, #000 0%, #17101f 48%, #4a2476 calc(100% - 28px), rgba(74, 36, 118, 0) 100%);
    transform: translateX(var(--flow-shift));
  }

  .console-about,
  .library-promise {
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  }

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

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

  .contact-band {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (min-width: 980px) {
  .hero {
    min-height: min(700px, calc(100vh - 104px));
    grid-template-columns: minmax(0, 0.92fr) minmax(450px, 1.08fr);
    gap: 60px;
    padding: 74px 0 54px;
  }

  .hero h1 {
    font-size: 6rem;
  }

  .console-copy h1 {
    font-size: 5.35rem;
  }

  .section h1,
  .dashboard-head h1,
  .settings h1,
  .auth-box h1 {
    font-size: 3.8rem;
  }

  .lead {
    font-size: 1.45rem;
  }

  .section-lead {
    font-size: 1.26rem;
  }

  .section h2,
  .workbench h2,
  .settings-box h2 {
    font-size: 3.1rem;
  }

  .compression-demo {
    grid-template-columns: 1fr 0.78fr 1fr;
    align-items: stretch;
  }

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

  .service-cards article {
    padding: 20px;
  }

  .service-cards h3 {
    font-size: 1.04rem;
  }

  .service-cards p {
    font-size: 0.9rem;
  }

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

@media (min-width: 1180px) {
  .hero {
    grid-template-columns: minmax(0, 0.78fr) 650px;
  }

  .blob-float-stage,
  .blob-stage {
    width: 650px;
    min-height: 750px;
    height: 750px;
    justify-self: end;
  }

  .blob-stage canvas {
    min-height: 750px;
    height: 750px;
  }
}

@media (max-width: 920px) {
  body::before {
    height: 124px;
  }

  .topbar {
    height: auto;
    padding: 14px;
    align-items: flex-start;
  }

  nav {
    justify-content: flex-end;
    flex-wrap: wrap;
  }

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

  .documents-header {
    display: none;
  }

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

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

  .contact-layout,
  .contact-layout.is-contact-only {
    grid-template-columns: 1fr;
    grid-template-areas:
      "ticket"
      "contact";
  }

  .contact-layout.is-contact-only .contact-form {
    grid-area: contact;
  }

  .contact-ticket-panel {
    position: static;
  }

  .hero {
    min-height: auto;
  }

  .product-stage {
    min-height: 360px;
  }

  .blob-float-stage,
  .blob-stage,
  .blob-stage canvas {
    min-height: 380px;
  }

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

  .developer-toc,
  .developer-capability-grid,
  .developer-limit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body::before {
    height: 158px;
  }

  section[id] {
    scroll-margin-top: 190px;
  }

  main,
  .footer {
    width: min(100% - 22px, 1180px);
  }

  .topbar {
    top: 0;
    width: 100%;
    margin-top: 0;
    border-top: 0;
    border-radius: 0 0 8px 8px;
  }

  .topbar,
  .dashboard-head,
  .footer {
    flex-direction: column;
    align-items: stretch;
  }

  .brand {
    gap: 8px;
    font-size: 0.95rem;
  }

  .brand-mark {
    --brand-logo-size: 34px;
  }

  .topbar.is-guest {
    position: sticky;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 14px;
    padding: 10px 14px 12px;
  }

  .topbar.is-guest .brand {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    padding-right: 94px;
  }

  .topbar.is-guest nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: center;
    padding-right: 0;
    width: 100%;
  }

  .topbar.is-guest .nav-actions {
    position: absolute;
    top: 10px;
    right: 14px;
  }

  .topbar.is-guest .nav-actions .button {
    min-height: 30px;
    padding: 6px 12px;
    font-size: 0.82rem;
  }

  .dashboard-plan-button {
    align-self: stretch;
    align-items: flex-start;
    text-align: left;
  }

  nav {
    justify-content: flex-start;
  }

  .nav-menu {
    width: 100%;
  }

  .nav-menu summary {
    width: 100%;
  }

  .nav-menu-list {
    position: static;
    width: 100%;
    margin-top: 8px;
  }

  .hero {
    gap: 28px;
    padding: 34px 0 48px;
  }

  .console-copy[data-landing-resizable-panel] {
    min-height: auto;
    margin-top: 0;
  }

  .hero h1,
  .section h1,
  .dashboard-head h1,
  .settings h1,
  .auth-box h1 {
    font-size: 2.2rem;
  }

  .steps,
  .plans {
    grid-template-columns: 1fr;
  }

  .developer-grid,
  .developer-toc,
  .developer-capability-grid,
  .developer-limit-grid,
  .library-actions,
  .settings-columns,
  .admin-keys-grid,
  .admin-prices-grid,
  .admin-coupon-create-grid,
  .coupon-row,
  .admin-control-row,
  .admin-user-row,
  .stats-grid,
  .stats-columns,
  .payment-payer-fields,
  .document-row,
  .landing-document-row {
    grid-template-columns: 1fr;
  }

  .landing-document-note {
    text-align: left;
  }

  .landing-document-actions {
    justify-content: flex-start;
  }

  .ticket-card-head {
    display: grid;
  }

  .product-stage {
    min-height: auto;
  }

  .product-stage.blob-float-stage {
    display: none;
  }

  .process-flow {
    display: grid;
    grid-template-columns: minmax(92px, 31vw) minmax(0, 1fr);
    align-items: stretch;
    gap: 10px;
    margin: 22px 0 34px;
  }

  .process-orb-canvas {
    align-self: stretch;
    height: 398px;
    margin: 0;
  }

  .flow-strip {
    min-height: 398px;
    grid-template-rows:
      minmax(48px, 1fr)
      minmax(18px, 0.42fr)
      minmax(48px, 1fr)
      minmax(18px, 0.42fr)
      minmax(48px, 1fr)
      minmax(18px, 0.42fr)
      minmax(48px, 1fr)
      minmax(18px, 0.42fr)
      minmax(48px, 1fr);
    gap: 7px;
    padding: 10px;
  }

  .flow-strip span {
    min-height: 46px;
    font-size: 0.72rem;
  }

  .flow-strip i {
    width: 1px;
    height: 100%;
    min-height: 16px;
  }

  .row {
    align-items: flex-start;
  }
}

.content-page {
  padding-top: 88px;
}

.content-page > h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(2.3rem, 6vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.content-page-author {
  margin: 0.72rem 0 0;
  color: rgba(100, 110, 126, 0.78);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 34px;
  align-items: start;
  margin-top: 34px;
}

.content-article {
  max-width: 820px;
  color: #25262b;
  font-size: 1.04rem;
  line-height: 1.72;
}

.content-article h2,
.content-article h3,
.content-article h4,
.content-article h5,
.content-article h6 {
  margin: 2.25em 0 0.7em;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: 0;
}

.content-article h2,
.content-article h3 {
  margin-top: 1.45em;
  margin-bottom: 0.55em;
}

.content-article h2 {
  font-size: clamp(1.55rem, 2.4vw, 2.25rem);
}

.content-article h3 {
  font-size: 1.32rem;
}

.content-article p,
.content-article ul {
  margin: 0 0 0.72em;
}

.content-article ul {
  padding-left: 1.18em;
}

.content-article li + li {
  margin-top: 0.08em;
}

.content-article code {
  padding: 0.12em 0.34em;
  border-radius: 5px;
  background: rgba(74, 36, 118, 0.08);
  color: var(--accent-strong);
  font-size: 0.92em;
}

.content-nav {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(74, 36, 118, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.content-nav strong {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.content-nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 160ms ease;
}

.content-nav a:hover {
  color: var(--accent-strong);
}

@media (max-width: 860px) {
  .content-page {
    padding-top: 56px;
  }

  .content-layout {
    grid-template-columns: 1fr;
  }

  .content-nav {
    position: static;
    order: -1;
  }
}
