html[data-home-theme="editorial"] {
  color-scheme: dark;
  --bg: #050706;
  --panel: #0b0e0c;
  --panel-2: #111410;
  --surface: #0b0e0c;
  --surface-2: #111410;
  --line: #292c27;
  --soft-line: #1d201c;
  --field-line: #49463f;
  --text: #d8c9bb;
  --muted: #938a7f;
  --accent: #bd5a31;
  --accent-dark: #d07147;
  --accent-green: #4d8359;
  --accent-soft: rgba(185, 86, 47, 0.14);
  --warn: #c39a5d;
  --warn-bg: rgba(185, 141, 80, 0.12);
  --card-bg: #0b0e0c;
  --editorial-bg: #050706;
  --editorial-bg-deep: #030504;
  --editorial-surface: #0b0e0c;
  --editorial-surface-2: #111410;
  --editorial-surface-hover: #181a16;
  --editorial-text-strong: #ead9c8;
  --editorial-text: #d8c9bb;
  --editorial-text-secondary: #aa9d90;
  --editorial-text-muted: #88877d;
  --editorial-text-disabled: #686b63;
  --editorial-line: #292c27;
  --editorial-line-soft: #1d201c;
  --editorial-line-warm: #694936;
  --editorial-field-border: #49463f;
  --editorial-accent: #b9562f;
  --editorial-accent-hover: #ca663c;
  --editorial-accent-active: #934224;
  --editorial-accent-text: #fff3e9;
  --editorial-focus: #dc8057;
  --editorial-success: #467851;
  --editorial-success-soft: #19291e;
  --editorial-danger: #bd6760;
  --font-display: "Source Han Sans SC", "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-editorial: "Source Han Serif SC", "Noto Serif CJK SC", "Songti SC", STSong, SimSun, serif;
  --font-ui: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Cascadia Mono", Consolas, monospace;
  --page-max: 1440px;
  --page-gutter: clamp(20px, 3.2vw, 48px);
  --header-height: 76px;
}

html[data-home-theme="editorial"],
html[data-home-theme="editorial"] body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
}

html[data-home-theme="editorial"] body {
  margin: 0;
  color: var(--editorial-text);
  font-family: var(--font-ui);
  background-color: var(--editorial-bg);
  background-image: url("/assets/homepage-texture.png?v=20260809");
  background-repeat: repeat;
  background-size: 640px 640px;
  background-attachment: fixed;
}

html[data-home-theme="editorial"] body::before {
  display: none;
}

html[data-home-theme="editorial"] header {
  min-height: var(--header-height);
  height: var(--header-height);
  padding: 0 var(--page-gutter);
  border-bottom: 1px solid var(--editorial-line);
  background: rgba(5, 7, 6, 0.96);
  color: var(--editorial-text-strong);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

html[data-home-theme="editorial"] h1 {
  color: var(--editorial-text-strong);
  background: none;
  font-family: var(--font-editorial);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

html[data-home-theme="editorial"] .header-actions {
  gap: 26px;
}

html[data-home-theme="editorial"] #appState {
  color: var(--editorial-success);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.05em;
}

html[data-home-theme="editorial"] .feedback-open {
  width: auto;
  min-width: 196px;
  height: 40px;
  margin: 0;
  padding: 0 24px;
  border: 1px solid var(--editorial-line-warm);
  border-radius: 2px;
  color: var(--editorial-text);
  background: transparent;
  box-shadow: none;
  font-family: var(--font-editorial);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

html[data-home-theme="editorial"] .feedback-open:hover {
  border-color: var(--editorial-accent);
  color: var(--editorial-accent-text);
  background: rgba(185, 86, 47, 0.09);
}

html[data-home-theme="editorial"] .landing {
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: start;
  justify-content: stretch;
  width: min(var(--page-max), 100%);
  min-height: calc(100vh - var(--header-height));
  margin: 0 auto;
  padding: 58px var(--page-gutter) 30px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  text-align: left;
}

html[data-home-theme="editorial"] .landing::before {
  display: none;
}

html[data-home-theme="editorial"] .landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(520px, 0.95fr);
  gap: clamp(36px, 6vw, 92px);
  align-items: end;
  padding: 8px 26px 52px;
  border-bottom: 1px solid var(--editorial-line);
}

html[data-home-theme="editorial"] .landing-copy {
  min-width: 0;
}

html[data-home-theme="editorial"] .landing h2 {
  max-width: none;
  margin: 0 0 12px;
  color: var(--editorial-text-strong);
  background: none;
  font-family: var(--font-display);
  font-size: clamp(42px, 4.1vw, 62px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0.01em;
}

html[data-home-theme="editorial"] .landing p {
  max-width: 620px;
  margin: 0;
  color: var(--editorial-text-muted);
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.65;
  letter-spacing: 0.04em;
}

html[data-home-theme="editorial"] .landing-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 24px;
  width: 100%;
  max-width: none;
  margin: 0;
}

html[data-home-theme="editorial"] .landing-actions button {
  width: 100%;
  min-width: 0;
  min-height: 72px;
  height: 72px;
  margin: 0;
  padding: 0 26px;
  border-radius: 2px;
  font-family: var(--font-editorial);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.055em;
  box-shadow: none;
}

html[data-home-theme="editorial"] .landing-actions #startFormatMode {
  color: var(--editorial-accent-text);
  border: 1px solid #cb704b;
  background: var(--editorial-accent);
}

