@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=PT+Serif:wght@400;700&display=swap");

:root {
  --bg: #f6fbf9;
  --surface: #ffffff;
  --surface-muted: #eef7f4;
  --text: #10201d;
  --muted: #5a6b67;
  --line: #d9e7e3;
  --primary: #0f766e;
  --primary-strong: #115e59;
  --accent: #2563eb;
  --warning: #a16207;
  --danger: #b91c1c;
  --success: #15803d;
  --shadow: 0 18px 50px rgba(15, 118, 110, 0.12);
  --radius: 8px;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.convert-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px clamp(16px, 4vw, 40px);
  border-bottom: 1px solid rgba(217, 231, 227, 0.85);
  background: rgba(246, 251, 249, 0.92);
  backdrop-filter: blur(14px);
}

.convert-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  color: var(--text);
  text-decoration: none;
  font-weight: 750;
}

.brand-glyph {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
}

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

.convert-nav a,
.nav-button {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
}

.convert-nav a:hover,
.nav-button:hover,
.convert-nav a:focus-visible,
.nav-button:focus-visible {
  background: var(--surface-muted);
  color: var(--text);
  outline: 2px solid transparent;
}

main {
  min-height: 70dvh;
}

.alerts,
.hero-shell,
.landing-hero,
.landing-workbench,
.workspace,
.steps-band,
.feature-grid,
.seo-task-links,
.pricing-preview,
.page-head,
.plans-grid,
.account-head,
.account-grid,
.account-panel,
.result-page,
.auth-shell {
  width: min(1160px, calc(100% - 32px));
  margin-inline: auto;
}

.alerts {
  margin-top: 18px;
}

.alert {
  margin-bottom: 10px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}

.alert.success {
  border-color: #bbf7d0;
  color: var(--success);
}

.alert.error {
  border-color: #fecaca;
  color: var(--danger);
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
  min-height: min(760px, calc(100dvh - 72px));
  padding: clamp(44px, 7vw, 84px) 0 42px;
}

.hero-copy h1,
.landing-hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: 44px;
  line-height: 1.08;
  letter-spacing: 0;
}

.page-head h1,
.account-head h1,
.result-toolbar h1,
.auth-shell h1 {
  margin: 0;
  max-width: 760px;
  font-size: 34px;
  line-height: 1.14;
  letter-spacing: 0;
}

.hero-lead,
.page-head p,
.account-head p,
.auth-shell p {
  max-width: 660px;
  color: var(--muted);
  font-size: 17px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

.landing-hero {
  display: block;
  padding: clamp(18px, 2.4vw, 30px) 0 14px;
}

.landing-workbench {
  padding: clamp(20px, 3vw, 34px) 0 18px;
}

.landing-hero-copy {
  min-width: 0;
}

.landing-workbench h1,
.landing-hero h1 {
  max-width: 860px;
  font-size: 44px;
  line-height: 1.1;
}

.landing-workbench .hero-lead,
.landing-hero .hero-lead {
  margin: 12px 0 0;
}

.landing-workbench-head {
  max-width: 860px;
}

.landing-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: clamp(18px, 3vw, 36px);
  align-items: stretch;
}

.landing-hero-grid .landing-workbench-head {
  max-width: none;
  min-width: 0;
}

.structure-preview {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 32px rgba(15, 32, 29, 0.06);
}

.structure-preview-head {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
}

.structure-preview-head span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.structure-preview-head strong {
  font-size: 18px;
  line-height: 1.25;
}

.structure-preview-doc {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfffd;
}

.structure-preview-doc .preview-title {
  font-size: 20px;
  font-weight: 850;
}

.structure-preview-doc ol {
  margin: 0;
  padding-left: 22px;
}

.structure-preview-doc p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.preview-table {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.preview-table > * {
  min-width: 0;
  padding: 8px 9px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.25;
}

.preview-table > :nth-child(3n) {
  border-right: 0;
}

.preview-table > :nth-last-child(-n + 3) {
  border-bottom: 0;
}

.preview-table span {
  background: var(--surface-muted);
  color: var(--muted);
  font-weight: 750;
}

.preview-table b {
  font-weight: 750;
}

.landing-hero-aside {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.landing-hero-aside .limit-strip {
  width: auto;
  margin-top: 0;
}

.landing-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.landing-toolbar .limit-strip {
  width: auto;
  margin-top: 0;
}

.landing-workbench .workspace {
  width: 100%;
  margin-top: 18px;
}

.hero-actions,
.inline-actions,
.cookie-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.primary,
.secondary,
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.primary {
  background: var(--primary);
  color: #fff;
}

.primary:hover,
.primary:focus-visible {
  background: var(--primary-strong);
}

.secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
}

.secondary:hover,
.secondary:focus-visible {
  border-color: var(--primary);
}

.full {
  width: 100%;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.limit-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding: 12px 14px;
  max-width: 520px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.limit-strip span {
  color: var(--primary);
  font-weight: 900;
}

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

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(320px, 1.02fr);
  gap: 18px;
  align-items: start;
  margin-top: 0;
}

.workspace-first {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  margin-top: 0;
  padding: 0 0 16px;
}

.upload-panel,
.result-panel,
.account-panel,
.auth-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 32px rgba(15, 32, 29, 0.06);
}

.upload-panel,
.result-panel {
  padding: clamp(16px, 2.2vw, 24px);
}

.workspace-first .upload-panel,
.workspace-first .result-panel {
  min-height: 0;
}

.upload-workspace .result-panel {
  display: flex;
  flex-direction: column;
}

.upload-workspace .empty-result,
.upload-workspace .paywall {
  flex: 1;
}

.section-head h2,
.account-panel h2,
.result-toolbar h1,
.auth-shell h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.18;
  letter-spacing: 0;
}

.upload-panel .section-head h2,
.result-panel .section-head h2 {
  font-size: 24px;
  line-height: 1.2;
}

.section-head p:not(.eyebrow) {
  color: var(--muted);
}

.compact h2 {
  font-size: 22px;
}

.dropzone {
  display: grid;
  gap: 14px;
}

.title-input,
.auth-card input,
.stack-form input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}

.file-drop {
  position: relative;
  display: grid;
  min-height: 144px;
  place-items: center;
  padding: 20px;
  border: 1.5px dashed #8ac8bf;
  border-radius: 8px;
  background: #f8fffd;
  text-align: center;
  cursor: pointer;
}

.file-drop input {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-drop svg,
.empty-result svg {
  width: 36px;
  height: 36px;
  color: var(--primary);
}

.file-drop small,
.form-note,
.muted {
  color: var(--muted);
}

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

.file-state {
  min-height: 22px;
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.file-state.ready {
  color: var(--primary);
  font-weight: 650;
}

.file-state.error {
  color: var(--danger);
  font-weight: 650;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--muted);
}

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

.progress-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-muted);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 240ms ease-out;
}

.progress-details {
  display: grid;
  gap: 10px;
}

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

.progress-stat {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
}

.progress-stat b {
  display: block;
  color: var(--text);
  font-size: 20px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.progress-stat span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.progress-stat.done b {
  color: var(--success);
}

.progress-stat.running b {
  color: var(--primary-strong);
}

.progress-stat.failed b {
  color: var(--danger);
}

.progress-current {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.result-ready {
  display: grid;
  gap: 10px;
  margin-top: 4px;
  padding: 14px;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  background: #f0fdf4;
}

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

.partial-notice,
.result-feedback {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
}

.result-feedback {
  margin-top: 16px;
  border-color: var(--line);
  background: var(--surface);
}

.partial-notice p,
.result-feedback p,
.result-offer p,
.result-feedback-response {
  margin: 0;
  color: var(--muted);
}

.result-offer {
  display: grid;
  gap: 10px;
  padding-top: 2px;
}

.empty-result,
.paywall {
  min-height: 220px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 18px;
  border-radius: 8px;
  background: var(--surface-muted);
  text-align: center;
}

.steps-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.steps-band article,
.feature-grid article,
.plan-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.steps-band span {
  color: var(--primary);
  font-weight: 900;
}

.steps-band h2,
.feature-grid h3,
.plan-card h3,
.plan-card h2 {
  margin: 10px 0 8px;
  font-size: 18px;
  letter-spacing: 0;
}

.steps-band p,
.feature-grid p,
.plan-card p,
.plan-card dd,
.plan-card dt {
  color: var(--muted);
}

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

.feature-grid .section-head {
  grid-column: 1 / -1;
}

.feature-grid svg {
  width: 26px;
  height: 26px;
  color: var(--primary);
}

.pricing-preview {
  margin-top: 42px;
  padding: 0;
  border-radius: var(--radius);
  background: transparent;
}

.pricing-preview .plans-row {
  margin-top: 18px;
  margin-bottom: 0;
}

.seo-task-links {
  margin-top: 42px;
}

.seo-task-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.seo-task-grid a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
  text-decoration: none;
}

.seo-task-grid a:hover,
.seo-task-grid a:focus-visible {
  border-color: #8ac8bf;
  background: #f8fffd;
}

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

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

.plans-grid {
  margin-top: 18px;
}

.price {
  margin: 10px 0;
  color: var(--text) !important;
  font-size: 28px;
  font-weight: 850;
}

.plan-card.large {
  display: grid;
  gap: 14px;
}

.plan-card.large form {
  display: grid;
  gap: 12px;
  margin-top: auto;
}

.plan-card dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0;
}

.plan-card dl div {
  padding: 10px;
  border-radius: 8px;
  background: var(--surface-muted);
}

.plan-card dt {
  font-size: 13px;
}

.plan-card dd {
  margin: 2px 0 0;
  color: var(--text);
  font-weight: 800;
}

.page-head,
.account-head,
.result-toolbar,
.auth-shell {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 32px 0 18px;
}

.account-head {
  align-items: flex-start;
  padding: 30px 0 18px;
}

.account-title {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.account-title h1 {
  max-width: 680px;
  overflow-wrap: anywhere;
}

.account-email {
  margin: 0;
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.account-head-actions {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 12px;
  flex: 0 0 auto;
  margin-top: 4px;
}

.account-reset-form {
  display: flex;
  margin: 0;
}

.account-reset-form-panel {
  margin-top: 12px;
}

.account-balance {
  display: grid;
  gap: 2px;
  min-width: 148px;
  min-height: 54px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.account-balance span,
.package-metric span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.2;
  text-transform: uppercase;
}

.account-balance strong {
  color: var(--primary-strong);
  font-size: 18px;
  line-height: 1.2;
}

.account-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: start;
}

.account-panel {
  margin-top: 14px;
  padding: 18px;
}

.account-grid > .account-panel {
  width: 100%;
  margin: 0;
}

.account-panel-main,
.account-panel-side,
.account-section {
  padding: 18px 20px;
}

.account-panel-side {
  box-shadow: none;
}

.account-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.account-panel-head h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.account-panel-head .eyebrow {
  margin-bottom: 4px;
}

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

.package-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px 120px max-content;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfefd;
}

.package-main {
  min-width: 0;
}

.package-main h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.package-main p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.package-metric {
  display: grid;
  gap: 4px;
  min-width: 92px;
}

.package-metric strong {
  color: var(--text);
  font-size: 16px;
  line-height: 1.25;
  white-space: nowrap;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.2;
  white-space: nowrap;
}

.status-pill.success {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: var(--success);
}

.status-pill.error {
  border-color: #fecaca;
  background: #fef2f2;
  color: var(--danger);
}

.empty-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 70px;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fbfefd;
}

.empty-state.compact {
  min-height: 52px;
}

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

.compact-form {
  gap: 10px;
}

.compact-form label {
  gap: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.compact-form input {
  min-height: 40px;
  padding: 8px 10px;
}

.compact-form button {
  min-height: 42px;
}

.account-table {
  min-width: 780px;
}

.account-table th,
.account-table td {
  padding: 10px 12px;
  vertical-align: middle;
}

.account-table a {
  color: var(--primary-strong);
  font-weight: 750;
  text-decoration: none;
}

.account-table a:hover,
.account-table a:focus-visible {
  text-decoration: underline;
}

.account-table tr.is-active-job {
  background: #f8fffd;
}

.account-job-status {
  display: grid;
  gap: 8px;
  min-width: 190px;
}

.status-pill.active {
  width: max-content;
  border-color: #99d8c9;
  background: #ecfdf8;
  color: #08634f;
}

.account-job-progress {
  display: grid;
  gap: 5px;
  width: min(210px, 100%);
}

.account-job-progress-track {
  width: 100%;
  height: 7px;
  overflow: hidden;
  border-radius: 4px;
  background: #dfe9e6;
}

.account-job-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
  transition: width 240ms ease;
}

.account-job-progress-text {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
}

.account-job-progress-text strong {
  color: var(--text);
}

.download-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.table-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.convert-admin {
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 36px;
}

.convert-admin-head,
.convert-panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.convert-admin-head {
  margin-bottom: 16px;
}

.convert-admin-head h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: 0;
}

.convert-admin-head p,
.convert-panel-head small {
  margin: 6px 0 0;
  color: var(--muted);
}

.convert-admin-filters {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}

.convert-admin-filters label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.convert-admin-filters select,
.convert-admin-filters input[type="date"] {
  min-height: 40px;
  min-width: 118px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
}

.convert-admin-filters input[type="date"] {
  min-width: 142px;
}

.convert-admin-alerts,
.convert-admin-chart,
.convert-funnel-list {
  display: grid;
  gap: 10px;
}

.convert-admin-alerts {
  margin-bottom: 14px;
}

.convert-admin-alert {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.convert-admin-alert.warn {
  color: var(--warning);
  border-color: #fde68a;
  background: #fffbeb;
}

.convert-admin-alert.info {
  color: var(--accent);
  border-color: #bfdbfe;
  background: #eff6ff;
}

.convert-admin-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.convert-admin-kpis article,
.convert-admin-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(15, 32, 29, 0.05);
}

.convert-admin-kpis article {
  display: grid;
  gap: 4px;
  min-height: 100px;
  padding: 14px;
}

.convert-admin-kpis span,
.convert-admin-kpis small,
.convert-chart-row small,
.convert-funnel-step small,
.convert-quality-grid span,
.convert-admin-table small,
.muted {
  color: var(--muted);
}

.convert-admin-kpis span {
  font-size: 13px;
}

.convert-admin-kpis strong {
  color: var(--primary-strong);
  font-size: 28px;
  line-height: 1.1;
}

.convert-admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
}

.convert-admin-panel {
  min-width: 0;
  margin-bottom: 14px;
  padding: 16px;
}

.convert-admin-panel h2 {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0;
}

.convert-panel-head h2 {
  margin-bottom: 0;
}

.convert-chart-row {
  display: grid;
  grid-template-columns: 52px minmax(90px, 1fr) 42px minmax(180px, 0.85fr);
  gap: 10px;
  align-items: center;
}

.convert-chart-row time {
  color: var(--muted);
  font-size: 13px;
}

.convert-chart-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-muted);
}

.convert-chart-track span {
  display: block;
  min-width: 2px;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.convert-finance-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
}

.convert-finance-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.convert-finance-legend span::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary);
}

.convert-finance-legend .margin::before {
  background: var(--success);
}

.convert-finance-legend .negative::before {
  background: var(--danger);
}

.convert-finance-coverage-alert {
  margin-bottom: 12px;
}

.convert-finance-chart {
  --finance-days: 1;
  display: grid;
  grid-template-columns: repeat(var(--finance-days), minmax(0, 1fr));
  gap: clamp(3px, 0.6vw, 10px);
  align-items: end;
  min-height: 230px;
}

.convert-finance-column {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 7px;
  min-width: 0;
  align-items: end;
}

.convert-finance-column-bars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  align-items: end;
  height: 178px;
  min-width: 0;
  padding: 0 1px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(to top, transparent 0, transparent 24%, rgba(15, 23, 42, 0.06) 25%, transparent 26%, transparent 49%, rgba(15, 23, 42, 0.06) 50%, transparent 51%, transparent 74%, rgba(15, 23, 42, 0.06) 75%, transparent 76%);
}

.convert-finance-column-bar {
  display: block;
  min-width: 0;
  min-height: 0;
  border-radius: 4px 4px 0 0;
}

.convert-finance-column-bar.has-value {
  min-height: 3px;
}

.convert-finance-column-bar.revenue {
  background: var(--primary);
}

.convert-finance-column-bar.margin {
  background: var(--success);
}

.convert-finance-column-bar.margin.is-negative {
  background: var(--danger);
}

.convert-finance-column time {
  display: block;
  overflow: hidden;
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
}

.convert-finance-column time.is-muted-label {
  color: transparent;
}

.convert-funnel-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 60px 48px;
  gap: 10px;
  align-items: center;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfefd;
}

.convert-funnel-step strong {
  display: block;
}

.convert-funnel-step b {
  color: var(--primary-strong);
  font-size: 20px;
  text-align: right;
}

.convert-funnel-step span {
  color: var(--muted);
  text-align: right;
}

.convert-admin-table table {
  min-width: 1120px;
}

.convert-admin-table.no-scroll {
  max-width: 100%;
  overflow-x: hidden;
}

