:root {
  color-scheme: light;
  --primary: #6c63ff;
  --primary-dark: #5144d3;
  --primary-light: #8a84ff;
  --primary-bg: #f4f3ff;
  --primary-bg-soft: #fbfbff;
  --primary-bg-strong: #ecebff;
  --primary-border: #d9d7ff;
  --primary-border-soft: #edeaff;
  --secondary: #f4f6fb;
  --ink: #192038;
  --muted: #6b7280;
  --line: #e5e7eb;
  --surface: #ffffff;
  --page: #f7f8fc;
  --accent: #6c63ff;
  --accent-dark: #5144d3;
  --danger-bg: #fff1f0;
  --danger: #9f2a20;
  --success: #15803d;
  --nav-height: 72px;
  --nav-offset: 0px;
  --review-toolbar-height: 56px;
  --container-max: 1280px;
  --container-readable: 1120px;
  --page-gutter: 32px;
  --page-gutter-tablet: 24px;
  --page-gutter-mobile: 18px;
  --page-gutter-small: 16px;
  --section-y: 64px;
  --section-y-tablet: 48px;
  --section-y-mobile: 36px;
  --card-gap: 24px;
  --card-gap-tablet: 18px;
  --card-gap-mobile: 16px;
  --tap-target: 44px;
  --hero-title-desktop: clamp(2.4rem, 4vw, 4.5rem);
  --hero-title-tablet: clamp(2.05rem, 5vw, 3rem);
  --hero-title-mobile: clamp(1.85rem, 9vw, 2.35rem);
  --section-title-desktop: clamp(2rem, 3vw, 2.875rem);
  --section-title-mobile: clamp(1.65rem, 7vw, 2.1rem);
  --font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(108, 99, 255, 0.14), transparent 34%),
    var(--page);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.is-resizing {
  cursor: col-resize;
  user-select: none;
}

a {
  color: var(--accent-dark);
  font-weight: 700;
}


.auth-page {
  display: grid;
  min-height: calc(100vh - 72px);
  align-content: start;
  justify-items: center;
  padding: 28px 18px 44px;
}

body.auth-screen .auth-page {
  min-height: calc(100vh - 72px);
  align-content: center;
  padding: 0 18px 104px;
}

.auth-panel {
  width: min(100%, 500px);
  padding: 30px 34px;
  background: var(--surface);
  border: 1px solid var(--primary-border-soft);
  border-radius: 10px;
  box-shadow: 0 18px 46px rgba(81, 68, 211, 0.1);
}

.auth-panel.compact {
  padding: 30px 34px;
}

body.auth-screen .auth-panel {
  position: relative;
  width: min(100%, 720px);
  padding: 50px 56px;
  text-align: center;
  border-color: #dfdcff;
  border-radius: 18px;
  box-shadow: 0 28px 70px rgba(81, 68, 211, 0.15);
}

.auth-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #5144d3;
  border-radius: 10px;
  font-size: 1.1rem;
  line-height: 1;
  text-decoration: none;
}

.auth-close:hover,
.auth-close:focus-visible {
  color: #192038;
  background: var(--primary-bg-strong);
  outline: none;
}


.is-hidden {
  display: none !important;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: 1.95rem;
  line-height: 1.1;
}

body.auth-screen .auth-panel h1 {
  margin-bottom: 12px;
  color: #10162f;
  font-size: 2.15rem;
  font-weight: 850;
  line-height: 1.14;
}

body.auth-screen .auth-panel .lede {
  margin-bottom: 10px;
  color: #677089;
  font-size: 1.05rem;
  line-height: 1.45;
}

.lede,
.auth-switch,
.upload-zone p {
  color: var(--muted);
}

.auth-reassurance {
  margin: -4px 0 0;
  color: #4f46e5;
  font-size: 0.88rem;
  font-weight: 700;
}

body.auth-screen .auth-reassurance {
  display: grid;
  gap: 4px;
  margin: 0;
  color: #4f46e5;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.35;
}

body.auth-screen .auth-reassurance span {
  color: #667085;
  font-size: 0.9rem;
  font-weight: 600;
}

.auth-form {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

body.auth-screen .auth-form,
body.auth-screen .social-auth,
body.auth-screen .auth-legal {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
}

body.auth-screen .auth-form {
  margin-top: 28px;
}

.reveal-area {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.auth-code-help {
  margin: 0;
  color: #667085;
  font-size: 0.84rem;
  line-height: 1.45;
}

.auth-form label {
  margin-top: 8px;
  font-size: 0.9rem;
  font-weight: 700;
}

.auth-form > input,
.auth-form > select,
.auth-form > textarea,
.auth-form > p input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--primary-bg-soft);
  border: 1px solid var(--primary-border-soft);
  border-radius: 6px;
  font: inherit;
}

.auth-form > textarea {
  min-height: 150px;
  resize: vertical;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  color: var(--ink);
  cursor: pointer;
}

.checkbox-line input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.support-form .primary-action {
  width: fit-content;
  min-width: 148px;
  padding: 0 18px;
}

.input-shell {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto auto;
  align-items: center;
  min-height: 62px;
  background: #fbfbff;
  border: 1px solid var(--primary-border-soft);
  border-radius: 8px;
  overflow: hidden;
}

body.auth-screen .input-shell {
  grid-template-columns: 52px minmax(0, 1fr) auto auto;
  min-height: 64px;
  background: #ffffff;
  border-color: #d8d2ff;
  border-radius: 14px;
}

.input-shell:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.16);
}

.input-shell input {
  min-height: 60px;
  padding: 10px 10px 10px 0;
  background: transparent;
  border: 0 !important;
  border-radius: 0;
  font-size: 1.08rem;
  font-weight: 650;
}

body.auth-screen .input-shell input {
  min-height: 62px;
  color: #111827;
  font-size: 1.05rem;
  font-weight: 650;
}

.input-shell input:focus {
  border: 0 !important;
  box-shadow: none !important;
  outline: none;
}

.input-icon {
  display: grid;
  width: 48px;
  height: 100%;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

body.auth-screen .input-icon {
  width: 52px;
  color: #6b7280;
}

body.auth-screen .field-icon-svg {
  width: 22px;
  height: 22px;
}

.field-icon-svg,
.toggle-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.peek-button {
  width: 46px;
  height: 46px;
  margin-right: 4px;
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 1rem;
}

.peek-button:hover {
  color: var(--ink);
}

.toggle-icon-open {
  display: block;
}

.toggle-icon-open circle {
  fill: none;
}

.toggle-icon-closed {
  display: none;
}

.peek-button.is-visible .toggle-icon-open {
  display: none;
}

.peek-button.is-visible .toggle-icon-closed {
  display: block;
}

.password-only-shell {
  grid-template-columns: 48px minmax(0, 1fr) auto;
}

.auth-form > input:focus,
.auth-form > select:focus,
.auth-form > textarea:focus,
.auth-form > p input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.16);
  outline: none;
}

.errorlist {
  margin: 0;
  padding: 0;
  color: var(--danger);
  font-size: 0.88rem;
  list-style: none;
}

.form-alert {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  color: var(--danger);
  background: var(--danger-bg);
  border: 1px solid #f2c2bd;
  border-radius: 6px;
}

.alert-dismiss {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  min-width: 28px;
  height: 28px;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.alert-dismiss:hover {
  background: rgba(25, 32, 56, 0.08);
}

.primary-action,
.secondary-action,
.oauth-placeholder button,
.arrow-action,
.google-action {
  min-height: 44px;
  border-radius: 6px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.primary-action {
  margin-top: 12px;
  color: white;
  background: var(--accent);
  border: 1px solid var(--accent);
}

.primary-action:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.oauth-placeholder {
  margin-top: 16px;
}

.oauth-placeholder button,
.secondary-action {
  width: 100%;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
}

.oauth-placeholder button {
  color: var(--muted);
  cursor: not-allowed;
}

.arrow-action {
  display: grid;
  width: 50px;
  height: 50px;
  margin-left: auto;
  place-items: center;
  color: white;
  background: var(--accent);
  border: 1px solid var(--accent);
  font-size: 1.4rem;
}

.arrow-action.in-field {
  width: 48px;
  height: 48px;
  margin: 0 6px 0 0;
  border-radius: 6px;
  flex: 0 0 auto;
}

body.auth-screen .arrow-action.in-field {
  width: 48px;
  height: 48px;
  margin-right: 6px;
  border-radius: 8px;
  background: linear-gradient(135deg, #6c63ff, #4f46e5);
  border-color: #5b4df1;
  font-size: 1.5rem;
  box-shadow: 0 12px 24px rgba(81, 68, 211, 0.28);
}

.arrow-action:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin: 20px 0;
  color: var(--muted);
  font-size: 0.84rem;
  text-transform: lowercase;
}

body.auth-screen .divider {
  gap: 12px;
  margin: 22px 0;
  font-size: 0.9rem;
  text-transform: none;
}

.divider::before,
.divider::after {
  height: 1px;
  content: "";
  background: var(--line);
}

.google-action {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 58px;
  color: var(--primary-dark);
  background: var(--primary-bg-soft);
  border: 1px solid var(--primary-border);
  cursor: pointer;
}

body.auth-screen .google-action {
  min-height: 58px;
  gap: 14px;
  color: #111827;
  background: white;
  border-color: #d8d2ff;
  border-radius: 12px;
  font-size: 1rem;
  box-shadow: none;
}

.google-action:hover,
.google-action:focus-visible {
  background: white;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.16);
}

.google-action:disabled {
  color: var(--muted);
  background: white;
  border-color: var(--line);
  cursor: not-allowed;
  box-shadow: none;
}

.google-logo {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  flex: 0 0 auto;
}

body.auth-screen .google-logo,
body.auth-screen .google-logo-svg {
  width: 28px;
  height: 28px;
}

.google-logo-svg {
  width: 28px;
  height: 28px;
}

.inline-confirm {
  gap: 12px;
}

.confirm-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
}

.confirm-row.end {
  justify-content: flex-end;
}