html[data-home-theme="editorial"] .landing-actions #startFormatMode:hover {
  color: #fff9f4;
  border-color: #db805a;
  background: var(--editorial-accent-hover);
}

html[data-home-theme="editorial"] .landing-actions #startAiMode {
  color: var(--editorial-text);
  border: 1px solid #75695e;
  background: rgba(5, 7, 6, 0.3);
}

html[data-home-theme="editorial"] .landing-actions #startAiMode:hover {
  color: var(--editorial-text-strong);
  border-color: var(--editorial-line-warm);
  background: var(--editorial-surface-hover);
}

html[data-home-theme="editorial"] .landing-actions button:first-child {
  box-shadow: none;
}

html[data-home-theme="editorial"] .landing-process {
  margin: 24px 0 0;
  overflow: hidden;
  border-bottom: 1px solid var(--editorial-line);
}

html[data-home-theme="editorial"] .landing-process picture,
html[data-home-theme="editorial"] .landing-process img {
  display: block;
  width: 100%;
}

html[data-home-theme="editorial"] .landing-process img {
  height: auto;
  min-height: 0;
  object-fit: contain;
}

html[data-home-theme="editorial"] .landing-trust {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 52px;
  padding: 14px 0 4px;
  color: var(--editorial-text-secondary);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}

html[data-home-theme="editorial"] .landing-trust span[aria-hidden="true"] {
  color: var(--editorial-success);
}

html[data-home-theme="editorial"] main#workflowShell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  width: min(var(--page-max), 100%);
  max-width: var(--page-max);
  min-height: calc(100vh - var(--header-height));
  margin: 0 auto;
  padding: 32px var(--page-gutter) 68px;
}

html[data-home-theme="editorial"] .workflow-bar {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 0 0 24px;
  border: 0;
  border-bottom: 1px solid var(--editorial-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

html[data-home-theme="editorial"] #workflowTitle {
  margin: 0;
  color: var(--editorial-text-secondary);
  font-family: var(--font-editorial);
  font-size: 17px;
  letter-spacing: 0.04em;
}

html[data-home-theme="editorial"] .back-home {
  flex: 0 0 auto;
  width: auto;
  min-width: 112px;
  height: 40px;
  margin: 0;
  padding: 0 18px;
}

html[data-home-theme="editorial"] .stepper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 16px;
  border-top: 1px solid var(--editorial-line-soft);
  border-bottom: 1px solid var(--editorial-line-soft);
}