.convert-admin-table.no-scroll table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.convert-admin-table.dense.no-scroll th,
.convert-admin-table.dense.no-scroll td {
  padding: 8px 6px;
  min-width: 0;
  font-size: 12px;
  line-height: 1.25;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.convert-admin-table.dense.no-scroll small {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.25;
}

.convert-cost-daily-table th:first-child,
.convert-cost-daily-table td:first-child {
  width: 8%;
}

.convert-finance-daily-table th:first-child,
.convert-finance-daily-table td:first-child {
  width: 8%;
}

.convert-economics-users-table th:nth-child(1),
.convert-economics-users-table td:nth-child(1) {
  width: 19%;
}

.convert-economics-users-table th:nth-child(2),
.convert-economics-users-table td:nth-child(2) {
  width: 17%;
}

.convert-economics-users-table th:nth-child(3),
.convert-economics-users-table td:nth-child(3),
.convert-economics-users-table th:nth-child(6),
.convert-economics-users-table td:nth-child(6),
.convert-economics-users-table th:nth-child(9),
.convert-economics-users-table td:nth-child(9) {
  width: 11%;
}

.convert-economics-users-table th:nth-child(4),
.convert-economics-users-table td:nth-child(4),
.convert-economics-users-table th:nth-child(5),
.convert-economics-users-table td:nth-child(5) {
  width: 10%;
}

.convert-economics-users-table th:nth-child(7),
.convert-economics-users-table td:nth-child(7),
.convert-economics-users-table th:nth-child(8),
.convert-economics-users-table td:nth-child(8) {
  width: 5%;
}

.convert-finance-daily-table th:nth-child(2),
.convert-finance-daily-table td:nth-child(2),
.convert-finance-daily-table th:nth-child(5),
.convert-finance-daily-table td:nth-child(5),
.convert-finance-daily-table th:nth-child(6),
.convert-finance-daily-table td:nth-child(6),
.convert-finance-daily-table th:nth-child(7),
.convert-finance-daily-table td:nth-child(7) {
  width: 10%;
}

.convert-finance-daily-table th:nth-child(8),
.convert-finance-daily-table td:nth-child(8) {
  width: 14%;
}

.convert-admin-table th,
.convert-admin-table td {
  vertical-align: top;
  font-size: 14px;
}

.convert-admin-table code {
  color: var(--primary-strong);
  font-size: 12px;
  white-space: nowrap;
}

.convert-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.convert-badge.paid,
.convert-badge.done {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: var(--success);
}

.convert-badge.pending,
.convert-badge.warning {
  border-color: #fde68a;
  background: #fffbeb;
  color: var(--warning);
}

.convert-badge.failed {
  border-color: #fecaca;
  background: #fef2f2;
  color: var(--danger);
}

.convert-badge.muted {
  border-color: var(--line);
  background: var(--surface-muted);
  color: var(--muted);
}

.is-muted-row {
  opacity: 0.68;
}

.convert-quality-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.convert-quality-grid span {
  display: grid;
  gap: 4px;
  min-height: 74px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfefd;
}

.convert-quality-grid strong {
  color: var(--primary-strong);
  font-size: 20px;
}

.convert-admin-dashboard {
  width: min(1520px, calc(100% - 28px));
}

.convert-admin-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(29, 78, 216, 0.05)),
    var(--surface);
}

.convert-admin-eyebrow {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.convert-admin-hero h1 {
  margin: 0;
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: 0;
}

.convert-admin-hero p {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--muted);
}

.convert-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border-radius: 999px;
}

.convert-icon-button svg,
.convert-admin-panel-link svg {
  width: 17px;
  height: 17px;
}

.convert-admin-tabs {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  gap: 8px;
  align-items: center;
  overflow-x: auto;
  margin-bottom: 16px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 14px 36px rgba(15, 32, 29, 0.08);
  backdrop-filter: blur(12px);
}

.convert-admin-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 850;
  white-space: nowrap;
}

.convert-admin-tabs a:hover,
.convert-admin-tabs a:focus-visible,
.convert-admin-tabs a.is-active {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
}

.convert-admin-metric-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.convert-admin-metric-grid article {
  min-height: 112px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 26px rgba(15, 32, 29, 0.05);
}

.convert-admin-metric-grid span,
.convert-admin-metric-grid small {
  display: block;
  color: var(--muted);
}

.convert-admin-metric-grid span {
  font-size: 13px;
  font-weight: 800;
}

.convert-admin-metric-grid strong {
  display: block;
  margin: 8px 0 5px;
  color: var(--primary-strong);
  font-size: 28px;
  line-height: 1.05;
}

.convert-admin-layout {
  display: grid;
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
}

.convert-admin-layout.two {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}

.convert-admin-layout.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.convert-admin-mini-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 8px;
}

.convert-admin-mini-kpis span {
  display: grid;
  gap: 4px;
  min-height: 58px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfefd;
  color: var(--muted);
  font-size: 13px;
}

.convert-admin-mini-kpis b {
  color: var(--primary-strong);
  font-size: 19px;
  line-height: 1.1;
}

.convert-admin-panel-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--primary-strong);
  font-weight: 850;
}

.convert-detail-list,
.convert-admin-signal-list,
.convert-visitor-feed,
.convert-seo-page-list,
.convert-economics-list,
.convert-ad-card-grid {
  display: grid;
  gap: 10px;
}

.convert-detail-list details,
.convert-admin-signal-list > div,
.convert-visitor-feed article,
.convert-seo-page-list article,
.convert-economics-list article,
.convert-ad-card-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfefd;
}

.convert-detail-list details {
  padding: 0;
}

.convert-detail-list summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 48px;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 850;
}

.convert-detail-list summary span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.convert-detail-list summary b {
  color: var(--primary-strong);
  white-space: nowrap;
}

.convert-detail-list p,
.convert-detail-list small {
  display: block;
  margin: 0;
  padding: 0 12px 12px;
  color: var(--muted);
}

.convert-ad-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.convert-ad-card-grid article {
  display: grid;
  gap: 10px;
  padding: 13px;
}

.convert-ad-card-grid article.has-warning {
  border-color: #fde68a;
  background: #fffbeb;
}

.convert-ad-card-grid header,
.convert-visitor-feed header,
.convert-seo-page-list header,
.convert-economics-list header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.convert-ad-card-grid p,
.convert-visitor-feed p,
.convert-seo-page-list p,
.convert-economics-list p {
  margin: 0;
  color: var(--muted);
}

.convert-ad-card-grid code,
.convert-economics-list small {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.convert-admin-signal-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 12px;
  padding: 12px;
}

.convert-admin-signal-list strong {
  color: var(--text);
}

.convert-admin-signal-list span,
.convert-admin-signal-list time {
  color: var(--muted);
}

