:root {
  --bg: #fffaf5;
  --bg-soft: #f6f7ff;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --surface-dark: #0f1224;
  --line: rgba(78, 64, 136, 0.12);
  --text: #1f1830;
  --muted: #6f678a;
  --primary: #5b4dff;
  --primary-strong: #4534f0;
  --accent: #ff8b4d;
  --success: #3cbf7f;
  --warning: #f4b534;
  --shadow-xl: 0 28px 80px rgba(57, 33, 122, 0.14);
  --shadow-lg: 0 18px 44px rgba(57, 33, 122, 0.1);
  --shadow-md: 0 10px 24px rgba(57, 33, 122, 0.08);
  --radius-xxl: 32px;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 12px;
  --font-body: "Trebuchet MS", "Segoe UI", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at 8% 6%, rgba(255, 143, 92, 0.2), transparent 30%),
    radial-gradient(circle at 92% 10%, rgba(91, 77, 255, 0.16), transparent 30%),
    radial-gradient(circle at 52% 100%, rgba(68, 191, 138, 0.1), transparent 28%),
    linear-gradient(180deg, #fffaf5 0%, #f7f8ff 44%, #fffdf9 100%);
  min-height: 100vh;
}

.app-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 120;
  max-width: min(520px, calc(100vw - 32px));
  transform: translateX(-50%) translateY(16px);
  opacity: 0;
  pointer-events: none;
  padding: 14px 18px;
  border: 1px solid rgba(91, 61, 245, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #201b3f;
  font-weight: 800;
  box-shadow: 0 24px 70px rgba(37, 31, 97, 0.18);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.app-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

img {
  max-width: 100%;
  display: block;
}

[hidden] {
  display: none !important;
}

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

button,
select,
input {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
}

button:disabled,
.btn:has(input):disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

code {
  font-family: "Cascadia Code", "Consolas", monospace;
  background: rgba(91, 77, 255, 0.08);
  color: var(--primary-strong);
  border-radius: 8px;
  padding: 0.15rem 0.4rem;
}

.site-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 42px;
}

.site-shell.wide {
  width: min(1440px, calc(100% - 28px));
}

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

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(55, 34, 112, 0.08);
  position: sticky;
  top: 14px;
  z-index: 20;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 34px;
  height: 30px;
  border-radius: 0;
  background: transparent;
  position: relative;
  transform: none;
  box-shadow: none;
}

.brand-mark::after {
  content: none;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.96rem;
  color: var(--muted);
}

.main-nav a {
  position: relative;
  padding: 8px 0;
}

.main-nav a.is-active,
.main-nav a:hover {
  color: var(--text);
}

.main-nav a.is-active::after,
.main-nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ghost-link {
  color: var(--muted);
  font-size: 0.95rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #6f61ff 0%, #4b3af7 100%);
  box-shadow: 0 16px 28px rgba(75, 58, 247, 0.26);
}

.btn-dark {
  color: #fff;
  background: linear-gradient(135deg, #131424 0%, #26294f 100%);
  box-shadow: 0 14px 28px rgba(21, 22, 40, 0.26);
}

.btn-soft {
  color: var(--text);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(88, 71, 150, 0.12);
  box-shadow: var(--shadow-md);
}

.btn.block {
  width: 100%;
}

.btn.is-disabled,
.btn[aria-disabled="true"] {
  opacity: 0.56;
  pointer-events: none;
}

.avatar-chip {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(255, 143, 92, 0.18), rgba(91, 77, 255, 0.16));
  font-weight: 800;
  color: var(--primary-strong);
}

.hero-card,
.section-card,
.page-hero,
.compare-table-card,
.cta-banner,
.results-shell {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: var(--radius-xxl);
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(22px);
}

.hero-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  padding: 42px;
  overflow: hidden;
}

.hero-copy h1,
.page-hero h1 {
  margin: 16px 0 14px;
  font-size: clamp(2.7rem, 5vw, 4.7rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.headline-accent {
  background: linear-gradient(90deg, #4434f0 0%, #5e7eff 48%, #ff7f4b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-description,
.page-hero p,
.section-heading p,
.feature-card p,
.pain-card p,
.workflow-step p,
.metric-card p,
.pricing-header p,
.faq-answer,
.selection-hint,
.upload-preview-copy p,
.upload-step-title p,
.cta-note,
.support-illustration span {
  color: var(--muted);
  line-height: 1.72;
}

.eyebrow-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(91, 77, 255, 0.12);
  color: var(--primary-strong);
  font-size: 0.92rem;
  font-weight: 800;
}

.eyebrow-soft {
  background: rgba(255, 143, 92, 0.12);
  color: #c06334;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.stat-inline {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px dashed rgba(91, 77, 255, 0.22);
}

.hero-stage {
  display: flex;
  align-items: center;
}

.showcase-flow {
  width: 100%;
  display: grid;
  gap: 16px;
}

.showcase-card {
  min-height: 198px;
  border-radius: 26px;
  padding: 18px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.showcase-card.light {
  background: linear-gradient(180deg, #ffffff 0%, #fdf8f4 100%);
}

.showcase-card.dark {
  background: linear-gradient(180deg, #161932 0%, #080a17 100%);
}

.showcase-card.transparent,
.result-thumb {
  background:
    linear-gradient(45deg, rgba(91, 77, 255, 0.08) 25%, transparent 25%) 0 0 / 18px 18px,
    linear-gradient(-45deg, rgba(91, 77, 255, 0.08) 25%, transparent 25%) 0 0 / 18px 18px,
    linear-gradient(45deg, transparent 75%, rgba(91, 77, 255, 0.08) 75%) 0 0 / 18px 18px,
    linear-gradient(-45deg, transparent 75%, rgba(91, 77, 255, 0.08) 75%) 0 0 / 18px 18px,
    #fbfbff;
}

.showcase-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
  font-weight: 800;
}

.showcase-card.dark .showcase-label {
  color: #fff;
}

.showcase-label small {
  color: rgba(111, 103, 138, 0.9);
}

.showcase-card.dark .showcase-label small {
  color: rgba(255, 255, 255, 0.62);
}

.preview-image {
  width: 100%;
  height: 232px;
  object-fit: cover;
  object-position: center top;
  border-radius: 18px;
}

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

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

.mini-icon-card {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid rgba(80, 66, 136, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  animation: float-in 0.5s ease both;
  animation-delay: var(--delay, 0s);
}

.mini-icon-card.light {
  background: rgba(255, 255, 255, 0.92);
}

.mini-icon-card.dark {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.mini-icon-card img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(40, 25, 98, 0.1));
}

.metric-grid,
.pricing-grid,
.feature-grid,
.pain-grid,
.workflow-grid {
  display: grid;
  gap: 18px;
}

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

.metric-card,
.feature-card,
.pain-card,
.workflow-step,
.pricing-card,
.side-card,
.faq-support-card {
  border-radius: 24px;
  padding: 24px;
  background: var(--surface-strong);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-lg);
}

.metric-kicker {
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.metric-card strong,
.feature-card h3,
.pain-card strong,
.workflow-step h3,
.pricing-header h2,
.faq-support-card h3,
.upload-step-title h2 {
  display: block;
  margin: 10px 0 8px;
  font-size: 1.22rem;
}

.section-card,
.compare-table-card {
  padding: 34px;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 14px 0 10px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.pain-grid,
.feature-grid,
.workflow-grid,
.pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-icon,
.step-number,
.step-badge {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 143, 92, 0.18), rgba(91, 77, 255, 0.18));
  color: var(--primary-strong);
  font-weight: 900;
}

.workflow-step {
  position: relative;
}

.workflow-step::after {
  content: "";
  position: absolute;
  inset: auto 24px 0 auto;
  width: 80px;
  height: 80px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 143, 92, 0.2), transparent 70%);
}

.cta-banner {
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cta-banner h2 {
  margin: 14px 0 0;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.page-hero {
  text-align: center;
  padding: 36px;
}

.page-hero.compact {
  padding: 28px 24px;
}

.page-hero h1 {
  font-size: clamp(2.3rem, 4vw, 3.6rem);
}

.upload-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
}

.upload-main {
  display: grid;
  gap: 20px;
}

.upload-panel {
  padding: 28px;
  border-radius: var(--radius-xxl);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-xl);
}

.upload-step-title {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.dropzone {
  min-height: 214px;
  border-radius: 24px;
  border: 2px dashed rgba(91, 77, 255, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 248, 255, 0.92));
  display: grid;
  place-items: center;
  text-align: center;
  gap: 10px;
  padding: 24px;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.dropzone:hover {
  transform: translateY(-2px);
  border-color: rgba(91, 77, 255, 0.4);
  box-shadow: var(--shadow-md);
}

.dropzone input {
  display: none;
}

.dropzone-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(255, 143, 92, 0.2), rgba(91, 77, 255, 0.2));
  color: var(--primary);
  font-size: 1.8rem;
  font-weight: 900;
}

.upload-preview-box {
  margin-top: 16px;
  border-radius: 22px;
  border: 1px solid rgba(74, 61, 134, 0.1);
  background: rgba(255, 255, 255, 0.78);
  padding: 18px;
  display: grid;
  gap: 16px;
}

.upload-preview-box.dark {
  background: #111526;
  color: #fff;
}

.upload-preview-box.dark .upload-preview-copy p,
.upload-preview-box.dark .upload-preview-copy strong {
  color: rgba(255, 255, 255, 0.86);
}

.upload-preview-box.has-image {
  grid-template-columns: 140px 1fr;
  align-items: center;
}

.algorithm-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: min(620px, 100%);
  margin: 16px auto 0;
}

.algorithm-toggle label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-height: 72px;
  padding: 14px 16px;
  border: 1px solid rgba(91, 77, 255, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 28px rgba(47, 43, 108, 0.08);
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.algorithm-toggle label:hover {
  transform: translateY(-1px);
  border-color: rgba(91, 77, 255, 0.3);
}

.algorithm-toggle input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--primary);
}

.algorithm-toggle label:has(input:checked) {
  border-color: rgba(91, 77, 255, 0.72);
  box-shadow: 0 18px 40px rgba(91, 77, 255, 0.16);
}

.algorithm-toggle strong,
.algorithm-toggle small {
  display: block;
}

.algorithm-toggle strong {
  color: #18143d;
  font-size: 0.98rem;
}

.algorithm-toggle small {
  margin-top: 3px;
  color: #667095;
  line-height: 1.45;
}

.upload-algorithm-toggle {
  width: 100%;
  margin-top: 16px;
}

.preview-thumb {
  width: 140px;
  height: 140px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-md);
}

.preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-cta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(247, 248, 255, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-lg);
}

.cta-note strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
}

.check-list,
.bullet-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.check-list li,
.bullet-list li {
  position: relative;
  padding-left: 28px;
  line-height: 1.6;
  color: var(--muted);
}