html[data-home-theme="editorial"] .step-item {
  min-height: 70px;
  padding: 14px 18px;
  border: 0;
  border-right: 1px solid var(--editorial-line-soft);
  border-radius: 0;
  color: var(--editorial-text-muted);
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

html[data-home-theme="editorial"] .step-item:last-child {
  border-right: 0;
}

html[data-home-theme="editorial"] .step-item::before {
  width: 0;
  height: 2px;
  border-radius: 0;
  background: var(--editorial-accent);
  transition: width 180ms ease;
}

html[data-home-theme="editorial"] .step-item.active {
  color: var(--editorial-text-strong);
  border-color: var(--editorial-line-soft);
  background: rgba(185, 86, 47, 0.08);
  box-shadow: none;
}

html[data-home-theme="editorial"] .step-item.active::before {
  width: 100%;
  background: var(--editorial-accent);
}

html[data-home-theme="editorial"] .step-item.done {
  color: var(--editorial-text-secondary);
  border-color: var(--editorial-line-soft);
}

html[data-home-theme="editorial"] .step-item.done::before {
  width: 100%;
  background: var(--editorial-success);
}

html[data-home-theme="editorial"] .step-item.skipped {
  opacity: 0.48;
}

html[data-home-theme="editorial"] .step-index {
  margin-bottom: 5px;
  color: var(--editorial-accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

html[data-home-theme="editorial"] .step-item.done .step-index {
  color: var(--editorial-success);
}

html[data-home-theme="editorial"] .step-title {
  color: inherit;
  font-family: var(--font-editorial);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

html[data-home-theme="editorial"] .step-narrow {
  width: min(840px, 100%);
  max-width: 840px;
}

html[data-home-theme="editorial"] .format-step-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.2fr) minmax(270px, 0.8fr);
  gap: 18px;
  align-items: start;
}

html[data-home-theme="editorial"] .format-step-grid.custom-single {
  grid-template-columns: 1fr;
  width: min(1040px, 100%);
  max-width: 1040px;
}

html[data-home-theme="editorial"] aside,
html[data-home-theme="editorial"] section {
  min-width: 0;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--editorial-line);
  border-radius: 2px;
  background: rgba(11, 14, 12, 0.92);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

html[data-home-theme="editorial"] .landing,
html[data-home-theme="editorial"] .workflow-bar {
  background: transparent;
}

html[data-home-theme="editorial"] h2 {
  margin: 0 0 16px;
  color: var(--editorial-text-strong);
  font-family: var(--font-editorial);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.04em;
}

html[data-home-theme="editorial"] h3 {
  color: var(--editorial-text);
  font-family: var(--font-editorial);
}

html[data-home-theme="editorial"] label {
  margin: 15px 0 7px;
  color: var(--editorial-text-secondary);
  font-size: 13px;
}

html[data-home-theme="editorial"] select,
html[data-home-theme="editorial"] textarea,
html[data-home-theme="editorial"] input[type="file"],
html[data-home-theme="editorial"] input[type="password"],
html[data-home-theme="editorial"] input[type="text"],
html[data-home-theme="editorial"] input[type="number"] {
  border: 1px solid var(--editorial-field-border);
  border-radius: 3px;
  color: var(--editorial-text);
  background: var(--editorial-surface-2);
  box-shadow: none;
}

html[data-home-theme="editorial"] select,
html[data-home-theme="editorial"] input[type="password"],
html[data-home-theme="editorial"] input[type="text"],
html[data-home-theme="editorial"] input[type="number"] {
  min-height: 47px;
}

html[data-home-theme="editorial"] select option {
  color: var(--editorial-text);
  background: var(--editorial-surface-2);
}

html[data-home-theme="editorial"] textarea {
  line-height: 1.7;
}

html[data-home-theme="editorial"] textarea::placeholder,
html[data-home-theme="editorial"] input::placeholder {
  color: var(--editorial-text-disabled);
}

html[data-home-theme="editorial"] select:focus,
html[data-home-theme="editorial"] textarea:focus,
html[data-home-theme="editorial"] input[type="password"]:focus,
html[data-home-theme="editorial"] input[type="text"]:focus,
html[data-home-theme="editorial"] input[type="number"]:focus {
  border-color: var(--editorial-focus);
  background: var(--editorial-surface-2);
  box-shadow: 0 0 0 2px rgba(220, 128, 87, 0.18);
  outline: none;
}

html[data-home-theme="editorial"] input[type="file"]::file-selector-button {
  min-height: 32px;
  margin-right: 10px;
  padding: 0 12px;
  border: 1px solid var(--editorial-line-warm);
  border-radius: 2px;
  color: var(--editorial-text);
  background: var(--editorial-surface-hover);
  font: inherit;
}

html[data-home-theme="editorial"] input[type="checkbox"],
html[data-home-theme="editorial"] input[type="radio"] {
  accent-color: var(--editorial-accent);
}

html[data-home-theme="editorial"] button {
  min-height: 46px;
  height: 46px;
  margin-top: 14px;
  border: 1px solid #cb704b;
  border-radius: 2px;
  color: var(--editorial-accent-text);
  background: var(--editorial-accent);
  box-shadow: none;
  font-family: var(--font-ui);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease, opacity 140ms ease;
}

html[data-home-theme="editorial"] button:hover {
  filter: none;
  border-color: #db805a;
  background: var(--editorial-accent-hover);
  box-shadow: none;
  transform: translateY(-1px);
}

html[data-home-theme="editorial"] button:active {
  border-color: var(--editorial-accent-active);
  background: var(--editorial-accent-active);
  transform: translateY(0);
}

html[data-home-theme="editorial"] button:focus-visible,
html[data-home-theme="editorial"] a:focus-visible,
html[data-home-theme="editorial"] summary:focus-visible,
html[data-home-theme="editorial"] input:focus-visible,
html[data-home-theme="editorial"] select:focus-visible,
html[data-home-theme="editorial"] textarea:focus-visible {
  outline: 2px solid var(--editorial-focus);
  outline-offset: 3px;
}

html[data-home-theme="editorial"] button:disabled {
  opacity: 0.42;
  box-shadow: none;
  transform: none;
}

html[data-home-theme="editorial"] button.secondary,
html[data-home-theme="editorial"] .template-feedback-button,
html[data-home-theme="editorial"] .feedback-close,
html[data-home-theme="editorial"] .resume-banner button,
html[data-home-theme="editorial"] .image-item button {
  color: var(--editorial-text);
  border: 1px solid var(--editorial-field-border);
  background: transparent;
  box-shadow: none;
}

html[data-home-theme="editorial"] button.secondary:hover,
html[data-home-theme="editorial"] .template-feedback-button:hover,
html[data-home-theme="editorial"] .feedback-close:hover,
html[data-home-theme="editorial"] .resume-banner button:hover,
html[data-home-theme="editorial"] .image-item button:hover {
  color: var(--editorial-text-strong);
  border-color: var(--editorial-line-warm);
  background: var(--editorial-surface-hover);
}

html[data-home-theme="editorial"] #aiButton,
html[data-home-theme="editorial"] #parseButton,
html[data-home-theme="editorial"] #specRecognizeBtn {
  color: var(--editorial-accent-text);
  border-color: #cb704b;
  background: var(--editorial-accent);
}

html[data-home-theme="editorial"] #aiButton:hover,
html[data-home-theme="editorial"] #parseButton:hover,
html[data-home-theme="editorial"] #specRecognizeBtn:hover {
  color: #fff9f4;
  border-color: #db805a;
  background: var(--editorial-accent-hover);
}