.text-action {
  padding: 0;
  color: var(--accent-dark);
  background: transparent;
  border: 0;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.text-action:hover,
.text-action:focus-visible {
  color: var(--primary-dark);
  text-decoration: underline;
}

.text-action:disabled {
  color: var(--muted);
  cursor: not-allowed;
  text-decoration: none;
}

.form-alert.info {
  margin: 18px 0 0;
  color: var(--accent-dark);
  background: #edf8f3;
  border-color: #bee3d4;
}

.form-alert.success {
  color: #14532d;
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.toast-stack {
  position: fixed;
  top: calc(var(--nav-height) + 14px);
  right: 24px;
  z-index: 60;
  display: grid;
  gap: 10px;
  width: min(420px, calc(100vw - 32px));
  pointer-events: none;
}

.toast-message {
  align-items: center;
  min-height: 46px;
  margin: 0;
  padding: 11px 12px 11px 14px;
  color: #7f1d1d;
  background: #fff7f7;
  border-color: #fecaca;
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(25, 32, 56, 0.16);
  pointer-events: auto;
}

.toast-message.success,
.toast-message.info {
  color: #14532d;
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.toast-message.warning {
  color: #713f12;
  background: #fffbeb;
  border-color: #fde68a;
}

.toast-message.is-dismissing {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.auth-switch {
  margin: 22px 0 0;
  text-align: center;
}

.auth-legal {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
  text-align: center;
}

body.auth-screen .auth-legal {
  margin-top: 26px;
  color: #667085;
  font-size: 0.82rem;
}

.app-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 0 18px 32px;
}

.app-shell-wide {
  width: 100%;
  max-width: none;
  padding-left: 24px;
  padding-right: 24px;
  overflow-x: clip;
}

.review-page-shell {
  padding-top: 0;
  padding-bottom: 18px;
  margin-top: 0;
}

.app-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  margin-top: 0;
  margin-bottom: 12px;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid rgba(108, 99, 255, 0.08);
  border-bottom: 1px solid rgba(108, 99, 255, 0.12);
  box-shadow: 0 10px 24px rgba(25, 32, 56, 0.06);
  backdrop-filter: blur(10px);
}

body.auth-screen .app-nav {
  position: relative;
  min-height: 72px;
  margin-bottom: 0;
  padding: 14px 32px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

body.auth-screen .app-nav-left {
  flex: 0 0 auto;
}

body.auth-screen .app-nav-right {
  flex: 0 0 auto;
}

body.auth-screen .app-nav-utility,
body.auth-screen .app-login-button {
  display: none;
}

body.auth-screen .language-selector {
  opacity: 0.68;
}

body.page-review .app-nav {
  margin-bottom: 8px;
}

.app-nav-left,
.app-nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.app-nav-left {
  flex: 1 1 0;
  justify-content: flex-start;
  gap: 28px;
}

.app-nav-right {
  flex: 1 1 0;
  justify-content: flex-end;
  margin-left: auto;
}

.app-nav-desktop-links {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.app-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--primary-dark);
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.app-brand-logo {
  display: block;
  width: 76px;
  height: 52px;
  object-fit: contain;
  flex: 0 0 auto;
}

.app-brand-name {
  display: grid;
  gap: 0;
  text-align: left;
  line-height: 1.08;
}

.brand-word {
  display: block;
  letter-spacing: 0;
}

.brand-word-purple {
  color: var(--primary-dark);
}

.brand-word-gold {
  color: #9a6a05;
}

.eyebrow {
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.secondary-action {
  padding: 0 16px;
}

.secondary-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-decoration: none;
}

.app-nav-links {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  margin-left: 20px;
}

.app-nav-center {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  flex: 0 1 520px;
  align-items: center;
  justify-content: center;
  gap: 34px;
}

.app-nav-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 10px;
  color: var(--ink);
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.94rem;
  font-weight: 800;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.app-nav-tab:hover {
  color: var(--accent-dark);
  background: rgba(108, 99, 255, 0.08);
  border-color: rgba(108, 99, 255, 0.12);
}

.app-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  color: var(--ink);
  background: rgba(108, 99, 255, 0.08);
  border: 1px solid rgba(108, 99, 255, 0.14);
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.app-nav-link:hover {
  color: var(--ink);
  background: rgba(108, 99, 255, 0.14);
  border-color: rgba(108, 99, 255, 0.24);
  transform: translateY(-1px);
}

.app-nav-link.is-active {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

.app-nav-link.is-active:hover {
  color: #fff;
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.app-nav-utility {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.app-nav-utility:hover {
  color: var(--ink);
  background: rgba(108, 99, 255, 0.08);
  border-color: rgba(108, 99, 255, 0.12);
}

.app-nav-utility.is-active {
  position: relative;
  color: var(--primary-dark);
}

.app-nav-utility.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -12px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

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

.language-selector {
  position: relative;
  flex: 0 0 auto;
}

.language-selector summary {
  list-style: none;
}

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

.language-selector-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  color: #3b315f;
  background: #ffffff;
  border: 1px solid rgba(124, 58, 237, 0.16);
  border-radius: 8px;
  font-size: 0.94rem;
  font-weight: 760;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.language-selector-trigger:hover,
.language-selector[open] .language-selector-trigger {
  color: var(--primary-dark);
  background: #f7f2ff;
  border-color: rgba(124, 58, 237, 0.32);
  box-shadow: 0 10px 24px rgba(91, 33, 214, 0.08);
}

.language-selector-trigger:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.14);
}

.language-selector-trigger i {
  color: var(--primary);
  font-size: 0.88rem;
}

.language-globe-icon {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--primary);
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.language-selector-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 80;
  width: 240px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid rgba(226, 221, 243, 0.95);
  border-radius: 8px;
  box-shadow: 0 20px 46px rgba(30, 26, 72, 0.14);
}

.language-selector:not([open]) .language-selector-menu {
  display: none;
}

.language-selector-menu p {
  margin: 0 0 8px;
  padding: 0 6px;
  color: #2a2149;
  font-size: 0.78rem;
  font-weight: 900;
}

.language-selector-options {
  display: grid;
  gap: 3px;
}

.language-selector-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  color: #3f4662;
  background: transparent;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 760;
  text-align: left;
  cursor: pointer;
}

.language-selector-option:hover,
.language-selector-option:focus-visible {
  color: var(--primary-dark);
  background: #f4efff;
  outline: none;
}

.language-selector-option.is-active {
  color: var(--primary-dark);
  background: #efe7ff;
}

.language-selector-option i {
  color: var(--primary);
  font-size: 0.82rem;
}

.app-login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  color: #fff;
  white-space: nowrap;
  flex: 0 0 auto;
  font-size: 0.98rem;
  font-weight: 800;
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 999px;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.app-login-button:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
}

.app-mobile-menu {
  display: none;
  position: relative;
  flex: 0 0 auto;
}

.app-mobile-menu summary {
  list-style: none;
}

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

.app-mobile-menu-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--primary-dark);
  background: #ffffff;
  border: 1px solid rgba(124, 58, 237, 0.18);
  border-radius: 10px;
  cursor: pointer;
}

.app-mobile-menu-trigger:focus-visible,
.app-mobile-menu[open] .app-mobile-menu-trigger {
  outline: none;
  background: #f7f2ff;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.14);
}

.app-mobile-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 90;
  display: grid;
  gap: 6px;
  width: min(280px, calc(100vw - 32px));
  padding: 12px;
  background: #ffffff;
  border: 1px solid rgba(226, 221, 243, 0.95);
  border-radius: 12px;
  box-shadow: 0 20px 46px rgba(30, 26, 72, 0.14);
}

.app-mobile-menu-link,
.app-mobile-menu-button,
.app-mobile-menu-login {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-size: 0.96rem;
  font-weight: 800;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.app-mobile-menu-link:hover,
.app-mobile-menu-link:focus-visible,
.app-mobile-menu-button:hover,
.app-mobile-menu-button:focus-visible {
  color: var(--primary-dark);
  background: #f4efff;
  outline: none;
}

.app-mobile-menu-link.is-active {
  color: var(--primary-dark);
  background: #efe7ff;
}

.app-mobile-menu-login {
  justify-content: center;
  margin-top: 4px;
  color: #ffffff;
  background: var(--primary);
  border-color: var(--primary);
}

.user-menu {
  position: relative;
}

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

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

.user-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.94rem;
  font-weight: 700;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.user-menu-trigger:hover {
  background: rgba(108, 99, 255, 0.08);
  border-color: rgba(108, 99, 255, 0.12);
  transform: translateY(-1px);
}

.user-menu-trigger::after {
  content: "\f078";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.75rem;
  color: var(--muted);
}

.user-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  display: grid;
  gap: 6px;
  min-width: 220px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(25, 32, 56, 0.12);
}

.user-menu-link,
.user-menu-button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.user-menu-link:hover,
.user-menu-button:hover {
  background: var(--secondary);
  border-color: var(--line);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 20px;
}

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

.convert-workspace {
  display: flex;
  gap: 0;
  align-items: start;
  max-width: 100%;
  min-width: 0;
  overflow-x: clip;
}

.convert-upload-panel {
  flex: 0 0 42%;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--primary-border-soft);
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
  container-type: inline-size;
  overflow: hidden;
}

.convert-documents-panel {
  flex: 1 1 58%;
  min-width: 0;
  container-type: inline-size;
}

.convert-column-resizer {
  flex: 0 0 20px;
  align-self: stretch;
  cursor: col-resize;
  position: relative;
  min-height: 288px;
}

.convert-column-resizer::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 50%;
  width: 2px;
  border-radius: 999px;
  background: var(--line);
  transform: translateX(-50%);
  transition: background 0.15s ease, width 0.15s ease;
}

.convert-column-resizer:hover::before,
.convert-column-resizer.is-dragging::before {
  width: 4px;
  background: var(--accent);
}

.upload-zone,
.summary-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.upload-zone {
  display: grid;
  gap: 0.85rem;
  padding: 1.25rem;
  align-content: start;
}

.upload-zone.convert-upload-panel {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--primary-border-soft);
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
  container-type: inline-size;
  overflow: hidden;
}

.convert-upload-panel > *,
.convert-panel-header,
.upload-form,
.statement-support-card,
.homepage-proof-grid {
  min-width: 0;
  max-width: 100%;
}

.convert-panel-header {
  display: grid;
  gap: 0.65rem;
}

.step-one-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.step-one-summary .ai-strip-divider {
  display: none;
}

.step-one-summary .ai-status-area {
  gap: 0.7rem;
}

.step-one-summary .ai-status-copy {
  align-items: flex-start;
}

.step-one-summary .ai-status-text-group span {
  font-size: 0.78rem;
}

.homepage-step {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  justify-self: start;
  margin: 0 0 0.95rem;
  color: var(--primary);
  font-size: 0.98rem;
  font-weight: 850;
  line-height: 1.1;
}

.homepage-step strong {
  color: var(--primary);
}

.homepage-step span {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.15rem;
  min-height: 1.75rem;
  padding: 0 0.72rem;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border: 1px solid rgba(81, 68, 211, 0.28);
  box-shadow: 0 6px 14px rgba(81, 68, 211, 0.18);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1;
}

.homepage-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-self: start;
  margin: 0;
  padding: 0.18rem 0.65rem 0.18rem 0.45rem;
  color: var(--primary) !important;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 850;
  line-height: 1.15;
  text-shadow: none;
}

.homepage-eyebrow img {
  display: inline-flex;
  flex: 0 0 1.35rem;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  filter:
    drop-shadow(0 0 4px rgba(183, 121, 31, 0.46))
    drop-shadow(0 0 10px rgba(146, 64, 14, 0.22))
    drop-shadow(0 5px 9px rgba(120, 53, 15, 0.14));
}

/* Homepage hero moved above Step 1 / Step 2 */
.hero-section {
  text-align: center;
  padding-top: 6px;
  padding-bottom: 8px;
  max-width: 1200px;
  margin: 0 auto 12px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6D5EF4;
  margin-bottom: 4px;
  line-height: 1;
}

.hero-eyebrow-icon {
  display: block;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.hero-title {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #111827;
}

.highlight {
  color: #6D5EF4;
}

.hero-meta {
  margin-top: 4px;
  font-size: 1.08rem;
  font-weight: 500;
  color: #6B7280;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  line-height: 1.2;
}

.separator {
  color: #D1D5DB;
}

.workflow-section {
  padding-top: 0;
}

@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-description {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 16px 20px 20px;
  }

  .hero-title {
    font-size: 2.25rem;
    line-height: 1.15;
  }

  .hero-description {
    font-size: 16px;
  }

  .hero-eyebrow {
    font-size: 11px;
  }
}

.convert-panel-header h1 {
  display: none;
}

.convert-panel-header .homepage-bullets {
  display: none;
}

.homepage-subtitle {
  max-width: none;
  margin: 0;
  color: #4b5563;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  max-width: 100%;
}

.homepage-no-format {
  margin: 0.1rem 0 0;
  color: #050816;
  font-size: 0.98rem;
  font-weight: 900;
}

.homepage-bullets {
  display: grid;
  gap: 0.38rem;
  margin: 0.15rem 0 0;
  padding: 0;
  color: var(--ink);
  font-size: 0.96rem;
  line-height: 1.45;
  list-style: none;
}

.homepage-bullets li {
  position: relative;
  padding-left: 1.65rem;
}

.homepage-bullets li::before {
  content: "\f058";
  position: absolute;
  left: 0;
  top: 0.08rem;
  color: var(--primary);
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

.workspace-inline-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0;
}

