:root {
  color-scheme: light;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --soft: #f5f5f7;
  --softer: #fbfbfd;
  --panel: #ffffff;
  --line: rgba(0, 0, 0, 0.12);
  --line-soft: rgba(0, 0, 0, 0.07);
  --accent: #0071e3;
  --accent-strong: #005bbf;
  --accent-soft: #eaf4ff;
  --success: #248a3d;
  --warn: #d70015;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.05);
  --radius: 8px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f5f5f7;
  --muted: #a1a1a6;
  --soft: #050506;
  --softer: #111113;
  --panel: #1c1c1e;
  --line: rgba(255, 255, 255, 0.18);
  --line-soft: rgba(255, 255, 255, 0.1);
  --accent: #2997ff;
  --accent-strong: #147ce5;
  --accent-soft: rgba(41, 151, 255, 0.18);
  --success: #32d74b;
  --warn: #ff453a;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.4);
  --shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

:root[data-theme="dark"] body {
  background: var(--soft);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.sidebar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 56px;
  padding: 8px max(18px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--line-soft);
  background: rgba(251, 251, 253, 0.82);
  backdrop-filter: saturate(180%) blur(22px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.brand {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.tool-nav {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 4px;
  overflow: visible;
}

.tool-nav button,
.more-trigger {
  flex: 0 0 auto;
  min-height: 30px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 6px 10px;
  background: transparent;
  color: #3a3a3c;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.tool-nav button:hover,
.more-trigger:hover,
.mobile-tool-trigger:hover {
  color: var(--ink);
  background: rgba(0, 0, 0, 0.045);
}

.tool-nav button.active {
  color: #fff;
  background: var(--ink);
}

.more-tools {
  position: relative;
  flex: 0 0 auto;
}

.more-tools > summary {
  list-style: none;
}

.more-tools > summary::-webkit-details-marker {
  display: none;
}

.more-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.more-trigger::after {
  content: "";
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
}

.more-tools[open] .more-trigger,
.more-tools:has(button.active) .more-trigger,
.mobile-tool-menu[open] .mobile-tool-trigger,
.mobile-tool-menu:has(button.active) .mobile-tool-trigger {
  color: #fff;
  background: var(--ink);
}

.more-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 60;
  min-width: 168px;
  padding: 7px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: saturate(180%) blur(22px);
  display: grid;
  gap: 2px;
}

.more-menu button {
  width: 100%;
  justify-content: flex-start;
  border-radius: 10px;
  padding: 8px 10px;
  text-align: left;
}

.mobile-tool-menu {
  display: none;
}

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

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

.mobile-tool-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

.mobile-tool-trigger::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.mobile-tool-menu[open] .mobile-tool-trigger::after {
  transform: translateY(2px) rotate(225deg);
}

.mobile-tool-list {
  margin-top: 8px;
  padding: 8px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: saturate(180%) blur(22px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.mobile-tool-list button {
  width: 100%;
  justify-content: flex-start;
  border-radius: 12px;
  padding: 9px 10px;
  text-align: left;
}

.privacy-note {
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.privacy-note:hover {
  color: var(--ink);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--success);
  flex: none;
}

.utility-controls {
  display: inline-flex;
  align-items: center;
  justify-content: end;
  gap: 8px;
  white-space: nowrap;
}

.theme-toggle,
.tip-button,
.language-control {
  min-height: 32px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  font-size: 12px;
  font-weight: 600;
}

.tip-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 13px;
  color: var(--ink);
  white-space: nowrap;
}

.tip-button::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
}

.tip-label-short {
  display: none;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  padding: 0;
}

.theme-toggle:hover,
.tip-button:hover,
.language-control:hover {
  border-color: rgba(0, 113, 227, 0.28);
}

.theme-glyph {
  position: relative;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--ink);
  box-shadow: inset -4px -2px 0 rgba(255, 255, 255, 0.55);
  flex: none;
}

.language-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px 4px 12px;
}

.language-control span {
  color: var(--muted);
}

.language-control select {
  min-height: 26px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  outline: 0;
}

.language-control select option:disabled {
  color: var(--muted);
}

:root[data-theme="dark"] .sidebar {
  background: rgba(22, 22, 24, 0.82);
}

:root[data-theme="dark"] .brand-mark {
  background: #f5f5f7;
  color: #1d1d1f;
}

:root[data-theme="dark"] .tool-nav button,
:root[data-theme="dark"] .more-trigger,
:root[data-theme="dark"] .mobile-tool-trigger {
  color: #d2d2d7;
}

:root[data-theme="dark"] .tool-nav button:hover,
:root[data-theme="dark"] .more-trigger:hover,
:root[data-theme="dark"] .mobile-tool-trigger:hover {
  background: rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] .tool-nav button.active,
:root[data-theme="dark"] .more-tools[open] .more-trigger,
:root[data-theme="dark"] .more-tools:has(button.active) .more-trigger,
:root[data-theme="dark"] .mobile-tool-menu[open] .mobile-tool-trigger,
:root[data-theme="dark"] .mobile-tool-menu:has(button.active) .mobile-tool-trigger {
  background: #f5f5f7;
  color: #1d1d1f;
}

:root[data-theme="dark"] .more-menu,
:root[data-theme="dark"] .mobile-tool-list {
  background: rgba(28, 28, 30, 0.94);
}

:root[data-theme="dark"] .theme-toggle,
:root[data-theme="dark"] .tip-button,
:root[data-theme="dark"] .language-control,
:root[data-theme="dark"] .status-strip span {
  background: rgba(44, 44, 46, 0.82);
}

:root[data-theme="dark"] .theme-glyph {
  background: #ffd60a;
  box-shadow:
    0 0 0 3px rgba(255, 214, 10, 0.12),
    0 0 12px rgba(255, 214, 10, 0.32);
}

.workspace {
  width: min(1180px, calc(100vw - 36px));
  margin: 0 auto;
  padding: 42px 0 72px;
}

.topbar {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-bottom: 24px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(42px, 5vw, 62px);
  line-height: 1;
  font-weight: 700;
}

h2 {
  font-size: 20px;
  font-weight: 700;
}

.status-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.status-strip span {
  min-height: 34px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 7px 13px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
  font-size: 13px;
}

.demo-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin: 0 0 16px;
  border: 1px solid rgba(0, 113, 227, 0.18);
  border-radius: calc(var(--radius) + 2px);
  background:
    linear-gradient(135deg, rgba(0, 113, 227, 0.11), rgba(255, 255, 255, 0.9)),
    var(--panel);
  padding: 16px 18px;
  box-shadow: var(--shadow-soft);
}

.demo-banner[hidden] {
  display: none;
}

.demo-banner div {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.demo-banner span {
  width: fit-content;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 700;
}

.demo-banner strong {
  font-size: 18px;
  line-height: 1.3;
}

.demo-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

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

.summary-band,
.list-panel {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

:root[data-theme="dark"] .summary-band,
:root[data-theme="dark"] .list-panel,
:root[data-theme="dark"] .dropzone,
:root[data-theme="dark"] .settings-grid,
:root[data-theme="dark"] .preview-panel,
:root[data-theme="dark"] .action-bar,
:root[data-theme="dark"] .demo-banner,
:root[data-theme="dark"] .preview-box,
:root[data-theme="dark"] .file-card,
:root[data-theme="dark"] .output-card,
:root[data-theme="dark"] .seo-card,
:root[data-theme="dark"] .seo-faq article,
:root[data-theme="dark"] .seo-landing-card,
:root[data-theme="dark"] .metadata-table-wrap {
  background: rgba(28, 28, 30, 0.9);
  border-color: var(--line-soft);
}

:root[data-theme="dark"] .dropzone {
  background:
    linear-gradient(180deg, rgba(36, 36, 38, 0.96), rgba(22, 22, 24, 0.88)),
    var(--panel);
}

.tool-surface {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.tool-anchor-list {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  pointer-events: none;
}

.dropzone {
  min-height: 0;
  border: 1px dashed rgba(0, 113, 227, 0.38);
  border-radius: calc(var(--radius) + 2px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 245, 247, 0.88)),
    var(--panel);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 22px;
  box-shadow: var(--shadow-soft);
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.dropzone.drag-over {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
  transform: translateY(-1px);
}

.drop-copy {
  display: grid;
  gap: 9px;
}

.drop-copy strong {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
  font-weight: 700;
}

.drop-copy span,
.empty-state span,
.meta,
.field label span,
.setting-note {
  color: var(--muted);
}

.drop-actions,
.action-bar,
.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.drop-actions {
  justify-content: flex-end;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-top: 0;
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: calc(var(--radius) + 2px);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
  align-content: start;
  align-items: start;
}

.settings-grid::before {
  content: "参数设置";
  grid-column: 1 / -1;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.field {
  display: grid;
  align-content: start;
  gap: 9px;
  min-width: 0;
}

.field:has(#watermark-angle),
.field:has(.preset-buttons) {
  grid-column: span 2;
}

.field label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #3a3a3c;
  font-size: 13px;
  font-weight: 600;
}

:root[data-theme="dark"] .field label,
:root[data-theme="dark"] .check-field,
:root[data-theme="dark"] .file-name,
:root[data-theme="dark"] .output-card strong {
  color: var(--ink);
}

.field input,
.field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--softer);
  color: var(--ink);
  padding: 10px 13px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 500;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

:root[data-theme="dark"] .field input,
:root[data-theme="dark"] .field select,
:root[data-theme="dark"] .language-control select {
  background: rgba(44, 44, 46, 0.9);
  color: var(--ink);
  box-shadow: none;
}

.field input[type="color"] {
  min-height: 46px;
  padding: 5px;
  cursor: pointer;
}

.field input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.field input[type="color"]::-webkit-color-swatch {
  border: 1px solid var(--line-soft);
  border-radius: 6px;
}

.field input[type="range"] {
  min-height: 46px;
  padding-inline: 0;
  background: transparent;
  box-shadow: none;
  accent-color: var(--accent);
}

.field input:focus,
.field select:focus {
  border-color: rgba(0, 113, 227, 0.8);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.12);
}

.field:has(:disabled) label {
  color: var(--muted);
}

.field select:disabled,
.field input:disabled {
  cursor: not-allowed;
  background: #f0f0f2;
  color: var(--muted);
  opacity: 0.72;
}

:root[data-theme="dark"] .field select:disabled,
:root[data-theme="dark"] .field input:disabled {
  background: rgba(58, 58, 60, 0.7);
}

.check-field {
  align-self: end;
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--softer);
  color: #3a3a3c;
  font-size: 13px;
  font-weight: 600;
}

.check-field input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.preset-buttons {
  min-height: 46px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.preset-button {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--softer);
  color: var(--accent);
  padding: 10px 8px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.preset-button:hover,
.preset-button.active {
  border-color: rgba(0, 113, 227, 0.44);
  background: var(--accent);
  color: #fff;
}

.preset-button:hover {
  transform: translateY(-1px);
}

.angle-control {
  display: grid;
  grid-template-columns: minmax(78px, 96px) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.angle-control input {
  text-align: center;
}

.setting-note {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 13px;
}

.preview-panel {
  margin-top: 0;
  padding: 20px;
  border: 1px solid var(--line-soft);
  border-radius: calc(var(--radius) + 2px);
  background: linear-gradient(180deg, #fff, var(--softer));
  box-shadow: var(--shadow-soft);
}

:root[data-theme="dark"] .preview-panel {
  background: linear-gradient(180deg, rgba(28, 28, 30, 0.96), rgba(17, 17, 19, 0.96));
}

.preview-head {
  align-items: flex-start;
  margin-bottom: 14px;
}

.preview-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

#previewBadge {
  flex: none;
  min-height: 30px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 6px 10px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

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

.preview-own-button[hidden] {
  display: none;
}

.preview-own-button {
  min-height: 30px;
}

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

.preview-box {
  min-width: 0;
  margin: 0;
  display: grid;
  gap: 9px;
}

.preview-box figcaption {
  color: #3a3a3c;
  font-size: 13px;
  font-weight: 700;
}

.preview-stage {
  position: relative;
  min-height: 280px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background:
    linear-gradient(45deg, #eef0f3 25%, transparent 25%),
    linear-gradient(-45deg, #eef0f3 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #eef0f3 75%),
    linear-gradient(-45deg, transparent 75%, #eef0f3 75%),
    #fff;
  background-position:
    0 0,
    0 12px,
    12px -12px,
    -12px 0;
  background-size: 24px 24px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.preview-stage img,
.preview-stage canvas {
  max-width: 100%;
  max-height: min(58vh, 620px);
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.crop-overlay,
.redact-overlay {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.crop-frame {
  position: absolute;
  left: 0;
  top: 0;
  min-width: 44px;
  min-height: 44px;
  border: 2px solid #fff;
  border-radius: 6px;
  box-shadow:
    0 0 0 9999px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(0, 113, 227, 0.84),
    0 12px 34px rgba(0, 0, 0, 0.22);
  cursor: grab;
  pointer-events: auto;
  touch-action: none;
}

.crop-frame::before,
.crop-frame::after,
.crop-frame > span::before,
.crop-frame > span::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.72);
}

.crop-frame::before,
.crop-frame > span::before {
  top: 0;
  bottom: 0;
  width: 1px;
}

.crop-frame::after,
.crop-frame > span::after {
  left: 0;
  right: 0;
  height: 1px;
}

.crop-frame::before {
  left: 33.333%;
}

.crop-frame > span::before {
  left: 66.666%;
}

.crop-frame::after {
  top: 33.333%;
}

.crop-frame > span::after {
  top: 66.666%;
}

.crop-frame.dragging {
  cursor: grabbing;
}

.crop-frame.resizing {
  cursor: crosshair;
}

.crop-resize-handle {
  position: absolute;
  width: 20px;
  height: 20px;
  display: none;
  pointer-events: auto;
  touch-action: none;
  z-index: 2;
  font-style: normal;
}

.crop-frame.free .crop-resize-handle {
  display: block;
}

.crop-resize-handle::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #0071e3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

.crop-resize-n,
.crop-resize-s {
  left: 50%;
  margin-left: -10px;
  cursor: ns-resize;
}

.crop-resize-e,
.crop-resize-w {
  top: 50%;
  margin-top: -10px;
  cursor: ew-resize;
}

.crop-resize-n {
  top: -10px;
}

.crop-resize-s {
  bottom: -10px;
}

.crop-resize-e {
  right: -10px;
}

.crop-resize-w {
  left: -10px;
}

.crop-resize-nw,
.crop-resize-ne,
.crop-resize-se,
.crop-resize-sw {
  width: 22px;
  height: 22px;
}

.crop-resize-nw {
  left: -11px;
  top: -11px;
  cursor: nwse-resize;
}

.crop-resize-ne {
  right: -11px;
  top: -11px;
  cursor: nesw-resize;
}

.crop-resize-se {
  right: -11px;
  bottom: -11px;
  cursor: nwse-resize;
}

.crop-resize-sw {
  left: -11px;
  bottom: -11px;
  cursor: nesw-resize;
}

.redact-frame {
  position: absolute;
  left: 0;
  top: 0;
  min-width: 42px;
  min-height: 42px;
  border: 2px solid #fff;
  border-radius: 8px;
  background: rgba(0, 113, 227, 0.12);
  box-shadow:
    0 0 0 1px rgba(0, 113, 227, 0.82),
    0 10px 28px rgba(0, 0, 0, 0.18);
  cursor: grab;
  pointer-events: auto;
  touch-action: none;
}

.redact-frame.circle {
  border-radius: 999px;
}

.redact-frame::before {
  content: "打码区域";
  position: absolute;
  left: 8px;
  top: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--accent);
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
}

.redact-frame.circle::before {
  content: "圆形区域";
}

.redact-frame span {
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.24);
  cursor: nwse-resize;
}

.redact-frame.dragging {
  cursor: grabbing;
}

.preview-stage canvas {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.split-overlay {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  --ruler-size: 30px;
}

.split-ruler {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: saturate(180%) blur(16px);
  color: rgba(29, 29, 31, 0.66);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.split-ruler-x {
  top: 0;
  left: 0;
  right: 0;
  height: var(--ruler-size);
  border-bottom: 1px solid rgba(29, 29, 31, 0.16);
  background-image:
    repeating-linear-gradient(
      90deg,
      rgba(29, 29, 31, 0.22) 0,
      rgba(29, 29, 31, 0.22) 1px,
      transparent 1px,
      transparent 8px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(0, 113, 227, 0.34) 0,
      rgba(0, 113, 227, 0.34) 1px,
      transparent 1px,
      transparent 40px
    );
  background-size: 100% 7px, 100% 13px;
  background-position: left bottom, left bottom;
  background-repeat: repeat-x;
}

.split-ruler-y {
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--ruler-size);
  border-right: 1px solid rgba(29, 29, 31, 0.16);
  background-image:
    repeating-linear-gradient(
      180deg,
      rgba(29, 29, 31, 0.22) 0,
      rgba(29, 29, 31, 0.22) 1px,
      transparent 1px,
      transparent 8px
    ),
    repeating-linear-gradient(
      180deg,
      rgba(0, 113, 227, 0.34) 0,
      rgba(0, 113, 227, 0.34) 1px,
      transparent 1px,
      transparent 40px
    );
  background-size: 7px 100%, 13px 100%;
  background-position: right top, right top;
  background-repeat: repeat-y;
}

.split-ruler-corner {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: var(--ruler-size);
  height: var(--ruler-size);
  border-right: 1px solid rgba(29, 29, 31, 0.16);
  border-bottom: 1px solid rgba(29, 29, 31, 0.16);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(16px);
  pointer-events: none;
}

.split-ruler-label {
  position: absolute;
  white-space: nowrap;
  opacity: 0.72;
}

.split-ruler-label.x {
  top: 6px;
  transform: translateX(-50%);
}

.split-ruler-label.x.start {
  transform: translateX(3px);
}

.split-ruler-label.x.end {
  transform: translateX(calc(-100% - 3px));
}

.split-ruler-label.y {
  left: 5px;
  transform: translateY(-50%);
}

.split-ruler-label.y.start {
  transform: translateY(5px);
}

.split-ruler-label.y.end {
  transform: translateY(calc(-100% - 5px));
}

.split-guide-line {
  position: absolute;
  z-index: 3;
  pointer-events: auto;
  touch-action: none;
  opacity: 0.98;
}

.split-guide-line.vertical {
  top: 0;
  bottom: 0;
  width: 16px;
  margin-left: -8px;
  cursor: ew-resize;
}

.split-guide-line.horizontal {
  left: 0;
  right: 0;
  height: 16px;
  margin-top: -8px;
  cursor: ns-resize;
}

.split-guide-line::before {
  content: "";
  position: absolute;
  background: var(--accent);
}

.split-guide-line.vertical::before {
  top: var(--ruler-size);
  bottom: 0;
  left: 50%;
  width: 1px;
  transform: translateX(-0.5px);
  background: repeating-linear-gradient(
    180deg,
    rgba(0, 113, 227, 0.96) 0,
    rgba(0, 113, 227, 0.96) 8px,
    transparent 8px,
    transparent 13px
  );
}

.split-guide-line.horizontal::before {
  left: var(--ruler-size);
  right: 0;
  top: 50%;
  height: 1px;
  transform: translateY(-0.5px);
  background: repeating-linear-gradient(
    90deg,
    rgba(0, 113, 227, 0.96) 0,
    rgba(0, 113, 227, 0.96) 8px,
    transparent 8px,
    transparent 13px
  );
}

.split-guide-line.dragging {
  opacity: 1;
  filter: drop-shadow(0 0 7px rgba(0, 113, 227, 0.34));
}

.split-guide-input {
  position: absolute;
  z-index: 4;
  width: 58px;
  min-height: 24px;
  border: 1px solid rgba(0, 113, 227, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  padding: 3px 7px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.split-guide-line.vertical .split-guide-input {
  top: 3px;
  left: 50%;
  transform: translateX(-50%);
}

.split-guide-line.horizontal .split-guide-input {
  top: 50%;
  left: 3px;
  transform: translateY(-50%);
}

.preview-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}

:root[data-theme="dark"] .preview-empty,
:root[data-theme="dark"] .split-guide-input {
  background: rgba(28, 28, 30, 0.86);
}

:root[data-theme="dark"] .preview-stage,
:root[data-theme="dark"] .thumb {
  background:
    linear-gradient(45deg, #2c2c2e 25%, transparent 25%),
    linear-gradient(-45deg, #2c2c2e 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #2c2c2e 75%),
    linear-gradient(-45deg, transparent 75%, #2c2c2e 75%),
    #1c1c1e;
  background-position:
    0 0,
    0 12px,
    12px -12px,
    -12px 0;
  background-size: 24px 24px;
}

:root[data-theme="dark"] .file-card.active,
:root[data-theme="dark"] .preview-info-item.wide {
  background: linear-gradient(180deg, rgba(28, 28, 30, 0.96), var(--accent-soft));
}

.preview-empty[hidden],
.preview-stage img[hidden],
.preview-stage canvas[hidden],
.crop-overlay[hidden],
.redact-overlay[hidden],
.redact-frame[hidden],
.split-overlay[hidden] {
  display: none;
}

.preview-meta {
  margin-top: 12px;
  display: grid;
  grid-template-columns: minmax(190px, 1.4fr) repeat(3, minmax(130px, 1fr));
  gap: 10px;
}

.preview-info-item,
.preview-info-status {
  min-width: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #fff;
  padding: 12px 13px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.preview-info-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.preview-info-item strong {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.2;
}

.preview-info-item.wide {
  background: linear-gradient(180deg, #fff, var(--accent-soft));
  border-color: rgba(0, 113, 227, 0.22);
}

.preview-info-status {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.action-bar {
  margin-top: 0;
  justify-content: center;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: calc(var(--radius) + 2px);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.action-bar .button {
  min-width: 112px;
}

.action-bar .button.primary {
  min-width: 140px;
  box-shadow: 0 10px 24px rgba(0, 113, 227, 0.16);
}

.button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

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

.button.primary:hover {
  background: var(--accent-strong);
}

.button.ghost {
  background: transparent;
  color: var(--accent);
  border-color: rgba(0, 113, 227, 0.34);
}

.button.ghost:hover {
  background: var(--accent-soft);
}

.button.subtle,
.text-button {
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  border-color: var(--line-soft);
}

.button.subtle:hover,
.text-button:hover {
  color: var(--ink);
  background: #fff;
}

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

.summary-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 18px 0;
  overflow: hidden;
}

.summary-band div {
  padding: 20px 22px;
  border-right: 1px solid var(--line-soft);
  text-align: center;
}

.summary-band div:last-child {
  border-right: 0;
}

.summary-band span,
.summary-band strong {
  display: block;
}

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

.summary-band strong {
  margin-top: 7px;
  font-size: 30px;
  font-weight: 700;
}

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

.content-grid.metadata-mode {
  grid-template-columns: minmax(280px, 0.56fr) minmax(0, 1.44fr);
}

.list-panel {
  padding: 18px;
  min-width: 0;
}

.panel-head {
  justify-content: space-between;
  margin-bottom: 14px;
}

.file-grid {
  display: grid;
  gap: 10px;
}

.file-card {
  position: relative;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--softer);
}

.file-card[draggable="true"] {
  cursor: grab;
}

.file-card.dragging {
  cursor: grabbing;
  opacity: 0.56;
  transform: scale(0.99);
}

.file-card.drop-before::before,
.file-card.drop-after::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
}

.file-card.drop-before::before {
  top: -7px;
}

.file-card.drop-after::after {
  bottom: -7px;
}

.file-card.active {
  border-color: rgba(0, 113, 227, 0.54);
  background: linear-gradient(180deg, #fff, var(--accent-soft));
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

.thumb {
  width: 78px;
  height: 78px;
  border-radius: var(--radius);
  background:
    linear-gradient(45deg, #eef0f3 25%, transparent 25%),
    linear-gradient(-45deg, #eef0f3 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #eef0f3 75%),
    linear-gradient(-45deg, transparent 75%, #eef0f3 75%),
    #fff;
  background-position:
    0 0,
    0 10px,
    10px -10px,
    -10px 0;
  background-size: 20px 20px;
  object-fit: contain;
  border: 1px solid var(--line-soft);
}

.file-thumb-doc {
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(180deg, #1d1d1f, #4a4a4f);
  font-size: 13px;
  font-weight: 800;
}

.file-info {
  min-width: 0;
}

.file-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
  font-weight: 700;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 7px;
  font-size: 12px;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.drag-handle {
  min-height: 30px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  user-select: none;
}

.mini-button {
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: #fff;
  color: var(--accent);
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.mini-button:hover {
  border-color: rgba(0, 113, 227, 0.4);
  background: var(--accent-soft);
}

.mini-button.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.mini-button.muted {
  color: var(--muted);
}

.mini-button.danger {
  color: #d70015;
}

.mini-button.danger:hover {
  border-color: rgba(215, 0, 21, 0.28);
  background: rgba(215, 0, 21, 0.08);
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 164px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(245, 245, 247, 0.72);
  text-align: center;
  padding: 22px;
  gap: 8px;
}

.empty-state strong {
  font-size: 16px;
}

.metadata-list {
  display: grid;
  gap: 12px;
}

.metadata-card {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--softer);
  padding: 14px;
}

.metadata-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.metadata-card-head strong {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
  font-size: 17px;
}

.metadata-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.metadata-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.metadata-pills span {
  min-width: 96px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: #fff;
  padding: 7px 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.metadata-pills small {
  margin-right: 6px;
  color: var(--muted);
  font-weight: 600;
}

.metadata-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.metadata-facts div {
  min-width: 0;
  border-top: 1px solid var(--line-soft);
  padding-top: 9px;
}

.metadata-facts dt {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.metadata-facts dd {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.seo-section {
  margin-top: 18px;
  padding: 30px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
  content-visibility: auto;
  contain-intrinsic-size: auto 560px;
}

.seo-copy {
  max-width: 850px;
}

.seo-copy h2 {
  max-width: 760px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
}

.seo-copy p:not(.eyebrow) {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

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

.seo-tool-links a {
  min-height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--softer);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.seo-tool-links a:hover {
  border-color: rgba(0, 113, 227, 0.34);
  background: var(--accent-soft);
  color: var(--accent);
}

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

.seo-faq article {
  border-top: 1px solid var(--line-soft);
  padding-top: 14px;
}

.seo-faq h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
}

.seo-faq p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.home-page #faq .seo-faq {
  gap: 14px;
  margin-top: 22px;
}

.home-page #faq .seo-faq article {
  min-height: 132px;
  display: grid;
  align-content: start;
  gap: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.055);
}

.home-page #faq .seo-faq article::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #64d2ff);
}

.home-page #faq .seo-faq h3 {
  font-size: 17px;
}

.home-page #faq .seo-faq p {
  margin: 0;
}

.home-page {
  width: min(1180px, calc(100vw - 36px));
  margin: 0 auto;
  padding: 18px 0 72px;
}

.home-nav {
  min-height: 52px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.home-nav-links {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.home-nav-links a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.home-nav-links a:hover {
  color: var(--ink);
}

.home-nav-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.home-nav-actions .language-control {
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
}

.home-nav-actions .button {
  min-width: 160px;
  white-space: nowrap;
}

.home-nav-actions .theme-toggle {
  flex: 0 0 34px;
}

.home-hero {
  min-height: calc(100vh - 88px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: clamp(34px, 6vw, 82px);
  padding: 42px 0;
}

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

.home-hero-copy h1 {
  max-width: 100%;
  font-size: clamp(68px, 10vw, 138px);
  line-height: 0.9;
  letter-spacing: 0;
}

.home-hero-copy p:not(.eyebrow) {
  max-width: 610px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.45;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.home-trust {
  width: min(100%, 610px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 26px;
  padding: 7px;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.055);
  backdrop-filter: saturate(180%) blur(20px);
}

.home-trust > span {
  min-width: 0;
  min-height: 86px;
  display: grid;
  grid-template-rows: 18px auto 1fr;
  align-content: start;
  gap: 5px;
  border-radius: 16px;
  padding: 13px 15px;
  background: rgba(255, 255, 255, 0.58);
}

.home-trust > span::before {
  content: "";
  width: 18px;
  height: 18px;
  align-self: start;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, #ffffff 0 25%, transparent 27%),
    linear-gradient(135deg, var(--success), #64d2ff);
  box-shadow: 0 0 0 4px rgba(36, 138, 61, 0.1);
}

.home-trust strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.15;
}

.home-trust small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

.home-preview {
  min-width: 0;
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(251, 251, 253, 0.84)),
    var(--panel);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.11);
  overflow: hidden;
}

.home-preview-bar {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid var(--line-soft);
  padding: 0 18px;
}

.home-preview-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #d2d2d7;
}

.home-preview-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
  padding: 18px;
}

.home-preview-upload,
.home-preview-panel,
.home-preview-canvas {
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
}

.home-preview-upload {
  min-height: 128px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  border-style: dashed;
  border-color: rgba(0, 113, 227, 0.32);
  color: var(--muted);
}

.home-preview-upload strong {
  color: var(--ink);
  font-size: 24px;
}

.home-preview-panel {
  min-height: 96px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
}

.home-preview-panel span,
.home-preview-canvas span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.home-preview-panel strong {
  font-size: 26px;
}

.home-preview-canvas {
  position: relative;
  grid-column: 1 / -1;
  min-height: 280px;
  padding: 18px;
  overflow: hidden;
}

.home-preview-canvas::before {
  content: "";
  position: absolute;
  inset: 58px 28px 28px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(0, 113, 227, 0.92), rgba(93, 95, 239, 0.72)),
    linear-gradient(45deg, #f5f5f7 25%, transparent 25%),
    linear-gradient(-45deg, #f5f5f7 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f5f5f7 75%),
    linear-gradient(-45deg, transparent 75%, #f5f5f7 75%);
  background-position:
    0 0,
    0 0,
    0 10px,
    10px -10px,
    -10px 0;
  background-size:
    auto,
    20px 20px,
    20px 20px,
    20px 20px,
    20px 20px;
}

.home-preview-canvas::after {
  content: "";
  position: absolute;
  right: 52px;
  bottom: 58px;
  width: 42%;
  height: 46%;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.home-section {
  margin-top: 18px;
  padding: 54px 0;
  border-top: 1px solid var(--line-soft);
  content-visibility: auto;
  contain-intrinsic-size: auto 720px;
}

.home-section-head {
  max-width: 780px;
  margin-bottom: 24px;
}

.home-section-head p:not(.eyebrow) {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.home-section-head h2,
.home-band h2 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
}

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

.home-tool-card {
  min-height: 172px;
  display: grid;
  align-content: start;
  gap: 8px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  padding: 18px;
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.home-tool-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 113, 227, 0.3);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

.home-tool-card span {
  width: fit-content;
  border-radius: 999px;
  background: var(--accent-soft);
  padding: 5px 9px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.home-tool-card strong {
  color: var(--ink);
  font-size: 20px;
}

.home-tool-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

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

.home-demo-card {
  min-width: 0;
  min-height: 100%;
  display: grid;
  grid-template-rows: 176px auto auto 1fr;
  gap: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  padding: 12px;
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.home-demo-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 113, 227, 0.32);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.09);
}

.home-demo-card img {
  width: 100%;
  height: 176px;
  border-radius: 12px;
  object-fit: cover;
  background:
    linear-gradient(45deg, #eef0f3 25%, transparent 25%),
    linear-gradient(-45deg, #eef0f3 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #eef0f3 75%),
    linear-gradient(-45deg, transparent 75%, #eef0f3 75%),
    #fff;
  background-position:
    0 0,
    0 10px,
    10px -10px,
    -10px 0;
  background-size: 20px 20px;
}

.home-demo-card span {
  width: fit-content;
  border-radius: 999px;
  background: rgba(0, 113, 227, 0.1);
  padding: 5px 9px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.home-demo-card strong {
  color: var(--ink);
  font-size: 19px;
  line-height: 1.25;
}

.home-demo-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.home-band {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
}

.home-band p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.home-band-copy {
  display: grid;
  justify-items: start;
  gap: 18px;
}

:root[data-theme="dark"] .home-trust {
  background: rgba(28, 28, 30, 0.62);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

:root[data-theme="dark"] .home-trust > span,
:root[data-theme="dark"] .home-preview,
:root[data-theme="dark"] .home-preview-upload,
:root[data-theme="dark"] .home-preview-panel,
:root[data-theme="dark"] .home-preview-canvas,
:root[data-theme="dark"] .home-tool-card,
:root[data-theme="dark"] .home-demo-card {
  background: rgba(28, 28, 30, 0.82);
}

:root[data-theme="dark"] .home-page #faq .seo-faq article {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.045));
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

:root[data-theme="dark"] .home-preview {
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.42);
}

.seo-landing {
  background: var(--soft);
}

.seo-landing-shell {
  width: min(1180px, calc(100vw - 36px));
  margin: 0 auto;
  padding: 18px 0 64px;
}

.privacy-page .seo-landing-shell {
  width: min(1180px, calc(100vw - 36px));
  padding-top: 18px;
}

.examples-page .seo-landing-shell {
  width: min(1180px, calc(100vw - 36px));
  padding-top: 18px;
}

.examples-demo-grid {
  margin-top: 44px;
}

.seo-landing-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 52px;
}

.seo-landing-nav a:not(.brand) {
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.seo-landing-hero {
  display: grid;
  gap: 18px;
  text-align: center;
}

.seo-landing-hero h1 {
  max-width: 880px;
  margin: 0 auto;
  font-size: clamp(42px, 7vw, 78px);
}

.seo-landing-hero p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.seo-landing-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

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

.seo-landing-card {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.seo-landing-card h2,
.seo-landing-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

.seo-landing-card p,
.seo-landing-card li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.seo-landing-card p {
  margin: 9px 0 0;
}

.seo-landing-card ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.seo-landing-card.wide {
  grid-column: span 2;
}

.seo-landing-section {
  margin-top: 46px;
  content-visibility: auto;
  contain-intrinsic-size: auto 640px;
}

.seo-landing-section > h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
}

.seo-landing-section > p:not(.eyebrow) {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.seo-landing-grid.seo-landing-grid-compact {
  margin-top: 18px;
}

.seo-related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.seo-related-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  padding: 9px 14px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.seo-related-links a:hover {
  border-color: rgba(0, 113, 227, 0.34);
  background: var(--accent-soft);
  color: var(--accent);
}

:root[data-theme="dark"] .seo-related-links a {
  background: rgba(28, 28, 30, 0.82);
}

.tip-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(245, 245, 247, 0.56);
  backdrop-filter: blur(24px) saturate(150%);
}

.tip-modal {
  position: relative;
  width: min(640px, 100%);
  max-height: min(760px, calc(100vh - 44px));
  overflow: auto;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 251, 253, 0.94)),
    var(--panel);
  padding: 24px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.16);
}

.tip-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
}

.tip-modal-head {
  display: grid;
  gap: 12px;
  padding-right: 34px;
}

.tip-modal-head span,
.tip-section-title,
.tip-feedback > span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.tip-modal-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.06;
}

.tip-modal-head p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.tip-section {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.tip-amounts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(138px, 1.15fr);
  gap: 8px;
}

.tip-amount,
.tip-tabs button {
  min-height: 42px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.tip-amount.active,
.tip-tabs button.active {
  border-color: rgba(0, 113, 227, 0.36);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 113, 227, 0.2);
}

.tip-custom-amount {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr 70px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  padding: 5px 8px 5px 13px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.tip-custom-amount input {
  width: 100%;
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  background: var(--softer);
  color: var(--ink);
  text-align: center;
  outline: 0;
}

.tip-feedback {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.tip-feedback textarea {
  width: 100%;
  min-height: 112px;
  resize: vertical;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  padding: 13px 14px;
  color: var(--ink);
  outline: 0;
  line-height: 1.55;
}

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

.tip-method-panel {
  min-height: 164px;
}

.tip-method-card,
.tip-crypto-list {
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  padding: 14px;
}

.tip-method-card {
  display: grid;
  justify-items: start;
  gap: 12px;
}

.tip-method-card p,
.tip-crypto-list p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.tip-qr,
.tip-qr-placeholder {
  width: 168px;
  aspect-ratio: 1;
  border-radius: 18px;
}

.tip-qr-placeholder {
  display: grid;
  place-items: center;
  gap: 8px;
  border: 1px dashed rgba(0, 113, 227, 0.36);
  background:
    linear-gradient(45deg, rgba(0, 113, 227, 0.08) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(0, 113, 227, 0.08) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(0, 113, 227, 0.08) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(0, 113, 227, 0.08) 75%),
    rgba(255, 255, 255, 0.72);
  background-position:
    0 0,
    0 10px,
    10px -10px,
    -10px 0;
  background-size: 20px 20px;
  padding: 14px;
  text-align: center;
}

.tip-qr-placeholder strong {
  align-self: end;
}

.tip-qr-placeholder span {
  align-self: start;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

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

.tip-crypto-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 10px;
}

.tip-crypto-row:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.tip-crypto-row div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.tip-crypto-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.tip-crypto-row code {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tip-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.tip-footer span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

:root[data-theme="dark"] .tip-modal-backdrop {
  background: rgba(0, 0, 0, 0.52);
}

:root[data-theme="dark"] .tip-modal,
:root[data-theme="dark"] .tip-close,
:root[data-theme="dark"] .tip-amount,
:root[data-theme="dark"] .tip-tabs button,
:root[data-theme="dark"] .tip-custom-amount,
:root[data-theme="dark"] .tip-feedback textarea,
:root[data-theme="dark"] .tip-method-card,
:root[data-theme="dark"] .tip-crypto-list {
  background: rgba(28, 28, 30, 0.94);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  max-width: min(420px, calc(100vw - 36px));
  padding: 13px 15px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.toast.error {
  background: var(--warn);
}

.toast.warning {
  background: #a45b00;
}

@media (max-width: 1060px) {
  .sidebar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    justify-items: stretch;
    padding: 8px 14px;
    gap: 10px;
  }

  .utility-controls {
    justify-content: end;
  }

  .tool-nav {
    justify-content: center;
    width: 100%;
    padding-bottom: 2px;
  }

  .workspace {
    padding-top: 42px;
  }

  .tool-surface {
    grid-template-columns: 1fr;
  }

  .dropzone,
  .settings-grid,
  .preview-panel,
  .action-bar {
    grid-column: auto;
    grid-row: auto;
  }

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

  .seo-tool-links,
  .seo-faq,
  .seo-landing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 52px 0 34px;
  }

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

  .home-band {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .seo-landing-card.wide {
    grid-column: span 2;
  }
}

@media (max-width: 760px) {
  .sidebar {
    min-height: 0;
    grid-template-columns: auto auto;
    align-items: center;
    gap: 8px 10px;
    padding: 10px 12px 9px;
  }

  .sidebar .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .utility-controls {
    grid-column: 2;
    grid-row: 1;
    justify-content: end;
    gap: 6px;
  }

  .tip-button {
    min-width: 58px;
    padding-inline: 10px;
  }

  .tip-label-full {
    display: none;
  }

  .tip-label-short {
    display: inline;
  }

  .language-control {
    padding: 4px 6px 4px 9px;
  }

  .language-control span {
    display: none;
  }

  .tip-modal-backdrop {
    padding: 12px;
  }

  .tip-modal {
    max-height: calc(100vh - 24px);
    border-radius: 18px;
    padding: 18px;
  }

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

  .tip-custom-amount {
    grid-column: 1 / -1;
  }

  .tip-tabs {
    grid-template-columns: 1fr;
  }

  .tool-nav {
    grid-column: 1 / -1;
    overflow: visible;
    padding: 0;
  }

  .tool-nav > button,
  .tool-nav > .more-tools {
    display: none;
  }

  .mobile-tool-menu {
    display: block;
    width: 100%;
  }

  .mobile-tool-trigger {
    min-height: 38px;
    border: 1px solid var(--line-soft);
    border-radius: 14px;
    padding: 9px 12px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--ink);
    font-size: 13px;
    font-weight: 650;
  }

  .more-tools {
    position: static;
  }

  .more-tools[open] .more-menu {
    position: fixed;
    top: 92px;
    right: 12px;
    left: 12px;
    max-height: min(320px, calc(100vh - 112px));
    min-width: 0;
    overflow: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workspace {
    width: min(100vw - 24px, 1180px);
    padding: 28px 0 50px;
  }

  .topbar {
    gap: 16px;
    margin-bottom: 22px;
  }

  .eyebrow {
    font-size: 15px;
  }

  h1 {
    font-size: 40px;
    line-height: 0.98;
  }

  .status-strip {
    gap: 8px;
    width: 100%;
  }

  .status-strip span {
    flex: 1 1 128px;
    min-width: 0;
    text-align: center;
  }

  .list-panel {
    padding: 12px;
  }

  .dropzone {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 14px;
    padding: 18px;
  }

  .drop-copy {
    gap: 7px;
  }

  .drop-copy strong {
    font-size: 34px;
  }

  .privacy-note {
    white-space: normal;
  }

  .drop-actions,
  .action-bar {
    width: 100%;
  }

  .drop-actions .button,
  .action-bar .button {
    flex: 1 1 150px;
  }

  .action-bar {
    gap: 8px;
    padding: 14px;
  }

  .action-bar .button {
    min-width: 0;
  }

  .action-bar .button.primary {
    flex-basis: 100%;
    min-width: 0;
  }

  .settings-grid,
  .preview-grid,
  .content-grid,
  .content-grid.metadata-mode,
  .preview-meta,
  .summary-band {
    grid-template-columns: 1fr;
  }

  .demo-banner {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }

  .demo-banner-actions {
    justify-content: stretch;
  }

  .demo-banner .button {
    flex: 1 1 150px;
    width: 100%;
  }

  .settings-grid {
    gap: 10px;
    padding: 14px;
  }

  .settings-grid::before {
    font-size: 14px;
  }

  .field:has(#watermark-angle),
  .field:has(.preset-buttons) {
    grid-column: 1 / -1;
  }

  .field input,
  .field select,
  .check-field {
    min-height: 44px;
  }

  .preview-panel {
    padding: 14px;
  }

  #previewBadge {
    align-self: flex-start;
    width: fit-content;
  }

  .preview-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .preview-meta {
    gap: 8px;
  }

  .preview-info-item,
  .preview-info-status {
    padding: 11px 12px;
  }

  .metadata-facts {
    grid-template-columns: 1fr;
  }

  .seo-section {
    padding: 20px;
  }

  .seo-tool-links,
  .seo-faq,
  .seo-landing-grid {
    grid-template-columns: 1fr;
  }

  .seo-landing-shell {
    width: min(100vw - 24px, 1180px);
    padding: 14px 0 50px;
  }

  .home-page {
    width: min(100vw - 24px, 1180px);
    padding-top: 12px;
  }

  .privacy-page .seo-landing-shell {
    width: min(100vw - 24px, 1180px);
    padding-top: 12px;
  }

  .examples-page .seo-landing-shell {
    width: min(100vw - 24px, 1180px);
    padding-top: 12px;
  }

  .home-nav {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
  }

  .home-nav-links {
    justify-content: flex-end;
    gap: 14px;
  }

  .home-nav-actions {
    grid-column: 1 / -1;
    width: 100%;
  }

  .home-nav-actions .language-control,
  .home-nav-actions .button {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
  }

  .home-hero {
    gap: 24px;
    padding: 36px 0 26px;
  }

  .home-hero-copy h1 {
    font-size: 58px;
  }

  .home-hero-copy p:not(.eyebrow) {
    font-size: 17px;
  }

  .home-actions .button {
    flex: 1 1 160px;
  }

  .home-trust {
    grid-template-columns: 1fr;
    border-radius: 20px;
  }

  .home-trust > span {
    min-height: 58px;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    align-content: center;
    column-gap: 11px;
    padding: 11px 13px;
  }

  .home-trust > span::before {
    grid-row: 1 / 3;
  }

  .home-preview {
    border-radius: 18px;
  }

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

  .home-preview-canvas {
    grid-column: auto;
    min-height: 220px;
  }

  .home-section {
    padding: 38px 0;
  }

  .home-section-head h2,
  .home-band h2 {
    font-size: 34px;
  }

  .home-tool-grid,
  .home-demo-grid {
    grid-template-columns: 1fr;
  }

  .home-demo-card {
    grid-template-rows: 170px auto auto 1fr;
  }

  .home-demo-card img {
    height: 170px;
  }

  .seo-landing-nav {
    align-items: center;
    flex-direction: row;
    margin-bottom: 34px;
  }

  .seo-landing-nav a:not(.brand) {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(0, 113, 227, 0.25);
    border-radius: 999px;
    padding: 8px 13px;
  }

  .seo-landing-card.wide {
    grid-column: auto;
  }

  .seo-landing-hero {
    gap: 14px;
  }

  .seo-landing-hero h1 {
    font-size: 38px;
  }

  .seo-landing-hero p {
    font-size: 16px;
    line-height: 1.65;
  }

  .seo-landing-grid {
    gap: 10px;
    margin-top: 30px;
  }

  .seo-landing-section {
    margin-top: 34px;
  }

  .seo-landing-section > h2 {
    font-size: 30px;
  }

  .seo-related-links a {
    flex: 1 1 150px;
  }

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

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

  .preview-stage img,
  .preview-stage canvas {
    max-height: min(46vh, 520px);
  }

  .split-overlay {
    --ruler-size: 24px;
  }

  .split-guide-input {
    width: 52px;
    min-height: 22px;
    padding: 2px 6px;
    font-size: 10px;
  }

  .summary-band div {
    padding: 16px 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .summary-band div:last-child {
    border-bottom: 0;
  }

  .file-card {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px;
    padding: 9px;
  }

  .thumb {
    width: 64px;
    height: 64px;
  }

  .meta {
    gap: 5px 7px;
  }

  .card-actions {
    gap: 7px;
  }

  .drag-handle,
  .mini-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 7px 9px;
    text-align: center;
  }

  .toast {
    right: 12px;
    bottom: 12px;
    left: 12px;
    max-width: none;
  }
}

@media (max-width: 420px) {
  .workspace,
  .home-page,
  .seo-landing-shell,
  .privacy-page .seo-landing-shell,
  .examples-page .seo-landing-shell {
    width: min(100vw - 20px, 1180px);
  }

  .sidebar {
    padding-inline: 10px;
  }

  .tool-nav > button,
  .more-trigger {
    padding-inline: 10px;
    font-size: 11px;
  }

  .more-tools[open] .more-menu {
    top: 90px;
    right: 10px;
    left: 10px;
  }

  .topbar {
    margin-bottom: 18px;
  }

  h1 {
    font-size: 36px;
  }

  .drop-copy strong {
    font-size: 31px;
  }

  .angle-control {
    grid-template-columns: 1fr;
  }

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

  .preset-button {
    padding: 9px 5px;
    font-size: 12px;
  }

  .preview-panel,
  .settings-grid,
  .action-bar,
  .list-panel {
    padding: 12px;
  }

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

  .summary-band strong {
    font-size: 24px;
  }

  .file-card {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .thumb {
    width: 56px;
    height: 56px;
  }

  .home-nav-links {
    gap: 10px;
  }

  .home-nav-links a {
    font-size: 12px;
  }

  .home-hero-copy h1 {
    font-size: 50px;
  }

  .home-section-head h2,
  .home-band h2 {
    font-size: 34px;
  }

  .seo-landing-hero h1 {
    font-size: 30px;
  }
}