html[data-home-theme="editorial"] .template-feedback-button {
  border-style: dashed;
  color: var(--editorial-text-secondary);
}

html[data-home-theme="editorial"] .note,
html[data-home-theme="editorial"] .ai-phase {
  color: var(--editorial-text-muted);
}

html[data-home-theme="editorial"] .resume-banner {
  width: min(calc(100% - 40px), var(--page-max));
  max-width: var(--page-max);
  margin: 18px auto 0;
  padding: 12px 16px;
  border: 1px solid var(--editorial-line-warm);
  border-radius: 2px;
  color: var(--editorial-text-secondary);
  background: rgba(105, 73, 54, 0.10);
}

html[data-home-theme="editorial"] .resume-banner a,
html[data-home-theme="editorial"] .template-preview-head a,
html[data-home-theme="editorial"] .site-footer a:hover {
  color: var(--editorial-accent-hover);
}

html[data-home-theme="editorial"] .privacy-notice {
  margin: 12px 0 16px;
  padding: 11px 13px;
  border: 0;
  border-left: 2px solid var(--editorial-success);
  border-radius: 0;
  color: #aeb8ab;
  background: var(--editorial-success-soft);
}

html[data-home-theme="editorial"] .privacy-notice strong {
  color: #c9dbc9;
}

html[data-home-theme="editorial"] .template-identity {
  gap: 0;
  margin-top: 14px;
  padding: 0;
  border: 1px solid var(--editorial-line);
  border-radius: 2px;
  background: transparent;
}

html[data-home-theme="editorial"] .template-meta-row {
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 10px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--editorial-line-soft);
}

html[data-home-theme="editorial"] .template-meta-row:last-of-type {
  border-bottom: 0;
}