.workspace-inline-summary div {
  padding: 0.55rem 0.6rem;
  background: var(--secondary);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.workspace-inline-summary dt {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
}

.workspace-inline-summary dd {
  margin: 0.15rem 0 0;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
}

.upload-subtext {
  color: var(--muted);
  margin: 0;
}

.upload-form {
  display: grid;
  gap: 0.75rem;
}

.statement-region-control {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.7rem;
  min-width: 0;
  padding: 0 0.15rem;
}

.statement-region-control label {
  flex: 0 0 auto;
  color: #374151;
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
}

.statement-region-control select,
.region-combobox-input {
  min-width: 12rem;
  min-height: 40px;
  border: 1px solid #d9dce8;
  border-radius: 8px;
  padding: 0 2.25rem 0 0.8rem;
  color: #111827;
  background:
    linear-gradient(45deg, transparent 50%, #5f6475 50%) calc(100% - 16px) 50% / 6px 6px no-repeat,
    linear-gradient(135deg, #5f6475 50%, transparent 50%) calc(100% - 11px) 50% / 6px 6px no-repeat,
    #ffffff;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 750;
  cursor: pointer;
  appearance: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.statement-region-control select:focus,
.region-combobox-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.16);
  outline: none;
}

.region-native-select {
  display: none;
}

.region-combobox {
  position: relative;
  min-width: 16rem;
}

.region-combobox-input {
  width: 100%;
}

.region-combobox-list {
  position: absolute;
  z-index: 30;
  top: calc(100% + 0.35rem);
  right: 0;
  width: min(22rem, 80vw);
  max-height: 16rem;
  overflow-y: auto;
  border: 1px solid var(--primary-border-soft);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 32px rgba(26, 24, 84, 0.14);
  padding: 0.35rem;
}

.region-combobox-option {
  width: 100%;
  border: 0;
  border-radius: 6px;
  padding: 0.55rem 0.65rem;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.region-combobox-option:hover,
.region-combobox-option.is-active,
.region-combobox-option[aria-selected="true"] {
  background: var(--primary-bg-soft);
}

.region-combobox-empty {
  padding: 0.65rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.dropzone {
  position: relative;
  overflow: visible;
  --dropzone-dash-length: 9px;
  --dropzone-dash-gap: 17px;
  --dropzone-dash-width: 3px;
  --dropzone-dash-color: rgba(108, 99, 255, 0.82);
  --dropzone-dash-color-active: rgba(81, 68, 211, 0.94);
  border: 0;
  border-radius: 18px;
  padding: 0 1.35rem 0.75rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.2s ease;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.55rem;
  background:
    radial-gradient(circle at 50% 42%, rgba(138, 132, 255, 0.1), transparent 40%),
    radial-gradient(circle at 17% 84%, rgba(217, 215, 255, 0.16), transparent 34%),
    linear-gradient(180deg, #fbf9ff 0%, #ffffff 54%, #f3f1ff 100%);
  box-shadow:
    inset 0 1px 26px rgba(108, 99, 255, 0.075),
    0 18px 44px rgba(81, 68, 211, 0.08);
}

.dropzone::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: 18px;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, var(--dropzone-dash-color) 0 var(--dropzone-dash-length), transparent var(--dropzone-dash-length) var(--dropzone-dash-gap)) bottom left / 100% var(--dropzone-dash-width) no-repeat,
    repeating-linear-gradient(180deg, var(--dropzone-dash-color) 0 var(--dropzone-dash-length), transparent var(--dropzone-dash-length) var(--dropzone-dash-gap)) top left / var(--dropzone-dash-width) 100% no-repeat,
    repeating-linear-gradient(180deg, var(--dropzone-dash-color) 0 var(--dropzone-dash-length), transparent var(--dropzone-dash-length) var(--dropzone-dash-gap)) top right / var(--dropzone-dash-width) 100% no-repeat;
}

.dropzone input[type="file"] {
  display: none;
}

.dropzone .convert-panel-header,
.dropzone .upload-usage-bar,
.dropzone-upload-content {
  position: relative;
  z-index: 2;
}

.dropzone .convert-panel-header {
  position: absolute;
  top: 3.95rem;
  right: 1.9rem;
  z-index: 5;
  width: min(26%, 14.5rem);
  justify-items: stretch;
  margin-top: 0;
  pointer-events: none;
}

.dropzone .upload-usage-bar + .convert-panel-header {
  margin-top: 0;
}

.dropzone .step-one-summary {
  justify-content: flex-end;
  width: 100%;
}

.dropzone .statement-region-control {
  display: grid;
  justify-items: start;
  align-items: start;
  gap: 0.32rem;
  width: 100%;
  min-width: 0;
  margin-left: 0;
  padding-right: 0;
  pointer-events: auto;
}

.dropzone .statement-region-control label {
  color: #6b7280;
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1.15;
}

.dropzone .statement-region-control select,
.dropzone .region-combobox {
  width: 100%;
  min-width: 0;
  justify-self: stretch;
}

.dropzone .statement-region-control select,
.dropzone .region-combobox-input {
  width: 100%;
  min-width: 0;
  min-height: 28px;
  border-color: #d8dce8;
  border-radius: 6px;
  padding: 0 1.7rem 0 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
}

.dropzone .region-combobox-list {
  left: 0;
  right: auto;
  width: 100%;
}

.dropzone .region-combobox-option,
.dropzone .region-combobox-empty {
  font-size: 0.68rem;
}

.dropzone .region-combobox-option {
  padding: 0.28rem 0.45rem;
}

.dropzone .region-combobox-empty {
  padding: 0.4rem 0.45rem;
}

.dropzone-upload-content {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.68rem;
  min-height: 0;
  padding: 1rem 0 0.15rem;
}

.dropzone-icon {
  position: relative;
  z-index: 2;
  display: grid;
  width: 84px;
  height: 68px;
  place-items: center;
  margin: 0 auto;
}

.dropzone-icon i {
  color: var(--primary);
  font-size: 4rem;
  line-height: 1;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.75);
  filter:
    drop-shadow(0 0 12px rgba(217, 215, 255, 0.5))
    drop-shadow(0 9px 16px rgba(81, 68, 211, 0.14));
}

.dropzone p {
  margin: 0;
  color: var(--ink);
}

.upload-usage-bar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 48px;
  margin: 0 -1.35rem;
  padding: 0.6rem 1rem;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 46%),
    linear-gradient(90deg, var(--primary-dark), var(--primary) 52%, var(--primary-light));
  border-radius: 18px 18px 12px 12px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 10px 24px rgba(81, 68, 211, 0.13);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.upload-usage-bar > i {
  flex: 0 0 auto;
  font-size: 1rem;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.34));
}

.upload-usage-icon {
  flex: 0 0 auto;
  width: 1.65rem;
  height: 1.65rem;
  object-fit: cover;
  filter: drop-shadow(0 2px 5px rgba(34, 20, 114, 0.18));
}

.upload-usage-separator {
  color: rgba(255, 255, 255, 0.68);
}

.no-signup-required-hint {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  color: #ffffff;
  cursor: help;
}

.no-signup-required-hint i {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.8rem;
}

.no-signup-required-hint::after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: 20;
  left: 50%;
  bottom: calc(100% + 8px);
  width: max-content;
  max-width: min(260px, calc(100vw - 48px));
  padding: 0.5rem 0.6rem;
  color: #21183f;
  background: #f3ecff;
  border: 1px solid rgba(124, 58, 237, 0.38);
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(91, 33, 214, 0.14);
  font-size: 0.74rem;
  font-weight: 650;
  line-height: 1.35;
  text-align: left;
  white-space: pre-line;
  transform: translate(-50%, 4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.no-signup-required-hint::before {
  content: "";
  position: absolute;
  z-index: 21;
  left: 50%;
  bottom: calc(100% + 3px);
  border: 6px solid transparent;
  border-top-color: rgba(124, 58, 237, 0.38);
  transform: translate(-50%, 4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.14s ease, transform 0.14s ease;
  filter: drop-shadow(0 1px 0 #f3ecff);
}

.no-signup-required-hint:hover::after,
.no-signup-required-hint:focus-visible::after,
.no-signup-required-hint:hover::before,
.no-signup-required-hint:focus-visible::before {
  transform: translate(-50%, 0);
  opacity: 1;
}

.upload-usage-bar .no-signup-required-hint::after,
.upload-usage-bar .no-signup-required-hint::before {
  display: none;
}

.upload-usage-tooltip {
  position: fixed;
  z-index: 1000;
  width: min(360px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  padding: 0.5rem 0.6rem;
  color: #21183f;
  background: #f3ecff;
  border: 1px solid rgba(124, 58, 237, 0.38);
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(91, 33, 214, 0.14);
  font-size: 0.74rem;
  font-weight: 650;
  line-height: 1.35;
  text-align: left;
  white-space: pre-line;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.upload-usage-tooltip::after {
  content: "";
  position: absolute;
  left: var(--tooltip-arrow-left, 50%);
  bottom: -12px;
  border: 6px solid transparent;
  border-top-color: rgba(124, 58, 237, 0.38);
  transform: translateX(-50%);
  filter: drop-shadow(0 1px 0 #f3ecff);
}

.upload-usage-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.statement-support-card {
  display: grid;
  gap: 0.55rem;
  padding: 0.45rem 0 0.35rem;
  color: #050816;
  overflow: hidden;
}

.compatibility-line {
  display: grid;
  grid-template-columns: 2.3rem minmax(0, 1fr);
  align-items: center;
  width: 100%;
  column-gap: 0.65rem;
  overflow: hidden;
  white-space: normal;
  min-width: 0;
}

.statement-support-line {
  display: grid;
  grid-template-columns: 2.3rem minmax(0, 1fr);
  align-items: center;
  column-gap: 0.65rem;
  min-width: 0;
  max-width: 100%;
}

.statement-support-icon {
  position: relative;
  display: inline-grid;
  flex: 0 0 2.3rem;
  width: 2.3rem;
  height: 2.3rem;
  place-items: center;
  color: var(--primary);
}

.statement-support-icon .fa-globe {
  font-size: 1.55rem;
  opacity: 0.9;
}

.statement-support-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.12rem;
}

.statement-support-card p {
  margin: 0;
  font-size: 0.83rem;
  font-weight: 400;
  line-height: 1.35;
  color: #374151;
  min-width: 0;
}

.statement-support-card .statement-support-title {
  color: #6b7280;
  font-size: 0.74rem;
  font-weight: 700;
}

.statement-support-card .statement-support-types {
  color: #374151;
  font-size: 0.74rem;
  font-weight: 500;
}

.statement-support-card strong {
  color: inherit;
  font-size: inherit;
  font-weight: 600;
}

.compatibility-line p {
  margin: 0;
  color: #6b7280;
  font-size: 0.74rem;
  font-weight: 600;
  white-space: normal;
}

.compatibility-icon i {
  color: var(--primary);
  font-size: 1.55rem;
}

.compatibility-content {
  display: flex;
  align-items: center;
  gap: 0.36rem;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  flex-wrap: wrap;
}

.compatibility-strip {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.42rem;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  flex-wrap: wrap;
  row-gap: 0.42rem;
}

.compatibility-chip {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 0.58rem;
  border: 1px solid #d6deea;
  border-radius: 999px;
  color: #334155;
  background: #f8fafc;
  font-size: 0.72rem;
  font-weight: 760;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.compatibility-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 2.5px;
  height: 2.5px;
  border-radius: 999px;
  background: #5b5872;
  opacity: 0.72;
}

.compatibility-export-note {
  flex: 0 0 auto;
  align-self: center;
  margin-left: 0.25rem;
  margin-bottom: 0;
  color: #6b7280;
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
}

.compatibility-disclaimer {
  flex-basis: 100%;
  max-width: 54rem;
  margin: 0.42rem 0 0;
  color: #7a8696;
  font-size: 0.72rem;
  font-weight: 520;
  line-height: 1.35;
}

.homepage-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 0;
  padding-top: 0.15rem;
}

.homepage-proof-grid div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 0.42rem;
  row-gap: 0.28rem;
  align-items: center;
  padding: 0 0.75rem;
  border-left: 1px solid var(--line);
}

.homepage-proof-grid div:first-child {
  border-left: 0;
  padding-left: 0;
}

.trust-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  width: 100%;
  min-height: 72px;
  margin: 24px 0 8px;
  padding: 16px 32px;
  border-top: 1px solid #E5E7EB;
  border-bottom: 1px solid #E5E7EB;
  background: #ffffff;
}

.trust-strip-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 0;
  justify-content: flex-start;
  min-width: 0;
}

.trust-strip-divider {
  display: block;
  width: 1px;
  height: 40px;
  flex: 0 0 auto;
  background: #E5E7EB;
}

.trust-strip-icon {
  display: block;
  width: 60px;
  height: 60px;
  flex: 0 0 auto;
  border-radius: 999px;
  background-image: url("/static/img/trust-icons.5524a6b013b1.png");
  background-repeat: no-repeat;
  background-size: 206px 101px;
  transition: filter 150ms ease;
}

.trust-icon-security {
  background-position: -8px -20px;
}

.trust-icon-results {
  background-position: -74px -20px;
}

.trust-icon-privacy {
  background-position: -142px -20px;
}

.trust-strip-copy {
  display: grid;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
}

.trust-strip-copy strong {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.15;
  color: #111827;
  min-width: 0;
  transition: color 150ms ease;
}

.trust-strip-copy span {
  color: #6B7280;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
}

.trust-strip-item:hover .trust-strip-icon {
  filter: brightness(0.94) saturate(1.05);
}

.trust-strip-item:hover .trust-strip-copy strong {
  color: var(--primary);
}

.homepage-proof-grid i {
  color: var(--primary);
  font-size: 1.05rem;
}

.homepage-proof-grid strong {
  color: #111827;
  font-size: 0.76rem;
  line-height: 1.2;
}

.homepage-proof-grid span {
  grid-column: 2;
  color: #4b5563;
  font-size: 0.7rem;
  line-height: 1.35;
}

@container (max-width: 520px) {
  .convert-upload-panel {
    padding: 1.15rem;
    gap: 0.95rem;
  }

  .homepage-step,
  .homepage-eyebrow {
    max-width: 100%;
  }

  .step-one-summary {
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
  }

  .statement-region-control {
    justify-content: space-between;
    padding: 0;
  }

  .dropzone .convert-panel-header {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    margin-top: 0.65rem;
    pointer-events: auto;
  }

  .dropzone .statement-region-control {
    width: min(100%, 16rem);
    min-width: 0;
    padding-right: 0;
    margin-left: auto;
  }

  .statement-region-control select,
  .region-combobox {
    min-width: 0;
    width: min(100%, 13rem);
  }

  .region-combobox-list {
    left: auto;
    right: 0;
    width: min(20rem, 86vw);
  }

  .homepage-eyebrow {
    align-items: flex-start;
    border-radius: 14px;
  }

  .convert-panel-header h1 {
    font-size: 1.72rem;
    line-height: 1.08;
  }

  .homepage-subtitle,
  .homepage-bullets {
    font-size: 0.92rem;
  }

  .dropzone {
    min-height: 288px;
    padding: 0 1rem 0.75rem;
  }

  .dropzone-upload-content {
    min-height: 0;
    padding-top: 0.45rem;
  }

  .upload-usage-bar {
    flex-wrap: wrap;
    justify-content: flex-start;
    min-height: 0;
    margin: 0 -1rem;
    font-size: 0.84rem;
    text-align: left;
    white-space: normal;
  }

  .dropzone-icon {
    width: 72px;
    height: 58px;
  }

  .dropzone-icon i {
    font-size: 3.35rem;
  }

  .dropzone-main {
    font-size: 1rem;
  }

  .statement-support-line {
    align-items: flex-start;
  }

  .compatibility-line {
    align-items: start;
  }

  .compatibility-content {
    display: grid;
    gap: 0.35rem;
  }

  .compatibility-strip {
    width: 100%;
  }

  .compatibility-export-note {
    width: 100%;
    margin-left: 0;
    white-space: normal;
  }

  .homepage-proof-grid {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .homepage-proof-grid div,
  .homepage-proof-grid div:first-child {
    padding: 0;
    border-left: 0;
  }
}

.upload-usage-bar::before,
.upload-usage-bar::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  pointer-events: none;
  opacity: 0.68;
  background: rgba(255, 255, 255, 0.78);
  clip-path: polygon(50% 0, 61% 38%, 100% 50%, 61% 62%, 50% 100%, 39% 62%, 0 50%, 39% 38%);
  filter: drop-shadow(0 0 7px rgba(255, 255, 255, 0.42));
}

.upload-usage-bar::before {
  display: none;
}

.upload-usage-bar::after {
  right: calc(50% - 128px);
  top: 27px;
  width: 7px;
  height: 7px;
  opacity: 0.58;
}

.dropzone-main {
  position: relative;
  z-index: 2;
  color: #111827;
  font-size: 1.08rem;
  font-weight: 800;
}

.dropzone-or {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #8a8f9c !important;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
}

.dropzone-or::before,
.dropzone-or::after {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(138, 132, 255, 0.2));
}