.check-list li::before,
.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.check-list li::before {
  background: linear-gradient(145deg, var(--success), #7ae0a9);
}

.bullet-list li::before {
  background: linear-gradient(145deg, var(--accent), #ffd15a);
}

.results-shell {
  padding: 26px;
}

.result-toolbar,
.results-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.filter-pills,
.result-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pill,
.chip-button,
.chip-select {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(91, 77, 255, 0.14);
  color: var(--muted);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.pill.active {
  background: rgba(91, 77, 255, 0.12);
  color: var(--primary-strong);
  border-color: rgba(91, 77, 255, 0.2);
}

.chip-select select {
  border: 0;
  background: transparent;
  color: var(--text);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0;
}

.result-card {
  position: relative;
  border-radius: 22px;
  border: 1px solid rgba(91, 77, 255, 0.12);
  background: rgba(255, 255, 255, 0.9);
  padding: 14px;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.result-card:hover {
  transform: translateY(-3px);
  border-color: rgba(91, 77, 255, 0.24);
  box-shadow: 0 16px 28px rgba(57, 33, 122, 0.12);
}

.result-card.is-selected {
  border-color: rgba(91, 77, 255, 0.34);
  box-shadow: 0 18px 32px rgba(75, 58, 247, 0.12);
}

.result-card-toggle {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 0;
}

.selection-dot {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(91, 77, 255, 0.14);
  color: var(--primary-strong);
  font-size: 0.85rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.result-thumb {
  height: 150px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}

.result-thumb img {
  width: 92px;
  height: 92px;
  object-fit: contain;
}

.result-meta strong {
  display: block;
  margin-bottom: 4px;
}

.result-meta span {
  color: var(--muted);
  font-size: 0.92rem;
}

.pricing-card {
  position: relative;
  overflow: hidden;
}

.pricing-card.featured {
  background:
    linear-gradient(180deg, rgba(91, 77, 255, 0.12), rgba(255, 255, 255, 0.94)),
    rgba(255, 255, 255, 0.94);
  border-color: rgba(91, 77, 255, 0.24);
}

.featured-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  color: #fff;
  padding: 7px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.84rem;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 18px 0 22px;
}

.price-row strong {
  font-size: 3rem;
  line-height: 1;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
}

.compare-table th,
.compare-table td {
  padding: 18px 16px;
  text-align: center;
  border-bottom: 1px solid rgba(91, 77, 255, 0.1);
}

.compare-table th:first-child,
.compare-table td:first-child {
  text-align: left;
  font-weight: 700;
}

.compare-table .highlight-col {
  background: rgba(91, 77, 255, 0.08);
  color: var(--primary-strong);
  font-weight: 900;
}

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

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

.faq-item {
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(91, 77, 255, 0.12);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  font-weight: 800;
  text-align: left;
}

.faq-answer {
  display: none;
  padding: 0 24px 24px;
}

.faq-item.is-open .faq-answer {
  display: block;
}

.faq-item.is-open .faq-question span {
  transform: rotate(45deg);
}

.support-illustration {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.support-illustration img {
  width: 84px;
  height: 84px;
  object-fit: contain;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
  padding: 0 8px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.reveal {
  animation: float-in 0.65s ease both;
  animation-delay: var(--delay, 0s);
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px) {
  .hero-card,
  .upload-layout,
  .faq-layout {
    grid-template-columns: 1fr;
  }

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

  .pain-grid,
  .feature-grid,
  .workflow-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .topbar {
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 28px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
  }

  .hero-card,
  .section-card,
  .compare-table-card,
  .results-shell,
  .cta-banner,
  .page-hero,
  .upload-panel {
    padding: 24px;
  }

  .cta-banner,
  .upload-cta-bar,
  .result-toolbar,
  .results-footer-bar,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

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

@media (max-width: 640px) {
  .site-shell,
  .site-shell.wide {
    width: min(100% - 16px, 100%);
  }

  .hero-copy h1,
  .page-hero h1 {
    font-size: 2.3rem;
  }

  .metric-grid,
  .results-grid {
    grid-template-columns: 1fr;
  }

  .mini-icon-grid,
  .mini-icon-grid.compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .algorithm-toggle {
    grid-template-columns: 1fr;
  }

  .upload-preview-box.has-image {
    grid-template-columns: 1fr;
  }

  .preview-thumb {
    width: 100%;
    height: 180px;
  }
}

body.home-workbench {
  --mk-ink: #0b1028;
  --mk-muted: #566082;
  --mk-line: #dfe4f5;
  --mk-primary: #6239f6;
  --mk-primary-dark: #4a23df;
  --mk-soft: #f7f8ff;
  background:
    radial-gradient(circle at 14% 18%, rgba(88, 71, 255, 0.08), transparent 30%),
    radial-gradient(circle at 82% 24%, rgba(255, 154, 90, 0.09), transparent 28%),
    linear-gradient(180deg, #fbfcff 0%, #f7f8ff 52%, #fff 100%);
  color: #080b22;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.home-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.home-upload-button {
  color: #fff;
  background: linear-gradient(135deg, #654cff 0%, #442af4 100%);
  box-shadow: 0 14px 28px rgba(75, 54, 244, 0.26);
}

.home-main {
  width: min(1260px, calc(100% - 42px));
  margin: 0 auto;
  padding: 24px 0 22px;
}

.home-hero {
  text-align: center;
}

.home-hero h1 {
  margin: 0;
  font-size: clamp(2.05rem, 3.6vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: 0;
  font-weight: 950;
}

.home-hero h1 span {
  color: #5238ff;
}

.home-hero > p {
  width: min(760px, 100%);
  margin: 10px auto 16px;
  color: #677093;
  font-size: 1rem;
  line-height: 1.55;
}

.home-uploader {
  position: relative;
  width: min(1060px, 100%);
  margin: 0 auto;
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(91, 83, 187, 0.16);
  box-shadow: 0 22px 60px rgba(50, 48, 100, 0.11);
}

.home-dropzone {
  min-height: 306px;
  border: 2px dashed rgba(89, 65, 255, 0.72);
  border-radius: 18px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 36px 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(251, 252, 255, 0.78)),
    radial-gradient(circle at center, rgba(94, 70, 255, 0.06), transparent 54%);
  cursor: pointer;
}

.home-dropzone:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 249, 255, 0.9)),
    radial-gradient(circle at center, rgba(94, 70, 255, 0.1), transparent 54%);
}

.home-dropzone input {
  display: none;
}

.home-upload-icon svg,
.home-flow svg,
.home-feature-row svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-upload-icon {
  width: 96px;
  height: 82px;
  color: #5138ff;
  display: inline-flex;
}

.home-upload-button {
  min-width: 312px;
  height: 62px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.46rem;
  font-weight: 900;
}

.home-upload-meta,
.home-upload-advice {
  display: block;
  color: #626b8f;
  font-size: 1rem;
}

.home-upload-advice {
  margin-top: -4px;
}

.home-upload-status {
  min-height: 46px;
  display: none;
  align-items: center;
  gap: 12px;
  margin: 8px auto 0;
  color: #151b48;
}

.home-upload-status[hidden] {
  display: none !important;
}

.home-upload-status.is-visible {
  display: inline-flex;
}

.home-mascot {
  position: absolute;
  right: -72px;
  bottom: -4px;
  width: 172px;
  pointer-events: none;
}

.home-mascot img {
  width: 154px;
  filter: drop-shadow(0 16px 18px rgba(39, 34, 82, 0.14));
}

.spark {
  position: absolute;
  color: #f5ad2f;
  font-weight: 900;
}

.spark-one {
  left: 0;
  top: 34px;
  font-size: 1.1rem;
}

.spark-two {
  left: 18px;
  top: 56px;
  font-size: 0.76rem;
}

.tiny-photo {
  position: absolute;
  left: 20px;
  bottom: 22px;
  width: 48px;
  height: 48px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: #543cff;
  background: #f2efff;
  border: 2px solid rgba(84, 60, 255, 0.65);
  font-size: 1.8rem;
}

.background-options {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin: 22px auto 8px;
}

.background-chip {
  min-width: 168px;
  height: 44px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 850;
  border: 1px solid rgba(24, 30, 70, 0.12);
  background: rgba(255, 255, 255, 0.78);
}

.background-chip i {
  width: 15px;
  height: 15px;
  border-radius: 999px;
  border: 1px solid currentColor;
}

.background-chip strong {
  color: #1db875;
}

.chip-black {
  color: #fff;
  background: linear-gradient(135deg, #34343f 0%, #101119 100%);
}

.chip-solid {
  background: linear-gradient(135deg, #eee7ff 0%, #f7f1ff 100%);
  color: #2b225a;
}

.chip-solid i {
  background: #8c71ff;
  border-color: #8c71ff;
}

.chip-complex {
  color: #73431c;
  background: linear-gradient(135deg, #fff3d7 0%, #fff8e9 100%);
}

.chip-complex i {
  background: #ffc85a;
  border-color: #ffc85a;
}

.chip-complex strong {
  color: #f08a1a;
}

.background-note {
  margin: 0 auto 18px;
  color: #77809f;
  font-size: 1rem;
}

.home-flow {
  width: min(960px, 100%);
  margin: 0 auto;
  padding-top: 22px;
  border-top: 1px solid rgba(24, 30, 70, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 4vw, 46px);
  color: #10142e;
  font-weight: 900;
}

.home-flow span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.home-flow svg {
  width: 32px;
  height: 32px;
  color: #5138ff;
}

.home-flow b {
  color: #5138ff;
  font-size: 1.7rem;
}

.home-feature-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 16px auto 0;
}

.home-feature-row article {
  min-height: 88px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(24, 30, 70, 0.1);
  box-shadow: 0 14px 34px rgba(45, 45, 90, 0.07);
}

.home-feature-row svg {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  color: #5138ff;
}

.home-feature-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  object-fit: contain;
}

.home-feature-row h2 {
  margin: 0 0 5px;
  font-size: 0.98rem;
  line-height: 1.2;
}

.home-feature-row p {
  margin: 0;
  color: #667092;
  font-size: 0.82rem;
  line-height: 1.4;
}

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

@media (max-width: 1100px) {
  .home-mascot {
    display: none;
  }

  .home-feature-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .home-main {
    width: min(100% - 20px, 100%);
    padding-top: 28px;
  }

  .home-uploader {
    padding: 12px;
  }

  .home-dropzone {
    min-height: 276px;
    padding: 28px 16px;
  }

  .home-upload-button {
    width: 100%;
    min-width: 0;
  }

  .background-options {
    gap: 10px;
  }

  .background-chip {
    min-width: calc(50% - 8px);
  }

  .home-flow {
    flex-direction: column;
    gap: 10px;
  }

  .home-flow b {
    transform: rotate(90deg);
  }

  .home-feature-row article {
    padding: 20px;
  }
}

.home-mode-grid {
  width: min(1440px, 100%);
  margin: 20px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.home-mode-card,
.home-mode-card.home-uploader {
  position: relative;
  width: auto;
  min-height: 316px;
  margin: 0;
  padding: 24px;
  border: 1px solid rgba(91, 83, 187, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 44px rgba(50, 48, 100, 0.1);
  text-align: left;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 14px;
  overflow: hidden;
}

.home-mode-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 12%, rgba(91, 77, 255, 0.08), transparent 26%),
    radial-gradient(circle at 92% 86%, rgba(255, 139, 77, 0.08), transparent 28%);
}

.home-mode-card > * {
  position: relative;
  z-index: 1;
}

.home-mode-copy {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 16px;
  align-items: start;
}

.home-mode-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #5b4dff;
  background: linear-gradient(135deg, #edeaff, #f8f6ff);
  font-size: 1.45rem;
  font-weight: 950;
}

.home-mode-icon img {
  width: 31px;
  height: 31px;
  object-fit: contain;
}

.home-mode-copy h2 {
  margin: 5px 0 8px;
  color: #11142e;
  font-size: clamp(1.25rem, 1.8vw, 1.55rem);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.home-mode-copy p {
  max-width: 330px;
  margin: 0;
  color: #596280;
  font-size: 0.9rem;
  line-height: 1.55;
  font-weight: 750;
}

.home-mode-visual {
  height: 220px;
  min-height: 0;
  display: grid;
  align-items: center;
}

.home-mode-visual.auto {
  grid-template-columns: minmax(0, 1fr) 26px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.home-mini-upload {
  position: relative;
  width: 100%;
  height: 220px;
  max-height: 220px;
  min-height: 0;
  aspect-ratio: auto;
  border: 2px dashed rgba(91, 77, 255, 0.22);
  border-radius: 12px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  color: #4f3cff;
  background: rgba(255, 255, 255, 0.58);
  cursor: default;
  text-align: center;
  font-weight: 900;
  font-size: 0.82rem;
  overflow: hidden;
  padding: 8px;
}

.home-mini-upload input {
  display: none;
}

.home-mini-upload svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-mini-upload img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  border-radius: 9px;
  box-shadow: 0 10px 24px rgba(42, 45, 88, 0.1);
}

.home-mode-visual.auto b {
  height: 100%;
  display: grid;
  place-items: center;
  align-self: stretch;
  color: #5b4dff;
  font-size: 1.4rem;
  line-height: 1;
}

.home-icon-preview-grid {
  width: 100%;
  height: 220px;
  max-height: 220px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 9px;
  overflow: hidden;
  border: 2px dashed rgba(91, 77, 255, 0.16);
  border-radius: 12px;
  background:
    linear-gradient(45deg, rgba(91, 77, 255, 0.06) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(91, 77, 255, 0.06) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(91, 77, 255, 0.06) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(91, 77, 255, 0.06) 75%),
    #fff;
  background-size: 14px 14px;
  background-position: 0 0, 0 7px, 7px -7px, -7px 0;
}

.home-icon-preview-grid img {
  width: auto;
  height: 100%;
  aspect-ratio: 1;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  padding: 2px;
  border: 2px dashed rgba(91, 77, 255, 0.24);
  border-radius: 10px;
  background:
    linear-gradient(45deg, #f0efff 25%, transparent 25%),
    linear-gradient(-45deg, #f0efff 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f0efff 75%),
    linear-gradient(-45deg, transparent 75%, #f0efff 75%),
    #fff;
  background-size: 14px 14px;
  background-position: 0 0, 0 7px, 7px -7px, -7px 0;
}

.home-mode-visual.manual {
  height: 220px;
  min-height: 0;
}

.home-manual-preview {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border: 1px solid rgba(91, 77, 255, 0.14);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.home-manual-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  opacity: 1;
}

.select-box {
  position: absolute;
  border: 3px solid #6f55ff;
  border-radius: 2px;
  box-shadow: 0 0 0 999px rgba(255, 255, 255, 0.02);
}

.select-box::before,
.select-box::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background: #6f55ff;
}

.select-box::before {
  left: -5px;
  top: -5px;
}

.select-box::after {
  right: -5px;
  bottom: -5px;
}

.select-box.one {
  left: 22%;
  top: 14%;
  width: 21%;
  height: 25%;
}

.select-box.two {
  right: 8%;
  top: 12%;
  width: 18%;
  height: 28%;
}

.select-box.three {
  right: 18%;
  bottom: 12%;
  width: 18%;
  height: 26%;
}

.home-mode-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.home-mode-tags span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border-radius: 999px;
  color: #4b4f78;
  background: #f1efff;
  font-weight: 850;
  font-size: 0.78rem;
}

.home-mode-tags span::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #5b4dff;
  box-shadow: inset 0 0 0 4px #fff;
}

.algorithm-toggle.compact {
  margin: -2px 0 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.algorithm-toggle.compact label {
  min-height: 42px;
  padding: 7px 10px;
}

.algorithm-toggle.compact small {
  display: none;
}

.home-mode-cta {
  position: relative;
  min-height: 46px;
  width: 66.666%;
  margin: 0 auto;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  background: linear-gradient(135deg, #633cff 0%, #4d28ee 100%);
  box-shadow: 0 16px 32px rgba(78, 47, 239, 0.24);
  font-size: 1rem;
  font-weight: 950;
  cursor: pointer;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    opacity 0.22s ease;
}

.home-mode-cta input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.home-mode-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 34px rgba(78, 47, 239, 0.26);
}

.home-mode-cta [data-home-auto-label] {
  font-size: 1.1rem;
}

.home-mode-card .home-upload-status {
  position: static;
  width: min(100%, 420px);
  margin: 0 auto;
  padding: 12px 14px;
  border: 1px solid rgba(91, 77, 255, 0.14);
  border-radius: 14px;
  background: rgba(250, 249, 255, 0.96);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  text-align: left;
  font-size: 0.86rem;
  line-height: 1.45;
}

.home-mode-card.is-processing .home-mode-visual,
.home-mode-card.is-processing .home-mode-tags {
  opacity: 0.58;
}

.home-mode-card.is-processing .home-mode-cta {
  pointer-events: none;
}

.home-mode-cta.is-loading {
  opacity: 0.96;
}

.home-cta-spinner {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-right-color: transparent;
  display: none;
}

.home-mode-cta.is-loading .home-cta-spinner {
  display: inline-block;
  animation: home-spin 0.8s linear infinite;
}

.home-upload-status-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  position: relative;
  border-radius: 999px;
  background: rgba(91, 77, 255, 0.1);
}

.home-upload-status-icon::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  background: #5b4dff;
}

.home-upload-status.is-busy .home-upload-status-icon {
  background: transparent;
  border: 2px solid rgba(91, 77, 255, 0.16);
}

.home-upload-status.is-busy .home-upload-status-icon::before {
  inset: 1px;
  background: transparent;
  border: 2px solid #5b4dff;
  border-right-color: transparent;
  animation: home-spin 0.8s linear infinite;
}

.home-upload-status.is-error {
  border-color: rgba(227, 94, 79, 0.16);
  background: rgba(255, 247, 245, 0.98);
}

.home-upload-status.is-error .home-upload-status-icon {
  background: rgba(227, 94, 79, 0.12);
}

.home-upload-status.is-error .home-upload-status-icon::before {
  content: "!";
  inset: 0;
  background: none;
  color: #e35e4f;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 950;
}

.home-upload-status-copy {
  min-width: 0;
}

.home-upload-status-copy strong,
.home-upload-status-copy p {
  display: block;
}

.home-upload-status-copy strong {
  color: #171b37;
  font-size: 0.9rem;
}

.home-upload-status-copy p {
  margin: 2px 0 0;
  color: #697294;
  font-size: 0.8rem;
}

.home-upload-status-action {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(91, 77, 255, 0.18);
  border-radius: 999px;
  background: #fff;
  color: #4f3cff;
  font-size: 0.8rem;
  font-weight: 900;
  cursor: pointer;
}

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

  .home-mode-visual.auto {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .home-mode-card,
  .home-mode-card.home-uploader {
    padding: 22px;
  }

  .home-mode-copy {
    grid-template-columns: 1fr;
  }

  .home-mode-visual.auto {
    height: auto;
    grid-template-columns: 1fr;
  }

  .home-mode-visual.auto b {
    width: 100%;
    height: 32px;
    transform: rotate(90deg);
    text-align: center;
  }

  .home-icon-preview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
  }

  .home-icon-preview-grid img {
    width: auto;
    height: 100%;
  }

  .home-mini-upload,
  .home-icon-preview-grid,
  .home-manual-preview {
    height: 180px;
    max-height: 180px;
  }

  .home-mode-visual.manual {
    height: 180px;
  }

  .home-mode-cta {
    width: 100%;
  }

  .home-mode-card .home-upload-status {
    width: 100%;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .home-upload-status-action {
    grid-column: 1 / -1;
    justify-self: stretch;
    margin-top: 4px;
  }
}

body.results-workbench {
  --results-ink: #0e1027;
  --results-muted: #555d84;
  --results-line: #e4e7f6;
  --results-primary: #5a35f2;
  --results-primary-dark: #4623df;
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% 8%, rgba(90, 53, 242, 0.08), transparent 26%),
    radial-gradient(circle at 88% 12%, rgba(81, 132, 255, 0.1), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  color: var(--results-ink);
}

.results-workbench [hidden] {
  display: none !important;
}

.results-app-shell {
  min-height: 100vh;
}

.results-nav {
  height: 78px;
  padding: 0 48px;
  border-bottom: 1px solid var(--results-line);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 30;
}

.results-brand,
.results-menu,
.results-actions-top {
  display: flex;
  align-items: center;
}

.results-brand {
  gap: 12px;
  font-size: 2.05rem;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.results-brand-avatar {
  width: 60px;
  height: 50px;
  border-radius: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.results-brand-avatar img {
  width: 58px;
  height: 46px;
  object-fit: contain;
}

.results-menu {
  gap: 58px;
  font-size: 1.05rem;
  font-weight: 850;
}

.results-menu a {
  transition: color 0.18s ease;
}

.results-menu a:hover {
  color: var(--results-primary);
}

.results-actions-top {
  justify-content: flex-end;
  gap: 16px;
}

.results-login,
.results-start {
  min-width: 104px;
  height: 50px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 900;
}

.results-login {
  border: 1px solid #dfe3f2;
  background: #fff;
}

.results-start {
  color: #fff;
  background: linear-gradient(135deg, #673dff, #4d25e8);
  box-shadow: 0 14px 28px rgba(79, 41, 227, 0.24);
}

.results-main {
  width: min(100% - 64px, 1710px);
  margin: 0 auto;
  padding: 34px 0 150px;
}

.extraction-panel,
.result-summary,
.results-board {
  animation: resultsRise 0.42s ease both;
}

.extraction-panel {
  max-width: 920px;
  margin: 20px auto 0;
  border: 1px solid var(--results-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 28px 80px rgba(39, 45, 91, 0.1);
  padding: 22px 24px;
}

.extraction-status-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
}

.processing-orb {
  width: 64px;
  height: 64px;
  border-radius: 22px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.92) 0 32%, transparent 33%),
    conic-gradient(from 0deg, #5d37f6, #5cc8ff, #31c56f, #ffbd4a, #5d37f6);
  display: grid;
  place-items: center;
  animation: spinOrb 1.8s linear infinite;
}

.processing-orb span {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: linear-gradient(135deg, #5d37f6, #8b6bff);
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.22);
}

.results-kicker {
  display: inline-flex;
  color: var(--results-primary);
  font-weight: 950;
  margin-bottom: 8px;
}

.extraction-copy h1,
.result-summary h1 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.extraction-copy p {
  margin: 8px 0 0;
  color: var(--results-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.processing-percent {
  min-width: 72px;
  text-align: right;
  font-size: 1.7rem;
  color: var(--results-primary);
  font-weight: 950;
  letter-spacing: -0.05em;
}

.processing-track {
  height: 8px;
  margin: 18px 0 14px;
  border-radius: 999px;
  background: #eef1fb;
  overflow: hidden;
}

.processing-track span {
  display: block;
  width: 12%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5d37f6, #45c5ff, #44c86f);
  transition: width 0.36s ease;
}

.processing-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.processing-step {
  min-height: 0;
  padding: 10px 14px;
  border-radius: 999px;
  background: #f7f8ff;
  border: 1px solid transparent;
  color: var(--results-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.processing-step strong,
.processing-step span {
  display: inline;
}

.processing-step strong {
  color: var(--results-ink);
  margin: 0;
  font-size: 0.92rem;
}

.processing-step span {
  display: none;
}

.processing-step.is-active {
  border-color: rgba(90, 53, 242, 0.28);
  background: rgba(90, 53, 242, 0.08);
}

.processing-step.is-done {
  background: rgba(58, 194, 111, 0.09);
  border-color: rgba(58, 194, 111, 0.18);
}

.skeleton-grid {
  display: none;
}

.skeleton-grid span {
  height: 128px;
  border-radius: 20px;
  background:
    linear-gradient(100deg, transparent 0 32%, rgba(255, 255, 255, 0.8) 48%, transparent 64%) -160px 0 / 280px 100% no-repeat,
    #f0f3fb;
  animation: shimmer 1.2s ease-in-out infinite;
}

.result-summary {
  padding: 28px 0 18px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 22px;
}

.summary-icon {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: linear-gradient(135deg, #39c45f, #2bb354);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 950;
  box-shadow: 0 16px 34px rgba(43, 179, 84, 0.22);
}

.summary-icon.is-error {
  background: linear-gradient(135deg, #ff844f, #f04a42);
  box-shadow: 0 16px 34px rgba(240, 74, 66, 0.22);
}

.result-summary p {
  margin: 12px 0 6px;
  color: #263055;
  font-size: 1.32rem;
  line-height: 1.45;
}

.result-summary p strong {
  color: var(--results-primary);
  font-size: 1.45em;
  padding: 0 4px;
}

.result-summary span {
  color: var(--results-muted);
  font-size: 1.06rem;
}

.results-board {
  position: relative;
  border: 1px solid var(--results-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 20px 60px rgba(39, 45, 91, 0.08);
  padding: 18px 22px 30px;
}

.results-workbench .result-toolbar {
  min-height: 74px;
  padding-bottom: 14px;
  border-bottom: 1px solid #edf0f8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.filter-tabs,
.results-workbench .result-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.result-tab {
  min-width: 86px;
  height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  color: var(--results-ink);
  font-weight: 900;
  background: transparent;
}

.result-tab.active,
.result-tab.is-active {
  background: linear-gradient(135deg, #5f39ff, #4b25e6);
  color: #fff;
  box-shadow: 0 12px 24px rgba(79, 41, 227, 0.22);
}

.result-tab em {
  min-width: 24px;
  height: 24px;
  margin-left: 6px;
  border-radius: 999px;
  background: #ff7a1a;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-size: 0.86rem;
}

.result-select,
.selection-action,
.view-button {
  height: 44px;
  border-radius: 10px;
  border: 1px solid #e1e5f4;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--results-ink);
  font-weight: 900;
}

.selection-action {
  padding: 0 16px;
  color: var(--results-primary);
  border-color: rgba(90, 53, 242, 0.24);
  background: rgba(90, 53, 242, 0.07);
}

.result-select {
  padding: 0 12px;
}

.result-select select {
  border: 0;
  background: transparent;
  color: inherit;
  font-weight: inherit;
  outline: 0;
}

.view-button {
  width: 50px;
  color: #252b50;
}

.view-button.is-active {
  color: var(--results-primary);
  border-color: rgba(90, 53, 242, 0.42);
  box-shadow: 0 0 0 3px rgba(90, 53, 242, 0.08);
}

.results-workbench .results-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(132px, 1fr));
  gap: 14px;
  margin: 18px 0 0;
}

.result-empty {
  grid-column: 1 / -1;
  min-height: 240px;
  display: grid;
  place-items: center;
  gap: 8px;
  text-align: center;
  border: 1px dashed rgba(91, 61, 245, 0.28);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(246, 243, 255, 0.78));
  color: #667095;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.result-empty strong {
  color: var(--results-ink);
  font-size: 1.05rem;
}

.result-empty span {
  display: block;
}

.results-board.is-list-view .results-grid {
  grid-template-columns: 1fr;
}

.results-workbench .result-card {
  position: relative;
  min-height: 236px;
  border-radius: 14px;
  border: 1px solid #e3e7f5;
  background: rgba(255, 255, 255, 0.94);
  padding: 14px 14px 12px;
  box-shadow: none;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.results-board.is-list-view .result-card {
  min-height: 132px;
  display: grid;
  grid-template-columns: 124px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 16px 20px 16px 48px;
}

.results-workbench .result-card:hover {
  transform: translateY(-2px);
  border-color: rgba(90, 53, 242, 0.34);
  box-shadow: 0 16px 34px rgba(39, 45, 91, 0.12);
}

.results-workbench .result-card.is-selected {
  border-color: #dfe4f6;
  box-shadow: none;
}

.results-workbench .result-card-toggle {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 4;
  padding: 0;
}

.results-workbench .selection-dot {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #5a35f2;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 950;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px rgba(90, 53, 242, 0.24);
}

.results-workbench .result-card:not(.is-selected) .selection-dot {
  background: #fff;
  border: 1px solid #cfd5e9;
  color: transparent;
  box-shadow: none;
}

.results-workbench .result-thumb {
  height: 136px;
  margin: 8px 0 10px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(45deg, #f4f5fb 25%, transparent 25%) 0 0 / 18px 18px,
    linear-gradient(-45deg, #f4f5fb 25%, transparent 25%) 0 9px / 18px 18px,
    linear-gradient(45deg, transparent 75%, #f4f5fb 75%) 9px -9px / 18px 18px,
    linear-gradient(-45deg, transparent 75%, #f4f5fb 75%) -9px 0 / 18px 18px,
    #ffffff;
}

.results-board.is-list-view .result-thumb {
  width: 108px;
  height: 96px;
  margin: 0;
}

.results-workbench .result-thumb img {
  width: min(96px, 74%);
  height: min(96px, 74%);
  object-fit: contain;
}

.results-workbench .result-card:nth-child(7) .result-thumb img,
.results-workbench .result-card:nth-child(8) .result-thumb img,
.results-workbench .result-card:nth-child(9) .result-thumb img,
.results-workbench .result-card:nth-child(10) .result-thumb img,
.results-workbench .result-card:nth-child(13) .result-thumb img {
  width: min(116px, 82%);
  height: min(116px, 82%);
}

.results-workbench .result-meta strong,
.results-workbench .result-meta span {
  display: block;
}

.results-workbench .result-meta strong {
  margin: 0 0 3px;
  color: #121833;
  font-size: 0.86rem;
}

.results-workbench .result-meta span {
  color: #576084;
  font-size: 0.8rem;
}

.results-board.is-list-view .result-meta strong {
  font-size: 1rem;
}

.result-tools {
  display: flex;
  align-items: center;
  margin-top: 12px;
  color: var(--results-primary);
}

.result-tools button {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid rgba(90, 53, 242, 0.18);
  background: rgba(90, 53, 242, 0.07);
  color: inherit;
  font-size: 0.86rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.result-tools span {
  font-size: 0.78rem;
}

.results-board.is-list-view .result-tools {
  justify-content: flex-end;
  margin-top: 0;
}

.review-helper {
  position: absolute;
  right: 36px;
  bottom: -18px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 8px;
  pointer-events: none;
}

.review-helper > div {
  width: 164px;
  padding: 18px 16px;
  border-radius: 14px;
  border: 1px solid #dde3f5;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 40px rgba(39, 45, 91, 0.12);
  color: #29335c;
}

.review-helper strong {
  display: block;
  margin-bottom: 8px;
}

.review-helper p {
  margin: 0;
  color: #47517a;
  line-height: 1.55;
  font-size: 0.9rem;
}

.review-helper img {
  width: 112px;
  filter: drop-shadow(0 18px 24px rgba(39, 45, 91, 0.14));
}

.export-dock {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 18px;
  transform: translateX(-50%);
  width: min(calc(100% - 64px), 1710px);
  min-height: 106px;
  padding: 20px 34px;
  border: 1px solid var(--results-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(22px);
  box-shadow: 0 18px 60px rgba(39, 45, 91, 0.14);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  z-index: 80;
  animation: exportDockRise 0.42s ease both;
}

.export-stat {
  min-height: 58px;
  padding: 0 22px;
  border: 1px solid #e4e8f6;
  border-radius: 12px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.export-stat span {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #5a35f2;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 950;
}

.export-stat.gift span {
  border-radius: 7px;
  background: transparent;
  color: #5a35f2;
  border: 2px solid #5a35f2;
}

.export-dock p {
  margin: 0;
  color: #596284;
  text-align: center;
  line-height: 1.55;
}

.export-dock p a {
  color: var(--results-primary);
  font-weight: 950;
}

.export-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-self: end;
}

.export-secondary,
.export-primary {
  min-width: 190px;
  height: 58px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.08rem;
  font-weight: 950;
  cursor: pointer;
}

.export-secondary {
  border: 1px solid #dfe4f5;
  background: #fff;
}

.export-primary {
  color: #fff;
  background: linear-gradient(135deg, #633cff, #4d25e8);
  box-shadow: 0 16px 34px rgba(79, 41, 227, 0.24);
}

.export-secondary:disabled,
.export-primary:disabled,
.export-secondary[aria-disabled="true"],
.export-primary[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.48;
  box-shadow: none;
}

@keyframes spinOrb {
  to {
    transform: rotate(360deg);
  }
}

@keyframes shimmer {
  to {
    background-position: 180px 0, 0 0;
  }
}

@keyframes resultsRise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes exportDockRise {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@media (max-width: 1420px) {
  .results-workbench .results-grid {
    grid-template-columns: repeat(6, minmax(132px, 1fr));
  }

  .export-dock {
    grid-template-columns: auto 1fr;
  }

  .export-dock p {
    text-align: left;
  }

  .export-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1120px) {
  .results-nav {
    height: auto;
    padding: 16px 24px;
    grid-template-columns: 1fr;
  }

  .results-brand,
  .results-menu,
  .results-actions-top {
    justify-content: center;
  }

  .results-workbench .result-toolbar,
  .result-summary,
  .extraction-status-card {
    flex-direction: column;
    display: flex;
    align-items: center;
    text-align: center;
  }

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

  .results-workbench .results-grid {
    grid-template-columns: repeat(4, minmax(132px, 1fr));
  }

  .review-helper {
    display: none;
  }

  .export-dock {
    position: static;
    width: min(100% - 64px, 1710px);
    transform: none;
    margin: 20px auto 0;
    grid-template-columns: 1fr;
    animation: resultsRise 0.42s ease both;
  }

  .export-actions {
    width: 100%;
  }

  .export-secondary,
  .export-primary {
    flex: 1;
  }
}

@media (max-width: 720px) {
  .results-main {
    width: min(100% - 24px, 100%);
    padding-top: 20px;
  }

  .results-brand {
    font-size: 1.65rem;
  }

  .results-menu {
    gap: 24px;
  }

  .results-login,
  .results-start {
    flex: 1;
    min-width: 0;
  }

  .results-actions-top {
    width: 100%;
  }

  .extraction-panel,
  .results-board {
    padding: 18px;
  }

  .processing-steps,
  .skeleton-grid,
  .results-workbench .results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-tabs,
  .results-workbench .result-actions {
    width: 100%;
  }

  .result-tab,
  .result-select {
    flex: 1;
  }

  .export-actions {
    flex-direction: column;
  }

  .export-secondary,
  .export-primary {
    width: 100%;
  }
}

.results-workbench .results-main {
  width: min(100% - 64px, 1436px);
  padding: 24px 0 92px;
}

.results-workbench [hidden] {
  display: none !important;
}

.results-workbench .result-summary {
  padding: 8px 6px 12px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  text-align: left;
}

.results-workbench .result-summary-copy {
  min-width: 0;
}

.results-workbench .result-summary h1 {
  font-size: 28px;
  letter-spacing: -0.045em;
}

.results-workbench .summary-icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 1.5rem;
}

.results-workbench .result-summary p {
  margin: 2px 0 0;
  color: #5f6889;
  font-size: 0.94rem;
  line-height: 1.45;
}

.results-workbench .result-summary p strong {
  padding: 0;
  color: var(--results-primary);
  font-size: inherit;
}

.results-workbench .result-summary [data-result-subtitle] {
  display: block;
  margin-top: 4px;
  color: #7d86a5;
  font-size: 0.84rem;
}

.results-workbench .result-summary [data-result-subtitle][hidden] {
  display: none !important;
}

.results-workbench .results-board {
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 54px rgba(39, 45, 91, 0.08);
  padding: 16px 20px 22px;
}

.results-workbench .result-toolbar {
  min-height: 56px;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf0f8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.results-workbench .filter-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid #e6eaf4;
  border-radius: 16px;
  background: #fff;
}

.results-workbench .result-tab {
  min-width: 126px;
  height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #202846;
  font-weight: 800;
}

.results-workbench .result-tab span,
.results-workbench .result-tab strong {
  font-size: 1rem;
  line-height: 1;
}

.results-workbench .result-tab strong {
  color: inherit;
}

.results-workbench .result-tab.active,
.results-workbench .result-tab.is-active {
  background: linear-gradient(180deg, #f5f1ff, #ece8ff);
  color: var(--results-primary);
  box-shadow: none;
}

.results-workbench .result-view-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.results-workbench .view-button {
  width: 56px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid #e1e6f4;
  background: #fff;
  color: #2d365a;
  box-shadow: none;
}

.results-workbench .view-button.is-active {
  color: var(--results-primary);
  border-color: rgba(90, 53, 242, 0.42);
  box-shadow: 0 0 0 3px rgba(90, 53, 242, 0.08);
}

.results-workbench .view-icon {
  font-size: 1.28rem;
  line-height: 1;
}

.results-workbench .results-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px;
  margin-top: 20px;
}

.results-workbench .result-card {
  min-height: 0;
  border-radius: 18px;
  border: 1px solid #e6ebf6;
  background: rgba(255, 255, 255, 0.98);
  padding: 14px;
  box-shadow: 0 10px 30px rgba(39, 45, 91, 0.06);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.results-workbench .result-card:hover {
  transform: translateY(-2px);
  border-color: rgba(90, 53, 242, 0.22);
  box-shadow: 0 18px 36px rgba(39, 45, 91, 0.1);
}

.results-workbench .result-card.is-selected {
  border-color: #dce2f3;
  box-shadow: 0 12px 32px rgba(39, 45, 91, 0.08);
}

.results-workbench .result-card-toggle {
  top: 14px;
  left: 14px;
}

.results-workbench .selection-dot {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  font-size: 0.96rem;
  background: linear-gradient(135deg, #6944ff, #4d25e8);
  box-shadow: 0 10px 18px rgba(90, 53, 242, 0.2);
}

.results-workbench .result-card:not(.is-selected) .selection-dot {
  border: 1.5px solid #cfd6e8;
  background: #fff;
}

.results-workbench .result-thumb {
  height: 142px;
  margin: 0 0 14px;
  border-radius: 14px;
}

.results-workbench .results-grid .result-card .result-thumb img {
  width: min(108px, 76%) !important;
  height: min(108px, 76%) !important;
  object-fit: contain;
}

.results-workbench .result-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.results-workbench .result-name-button {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #131a33;
  font-size: 0.98rem;
  font-weight: 800;
  text-align: left;
  cursor: text;
}

.results-workbench .result-name-button:hover {
  color: var(--results-primary);
}

.results-workbench .result-name-input {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(90, 53, 242, 0.24);
  border-radius: 10px;
  outline: 0;
  color: #131a33;
  font-size: 0.96rem;
  font-weight: 800;
  box-sizing: border-box;
  box-shadow: 0 0 0 3px rgba(90, 53, 242, 0.08);
}

.results-workbench .result-dimensions,
.results-workbench .result-format {
  color: #67708f;
  font-size: 0.9rem;
  line-height: 1.5;
}

.results-workbench .result-tools {
  display: none;
}

.results-workbench .results-board.is-list-view .results-grid {
  grid-template-columns: 1fr;
}

.results-workbench .results-board.is-list-view .result-card {
  display: grid;
  grid-template-columns: 128px 1fr;
  align-items: center;
  gap: 20px;
  padding: 16px 18px 16px 56px;
}

.results-workbench .results-board.is-list-view .result-card-toggle {
  top: 50%;
  left: 18px;
  transform: translateY(-50%);
}

.results-workbench .results-board.is-list-view .result-thumb {
  width: 128px;
  height: 112px;
  margin: 0;
}

.results-workbench .export-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  transform: none;
  width: 100%;
  min-height: 0;
  margin-top: 0;
  padding: 0 18px;
  height: 56px;
  border: 0;
  border-top: 1px solid var(--results-line);
  border-radius: 0;
  background: #fff;
  box-shadow: 0 -10px 28px rgba(35, 40, 72, 0.04);
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 10px;
  animation: resultsRise 0.42s ease both;
  z-index: 80;
}

.results-workbench .export-selection strong {
  color: #161e39;
  font-size: 0.96rem;
  font-weight: 800;
  white-space: nowrap;
}

.results-workbench .export-selection b {
  color: var(--results-primary);
  font-size: 1.42em;
}

.results-workbench .export-divider {
  width: 1px;
  height: 22px;
  align-self: center;
  background: #edf0f8;
}

.results-workbench .export-bulk-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.results-workbench .selection-action {
  height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid #e2e6f3;
  background: #fff;
  color: #1a2341;
  font-weight: 800;
  gap: 10px;
}

.results-workbench .selection-action-box {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 1.5px solid #cfd6e8;
  background: #fff;
  box-sizing: border-box;
}

.results-workbench .export-actions {
  justify-self: end;
  gap: 18px;
}

.results-workbench .export-secondary,
.results-workbench .export-primary {
  min-width: 184px;
  height: 40px;
  border-radius: 8px;
  gap: 8px;
  font-size: 0.96rem;
  font-weight: 800;
}

.results-workbench .export-secondary {
  border: 1px solid #dfe4f1;
}

.results-workbench .results-dock-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

@media (max-width: 1320px) {
  .results-workbench .results-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .results-workbench .export-dock {
    height: auto;
    min-height: 56px;
    grid-template-columns: auto 1fr;
    padding: 14px 18px;
  }

  .results-workbench .export-divider {
    display: none;
  }

  .results-workbench .export-bulk-actions,
  .results-workbench .export-actions {
    grid-column: 1 / -1;
  }

  .results-workbench .export-actions {
    justify-self: stretch;
  }
}

@media (max-width: 1120px) {
  .results-workbench .result-summary {
    padding-top: 6px;
  }

  .results-workbench .results-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .results-workbench .result-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .results-workbench .filter-tabs,
  .results-workbench .result-view-actions {
    justify-content: center;
  }
}

@media (max-width: 720px) {
  .results-workbench .results-main {
    width: min(100% - 24px, 100%);
    padding: 24px 0 28px;
  }

  .results-workbench .result-summary {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .results-workbench .results-board,
  .results-workbench .export-dock {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none;
    width: 100%;
    height: auto;
    min-height: 0;
    margin-top: 20px;
    padding: 18px;
    border: 1px solid var(--results-line);
    border-radius: 18px;
    box-shadow: 0 18px 54px rgba(39, 45, 91, 0.08);
    animation: resultsRise 0.42s ease both;
  }

  .results-workbench .filter-tabs {
    width: 100%;
  }

  .results-workbench .result-tab {
    min-width: 0;
    flex: 1;
  }

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

  .results-workbench .export-bulk-actions,
  .results-workbench .export-actions {
    width: 100%;
    flex-direction: column;
  }

  .results-workbench .selection-action,
  .results-workbench .export-secondary,
  .results-workbench .export-primary {
    width: 100%;
  }
}

body.pricing-workbench,
body.faq-workbench {
  --mk-ink: #0b1028;
  --mk-muted: #566082;
  --mk-line: #dfe4f5;
  --mk-primary: #6239f6;
  --mk-primary-dark: #4a23df;
  --mk-soft: #f7f8ff;
  margin: 0;
  min-height: 100vh;
  color: var(--mk-ink);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 18% 14%, rgba(98, 57, 246, 0.08), transparent 26%),
    radial-gradient(circle at 85% 18%, rgba(93, 126, 255, 0.09), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
}

.pricing-workbench [hidden],
.faq-workbench [hidden] {
  display: none !important;
}

.marketing-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.marketing-nav {
  height: 78px;
  padding: 0 44px;
  border: 1px solid var(--mk-line);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  position: sticky;
  top: 0;
  z-index: 40;
}

.marketing-brand,
.marketing-menu,
.marketing-actions {
  display: flex;
  align-items: center;
}

.marketing-brand {
  gap: 12px;
  font-size: 2.05rem;
  font-weight: 950;
  letter-spacing: -0.055em;
}

.marketing-brand-avatar {
  width: 62px;
  height: 52px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.marketing-brand-avatar img {
  width: 60px;
  height: 48px;
  object-fit: contain;
}

.marketing-menu {
  gap: 56px;
  font-size: 1.04rem;
  font-weight: 900;
}

.marketing-menu a {
  position: relative;
  padding: 28px 0 24px;
  color: var(--mk-ink);
}

.marketing-menu a.is-active {
  color: var(--mk-primary);
}

.marketing-menu a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 12px;
  width: 54px;
  height: 3px;
  border-radius: 999px;
  background: var(--mk-primary);
  transform: translateX(-50%);
}

.marketing-actions {
  justify-content: flex-end;
  gap: 16px;
}

.marketing-login,
.marketing-start {
  min-width: 104px;
  height: 50px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 900;
}

.marketing-login {
  background: #fff;
  border: 1px solid var(--mk-line);
}

.marketing-start {
  color: #fff;
  background: linear-gradient(135deg, #6740ff, #5027e8);
  box-shadow: 0 14px 30px rgba(80, 39, 232, 0.24);
}

.pricing-main,
.faq-main {
  width: min(100% - 64px, 1600px);
  margin: 0 auto;
  flex: 1;
}

.pricing-hero {
  text-align: center;
  padding: 40px 0 28px;
}

.pricing-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2.5rem, 4.4vw, 3.95rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.pricing-hero h1 span {
  color: var(--mk-primary);
}

.pricing-hero p {
  margin: 0;
  color: var(--mk-muted);
  font-size: 1.18rem;
  font-weight: 700;
}

.pricing-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  gap: 34px;
}

.pricing-mascot {
  min-height: 440px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}

.mascot-bubble {
  position: relative;
  width: 190px;
  padding: 20px 24px;
  border: 1.5px solid rgba(98, 57, 246, 0.34);
  border-radius: 42% 48% 44% 52%;
  color: var(--mk-primary);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 42px rgba(49, 42, 105, 0.08);
  line-height: 1.48;
  font-size: 1.02rem;
}

.mascot-bubble::after {
  content: "";
  position: absolute;
  right: -8px;
  bottom: 26px;
  width: 28px;
  height: 28px;
  border-right: 1.5px solid rgba(98, 57, 246, 0.34);
  border-bottom: 1.5px solid rgba(98, 57, 246, 0.34);
  border-radius: 0 0 18px 0;
  transform: rotate(-20deg);
}

.pricing-mascot img {
  width: 170px;
  margin-top: 6px;
  filter: drop-shadow(0 18px 18px rgba(49, 42, 105, 0.14));
}

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

.plan-card {
  position: relative;
  min-height: 470px;
  padding: 32px 30px 36px;
  border: 1px solid var(--mk-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 55px rgba(49, 42, 105, 0.1);
  display: flex;
  flex-direction: column;
}

.plan-card.is-featured {
  border: 2px solid var(--mk-primary);
  box-shadow: 0 24px 70px rgba(80, 39, 232, 0.16);
}

.plan-badge {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 114px;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7254ff, #5a34ee);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 950;
  box-shadow: 0 12px 26px rgba(80, 39, 232, 0.22);
}

.plan-badge::before {
  content: "";
  width: 12px;
  height: 12px;
  margin-right: 7px;
  background: currentColor;
  clip-path: polygon(50% 0, 62% 35%, 100% 38%, 70% 60%, 80% 100%, 50% 77%, 20% 100%, 30% 60%, 0 38%, 38% 35%);
}

.plan-badge.savings {
  top: -22px;
  background: #d8f5df;
  color: #21a24b;
  box-shadow: none;
}

.plan-badge.savings::before {
  clip-path: polygon(50% 0, 60% 35%, 95% 15%, 75% 50%, 100% 65%, 63% 66%, 50% 100%, 37% 66%, 0 65%, 25% 50%, 5% 15%, 40% 35%);
}

.plan-card h2 {
  margin: 0 0 12px;
  text-align: center;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
}

.plan-persona {
  min-height: 24px;
  margin: 0 0 18px;
  color: #606b8e;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
}

.plan-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  color: var(--mk-primary);
}

.plan-price strong {
  font-size: clamp(3.4rem, 6vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.08em;
}

.plan-price span {
  color: #222943;
  font-weight: 700;
  font-size: 1.04rem;
}

.plan-card > p {
  margin: 14px 0 22px;
  color: var(--mk-muted);
  text-align: center;
  font-weight: 500;
}

.plan-card ul {
  margin: 0 0 30px;
  padding: 24px 0 0;
  border-top: 1px solid var(--mk-line);
  list-style: none;
  display: grid;
  gap: 16px;
}

.plan-card li {
  position: relative;
  padding-left: 30px;
  color: #293153;
  font-weight: 600;
}

.plan-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--mk-primary);
}

.plan-card li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  width: 6px;
  height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

.plan-card li button {
  width: 18px;
  height: 18px;
  margin-left: 6px;
  border-radius: 999px;
  border: 1px solid #aab3d0;
  color: #7a84a5;
  font-size: 0.75rem;
  font-weight: 950;
}

.plan-button {
  height: 56px;
  margin-top: auto;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 950;
}

.plan-button.secondary {
  color: var(--mk-primary);
  border: 1.5px solid var(--mk-primary);
  background: #fff;
}

.plan-button.primary {
  color: #fff;
  background: linear-gradient(135deg, #6740ff, #5027e8);
  box-shadow: 0 14px 30px rgba(80, 39, 232, 0.22);
}

.yearly-note {
  margin: 12px 0 0 !important;
  color: #16a042 !important;
  font-size: 0.98rem;
  font-weight: 900 !important;
}

.trust-strip {
  margin: 24px 0 26px;
  padding: 20px 28px;
  border: 1px solid var(--mk-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 46px rgba(49, 42, 105, 0.08);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.trust-strip article {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 16px;
}

.trust-strip article:not(:last-child) {
  border-right: 1px dashed #cfd5ec;
}

.trust-strip svg {
  width: 58px;
  height: 58px;
  color: var(--mk-primary);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trust-strip h3,
.feedback-card h2,
.feedback-options strong {
  margin: 0;
  color: var(--mk-ink);
}

.trust-strip p {
  margin: 6px 0 0;
  color: var(--mk-muted);
  line-height: 1.5;
  font-size: 0.9rem;
}

.marketing-footer {
  min-height: 64px;
  border-top: 1px solid var(--mk-line);
  color: #687191;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  font-size: 0.9rem;
}

.marketing-footer a,
.home-feature-row h2 a {
  color: inherit;
}

.seo-summary,
.seo-main,
.legal-main {
  width: min(100% - 64px, 1180px);
  margin: 0 auto;
}

.seo-summary {
  margin-top: 24px;
  margin-bottom: 34px;
  padding: 28px;
  border: 1px solid var(--mk-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 46px rgba(49, 42, 105, 0.08);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 28px;
  align-items: center;
}

.seo-summary h2,
.seo-hero h1,
.seo-panel h2,
.legal-article h1,
.legal-article h2 {
  margin: 0;
  color: var(--mk-ink);
}

.seo-summary p,
.seo-hero p,
.seo-panel p,
.seo-panel li,
.legal-article p,
.legal-article li {
  color: var(--mk-muted);
  line-height: 1.72;
}

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

.seo-link-grid a {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(91, 77, 255, 0.18);
  border-radius: 10px;
  background: #fff;
  color: var(--mk-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 800;
}

.seo-main {
  flex: 1;
  padding: 46px 0 42px;
}

.seo-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 46px;
  align-items: center;
  margin-bottom: 34px;
}

.seo-kicker {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--mk-primary);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.seo-hero h1 {
  max-width: 820px;
  font-size: clamp(2.35rem, 5vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.seo-hero p {
  max-width: 720px;
  margin: 18px 0 0;
  font-size: 1.08rem;
}

.seo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.seo-button {
  min-height: 52px;
  padding: 0 20px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.seo-button.primary {
  color: #fff;
  background: linear-gradient(135deg, #6740ff, #5027e8);
  box-shadow: 0 14px 30px rgba(80, 39, 232, 0.22);
}

.seo-button.secondary {
  color: var(--mk-primary);
  background: #fff;
  border: 1px solid rgba(91, 77, 255, 0.32);
}

.seo-visual {
  padding: 18px;
  border: 1px solid var(--mk-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 20px 55px rgba(49, 42, 105, 0.1);
}

.seo-visual img {
  display: block;
  width: 100%;
  border-radius: 12px;
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 28px 0;
}

.seo-panel {
  padding: 26px;
  border: 1px solid var(--mk-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 36px rgba(49, 42, 105, 0.07);
}

.seo-panel h2 {
  font-size: 1.32rem;
}

.seo-panel ul,
.legal-article ul {
  margin: 14px 0 0;
  padding-left: 20px;
}

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

.seo-step {
  padding: 18px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(91, 77, 255, 0.14);
}

.seo-step strong {
  color: var(--mk-ink);
}

.seo-step span {
  display: block;
  margin-top: 8px;
  color: var(--mk-muted);
  line-height: 1.55;
}

.legal-main {
  flex: 1;
  padding: 44px 0;
}

.legal-article {
  padding: 34px;
  border: 1px solid var(--mk-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 46px rgba(49, 42, 105, 0.08);
}

.legal-article h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.04em;
}

.legal-article h2 {
  margin-top: 28px;
  font-size: 1.25rem;
}

.faq-main {
  padding: 44px 0 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 54px;
  align-items: start;
}

.faq-heading {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
}

.question-mark {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  background: linear-gradient(180deg, #eee9ff, #ddd6ff);
  border: 1px solid #c8bcff;
  color: var(--mk-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  font-weight: 950;
  box-shadow: inset 0 -10px 18px rgba(98, 57, 246, 0.08);
}

.faq-heading h1 {
  margin: 0;
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.faq-heading p {
  margin: 22px 0 0;
  color: var(--mk-muted);
  font-size: 1.08rem;
  font-weight: 700;
}

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

.faq-row {
  border: 1px solid var(--mk-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(49, 42, 105, 0.05);
}

.faq-row .faq-question {
  width: 100%;
  min-height: 76px;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 42px 1fr 24px;
  align-items: center;
  gap: 18px;
  color: var(--mk-ink);
  text-align: left;
}

.faq-number {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: #f0edff;
  color: var(--mk-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 950;
}

.faq-row .faq-question strong {
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.faq-row .faq-question i {
  width: 13px;
  height: 13px;
  border-right: 3px solid var(--mk-primary);
  border-bottom: 3px solid var(--mk-primary);
  transform: rotate(45deg);
  justify-self: end;
  transition: transform 0.2s ease;
}

.faq-row.is-open .faq-question i {
  transform: rotate(225deg);
}

.faq-row .faq-answer {
  display: none;
  margin: 0 32px 26px 72px;
  padding: 28px;
  border-radius: 14px;
  background: linear-gradient(180deg, #f2f0ff, #f7f6ff);
  color: #465173;
  line-height: 1.8;
}

.faq-row.is-open .faq-answer {
  display: block;
}

.feedback-card {
  border: 1px solid var(--mk-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 22px 60px rgba(49, 42, 105, 0.12);
  padding: 30px 32px 24px;
}

.feedback-card h2 {
  font-size: 2.2rem;
  letter-spacing: -0.055em;
}

.feedback-card > p {
  margin: 14px 0 18px;
  color: var(--mk-muted);
  line-height: 1.75;
  font-size: 1.02rem;
}

.feedback-art {
  position: relative;
  min-height: 260px;
  display: grid;
  place-items: center;
  margin: 12px 0 16px;
}

.feedback-art img {
  width: min(100%, 430px);
  max-height: 280px;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(49, 42, 105, 0.12));
}

.home-mini-upload picture,
.home-manual-preview picture,
.seo-visual picture,
.feedback-art picture {
  display: block;
}

.feedback-art .feedback-bubble {
  display: none;
}

.feedback-bubble {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  box-shadow: 0 14px 24px rgba(49, 42, 105, 0.1);
}

.feedback-bubble::before {
  content: "";
  position: absolute;
  inset: 13px;
  background: #fff;
}

.feedback-bubble.heart {
  left: 20px;
  top: 28px;
  background: linear-gradient(135deg, #8c73ff, #6e4ef7);
}

.feedback-bubble.heart::before {
  clip-path: path("M11 19C4 14 1 10 1 6a4 4 0 0 1 7-2 4 4 0 0 1 7 2c0 4-3 8-10 13Z");
}

.feedback-bubble.star {
  right: 18px;
  top: 48px;
  background: #ffc24a;
}

.feedback-bubble.star::before {
  clip-path: polygon(50% 0, 62% 35%, 100% 38%, 70% 60%, 80% 100%, 50% 77%, 20% 100%, 30% 60%, 0 38%, 38% 35%);
}

.feedback-bubble.chat {
  right: 36px;
  bottom: 42px;
  background: #75b7ff;
}

.feedback-bubble.chat::before {
  clip-path: polygon(0 0, 100% 0, 100% 68%, 64% 68%, 44% 100%, 46% 68%, 0 68%);
}

.feedback-button {
  height: 54px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #6740ff, #5027e8);
  box-shadow: 0 14px 30px rgba(80, 39, 232, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1.08rem;
  font-weight: 950;
}

.feedback-button svg,
.feedback-options svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feedback-options {
  margin-top: 22px;
  display: grid;
}

.feedback-options article {
  padding: 16px 0;
  border-bottom: 1px solid #e7ebf8;
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 16px;
}

.feedback-options article:last-child {
  border-bottom: 0;
}

.feedback-options article > span {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #f0edff;
  color: var(--mk-primary);
  display: grid;
  place-items: center;
}

.feedback-options p {
  margin: 5px 0 0;
  color: var(--mk-muted);
}

@media (max-width: 1180px) {
  .marketing-nav {
    height: auto;
    padding: 16px 24px;
    grid-template-columns: 1fr;
  }

  .marketing-brand,
  .marketing-menu,
  .marketing-actions {
    justify-content: center;
  }

  .pricing-stage,
  .faq-main,
  .seo-hero,
  .seo-summary {
    grid-template-columns: 1fr;
  }

  .pricing-mascot {
    min-height: auto;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
  }

  .plan-grid,
  .trust-strip,
  .seo-grid,
  .seo-process {
    grid-template-columns: 1fr;
  }

  .trust-strip article:not(:last-child) {
    border-right: 0;
    border-bottom: 1px dashed #cfd5ec;
    padding-bottom: 18px;
  }

  .feedback-card {
    max-width: 560px;
    margin: 0 auto;
  }
}

@media (max-width: 720px) {
  .pricing-main,
  .faq-main,
  .seo-main,
  .legal-main,
  .seo-summary {
    width: min(100% - 24px, 100%);
  }

  .marketing-brand {
    font-size: 1.65rem;
  }

  .marketing-menu {
    gap: 18px;
    flex-wrap: wrap;
  }

  .marketing-actions {
    width: 100%;
  }

  .marketing-login,
  .marketing-start {
    min-width: 0;
    flex: 1;
  }

  .pricing-hero h1,
  .faq-heading h1 {
    font-size: 2.45rem;
  }

  .pricing-mascot {
    display: none;
  }

  .plan-card {
    min-height: auto;
    padding: 28px 22px;
  }

  .trust-strip {
    padding: 18px;
  }

  .faq-heading {
    align-items: flex-start;
  }

  .faq-row .faq-question {
    padding: 0 18px;
    grid-template-columns: 38px 1fr 18px;
  }

  .faq-row .faq-answer {
    margin: 0 18px 18px;
    padding: 20px;
  }

  .feedback-card {
    padding: 24px 20px;
  }

  .seo-summary,
  .seo-panel,
  .legal-article {
    padding: 22px;
  }

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

  .seo-hero {
    gap: 24px;
  }

  .seo-actions {
    display: grid;
  }

  .marketing-footer {
    flex-wrap: wrap;
    gap: 14px 22px;
    padding: 18px;
    text-align: center;
  }
}
/* Manual extraction workbench */
.manual-body {
  background:
    radial-gradient(circle at 8% 8%, rgba(255, 139, 77, 0.16), transparent 28%),
    radial-gradient(circle at 92% 12%, rgba(91, 77, 255, 0.18), transparent 30%),
    linear-gradient(180deg, #fbfbff 0%, #fffaf5 100%);
}

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

.manual-empty {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 0.72fr);
  align-items: center;
  gap: 42px;
  padding: 58px;
  border: 1px solid rgba(91, 77, 255, 0.12);
  border-radius: 36px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(249, 247, 255, 0.84)),
    radial-gradient(circle at 86% 16%, rgba(91, 77, 255, 0.12), transparent 34%);
  box-shadow: var(--shadow-xl);
}

.manual-empty h1,
.manual-toolbar h1 {
  margin: 0;
  color: #11142e;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.07em;
}

.manual-empty p {
  max-width: 650px;
  color: #5f6282;
  font-size: 1.12rem;
  line-height: 1.8;
}

.manual-upload-card {
  min-height: 360px;
  display: grid;
  place-items: center;
  gap: 14px;
  text-align: center;
  padding: 34px;
  border: 2px dashed rgba(91, 77, 255, 0.42);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: inset 0 0 0 10px rgba(91, 77, 255, 0.035), var(--shadow-lg);
  cursor: pointer;
}

.manual-upload-card input,
.manual-toolbar-actions input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.manual-upload-icon {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 26px;
  color: #fff;
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(135deg, #6b5cff, #4c36f4);
  box-shadow: 0 22px 45px rgba(91, 77, 255, 0.24);
}

.manual-upload-card strong {
  color: #151833;
  font-size: 1.5rem;
}

.manual-upload-card small {
  color: #777b9d;
  font-weight: 700;
}

.manual-workbench {
  display: grid;
  gap: 18px;
}

.manual-toolbar {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 22px;
  padding: 22px;
  border: 1px solid rgba(91, 77, 255, 0.12);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-lg);
}

.manual-toolbar h1 {
  font-size: clamp(2rem, 3vw, 3.2rem);
}

.manual-file-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  color: #555b80;
  font-weight: 800;
}

.manual-file-meta span {
  padding: 9px 12px;
  border: 1px solid rgba(91, 77, 255, 0.12);
  border-radius: 999px;
  background: rgba(246, 247, 255, 0.86);
}

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

.manual-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.manual-canvas-panel,
.manual-sidebar section {
  border: 1px solid rgba(91, 77, 255, 0.12);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-lg);
}

.manual-canvas-panel {
  min-height: 690px;
  padding: 18px;
}

.manual-canvas-help {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.manual-canvas-help span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #555b80;
  background: #f4f2ff;
  font-size: 0.9rem;
  font-weight: 800;
}

.manual-canvas-wrap {
  min-height: 620px;
  display: grid;
  place-items: center;
  overflow: auto;
  border-radius: 22px;
  background:
    linear-gradient(45deg, rgba(91, 77, 255, 0.055) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(91, 77, 255, 0.055) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(91, 77, 255, 0.055) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(91, 77, 255, 0.055) 75%),
    #fff;
  background-size: 28px 28px;
  background-position: 0 0, 0 14px, 14px -14px, -14px 0;
}

.manual-canvas-wrap canvas {
  max-width: none;
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(23, 27, 64, 0.13);
  cursor: crosshair;
  user-select: none;
  touch-action: none;
}

.manual-canvas-wrap canvas.is-pan-ready {
  cursor: grab;
}

.manual-canvas-wrap canvas.is-panning {
  cursor: grabbing;
}

.manual-sidebar {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 112px;
}

.manual-actions-card,
.manual-list-card {
  padding: 18px;
}

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

.manual-actions-card span,
.manual-list-card header span,
.manual-results-card p {
  color: #777b9d;
  font-size: 0.92rem;
  font-weight: 800;
}

.manual-actions-card strong {
  display: block;
  margin-top: 4px;
  color: #171a38;
  font-size: 1.15rem;
}

.manual-text-button {
  justify-self: start;
  color: #5b4dff;
  font-weight: 900;
}

.manual-list-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.manual-list-card h2 {
  margin: 0;
  color: #151833;
  font-size: 1.05rem;
}

.manual-side-list,
.manual-result-list {
  display: grid;
  gap: 10px;
  max-height: 270px;
  overflow: auto;
}

.manual-side-item,
.manual-result-card {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(91, 77, 255, 0.12);
  border-radius: 16px;
  background: #fff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.manual-side-item {
  display: grid;
  gap: 4px;
  padding: 12px;
}

.manual-side-item:hover,
.manual-side-item.is-active,
.manual-result-card:hover,
.manual-result-card.is-active {
  border-color: rgba(91, 77, 255, 0.52);
  box-shadow: 0 12px 30px rgba(91, 77, 255, 0.12);
  transform: translateY(-1px);
}

.manual-side-item strong,
.manual-result-card strong {
  color: #171a38;
  font-size: 0.96rem;
}

.manual-side-item span,
.manual-result-card span {
  color: #707599;
  font-size: 0.85rem;
  font-weight: 800;
}

.manual-empty-list {
  padding: 18px;
  border-radius: 16px;
  color: #777b9d;
  background: #f7f6ff;
  font-weight: 800;
  line-height: 1.6;
}

.manual-result-card {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
}

.manual-result-thumb {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  background:
    linear-gradient(45deg, #f0efff 25%, transparent 25%),
    linear-gradient(-45deg, #f0efff 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f0efff 75%),
    linear-gradient(-45deg, transparent 75%, #f0efff 75%),
    #fff;
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
}

.manual-result-thumb img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.manual-result-actions {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.manual-result-card button {
  color: #5b4dff;
  font-size: 0.82rem;
  font-weight: 900;
}

.manual-result-card button[data-delete-manual-result] {
  color: #e55d5d;
}

/* Manual editor layout */
.manual-editor-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 0%, rgba(91, 77, 255, 0.08), transparent 30%),
    linear-gradient(180deg, #fbfcff 0%, #fff 100%);
}

.manual-editor-shell {
  width: min(100% - 40px, 1880px);
  margin: 0 auto;
  padding: 24px 0 30px;
}

.manual-editor-top {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.manual-back-button,
.manual-icon-button {
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid rgba(24, 30, 70, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: #11142e;
  font-weight: 900;
  box-shadow: 0 10px 26px rgba(45, 45, 90, 0.06);
}

.manual-back-button {
  min-width: 118px;
  padding: 0 18px;
  font-size: 1.05rem;
}

.manual-back-button span {
  font-size: 1.7rem;
  line-height: 1;
}

.manual-icon-button {
  width: 58px;
  font-size: 1.5rem;
}

.manual-editor-main {
  display: grid;
  gap: 22px;
}

.manual-editor-workbench {
  display: grid;
  gap: 22px;
}

.manual-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 500px;
  gap: 22px;
  align-items: stretch;
}

.manual-editor-canvas-card,
.manual-editor-sidebar > section,
.manual-export-dock {
  border: 1px solid rgba(24, 30, 70, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 48px rgba(45, 45, 90, 0.08);
}

.manual-editor-canvas-card {
  min-height: 760px;
  padding: 22px;
}

.manual-editor-toolbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(24, 30, 70, 0.08);
}

.manual-tool-group,
.manual-zoom-control,
.manual-switch-row,
.manual-history-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.manual-tool-button,
.manual-zoom-control button,
.manual-history-actions button {
  min-width: 48px;
  height: 48px;
  border: 1px solid rgba(91, 77, 255, 0.14);
  border-radius: 10px;
  background: #fff;
  color: #11142e;
  font-weight: 950;
}

.manual-tool-button.is-active {
  color: #5b4dff;
  background: #f0edff;
  border-color: rgba(91, 77, 255, 0.34);
}

.manual-zoom-control {
  height: 48px;
  border: 1px solid rgba(24, 30, 70, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.manual-zoom-control button {
  border: 0;
  border-radius: 0;
}

.manual-zoom-control strong {
  min-width: 76px;
  text-align: center;
}

.manual-switch-row {
  color: #202542;
  font-weight: 850;
  white-space: nowrap;
}

.manual-switch {
  width: 52px;
  height: 30px;
  border-radius: 999px;
  background: #d8dce8;
  position: relative;
}

.manual-switch::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #fff;
  transition: transform 0.18s ease;
}

.manual-switch.is-on {
  background: #5b4dff;
}

.manual-switch.is-on::after {
  transform: translateX(22px);
}

.manual-history-actions {
  margin-left: auto;
}

.manual-history-actions button {
  border: 0;
  color: #727894;
  background: transparent;
}

.manual-editor-filebar {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #65708e;
  font-weight: 850;
}

.manual-editor-filebar label {
  margin-left: auto;
  color: #5b4dff;
  cursor: pointer;
}

.manual-editor-filebar input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.manual-editor-canvas-wrap {
  min-height: 640px;
  border-radius: 10px;
  background:
    linear-gradient(45deg, #f1f2f7 25%, transparent 25%),
    linear-gradient(-45deg, #f1f2f7 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f1f2f7 75%),
    linear-gradient(-45deg, transparent 75%, #f1f2f7 75%),
    #fff;
  background-size: 28px 28px;
  background-position: 0 0, 0 14px, 14px -14px, -14px 0;
}

.manual-editor-sidebar {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 20px;
}

.manual-selection-card {
  padding: 26px;
}

.manual-selection-card h2,
.manual-editor-results h2 {
  margin: 0;
  color: #11142e;
  font-size: 1.35rem;
}

.manual-selection-body {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 24px;
  align-items: center;
  margin-top: 20px;
}

.manual-selected-preview {
  width: 190px;
  height: 170px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(24, 30, 70, 0.1);
  border-radius: 10px;
  color: #7a809b;
  font-weight: 850;
  background:
    linear-gradient(45deg, #f0f1f6 25%, transparent 25%),
    linear-gradient(-45deg, #f0f1f6 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f0f1f6 75%),
    linear-gradient(-45deg, transparent 75%, #f0f1f6 75%),
    #fff;
  background-size: 22px 22px;
  background-position: 0 0, 0 11px, 11px -11px, -11px 0;
}

.manual-selected-preview img {
  max-width: 86%;
  max-height: 86%;
  object-fit: contain;
}

.manual-selection-body dl {
  display: grid;
  gap: 18px;
  margin: 0;
}

.manual-selection-body dl > div {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  align-items: center;
}

.manual-selection-body dt {
  color: #202542;
  font-weight: 900;
}

.manual-selection-body dd {
  margin: 0;
  color: #11142e;
  font-weight: 850;
}

.manual-selection-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.manual-selection-actions button,
.manual-clear-list,
.manual-download-selected,
.manual-download-all {
  min-height: 54px;
  border: 1px solid rgba(24, 30, 70, 0.12);
  border-radius: 10px;
  background: #fff;
  color: #11142e;
  font-weight: 950;
}

.manual-selection-actions .danger {
  color: #ef354f;
}

.manual-editor-results {
  padding: 24px;
}

.manual-editor-results .manual-result-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-height: 330px;
  margin-top: 18px;
}

.manual-editor-results .manual-result-card {
  grid-template-columns: 74px 1fr auto;
  min-height: 112px;
}

.manual-clear-list {
  width: 100%;
  margin-top: 18px;
}

.manual-export-dock {
  min-height: 138px;
  display: grid;
  grid-template-columns: 260px 260px minmax(260px, 1fr) minmax(260px, 1fr);
  align-items: center;
  gap: 14px;
  padding: 28px;
}

.manual-dock-stat {
  height: 82px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 28px;
  border-radius: 12px;
  background: #f8f7ff;
  color: #11142e;
}

.manual-dock-stat strong {
  color: #5b4dff;
  font-size: 1.3rem;
}

.manual-dock-stat span {
  font-weight: 900;
}

.manual-download-selected,
.manual-download-all {
  height: 82px;
  font-size: 1.18rem;
}

.manual-download-all {
  color: #fff;
  border: 0;
  background: linear-gradient(135deg, #633cff 0%, #4d28ee 100%);
  box-shadow: 0 16px 32px rgba(78, 47, 239, 0.24);
}

@media (max-width: 1320px) {
  .manual-editor-grid,
  .manual-export-dock {
    grid-template-columns: 1fr;
  }
}

.manual-export-button {
  width: 100%;
  margin-top: 14px;
}

@media (max-width: 1180px) {
  .manual-empty,
  .manual-layout,
  .manual-toolbar {
    grid-template-columns: 1fr;
  }

  .manual-sidebar {
    position: static;
  }
}

/* Manual editor usability pass */
@media (min-width: 1181px) {
  .manual-editor-body {
    height: 100vh;
    overflow: hidden;
  }

  .manual-editor-shell {
    width: min(100% - 32px, 1840px);
    height: 100vh;
    padding: 16px 0;
    display: grid;
    grid-template-rows: 56px minmax(0, 1fr);
    gap: 14px;
  }

  .manual-editor-top {
    height: 56px;
    margin: 0;
  }

  .manual-back-button,
  .manual-icon-button {
    height: 52px;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(45, 45, 90, 0.05);
  }

  .manual-back-button {
    min-width: 112px;
    font-size: 1rem;
  }

  .manual-icon-button {
    width: 52px;
  }

  .manual-editor-main,
  .manual-editor-workbench {
    min-height: 0;
    height: 100%;
  }

  .manual-editor-workbench {
    grid-template-rows: minmax(0, 1fr) 88px;
    gap: 14px;
  }

  .manual-editor-grid {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) clamp(360px, 28vw, 460px);
    gap: 14px;
  }

  .manual-editor-canvas-card,
  .manual-editor-sidebar > section,
  .manual-export-dock {
    border-radius: 18px;
    box-shadow: 0 16px 44px rgba(45, 45, 90, 0.07);
  }

  .manual-editor-canvas-card {
    min-height: 0;
    height: 100%;
    padding: 16px;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 12px;
  }

  .manual-editor-toolbar {
    min-height: 54px;
    gap: 12px;
    padding-bottom: 12px;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .manual-tool-button,
  .manual-zoom-control button,
  .manual-history-actions button {
    min-width: 44px;
    height: 44px;
  }

  .manual-zoom-control {
    height: 44px;
    flex: 0 0 auto;
  }

  .manual-switch-row {
    font-size: 0.92rem;
  }

  .manual-history-actions {
    margin-left: 0;
  }

  .manual-editor-filebar {
    min-height: 36px;
    gap: 12px;
    font-size: 0.95rem;
  }

  .manual-editor-filebar [data-manual-file] {
    max-width: 52ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .manual-editor-canvas-wrap {
    min-height: 0;
    height: 100%;
    overflow: auto;
    display: grid;
    place-items: center;
    padding: 18px;
    overscroll-behavior: contain;
  }

  .manual-editor-canvas-wrap canvas {
    max-width: none;
    margin: auto;
    box-shadow: 0 12px 30px rgba(22, 28, 64, 0.08);
  }

  .manual-editor-sidebar {
    min-height: 0;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 14px;
  }

  .manual-selection-card,
  .manual-editor-results {
    min-height: 0;
    padding: 18px;
  }

  .manual-selection-card h2,
  .manual-editor-results h2 {
    font-size: 1.2rem;
  }

  .manual-selection-body {
    grid-template-columns: 128px 1fr;
    gap: 16px;
    margin-top: 14px;
  }

  .manual-selected-preview {
    width: 128px;
    height: 110px;
    border-radius: 14px;
  }

  .manual-selection-body dl {
    gap: 12px;
  }

  .manual-selection-body div {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
  }

  .manual-selection-body dd {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .manual-selection-actions {
    margin-top: 14px;
  }

  .manual-selection-actions button,
  .manual-clear-list,
  .manual-download-selected,
  .manual-download-all {
    min-height: 46px;
    border-radius: 12px;
  }

  .manual-editor-results {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  .manual-editor-results .manual-result-list {
    grid-template-columns: 1fr;
    gap: 10px;
    max-height: none;
    min-height: 0;
    margin-top: 14px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
    scrollbar-width: thin;
  }

  .manual-editor-results .manual-result-card {
    grid-template-columns: 72px minmax(0, 1fr) auto;
    min-height: 92px;
    padding: 10px;
    gap: 12px;
    border-radius: 14px;
  }

  .manual-result-card strong,
  .manual-result-card span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .manual-result-actions {
    min-width: 52px;
  }

  .manual-clear-list {
    margin-top: 12px;
  }

  .manual-export-dock {
    min-height: 0;
    height: 88px;
    grid-template-columns: 170px 170px minmax(220px, 1fr) minmax(240px, 1.2fr);
    gap: 12px;
    padding: 14px 18px;
    align-self: end;
  }

  .manual-dock-stat {
    height: 58px;
    padding: 0 18px;
    border-radius: 14px;
  }

  .manual-download-selected,
  .manual-download-all {
    height: 58px;
    font-size: 1rem;
  }
}

/* Manual console design */
.manual-console-body {
  --manual-ink: #11152c;
  --manual-muted: #66708a;
  --manual-line: #e5e8f1;
  --manual-primary: #5a3df4;
  --manual-soft: #f7f8fc;
  height: 100vh;
  overflow: hidden;
  background: #f5f6fa;
  color: var(--manual-ink);
}

.manual-console-shell {
  width: 100%;
  height: 100vh;
  margin: 0;
  padding: 0;
}

.manual-console-empty {
  min-height: 100vh;
  padding: 40px;
  display: grid;
  grid-template-columns: minmax(360px, 0.8fr) minmax(460px, 1fr);
  align-items: center;
  gap: 56px;
}

.manual-console-empty .manual-back-button {
  position: absolute;
  top: 22px;
  left: 24px;
}

.manual-console-workbench {
  height: 100vh;
  display: grid;
  grid-template-rows: 82px minmax(0, 1fr) 88px;
  gap: 0;
  background: #fff;
}

.manual-console-toolbar {
  min-width: 0;
  height: 82px;
  display: grid;
  grid-template-columns: minmax(410px, 1fr) auto minmax(410px, 1fr);
  align-items: center;
  gap: 22px;
  padding: 0 28px;
  border-bottom: 1px solid var(--manual-line);
  background: rgba(255, 255, 255, 0.96);
}

.manual-toolbar-left,
.manual-toolbar-center,
.manual-toolbar-right {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.manual-toolbar-center {
  justify-content: center;
}

.manual-toolbar-right {
  justify-content: flex-end;
}

.manual-toolbar-back,
.manual-toolbar-right button,
.manual-toolbar-right label,
.manual-fit-button,
.manual-console-toolbar .manual-tool-button {
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--manual-ink);
  font-size: 0.98rem;
  font-weight: 800;
  white-space: nowrap;
}

.manual-toolbar-back {
  padding-right: 18px;
  color: #202640;
}

.manual-toolbar-back span {
  font-size: 1.35rem;
}

.manual-toolbar-divider {
  width: 1px;
  height: 48px;
  background: var(--manual-line);
}

.manual-console-toolbar .manual-tool-button {
  min-width: 104px;
  padding: 0 18px;
}

.manual-console-toolbar .manual-tool-button.is-active {
  color: var(--manual-primary);
  border-color: rgba(90, 61, 244, 0.28);
  background: linear-gradient(180deg, #fbfaff, #f4f1ff);
}

.manual-console-toolbar .manual-tool-button span,
.manual-toolbar-right span {
  font-size: 1.25rem;
  line-height: 1;
}

.manual-console-toolbar .manual-zoom-control {
  height: 50px;
  border: 1px solid var(--manual-line);
  border-radius: 9px;
  background: #fff;
  overflow: hidden;
}

.manual-console-toolbar .manual-zoom-control button {
  min-width: 48px;
  height: 48px;
  border: 0;
  border-radius: 0;
  background: #fff;
  font-size: 1.2rem;
}

.manual-console-toolbar .manual-zoom-control strong {
  min-width: 90px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--manual-line);
  border-right: 1px solid var(--manual-line);
  font-size: 1rem;
}

.manual-fit-button {
  min-width: 62px;
  border-color: var(--manual-line);
  background: #fff;
}

.manual-console-toolbar .manual-switch-row {
  gap: 10px;
  color: #29304a;
  font-size: 0.98rem;
}

.manual-console-toolbar .manual-switch {
  width: 54px;
  height: 32px;
}

.manual-toolbar-right button:disabled {
  color: #b5bac8;
}

.manual-toolbar-right label {
  padding: 0 12px;
  cursor: pointer;
}

.manual-toolbar-right input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.manual-console-main {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 480px;
  background: #f7f8fb;
}

.manual-console-canvas-panel {
  min-height: 0;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #f4f6fa;
  display: grid;
  grid-template-rows: 0 minmax(0, 1fr);
}

.manual-canvas-meta {
  height: 0;
  overflow: hidden;
}

.manual-console-canvas-wrap {
  min-height: 0;
  height: 100%;
  padding: 36px 72px;
  overflow: auto;
  border-radius: 0;
  display: grid;
  place-items: center;
  background:
    linear-gradient(45deg, #f0f1f6 25%, transparent 25%),
    linear-gradient(-45deg, #f0f1f6 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f0f1f6 75%),
    linear-gradient(-45deg, transparent 75%, #f0f1f6 75%),
    #fff;
  background-size: 28px 28px;
  background-position: 0 0, 0 14px, 14px -14px, -14px 0;
  background-clip: content-box;
}

.manual-console-canvas-wrap canvas {
  max-width: none;
  margin: auto;
  border-radius: 0;
  box-shadow: none;
  touch-action: none;
  user-select: none;
}

.manual-console-sidebar {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border-left: 1px solid var(--manual-line);
  background: #fff;
}

.manual-console-selection,
.manual-console-results {
  min-height: 0;
  padding: 28px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #fff;
}

.manual-console-selection {
  border-bottom: 1px solid var(--manual-line);
}

.manual-console-selection h2 {
  margin: 0 0 20px;
  font-size: 1.2rem;
  font-weight: 900;
}

.manual-console-selection-body {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin: 0;
}

.manual-console-selection .manual-selected-preview {
  width: 150px;
  height: 150px;
  border-radius: 12px;
  border: 1px solid var(--manual-line);
}

.manual-field-stack {
  display: grid;
  gap: 16px;
}

.manual-field-stack label,
.manual-size-fields,
.manual-inline-switch {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  color: #29304a;
  font-weight: 800;
}

.manual-field-stack input,
.manual-size-fields output {
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--manual-line);
  border-radius: 8px;
  background: #fff;
  color: #29304a;
  font: inherit;
}

.manual-field-stack input:focus {
  outline: 2px solid rgba(90, 61, 244, 0.18);
  border-color: var(--manual-primary);
}

.manual-inline-switch {
  grid-template-columns: auto auto;
  justify-content: start;
}

.manual-primary-action {
  width: 100%;
  height: 58px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #6848ff, #502dea);
  font-size: 1.02rem;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(86, 55, 240, 0.2);
}

.manual-selection-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 22px;
}

.manual-secondary-action {
  width: 100%;
  height: 58px;
  border: 1px solid var(--manual-line);
  border-radius: 8px;
  color: #29304a;
  background: #fff;
  font-size: 1.02rem;
  font-weight: 800;
}

.manual-primary-action:disabled,
.manual-secondary-action:disabled {
  opacity: 0.5;
  box-shadow: none;
}

.manual-console-results {
  display: grid;
  grid-template-rows: 64px auto minmax(0, 1fr) auto;
  padding-top: 0;
}

.manual-console-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0 -28px;
  border-bottom: 1px solid var(--manual-line);
}

.manual-console-tabs button {
  height: 64px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: #fff;
  color: #535b75;
  font-size: 1rem;
  font-weight: 900;
}

.manual-console-tabs button.is-active {
  color: var(--manual-primary);
  border-bottom-color: var(--manual-primary);
}

.manual-console-pending,
.manual-console-results .manual-result-list {
  display: grid;
  gap: 10px;
  max-height: none;
  overflow: auto;
  padding: 18px 0 0;
}

.manual-console-pending {
  max-height: 180px;
}

.manual-console-results .manual-result-list {
  min-height: 0;
  grid-template-columns: 1fr;
  padding-right: 4px;
}

.manual-side-item,
.manual-console-results .manual-result-card {
  min-height: 66px;
  display: grid;
  grid-template-columns: 22px 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border: 1px solid var(--manual-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
  transform: none;
}

.manual-side-item::before,
.manual-console-results .manual-result-card::before {
  content: "⠿";
  color: #8a91a6;
  font-size: 1.1rem;
}

.manual-side-item {
  text-align: left;
  cursor: pointer;
}

.manual-side-item strong,
.manual-side-item span,
.manual-result-card strong,
.manual-result-card span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manual-side-item strong,
.manual-result-card strong {
  color: #1c2239;
  font-size: 0.92rem;
}

.manual-side-item span,
.manual-result-card span {
  color: #778098;
  font-size: 0.82rem;
}

.manual-side-item::after {
  content: "待";
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--manual-primary);
  background: #f1efff;
  font-size: 0.78rem;
  font-weight: 900;
}

.manual-result-thumb {
  width: 58px;
  height: 58px;
  border-radius: 8px;
}

.manual-result-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.manual-result-actions button {
  min-width: 28px;
  color: #4b5268;
  font-size: 0;
}

.manual-clear-list {
  height: 44px;
  min-height: 44px;
  margin-top: 12px;
  border-radius: 8px;
}

.manual-console-dock {
  height: 88px;
  min-height: 88px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px 250px 56px;
  gap: 16px;
  align-items: center;
  padding: 0 28px;
  border: 0;
  border-top: 1px solid var(--manual-line);
  border-radius: 0;
  background: #fff;
  box-shadow: 0 -10px 28px rgba(35, 40, 72, 0.04);
}

.manual-dock-summary,
.manual-dock-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.manual-dock-summary {
  color: #4b5268;
  font-weight: 800;
}

.manual-dock-summary strong {
  margin-left: 10px;
  color: #11152c;
}

.manual-dock-summary i {
  width: 1px;
  height: 22px;
  background: var(--manual-line);
}

.manual-dock-actions {
  grid-column: 2 / -1;
  justify-content: flex-end;
  min-width: 0;
}

.manual-console-dock .manual-download-selected,
.manual-console-dock .manual-download-all {
  height: 58px;
  min-height: 58px;
  border-radius: 8px;
  font-size: 1rem;
}

.manual-console-dock .manual-download-selected {
  display: none !important;
  color: #202640;
  background: #fff;
}

.manual-console-dock .manual-download-all {
  min-width: 236px;
  padding: 0 20px;
  white-space: nowrap;
  color: #fff;
  background: linear-gradient(135deg, #6745ff, #502de9);
}

.manual-dock-more {
  height: 58px;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #6745ff, #502de9);
  font-size: 1.4rem;
  font-weight: 900;
}

@media (max-width: 1380px) {
  .manual-console-toolbar {
    grid-template-columns: 1fr;
    height: auto;
    padding: 12px 18px;
  }

  .manual-console-workbench {
    grid-template-rows: auto minmax(0, 1fr) 88px;
  }

  .manual-toolbar-center,
  .manual-toolbar-right {
    justify-content: flex-start;
  }
}

/* Manual console right panel refinement */
.manual-console-main {
  grid-template-columns: minmax(0, 1fr) 460px;
}

.manual-console-selection,
.manual-console-results {
  padding-left: 24px;
  padding-right: 24px;
}

.manual-console-selection {
  padding-top: 24px;
  padding-bottom: 24px;
}

.manual-console-selection h2 {
  margin-bottom: 16px;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.manual-console-selection-body {
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 20px;
}

.manual-console-selection .manual-selected-preview {
  width: 132px;
  height: 132px;
}

.manual-field-stack {
  gap: 12px;
}

.manual-field-stack label,
.manual-size-fields,
.manual-inline-switch {
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  font-size: 0.92rem;
}

.manual-field-stack input,
.manual-size-fields output {
  height: 38px;
  padding: 0 12px;
  border-radius: 7px;
  font-size: 0.92rem;
}

.manual-inline-switch {
  min-height: 34px;
}

.manual-console-selection .manual-switch {
  width: 48px;
  height: 28px;
}

.manual-console-selection .manual-switch::after {
  width: 20px;
  height: 20px;
}

.manual-console-selection .manual-switch.is-on::after {
  transform: translateX(20px);
}

.manual-primary-action {
  height: 48px;
  min-height: 48px;
  margin-top: 18px;
  border-radius: 7px;
  font-size: 0.95rem;
}

.manual-console-results {
  grid-template-rows: 60px minmax(0, auto) minmax(0, 1fr) auto;
}

.manual-console-tabs {
  margin-left: -24px;
  margin-right: -24px;
}

.manual-console-tabs button {
  height: 60px;
  font-size: 0.96rem;
}

.manual-console-pending,
.manual-console-results .manual-result-list {
  gap: 9px;
  padding-top: 16px;
}

.manual-console-pending {
  max-height: min(220px, 34vh);
}

.manual-side-item,
.manual-console-results .manual-result-card {
  min-height: 64px;
  grid-template-columns: 20px 54px minmax(0, 1fr) 44px;
  gap: 10px;
  padding: 6px 10px;
  align-items: center;
}

.manual-side-item::before,
.manual-side-item::after {
  content: none;
}

.manual-console-results .manual-result-card::before {
  content: "⠿";
}

.manual-list-grip {
  display: grid;
  place-items: center;
  color: #9399aa;
  font-size: 1.05rem;
  line-height: 1;
}

.manual-list-meta {
  min-width: 0;
  display: grid;
  gap: 2px;
  align-content: center;
}

.manual-result-thumb {
  width: 54px;
  height: 54px;
  border-radius: 7px;
  align-self: center;
}

.manual-result-thumb img {
  max-width: 86%;
  max-height: 86%;
}

.manual-pending-badge {
  justify-self: end;
  min-width: 34px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--manual-primary);
  background: #f1efff;
  font-size: 0.74rem;
  font-weight: 900;
  white-space: nowrap;
}

.manual-result-actions {
  justify-self: end;
  gap: 6px;
}

.manual-result-actions button {
  width: 26px;
  min-width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
}

.manual-empty-list {
  min-height: 88px;
  display: grid;
  place-items: center;
  padding: 18px;
  text-align: center;
  color: #7d8497;
  border: 1px dashed #dfe3ef;
  background: #fafbff;
}

.manual-clear-list {
  height: 40px;
  min-height: 40px;
  margin-top: 10px;
  font-size: 0.9rem;
}

.manual-console-dock {
  height: 80px;
  min-height: 80px;
  grid-template-columns: minmax(0, 1fr) 210px 230px 52px;
}

.manual-console-dock .manual-download-selected,
.manual-console-dock .manual-download-all,
.manual-dock-more {
  height: 52px;
  min-height: 52px;
  font-size: 0.95rem;
}

/* Manual compact chrome */
.manual-console-workbench {
  grid-template-rows: 56px minmax(0, 1fr) 56px;
}

.manual-console-toolbar {
  height: 56px;
  min-height: 56px;
  gap: 14px;
  padding: 0 18px;
}

.manual-toolbar-left,
.manual-toolbar-center,
.manual-toolbar-right {
  gap: 10px;
}

.manual-toolbar-back,
.manual-toolbar-right button,
.manual-toolbar-right label,
.manual-fit-button,
.manual-console-toolbar .manual-tool-button {
  height: 38px;
  min-height: 38px;
  border-radius: 7px;
  font-size: 0.9rem;
}

.manual-toolbar-back {
  padding-right: 12px;
}

.manual-toolbar-back span,
.manual-console-toolbar .manual-tool-button span,
.manual-toolbar-right span {
  font-size: 1.05rem;
}

.manual-toolbar-divider {
  height: 34px;
}

.manual-console-toolbar .manual-tool-button {
  min-width: 82px;
  padding: 0 12px;
}

.manual-console-toolbar .manual-zoom-control {
  height: 38px;
  border-radius: 7px;
}

.manual-console-toolbar .manual-zoom-control button {
  min-width: 38px;
  height: 36px;
  font-size: 1rem;
}

.manual-console-toolbar .manual-zoom-control strong {
  min-width: 74px;
  height: 36px;
  font-size: 0.9rem;
}

.manual-fit-button {
  min-width: 54px;
}

.manual-console-toolbar .manual-switch-row {
  gap: 8px;
  font-size: 0.9rem;
}

.manual-console-toolbar .manual-switch {
  width: 44px;
  height: 26px;
}

.manual-console-toolbar .manual-switch::after {
  width: 18px;
  height: 18px;
}

.manual-console-toolbar .manual-switch.is-on::after {
  transform: translateX(18px);
}

.manual-console-dock {
  height: 56px;
  min-height: 56px;
  grid-template-columns: minmax(0, 1fr) 184px 210px 46px;
  gap: 10px;
  padding: 0 18px;
}

.manual-dock-summary {
  gap: 18px;
  font-size: 0.9rem;
}

.manual-dock-summary i {
  height: 18px;
}

.manual-console-dock .manual-download-selected,
.manual-console-dock .manual-download-all,
.manual-dock-more {
  height: 40px;
  min-height: 40px;
  border-radius: 7px;
  font-size: 0.9rem;
}

/* Manual right panel match */
.manual-console-main {
  grid-template-columns: minmax(0, 1fr) 360px;
}

.manual-console-selection {
  padding: 16px 12px 18px;
}

.manual-console-selection h2 {
  margin: 0 0 14px;
  font-size: 0.98rem;
  font-weight: 950;
}

.manual-console-selection-body {
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.manual-console-selection .manual-selected-preview {
  width: 108px;
  height: 108px;
  border-radius: 10px;
}

.manual-field-stack {
  gap: 10px;
  align-content: start;
}

.manual-name-field {
  display: block;
}

.manual-name-field input {
  width: 100%;
  height: 36px;
  border-radius: 7px;
  font-size: 0.9rem;
}

.manual-size-fields {
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
  font-size: 0.88rem;
}

.manual-size-fields > span,
.manual-inline-switch > span {
  color: #37405a;
  font-weight: 850;
}

.manual-size-fields output {
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  display: grid;
  grid-template-columns: minmax(44px, 1fr) 24px minmax(44px, 1fr) 24px;
  gap: 6px;
  align-items: center;
}

.manual-size-fields output b,
.manual-size-fields output em {
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--manual-line);
  background: #fff;
  font-style: normal;
}

.manual-size-fields output b {
  border-radius: 7px 0 0 7px;
  color: #192039;
  font-size: 0.88rem;
}

.manual-size-fields output em {
  margin-left: -7px;
  border-left: 0;
  border-radius: 0 7px 7px 0;
  color: #8a91a5;
  font-size: 0.78rem;
  font-weight: 850;
}

.manual-inline-switch {
  min-height: 30px;
  grid-template-columns: auto auto;
  justify-content: start;
  gap: 12px;
  font-size: 0.88rem;
}

.manual-console-selection .manual-switch {
  width: 42px;
  height: 24px;
}

.manual-console-selection .manual-switch::after {
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
}

.manual-console-selection .manual-switch.is-on::after {
  transform: translateX(18px);
}

.manual-primary-action {
  height: 42px;
  min-height: 42px;
  margin-top: 14px;
  border-radius: 6px;
  font-size: 0.9rem;
}

.manual-console-results {
  grid-template-rows: 48px minmax(0, auto) minmax(0, 1fr) auto;
  padding: 0 12px 14px;
}

.manual-console-tabs {
  margin: 0 -12px;
}

.manual-console-tabs button {
  height: 48px;
  border-bottom-width: 2px;
  font-size: 0.9rem;
}

.manual-console-pending,
.manual-console-results .manual-result-list {
  gap: 8px;
  padding-top: 12px;
}

.manual-side-item,
.manual-console-results .manual-result-card {
  min-height: 56px;
  grid-template-columns: 16px 46px minmax(0, 1fr) 38px;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 7px;
}

.manual-list-grip {
  font-size: 0.9rem;
}

.manual-result-thumb {
  width: 46px;
  height: 46px;
  border-radius: 7px;
}

.manual-list-meta {
  gap: 1px;
}

.manual-list-meta strong,
.manual-result-card strong {
  font-size: 0.84rem;
}

.manual-list-meta span,
.manual-result-card span {
  font-size: 0.76rem;
}

.manual-pending-badge {
  min-width: 30px;
  height: 22px;
  padding: 0 6px;
  font-size: 0.68rem;
}

.manual-result-actions {
  gap: 4px;
}

.manual-result-actions button {
  width: 22px;
  min-width: 22px;
  height: 22px;
}

.manual-empty-list {
  min-height: 70px;
  padding: 14px;
  border-radius: 10px;
  font-size: 0.86rem;
  line-height: 1.45;
}

.manual-clear-list {
  height: 34px;
  min-height: 34px;
  margin-top: 8px;
  border-radius: 7px;
  font-size: 0.84rem;
}

.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;
}

/* Manual output size editor */
.manual-console-main {
  grid-template-columns: minmax(0, 1fr) 420px;
}

.manual-console-selection {
  padding: 16px 16px 18px;
}

.manual-console-results {
  padding-left: 16px;
  padding-right: 16px;
}

.manual-console-tabs {
  margin-left: -16px;
  margin-right: -16px;
}

.manual-console-selection-body {
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
}

.manual-console-selection .manual-selected-preview {
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.manual-selected-preview img {
  display: block;
  width: auto;
  height: auto;
  max-width: 82%;
  max-height: 82%;
  object-fit: contain;
  justify-self: center;
  align-self: center;
}

.manual-field-stack .manual-name-field {
  display: block;
}

.manual-name-field input {
  width: 100%;
}

.manual-size-fields {
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
}

.manual-size-inputs {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.manual-size-inputs label {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 26px;
  gap: 0;
}

.manual-size-inputs input {
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 0 8px;
  border: 1px solid var(--manual-line);
  border-right: 0;
  border-radius: 7px 0 0 7px;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 850;
}

.manual-size-inputs input:focus {
  outline: 2px solid rgba(90, 61, 244, 0.18);
  border-color: var(--manual-primary);
}

.manual-size-inputs em {
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--manual-line);
  border-radius: 0 7px 7px 0;
  color: #8a91a5;
  background: #fff;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 850;
}

.manual-size-inputs input:disabled,
.manual-size-inputs input:disabled + em {
  color: #9aa1b3;
  background: #fbfcff;
}

.manual-result-thumb > span {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #eef0f7;
}

/* Manual list panels share the same scroll slot */
.manual-console-results {
  grid-template-rows: 48px minmax(0, 1fr) 42px;
}

.manual-console-tabs {
  grid-row: 1;
}

.manual-console-pending,
.manual-console-results .manual-result-list {
  grid-row: 2;
  min-height: 0;
  height: 100%;
  max-height: none;
  overflow-y: auto;
  overflow-x: hidden;
  align-content: start;
  grid-auto-rows: max-content;
}

.manual-clear-list {
  grid-row: 3;
}

/* Manual right panel stable stack */
.manual-console-selection {
  padding: 14px 16px 16px;
}

.manual-console-selection-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.manual-console-selection .manual-selected-preview {
  justify-self: center;
  width: 112px;
  height: 112px;
}

.manual-field-stack {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.manual-name-field,
.manual-size-fields,
.manual-inline-switch {
  width: 100%;
}

.manual-name-field {
  display: block;
}

.manual-size-fields {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px;
}

.manual-inline-switch {
  display: flex;
  align-items: center;
  gap: 12px;
}

.manual-primary-action {
  margin-top: 12px;
}

.manual-console-results {
  min-height: 0;
  display: grid;
  grid-template-rows: 48px minmax(0, 1fr) 40px;
}

.manual-console-pending,
.manual-console-results .manual-result-list {
  display: grid;
  min-height: 0;
  height: auto;
  max-height: none;
  overflow-y: auto;
  overflow-x: hidden;
  align-content: start;
  grid-auto-rows: max-content;
}

.manual-side-item,
.manual-console-results .manual-result-card {
  width: 100%;
  box-sizing: border-box;
}

/* Manual page cleanup: only shipped controls remain interactive. */
.manual-console-workbench {
  grid-template-rows: 56px minmax(0, 1fr) 56px;
  height: 100vh;
}

.manual-console-toolbar {
  height: 56px;
  min-height: 56px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  padding: 0 18px;
}

.manual-toolbar-left,
.manual-toolbar-center,
.manual-toolbar-right {
  min-width: 0;
  gap: 10px;
}

.manual-console-toolbar .manual-tool-button,
.manual-toolbar-back,
.manual-toolbar-right button,
.manual-toolbar-right label,
.manual-fit-button {
  height: 38px;
  min-height: 38px;
  border-radius: 8px;
  white-space: nowrap;
}

.manual-console-toolbar .manual-tool-button {
  min-width: 76px;
}

.manual-console-toolbar .manual-tool-button.is-active {
  color: var(--manual-primary);
  border-color: rgba(90, 61, 244, 0.34);
  background: #f5f2ff;
}

.manual-console-main {
  grid-template-columns: minmax(0, 1fr) 360px;
  min-height: 0;
}

.manual-console-canvas-wrap.is-grid-hidden {
  background: #fff;
}

.manual-console-selection {
  padding: 18px 22px 16px;
}

.manual-console-selection h2 {
  margin: 0 0 14px;
  font-size: 1rem;
}

.manual-console-selection-body {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.manual-console-selection .manual-selected-preview {
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  align-self: start;
}

.manual-selected-preview span {
  text-align: center;
  color: #7e8598;
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.35;
}

.manual-selected-preview img {
  width: auto;
  height: auto;
  max-width: 86%;
  max-height: 86%;
  object-fit: contain;
}

.manual-field-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  min-width: 0;
}

.manual-name-field,
.manual-size-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  min-width: 0;
  width: 100%;
}

.manual-field-label {
  display: block;
  color: #303852;
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1;
}

.manual-name-field input {
  width: 100%;
  height: 36px;
  min-width: 0;
  border-radius: 8px;
}

.manual-size-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.manual-size-inputs label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 26px;
  min-width: 0;
}

.manual-size-inputs input {
  width: 100%;
  min-width: 0;
  height: 34px;
  text-align: center;
}

.manual-primary-action {
  height: 42px;
  min-height: 42px;
  margin-top: 14px;
  border-radius: 8px;
}

.manual-console-results {
  display: grid;
  grid-template-rows: 48px minmax(0, 1fr) 34px;
  min-height: 0;
  padding: 0 14px 14px;
}

.manual-console-tabs {
  margin: 0 -14px;
}

.manual-console-tabs button {
  height: 48px;
}

.manual-console-pending,
.manual-console-results .manual-result-list {
  min-height: 0;
  height: 100%;
  max-height: none;
  overflow-y: auto;
  overflow-x: hidden;
  display: grid;
  grid-auto-rows: max-content;
  align-content: start;
  gap: 9px;
  padding: 12px 0 0;
}

.manual-side-item,
.manual-console-results .manual-result-card {
  min-height: 60px;
  width: 100%;
  padding: 6px 8px;
  border-radius: 9px;
  border: 1px solid #e5e8f3;
  background: #fff;
  box-shadow: none;
}

.manual-side-item {
  grid-template-columns: 16px 48px minmax(0, 1fr) 38px;
}

.manual-console-results .manual-result-card {
  grid-template-columns: 48px minmax(0, 1fr) auto;
}

.manual-side-item::before,
.manual-side-item::after,
.manual-console-results .manual-result-card::before,
.manual-console-results .manual-result-card::after {
  content: none !important;
  display: none !important;
}

.manual-result-thumb {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
}

.manual-result-thumb img {
  width: auto;
  height: auto;
  max-width: 86%;
  max-height: 86%;
  object-fit: contain;
}

.manual-list-meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.manual-side-item strong,
.manual-console-results .manual-result-card strong {
  font-size: 0.84rem;
}

.manual-side-item span,
.manual-console-results .manual-result-card span {
  font-size: 0.75rem;
}

.manual-result-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.manual-ui-icon {
  width: 22px;
  height: 22px;
  display: inline-block;
  flex: 0 0 auto;
  object-fit: contain;
  vertical-align: middle;
}

.manual-toolbar-back .manual-ui-icon,
.manual-back-button .manual-ui-icon,
.manual-console-toolbar .manual-tool-button .manual-ui-icon,
.manual-toolbar-right label .manual-ui-icon {
  width: 24px;
  height: 24px;
}

.manual-toolbar-right label .manual-ui-icon {
  width: 28px;
  height: 28px;
}

.manual-dock-summary .manual-ui-icon {
  width: 30px;
  height: 30px;
  margin-right: 8px;
}

.manual-console-dock .manual-ui-icon {
  width: 26px;
  height: 26px;
}

.manual-result-actions .manual-ui-icon {
  width: 20px;
  height: 20px;
}

/* Manual results panel: pending queue was removed from the UI. */
.manual-console-results {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) !important;
  min-height: 0;
  padding: 16px 14px 14px !important;
}

.manual-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 0 12px;
  border-bottom: 1px solid #e5e8f3;
}

.manual-results-header h2 {
  margin: 0;
  color: #191f34;
  font-size: 0.96rem;
  font-weight: 800;
}

.manual-results-header span {
  color: #737b91;
  font-size: 0.84rem;
  font-weight: 500;
}

.manual-results-header strong {
  color: var(--manual-primary);
  font-weight: 800;
}

.manual-console-results .manual-result-list {
  grid-row: 2 !important;
  min-height: 0;
  height: 100%;
  max-height: none;
  overflow-y: auto;
  overflow-x: hidden;
  display: grid;
  grid-auto-rows: max-content;
  align-content: start;
  gap: 9px;
  padding: 12px 0 0 !important;
}

.manual-console-selection .manual-selection-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.manual-console-selection .manual-primary-action,
.manual-console-selection .manual-secondary-action {
  height: 42px;
  min-height: 42px;
  margin-top: 0;
  border-radius: 8px;
  font-size: 0.9rem;
}

.manual-console-selection .manual-primary-action {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, #6848ff, #502dea);
  box-shadow: 0 12px 28px rgba(86, 55, 240, 0.2);
}

.manual-console-selection .manual-secondary-action {
  border: 1px solid #dfe3ef;
  color: #29304a;
  background: #fff;
  box-shadow: none;
}

@media (max-width: 760px) {
  .manual-console-selection .manual-selection-actions {
    grid-template-columns: 1fr;
  }
}

.manual-result-actions button {
  width: 24px;
  min-width: 24px;
  height: 24px;
}

.manual-result-actions button[data-download-manual]::before,
.manual-result-actions button[data-delete-manual-result]::before {
  content: none !important;
}

.manual-console-dock .manual-download-selected,
.manual-console-dock .manual-download-all,
.manual-result-actions button,
.manual-toolbar-back,
.manual-back-button,
.manual-console-toolbar .manual-tool-button,
.manual-toolbar-right label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.manual-clear-list {
  height: 34px;
  min-height: 34px;
  margin-top: 8px;
  border-radius: 8px;
}

.manual-console-dock {
  height: 56px;
  min-height: 56px;
  grid-template-columns: minmax(0, 1fr) 184px 210px;
  gap: 10px;
  padding: 0 18px;
}

.manual-console-dock .manual-download-selected,
.manual-console-dock .manual-download-all {
  height: 40px;
  min-height: 40px;
  border-radius: 8px;
}

.manual-console-dock .manual-download-all {
  min-width: 208px;
  padding: 0 16px;
}

.manual-dock-more {
  display: none !important;
}

/* Unified marketing navigation across Product, Pricing and FAQ. */
body.home-workbench,
body.pricing-workbench,
body.faq-workbench {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.home-workbench .marketing-nav,
.pricing-workbench .marketing-nav,
.faq-workbench .marketing-nav {
  height: 78px;
  padding: 0 44px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.home-workbench .marketing-brand,
.pricing-workbench .marketing-brand,
.faq-workbench .marketing-brand {
  gap: 12px;
  color: #080b22;
  font-size: 2.05rem;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.055em;
}

.home-workbench .marketing-brand-avatar,
.pricing-workbench .marketing-brand-avatar,
.faq-workbench .marketing-brand-avatar {
  width: 62px;
  height: 52px;
  border-radius: 0;
  background: transparent;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.home-workbench .marketing-brand-avatar img,
.pricing-workbench .marketing-brand-avatar img,
.faq-workbench .marketing-brand-avatar img {
  width: 60px;
  height: 48px;
  object-fit: contain;
}

.home-workbench .marketing-menu,
.pricing-workbench .marketing-menu,
.faq-workbench .marketing-menu {
  gap: 56px;
  font-size: 1.04rem;
  font-weight: 900;
}

.home-workbench .marketing-login,
.home-workbench .marketing-start,
.pricing-workbench .marketing-login,
.pricing-workbench .marketing-start,
.faq-workbench .marketing-login,
.faq-workbench .marketing-start {
  min-width: 104px;
  height: 50px;
  border-radius: 13px;
  font-size: 1rem;
  font-weight: 900;
}

.pricing-workbench .pricing-stage {
  grid-template-columns: 1fr;
  width: min(1170px, 100%);
  margin: 0 auto;
}

.pricing-workbench .plan-grid {
  width: 100%;
}

.pricing-workbench .plan-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.pricing-workbench .plan-card {
  min-height: 450px;
  padding: 28px 24px 30px;
}

.pricing-workbench .plan-card h2 {
  font-size: 1.54rem;
}

.pricing-workbench .plan-price strong {
  font-size: clamp(3rem, 5vw, 4.2rem);
}

.pricing-workbench .plan-card li {
  font-size: 0.96rem;
}

.pricing-workbench .plan-card > p {
  min-height: 48px;
}

.plan-button {
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}

.plan-button[disabled] {
  cursor: not-allowed;
  opacity: 0.62;
  box-shadow: none;
}

.plan-badge.lifetime {
  background: linear-gradient(135deg, #ffb545, #ff7b54);
  box-shadow: 0 12px 26px rgba(245, 119, 73, 0.18);
}

.paypal-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}

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

.paypal-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 13, 31, 0.34);
  backdrop-filter: blur(8px);
}

.paypal-modal-panel {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  padding: 26px;
  border: 1px solid rgba(91, 77, 255, 0.16);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 34px 90px rgba(35, 31, 82, 0.24);
}

.paypal-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.paypal-modal-title {
  margin: 0;
  color: var(--mk-ink);
  font-size: 1.35rem;
  line-height: 1.25;
}

.paypal-modal-meta {
  margin: 8px 0 0;
  color: var(--mk-muted);
  font-weight: 750;
}

.paypal-modal-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--mk-line);
  border-radius: 999px;
  color: #28304f;
  background: #fff;
  font-size: 1.25rem;
  cursor: pointer;
}

.paypal-button-slot {
  min-height: 52px;
}

.paypal-status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  color: #4d5676;
  background: #f5f4ff;
  font-weight: 800;
  line-height: 1.5;
}

.paypal-status.is-error {
  color: #a63a22;
  background: #fff1ec;
}

.paypal-status.is-success {
  color: #12783c;
  background: #eaf9ef;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
}

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

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 13, 31, 0.34);
  backdrop-filter: blur(8px);
}

.auth-modal-panel {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  padding: 28px;
  border: 1px solid rgba(91, 77, 255, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 34px 90px rgba(35, 31, 82, 0.24);
}

.auth-modal-panel h2 {
  margin: 0 0 10px;
  color: var(--mk-ink, #0b1028);
  font-size: 1.45rem;
}

.auth-modal-panel p {
  margin: 0 0 20px;
  color: #5b6485;
  line-height: 1.6;
  font-weight: 500;
}

.auth-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--mk-line, #dfe4f5);
  border-radius: 999px;
  color: #28304f;
  background: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

.auth-provider-list {
  display: grid;
  gap: 12px;
}

.auth-provider {
  height: 50px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-weight: 850;
}

.auth-provider.google {
  background: #1f2937;
}

@media (max-width: 1200px) {
  .pricing-workbench .plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .pricing-workbench .plan-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .home-workbench .marketing-nav,
  .pricing-workbench .marketing-nav,
  .faq-workbench .marketing-nav {
    height: auto;
    padding: 16px 24px;
    grid-template-columns: 1fr;
  }
}

/* Manual current selection panel: reset legacy broad rules from the older editor. */
.manual-console-selection .manual-console-selection-body {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.manual-console-selection .manual-selected-preview {
  width: 112px;
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  align-self: start;
  padding: 8px;
  overflow: hidden;
  border: 1px solid var(--manual-line);
  border-radius: 10px;
}

.manual-console-selection .manual-selected-preview img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  margin: auto;
  object-fit: contain;
}

.manual-console-selection .manual-selected-preview span {
  display: block;
  width: 100%;
  text-align: center;
}

.manual-console-selection .manual-field-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  align-content: start;
}

.manual-console-selection .manual-name-field,
.manual-console-selection .manual-size-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  width: 100%;
  min-width: 0;
}

.manual-console-selection .manual-field-label {
  display: block;
  color: #303852;
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1.1;
}

.manual-console-selection .manual-name-field input {
  display: block;
  width: 100%;
  min-width: 0;
  height: 36px;
}

.manual-console-selection .manual-size-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.manual-console-selection .manual-size-inputs label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 26px;
  gap: 0;
  min-width: 0;
}

.manual-console-selection .manual-size-inputs input {
  width: 100%;
  min-width: 0;
}