html[data-home-theme="editorial"] .template-meta-row span {
  color: var(--editorial-text-muted);
}

html[data-home-theme="editorial"] .template-meta-row strong {
  color: var(--editorial-text);
}

html[data-home-theme="editorial"] .template-capabilities {
  gap: 6px;
  padding: 10px;
  border-top: 1px solid var(--editorial-line-soft);
}

html[data-home-theme="editorial"] .template-capabilities span {
  padding: 4px 8px;
  border: 1px solid var(--editorial-line-warm);
  border-radius: 2px;
  color: var(--editorial-text-secondary);
  background: transparent;
}

html[data-home-theme="editorial"] .template-preview-box {
  border-color: var(--editorial-line);
  border-radius: 2px;
  background: var(--editorial-bg-deep);
}

html[data-home-theme="editorial"] .template-preview-box img {
  border-color: #a89b8d;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.38);
}

html[data-home-theme="editorial"] .status {
  min-height: 40px;
  padding: 9px 12px;
  border: 0;
  border-left: 2px solid var(--editorial-accent);
  border-radius: 0;
  color: var(--editorial-text-secondary);
  background: rgba(185, 86, 47, 0.07);
}

html[data-home-theme="editorial"] .status.error {
  color: #e0aaa5;
  border-color: var(--editorial-danger);
  background: rgba(189, 103, 96, 0.10);
}

html[data-home-theme="editorial"] .metrics {
  gap: 0;
  margin-bottom: 14px;
  border: 1px solid var(--editorial-line);
}

html[data-home-theme="editorial"] .metric {
  min-height: 70px;
  padding: 13px 12px;
  border: 0;
  border-right: 1px solid var(--editorial-line-soft);
  border-radius: 0;
  background: transparent;
}

html[data-home-theme="editorial"] .metric:last-child {
  border-right: 0;
}

html[data-home-theme="editorial"] .metric:hover {
  border-color: var(--editorial-line-soft);
  background: rgba(70, 120, 81, 0.08);
}

html[data-home-theme="editorial"] .metric span {
  color: var(--editorial-text-muted);
}

html[data-home-theme="editorial"] .metric strong {
  color: var(--editorial-text-strong);
  font-family: var(--font-editorial);
  font-size: 21px;
}

html[data-home-theme="editorial"] .preview {
  border-color: var(--editorial-line);
  border-radius: 2px;
  color: var(--editorial-text);
  background: var(--editorial-bg-deep);
}

html[data-home-theme="editorial"] .block,
html[data-home-theme="editorial"] .rule {
  border-color: var(--editorial-line-soft);
}

html[data-home-theme="editorial"] .tag {
  color: var(--editorial-success);
  font-family: var(--font-mono);
}

html[data-home-theme="editorial"] .reason,
html[data-home-theme="editorial"] .rule span:first-child {
  color: var(--editorial-text-muted);
}

html[data-home-theme="editorial"] .ai-settings summary {
  border-color: var(--editorial-field-border);
  border-radius: 2px;
  color: var(--editorial-text-secondary);
  background: transparent;
}

html[data-home-theme="editorial"] .ai-settings-body {
  border-color: var(--editorial-line-warm);
  border-radius: 3px;
  background: var(--editorial-surface-2);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.58);
}

html[data-home-theme="editorial"] .icon-upload {
  width: auto;
  min-width: 68px;
  height: 36px;
  padding: 0 12px;
  border-color: var(--editorial-line-warm);
  border-radius: 2px;
  color: var(--editorial-text);
  background: transparent;
  font-size: 13px;
}

html[data-home-theme="editorial"] .icon-upload:hover {
  border-color: var(--editorial-accent);
  background: rgba(185, 86, 47, 0.08);
}

html[data-home-theme="editorial"] .image-item {
  border-color: var(--editorial-line);
  border-radius: 2px;
  background: transparent;
}

html[data-home-theme="editorial"] .progress-wrap {
  height: 3px;
  border-radius: 0;
  background: var(--editorial-line);
}

html[data-home-theme="editorial"] .progress-bar {
  border-radius: 0;
  background: var(--editorial-accent);
  box-shadow: none;
}