.dropzone-or::after {
  background: linear-gradient(90deg, rgba(138, 132, 255, 0.2), transparent);
}

.dropzone-choose {
  position: relative;
  z-index: 2;
  min-height: 40px;
  padding: 0.56rem 1.35rem;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(217, 215, 255, 0.58);
  border-radius: 999px;
  box-shadow:
    0 10px 24px rgba(81, 68, 211, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  cursor: pointer;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 750;
  transition: transform 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.dropzone-choose:hover,
.dropzone-choose:focus-visible {
  color: var(--primary-dark);
  box-shadow:
    0 12px 28px rgba(81, 68, 211, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  outline: none;
  transform: translateY(-1px);
}

.dropzone .muted-text {
  position: relative;
  z-index: 2;
  color: #737086;
  font-size: 0.86rem;
  font-weight: 700;
  margin-top: 0.28rem;
}

.dropzone-sparkle {
  position: absolute;
  z-index: 1;
  display: block;
  width: 17px;
  height: 17px;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(174, 178, 194, 0.72) 45%, rgba(126, 134, 158, 0.56));
  clip-path: polygon(50% 0, 61% 38%, 100% 50%, 61% 62%, 50% 100%, 39% 62%, 0 50%, 39% 38%);
  filter:
    drop-shadow(0 0 8px rgba(255, 255, 255, 0.65))
    drop-shadow(0 0 12px rgba(108, 99, 255, 0.14));
}

.sparkle-one {
  top: 34%;
  left: 31%;
}

.sparkle-two {
  top: 28%;
  right: 32%;
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

.sparkle-three {
  top: 47%;
  right: 27%;
  width: 11px;
  height: 11px;
  opacity: 0.58;
}

.dropzone-document {
  position: absolute;
  z-index: 1;
  width: 34px;
  height: 42px;
  border: 1px solid rgba(108, 99, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(245, 243, 255, 0.46)),
    linear-gradient(180deg, rgba(108, 99, 255, 0.08) 0 2px, transparent 2px 9px);
  box-shadow: 0 10px 22px rgba(81, 68, 211, 0.06);
  opacity: 0.5;
}

.dropzone-document::before,
.dropzone-document::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  border-radius: 999px;
  background: rgba(108, 99, 255, 0.16);
}

.dropzone-document::before {
  top: 15px;
}

.dropzone-document::after {
  top: 23px;
}

.document-one {
  top: 36%;
  left: 21%;
  transform: rotate(-10deg);
}

.document-two {
  top: 39%;
  right: 20%;
  transform: rotate(9deg) scale(0.9);
}

.dropzone:hover,
.dropzone.is-dragover {
  background:
    radial-gradient(circle at 50% 42%, rgba(138, 132, 255, 0.14), transparent 40%),
    radial-gradient(circle at 17% 84%, rgba(217, 215, 255, 0.2), transparent 34%),
    linear-gradient(180deg, var(--primary-bg-soft) 0%, #ffffff 54%, var(--primary-bg-soft) 100%);
  box-shadow:
    inset 0 1px 28px rgba(108, 99, 255, 0.095),
    0 20px 48px rgba(81, 68, 211, 0.12),
    0 0 0 6px rgba(217, 215, 255, 0.15);
}

.dropzone:hover::before,
.dropzone.is-dragover::before {
  background:
    repeating-linear-gradient(90deg, var(--dropzone-dash-color-active) 0 var(--dropzone-dash-length), transparent var(--dropzone-dash-length) var(--dropzone-dash-gap)) bottom left / 100% var(--dropzone-dash-width) no-repeat,
    repeating-linear-gradient(180deg, var(--dropzone-dash-color-active) 0 var(--dropzone-dash-length), transparent var(--dropzone-dash-length) var(--dropzone-dash-gap)) top left / var(--dropzone-dash-width) 100% no-repeat,
    repeating-linear-gradient(180deg, var(--dropzone-dash-color-active) 0 var(--dropzone-dash-length), transparent var(--dropzone-dash-length) var(--dropzone-dash-gap)) top right / var(--dropzone-dash-width) 100% no-repeat;
}

.dropzone.is-disabled {
  cursor: not-allowed;
}

.dropzone.is-uploading {
  background:
    radial-gradient(circle at 50% 42%, rgba(138, 132, 255, 0.16), transparent 40%),
    linear-gradient(180deg, var(--primary-bg-soft) 0%, #ffffff 54%, var(--primary-bg-soft) 100%);
  box-shadow:
    inset 0 1px 28px rgba(108, 99, 255, 0.11),
    0 20px 48px rgba(81, 68, 211, 0.12),
    0 0 0 6px rgba(217, 215, 255, 0.15);
}

.dropzone.is-uploading .dropzone-icon,
.dropzone.is-uploading .dropzone-main,
.dropzone.is-uploading .muted-text {
  opacity: 0.28;
}

.dropzone-uploading {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  color: var(--primary-dark);
  font-size: 1.05rem;
  font-weight: 850;
  pointer-events: none;
}

.dropzone.is-uploading .dropzone-uploading {
  display: flex;
}

.dropzone-uploading-spinner {
  width: 46px;
  height: 46px;
  border: 4px solid rgba(108, 99, 255, 0.18);
  border-top-color: var(--primary);
  border-radius: 999px;
  animation: dropzone-upload-spin 850ms linear infinite;
}

@keyframes dropzone-upload-spin {
  to {
    transform: rotate(360deg);
  }
}

/* File list */
.file-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 140px;
  overflow-y: auto;
}

.file-list:empty,
.upload-selection-count:empty,
.form-feedback:empty {
  display: none;
}

.file-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 0.9rem;
  background: var(--secondary);
  border-radius: 6px;
}

.file-list-item {
  align-items: center;
  gap: 0.75rem;
}

.file-list-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.file-list-name {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-list-size {
  font-size: 0.8rem;
  color: var(--muted);
}

.file-list-remove {
  background: transparent;
  border: 0;
  color: var(--danger);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0.25rem;
  display: flex;
  align-items: center;
}

.file-list-remove:hover {
  color: var(--danger);
  opacity: 0.8;
}

.upload-selection-count {
  font-size: 0.85rem;
  margin: 0;
}

.form-feedback {
  margin: 0;
  font-size: 0.85rem;
}

.form-feedback.below-button {
  margin-top: 0.5rem;
}

.homepage-footer {
  margin-top: clamp(0.65rem, 1.5vw, 1.15rem);
  color: #f8fafc;
  background:
    radial-gradient(circle at 18% 8%, rgba(58, 64, 124, 0.18), transparent 34%),
    linear-gradient(180deg, #1b1f43 0%, #141936 100%);
  border-radius: 0;
  box-shadow: 0 -16px 42px rgba(15, 23, 42, 0.14);
  overflow: hidden;
}

.homepage-footer-inner {
  display: grid;
  gap: 0;
  width: 100%;
  padding: clamp(0.95rem, 2.2vw, 1.55rem) 24px clamp(1.55rem, 3vw, 2.05rem);
}

.footer-brand-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: clamp(0.35rem, 1vw, 0.7rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

.footer-brand-block {
  display: grid;
  gap: 0.95rem;
  max-width: min(100%, 820px);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand-logo {
  width: 76px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.24));
}

.footer-brand-name {
  display: grid;
  color: #fff;
  font-size: clamp(0.76rem, 1vw, 0.82rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: 0;
}

.footer-brand-gold {
  color: #d9b451;
}

.footer-brand-tagline {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.25vw, 1.16rem);
  font-weight: 500;
  line-height: 1.52;
  white-space: nowrap;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.75rem, 5vw, 5rem);
  align-items: start;
  padding: clamp(1rem, 2.1vw, 1.45rem) 0 clamp(1.15rem, 2.2vw, 1.55rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-links-grid h2 {
  margin: 0 0 0.9rem;
  color: #b9a7ff;
  font-size: 1.02rem;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.footer-links-grid a {
  display: block;
  width: max-content;
  max-width: 100%;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.04rem;
  font-weight: 550;
  line-height: 1.3;
  text-decoration: none;
  transition: color 0.16s ease, text-decoration-color 0.16s ease;
}

.footer-links-grid a + a {
  margin-top: 0.58rem;
}

.footer-links-grid a:hover {
  color: #b9a7ff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-left: auto;
}

.footer-socials a {
  display: grid;
  place-items: center;
  width: 3.15rem;
  height: 3.15rem;
  color: #fff;
  font-size: 1.25rem;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 0.55rem;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.footer-socials a:hover {
  color: #fff;
  background: rgba(126, 105, 255, 0.2);
  border-color: #b9a7ff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-top: clamp(1.45rem, 3vw, 2rem);
}

.footer-copyright {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.98rem;
  font-weight: 500;
}

/* Primary button styling */
.primary-btn {
  min-height: 44px;
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  transition: background 0.2s ease;
}

.primary-btn:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.primary-btn.full-width {
  width: 100%;
}

.documents-zone {
  display: grid;
  gap: 0;
  align-content: start;
  justify-items: stretch;
  text-align: left;
  width: 100%;
}

.ai-processing-strip {
  display: grid;
  gap: 0.9rem;
  min-height: 0;
  padding: 1.15rem;
  color: #111827;
  background: #fff;
  border: 1px solid var(--primary-border-soft);
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

.ai-processing-strip.ai-state-idle {
  color: #4b5563;
  background: #fff;
}

.step-two-summary {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) 1px minmax(280px, 1fr);
  align-items: center;
  gap: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(217, 215, 255, 0.6);
}

.ai-step-copy,
.ai-status-area {
  display: flex;
  align-items: center;
  min-width: 0;
}

.ai-step-copy {
  gap: 0;
}

.ai-step-text {
  display: grid;
  gap: 0.26rem;
  min-width: 0;
}

.ai-step-heading {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  justify-self: start;
}

.ai-step-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 4.15rem;
  height: 28px;
  padding: 6px 14px;
  color: #6D5EF4;
  background: linear-gradient(180deg, #F7F4FF 0%, #F7F4FF calc(100% - 2px), #6D5EF4 100%);
  border: 1px solid #E4DBFF;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  text-align: center;
}

.ai-step-copy h2 {
  margin: 0;
  color: #111827;
  font-size: 22px;
  font-weight: 850;
  line-height: 1.1;
}

.ai-step-description {
  display: block;
  margin-top: 0.26rem;
  color: #6b7280;
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.35;
}

.ai-strip-divider {
  width: 1px;
  height: 58px;
  background: linear-gradient(180deg, transparent, rgba(217, 215, 255, 0.72), transparent);
}

.ai-status-area {
  gap: 0.8rem;
}

.ai-icon-box {
  position: relative;
  display: inline-grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #b7791f;
  background: linear-gradient(135deg, #fffaf0, #fff7e6 52%, var(--primary-bg));
  border: 1px solid rgba(183, 121, 31, 0.26);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 8px 20px rgba(146, 64, 14, 0.08);
  overflow: hidden;
}

.ai-icon-box::before {
  content: "";
  position: absolute;
  inset: -60% auto -60% -80%;
  width: 60%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  transform: rotate(22deg);
}

.ai-icon-box::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 9px;
  width: 5px;
  height: 5px;
  background: linear-gradient(135deg, #d99a00, #b7791f, #78350f);
  clip-path: polygon(50% 0, 61% 38%, 100% 50%, 61% 62%, 50% 100%, 39% 62%, 0 50%, 39% 38%);
  filter: drop-shadow(0 0 5px rgba(183, 121, 31, 0.5));
}

.ai-icon-box i,
.ai-icon-box img {
  position: relative;
  z-index: 1;
}

.ai-icon-box i {
  font-size: 1.18rem;
  background: linear-gradient(135deg, #d99a00, #b7791f 46%, #92400e 72%, #78350f);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter:
    drop-shadow(0 0 4px rgba(251, 191, 36, 0.55))
    drop-shadow(0 0 9px rgba(146, 64, 14, 0.2));
}

.ai-icon-box img {
  width: 1.35rem;
  height: 1.35rem;
  object-fit: contain;
  filter:
    drop-shadow(0 0 4px rgba(183, 121, 31, 0.5))
    drop-shadow(0 0 10px rgba(146, 64, 14, 0.22));
}

.ai-processing-strip.ai-state-processing .ai-icon-box::before {
  animation: aiIconShimmer 4.8s ease-in-out infinite;
}

.ai-status-copy {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.ai-status-text-group {
  display: grid;
  gap: 0.16rem;
  min-width: 0;
}

.ai-status-copy p {
  margin: 0;
  color: #374151;
  font-size: 0.92rem;
  font-weight: 760;
  line-height: 1.3;
  transition: opacity 0.28s ease;
}

.ai-status-text-group span {
  color: #6b7280;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
}

.ai-status-text-group .ai-status-processed-line {
  display: block;
  margin-top: 0.08rem;
  color: #6b7280;
  font-size: 0.78rem;
  font-weight: 800;
}

.ai-status-text-group .ai-status-breakdown-line {
  display: block;
  color: #6b7280;
  font-size: 0.78rem;
  font-weight: 560;
}

.ai-status-copy p.is-fading {
  opacity: 0;
}

.ai-status-copy p::after {
  display: none;
  width: 0.92rem;
  height: 0.92rem;
  margin-left: 0.45rem;
  content: "\f00c";
  color: var(--primary);
  background: var(--primary-bg);
  border: 1px solid rgba(138, 132, 255, 0.62);
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(138, 132, 255, 0.12);
  font-family: "Font Awesome 6 Free";
  font-size: 0.55rem;
  font-weight: 900;
  line-height: 0.92rem;
  text-align: center;
  vertical-align: 0.05rem;
}

.ai-status-dots {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.2rem;
  margin-left: 0.38rem;
  vertical-align: 0.1em;
}

.ai-status-dots span {
  display: block;
  width: 5px;
  height: 5px;
  background: #c7c8d1;
  border-radius: 999px;
}

.ai-processing-strip.ai-state-processing .ai-status-dots span {
  animation: aiDotCycle 1.35s steps(1, end) infinite;
}

.ai-processing-strip.ai-state-processing .ai-status-dots span:nth-child(2) {
  animation-delay: 0.225s;
}

.ai-processing-strip.ai-state-processing .ai-status-dots span:nth-child(3) {
  animation-delay: 0.45s;
}

.ai-processing-strip.ai-state-processing .ai-status-dots span:nth-child(4) {
  animation-delay: 0.675s;
}

.ai-processing-strip.ai-state-processing .ai-status-dots span:nth-child(5) {
  animation-delay: 0.9s;
}

.ai-processing-strip.ai-state-processing .ai-status-dots span:nth-child(6) {
  animation-delay: 1.125s;
}

.ai-processing-strip:not(.ai-state-processing) .ai-status-dots,
.ai-processing-strip:not(.ai-state-processing) .ai-status-dots span {
  display: none;
}

@keyframes aiIconShimmer {
  0%, 58%, 100% {
    transform: translateX(0) rotate(22deg);
  }
  78% {
    transform: translateX(280%) rotate(22deg);
  }
}

@keyframes aiDotCycle {
  0%, 16.666% {
    opacity: 1;
    background: var(--primary);
    transform: scale(1.22);
  }
  16.667%, 100% {
    opacity: 0.55;
    background: #c7c8d1;
    transform: scale(0.9);
  }
}

.step-two-workspace {
  display: grid;
  gap: 0.9rem;
}

.document-bulk-actions {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.5rem;
}

.bulk-export-action,
.bulk-delete-action {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 34px;
  padding: 0 0.72rem;
  color: var(--primary);
  background: #fff;
  border: 1px solid rgba(217, 215, 255, 0.72);
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}


.post-processing-signup-prompt[hidden] {
  display: none;
}

.post-processing-signup-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.82rem 0.95rem;
  border: 1px solid #ddd6fe;
  border-radius: 10px;
  background: #faf8ff;
  color: #312e81;
}

.post-processing-signup-copy {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.post-processing-signup-copy strong {
  color: #312e81;
  font-size: 0.92rem;
  font-weight: 820;
  line-height: 1.25;
}

.post-processing-signup-copy span {
  color: #6b6f86;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
}

.post-processing-signup-actions {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.5rem;
}

.post-processing-signup-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid #c4b5fd;
  border-radius: 8px;
  background: #fff;
  color: #5b21b6;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.post-processing-signup-cta:hover,
.post-processing-signup-cta:focus-visible {
  background: #f3efff;
  border-color: #a78bfa;
  color: #4c1d95;
  outline: none;
}

.post-processing-signup-dismiss {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #7c7896;
  cursor: pointer;
}

.post-processing-signup-dismiss:hover,
.post-processing-signup-dismiss:focus-visible {
  background: #f0ebff;
  color: #5b21b6;
  outline: none;
}

@media (max-width: 640px) {
  .post-processing-signup-prompt {
    align-items: flex-start;
    flex-direction: column;
  }

  .post-processing-signup-actions {
    width: 100%;
    justify-content: space-between;
  }

  .post-processing-signup-cta {
    flex: 1 1 auto;
  }
}

.documents-table-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.bulk-export-action {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-color: rgba(81, 68, 211, 0.26);
  box-shadow: 0 8px 18px rgba(81, 68, 211, 0.16);
  cursor: pointer;
}

.bulk-delete-action {
  color: var(--primary);
  background: #fff;
  cursor: pointer;
}

.bulk-export-action:disabled,
.bulk-delete-action:disabled {
  color: #9ca3af;
  background: #f3f4f6;
  border-color: #e5e7eb;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 1;
}

.bulk-export-action:not(:disabled):hover,
.bulk-export-action:not(:disabled):focus-visible {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-color: rgba(81, 68, 211, 0.34);
  transform: translateY(-1px);
  outline: none;
}

.bulk-delete-action:not(:disabled):hover,
.bulk-delete-action:not(:disabled):focus-visible {
  color: #991b1b;
  background: #fff3f2;
  border-color: rgba(239, 68, 68, 0.22);
  transform: translateY(-1px);
  outline: none;
}


.upload-limit-modal[hidden] {
  display: none;
}

.upload-limit-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.upload-limit-modal-is-open {
  overflow: hidden;
}

.upload-limit-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 22, 42, 0.48);
  backdrop-filter: blur(4px);
}

.upload-limit-panel {
  position: relative;
  width: min(100%, 34rem);
  border: 1px solid rgba(124, 94, 255, 0.14);
  border-radius: 1.35rem;
  background: #fff;
  box-shadow: 0 1.75rem 4.5rem rgba(38, 31, 75, 0.28);
  padding: 3.6rem 3.25rem 2.45rem;
  text-align: center;
  color: #16172f;
}

.upload-limit-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #697089;
  font-size: 1.35rem;
  cursor: pointer;
}

.upload-limit-close:hover,
.upload-limit-close:focus-visible {
  background: #f4f1ff;
  color: #4f25d9;
  outline: none;
}

.upload-limit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 6.25rem;
  height: 6.25rem;
  border-radius: 999px;
  margin-bottom: 1.75rem;
  background: radial-gradient(circle at 30% 22%, #f5efff 0%, #ede5ff 62%, #e5dafd 100%);
  color: #5825d8;
  font-size: 2.7rem;
}

.upload-limit-panel h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: 0;
  color: #11132c;
}

.upload-limit-panel p {
  margin: 1.25rem auto 0;
  max-width: 25rem;
  color: #4f566d;
  font-size: 1.12rem;
  line-height: 1.55;
}

.upload-limit-actions {
  display: grid;
  gap: 0.8rem;
  margin-top: 2rem;
}

.upload-limit-primary,
.upload-limit-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.6rem;
  border-radius: 0.65rem;
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  cursor: pointer;
}

.upload-limit-primary {
  border: 1px solid #5b22e8;
  background: linear-gradient(135deg, #6b35ff 0%, #4f19d8 100%);
  color: #fff;
  box-shadow: 0 0.75rem 1.45rem rgba(91, 34, 232, 0.22);
}

.upload-limit-primary:hover,
.upload-limit-primary:focus-visible {
  color: #fff;
  transform: translateY(-1px);
  outline: none;
}

.upload-limit-secondary {
  border: 1px solid #d9dcec;
  background: #fff;
  color: #5224d8;
}

.upload-limit-secondary:hover,
.upload-limit-secondary:focus-visible {
  background: #f8f6ff;
  border-color: #c8bbff;
  outline: none;
}

.upload-limit-trust-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.35rem !important;
  color: #667089 !important;
  font-size: 0.96rem !important;
}

.upload-limit-trust-note i {
  color: #68728d;
}

@media (max-width: 520px) {
  .upload-limit-modal {
    padding: 1rem;
  }

  .upload-limit-panel {
    padding: 3rem 1.35rem 2rem;
    border-radius: 1rem;
  }

  .upload-limit-icon {
    width: 5rem;
    height: 5rem;
    font-size: 2.15rem;
  }
}

.combined-export-modal[hidden] {
  display: none;
}

.combined-export-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.combined-export-modal-is-open {
  overflow: hidden;
}

.combined-export-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 24, 42, 0.54);
  backdrop-filter: blur(3px);
}

.combined-export-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 920px);
  max-height: min(760px, calc(100vh - 2.5rem));
  overflow: auto;
  padding: 1.55rem 1.7rem 0;
  color: #23243a;
  background: #fff;
  border: 1px solid #e7e9f1;
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(23, 24, 42, 0.18);
}

.combined-export-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #344054;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.combined-export-close:hover,
.combined-export-close:focus-visible {
  color: var(--primary);
  background: #f1f0ff;
  outline: none;
}

.combined-export-header {
  padding-right: 2.5rem;
}

.combined-export-header h2 {
  margin: 0;
  color: #101828;
  font-size: 1.35rem;
  line-height: 1.2;
}

.combined-export-header p {
  margin: 0.8rem 0 0;
  color: #101828;
  font-size: 0.95rem;
  line-height: 1.45;
}

.combined-export-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 1.55rem 0 0;
  padding: 0;
  border: 0;
}