.convert-visitor-feed article,
.convert-seo-page-list article,
.convert-economics-list article {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.convert-visitor-feed footer {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
}

.convert-seo-page-list {
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.convert-seo-page-list a {
  color: var(--primary-strong);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.convert-seo-page-list small {
  color: var(--muted);
}

.convert-economics-list {
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
}

.convert-admin-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.convert-admin-actions p {
  margin: 0;
  color: var(--muted);
}

.convert-feedback-review-form {
  display: grid;
  gap: 10px;
  padding: 0 12px 12px;
}

.convert-feedback-review-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 13px;
}

.convert-feedback-review-form input {
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.convert-feedback-review-form button {
  justify-self: start;
}

.convert-feedback-action-message {
  color: var(--muted);
}

.convert-feedback-action-message[data-tone="error"] {
  color: var(--danger);
}

.convert-feedback-review-form[aria-busy="true"] button {
  opacity: 0.65;
  pointer-events: none;
}

.convert-feedback-source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 12px 10px;
}

.convert-source-link {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 32px;
  gap: 7px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-muted);
  color: var(--primary-strong);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.convert-source-link:hover,
.convert-source-link:focus-visible {
  text-decoration: underline;
}

.convert-source-link svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.convert-source-link span {
  overflow-wrap: anywhere;
}

.convert-source-link.muted {
  color: var(--muted);
}

.convert-feedback-work-list {
  display: grid;
  gap: 10px;
}

.convert-feedback-work-list article {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfefd;
}

.convert-feedback-work-list header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.convert-feedback-work-list strong {
  overflow-wrap: anywhere;
}

.convert-feedback-work-list a {
  color: var(--primary-strong);
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.convert-feedback-work-list p,
.convert-feedback-work-list small {
  margin: 0;
  color: var(--muted);
}

.convert-feedback-result-block {
  display: grid;
  gap: 10px;
  margin: 0 12px 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.convert-feedback-result-block header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.convert-feedback-result-block strong {
  color: var(--text);
  font-size: 14px;
}

.convert-feedback-result-block a {
  color: var(--primary-strong);
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.convert-feedback-result-block .rich-result {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.convert-feedback-result-page {
  display: grid;
  gap: 18px;
  padding-top: 30px;
}

.convert-feedback-result-page > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.convert-feedback-result-page h1 {
  margin: 4px 0 0;
  font-size: clamp(28px, 5vw, 44px);
}

.convert-feedback-result-page header span {
  color: var(--muted);
  font-weight: 850;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0;
}

.convert-feedback-result-page dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin: 0;
}

.convert-feedback-result-page dl div {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
}

.convert-feedback-result-page dt,
.convert-feedback-result-page dd {
  margin: 0;
}

.convert-feedback-result-page dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.convert-feedback-result-page dd {
  overflow-wrap: anywhere;
  color: var(--text);
  font-weight: 800;
}

.stack-form,
.auth-card {
  display: grid;
  gap: 14px;
}

.stack-form label,
.auth-card label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 700;
}

.auth-shell {
  align-items: center;
  min-height: auto;
}

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

.auth-card {
  width: min(420px, 100%);
  padding: 24px;
}

.checkout-shell {
  align-items: start;
}

.checkout-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.checkout-summary div,
.checkout-plan {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.checkout-summary span,
.checkout-plan span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
}

.checkout-summary strong,
.checkout-plan strong {
  color: var(--primary-strong);
  font-size: 22px;
  line-height: 1.15;
}

.checkout-plan {
  display: grid;
  gap: 2px;
  margin-top: 14px;
}

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

.checkout-card {
  width: min(460px, 100%);
}

.checkout-plan-options {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.checkout-plan-options legend {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.checkout-plan-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
}

.checkout-plan-option:has(input:checked),
.checkout-plan-option.selected {
  border-color: var(--primary);
  background: #f4fbf8;
  box-shadow: 0 0 0 3px rgba(38, 137, 103, 0.12);
}

.checkout-plan-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.checkout-plan-option span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.checkout-plan-option strong {
  color: var(--text);
  font-size: 16px;
  line-height: 1.2;
}

.checkout-plan-option small {
  color: var(--muted);
  font-weight: 700;
}

.checkout-plan-option b {
  color: var(--primary-strong);
  font-size: 18px;
  white-space: nowrap;
}

.auth-card > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

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

.password-actions button {
  min-height: 42px;
}

.modal {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 0;
  overflow: visible;
}

.modal::backdrop {
  background: rgba(8, 18, 16, 0.38);
  backdrop-filter: blur(5px);
}

.modal-box {
  box-sizing: border-box;
  width: 100%;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(15, 32, 29, 0.24);
}

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

.modal-head h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.modal-head p {
  margin: 6px 0 0;
}

.post-payment-password-modal {
  width: min(560px, calc(100vw - 32px));
}

.mail-delivery-warning {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(209, 114, 23, 0.22);
  border-radius: 8px;
  background: #fff6ea;
  color: #74410b;
}

.mail-delivery-warning svg {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  color: #b86611;
}

.mail-delivery-warning p {
  margin: 0;
}

.modal-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.icon-button {
  width: 38px;
  min-width: 38px;
  min-height: 38px;
  padding: 0;
  color: var(--text);
  background: var(--surface-muted);
  border-color: var(--line);
  font-size: 24px;
  line-height: 1;
}

.icon-button::before {
  display: none;
}

.auth-card .check {
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
}

.auth-card .check input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 4px;
  accent-color: var(--primary);
}

.auth-card .check span {
  min-width: 0;
}

.auth-card .check a {
  color: var(--text);
  font-weight: 500;
  text-underline-offset: 2px;
}

.mail-hint {
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--surface);
}

.result-page {
  padding-bottom: 56px;
}

.result-toolbar {
  width: 100%;
  margin: 0;
}

.progress-box.live {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.result-preview {
  display: grid;
  gap: 14px;
  margin: 18px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.rich-result {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.rich-result p,
.rich-result ul,
.rich-result ol {
  margin: 0;
}

.rich-result ul,
.rich-result ol {
  padding-left: 22px;
}

.rich-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.rich-result table {
  min-width: 680px;
  background: #fff;
}

.rich-result th,
.rich-result td {
  border: 1px solid var(--line);
  vertical-align: top;
}

.rich-result th {
  background: var(--surface-muted);
  color: var(--text);
}

.rich-diagram {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fffd;
}

.diagram-chain,
.diagram-branches,
.diagram-root,
.diagram-branch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.diagram-chain.vertical {
  flex-direction: column;
  flex-wrap: nowrap;
}

.diagram-branches {
  align-items: stretch;
}

.diagram-branch {
  flex-direction: column;
  flex: 1 1 180px;
}

.diagram-node {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  max-width: 320px;
  padding: 10px 12px;
  border: 1px solid #8ac8bf;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-weight: 700;
  text-align: center;
}

.diagram-node.strong {
  border-color: var(--primary);
  background: var(--surface-muted);
}

.diagram-arrow {
  color: var(--primary);
  font-weight: 900;
}

.ocr-uncertain,
.ocr-unreadable {
  display: inline;
  padding: 1px 4px;
  border-radius: 5px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.ocr-uncertain {
  background: #fff3b0;
  color: #6b3f00;
  box-shadow: inset 0 -1px 0 rgba(146, 64, 14, 0.28);
}

.ocr-unreadable {
  background: #fee2e2;
  color: #7f1d1d;
  box-shadow: inset 0 -1px 0 rgba(153, 27, 27, 0.26);
}

.ocr-uncertain-badge {
  display: inline-block;
  margin-left: 2px;
  font-size: 0.78em;
  font-weight: 900;
  vertical-align: 0.1em;
}
.editor-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.editor-form textarea {
  width: 100%;
  min-height: 360px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  resize: vertical;
}

.page-breakdown {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.page-breakdown article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.page-breakdown pre {
  white-space: pre-wrap;
  color: var(--muted);
}

.error-text {
  color: var(--danger);
}

.prose {
  max-width: 860px;
}

.legal-prose {
  margin-top: 0;
  max-width: 820px;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.prose h2 {
  margin: 26px 0 10px;
  font-size: 18px;
  line-height: 1.3;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose ul {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding-left: 20px;
}

.convert-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(1160px, calc(100% - 32px));
  margin: 64px auto 0;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.convert-footer nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.convert-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.footer-brand {
  min-height: 44px;
}

.cookie-consent {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(720px, calc(100% - 36px));
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.cookie-consent p {
  margin: 4px 0 0;
  color: var(--muted);
}

:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .convert-header,
  .landing-hero,
  .page-head,
  .account-head,
  .result-toolbar,
  .auth-shell,
  .convert-footer,
  .cookie-consent {
    align-items: stretch;
    flex-direction: column;
  }

  .convert-nav {
    justify-content: flex-start;
  }

  .convert-header {
    align-items: center;
    flex-direction: row;
  }

  .convert-nav {
    flex: 1;
    flex-wrap: nowrap;
    justify-content: flex-end;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .convert-nav::-webkit-scrollbar {
    display: none;
  }

  .cookie-consent {
    align-items: center;
    flex-direction: row;
    gap: 12px;
    padding: 12px;
  }

  .cookie-consent p {
    margin: 0;
    font-size: 14px;
    line-height: 1.35;
  }

  .cookie-consent strong {
    display: none;
  }

  .cookie-consent .primary {
    flex: 0 0 auto;
    min-height: 40px;
  }

  .hero-shell,
  .landing-hero-grid,
  .account-grid,
  .convert-admin-grid,
  .convert-admin-layout.two,
  .convert-admin-layout.three {
    grid-template-columns: 1fr;
  }

  .convert-admin-hero,
  .convert-admin-actions {
    align-items: stretch;
    flex-direction: column;
    border-radius: 8px;
  }

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

  .account-head {
    align-items: stretch;
  }

  .account-head-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

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

  .package-row .status-pill {
    grid-column: 1 / -1;
    justify-self: start;
  }

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

  .landing-hero {
    align-items: stretch;
    padding-top: 28px;
  }

  .landing-hero-aside {
    justify-items: start;
    flex: none;
  }

  .workspace-first {
    min-height: auto;
    padding-top: 12px;
  }

  .workspace-first .upload-panel,
  .workspace-first .result-panel {
    min-height: auto;
  }

  .hero-shell {
    min-height: auto;
    padding-top: 34px;
  }

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

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

  .convert-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .alerts,
  .hero-shell,
  .landing-hero,
  .landing-workbench,
  .workspace,
  .steps-band,
  .feature-grid,
  .seo-task-links,
  .pricing-preview,
  .page-head,
  .plans-grid,
  .account-head,
  .account-grid,
  .account-panel,
  .result-page,
  .auth-shell,
  .convert-admin,
  .convert-footer {
    width: min(100% - 20px, 1160px);
  }

  .convert-header {
    gap: 8px;
    padding: 8px 10px;
    align-items: stretch;
    flex-direction: column;
  }

  .convert-brand {
    gap: 8px;
    min-height: 38px;
  }

  .convert-nav {
    flex: 0 0 auto;
    justify-content: flex-start;
    width: 100%;
  }

  .convert-admin-metric-grid,
  .convert-admin-mini-kpis,
  .convert-ad-card-grid,
  .convert-seo-page-list,
  .convert-economics-list {
    grid-template-columns: 1fr;
  }

  .convert-finance-chart {
    gap: 2px;
    min-height: 176px;
  }

  .convert-finance-column-bars {
    height: 128px;
    gap: 2px;
  }

  .convert-finance-column time {
    font-size: 10px;
  }

  .convert-admin-hero {
    padding: 14px;
  }

  .convert-admin-hero h1 {
    font-size: 28px;
  }

  .convert-admin-tabs {
    border-radius: 8px;
  }

  .convert-admin-tabs a {
    min-height: 36px;
    padding: 0 12px;
  }

  .convert-chart-row {
    grid-template-columns: 46px minmax(70px, 1fr) 34px;
  }

  .convert-chart-row small {
    grid-column: 2 / -1;
  }

  .brand-glyph {
    width: 30px;
    height: 30px;
  }

  .convert-nav a,
  .nav-button {
    min-height: 36px;
    padding: 0 8px;
    font-size: 14px;
    white-space: nowrap;
  }

  .convert-nav a:first-child {
    display: none;
  }

  .hero-copy h1,
  .landing-hero h1,
  .landing-workbench h1,
  .page-head h1,
  .account-head h1,
  .convert-admin-head h1 {
    font-size: 28px;
    line-height: 1.12;
  }

  .convert-admin {
    padding-top: 18px;
  }

  .convert-chart-row {
    grid-template-columns: 48px minmax(80px, 1fr) 34px;
  }

  .convert-chart-row small {
    grid-column: 1 / -1;
  }

  .convert-finance-chart-row {
    grid-template-columns: 46px minmax(80px, 1fr);
  }

  .convert-finance-values {
    grid-column: 1 / -1;
  }

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

  .landing-hero {
    padding-top: 18px;
    padding-bottom: 14px;
  }

  .landing-workbench {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .landing-workbench .eyebrow {
    display: none;
  }

  .landing-hero .hero-lead {
    margin-top: 10px;
  }

  .landing-workbench .hero-lead {
    margin-top: 8px;
    font-size: 15px;
    line-height: 1.45;
  }

  .landing-hero-aside {
    gap: 8px;
    margin-top: 14px;
  }

  .landing-toolbar {
    align-items: stretch;
    gap: 8px;
    margin-top: 10px;
  }

  .landing-toolbar .limit-strip {
    width: 100%;
  }

  .landing-toolbar .link-button {
    display: none;
  }

  .landing-hero-aside .limit-strip {
    padding: 10px 12px;
  }

  .landing-toolbar .limit-strip {
    flex-wrap: nowrap;
    gap: 8px;
    min-height: 44px;
    padding: 9px 10px;
    font-size: 14px;
  }

  .landing-toolbar .limit-strip span {
    white-space: nowrap;
  }

  .landing-workbench .workspace {
    margin-top: 12px;
  }

  .structure-preview {
    padding: 10px;
  }

  .structure-preview-head {
    margin-bottom: 10px;
  }

  .structure-preview-doc {
    gap: 10px;
    padding: 14px;
  }

  .preview-table {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .preview-table span:nth-child(3),
  .preview-table b:nth-child(6) {
    display: none;
  }

  .preview-table b:nth-child(4),
  .preview-table b:nth-child(5) {
    border-bottom: 1px solid var(--line);
  }

  .preview-table b:nth-child(5) {
    grid-column: 2;
  }

  .seo-task-grid {
    grid-template-columns: 1fr;
  }

  .structure-preview {
    display: none;
  }

  .workspace-first {
    padding-top: 0;
  }

  .hero-lead,
  .page-head p,
  .account-head p,
  .auth-shell p {
    font-size: 16px;
  }

  .account-head {
    padding-top: 18px;
  }

  .account-head-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .account-balance,
  .account-reset-form,
  .account-reset-form button,
  .account-head-actions > button,
  .account-head-actions .link-button {
    width: 100%;
  }

  .account-panel-main,
  .account-panel-side,
  .account-section {
    padding: 16px;
  }

  .account-panel-head h2 {
    font-size: 20px;
  }

  .package-row {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 12px;
  }

  .package-metric {
    min-width: 0;
  }

  .table-scroll {
    overflow: visible;
  }

  .account-table {
    display: block;
    min-width: 0;
  }

  .account-table thead {
    display: none;
  }

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

  .account-table tr {
    display: block;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfefd;
  }

  .account-table td {
    display: grid;
    grid-template-columns: minmax(92px, 0.42fr) minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
  }

  .account-table td:last-child {
    border-bottom: 0;
  }

  .account-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.2;
    text-transform: uppercase;
  }

  .empty-state {
    align-items: stretch;
    flex-direction: column;
  }

  .empty-state .link-button {
    width: 100%;
  }

  .hero-actions,
  .inline-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .link-button,
  .inline-actions .link-button,
  .inline-actions button {
    width: 100%;
  }

  .pricing-preview {
    padding: 18px;
  }

  .file-drop {
    min-height: 154px;
  }

  .editor-form textarea {
    min-height: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Convert full-funnel preview upgrade */
:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-muted: #eef6f4;
  --paper: #fffdf8;
  --text: #0f172a;
  --muted: #52606f;
  --line: #d9e2ec;
  --primary: #2563eb;
  --primary-strong: #1d4ed8;
  --accent: #0f766e;
  --accent-soft: #dff4ef;
  --warning: #b45309;
  --danger: #b91c1c;
  --success: #15803d;
  --shadow: 0 18px 48px rgba(15, 23, 42, 0.10);
  --soft-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

body {
  background:
    linear-gradient(180deg, #f8fafc 0, #fbfcfe 420px, #f8fafc 100%);
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  transform: translateY(-140%);
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--text);
  color: #fff;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.convert-header {
  min-height: 64px;
  border-bottom-color: rgba(217, 226, 236, 0.9);
  background: rgba(248, 250, 252, 0.94);
}

.brand-glyph {
  background: var(--text);
  color: #fff;
}

.convert-nav {
  gap: 6px;
}

.convert-nav a,
.nav-button {
  min-height: 44px;
  color: #334155;
  font-weight: 650;
}

.convert-nav a:hover,
.nav-button:hover,
.convert-nav a:focus-visible,
.nav-button:focus-visible {
  background: #eaf1f8;
}

.convert-nav .nav-cta {
  padding: 0 16px;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.22);
}

.convert-nav .nav-cta:hover,
.convert-nav .nav-cta:focus-visible {
  background: var(--primary-strong);
  color: #fff;
}

.alerts,
.landing-workbench,
.stats-strip,
.process-section,
.compare-section,
.examples-section,
.savings-section,
.trust-section,
.faq-section,
.pricing-context,
.page-head,
.plans-grid,
.account-head,
.account-grid,
.account-panel,
.result-page,
.auth-shell,
.seo-task-links,
.pricing-preview,
.convert-footer {
  width: min(1160px, calc(100% - 32px));
  margin-inline: auto;
}

.primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.18);
}

.primary:hover,
.primary:focus-visible {
  background: var(--primary-strong);
}

.secondary {
  background: #fff;
  color: var(--text);
}

.secondary:hover,
.secondary:focus-visible {
  border-color: var(--primary);
  background: #f7fbff;
}

.link-button svg,
button svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.eyebrow {
  color: var(--accent);
}

.convert-landing {
  padding: 26px 0 18px;
}

.hero-stage {
  display: grid;
  grid-template-columns: minmax(280px, 0.74fr) minmax(0, 1.26fr);
  gap: 24px;
  align-items: start;
}

.hero-copy {
  display: grid;
  gap: 14px;
  padding: 18px 0 10px;
}

.hero-copy h1 {
  max-width: 560px;
  margin: 0;
  color: var(--text);
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: 0;
  overflow-wrap: normal;
}

.hero-lead {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.hero-actions {
  margin-top: 2px;
}

.hero-limit {
  width: fit-content;
  max-width: 100%;
  margin: 0;
}

.anchor-pills,
.demo-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.landing-workbench .anchor-pills {
  margin-top: 14px;
}

.anchor-pills a,
.demo-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.2;
}

.anchor-pills a:hover,
.anchor-pills a:focus-visible,
.demo-tabs button:hover,
.demo-tabs button:focus-visible,
.demo-tabs button[aria-selected="true"] {
  border-color: var(--primary);
  background: #eff6ff;
  color: var(--primary-strong);
}

.hero-product-panel {
  display: grid;
  gap: 14px;
}

.hero-workbench-panel {
  grid-template-columns: minmax(0, 1.04fr) minmax(250px, 0.96fr);
  align-items: stretch;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.hero-workbench-panel .upload-panel,
.hero-workbench-panel .result-panel {
  min-height: 100%;
  box-shadow: none;
}

.hero-workbench-panel .section-head {
  margin-bottom: 12px;
}

.hero-workbench-panel .section-head p:not(.eyebrow) {
  margin-top: 8px;
}

.hero-workbench-panel .dropzone {
  gap: 12px;
}

.document-compare {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.scan-sheet,
.result-sheet {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 220px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--text);
}

.scan-sheet {
  background:
    linear-gradient(#dbeafe 1px, transparent 1px),
    linear-gradient(90deg, #dbeafe 1px, transparent 1px),
    #fffdf8;
  background-size: 22px 22px;
}

.scan-sheet.compact,
.result-sheet.compact {
  min-height: 250px;
}

.doc-label,
.plan-badge {
  width: max-content;
  max-width: 100%;
  padding: 5px 8px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
  text-transform: uppercase;
}

.hand-line,
.flat-lines span,
.structured-lines span {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.34);
}

.hand-line.wide {
  width: 92%;
}

.hand-line.medium {
  width: 72%;
}

.hand-line.short {
  width: 48%;
}

.hand-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.hand-split span {
  display: block;
  min-height: 64px;
  border: 1px dashed rgba(15, 118, 110, 0.45);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.hand-note {
  width: max-content;
  max-width: 100%;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.11);
  color: var(--primary-strong);
  font-weight: 750;
}

.compare-arrow {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--primary);
}

.result-sheet strong {
  font-size: 18px;
  line-height: 1.25;
}

.result-sheet ul,
.result-sheet ol {
  margin: 0;
  padding-left: 22px;
}

.mini-table {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.mini-table > * {
  min-width: 0;
  padding: 8px 9px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
  line-height: 1.25;
}

.mini-table > :nth-child(3n) {
  border-right: 0;
}

.mini-table > :nth-last-child(-n + 3) {
  border-bottom: 0;
}

.mini-table span {
  background: #edf4f8;
  color: var(--muted);
  font-weight: 800;
}

.hero-upload-panel {
  display: grid;
  align-content: start;
  padding: 18px;
}

.file-drop {
  border-color: rgba(37, 99, 235, 0.45);
  background: #f8fbff;
}

.file-drop svg,
.empty-result svg,
.feature-grid svg,
.stats-strip svg,
.trust-grid svg,
.pricing-context svg {
  color: var(--primary);
}

.landing-result-panel {
  display: grid;
  align-content: start;
  margin-top: 0;
  padding: 18px;
}

.landing-result-panel .empty-result,
.landing-result-panel .paywall {
  min-height: 170px;
}

.result-format-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.result-format-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 850;
}

.paywall-metrics,
.result-status-grid,
.checkout-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.paywall-metrics div,
.result-status-grid article,
.checkout-summary div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: left;
}

.paywall-metrics span,
.result-status-grid span,
.checkout-summary span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.paywall-metrics strong,
.result-status-grid strong,
.checkout-summary strong {
  color: var(--text);
  font-size: 24px;
  line-height: 1.2;
}

.stats-strip,
.pricing-context,
.trust-grid,
.savings-grid,
.ocr-compare-grid {
  display: grid;
  gap: 14px;
}

.stats-strip,
.pricing-context,
.trust-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.stats-strip article,
.pricing-context article,
.trust-grid article,
.ocr-compare-grid article,
.savings-controls,
.savings-results article,
.demo-panels article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.stats-strip article,
.pricing-context article,
.trust-grid article {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 18px;
}

.stats-strip svg,
.pricing-context svg,
.trust-grid svg {
  width: 24px;
  height: 24px;
}

.stats-strip strong,
.pricing-context strong,
.trust-grid h3 {
  color: var(--text);
  font-size: 18px;
  line-height: 1.25;
}

.stats-strip p,
.pricing-context p,
.trust-grid p,
.compare-section p,
.savings-section p,
.faq-list p {
  margin: 0;
  color: var(--muted);
}

.process-section,
.compare-section,
.examples-section,
.savings-section,
.trust-section,
.faq-section,
.seo-task-links,
.pricing-preview {
  margin-top: 52px;
}

.process-section .steps-band {
  width: 100%;
  margin-top: 18px;
}

.upgraded-feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 52px;
}

.upgraded-feature-grid article,
.feature-grid article,
.steps-band article,
.plan-card {
  box-shadow: var(--soft-shadow);
}

.upgraded-feature-grid article {
  display: grid;
  gap: 8px;
}

.upgraded-feature-grid a,
.seo-related-list a {
  color: var(--primary-strong);
  font-weight: 750;
  text-underline-offset: 3px;
}

.ocr-compare-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 20px;
}

.ocr-compare-grid article {
  display: grid;
  gap: 14px;
  min-height: 330px;
  padding: 22px;
}

.ocr-compare-grid .is-strong {
  border-color: rgba(37, 99, 235, 0.38);
  background: #f8fbff;
}

.flat-lines,
.structured-lines {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.flat-lines span:nth-child(2) {
  width: 72%;
}

.flat-lines span:nth-child(3) {
  width: 88%;
}

.flat-lines span:nth-child(4) {
  width: 64%;
}

.flat-lines span:nth-child(5) {
  width: 80%;
}

.structured-lines b {
  display: block;
  width: 52%;
  height: 16px;
  border-radius: 8px;
  background: var(--text);
}

.structured-lines div {
  height: 64px;
  border: 1px solid rgba(37, 99, 235, 0.35);
  border-radius: 8px;
  background: linear-gradient(90deg, #dbeafe 0 33%, #fff 33% 66%, #dff4ef 66% 100%);
}

.structured-lines i {
  display: block;
  width: 72%;
  height: 8px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.42);
}

.examples-section .section-head,
.savings-section .section-head,
.faq-section .section-head,
.trust-section .section-head {
  margin-bottom: 20px;
}

.demo-tabs {
  margin-bottom: 22px;
}

.demo-panels {
  margin-top: 0;
}

.demo-panels article {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  padding: 20px;
}

.demo-panels article:not([hidden]) {
  display: grid;
}

.savings-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.75fr);
  align-items: stretch;
}

.savings-controls {
  display: grid;
  gap: 22px;
  padding: 22px;
}

.savings-controls label {
  display: grid;
  gap: 12px;
  color: var(--text);
  font-weight: 750;
}

.savings-controls input[type="range"] {
  width: 100%;
  accent-color: var(--primary);
}

.savings-results {
  display: grid;
  gap: 12px;
}

.savings-results article {
  display: grid;
  gap: 6px;
  padding: 18px;
}

.savings-results article.is-strong {
  background: var(--text);
  color: #fff;
}

.savings-results span {
  color: inherit;
  opacity: 0.7;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.savings-results strong {
  font-size: 28px;
  line-height: 1.15;
}

.plan-card {
  position: relative;
}

.plan-card.is-featured {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 16px 42px rgba(37, 99, 235, 0.14);
}

.plan-badge {
  background: #dbeafe;
  color: var(--primary-strong);
}

.plan-card-head {
  display: grid;
  gap: 4px;
}

.plan-card small {
  color: var(--muted);
  font-weight: 750;
}

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

.pricing-context {
  margin-top: 12px;
}

.upgraded-plans {
  margin-top: 20px;
}

.checkout-copy {
  display: grid;
  gap: 16px;
}

.checkout-trust {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.checkout-trust article {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.checkout-trust svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: var(--primary);
}

.checkout-plan-option {
  background: #fff;
}

.checkout-plan-option:has(input:checked),
.checkout-plan-option.selected {
  border-color: var(--primary);
  background: #eff6ff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.result-page-upgraded {
  padding-top: 28px;
}

.result-meta-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 10px;
  color: var(--muted);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  background: #eaf1f8;
  color: var(--text);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.status-done {
  background: #dcfce7;
  color: #166534;
}

.status-failed {
  background: #fee2e2;
  color: #991b1b;
}

.status-queued,
.status-running {
  background: #dbeafe;
  color: var(--primary-strong);
}

.result-status-grid {
  margin-bottom: 18px;
}

.partial-notice-upgraded {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.result-empty-state {
  min-height: 280px;
}

.result-empty-state h2 {
  margin: 0;
  font-size: 24px;
}

.progress-box-upgraded {
  box-shadow: var(--soft-shadow);
}

.result-preview,
.editor-form textarea,
.result-feedback {
  box-shadow: var(--soft-shadow);
}

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

.faq-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.faq-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.faq-list button::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--primary);
  font-size: 24px;
  line-height: 1;
}

.faq-list button[aria-expanded="true"]::after {
  content: "-";
}

.faq-list p {
  padding: 0 16px 16px;
}

.seo-page-head-upgraded {
  padding-top: 42px;
}

.seo-intent-strip article {
  box-shadow: none;
}

.seo-intent-strip strong {
  color: var(--primary);
  font-size: 22px;
}

.seo-panel {
  box-shadow: var(--soft-shadow);
}

.seo-faq-list {
  margin-top: 14px;
}

.seo-related-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  list-style: none;
}

.seo-related-list li {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.seo-uploader-shell {
  margin-top: 24px;
}

.seo-uploader-shell .workspace {
  width: min(1160px, calc(100% - 32px));
}

.seo-proof {
  width: min(1160px, calc(100% - 32px));
  margin: 52px auto 0;
}

.seo-proof .section-head {
  max-width: 760px;
  margin-bottom: 18px;
}

.seo-proof .hand-note {
  transform: rotate(-1deg);
}

@media (max-width: 980px) {
  .hero-stage,
  .hero-workbench-panel,
  .savings-grid,
  .demo-panels article {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-top: 18px;
  }

  .hero-copy h1 {
    max-width: 680px;
    font-size: 38px;
    line-height: 1.1;
  }

  .stats-strip,
  .pricing-context,
  .trust-grid,
  .upgraded-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .document-compare {
    grid-template-columns: 1fr;
  }

  .seo-uploader-shell .workspace {
    grid-template-columns: 1fr;
  }

  .compare-arrow {
    transform: rotate(90deg);
    justify-self: center;
  }

  .ocr-compare-grid {
    grid-template-columns: 1fr;
  }

  .partial-notice-upgraded {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .alerts,
  .landing-workbench,
  .stats-strip,
  .process-section,
  .compare-section,
  .examples-section,
  .savings-section,
  .trust-section,
  .faq-section,
  .pricing-context,
  .page-head,
  .plans-grid,
  .account-head,
  .account-grid,
  .account-panel,
  .result-page,
  .auth-shell,
  .seo-task-links,
  .pricing-preview,
  .convert-footer {
    width: min(100% - 20px, 1160px);
  }

  .convert-header {
    align-items: center;
    flex-direction: row;
    min-height: 58px;
    padding: 8px 10px;
  }

  .convert-brand {
    width: auto;
  }

  .convert-nav {
    flex: 0 0 auto;
    width: auto;
    margin-left: auto;
  }

  .convert-nav .nav-optional {
    display: none;
  }

  .convert-nav .nav-cta {
    min-height: 44px;
    padding: 0 14px;
    white-space: nowrap;
  }

  .convert-landing {
    padding-top: 18px;
  }

  .hero-copy {
    gap: 14px;
    padding: 12px 0 0;
  }

  .hero-copy h1,
  .page-head h1,
  .auth-shell h1,
  .result-toolbar h1 {
    font-size: 28px;
    line-height: 1.12;
  }

  .hero-lead {
    font-size: 16px;
    line-height: 1.5;
  }

  .hero-actions,
  .inline-actions,
  .page-head-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .link-button,
  .inline-actions .link-button,
  .inline-actions button,
  .page-head-actions .link-button {
    width: 100%;
  }

  .hero-limit {
    width: 100%;
  }

  .anchor-pills,
  .demo-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .anchor-pills::-webkit-scrollbar,
  .demo-tabs::-webkit-scrollbar {
    display: none;
  }

  .anchor-pills a,
  .demo-tabs button {
    flex: 0 0 auto;
  }

  .document-compare {
    padding: 10px;
  }

  .scan-sheet,
  .result-sheet,
  .scan-sheet.compact,
  .result-sheet.compact {
    min-height: 180px;
    padding: 14px;
  }

  .hero-upload-panel,
  .landing-result-panel {
    padding: 16px;
  }

  .stats-strip,
  .pricing-context,
  .trust-grid,
  .upgraded-feature-grid,
  .paywall-metrics,
  .result-status-grid,
  .progress-stats,
  .checkout-summary,
  .seo-related-list {
    grid-template-columns: 1fr;
  }

  .process-section,
  .compare-section,
  .examples-section,
  .savings-section,
  .trust-section,
  .faq-section,
  .seo-task-links,
  .pricing-preview {
    margin-top: 36px;
  }

  .ocr-compare-grid article {
    min-height: auto;
    padding: 16px;
  }

  .savings-controls,
  .demo-panels article {
    padding: 14px;
  }

  .savings-results strong {
    font-size: 24px;
  }

  .checkout-trust article {
    align-items: flex-start;
  }

  .result-status-grid {
    margin-bottom: 14px;
  }
}

/* Convert warm editorial rework and document editor */
:root {
  --bg: #faf6f1;
  --surface: #ffffff;
  --surface-muted: #f2eae1;
  --surface-visual: #fff8f0;
  --paper: #fffdf8;
  --text: #1d1e1c;
  --muted: #68615c;
  --line: rgba(29, 30, 28, 0.14);
  --primary: #111111;
  --primary-strong: #3e3e3e;
  --accent: #fa5d00;
  --accent-soft: #ffe3cf;
  --info: #3860be;
  --warning: #b77900;
  --danger: #d43f3a;
  --success: #346e4a;
  --shadow: 0 18px 50px rgba(29, 30, 28, 0.12);
  --soft-shadow: 0 10px 30px rgba(29, 30, 28, 0.08);
  --radius: 8px;
}

body {
  background:
    radial-gradient(circle at top left, rgba(250, 93, 0, 0.10), transparent 360px),
    linear-gradient(180deg, #faf6f1 0, #fffaf5 460px, #faf6f1 100%);
}

.convert-header {
  top: 12px;
  width: min(1160px, calc(100% - 32px));
  min-height: 62px;
  margin: 12px auto 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 36px rgba(29, 30, 28, 0.10);
}

.convert-brand {
  color: var(--text);
}

.brand-glyph {
  border-radius: 999px;
  background: var(--text);
}

.convert-nav a,
.nav-button {
  border-radius: 999px;
  color: var(--muted);
}

.convert-nav a:hover,
.nav-button:hover,
.convert-nav a:focus-visible,
.nav-button:focus-visible {
  background: var(--surface-muted);
  color: var(--text);
}

.convert-nav .nav-cta,
.primary {
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(29, 30, 28, 0.16);
}

.convert-nav .nav-cta:hover,
.convert-nav .nav-cta:focus-visible,
.primary:hover,
.primary:focus-visible {
  background: var(--primary-strong);
  color: #fff;
}

.secondary {
  border-radius: 999px;
  background: #fff;
  color: var(--text);
}

.secondary:hover,
.secondary:focus-visible {
  border-color: var(--accent);
  background: var(--surface-visual);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(250, 93, 0, 0.34);
  outline-offset: 2px;
}

.eyebrow {
  color: var(--accent);
}

.convert-landing {
  padding: 22px 0 18px;
}

.hero-stage {
  grid-template-columns: minmax(420px, 0.82fr) minmax(0, 1.18fr);
  align-items: start;
}

.hero-copy {
  align-content: start;
}

.hero-copy h1,
.landing-workbench h1,
.landing-hero h1 {
  color: var(--text);
  font-size: clamp(34px, 3.5vw, 50px);
  line-height: 1.04;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.hero-lead {
  color: var(--muted);
}

.anchor-pills a,
.demo-tabs button,
.editor-page-tabs button,
.editor-mobile-switch button {
  border-radius: 999px;
}

.anchor-pills a:hover,
.anchor-pills a:focus-visible,
.demo-tabs button:hover,
.demo-tabs button:focus-visible,
.demo-tabs button[aria-selected="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text);
}

.hero-workbench-panel {
  margin-top: 22px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hero-workbench-panel .workspace {
  width: 100%;
  margin-top: 0;
}

.upload-panel,
.result-panel,
.structure-preview,
.result-preview,
.editor-form textarea,
.result-feedback,
.stats-strip article,
.pricing-context article,
.trust-grid article,
.ocr-compare-grid article,
.savings-controls,
.savings-results article,
.demo-panels article,
.plan-card,
.faq-list article {
  border-color: var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.file-drop {
  border-color: rgba(250, 93, 0, 0.40);
  background:
    linear-gradient(135deg, rgba(255, 248, 240, 0.94), rgba(255, 255, 255, 0.96));
}

.file-drop:hover,
.file-drop:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(250, 93, 0, 0.12);
}

.file-drop svg,
.empty-result svg,
.feature-grid svg,
.stats-strip svg,
.trust-grid svg,
.pricing-context svg,
.checkout-trust svg {
  color: var(--accent);
}

.progress-track span {
  background: var(--accent);
}

.doc-label,
.plan-badge {
  background: var(--accent-soft);
  color: #983700;
}

.scan-sheet {
  background:
    linear-gradient(rgba(250, 93, 0, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 96, 190, 0.12) 1px, transparent 1px),
    #fffdf8;
  background-size: 22px 22px;
}

.hand-line,
.flat-lines span,
.structured-lines span {
  background: rgba(250, 93, 0, 0.28);
}

.hand-split span {
  border-color: rgba(250, 93, 0, 0.34);
}

.hand-note {
  background: rgba(56, 96, 190, 0.10);
  color: var(--info);
}

.compare-arrow {
  color: var(--accent);
}

.mini-table span,
.rich-result th {
  background: #eef3ff;
  color: #293b78;
}

.ocr-compare-grid .is-strong,
.plan-card.is-featured {
  border-color: rgba(250, 93, 0, 0.42);
  background: #fffaf5;
  box-shadow: 0 16px 42px rgba(250, 93, 0, 0.12);
}

.savings-controls input[type="range"] {
  accent-color: var(--accent);
}

.savings-results article.is-strong {
  background: var(--text);
}

.status-pill {
  border-radius: 999px;
  background: #eef3ff;
  color: #293b78;
}

.status-done {
  background: #e4f4e8;
  color: var(--success);
}

.status-failed {
  background: #fde6e4;
  color: #9f2520;
}

.status-queued,
.status-running {
  background: #fff0d8;
  color: #8a5200;
}

.partial-notice-upgraded {
  border-color: rgba(183, 121, 0, 0.30);
  background: #fff7e8;
}

.modal {
  width: min(580px, calc(100vw - 32px));
}

.modal::backdrop {
  background: rgba(20, 18, 15, 0.48);
  backdrop-filter: blur(8px);
}

.modal-box {
  border-color: rgba(29, 30, 28, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #ffffff 0, #fffaf5 100%);
  box-shadow: 0 30px 80px rgba(29, 30, 28, 0.28);
}

.modal-head h2 {
  color: var(--text);
}

.modal-head p,
.muted {
  color: var(--muted);
}

.icon-button,
.icon-tool {
  display: inline-grid;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
}

.icon-button:hover,
.icon-button:focus-visible,
.icon-tool:hover,
.icon-tool:focus-visible {
  border-color: var(--accent);
  background: var(--surface-visual);
}

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

.editor-tool-text {
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
}

.document-editor {
  --source-zoom: 1;
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.editor-mobile-switch {
  display: none;
  gap: 8px;
}

.editor-mobile-switch button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.editor-mobile-switch button.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text);
}

.editor-shell {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
  gap: 14px;
  align-items: stretch;
  min-height: 700px;
}

.document-source-pane,
.document-text-pane {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--soft-shadow);
}

.document-source-pane {
  grid-template-rows: auto 1fr;
}

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

.editor-pane-head h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.source-tools,
.editor-command-group,
.search-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.source-preview-frame {
  min-height: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(45deg, rgba(29, 30, 28, 0.03) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(29, 30, 28, 0.03) 25%, transparent 25%),
    #f6f0e8;
  background-size: 18px 18px;
}

.source-page-panel {
  position: relative;
  min-height: 100%;
  padding: 16px;
}

.source-page-panel img {
  display: block;
  width: calc(100% * var(--source-zoom));
  max-width: none;
  margin: 0 auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 38px rgba(29, 30, 28, 0.16);
}

.source-open-link {
  position: sticky;
  bottom: 12px;
  left: 12px;
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  margin-top: 12px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.source-placeholder {
  display: grid;
  min-height: 420px;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: var(--muted);
  text-align: center;
}

.editor-save-state {
  min-height: 32px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.editor-save-state[data-tone="dirty"] {
  border-color: rgba(250, 93, 0, 0.34);
  background: var(--accent-soft);
  color: #983700;
}

.editor-save-state[data-tone="saving"] {
  border-color: rgba(56, 96, 190, 0.28);
  background: #eef3ff;
  color: #293b78;
}

.editor-page-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.editor-page-tabs::-webkit-scrollbar {
  display: none;
}

.editor-page-tabs button {
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-weight: 850;
  cursor: pointer;
}

.editor-page-tabs button.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text);
}

.editor-toolbox,
.editor-search-panel {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf5;
}

.editor-command-group {
  padding-right: 10px;
  border-right: 1px solid var(--line);
}

.editor-command-group:last-child {
  padding-right: 0;
  border-right: 0;
}

.editor-command-group-wide .secondary {
  min-height: 44px;
}

.editor-search-panel {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr) auto;
  align-items: end;
}

.editor-search-panel[hidden] {
  display: none !important;
}

.editor-search-panel label,
.table-size-grid label {
  display: grid;
  gap: 6px;
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
}

.editor-search-panel input,
.table-size-grid input {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}

.editor-search-status {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
}

.page-editor-stack {
  min-height: 0;
}

.page-editor-panel,
.page-editor-panel textarea {
  min-height: 100%;
}

.page-editor-panel textarea {
  width: 100%;
  min-height: 520px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  line-height: 1.6;
  resize: vertical;
  tab-size: 2;
}

.page-editor-panel textarea::selection {
  background: rgba(250, 93, 0, 0.22);
}

.editor-bottom-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.editor-bottom-actions p {
  margin: 0;
  color: var(--muted);
}

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

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

.confidence-item {
  display: grid;
  gap: 4px;
  width: 100%;
  min-height: 58px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.confidence-item:hover,
.confidence-item:focus-visible {
  border-color: var(--accent);
  background: var(--surface-visual);
}

.confidence-item span {
  color: var(--muted);
  font-size: 13px;
}

.confidence-trigger span[data-confidence-count] {
  display: inline-grid;
  min-width: 24px;
  min-height: 24px;
  place-items: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #983700;
  font-size: 12px;
}

.result-feedback {
  margin-top: 18px;
}

@media (max-width: 980px) {
  .hero-stage,
  .editor-shell,
  .hero-workbench-panel .workspace {
    grid-template-columns: 1fr;
  }

  .editor-shell {
    min-height: 0;
  }

  .document-source-pane,
  .document-text-pane {
    min-height: 520px;
  }
}

@media (max-width: 760px) {
  .editor-mobile-switch {
    display: flex;
  }

  .document-editor[data-mobile-view="text"] .document-source-pane,
  .document-editor[data-mobile-view="source"] .document-text-pane {
    display: none;
  }

  .document-source-pane,
  .document-text-pane {
    min-height: auto;
  }

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

  .editor-bottom-actions,
  .search-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .editor-bottom-actions .primary,
  .search-actions button {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .convert-header {
    top: 8px;
    width: min(100% - 20px, 1160px);
    margin-top: 8px;
    padding: 8px 10px;
  }

  .convert-nav .nav-cta {
    padding: 0 12px;
  }

  .hero-workbench-panel {
    padding: 8px;
  }

  .hero-product-panel {
    display: none;
  }

  .hero-copy h1,
  .landing-workbench h1,
  .landing-hero h1 {
    font-size: 34px;
  }

  .editor-toolbox {
    gap: 8px;
  }

  .editor-command-group {
    width: 100%;
    padding-right: 0;
    padding-bottom: 8px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .editor-command-group:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .page-editor-panel textarea {
    min-height: 440px;
    padding: 14px;
  }

  .table-size-grid {
    grid-template-columns: 1fr;
  }
}

/* Dense layout and applied design pass 2026-09-02 */
:root {
  --bg: #fbf5f0;
  --surface: #ffffff;
  --surface-muted: #f3ebe4;
  --surface-visual: #fff8f1;
  --paper: #fffdf8;
  --text: #1d1e1c;
  --text-2: #2c222d;
  --muted: #6a696a;
  --muted-soft: #8b8b8b;
  --line: rgba(29, 30, 28, 0.12);
  --primary: #000000;
  --primary-strong: #4f4f4f;
  --accent: #fa5d00;
  --accent-soft: #ffe5d2;
  --info: #3860be;
  --warning: #d99a00;
  --danger: #d43f3a;
  --success: #346e4a;
  --shadow: 0 14px 38px rgba(29, 30, 28, 0.10);
  --soft-shadow: 0 8px 22px rgba(29, 30, 28, 0.07);
  --radius: 20px;
  --font-sans: "Muoto VAR", MuotoWeb, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-serif: Besley, Georgia, "Times New Roman", serif;
}

html {
  background: var(--bg);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  letter-spacing: 0;
}

body:has(.document-editor) {
  overflow: hidden;
}

body:has(.document-editor) .convert-footer {
  display: none;
}

.alerts,
.landing-workbench,
.stats-strip,
.process-section,
.compare-section,
.examples-section,
.savings-section,
.trust-section,
.faq-section,
.pricing-context,
.pricing-preview,
.seo-task-links,
.seo-proof,
.page-head,
.plans-grid,
.account-head,
.account-grid,
.account-panel,
.auth-shell {
  width: min(1488px, calc(100vw - 24px));
}

.result-page {
  width: min(1600px, calc(100vw - 20px));
}

.convert-header {
  top: 10px;
  width: min(1488px, calc(100vw - 24px));
  min-height: 58px;
  margin-top: 10px;
  padding: 7px 10px 7px 18px;
  border: 1px solid rgba(29, 30, 28, 0.10);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(14px);
}

.convert-brand {
  min-height: 38px;
  font-size: 15px;
  font-weight: 700;
}

.brand-glyph {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--text);
}

.convert-nav {
  gap: 4px;
}

.convert-nav a,
.nav-button {
  min-height: 38px;
  padding: 0 11px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}

.convert-nav .nav-cta {
  min-height: 42px;
  padding: 0 18px;
  background: var(--primary);
  color: #fff;
}

.hero-copy h1,
.landing-workbench h1,
.landing-hero h1,
.pricing-preview .section-head h2,
.process-section .section-head h2,
.compare-section .section-head h2,
.examples-section .section-head h2,
.savings-section .section-head h2,
.trust-section .section-head h2,
.faq-section .section-head h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: 0;
}

.primary,
.secondary,
.link-button,
.icon-button,
.icon-tool,
.file-drop,
.plan-card,
.stats-strip article,
.feature-grid article,
.ocr-compare-grid article,
.demo-tabs button,
.anchor-pills a,
.faq-list article,
.editor-thumb,
.confidence-item {
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease, opacity 180ms ease;
}

.primary,
.convert-nav .nav-cta {
  background: var(--primary);
  color: #fff;
  box-shadow: none;
}

.primary:hover,
.primary:focus-visible,
.convert-nav .nav-cta:hover,
.convert-nav .nav-cta:focus-visible {
  background: var(--primary-strong);
  border-color: var(--primary-strong);
  color: #fff;
}

.secondary:hover,
.secondary:focus-visible,
.convert-nav a:hover,
.convert-nav a:focus-visible,
.nav-button:hover,
.nav-button:focus-visible,
.anchor-pills a:hover,
.anchor-pills a:focus-visible {
  border-color: var(--accent);
  background: var(--surface-muted);
  color: var(--text);
}

@media (prefers-reduced-motion: no-preference) {
  .primary:hover,
  .secondary:hover,
  .link-button:hover,
  .icon-button:hover,
  .icon-tool:hover,
  .editor-thumb:hover,
  .plan-card:hover,
  .stats-strip article:hover,
  .feature-grid article:hover,
  .ocr-compare-grid article:hover,
  .faq-list article:hover {
    transform: translateY(-1px);
  }
}

.convert-landing {
  padding: 8px 0 16px;
}

.landing-workbench {
  padding: 8px 0 0;
}

.hero-stage {
  display: grid;
  grid-template-columns: minmax(340px, 0.78fr) minmax(560px, 1.22fr);
  gap: clamp(16px, 2.2vw, 32px);
  align-items: center;
  min-height: calc(100dvh - 88px);
}

.hero-copy {
  align-content: center;
  min-width: 0;
  padding: 0;
}

.hero-copy h1,
.landing-workbench h1,
.landing-hero h1 {
  max-width: 700px;
  font-size: clamp(42px, 4.5vw, 64px);
  line-height: 1.05;
  color: var(--text);
}

.hero-lead {
  max-width: 620px;
  margin-top: 14px;
  color: rgba(29, 30, 28, 0.68);
  font-size: 18px;
  line-height: 1.45;
}

.hero-actions {
  margin-top: 20px;
}

.hero-limit {
  max-width: 460px;
  margin-top: 16px;
  padding: 9px 12px;
  border-radius: 999px;
  background: #fff;
}

.anchor-pills {
  margin-top: 16px;
}

.hero-upload-column {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.hero-workbench-panel {
  margin-top: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.hero-upload-column .workspace {
  width: 100%;
  grid-template-columns: minmax(0, 1.08fr) minmax(250px, 0.92fr);
  gap: 10px;
  align-items: stretch;
}

.hero-upload-column .upload-panel,
.hero-upload-column .result-panel {
  min-height: 0;
  padding: 14px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.hero-upload-column .section-head {
  margin-bottom: 10px;
}

.hero-upload-column .section-head h2 {
  font-size: 20px;
  line-height: 1.15;
}

.hero-upload-column .section-head p,
.hero-upload-column .form-note {
  font-size: 13px;
  line-height: 1.35;
}

.hero-upload-column .dropzone {
  gap: 9px;
}

.hero-upload-column .title-input {
  min-height: 38px;
  border-radius: 999px;
  background: var(--surface-muted);
}

.hero-upload-column .file-drop {
  min-height: 108px;
  padding: 13px;
  border-color: rgba(250, 93, 0, 0.38);
  border-radius: 20px;
  background: var(--surface-muted);
}

.hero-upload-column .file-drop:hover,
.hero-upload-column .file-drop:focus-within {
  border-color: var(--accent);
  background: #fff4eb;
  box-shadow: 0 0 0 4px rgba(250, 93, 0, 0.12);
}

.hero-upload-column .file-drop svg {
  width: 28px;
  height: 28px;
}

.hero-upload-column .file-drop strong {
  max-width: 360px;
  font-size: 15px;
  line-height: 1.25;
}

.hero-upload-column .file-drop small {
  font-size: 12px;
}

.hero-upload-column .primary.full {
  min-height: 42px;
}

.hero-upload-column .empty-result,
.hero-upload-column .paywall {
  min-height: 124px;
  padding: 12px;
  border-radius: 18px;
}

.hero-upload-column .empty-result svg {
  width: 28px;
  height: 28px;
}

.hero-upload-column .empty-result p {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
}

.hero-upload-column .hero-product-panel {
  max-height: 154px;
  padding: 10px;
  overflow: hidden;
  border-radius: 20px;
}

.hero-upload-column .document-compare {
  grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
}

.hero-upload-column .scan-sheet,
.hero-upload-column .result-sheet {
  min-height: 118px;
  padding: 11px;
  border-radius: 16px;
}

.hero-upload-column .scan-sheet .hand-line {
  height: 7px;
}

.hero-upload-column .result-sheet strong,
.hero-upload-column .result-sheet li,
.hero-upload-column .mini-table > * {
  font-size: 12px;
  line-height: 1.2;
}

.stats-strip,
.pricing-context,
.trust-grid,
.upgraded-feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stats-strip article,
.feature-grid article,
.trust-grid article,
.pricing-context article,
.ocr-compare-grid article,
.demo-panels article,
.plan-card,
.faq-list article,
.upload-panel,
.result-panel,
.auth-card,
.account-panel {
  border-radius: 20px;
}

.result-page-upgraded {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 8px;
  height: calc(100dvh - 88px);
  min-height: 0;
  padding: 6px 0 10px;
  overflow: hidden;
}

.result-page-upgraded:has(.document-editor) .result-status-grid,
.result-page-upgraded:has(.document-editor) .result-feedback {
  display: none;
}

.result-page-upgraded .result-toolbar {
  align-items: center;
  min-height: 0;
  padding: 0;
}

.result-page-upgraded .result-toolbar .eyebrow {
  display: none;
}

.result-page-upgraded .result-toolbar h1 {
  max-width: min(720px, 52vw);
  overflow: hidden;
  color: var(--text);
  font-size: 18px;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-meta-row {
  gap: 6px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.result-meta-row .status-pill {
  min-height: 24px;
  padding: 3px 8px;
  font-size: 12px;
}

.result-actions {
  gap: 6px;
}

.result-actions .link-button,
.result-actions button {
  min-height: 34px;
  padding: 0 11px;
  font-size: 13px;
}

.document-editor {
  --source-zoom: 1;
  --editor-text-size: 14px;
  height: 100%;
  min-height: 0;
  margin-top: 0;
}

.editor-shell {
  display: grid;
  grid-template-columns: 88px minmax(330px, 0.94fr) minmax(460px, 1.26fr);
  gap: 10px;
  align-items: stretch;
  height: 100%;
  min-height: 0;
}

.editor-page-rail,
.document-source-pane,
.document-text-pane {
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--soft-shadow);
}

.editor-page-rail {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 8px;
  padding: 8px;
  overflow: hidden;
}

.editor-page-rail-head {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.editor-thumb-list {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 0;
  overflow: auto;
  padding-right: 1px;
}

.editor-thumb {
  position: relative;
  display: block;
  width: 100%;
  height: 108px;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-muted);
  cursor: pointer;
}

.editor-thumb:hover,
.editor-thumb:focus-visible {
  border-color: rgba(250, 93, 0, 0.60);
  box-shadow: 0 0 0 3px rgba(250, 93, 0, 0.12);
}

.editor-thumb.is-active {
  border-color: var(--accent);
  box-shadow: inset 4px 0 0 var(--accent), 0 0 0 3px rgba(250, 93, 0, 0.15);
}

.editor-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.editor-thumb-number {
  position: absolute;
  top: 5px;
  left: 5px;
  z-index: 1;
  display: inline-grid;
  min-width: 22px;
  min-height: 22px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  font-size: 12px;
  font-weight: 850;
  box-shadow: 0 1px 4px rgba(29, 30, 28, 0.14);
}

.editor-thumb-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: var(--accent);
}

.document-source-pane,
.document-text-pane {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.document-source-pane {
  grid-template-rows: auto 1fr;
}

.document-text-pane {
  position: relative;
  grid-template-rows: auto auto auto 1fr auto;
}

.editor-pane-head {
  align-items: center;
  min-height: 34px;
  gap: 8px;
}

.editor-pane-head .eyebrow {
  margin-bottom: 2px;
  font-size: 10px;
  line-height: 1;
}

.editor-pane-head h2 {
  font-size: 16px;
  line-height: 1.15;
}

.source-tools,
.editor-command-group,
.search-actions {
  gap: 5px;
}

.source-tools .icon-tool,
.editor-toolbox .icon-tool,
.editor-toolbox .secondary,
.editor-search-panel button {
  min-height: 34px;
  height: 34px;
}

.icon-button,
.icon-tool {
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  border-radius: 999px;
}

.editor-toolbox .icon-tool {
  width: 34px;
  min-width: 34px;
}

.icon-tool svg,
.icon-button svg {
  width: 17px;
  height: 17px;
}

.editor-page-tabs {
  display: none;
}

.editor-save-state {
  min-height: 26px;
  padding: 5px 8px;
  font-size: 11px;
}

.editor-toolbox {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  padding: 6px;
  border-radius: 12px;
  background: var(--surface-visual);
}

.editor-command-group {
  gap: 5px;
  padding-right: 6px;
}

.editor-command-group-controls {
  flex-wrap: nowrap;
}

.editor-style-control,
.editor-size-control {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.editor-style-control select,
.editor-size-control input {
  height: 32px;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.editor-style-control select {
  width: 112px;
  padding: 0 28px 0 10px;
}

.editor-size-control input {
  width: 56px;
  padding: 0 8px;
  text-align: center;
}

.editor-command-group-wide .secondary,
.editor-search-panel .primary,
.editor-search-panel .secondary {
  min-height: 34px;
  padding: 0 11px;
  font-size: 13px;
}

.confidence-trigger span[data-confidence-count] {
  min-width: 22px;
  min-height: 22px;
  background: #ffe2bf;
  color: #8a3500;
}

.editor-search-panel {
  position: absolute;
  top: 92px;
  right: 10px;
  left: 10px;
  z-index: 8;
  grid-template-columns: minmax(140px, 1fr) minmax(140px, 1fr) auto;
  gap: 8px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 45px rgba(29, 30, 28, 0.18);
}

.editor-search-panel input,
.table-size-grid input {
  min-height: 36px;
  border-radius: 999px;
  background: var(--surface-muted);
}

.editor-search-status {
  font-size: 12px;
}

.source-preview-frame {
  height: 100%;
  min-height: 0;
  border-radius: 10px;
  background: #f6f0e8;
}

.source-page-panel {
  min-height: 100%;
  padding: 10px;
}

.source-page-panel img {
  width: min(calc(100% * var(--source-zoom)), 1400px);
  border-radius: 8px;
}

.source-open-link {
  min-height: 30px;
  font-size: 12px;
}

.page-editor-stack {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.page-editor-panel {
  height: 100%;
  min-height: 0;
}

.page-editor-panel textarea {
  min-height: 0;
}

.editor-text-field {
  position: relative;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}

.editor-highlight-layer,
.editor-text-field textarea {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: var(--editor-text-size);
  font-weight: 400;
  line-height: 1.42;
  letter-spacing: 0;
  tab-size: 2;
  white-space: pre-wrap;
  word-break: break-word;
}

.editor-highlight-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: auto;
  color: var(--text-2);
  pointer-events: none;
  scrollbar-width: none;
}

.editor-highlight-layer::-webkit-scrollbar {
  display: none;
}

.editor-text-field textarea {
  position: relative;
  z-index: 1;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(29, 30, 28, 0.04);
  caret-color: var(--accent);
  outline: 0;
  resize: none;
}

.editor-text-field textarea::selection {
  background: rgba(250, 93, 0, 0.24);
  color: transparent;
}

.confidence-mark {
  display: inline;
  padding: 1px 3px;
  border-radius: 5px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.confidence-mark.is-unreadable {
  background: #fee2e2;
  color: #7a1f1a;
  box-shadow: inset 0 -1px 0 rgba(212, 63, 58, 0.35);
}

.confidence-mark.is-uncertain {
  background: #ffe08a;
  color: #633400;
  box-shadow: inset 0 -1px 0 rgba(217, 154, 0, 0.42);
}

.editor-bottom-actions {
  min-height: 34px;
  gap: 8px;
}

.editor-bottom-actions p {
  display: none;
}

.editor-bottom-actions .primary {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

.modal {
  width: min(640px, calc(100vw - 32px));
  padding: 0;
  border-radius: 20px;
}

.confidence-dialog {
  width: min(760px, calc(100vw - 32px));
}

.modal-box {
  padding: 22px;
  border: 1px solid rgba(29, 30, 28, 0.12);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(29, 30, 28, 0.30);
}

.modal-head h2 {
  font-size: 24px;
  line-height: 1.18;
}

.table-size-grid label,
.editor-search-panel label {
  font-size: 12px;
  text-transform: uppercase;
}

.confidence-list {
  max-height: min(58dvh, 520px);
  overflow: auto;
}

.confidence-item {
  border-radius: 14px;
}

@media (max-width: 1180px) {
  .hero-stage {
    grid-template-columns: minmax(300px, 0.82fr) minmax(480px, 1.18fr);
  }

  .hero-upload-column .workspace {
    grid-template-columns: 1fr;
  }

  .hero-upload-column .result-panel {
    min-height: 98px;
  }
}

@media (max-width: 980px) {
  body:has(.document-editor) {
    overflow: auto;
  }

  .hero-stage,
  .editor-shell {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .result-page-upgraded {
    height: auto;
    min-height: calc(100dvh - 88px);
    overflow: visible;
  }

  .editor-page-rail {
    min-height: 118px;
  }

  .editor-thumb-list {
    grid-auto-flow: column;
    grid-auto-columns: 76px;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .editor-thumb {
    height: 102px;
  }

  .source-preview-frame {
    height: min(58dvh, 520px);
  }

  .editor-text-field {
    height: min(58dvh, 560px);
    min-height: 420px;
  }

  .document-source-pane,
  .document-text-pane {
    min-height: 0;
  }

  .editor-search-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .alerts,
  .landing-workbench,
  .stats-strip,
  .process-section,
  .compare-section,
  .examples-section,
  .savings-section,
  .trust-section,
  .faq-section,
  .pricing-context,
  .pricing-preview,
  .seo-task-links,
  .seo-proof,
  .page-head,
  .plans-grid,
  .account-head,
  .account-grid,
  .account-panel,
  .auth-shell,
  .result-page {
    width: min(100% - 20px, 1488px);
  }

  .hero-copy h1,
  .landing-workbench h1,
  .landing-hero h1 {
    font-size: 42px;
  }

  .stats-strip,
  .pricing-context,
  .trust-grid,
  .upgraded-feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-upload-column .hero-product-panel {
    display: none;
  }

  .editor-toolbox {
    align-items: flex-start;
  }

  .editor-command-group {
    width: auto;
    padding-right: 6px;
    padding-bottom: 0;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .editor-command-group-controls {
    width: 100%;
  }

  .editor-style-control {
    flex: 1 1 auto;
  }

  .editor-style-control select {
    width: 100%;
  }

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

@media (max-width: 560px) {
  .convert-header {
    width: min(100% - 16px, 1488px);
    padding: 7px 8px 7px 12px;
  }

  .convert-nav .nav-optional {
    display: none;
  }

  .hero-copy h1,
  .landing-workbench h1,
  .landing-hero h1 {
    font-size: 36px;
  }

  .result-page-upgraded .result-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .result-page-upgraded .result-toolbar h1 {
    max-width: 100%;
    white-space: normal;
  }

  .editor-bottom-actions .primary {
    width: 100%;
  }
}

/* Visual QA corrective layer 2026-09-02.
   Keeps product behavior intact while making the TЗ visual system explicit. */
:root {
  --bg: #fbf5f0;
  --surface: #ffffff;
  --surface-muted: #f3ebe4;
  --surface-visual: #fff8f1;
  --paper: #ffffff;
  --text: #1d1e1c;
  --text-2: #2c222d;
  --muted: #6a696a;
  --muted-2: #8b8b8b;
  --line: rgba(29, 30, 28, 0.10);
  --line-strong: rgba(29, 30, 28, 0.22);
  --primary: #000000;
  --primary-strong: #4f4f4f;
  --accent: #fa5d00;
  --accent-soft: rgba(250, 93, 0, 0.12);
  --info: #3860be;
  --warning: #d99a00;
  --danger: #d43f3a;
  --success: #346e4a;
  --radius: 20px;
  --radius-pill: 999px;
  --shadow: 0 18px 44px rgba(29, 30, 28, 0.10);
  --soft-shadow: 0 6px 18px rgba(29, 30, 28, 0.07);
  --font-sans: "Manrope", "Muoto VAR", MuotoWeb, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-serif: "PT Serif", Besley, Georgia, "Times New Roman", serif;
}

html,
body {
  background: var(--bg);
}

body,
button,
input,
textarea,
select {
  font-family: var(--font-sans);
  letter-spacing: 0;
}

body {
  color: var(--text);
}

.alerts,
.landing-workbench,
.stats-strip,
.process-section,
.compare-section,
.examples-section,
.savings-section,
.trust-section,
.faq-section,
.pricing-context,
.pricing-preview,
.seo-task-links,
.seo-proof,
.page-head,
.plans-grid,
.account-head,
.account-grid,
.account-panel,
.auth-shell {
  width: min(1760px, calc(100vw - 40px));
  margin-inline: auto;
}

.result-page {
  width: min(1820px, calc(100vw - 20px));
  margin-inline: auto;
}

.convert-header {
  top: 20px;
  width: min(1760px, calc(100vw - 40px));
  min-height: 73px;
  margin: 20px auto 0;
  padding: 12px 16px 12px 24px;
  border: 1px solid var(--line);
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(14px);
}

.convert-brand {
  gap: 10px;
  min-height: 49px;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
}

.brand-glyph {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
}

.convert-nav {
  gap: 6px;
}

.convert-nav a,
.nav-button {
  min-height: 49px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 30px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 400;
}

.convert-nav a:hover,
.convert-nav a:focus-visible,
.nav-button:hover,
.nav-button:focus-visible {
  border-color: transparent;
  background: transparent;
  color: var(--accent);
  outline: none;
}

.convert-nav .nav-cta,
.primary {
  border: 1px solid var(--primary);
  border-radius: 30px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

.primary:hover,
.primary:focus-visible,
.convert-nav .nav-cta:hover,
.convert-nav .nav-cta:focus-visible {
  border-color: var(--primary-strong);
  background: var(--primary-strong);
  color: #fff;
  outline: none;
}

.secondary,
.link-button.secondary {
  border: 1px solid #999999;
  border-radius: 30px;
  background: transparent;
  color: var(--text);
  font-weight: 500;
}

.secondary:hover,
.secondary:focus-visible,
.link-button.secondary:hover,
.link-button.secondary:focus-visible {
  border-color: var(--text);
  background: rgba(243, 235, 228, 0.58);
  color: var(--text);
  outline: none;
}

.primary:focus-visible,
.secondary:focus-visible,
.link-button:focus-visible,
.icon-button:focus-visible,
.icon-tool:focus-visible,
.file-drop:focus-within,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  box-shadow: 0 0 0 3px rgba(250, 93, 0, 0.22);
}

.hero-copy h1,
.landing-workbench h1,
.landing-hero h1,
.pricing-preview .section-head h2,
.process-section .section-head h2,
.compare-section .section-head h2,
.examples-section .section-head h2,
.savings-section .section-head h2,
.trust-section .section-head h2,
.faq-section .section-head h2,
.page-head h1,
.pricing-preview h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: 0;
}

.convert-landing {
  padding: 16px 0 24px;
}

.landing-workbench {
  padding: 12px 0 0;
}

.hero-stage {
  display: grid;
  grid-template-columns: minmax(420px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(24px, 3vw, 60px);
  align-items: center;
  min-height: calc(100dvh - 118px);
}

.hero-copy {
  align-content: center;
  min-width: 0;
  padding: 0;
}

.eyebrow {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
}

.hero-copy h1,
.landing-workbench h1,
.landing-hero h1 {
  max-width: 620px;
  font-size: 70px;
  line-height: 77px;
  color: var(--text);
}

.hero-lead {
  max-width: 620px;
  margin-top: 16px;
  color: rgba(29, 30, 28, 0.62);
  font-size: 19px;
  line-height: 26.6px;
}

.hero-actions {
  gap: 10px;
  margin-top: 22px;
}

.hero-actions .link-button {
  min-height: 53px;
  padding: 0 22px;
  font-size: 16px;
}

.hero-proof-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 16px;
  line-height: 24px;
}

.hero-proof-list li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-proof-list svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  stroke-width: 2.4;
}

.hero-limit {
  max-width: 520px;
  margin-top: 14px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.anchor-pills {
  gap: 8px;
  margin-top: 14px;
}

.anchor-pills a {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.anchor-pills a:hover,
.anchor-pills a:focus-visible {
  border-color: var(--accent);
  background: var(--surface-muted);
  color: var(--text);
}

.hero-upload-column {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.hero-upload-column .workspace {
  width: 100%;
  grid-template-columns: minmax(360px, 1fr) minmax(270px, 0.72fr);
  gap: 12px;
  align-items: stretch;
}

.hero-upload-column .upload-panel,
.hero-upload-column .result-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: none;
}

.hero-upload-column .section-head {
  margin-bottom: 12px;
}

.hero-upload-column .section-head h2 {
  font-family: var(--font-sans);
  font-size: 26px;
  font-weight: 600;
  line-height: 33px;
}

.hero-upload-column .section-head p,
.hero-upload-column .form-note {
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}

.hero-upload-column .dropzone {
  gap: 10px;
}

.title-input,
.editor-search-panel input,
.table-size-grid input,
.confidence-input {
  border: 1.5px solid var(--line);
  border-radius: 30px;
  background: var(--surface-muted);
  color: var(--text);
}

.title-input::placeholder,
.confidence-input::placeholder,
.editor-search-panel input::placeholder {
  color: var(--muted-2);
}

.hero-upload-column .title-input {
  min-height: 44px;
  padding: 0 16px;
}

.hero-upload-column .file-drop {
  min-height: 132px;
  padding: 16px;
  border: 1.5px dashed var(--line);
  border-radius: 20px;
  background: var(--surface-muted);
  color: var(--text);
}

.hero-upload-column .file-drop:hover,
.hero-upload-column .file-drop:focus-within,
.hero-upload-column .file-drop.is-dragover {
  border-color: var(--accent);
  background: var(--surface-muted);
  box-shadow: 0 0 0 4px rgba(250, 93, 0, 0.12);
}

.hero-upload-column .file-drop svg {
  width: 30px;
  height: 30px;
  color: var(--accent);
}

.hero-upload-column .file-drop strong {
  max-width: 420px;
  font-size: 16px;
  line-height: 22px;
}

.hero-upload-column .file-drop small {
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}

.format-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.format-chips span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.hero-upload-column .primary.full {
  min-height: 49px;
  font-size: 16px;
}

.hero-upload-column .empty-result,
.hero-upload-column .paywall {
  min-height: 128px;
  padding: 14px;
  border-radius: 20px;
  background: var(--surface-visual);
}

.hero-upload-column .hero-product-panel {
  max-height: 172px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-visual);
  box-shadow: none;
}

.stats-strip,
.pricing-context,
.trust-grid,
.upgraded-feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stats-strip article,
.feature-grid article,
.trust-grid article,
.pricing-context article,
.ocr-compare-grid article,
.demo-panels article,
.plan-card,
.faq-list article,
.upload-panel,
.result-panel,
.auth-card,
.account-panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: none;
}

.feature-grid article:hover,
.stats-strip article:hover,
.plan-card:hover,
.faq-list article:hover {
  border-color: var(--line-strong);
  background: #fff;
}

body:has(.document-editor) {
  width: 100%;
  height: 100dvh;
  overflow: hidden;
}

body:has(.document-editor) .convert-header {
  position: fixed;
  top: 10px;
  left: 50%;
  width: min(1820px, calc(100vw - 20px));
  min-height: 58px;
  margin: 0;
  padding: 8px 10px 8px 18px;
  transform: translateX(-50%);
}

body:has(.document-editor) .convert-brand {
  min-height: 40px;
  font-size: 16px;
}

body:has(.document-editor) .brand-glyph {
  width: 32px;
  height: 32px;
}

body:has(.document-editor) .convert-nav a,
body:has(.document-editor) .nav-button {
  min-height: 38px;
  padding: 0 11px;
  font-size: 14px;
}

body:has(.document-editor) main {
  height: 100dvh;
  min-height: 0;
  padding-top: 76px;
  overflow: hidden;
}

body:has(.document-editor) .convert-footer,
body:has(.document-editor) .alerts {
  display: none;
}

.result-page-upgraded {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 6px;
  height: calc(100dvh - 84px);
  min-height: 0;
  padding: 0 0 8px;
  overflow: hidden;
}

.result-page-upgraded:has(.document-editor) .result-status-grid,
.result-page-upgraded:has(.document-editor) .result-feedback {
  display: none;
}

.result-page-upgraded .result-toolbar {
  align-items: center;
  min-height: 40px;
  padding: 0 4px;
}

.result-page-upgraded .result-toolbar h1 {
  max-width: min(760px, 46vw);
  overflow: hidden;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-meta-row {
  gap: 6px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.result-meta-row .status-pill {
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
}

.result-actions {
  gap: 6px;
}

.result-actions .link-button,
.result-actions button {
  min-height: 34px;
  padding: 0 11px;
  font-size: 13px;
}

.document-editor {
  --source-zoom: 1;
  --editor-text-size: 13px;
  height: 100%;
  min-height: 0;
  margin-top: 0;
  overflow: hidden;
}

.editor-mobile-switch {
  display: none;
}

.editor-shell {
  display: grid;
  grid-template-columns: 118px minmax(420px, 0.92fr) minmax(560px, 1.28fr);
  gap: 10px;
  align-items: stretch;
  height: 100%;
  min-height: 0;
}

.editor-page-rail,
.document-source-pane,
.document-text-pane {
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: none;
}

.editor-page-rail {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  overflow: hidden;
}

.editor-page-rail-head {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.editor-thumb-list {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  overflow: auto;
  padding-right: 1px;
}

.editor-thumb {
  position: relative;
  display: block;
  width: 100%;
  height: 132px;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-visual);
  cursor: pointer;
}

.editor-thumb::after {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(29, 30, 28, 0.20);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  opacity: 0;
  transition: opacity 180ms ease;
  content: "Открыть";
}

.editor-thumb:hover,
.editor-thumb:focus-visible {
  border-color: var(--line-strong);
}

.editor-thumb:hover::after,
.editor-thumb:focus-visible::after {
  opacity: 1;
}

.editor-thumb.is-active {
  border-color: var(--accent);
  box-shadow: inset 4px 0 0 var(--accent);
}

.editor-thumb-number {
  top: 7px;
  left: 7px;
  z-index: 2;
  min-width: 24px;
  min-height: 24px;
  background: #fff;
  color: var(--text);
  font-size: 13px;
}

.document-source-pane,
.document-text-pane {
  display: grid;
  gap: 8px;
  padding: 10px;
}

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

.document-text-pane {
  position: relative;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
}

.editor-pane-head {
  align-items: center;
  min-height: 34px;
  gap: 8px;
}

.editor-pane-head .eyebrow {
  margin-bottom: 2px;
  font-size: 10px;
  line-height: 1;
}

.editor-pane-head h2 {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.15;
}

.source-tools,
.editor-command-group,
.search-actions {
  gap: 5px;
}

.icon-button,
.icon-tool,
.source-tools .icon-tool,
.editor-toolbox .icon-tool {
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--text);
}

.icon-button:hover,
.icon-button:focus-visible,
.icon-tool:hover,
.icon-tool:focus-visible,
.icon-tool.is-active {
  border-color: transparent;
  background: var(--surface-muted);
  color: var(--text);
}

.icon-tool svg,
.icon-button svg {
  width: 17px;
  height: 17px;
}

.editor-save-state {
  min-height: 26px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 11px;
}

.editor-toolbox {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  padding: 4px 6px;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #fff;
  scrollbar-width: thin;
}

.editor-command-group {
  flex: 0 0 auto;
  gap: 5px;
  height: 36px;
  padding-right: 8px;
  border-right: 1px solid var(--line);
}

.editor-command-group:last-child {
  border-right: 0;
}

.editor-style-control,
.editor-size-control {
  flex: 0 0 auto;
  height: 36px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.editor-style-control select,
.editor-size-control input {
  height: 34px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-muted);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.editor-style-control select {
  width: 116px;
}

.editor-size-control input {
  width: 54px;
}

.editor-command-group-wide .secondary,
.editor-search-panel .primary,
.editor-search-panel .secondary,
.confidence-item-controls .primary,
.confidence-item-controls .secondary {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
  white-space: nowrap;
}

.confidence-trigger span[data-confidence-count] {
  min-width: 22px;
  min-height: 22px;
  margin-left: 4px;
  border-radius: 999px;
  background: rgba(217, 154, 0, 0.18);
  color: #633400;
  font-weight: 800;
}

.editor-search-panel {
  position: absolute;
  top: 92px;
  right: 10px;
  left: 10px;
  z-index: 8;
  grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) auto;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(29, 30, 28, 0.18);
}

.editor-search-panel[hidden] {
  display: none !important;
}

.editor-search-panel input,
.table-size-grid input {
  min-height: 40px;
  padding: 0 14px;
}

.source-preview-frame {
  height: 100%;
  min-height: 0;
  overflow: auto;
  border-radius: 16px;
  background: var(--surface-visual);
}

.source-page-panel {
  min-height: 100%;
  padding: 12px;
}

.source-page-panel img {
  display: block;
  width: min(calc(100% * var(--source-zoom)), 1400px);
  margin: 0 auto;
  border-radius: 16px;
}

.page-editor-stack,
.page-editor-panel,
.editor-text-field {
  height: 100%;
  min-height: 0;
}

.page-editor-stack {
  overflow: hidden;
}

.editor-text-field {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
}

.editor-highlight-layer,
.editor-text-field textarea {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 20px 22px;
  font-family: var(--font-sans);
  font-size: var(--editor-text-size);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0;
  tab-size: 2;
  white-space: pre-wrap;
  word-break: break-word;
}

.editor-highlight-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: auto;
  color: var(--text-2);
  pointer-events: none;
  scrollbar-width: none;
}

.editor-text-field textarea {
  position: relative;
  z-index: 1;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(29, 30, 28, 0.035);
  caret-color: var(--accent);
  outline: 0;
  resize: none;
}

.editor-text-field textarea::selection {
  background: rgba(250, 93, 0, 0.25);
  color: transparent;
}

.confidence-mark {
  display: inline;
  padding: 1px 3px;
  border-radius: 5px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.confidence-mark.is-unreadable {
  background: rgba(212, 63, 58, 0.14);
  color: var(--text);
  box-shadow: inset 0 -1px 0 rgba(212, 63, 58, 0.42);
}

.confidence-mark.is-uncertain {
  background: rgba(217, 154, 0, 0.18);
  color: var(--text);
  box-shadow: inset 0 -1px 0 rgba(217, 154, 0, 0.48);
}

.editor-bottom-actions {
  min-height: 36px;
  gap: 8px;
}

.editor-bottom-actions p {
  display: none;
}

.editor-bottom-actions .primary {
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
}

.modal {
  width: min(680px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: 20px;
}

.modal::backdrop {
  background: rgba(29, 30, 28, 0.46);
  backdrop-filter: blur(6px);
}

.confidence-dialog {
  width: min(820px, calc(100vw - 32px));
}

.modal-box {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(29, 30, 28, 0.30);
}

.modal-head h2 {
  font-family: var(--font-sans);
  font-size: 26px;
  font-weight: 700;
  line-height: 33px;
}

.confidence-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.confidence-legend span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-visual);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.confidence-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.confidence-dot-high {
  background: var(--success);
}

.confidence-dot-mid {
  background: var(--warning);
}

.confidence-dot-low {
  background: var(--danger);
}

.confidence-list {
  display: grid;
  gap: 10px;
  max-height: min(58dvh, 520px);
  overflow: auto;
}

.confidence-item {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.confidence-jump {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

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

.confidence-jump span {
  color: var(--muted);
  font-size: 13px;
  line-height: 19px;
}

.confidence-item-controls {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  gap: 8px;
  align-items: center;
}

.confidence-input {
  min-height: 40px;
  padding: 0 14px;
}

@media (max-width: 1180px) {
  .hero-stage {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: 0;
  }

  .hero-copy h1,
  .landing-workbench h1,
  .landing-hero h1 {
    max-width: 860px;
    font-size: 56px;
    line-height: 62px;
  }

  .hero-upload-column .workspace {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 0.58fr);
  }
}

@media (max-width: 980px) {
  body:has(.document-editor) {
    height: auto;
    overflow: auto;
  }

  body:has(.document-editor) .convert-header {
    position: sticky;
    top: 10px;
    left: auto;
    transform: none;
  }

  body:has(.document-editor) main {
    height: auto;
    padding-top: 0;
    overflow: visible;
  }

  .result-page-upgraded {
    height: auto;
    min-height: calc(100dvh - 88px);
    overflow: visible;
  }

  .editor-mobile-switch {
    display: flex;
  }

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

  .editor-page-rail {
    min-height: 132px;
  }

  .editor-thumb-list {
    grid-auto-flow: column;
    grid-auto-columns: 88px;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .editor-thumb {
    height: 118px;
  }

  .source-preview-frame,
  .editor-text-field {
    height: min(58dvh, 560px);
    min-height: 420px;
  }

  .editor-toolbox {
    border-radius: 20px;
  }

  .editor-search-panel {
    position: static;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .alerts,
  .landing-workbench,
  .stats-strip,
  .process-section,
  .compare-section,
  .examples-section,
  .savings-section,
  .trust-section,
  .faq-section,
  .pricing-context,
  .pricing-preview,
  .seo-task-links,
  .seo-proof,
  .page-head,
  .plans-grid,
  .account-head,
  .account-grid,
  .account-panel,
  .auth-shell,
  .result-page,
  .convert-header {
    width: min(100% - 40px, 1760px);
  }

  .convert-header {
    min-height: 64px;
    padding: 10px 12px;
  }

  .convert-brand {
    min-height: 42px;
    font-size: 16px;
  }

  .convert-nav .nav-optional {
    display: none;
  }

  .convert-nav .nav-cta {
    min-height: 42px;
    padding: 0 14px;
    font-size: 15px;
  }

  .hero-copy h1,
  .landing-workbench h1,
  .landing-hero h1 {
    font-size: 48px;
    line-height: 52.8px;
  }

  .hero-lead {
    font-size: 16px;
    line-height: 24px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-upload-column .workspace,
  .stats-strip,
  .pricing-context,
  .trust-grid,
  .upgraded-feature-grid,
  .confidence-item-controls {
    grid-template-columns: 1fr;
  }

  .hero-upload-column .hero-product-panel {
    display: none;
  }

  .modal-box {
    padding: 20px;
  }
}

/* Editor layout QA fix 2026-09-02.
   Final cascade layer for real desktop workspace density and applied visual tokens. */
html {
  scroll-padding-top: 112px;
}

#upload,
.landing-workbench,
.convert-landing,
.result-page-upgraded {
  scroll-margin-top: 112px;
}

.hero-stage {
  min-height: min(760px, calc(100dvh - 118px));
  padding-top: 4px;
}

.hero-copy h1,
.landing-workbench h1,
.landing-hero h1 {
  text-wrap: balance;
}

.hero-upload-column .upload-panel,
.hero-upload-column .result-panel,
.hero-upload-column .hero-product-panel,
.editor-page-rail,
.document-source-pane,
.document-text-pane,
.modal-box {
  border-color: rgba(29, 30, 28, 0.14);
}

.document-text-pane {
  grid-template-rows: minmax(34px, auto) 44px minmax(0, 1fr) minmax(36px, auto);
  overflow: hidden;
}

.document-text-pane .editor-page-tabs {
  display: none;
}

.editor-toolbox {
  min-width: 0;
  scroll-padding-right: 184px;
}

.editor-command-group-wide {
  position: sticky;
  right: 0;
  z-index: 3;
  margin-left: auto;
  padding-left: 8px;
  border-right: 0;
  background: #fff;
  box-shadow: -12px 0 18px rgba(255, 255, 255, 0.96);
}

.page-editor-stack {
  align-self: stretch;
  min-height: 0;
}

.page-editor-panel.is-active {
  display: block;
  height: 100%;
  min-height: 0;
}

.editor-bottom-actions {
  align-self: end;
  min-height: 36px;
  max-height: 42px;
  overflow: hidden;
}

.editor-bottom-actions .primary {
  box-shadow: none;
}

@media (max-width: 980px) {
  .document-text-pane {
    grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  }

  .document-text-pane .editor-page-tabs {
    display: flex;
  }

  .editor-bottom-actions {
    max-height: none;
    overflow: visible;
  }
}

/* Landing hero word-fit QA fix 2026-09-02.
   Keeps the large serif headline from breaking Russian words on desktop. */
.hero-stage {
  grid-template-columns: minmax(560px, 0.9fr) minmax(0, 1.1fr);
}

.hero-copy h1,
.landing-workbench h1,
.landing-hero h1 {
  max-width: 720px;
  font-size: 66px;
  line-height: 72px;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

@media (min-width: 1181px) and (max-width: 1360px) {
  .hero-stage {
    grid-template-columns: minmax(520px, 0.95fr) minmax(0, 1.05fr);
    gap: 22px;
  }

  .hero-copy h1,
  .landing-workbench h1,
  .landing-hero h1 {
    max-width: 560px;
    font-size: 60px;
    line-height: 66px;
  }

  .hero-lead {
    max-width: 520px;
    font-size: 18px;
    line-height: 25px;
  }

  .hero-upload-column .workspace {
    grid-template-columns: minmax(360px, 0.95fr) minmax(250px, 0.72fr);
  }
}

@media (max-width: 760px) {
  .hero-copy h1,
  .landing-workbench h1,
  .landing-hero h1 {
    font-size: 42px;
    line-height: 46px;
  }
}

/* Landing TZ content completion 2026-09-02.
   Restores required public sections from the product TZ without adding excluded features. */
.use-cases-section,
.formats-section {
  width: min(1488px, calc(100vw - 24px));
  margin: 52px auto 0;
}

.use-cases-section .section-head,
.formats-section .section-head {
  margin-bottom: 20px;
}

.use-cases-section .section-head h2,
.formats-section .section-head h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: 0;
}

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

.use-case-grid article,
.formats-grid article {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(29, 30, 28, 0.10);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--soft-shadow);
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.use-case-grid svg,
.formats-grid svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.use-case-grid h3,
.formats-grid h3 {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  line-height: 1.25;
}

.use-case-grid p,
.formats-grid p,
.limits-section .section-head p:not(.eyebrow) {
  margin: 0;
  color: rgba(29, 30, 28, 0.66);
  font-size: 15px;
  line-height: 1.5;
}

.case-chip {
  align-self: end;
  width: max-content;
  max-width: 100%;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.formats-grid article:first-child,
.limits-section .trust-grid article:first-child {
  border-color: rgba(250, 93, 0, 0.30);
  background: #fffaf5;
}

@media (prefers-reduced-motion: no-preference) {
  .use-case-grid article:hover,
  .formats-grid article:hover {
    transform: translateY(-1px);
  }
}

@media (max-width: 980px) {
  .use-case-grid,
  .formats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .use-cases-section,
  .formats-section {
    width: min(100% - 40px, 1760px);
    margin-top: 36px;
  }

  .use-case-grid,
  .formats-grid {
    grid-template-columns: 1fr;
  }
}


/* Screenshot feedback correction 2026-09-02.
   Fixes landing density and switches the result editor to visible WYSIWYG surfaces. */
.hero-stage {
  grid-template-columns: minmax(520px, 0.62fr) minmax(900px, 1.38fr);
  gap: clamp(18px, 2vw, 34px);
  align-items: start;
}

.hero-copy h1,
.landing-workbench h1,
.landing-hero h1 {
  max-width: 760px;
}

.hero-upload-column .workspace {
  grid-template-columns: minmax(560px, 1.18fr) minmax(320px, 0.82fr);
}

.hero-upload-column .upload-panel {
  min-width: 0;
}

.hero-upload-column .hero-product-panel {
  max-height: none;
  overflow: visible;
}

.hero-upload-column .document-compare {
  grid-template-columns: minmax(210px, 1fr) 32px minmax(250px, 1.08fr);
  gap: 10px;
  padding: 12px;
}

.hero-upload-column .scan-sheet,
.hero-upload-column .result-sheet {
  min-height: 168px;
  padding: 14px;
}

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

.steps-band h2 {
  font-size: 17px;
  line-height: 1.2;
  white-space: nowrap;
}

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

body:has(.document-editor) .partial-notice-upgraded {
  display: none;
}

.result-page-upgraded:has(.document-editor) {
  grid-template-rows: auto minmax(0, 1fr);
}

.editor-shell {
  grid-template-columns: 104px minmax(380px, 0.86fr) minmax(690px, 1.34fr);
}

.document-text-pane {
  grid-template-rows: minmax(34px, auto) 42px minmax(0, 1fr) minmax(34px, auto);
}

.editor-toolbox {
  height: 42px;
  min-height: 42px;
  max-height: 42px;
  padding: 4px 5px;
}

.editor-command-group {
  height: 34px;
  gap: 4px;
  padding-right: 6px;
}

.editor-style-control,
.editor-size-control {
  height: 34px;
}

.editor-style-control select,
.editor-size-control input {
  height: 32px;
  min-height: 32px;
  font-size: 12px;
}

.editor-style-control select {
  width: 104px;
}

.editor-size-control input {
  width: 48px;
}

.editor-toolbox .icon-tool,
.source-tools .icon-tool {
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
}

.editor-command-group-wide .secondary {
  min-height: 32px;
  padding: 0 10px;
}

.editor-text-field {
  overflow: hidden;
}

.editor-text-field textarea[hidden],
.page-editor-panel textarea[hidden] {
  display: none !important;
}

.editor-rich-surface {
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 16px 18px;
  overflow: auto;
  border: 0;
  border-radius: 20px;
  background: var(--paper);
  color: var(--text-2);
  caret-color: var(--accent);
  font-family: var(--font-sans);
  font-size: var(--editor-text-size);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0;
  outline: 0;
  tab-size: 2;
  word-break: break-word;
}

.editor-rich-surface:focus {
  box-shadow: inset 0 0 0 2px rgba(250, 93, 0, 0.24);
}

.editor-rich-surface::selection,
.editor-rich-surface *::selection {
  background: rgba(250, 93, 0, 0.24);
}

.editor-rich-surface div,
.editor-rich-surface p {
  min-height: 1.45em;
  margin: 0 0 4px;
}

.editor-rich-surface h2 {
  margin: 0 0 8px;
  font-family: var(--font-sans);
  font-size: 1.25em;
  font-weight: 800;
  line-height: 1.3;
}

.editor-rich-surface blockquote {
  margin: 8px 0;
  padding: 8px 12px;
  border-left: 3px solid var(--accent);
  background: var(--surface-visual);
}

.editor-rich-surface ul,
.editor-rich-surface ol {
  margin: 6px 0 8px;
  padding-left: 22px;
}

.editor-rich-surface table {
  width: max-content;
  min-width: min(100%, 520px);
  max-width: 100%;
  margin: 10px 0;
  border-collapse: collapse;
  background: #fff;
}

.editor-rich-surface th,
.editor-rich-surface td {
  min-width: 112px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  vertical-align: top;
}

.editor-rich-surface th {
  background: var(--surface-muted);
  font-weight: 800;
}

.editor-rich-surface .editor-special-block {
  margin: 10px 0;
  padding: 10px 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: var(--surface-visual);
  color: var(--muted);
  font-weight: 700;
}

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

  .hero-upload-column .workspace {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
  }

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

  .editor-shell {
    grid-template-columns: 88px minmax(340px, 0.9fr) minmax(560px, 1.1fr);
  }
}

@media (max-width: 980px) {
  .steps-band,
  .use-case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps-band h2 {
    white-space: normal;
  }

  .editor-rich-surface {
    min-height: 420px;
  }
}

@media (max-width: 640px) {
  .steps-band,
  .use-case-grid {
    grid-template-columns: 1fr;
  }
}


/* Toolbar visibility and undo QA fix 2026-09-02.
   Keeps first-version editor tools reachable on desktop without page scrolling. */
.document-text-pane {
  grid-template-rows: minmax(30px, auto) minmax(72px, auto) minmax(0, 1fr) minmax(34px, auto);
}

.editor-toolbox {
  height: auto;
  min-height: 72px;
  max-height: none;
  flex-wrap: wrap;
  align-content: start;
  align-items: start;
  row-gap: 4px;
  column-gap: 5px;
  overflow: visible;
}

.editor-command-group {
  flex: 0 0 auto;
  height: 32px;
  min-height: 32px;
  gap: 4px;
  padding-right: 5px;
}

.editor-command-group-controls {
  order: 1;
}

.editor-history-group {
  order: 2;
}

.editor-command-group[aria-label="Форматирование"] {
  order: 3;
}

.editor-command-group[aria-label="Выравнивание"] {
  order: 4;
}

.editor-command-group[aria-label="Структура"] {
  order: 5;
}

.editor-command-group-wide {
  position: static;
  order: 6;
  margin-left: 0;
  padding-left: 0;
  border-right: 0;
  background: transparent;
  box-shadow: none;
}

.editor-toolbox .icon-tool,
.source-tools .icon-tool {
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
}

.editor-toolbox .icon-tool:disabled,
.editor-toolbox .icon-tool[aria-disabled="true"] {
  opacity: 0.38;
  cursor: not-allowed;
}

.editor-toolbox .icon-tool:disabled:hover {
  border-color: var(--line);
  background: #fff;
  transform: none;
}

@media (min-width: 981px) and (max-width: 1420px) {
  .editor-shell {
    grid-template-columns: 88px minmax(380px, 0.88fr) minmax(620px, 1.12fr);
  }

  .document-text-pane {
    grid-template-rows: minmax(30px, auto) minmax(76px, auto) minmax(0, 1fr) minmax(34px, auto);
  }
}

/* Landing heading/header scale correction 2026-09-02.
   Keeps the OCR landing above the fold without oversized chrome. */
.convert-header {
  top: 14px;
  min-height: 58px;
  margin-top: 14px;
  padding: 7px 12px 7px 16px;
  border-radius: 32px;
}

.convert-brand {
  gap: 8px;
  min-height: 44px;
  font-size: 15px;
  line-height: 1.1;
}

.brand-glyph {
  width: 32px;
  height: 32px;
}

.convert-nav {
  gap: 4px;
}

.convert-nav a,
.convert-nav .nav-cta,
.convert-nav .nav-button,
.convert-header .nav-button {
  min-height: 44px;
  padding: 0 12px;
  border-radius: 22px;
  font-size: 14px;
  line-height: 1;
}

.convert-nav a.primary,
.convert-nav .nav-cta,
.convert-nav .nav-button.primary,
.convert-header .nav-button.primary {
  min-height: 44px;
  padding-inline: 14px;
}

.hero-copy h1,
.landing-workbench h1,
.landing-hero h1 {
  max-width: 620px;
  font-size: 44px;
  line-height: 50px;
}

@media (min-width: 1181px) and (max-width: 1520px) {
  .hero-stage {
    grid-template-columns: minmax(clamp(440px, 31vw, 500px), 0.56fr) minmax(0, 1.44fr);
    gap: 18px;
  }

  .hero-upload-column .workspace {
    grid-template-columns: minmax(clamp(430px, 38vw, 560px), 1fr) minmax(220px, 0.48fr);
  }
}

@media (min-width: 1181px) and (max-width: 1360px) {
  .hero-copy h1,
  .landing-workbench h1,
  .landing-hero h1 {
    max-width: 540px;
    font-size: 42px;
    line-height: 48px;
  }
}

@media (max-width: 760px) {
  .convert-header {
    top: 10px;
    margin-top: 10px;
    padding: 6px 8px 6px 12px;
  }

  .hero-copy h1,
  .landing-workbench h1,
  .landing-hero h1 {
    font-size: 34px;
    line-height: 39px;
  }
}

/* Landing real example case 992eecbc-19bd-4778-b242-b95c552f771d. */
.landing-case-source {
  position: relative;
  min-height: 220px;
  padding: 0;
  overflow: hidden;
  background: #ffffff;
}

.landing-case-source .doc-label {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  box-shadow: 0 6px 16px rgba(29, 30, 28, 0.10);
}

.landing-case-source img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  aspect-ratio: 1100 / 700;
  object-fit: contain;
  background: #ffffff;
}

.landing-case-result {
  gap: 10px;
}

.landing-case-result strong {
  font-size: 16px;
  line-height: 1.25;
}

.landing-case-result ol {
  display: grid;
  gap: 3px;
  margin: 0;
  padding-left: 22px;
}

.landing-case-result li,
.landing-case-result .mini-table > * {
  font-size: 13px;
  line-height: 1.25;
}

section.examples-section[hidden] {
  display: none !important;
}


/* Checkout centering correction 2026-09-03.
   Keeps payment copy and the payment form grouped on wide screens. */
.auth-shell.checkout-shell {
  width: min(1088px, calc(100vw - 48px));
  display: grid;
  grid-template-columns: minmax(300px, 420px) minmax(440px, 520px);
  gap: 32px;
  align-items: start;
  justify-content: center;
  padding: clamp(22px, 4dvh, 44px) 0 40px;
}

.checkout-shell > div:first-child {
  max-width: 420px;
  justify-self: end;
  padding-top: 8px;
}

.checkout-shell h1 {
  max-width: 420px;
  font-size: 30px;
  line-height: 1.16;
}

.checkout-shell p:not(.eyebrow) {
  max-width: 420px;
  font-size: 16px;
  line-height: 1.5;
}

.checkout-shell .checkout-summary {
  width: 100%;
}

.checkout-card {
  width: 100%;
  max-width: 520px;
  justify-self: start;
  padding: 28px;
}

.checkout-plan-option {
  min-height: 72px;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background 180ms ease;
}

.checkout-plan-option:hover {
  border-color: rgba(250, 93, 0, 0.42);
  box-shadow: 0 10px 24px rgba(29, 30, 28, 0.08);
  transform: translateY(-1px);
}

.checkout-plan-option:focus-within {
  outline: 3px solid rgba(250, 93, 0, 0.22);
  outline-offset: 2px;
}

@media (max-width: 980px) {
  .auth-shell.checkout-shell {
    width: min(640px, calc(100vw - 32px));
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 22px;
  }

  .checkout-shell > div:first-child,
  .checkout-card {
    max-width: none;
    justify-self: stretch;
  }

  .checkout-card {
    padding: 22px;
  }
}

@media (max-width: 560px) {
  .auth-shell.checkout-shell {
    width: min(640px, calc(100vw - 24px));
    padding-top: 18px;
  }

  .checkout-shell h1 {
    font-size: 26px;
  }

  .checkout-card {
    padding: 18px;
  }
}
/* Account header correction 2026-09-03.
   Keeps balance and actions visually aligned after removing password reset link. */
.account-head-actions {
  align-items: center;
}

.account-balance {
  display: inline-flex;
  width: auto;
  min-width: 0;
  min-height: 46px;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-color: #999999;
  border-radius: 30px;
  background: transparent;
  white-space: nowrap;
}

.account-balance span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-transform: none;
}

.account-balance strong {
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

@media (max-width: 900px) {
  .account-balance {
    justify-content: center;
    width: 100%;
  }
}


/* Auth centering correction 2026-09-03.
   Keeps login, registration and password recovery centered without changing checkout. */
.auth-shell:not(.checkout-shell) {
  width: min(960px, calc(100vw - 48px));
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(360px, 460px);
  gap: 32px;
  align-items: center;
  justify-content: center;
  padding: clamp(26px, 7dvh, 72px) 0 48px;
}

.auth-shell:not(.checkout-shell) > div:first-child {
  width: 100%;
  max-width: 380px;
  justify-self: end;
}

.auth-shell:not(.checkout-shell) h1 {
  max-width: 380px;
  font-size: 30px;
  line-height: 1.16;
}

.auth-shell:not(.checkout-shell) p:not(.eyebrow) {
  max-width: 380px;
  font-size: 16px;
  line-height: 1.5;
}

.auth-shell:not(.checkout-shell) .auth-card {
  width: 100%;
  max-width: 460px;
  justify-self: start;
  padding: 28px;
}

@media (max-width: 860px) {
  .auth-shell:not(.checkout-shell) {
    width: min(520px, calc(100vw - 32px));
    grid-template-columns: 1fr;
    gap: 20px;
    justify-items: stretch;
    padding: 24px 0 42px;
  }

  .auth-shell:not(.checkout-shell) > div:first-child,
  .auth-shell:not(.checkout-shell) .auth-card,
  .auth-shell:not(.checkout-shell) h1,
  .auth-shell:not(.checkout-shell) p:not(.eyebrow) {
    max-width: none;
    justify-self: stretch;
  }
}

@media (max-width: 560px) {
  .auth-shell:not(.checkout-shell) {
    width: min(520px, calc(100vw - 24px));
    padding-top: 18px;
  }

  .auth-shell:not(.checkout-shell) h1 {
    font-size: 26px;
  }

  .auth-shell:not(.checkout-shell) .auth-card {
    padding: 20px;
  }
}


@media (prefers-reduced-motion: reduce) {
  .checkout-plan-option {
    transition: none;
  }

  .checkout-plan-option:hover {
    transform: none;
  }
}

/* Zendesk-inspired color preview 2026-09-03.
   Color-only layer: keeps layout, content and OCR/editor behavior unchanged. */
:root {
  --bg: #f5f5f2;
  --surface: #ffffff;
  --surface-muted: #eeeeea;
  --surface-visual: #f8f8f4;
  --paper: #ffffff;
  --text: #11110d;
  --text-2: #203524;
  --muted: rgba(17, 17, 13, 0.66);
  --muted-2: rgba(17, 17, 13, 0.47);
  --muted-soft: rgba(17, 17, 13, 0.47);
  --line: rgba(17, 17, 13, 0.16);
  --line-strong: rgba(17, 17, 13, 0.34);
  --primary: #203524;
  --primary-strong: #11110d;
  --accent: #d1f470;
  --accent-soft: rgba(209, 244, 112, 0.34);
  --info: #203524;
  --warning: #766100;
  --danger: #8f2d24;
  --success: #203524;
  --shadow: 0 18px 44px rgba(17, 17, 13, 0.10);
  --soft-shadow: 0 6px 18px rgba(17, 17, 13, 0.07);
}

html,
body {
  background: var(--bg);
}

.convert-landing,
body:not(:has(.document-editor)) main {
  background: linear-gradient(180deg, #f5f5f2 0, #ffffff 460px, #f5f5f2 100%);
}

body,
.hero-copy h1,
.landing-workbench h1,
.landing-hero h1,
.page-head h1,
.account-head h1,
.result-toolbar h1,
.auth-shell h1 {
  color: var(--text);
}

.hero-lead,
.page-head p,
.account-head p,
.auth-shell p,
.use-case-grid p,
.formats-grid p,
.limits-section .section-head p:not(.eyebrow),
.hero-proof-list,
.result-meta-row,
.confidence-jump span {
  color: var(--muted);
}

.convert-header,
body:has(.document-editor) .convert-header {
  border-color: var(--line);
  background: rgba(245, 245, 242, 0.94);
  box-shadow: 0 4px 16px rgba(17, 17, 13, 0.08), 0 1px 3px rgba(17, 17, 13, 0.06);
}

.brand-glyph {
  background: var(--primary);
  color: var(--accent);
}

.convert-brand,
.convert-nav .nav-button,
.secondary,
.link-button.secondary,
.account-balance strong {
  color: var(--text);
}

.convert-nav a,
.nav-button,
.account-balance span {
  color: var(--muted);
}

.convert-nav a:hover,
.convert-nav a:focus-visible,
.nav-button:hover,
.nav-button:focus-visible {
  background: var(--accent-soft);
  color: var(--text);
}

.primary {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
}

.primary:hover,
.primary:focus-visible {
  border-color: var(--primary-strong);
  background: var(--primary-strong);
  color: #ffffff;
}

.convert-nav .nav-cta,
.convert-nav .nav-button.primary,
.convert-header .nav-button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--text);
}

.convert-nav .nav-cta:hover,
.convert-nav .nav-cta:focus-visible,
.convert-nav .nav-button.primary:hover,
.convert-nav .nav-button.primary:focus-visible,
.convert-header .nav-button.primary:hover,
.convert-header .nav-button.primary:focus-visible {
  border-color: #bfea5a;
  background: #bfea5a;
  color: var(--text);
}

.secondary,
.link-button.secondary,
.account-balance {
  border-color: rgba(17, 17, 13, 0.38);
  background: transparent;
}

.secondary:hover,
.secondary:focus-visible,
.link-button.secondary:hover,
.link-button.secondary:focus-visible {
  border-color: var(--primary);
  background: var(--accent-soft);
  color: var(--text);
}

.primary:focus-visible,
.secondary:focus-visible,
.link-button:focus-visible,
.icon-button:focus-visible,
.icon-tool:focus-visible,
.file-drop:focus-within,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.editor-rich-surface:focus {
  box-shadow: 0 0 0 3px rgba(209, 244, 112, 0.48);
}

.alert,
.structure-preview,
.structure-preview-doc,
.preview-table,
.preview-table > *,
.hero-upload-column .upload-panel,
.hero-upload-column .result-panel,
.hero-upload-column .hero-product-panel,
.stats-strip article,
.feature-grid article,
.trust-grid article,
.pricing-context article,
.ocr-compare-grid article,
.demo-panels article,
.plan-card,
.faq-list article,
.upload-panel,
.result-panel,
.auth-card,
.account-panel,
.editor-page-rail,
.document-source-pane,
.document-text-pane,
.editor-text-field,
.editor-toolbox,
.editor-command-group,
.modal-box,
.confidence-item,
.use-case-grid article,
.formats-grid article,
.checkout-plan-option {
  border-color: var(--line);
}

.structure-preview,
.hero-upload-column .upload-panel,
.hero-upload-column .result-panel,
.format-chips span,
.feature-grid article:hover,
.stats-strip article:hover,
.plan-card:hover,
.faq-list article:hover,
.document-source-pane,
.document-text-pane,
.editor-toolbox,
.icon-button,
.icon-tool,
.editor-command-group-wide,
.modal-box,
.confidence-item,
.use-case-grid article,
.formats-grid article,
.auth-card,
.account-panel,
.checkout-card,
.preview-table,
.editor-rich-surface table {
  background: var(--surface);
}

.structure-preview-doc,
.hero-limit,
.hero-upload-column .file-drop,
.hero-upload-column .empty-result,
.hero-upload-column .paywall,
.hero-upload-column .hero-product-panel,
.source-preview-frame,
.editor-rich-surface blockquote,
.editor-rich-surface .editor-special-block,
.preview-table span,
.editor-save-state,
.case-chip,
.confidence-legend span,
.editor-style-control select,
.editor-size-control input,
.title-input,
.editor-search-panel input,
.table-size-grid input,
.confidence-input {
  background: var(--surface-visual);
}

.anchor-pills a,
.editor-page-rail,
.landing-case-source,
.landing-case-source img {
  background: var(--surface);
}

.hero-upload-column .file-drop:hover,
.hero-upload-column .file-drop:focus-within,
.hero-upload-column .file-drop.is-dragover,
.anchor-pills a:hover,
.anchor-pills a:focus-visible,
.formats-grid article:first-child,
.limits-section .trust-grid article:first-child,
.icon-button:hover,
.icon-button:focus-visible,
.icon-tool:hover,
.icon-tool:focus-visible,
.icon-tool.is-active {
  border-color: rgba(32, 53, 36, 0.52);
  background: var(--accent-soft);
}

.hero-upload-column .file-drop:hover,
.hero-upload-column .file-drop:focus-within,
.hero-upload-column .file-drop.is-dragover,
.editor-thumb:hover,
.editor-thumb:focus-visible,
.editor-thumb.is-active,
.checkout-plan-option:hover {
  box-shadow: 0 0 0 3px rgba(209, 244, 112, 0.32);
}

.hero-proof-list svg,
.hero-upload-column .file-drop svg,
.use-case-grid svg,
.formats-grid svg,
.structure-preview-head span,
.formats-grid h3,
.confidence-trigger,
.editor-thumb.is-active {
  color: var(--primary);
}

.editor-thumb::after,
.modal::backdrop {
  background: rgba(17, 17, 13, 0.46);
}

.editor-thumb.is-active {
  border-color: var(--accent);
  box-shadow: inset 4px 0 0 var(--accent), 0 0 0 3px rgba(209, 244, 112, 0.32);
}

.editor-thumb-number {
  background: var(--accent);
  color: var(--text);
}

.editor-rich-surface,
.editor-highlight-layer {
  color: var(--text-2);
}

.editor-rich-surface:focus {
  box-shadow: inset 0 0 0 2px rgba(209, 244, 112, 0.56);
}

.editor-rich-surface::selection,
.editor-rich-surface *::selection,
.editor-text-field textarea::selection {
  background: rgba(209, 244, 112, 0.42);
}

.confidence-trigger span[data-confidence-count],
.confidence-mark.is-uncertain {
  background: rgba(209, 244, 112, 0.50);
  color: var(--text);
}

.confidence-mark.is-uncertain {
  box-shadow: inset 0 -1px 0 rgba(32, 53, 36, 0.46);
}

.confidence-mark.is-unreadable,
.alert.error {
  background: rgba(143, 45, 36, 0.10);
  color: var(--danger);
}

.confidence-mark.is-unreadable {
  box-shadow: inset 0 -1px 0 rgba(143, 45, 36, 0.38);
}

.alert.success {
  border-color: rgba(32, 53, 36, 0.36);
  background: rgba(209, 244, 112, 0.18);
  color: var(--primary);
}

.alert.error {
  border-color: rgba(143, 45, 36, 0.30);
}

.checkout-plan-option:hover {
  border-color: rgba(32, 53, 36, 0.52);
}

.checkout-plan-option:focus-within {
  outline-color: rgba(209, 244, 112, 0.48);
}

/* Zendesk literal color cleanup 2026-09-03. */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline-color: rgba(209, 244, 112, 0.56);
}

.file-drop {
  border-color: rgba(32, 53, 36, 0.36);
  background: linear-gradient(135deg, rgba(248, 248, 244, 0.94), rgba(255, 255, 255, 0.96));
}

.file-drop:hover,
.file-drop:focus-within {
  border-color: var(--primary);
  background: var(--accent-soft);
  box-shadow: 0 0 0 4px rgba(209, 244, 112, 0.30);
}

.file-drop svg,
.empty-result svg,
.feature-grid svg,
.stats-strip svg,
.trust-grid svg,
.pricing-context svg,
.checkout-trust svg,
.compare-arrow,
.editor-thumb-fallback {
  color: var(--primary);
}

.doc-label,
.plan-badge,
.editor-save-state[data-tone="dirty"],
.editor-page-tabs button.is-active,
.editor-mobile-switch button.is-active {
  border-color: rgba(32, 53, 36, 0.36);
  background: var(--accent-soft);
  color: var(--text);
}

.scan-sheet {
  background:
    linear-gradient(rgba(32, 53, 36, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(209, 244, 112, 0.26) 1px, transparent 1px),
    #ffffff;
}

.hand-line,
.flat-lines span,
.structured-lines span {
  background: rgba(32, 53, 36, 0.24);
}

.hand-split span {
  border-color: rgba(32, 53, 36, 0.34);
}

.hand-note,
.mini-table span,
.rich-result th,
.status-pill,
.editor-save-state[data-tone="saving"] {
  border-color: rgba(32, 53, 36, 0.20);
  background: var(--accent-soft);
  color: var(--text);
}

.ocr-compare-grid .is-strong,
.plan-card.is-featured {
  border-color: rgba(32, 53, 36, 0.42);
  background: rgba(209, 244, 112, 0.16);
  box-shadow: 0 16px 42px rgba(17, 17, 13, 0.08);
}

.status-done {
  background: rgba(209, 244, 112, 0.24);
  color: var(--primary);
}

.status-failed {
  background: rgba(143, 45, 36, 0.10);
  color: var(--danger);
}

.status-queued,
.status-running,
.partial-notice-upgraded {
  border-color: rgba(118, 97, 0, 0.24);
  background: rgba(209, 244, 112, 0.18);
  color: var(--warning);
}

.modal-box {
  background: linear-gradient(180deg, #ffffff 0, #f8f8f4 100%);
  box-shadow: 0 30px 90px rgba(17, 17, 13, 0.28);
}

.source-preview-frame {
  background:
    linear-gradient(45deg, rgba(17, 17, 13, 0.03) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(17, 17, 13, 0.03) 25%, transparent 25%),
    #eeeeea;
}

.source-page-panel img,
.landing-case-source .doc-label {
  box-shadow: 0 12px 38px rgba(17, 17, 13, 0.14);
}

/* Paywall and checkout summary polish 2026-09-04.
   Aligns saved-document states with the active Zendesk-inspired visual system. */
.paywall,
.duplicate-warning,
.empty-result.result-empty-state {
  display: grid;
  min-height: 0;
  align-content: start;
  justify-items: stretch;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--soft-shadow);
  text-align: left;
  align-self: start;
}

.upload-workspace .paywall,
.upload-workspace .duplicate-warning,
.hero-upload-column .paywall,
.hero-upload-column .duplicate-warning {
  flex: 0 0 auto;
  align-self: stretch;
  min-height: 0;
  padding: 14px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.upload-workspace .paywall h3,
.hero-upload-column .paywall h3 {
  display: none;
}

.paywall h3,
.duplicate-warning h3,
.empty-result.result-empty-state h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(19px, 1.6vw, 24px);
  font-weight: 800;
  line-height: 1.15;
  text-align: left;
}

.paywall p,
.duplicate-warning p,
.empty-result.result-empty-state p {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
  text-align: left;
}

.paywall .inline-actions,
.duplicate-warning .inline-actions,
.empty-result.result-empty-state .inline-actions {
  justify-content: flex-start;
  gap: 8px;
  margin-top: 2px;
}

.paywall .primary,
.paywall .secondary,
.duplicate-warning .primary,
.duplicate-warning .secondary,
.empty-result.result-empty-state .primary,
.empty-result.result-empty-state .secondary {
  min-height: 42px;
  padding-inline: 16px;
  font-size: 15px;
}

.paywall-metrics,
.checkout-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  width: 100%;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: none;
}

.paywall-metrics div,
.checkout-summary div {
  display: grid;
  align-content: center;
  gap: 4px;
  min-height: 68px;
  padding: 12px 14px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  text-align: left;
}

.paywall-metrics div:last-child,
.checkout-summary div:last-child {
  border-right: 0;
}

.paywall-metrics span,
.checkout-summary span {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.18;
  text-transform: uppercase;
}

.paywall-metrics strong,
.checkout-summary strong {
  color: var(--text);
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 850;
  line-height: 1;
}

.checkout-shell .checkout-summary {
  max-width: 100%;
}

.checkout-plan-option:has(input:checked),
.checkout-plan-option.selected {
  background: rgba(209, 244, 112, 0.18);
}

@media (max-width: 720px) {
  .paywall,
  .empty-result.result-empty-state {
    padding: 16px;
  }

  .paywall-metrics,
  .checkout-summary {
    grid-template-columns: 1fr;
  }

  .paywall-metrics div,
  .checkout-summary div {
    min-height: 58px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .paywall-metrics div:last-child,
  .checkout-summary div:last-child {
    border-bottom: 0;
  }
}

/* Mobile cascade correction 2026-09-05.
   Later desktop layout layers were overriding earlier mobile collapse rules. */
@media (max-width: 980px) {
  .hero-stage,
  .hero-workbench-panel,
  .hero-upload-column .workspace {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .anchor-pills {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .anchor-pills::-webkit-scrollbar {
    display: none;
  }

  .anchor-pills a,
  .cookie-consent .secondary,
  .cookie-consent .primary {
    min-height: 44px;
  }

  .cookie-consent {
    gap: 12px;
    padding: 12px;
  }

  .cookie-actions {
    flex: 1 1 auto;
  }

  .cookie-consent .secondary,
  .cookie-consent .primary {
    flex: 1 1 120px;
  }
}