html[data-home-theme="editorial"] .feedback-modal {
  background: rgba(3, 5, 4, 0.88);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

html[data-home-theme="editorial"] .feedback-card {
  width: min(680px, 100%);
  border-color: var(--editorial-line-warm);
  border-radius: 6px;
  background: var(--editorial-surface-2);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.58);
}

html[data-home-theme="editorial"] .feedback-head p {
  color: var(--editorial-text-muted);
}

html[data-home-theme="editorial"] .site-footer {
  width: min(calc(100% - 40px), var(--page-max));
  margin: 0 auto 20px;
  padding: 18px 0;
  border-top: 1px solid var(--editorial-line);
  color: var(--editorial-text-muted);
}

html[data-home-theme="editorial"] .site-footer a {
  color: var(--editorial-text-muted);
}

html[data-home-theme="editorial"] #preview .srow {
  gap: 10px;
  padding: 7px 5px;
  border-bottom: 1px solid var(--editorial-line-soft);
  border-radius: 0;
}

html[data-home-theme="editorial"] #preview .srow.low {
  background: rgba(189, 103, 96, 0.10);
  box-shadow: inset 2px 0 0 var(--editorial-danger);
}

html[data-home-theme="editorial"] #preview .srow.edited {
  background: rgba(70, 120, 81, 0.12);
  box-shadow: inset 2px 0 0 var(--editorial-success);
}

html[data-home-theme="editorial"] #preview .srow.binary {
  opacity: 0.62;
}

html[data-home-theme="editorial"] #preview .srow .stext {
  color: var(--editorial-text);
}

html[data-home-theme="editorial"] #preview .srow select,
html[data-home-theme="editorial"] #preview .edit-input {
  color: var(--editorial-text);
  border-color: var(--editorial-field-border);
  background: var(--editorial-surface-2);
}

html[data-home-theme="editorial"] #customExtras .style-elem {
  border-color: var(--editorial-line);
  border-radius: 2px;
  background: transparent;
}

html[data-home-theme="editorial"] #customExtras .style-elem > summary,
html[data-home-theme="editorial"] #stylePanelWrap > summary,
html[data-home-theme="editorial"] #customExtras .style-grid label,
html[data-home-theme="editorial"] #exportCustom label,
html[data-home-theme="editorial"] #exportCustom .margin-grid > div {
  color: var(--editorial-text-secondary);
}

html[data-home-theme="editorial"] #coverRecognizedNote {
  color: #8eb296 !important;
}

html[data-home-theme="editorial"] .format-import {
  border-color: var(--editorial-line-warm) !important;
  border-radius: 2px !important;
  background: rgba(105, 73, 54, 0.08) !important;
}

html[data-home-theme="editorial"] .format-import > label {
  color: var(--editorial-text) !important;
}

html[data-home-theme="editorial"] #outputPanel .rules {
  border-top: 1px solid var(--editorial-line-soft);
}

html[data-home-theme="editorial"] #outputPanel .rule {
  padding: 10px 0;
}

html[data-home-theme="editorial"] .scramble-fab,
html[data-home-theme="editorial"] .scramble-card,
html[data-home-theme="editorial"] .scramble-opts,
html[data-home-theme="editorial"] .scramble-actions .scramble-go,
html[data-home-theme="editorial"] .scramble-actions .scramble-cancel {
  border-radius: 2px !important;
  box-shadow: none !important;
}