.combined-export-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.25rem 4rem 1fr;
  gap: 1rem;
  align-items: flex-start;
  min-height: 132px;
  padding: 1.35rem 1.35rem 1.2rem;
  background: #fff;
  border: 1px solid #d8dce7;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.combined-export-card:hover,
.combined-export-card:focus-within {
  border-color: rgba(14, 78, 255, 0.42);
  box-shadow: 0 0 0 3px rgba(14, 78, 255, 0.07);
}

.combined-export-card:has(input:checked),
.combined-export-card.is-selected {
  background: #f8fbff;
  border-color: #195cff;
  box-shadow: 0 0 0 1px #195cff;
}

.combined-export-card input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.combined-export-radio {
  position: relative;
  display: inline-block;
  width: 1.08rem;
  height: 1.08rem;
  margin-top: 0.18rem;
  background: #fff;
  border: 2px solid #98a2b3;
  border-radius: 50%;
}

.combined-export-card:has(input:checked) .combined-export-radio,
.combined-export-card.is-selected .combined-export-radio {
  border-color: #0b5cff;
}

.combined-export-card:has(input:checked) .combined-export-radio::after,
.combined-export-card.is-selected .combined-export-radio::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: #0b5cff;
  border-radius: 50%;
}

.combined-export-card-icon {
  display: inline-grid;
  position: relative;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  font-size: 2.3rem;
}

.combined-export-card-icon.excel {
  color: #169b59;
}

.combined-export-card-icon.zip {
  color: #e3a52f;
}

.combined-export-card-icon.zip .fa-file-zipper {
  position: absolute;
  right: 0.32rem;
  bottom: 0.18rem;
  color: #7a5a20;
  font-size: 1.15rem;
}

.combined-export-card-copy {
  display: grid;
  gap: 0.7rem;
  min-width: 0;
}

.combined-export-card-copy strong {
  color: #101828;
  font-size: 1rem;
  line-height: 1.25;
}

.combined-export-card-copy span,
.combined-export-card-copy small,
.combined-export-card-copy em {
  color: #101828;
  font-size: 0.9rem;
  font-style: normal;
  line-height: 1.45;
}

.combined-export-card-copy small {
  margin-top: 0.2rem;
}

.combined-export-card-copy em {
  color: #475467;
  font-weight: 750;
}

.combined-export-target {
  width: min(100%, 340px);
  margin: 0.85rem 0 0 auto;
}

.combined-export-target[hidden] {
  display: none;
}

.combined-export-target label {
  display: block;
  margin-bottom: 0.5rem;
  color: #101828;
  font-size: 0.88rem;
  font-weight: 850;
}

.combined-export-target select {
  width: 100%;
  min-height: 42px;
  padding: 0 0.75rem;
  color: #101828;
  background: #fff;
  border: 1px solid #d8dce7;
  border-radius: 7px;
  font: inherit;
}

.combined-export-error {
  margin: 1rem 0 0;
  padding: 0.75rem 0.85rem;
  color: #991b1b;
  background: #fff7f7;
  border: 1px solid #fecaca;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 750;
}

.combined-export-error[hidden] {
  display: none;
}

.combined-export-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.9rem;
  margin: 1.5rem -1.7rem 0;
  padding: 1rem 1.7rem;
  border-top: 1px solid #e7e9f1;
}

.combined-export-primary,
.combined-export-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 110px;
  min-height: 42px;
  padding: 0 1.15rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 850;
  cursor: pointer;
}

.combined-export-primary {
  color: #fff;
  background: #0758e8;
  border: 1px solid #0758e8;
}

.combined-export-primary:hover,
.combined-export-primary:focus-visible {
  background: #0047c7;
  outline: none;
}

.combined-export-primary:disabled,
.combined-export-secondary:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.combined-export-primary.is-loading {
  background: #4f46e5;
  border-color: #4f46e5;
}

.combined-export-secondary {
  color: #101828;
  background: #fff;
  border: 1px solid #d8dce7;
}

.combined-export-secondary:hover,
.combined-export-secondary:focus-visible {
  color: var(--primary);
  background: #f7f7fb;
  outline: none;
}