@media (max-width: 1180px) {
  html[data-home-theme="editorial"] main#workflowShell {
    width: 100%;
    max-width: none;
    padding: 26px var(--page-gutter) 58px;
  }

  html[data-home-theme="editorial"] .landing-hero {
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: start;
    padding: 0 10px 40px;
  }

  html[data-home-theme="editorial"] .landing-actions {
    width: min(760px, 100%);
    max-width: 760px;
  }

  html[data-home-theme="editorial"] .workflow-bar {
    flex-direction: row;
  }

  html[data-home-theme="editorial"] .stepper {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  html[data-home-theme="editorial"] .format-step-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html[data-home-theme="editorial"] #outputPanel {
    grid-column: 1 / -1;
  }

  html[data-home-theme="editorial"] .format-step-grid.custom-single {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  html[data-home-theme="editorial"] {
    --page-gutter: 18px;
  }

  html[data-home-theme="editorial"] .landing {
    width: 100%;
    padding: 38px var(--page-gutter) 24px;
  }

  html[data-home-theme="editorial"] .landing h2 {
    font-size: clamp(36px, 8vw, 48px);
  }

  html[data-home-theme="editorial"] .landing-actions {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  html[data-home-theme="editorial"] .landing-actions button {
    min-height: 56px;
    height: 56px;
  }

  html[data-home-theme="editorial"] .landing-process {
    margin-top: 18px;
  }

  html[data-home-theme="editorial"] .format-step-grid {
    grid-template-columns: 1fr;
  }

  html[data-home-theme="editorial"] #outputPanel {
    grid-column: auto;
  }

  html[data-home-theme="editorial"] .ai-grid,
  html[data-home-theme="editorial"] .word-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  html[data-home-theme="editorial"] {
    --header-height: 62px;
    --page-gutter: 14px;
  }

  html[data-home-theme="editorial"] header {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    min-height: var(--header-height);
    height: var(--header-height);
    padding: 0 var(--page-gutter);
  }

  html[data-home-theme="editorial"] h1 {
    font-size: 16px;
  }

  html[data-home-theme="editorial"] .header-actions {
    width: auto;
    margin-left: auto;
    gap: 10px;
  }

  html[data-home-theme="editorial"] .feedback-open {
    min-width: 0;
    height: 38px;
    padding: 0 12px;
    font-size: 13px;
    letter-spacing: 0.03em;
  }

  html[data-home-theme="editorial"] #appState {
    max-width: 56px;
    font-size: 11px;
    white-space: nowrap;
  }

  html[data-home-theme="editorial"] .landing {
    padding-top: 32px;
  }

  html[data-home-theme="editorial"] .landing-hero {
    gap: 24px;
    padding: 0 0 32px;
  }

  html[data-home-theme="editorial"] .landing h2 {
    margin-bottom: 10px;
    font-size: clamp(34px, 10.5vw, 43px);
  }

  html[data-home-theme="editorial"] .landing h2 span {
    display: block;
  }

  html[data-home-theme="editorial"] .landing p {
    font-size: 15px;
  }

  html[data-home-theme="editorial"] .landing-actions button {
    font-size: 17px;
  }

  html[data-home-theme="editorial"] .landing-trust {
    flex-wrap: wrap;
    gap: 6px 10px;
    font-size: 11px;
  }

  html[data-home-theme="editorial"] main#workflowShell {
    padding: 18px var(--page-gutter) 48px;
  }

  html[data-home-theme="editorial"] .workflow-bar {
    flex-direction: column;
    gap: 16px;
  }

  html[data-home-theme="editorial"] .back-home {
    width: 100%;
  }

  html[data-home-theme="editorial"] .stepper {
    width: 100%;
  }

  html[data-home-theme="editorial"] .step-item {
    min-height: 64px;
    padding: 11px 9px;
  }

  html[data-home-theme="editorial"] .step-title {
    font-size: 13px;
  }

  html[data-home-theme="editorial"] aside,
  html[data-home-theme="editorial"] section {
    padding: 18px;
  }

  html[data-home-theme="editorial"] .landing {
    padding-right: var(--page-gutter);
    padding-left: var(--page-gutter);
  }

  html[data-home-theme="editorial"] .metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  html[data-home-theme="editorial"] .metric:nth-child(2) {
    border-right: 0;
  }

  html[data-home-theme="editorial"] .metric:nth-child(-n + 2) {
    border-bottom: 1px solid var(--editorial-line-soft);
  }

  html[data-home-theme="editorial"] .feedback-modal {
    padding: 12px;
  }

  html[data-home-theme="editorial"] .feedback-card {
    max-height: calc(100dvh - 24px);
    padding: 20px;
  }

  html[data-home-theme="editorial"] .feedback-grid {
    grid-template-columns: 1fr;
  }

  html[data-home-theme="editorial"] .site-footer {
    width: calc(100% - 28px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-home-theme="editorial"] *,
  html[data-home-theme="editorial"] *::before,
  html[data-home-theme="editorial"] *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  html[data-home-theme="editorial"] button,
  html[data-home-theme="editorial"] input,
  html[data-home-theme="editorial"] select,
  html[data-home-theme="editorial"] textarea,
  html[data-home-theme="editorial"] aside,
  html[data-home-theme="editorial"] section {
    border: 1px solid CanvasText;
  }
}