@media (max-width: 760px) {
  .combined-export-panel {
    padding-right: 1.1rem;
    padding-left: 1.1rem;
  }

  .combined-export-options {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .combined-export-card {
    grid-template-columns: 1.25rem 3rem 1fr;
    padding: 1rem;
  }

  .combined-export-card-icon {
    width: 2.65rem;
    height: 2.65rem;
    font-size: 1.95rem;
  }

  .combined-export-target {
    width: 100%;
  }

  .combined-export-actions {
    margin-right: -1.1rem;
    margin-left: -1.1rem;
    padding-right: 1.1rem;
    padding-left: 1.1rem;
  }
}

.documents-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: calc(var(--nav-height) + var(--nav-offset));
  z-index: 20;
  margin: -0.5rem -0.5rem 0;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(108, 99, 255, 0.08);
  backdrop-filter: blur(10px);
}

.documents-header h2 {
  margin: 0;
  color: #111827;
  font-size: 1.25rem;
}

.documents-header h2 span {
  display: inline-block;
  margin-right: 0.45rem;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.detail-table-wrap {
  overflow-x: auto;
}

.documents-table-wrap {
  overflow: visible;
}

.doc-table,
.detail-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.doc-table th,
.doc-table td,
.detail-table th,
.detail-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.doc-table th,
.detail-table th {
  color: #6b7280;
  font-size: 0.76rem;
  font-weight: 800;
  background: #f7f7fb;
  text-align: left;
  text-transform: none;
}

/* Active (non-empty) document table header -- purple accent */
.doc-table.has-documents th,
.doc-table.has-documents thead th {
  color: #ffffff;
  background: var(--primary);
}

.doc-table.has-documents th .auto-delete-heading,
.doc-table.has-documents th i {
  color: #ffffff;
}

.doc-table tbody tr:last-child td {
  border-bottom: 0;
}

.zebra-table tbody tr:nth-child(even) {
  background: #fbfcff;
}

.zebra-table tbody tr:nth-child(even) td {
  background: inherit;
}

.zebra-table tbody tr:hover {
  background: #eef2ff;
}

.zebra-table tbody tr:hover td {
  background: inherit;
}

.doc-table-empty-row td {
  padding: 32px 10px;
  border-bottom: 1px solid var(--line);
}

.doc-table-empty-row .empty-state-message {
  font-size: 15px;
  font-weight: 500;
  color: #475569;
  text-align: center;
}

.doc-table-skeleton-row td {
  background: #eff2fb;
  height: 48px;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
}

.doc-table-skeleton-row td:last-child {
  padding-right: 16px;
}

.doc-table-skeleton-row .skeleton-line {
  display: inline-block;
  height: 12px;
  border-radius: 999px;
  background: #d8d9e9;
  max-width: 100%;
}

.doc-table-skeleton-row .skeleton-short {
  width: 64%;
}

.doc-table-skeleton-row .skeleton-medium {
  width: 72%;
}

.doc-table-skeleton-row .skeleton-small {
  width: 56%;
}

.doc-table-skeleton-row .row-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.doc-table-skeleton-row .skeleton-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: #c5c9dd;
  opacity: 0.6;
}

.doc-table-skeleton-row .skeleton-action-icon i {
  font-size: 0.95rem;
}


.doc-row {
  cursor: pointer;
}

.doc-row.is-selected {
  background: rgba(108, 99, 255, 0.08) !important;
}

.doc-row:hover {
  background: #eef2ff;
  box-shadow: inset 0 0 0 1px rgba(108, 99, 255, 0.12);
}

.checkbox-col {
  text-align: center;
}

.select-table-col {
  width: 3.5%;
}

.statement-col {
  width: 28%;
}

.pages-table-col {
  width: 6%;
}

.uploaded-table-col {
  width: 11%;
}

.auto-delete-table-col {
  width: 12%;
}

.status-table-col {
  width: 31.5%;
}

.actions-table-col {
  width: 92px;
}

@container (max-width: 760px) {
  .uploaded-table-col,
  .auto-delete-table-col,
  .doc-table th:nth-child(4),
  .doc-table td:nth-child(4),
  .doc-table th:nth-child(5),
  .doc-table td:nth-child(5) {
    display: none;
  }

  .select-table-col {
    width: 5%;
  }

  .statement-col {
    width: 38%;
  }

  .pages-table-col {
    width: 8%;
  }

  .status-table-col {
    width: 39%;
  }

  .actions-table-col {
    width: 88px;
  }
}

@container (max-width: 560px) {
  .pages-table-col,
  .doc-table th:nth-child(3),
  .doc-table td:nth-child(3) {
    display: none;
  }

  .select-table-col {
    width: 7%;
  }

  .statement-col {
    width: 45%;
  }

  .status-table-col {
    width: 36%;
  }

  .actions-table-col {
    width: 82px;
  }
}

.documents-selection-form {
  display: none;
}

.checkbox-col input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

.pages-col {
  color: #7b748e;
  font-size: 0.78rem;
  font-weight: 650;
  text-align: center !important;
}

.doc-file-cell {
  min-width: 0;
  overflow: hidden;
}

.statement-cell {
  display: block;
  min-width: 0;
}

.statement-file-copy {
  min-width: 0;
}

.doc-file-name {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--primary-dark);
  font-size: 0.9rem;
  font-weight: 400;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 150ms ease, text-decoration-color 150ms ease;
}

.doc-row:hover .doc-file-name {
  color: var(--primary);
  text-decoration-color: var(--primary);
}

.muted-table-text {
  color: #7b748e;
  font-size: 0.78rem;
  font-weight: 650;
}

.auto-delete-heading {
  position: relative;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  gap: 0.32rem;
  line-height: 1.25;
  white-space: normal;
  cursor: help;
}

.auto-delete-heading-text {
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: auto;
}

.auto-delete-heading i {
  flex: 0 0 auto;
  color: var(--primary);
  font-size: 0.76rem;
}

.auto-delete-heading::after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: 20;
  left: 50%;
  bottom: calc(100% + 8px);
  width: max-content;
  max-width: 220px;
  padding: 0.45rem 0.55rem;
  color: #21183f;
  background: #f3ecff;
  border: 1px solid rgba(124, 58, 237, 0.38);
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(91, 33, 214, 0.14);
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.35;
  text-align: left;
  text-transform: none;
  transform: translate(-50%, 4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.auto-delete-heading::before {
  content: "";
  position: absolute;
  z-index: 21;
  left: 50%;
  bottom: calc(100% + 3px);
  border: 6px solid transparent;
  border-top-color: rgba(124, 58, 237, 0.38);
  transform: translate(-50%, 4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.14s ease, transform 0.14s ease;
  filter: drop-shadow(0 1px 0 #f3ecff);
}

.auto-delete-heading:hover::after,
.auto-delete-heading:focus-visible::after,
.auto-delete-heading:hover::before,
.auto-delete-heading:focus-visible::before {
  transform: translate(-50%, 0);
  opacity: 1;
}

.auto-delete-soon {
  color: #a16207;
}

.doc-table th:nth-child(6),
.doc-table td:nth-child(6) {
  padding-left: 28px;
  text-align: left;
}

.status-cell {
  display: grid;
  justify-items: start;
  gap: 5px;
  min-width: 0;
  text-align: left;
}

.doc-status-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  justify-self: start;
  gap: 8px;
  min-width: 0;
  width: fit-content;
}

.status-help-trigger {
  display: inline-grid;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  padding: 0;
  place-items: center;
  border: 1px solid #93c5fd;
  border-radius: 999px;
  color: #2563eb;
  background: #eff6ff;
  cursor: pointer;
}

.status-help-trigger:hover,
.status-help-trigger:focus-visible {
  color: #1d4ed8;
  background: #dbeafe;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
  outline: none;
}

.status-help-trigger i {
  font-size: 0.8rem;
}

.status-badge-tooltip {
  position: fixed;
  z-index: 10000;
  padding: 0.55rem 0.65rem;
  color: #1e3a8a;
  background: #eff6ff;
  border: 1px solid #93c5fd;
  border-radius: 6px;
  box-shadow: 0 12px 26px rgba(30, 64, 175, 0.16);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.status-badge-tooltip::after {
  content: "";
  position: absolute;
  left: var(--tooltip-arrow-left, 50%);
  top: 100%;
  border: 6px solid transparent;
  border-top-color: #93c5fd;
  transform: translateX(-50%);
  filter: drop-shadow(0 1px 0 #eff6ff);
}

.status-badge-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.doc-status-badge.status-queued,
.doc-status-badge.status-processing,
.doc-status-badge.status-processed,
.doc-status-badge.status-failed {
  color: inherit;
  background: transparent;
}

.status-icon-circle {
  display: inline-grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #64748b;
  background: #f1f5f9;
  border-radius: 999px;
}

.status-icon-circle i {
  font-size: 1rem;
}

.status-text {
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
}

.status-queued .status-icon-circle {
  color: #64748b;
  background: #F1F5F9;
}

.status-queued .status-text {
  color: #64748B;
}

.status-processing .status-icon-circle {
  color: #B7791F;
  background: #FFF7E6;
}

.status-processing .status-icon-circle i {
  background: linear-gradient(135deg, #d99a00, #b7791f 50%, #92400e 72%, #78350f);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 5px rgba(251, 191, 36, 0.36));
}

.status-processing .status-icon-circle img,
.status-ai-sparkle {
  width: 1.18rem;
  height: 1.18rem;
  object-fit: contain;
  filter:
    drop-shadow(0 0 4px rgba(183, 121, 31, 0.5))
    drop-shadow(0 0 8px rgba(146, 64, 14, 0.22));
}

.status-processing .status-text {
  color: #B7791F;
}

.status-processed .status-icon-circle {
  color: #16a34a;
  background: #ECFDF3;
}

.status-processed .status-text {
  color: #15803D;
}

.verification-not_applicable .status-icon-circle {
  flex-basis: 30px;
  width: 30px;
  height: 30px;
  color: #2563eb;
  background: transparent;
  border-radius: 0;
}

.verification-not_applicable .status-text {
  color: #1d4ed8;
}

.verification-not_applicable .status-help-trigger {
  flex-basis: auto;
  width: auto;
  height: auto;
  border: 0;
  color: #2563eb;
  background: transparent;
}

.verification-not_applicable .status-help-trigger:hover,
.verification-not_applicable .status-help-trigger:focus-visible {
  color: #1d4ed8;
  background: transparent;
  box-shadow: none;
  outline: 2px solid rgba(37, 99, 235, 0.28);
  outline-offset: 2px;
}

.verification-review_required .status-icon-circle {
  color: #d97706;
  background: #FFF7ED;
}

.verification-review_required .status-text {
  color: #B45309;
}

.status-failed .status-icon-circle {
  color: #DC2626;
  background: #FEF2F2;
}

.status-failed .status-text {
  color: #DC2626;
}

.step-two-workspace .progress-track {
  width: min(100%, 150px);
  height: 3px;
  background: var(--primary-bg-strong);
  border-radius: 999px;
  overflow: hidden;
}

.step-two-workspace .progress-bar {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: inherit;
}

.row-actions {
  padding-right: 4px !important;
  padding-left: 4px !important;
  text-align: center;
  white-space: nowrap;
  min-width: 0;
  font-size: 0;
}

.row-actions .doc-action,
.row-actions form {
  display: inline-flex;
  margin: 0;
  vertical-align: middle;
}

.row-actions .doc-action + .doc-action,
.row-actions form + .doc-action,
.row-actions .doc-action + form,
.row-actions form + form {
  margin-left: 1px;
}

.row-action-col {
  text-align: center !important;
}

.doc-action i {
  font-size: 0.95rem;
}

.ghost-btn.is-disabled,
.ghost-btn[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
}

.doc-action.icon-only {
  width: 26px;
  min-width: 26px;
  height: 26px;
  min-height: 26px;
  padding: 0;
  color: var(--primary);
  background: transparent;
  border: 0;
  border-radius: 999px;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.doc-action.icon-only.primary {
  color: var(--primary);
  background: transparent;
  border-color: rgba(108, 99, 255, 0.18);
}

.doc-action.icon-only span {
  display: none;
}

.doc-action.icon-only:hover:not([disabled]) {
  transform: translateY(-1px);
  background: var(--primary-bg);
  color: var(--primary);
}

.doc-action.icon-only.primary:hover:not([disabled]) {
  color: var(--primary-dark);
  background: rgba(108, 99, 255, 0.1);
  border-color: rgba(108, 99, 255, 0.24);
}

.doc-action.icon-only.danger:hover:not([disabled]) {
  color: #7f1d1d;
  background: #fff3f2;
}

.doc-action.icon-only.review-recommended {
  color: var(--primary);
  background: var(--primary-bg);
}

.doc-action[disabled] {
  color: #9ca3af;
  background: transparent;
  border-color: transparent;
  opacity: 0.4;
  cursor: not-allowed;
}

.doc-action.icon-only.primary[disabled] {
  background: transparent;
}

.table-pagination {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  color: #6b7280;
  font-size: 0.82rem;
  font-weight: 650;
}

.table-pagination p {
  margin: 0;
}

.table-pagination-controls {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.rows-per-page {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.rows-per-page select {
  min-height: 34px;
  color: #374151;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font: inherit;
  font-weight: 750;
}

.step-two-empty {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  padding: 2.6rem 1rem;
  color: #6b7280;
  background: var(--primary-bg-soft);
  border: 1px dashed rgba(217, 215, 255, 0.72);
  border-radius: 16px;
}

.step-two-empty i {
  color: var(--primary);
  font-size: 1.5rem;
}

.step-two-empty p {
  margin: 0;
  font-weight: 700;
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.ghost-btn:hover:not(:disabled),
.ghost-btn:focus-visible:not(:disabled) {
  color: var(--primary-dark);
  background: rgba(108, 99, 255, 0.08);
  border-color: rgba(108, 99, 255, 0.2);
  transform: translateY(-1px);
}

.ghost-btn:disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.7;
}

.pagination-go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pagination-go input {
  width: 72px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.progress-track {
  position: relative;
  display: block;
  width: 100%;
  height: 8px;
  overflow: hidden;
  background: rgba(108, 99, 255, 0.12);
  border-radius: 999px;
}

.progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 999px;
  transition: width 180ms ease;
}

.progress-bar.is-indeterminate {
  width: 42%;
  animation: indeterminate-bar 1.2s ease-in-out infinite;
}

@keyframes indeterminate-bar {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(260%); }
}

.status-detail {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.25;
}

.status-detail.is-empty {
  display: none;
}

.documents-list {
  display: grid;
  gap: 12px;
  width: 100%;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.documents-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: var(--secondary);
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

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

.doc-action,
.doc-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.doc-action {
  cursor: pointer;
}

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

.doc-action.danger {
  color: var(--danger);
  background: #fff;
  border-color: #efc3bf;
}

.step-two-workspace .doc-action.icon-only {
  color: var(--primary);
  background: transparent;
  border: 0;
  border-radius: 999px;
}

.step-two-workspace .doc-action.icon-only.danger {
  color: var(--primary);
  background: transparent;
  border: 0;
}

.step-two-workspace .doc-action.icon-only.danger:hover:not([disabled]) {
  color: #991b1b;
  background: #fff3f2;
}

.review-shell {
  display: grid;
  gap: 18px;
}

.review-screen {
  min-height: calc(100vh - var(--nav-height) - 16px);
}

.review-flex {
  display: flex;
  min-height: calc(100vh - var(--nav-height) - 16px);
  background: var(--surface);
  gap: 0;
}

.review-preview-panel,
.review-table-panel {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.review-preview-panel {
  flex-basis: 35%;
}

.review-table-panel {
  flex-basis: 65%;
  padding: 0 18px 18px;
}

.review-resizer {
  width: 6px;
  background: linear-gradient(0deg, rgba(148, 163, 184, 0.3), rgba(148, 163, 184, 0.6));
  cursor: col-resize;
}

.review-resizer:hover,
.review-resizer.is-dragging {
  background: var(--primary);
}

.review-preview-header {
  padding: 14px 18px 10px;
  border-bottom: 1px solid #eef2f7;
  background: #fff;
}

.preview-doc-name {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.preview-stage {
  flex: 1;
  min-height: 74vh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
  background: #f8fafc;
}

.document-frame,
.document-preview-image {
  width: 100%;
  height: 100%;
  border: none;
  object-fit: contain;
  background: #fff;
}

.review-table-actions {
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 0 -18px 8px;
  padding: 8px 18px 8px;
  min-height: var(--review-toolbar-height);
  background: var(--primary-bg-strong);
  border-bottom: 1px solid var(--primary-border);
}

.review-table-primary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1 1 auto;
}

.review-buttons,
.review-account-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.review-buttons {
  justify-content: flex-start;
}

.review-move-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.review-move-select {
  min-width: 220px;
  min-height: 38px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 0.88rem;
}

.review-move-select:focus {
  outline: none;
  border-color: var(--primary-border);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.08);
}

.icon-btn {
  gap: 8px;
}

.review-close-corner {
  border: none;
  background: transparent;
  color: #b91c1c;
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
}

.review-close-corner:hover,
.review-close-corner:focus-visible {
  color: #991b1b;
  background: rgba(239, 68, 68, 0.12);
}

.review-panel-header {
  margin-bottom: 8px;
}

.review-record-count {
  margin: 0 0 10px;
  text-align: right;
  font-size: 0.82rem;
}

.review-account-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: auto;
  padding-right: 4px;
}

.review-account-section {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.review-account-section.is-edited {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 2px rgba(129, 140, 248, 0.2);
}

.review-account-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.review-account-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.review-account-actions {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
}

.review-account-status {
  justify-self: center;
  max-width: 100%;
  font-size: 0.95rem;
  font-weight: 850;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  overflow-wrap: anywhere;
  white-space: normal;
}

.review-account-status.status-ok {
  color: #16a34a;
}

.review-account-status.status-warn {
  color: #dc2626;
}

.review-account-status.status-unknown {
  color: #64748b;
}

.review-account-status.status-ready {
  align-items: flex-start;
  flex-direction: column;
  gap: 2px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #1d4ed8;
  line-height: 1.25;
  white-space: normal;
}

.review-account-status-label {
  color: #1d4ed8;
  font-weight: 850;
}

.review-account-status-helper {
  color: #2563eb;
  font-size: 0.82rem;
  font-weight: 700;
}

.review-account-input {
  flex: 0 1 auto;
  border: 1px solid #d6deea;
  border-radius: 0.45rem;
  background: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.2rem 0.35rem;
  min-width: 10ch;
  max-width: min(32rem, 100%);
  color: inherit;
}

.review-account-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.review-account-input.is-dirty {
  border-color: var(--primary);
  color: var(--primary);
}

.review-account-type {
  flex: 0 0 auto;
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid #d6deea;
  border-radius: 0.45rem;
  padding: 0.2rem 0.45rem;
  background: #fff;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 650;
}

.review-account-currency {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.86rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.review-account-currency input {
  width: 3.5rem;
  border: 1px solid #d6deea;
  border-radius: 0.45rem;
  padding: 0.2rem 0.35rem;
  font: inherit;
  font-weight: 600;
  text-transform: uppercase;
  background: #fff;
}

.review-account-currency input.is-dirty {
  border-color: var(--primary);
  color: var(--primary);
}

.review-account-type-field {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.86rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.review-account-type-field input {
  width: 6rem;
  border: 1px solid #d6deea;
  border-radius: 0.45rem;
  padding: 0.2rem 0.45rem;
  font: inherit;
  font-weight: 600;
  background: #fff;
}

.review-account-type-field input.is-dirty {
  border-color: var(--primary);
  color: var(--primary);
}

.review-table-scroll {
  max-height: 70vh;
  overflow: auto;
  padding: 0 14px 14px;
}

.review-table-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #dbe3f0;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.12);
  color: #4b5563;
  font-size: 0.8rem;
}

.review-row-action-header,
.review-row-action-cell {
  width: 1%;
  white-space: nowrap;
  text-align: center;
}

.review-table th.review-row-action-header,
.review-table td.review-row-action-cell {
  padding-left: 4px;
  padding-right: 4px;
}

.review-input {
  width: 100%;
  border: none;
  border-radius: 0.4rem;
  padding: 0.22rem 0.34rem;
  background: transparent;
  font-size: 0.88rem;
  box-shadow: none;
}

.review-input:focus {
  outline: none;
  border: 1px solid var(--accent);
  background: #f8fbff;
  border-radius: 0.4rem;
  box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.16);
}

.review-input--textarea {
  min-height: 2rem;
  max-height: 2.6rem;
  line-height: 1.35;
  resize: none;
  overflow: hidden;
}

.review-input--textarea.is-collapsed:not(.is-expanded):not(.review-input--editing) {
  min-height: 2rem;
  max-height: 2rem;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.review-input--textarea.is-expanded,
.review-input--textarea:focus,
.review-input--textarea.review-input--editing {
  min-height: 4rem;
  max-height: none;
  resize: vertical;
}

.review-table-actions .ghost-btn,
.review-table-actions .primary-btn,
.review-table-actions .review-move-select {
  font-size: 0.82rem;
}

.review-row-move,
.review-row-delete {
  border: none;
  background: rgba(148, 163, 184, 0.1);
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.4rem;
  border-radius: 0.55rem;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.review-row-move:hover,
.review-row-move:focus-visible {
  color: #1d4ed8;
  background: rgba(59, 130, 246, 0.16);
  transform: scale(1.08);
}

.review-row-delete:hover,
.review-row-delete:focus-visible {
  color: #991b1b;
  background: rgba(239, 68, 68, 0.16);
  transform: scale(1.08);
}

.review-row-move:disabled,
.review-row-delete:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.review-row-dirty {
  background: #fef3c7 !important;
}

.review-row-selected {
  outline: 2px solid var(--primary);
}

.review-row-deleted {
  opacity: 0.45;
  text-decoration: line-through;
}

.review-row-mismatch {
  background: #fee2e2 !important;
  position: relative;
}

.review-row-mismatch-focus {
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.45);
}

.review-row-mismatch-detail td {
  padding-top: 0;
  padding-bottom: 0.55rem;
  background: #fff7f7;
}

.review-row-mismatch-detail-cell {
  color: #b91c1c;
  font-size: 0.82rem;
  font-weight: 600;
  border-top: none !important;
}

.review-header,
.review-table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
}

.review-form {
  display: grid;
  gap: 16px;
}

.review-table-wrap {
  overflow-x: auto;
}

.review-table {
  width: 100%;
  border-collapse: collapse;
}

.review-table th,
.review-table td {
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.review-table th {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  background: var(--secondary);
}

.review-table td {
  font-size: 0.88rem;
}

.review-table td input,
.review-table td textarea {
  width: 100%;
  min-height: 34px;
  padding: 6px 8px;
  color: var(--ink);
  background: transparent;
  border: none;
  border-radius: 0;
  font: inherit;
  box-shadow: none;
}

.review-table td textarea {
  min-height: 72px;
  resize: vertical;
}

.review-table td .review-input,
.review-table td .review-input--textarea {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.review-table td .review-input:focus,
.review-table td .review-input--textarea:focus {
  background: #f8fbff;
  border: 1px solid var(--accent);
  border-radius: 0.4rem;
  box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.16);
}

.review-footer {
  display: flex;
  justify-content: flex-end;
}

.settings-shell {
  display: grid;
  place-items: start center;
}

.settings-card {
  width: min(100%, 560px);
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.settings-form {
  margin-top: 22px;
}

.muted-text {
  color: var(--muted);
}

.file-picker input[type="file"] {
  display: none;
}

.selected-file {
  color: var(--muted);
  font-size: 0.9rem;
}

.upload-icon {
  display: grid;
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  place-items: center;
  color: var(--accent);
  border: 2px dashed var(--accent);
  border-radius: 50%;
  font-size: 2rem;
  font-weight: 300;
}

.summary-panel {
  padding: 22px;
}

.summary-panel dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.summary-panel div {
  display: flex;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.summary-panel dt {
  color: var(--muted);
}

.summary-panel dd {
  margin: 0;
  font-weight: 800;
}

.recent-documents {
  margin-top: 24px;
}

.recent-documents h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.recent-documents ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.recent-documents li + li {
  margin-top: 8px;
}

.document-meta {
  color: var(--muted);
  font-size: 0.85rem;
}

.document-error {
  margin-top: 8px;
  padding: 8px 12px;
  color: var(--danger);
  background: var(--danger-bg);
  border: 1px solid #f2c2bd;
  border-radius: 6px;
  font-size: 0.85rem;
}

.document-error strong {
  display: block;
  margin-bottom: 4px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  width: fit-content;
  max-width: 100%;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status-failed {
  color: var(--danger);
  background: var(--danger-bg);
}

.status-processing {
  color: #1d4ed8;
  background: #dbeafe;
}

.status-queued {
  color: #1d4ed8;
  background: #dbeafe;
}

.status-processed {
  color: #0f5132;
  background: #d1e7dd;
}

.verification-not_applicable {
  color: #1d4ed8;
  background: #dbeafe;
}

.verification-review_required {
  color: #92400e;
  background: #fef3c7;
}

@media (max-width: 760px) {



  .auth-panel {
    padding: 28px;
  }

  .auth-panel.compact {
    padding: 30px;
  }

  body.auth-screen .auth-page {
    align-content: center;
    padding: 0 14px 54px;
  }

  body.auth-screen .auth-panel {
    padding: 36px 20px 40px;
    border-radius: 18px;
  }

  body.auth-screen .auth-panel h1 {
    font-size: 1.9rem;
  }

  body.auth-screen .auth-panel .lede {
    margin-bottom: 22px;
    font-size: 1rem;
  }

  body.auth-screen .auth-reassurance {
    font-size: 0.92rem;
  }

  body.auth-screen .auth-form {
    margin-top: 28px;
  }

  body.auth-screen .input-shell {
    grid-template-columns: 52px minmax(0, 1fr) auto auto;
    min-height: 68px;
  }

  body.auth-screen .input-shell input {
    min-height: 66px;
    font-size: 1.05rem;
  }

  body.auth-screen .input-icon {
    width: 52px;
  }

  body.auth-screen .field-icon-svg {
    width: 22px;
    height: 22px;
  }

  body.auth-screen .arrow-action.in-field {
    width: 50px;
    height: 50px;
    margin-right: 8px;
    font-size: 1.55rem;
  }

  body.auth-screen .divider {
    gap: 14px;
    margin: 26px 0 22px;
  }

  body.auth-screen .google-action {
    min-height: 64px;
    gap: 14px;
    font-size: 1.05rem;
  }

  body.auth-screen .auth-legal {
    margin-top: 26px;
    font-size: 0.88rem;
  }

  h1 {
    font-size: 2rem;
  }

  .app-nav,
  .workspace {
    display: grid;
    grid-template-columns: 1fr;
  }

  .app-nav-left,
  .app-nav-right,
  .app-nav-links {
    flex-wrap: wrap;
  }

  .app-nav-center {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .documents-list-item {
    display: grid;
    justify-content: stretch;
  }

  .documents-header,
  .table-pagination,
  .workspace {
    display: grid;
    grid-template-columns: 1fr;
  }

  .convert-column-resizer {
    display: none;
  }

  .convert-upload-panel,
  .convert-documents-panel {
    flex-basis: auto !important;
    min-width: 0;
  }

  .ai-processing-strip {
    min-height: 0;
    gap: 0.9rem;
  }

  .step-two-summary {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .ai-strip-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(217, 215, 255, 0.72), transparent);
  }

  .ai-status-copy {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.45rem;
  }

  .ai-status-text-group .ai-status-breakdown-line {
    max-width: 100%;
    line-height: 1.55;
    overflow-wrap: normal;
  }

  .compatibility-grid,
  .homepage-proof-grid,
  .footer-links-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-brand-tagline {
    white-space: normal;
  }

  .footer-socials {
    margin-left: 0;
  }

  .homepage-proof-grid div {
    border-left: 0;
    border-top: 0;
    padding: 0.75rem 0 0;
  }

  .homepage-proof-grid div:first-child {
    border-top: 0;
  }

  .homepage-footer-inner {
    padding: 1rem 1.5rem 1.55rem;
  }

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

  .review-header {
    display: grid;
  }

  .page-header-row {
    display: grid;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .homepage-footer,
  .homepage-footer-inner,
  .footer-brand-row,
  .footer-brand-block,
  .footer-brand-tagline,
  .footer-links-grid,
  .footer-bottom {
    max-width: 100%;
    min-width: 0;
  }

  .footer-brand-row,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-brand-tagline {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .footer-links-grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .footer-links-grid a {
    width: auto;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .trust-strip {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 16px 24px;
  }

  .trust-strip-item {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr);
    width: 100%;
    min-width: 0;
  }

  .trust-strip-divider {
    width: 100%;
    height: 1px;
    margin: 12px 0;
  }

  .trust-strip-copy span,
  .trust-strip-copy strong {
    overflow-wrap: normal;
    word-break: normal;
  }
}


@media (max-width: 1024px) {
  .page-review .app-shell-wide {
    padding: 8px var(--page-gutter-tablet) 16px;
  }

  .review-screen,
  .review-flex {
    min-height: auto;
  }

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

  .review-preview-panel,
  .review-table-panel {
    width: 100%;
    min-width: 0;
  }

  .review-preview-panel {
    max-height: 34vh;
  }

  .preview-stage {
    min-height: 220px;
  }

  .review-resizer {
    display: none;
  }

  .review-table-panel {
    padding: 0 12px 12px;
  }

  .review-table-actions {
    position: static;
    margin-inline: -12px;
    padding-inline: 12px;
  }

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

  .review-account-title {
    flex-wrap: wrap;
  }

  .review-account-status {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
    max-width: 100%;
    white-space: normal;
  }

  .review-account-actions {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (max-width: 767px) {
  .page-review .app-shell-wide {
    padding: 8px var(--page-gutter-mobile) 16px;
  }

  .review-flex {
    gap: 10px;
  }

  .review-preview-panel {
    max-height: none;
  }

  .preview-stage {
    min-height: 120px;
    max-height: 22vh;
  }

  .review-table-primary,
  .review-buttons,
  .review-account-tools,
  .review-move-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .review-table-actions .ghost-btn,
  .review-table-actions .review-move-select {
    width: 100%;
    justify-content: center;
  }

  .review-close-corner {
    position: absolute;
    top: 8px;
    right: 10px;
    min-width: 44px;
    min-height: 44px;
  }

  .review-table-actions {
    position: relative;
    padding-right: 58px;
  }

  .review-account-header {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .review-account-title,
  .review-account-status,
  .review-account-actions {
    grid-column: 1;
    justify-self: stretch;
  }

  .review-account-actions .ghost-btn {
    width: 100%;
    justify-content: center;
  }

  .review-account-input {
    width: 100%;
    max-width: 100%;
  }

  .review-account-currency {
    width: 100%;
  }

  .review-account-currency input {
    flex: 1 1 auto;
    min-width: 0;
  }

  .review-table-scroll {
    padding-inline: 8px;
    overflow-x: visible;
  }

  .review-table {
    display: block;
    min-width: 0;
    width: 100%;
  }

  .review-table thead {
    display: none;
  }

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

  .review-table tr.review-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
  }

  .review-table tr.review-row-deleted {
    display: none;
  }

  .review-table td {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 0;
    border: 0;
  }

  .review-table td::before {
    content: attr(data-label);
    color: #64748b;
    font-size: 0.74rem;
    font-weight: 800;
  }

  .review-table td.review-row-action-cell {
    grid-template-columns: minmax(0, 1fr);
  }

  .review-table td.review-row-action-cell::before {
    display: none;
  }

  .review-row-move,
  .review-row-delete {
    width: 100%;
    min-height: 38px;
  }

  .review-input,
  .review-input--textarea {
    min-width: 0;
    width: 100%;
    border: 1px solid #e2e8f0;
    background: #fff;
  }

  .review-input--textarea.is-collapsed:not(.is-expanded):not(.review-input--editing) {
    white-space: normal;
    text-overflow: clip;
  }

  .review-row-mismatch-detail {
    display: block;
  }

  .review-row-mismatch-detail td {
    display: block;
    padding: 8px 10px;
  }

  .review-row-mismatch-detail td::before {
    display: none;
  }
}

@media (max-width: 1199px) {
  :root {
    --page-gutter: var(--page-gutter-tablet);
    --card-gap: var(--card-gap-tablet);
  }

  .app-nav {
    gap: 14px;
    padding-inline: var(--page-gutter-tablet);
  }

  .app-brand-logo,
  .footer-brand-logo {
    width: 68px;
    height: 46px;
  }

  .app-nav-desktop-links .app-nav-utility {
    padding-inline: 9px;
    font-size: 0.9rem;
  }

  .app-login-button {
    padding-inline: 18px;
  }

  .app-shell-wide {
    padding-inline: var(--page-gutter-tablet);
  }

  .convert-workspace {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--card-gap-tablet);
  }

  .convert-column-resizer {
    display: none;
  }

  .convert-upload-panel,
  .convert-documents-panel {
    flex-basis: auto !important;
    width: 100%;
    min-width: 0;
  }

  .upload-usage-bar {
    flex-wrap: wrap;
    justify-content: center;
    white-space: normal;
  }

  .documents-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 1100px) {
  .app-nav-desktop-links,
  .app-nav-right > .app-login-button,
  .app-nav-right > .user-menu {
    display: none;
  }

  .app-mobile-menu {
    display: block;
  }
}

@media (max-width: 767px) {
  :root {
    --nav-height: 64px;
    --page-gutter: var(--page-gutter-mobile);
    --section-y: var(--section-y-mobile);
    --card-gap: var(--card-gap-mobile);
  }

  html {
    scroll-padding-top: calc(var(--nav-height) + 14px);
  }

  .app-nav {
    display: flex;
    grid-template-columns: none;
    min-height: var(--nav-height);
    margin-bottom: 8px;
    padding: 8px var(--page-gutter-mobile);
  }

  .app-nav-left,
  .app-nav-right {
    min-width: 0;
    flex-wrap: nowrap;
  }

  .app-nav-left {
    flex: 1 1 auto;
  }

  .app-nav-right {
    flex: 0 0 auto;
    gap: 8px;
  }

  .app-brand {
    min-width: 0;
  }

  .app-brand-logo {
    width: 56px;
    height: 40px;
  }

  .app-brand-name {
    font-size: 0.78rem;
  }

  .app-nav-desktop-links,
  .app-nav-right > .app-login-button,
  .app-nav-right > .user-menu {
    display: none;
  }

  .app-mobile-menu {
    display: block;
  }

  .language-selector-trigger {
    min-height: var(--tap-target);
    padding-inline: 10px;
  }

  .language-selector-menu {
    position: fixed;
    top: calc(var(--nav-height) + 8px);
    right: var(--page-gutter-mobile);
    width: min(300px, calc(100vw - 32px));
    max-height: calc(100vh - var(--nav-height) - 20px);
    overflow: auto;
  }

  body.auth-screen .app-nav {
    padding-inline: var(--page-gutter-mobile);
  }

  body.auth-screen .app-mobile-menu {
    display: none;
  }

  body.auth-screen .auth-page {
    min-height: calc(100vh - var(--nav-height));
    padding: 10px var(--page-gutter-small) 44px;
  }

  body.auth-screen .auth-panel {
    width: 100%;
    padding: 34px 18px 32px;
  }

  body.auth-screen .auth-panel h1 {
    font-size: var(--section-title-mobile);
  }

  .auth-close {
    top: 12px;
    right: 12px;
  }

  .auth-form,
  .google-action,
  .input-shell {
    width: 100%;
  }

  .app-shell,
  .app-shell-wide {
    padding-inline: var(--page-gutter-mobile);
  }

  .hero-title {
    font-size: var(--hero-title-mobile);
    overflow-wrap: anywhere;
  }

  .hero-meta {
    display: grid;
    gap: 6px;
  }

  .hero-meta .separator {
    display: none;
  }

  .workspace,
  .documents-header,
  .table-pagination {
    display: grid;
    grid-template-columns: 1fr;
  }

  .upload-zone {
    padding: 1rem;
  }

  .upload-usage-bar {
    align-items: center;
    gap: 0.45rem 0.6rem;
    text-align: center;
  }

  .no-signup-required-hint,
  .statement-region-control select,
  .region-combobox-input {
    min-height: var(--tap-target);
  }

  .dropzone {
    min-height: 300px;
  }

  .dropzone-choose,
  .primary-action,
  .secondary-action,
  .bulk-export-action,
  .bulk-delete-action {
    min-height: var(--tap-target);
  }

  .document-bulk-actions,
  .documents-table-toolbar {
    width: 100%;
  }

  .bulk-export-action,
  .bulk-delete-action {
    justify-content: center;
    flex: 1 1 160px;
  }

  .review-table-wrap,
  .review-table-scroll {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .review-table {
    min-width: 820px;
  }

  .review-table-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .review-buttons,
  .review-account-tools {
    width: 100%;
    flex-wrap: wrap;
  }


  .trust-strip {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
    width: 100%;
    padding: 14px 16px;
    overflow: hidden;
  }

  .trust-strip-item {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
    width: 100%;
    min-width: 0;
    align-items: center;
    justify-content: stretch;
  }

  .trust-strip-divider {
    width: 100%;
    height: 1px;
    margin: 12px 0;
  }

  .trust-strip-icon {
    width: 56px;
    height: 56px;
  }

  .trust-strip-copy {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .trust-strip-copy strong {
    font-size: 1rem;
    line-height: 1.2;
    overflow-wrap: normal;
    word-break: normal;
  }

  .trust-strip-copy span {
    font-size: 0.88rem;
    line-height: 1.35;
    overflow-wrap: normal;
    word-break: normal;
  }

  .hero-eyebrow {
    font-weight: 700;
    letter-spacing: 0.06em;
  }

  .hero-title {
    font-family: var(--font-sans);
    font-weight: 760;
    letter-spacing: 0;
    line-height: 1.12;
  }

  .hero-meta {
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.28;
  }

  .ai-step-heading h2,
  .convert-panel-header h2,
  .dropzone-main {
    font-family: var(--font-sans);
    font-weight: 760;
    letter-spacing: 0;
  }

  .upload-usage-bar,
  .region-combobox-input,
  .statement-region-control label,
  .dropzone .statement-region-control label {
    font-family: var(--font-sans);
    font-weight: 680;
    letter-spacing: 0;
  }

  .muted-text,
  .statement-support-card,
  .ai-step-description,
  .ai-status-copy {
    font-family: var(--font-sans);
    font-weight: 450;
    letter-spacing: 0;
  }

  .homepage-footer-inner {
    padding-inline: var(--page-gutter-mobile);
  }

  .footer-brand-row,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links-grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .footer-links-grid a {
    display: inline-flex;
    min-height: var(--tap-target);
    align-items: center;
  }
}

@media (max-width: 479px) {
  :root {
    --page-gutter: var(--page-gutter-small);
  }

  .app-nav {
    padding-inline: var(--page-gutter-small);
  }

  .app-brand-logo {
    width: 50px;
    height: 36px;
  }

  .app-brand-name {
    font-size: 0.72rem;
  }

  .language-selector-trigger {
    gap: 5px;
    padding-inline: 8px;
    font-size: 0.84rem;
  }

  .language-selector-trigger .language-globe-icon,
  .language-selector-trigger .fa-chevron-down {
    display: none;
  }

  .app-mobile-menu-panel {
    right: calc(-1 * var(--page-gutter-small));
    width: calc(100vw - 32px);
  }

  .auth-panel,
  body.auth-screen .auth-panel {
    border-radius: 14px;
  }

  body.auth-screen .input-shell {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    min-height: 58px;
  }

  body.auth-screen .input-shell input {
    min-height: 56px;
    font-size: 0.98rem;
  }

  body.auth-screen .input-icon {
    width: 44px;
  }

  body.auth-screen .arrow-action.in-field {
    width: 44px;
    height: 44px;
    margin-right: 6px;
  }
}
