:root {
  --bg: #f4f6fa;
  --surface: #ffffff;
  --surface-soft: #f8f9fc;
  --ink: #18202d;
  --muted: #697386;
  --line: #e4e8ef;
  --blue: #275ee7;
  --blue-dark: #1e49b8;
  --green: #16865d;
  --green-bg: #eaf8f1;
  --yellow: #a46400;
  --yellow-bg: #fff6dc;
  --red: #b6464e;
  --red-bg: #fff0f1;
  --shadow-card: 0 0 0 1px rgba(0, 0, 0, 0.055), 0 1px 2px rgba(0, 0, 0, 0.035), 0 12px 34px rgba(30, 42, 67, 0.07);
  --shadow-hover: 0 0 0 1px rgba(0, 0, 0, 0.075), 0 2px 5px rgba(0, 0, 0, 0.05), 0 18px 44px rgba(30, 42, 67, 0.1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
  font-variant-numeric: tabular-nums;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 50% -10%, #ffffff 0, var(--bg) 44rem); }
button, input { font: inherit; }
button, label { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p, span, label { text-wrap: pretty; }

.topbar {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  background: rgba(255, 255, 255, 0.84);
  border-bottom: 1px solid rgba(24, 32, 45, 0.07);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand { color: var(--ink); text-decoration: none; font-weight: 750; letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.brand-mark { width: 34px; height: 34px; border-radius: 11px; background: var(--ink); color: white; display: grid; place-items: center; box-shadow: 0 4px 12px rgba(24, 32, 45, 0.18); }
.brand-mark svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.local-note { color: var(--muted); font-size: 14px; display: flex; gap: 8px; align-items: center; }
.local-dot { width: 8px; height: 8px; border-radius: 99px; background: var(--green); box-shadow: 0 0 0 4px rgba(22, 134, 93, 0.11); }

.shell { max-width: 1180px; margin: 0 auto; padding: 56px 24px 80px; }
.intro { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.13em; font-size: 12px; font-weight: 800; color: var(--blue); margin-bottom: 9px; }
.intro h1 { font-size: clamp(32px, 5vw, 54px); letter-spacing: -0.048em; line-height: 1.02; max-width: 790px; }
.intro-copy { color: var(--muted); font-size: 17px; line-height: 1.55; max-width: 690px; margin-top: 16px; }

.dropzone {
  position: relative;
  min-height: 238px;
  padding: 36px;
  border-radius: 28px;
  background: linear-gradient(135deg, #fdfefe, #f6f8ff);
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  cursor: default;
  outline: none;
  transition-property: box-shadow, transform, background-color;
  transition-duration: 180ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}
.dropzone-hitarea {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}
.dropzone-hitarea:focus-visible { outline: 3px solid rgba(23,122,118,.26); outline-offset: -4px; }
.dropzone::after { content: ""; position: absolute; inset: 10px; border: 1.5px dashed #cbd3e2; border-radius: 18px; pointer-events: none; }
.dropzone:hover, .dropzone:focus-within, .dropzone.is-dragging { box-shadow: var(--shadow-hover), 0 0 0 4px rgba(39, 94, 231, 0.10); transform: translateY(-2px); }
.dropzone.is-dragging { background: #eef3ff; }
.drop-icon { width: 72px; height: 72px; border-radius: 21px; background: #eaf0ff; color: var(--blue); display: grid; place-items: center; margin-left: 8px; }
.drop-icon svg { width: 34px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.drop-copy h2 { font-size: 24px; letter-spacing: -0.025em; }
.drop-copy p { margin-top: 8px; color: var(--muted); line-height: 1.5; }
.drop-actions { display: flex; flex-direction: column; gap: 10px; margin-right: 8px; position: relative; z-index: 2; }
.drop-icon, .drop-copy, .drop-actions, .drop-limit, .upload-legal-notice { position: relative; z-index: 2; pointer-events: none; }
.drop-actions label, .upload-legal-notice a { pointer-events: auto; }

.primary-button, .secondary-button, .quiet-button, .tool-button, .icon-button, .filter {
  border: 0;
  cursor: pointer;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition-property: scale, background-color, color, box-shadow, opacity;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}
.primary-button:active, .secondary-button:active, .quiet-button:active, .tool-button:active, .icon-button:active, .filter:active { scale: 0.96; }
.primary-button { padding: 0 20px; border-radius: 12px; color: white; background: var(--blue); box-shadow: 0 5px 14px rgba(39, 94, 231, 0.22); }
.primary-button:hover { background: var(--blue-dark); }
.secondary-button { padding: 0 20px; border-radius: 12px; color: #344057; background: white; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.10), 0 2px 5px rgba(0, 0, 0, 0.05); }
.secondary-button:hover { background: #f5f7fb; }
.quiet-button { padding: 0 15px; border-radius: 11px; background: transparent; color: var(--muted); box-shadow: 0 0 0 1px var(--line); }
.quiet-button:hover { color: var(--ink); background: white; }
.danger-button:hover { color: var(--red); background: var(--red-bg); }
button:disabled { cursor: not-allowed; opacity: 0.42; scale: 1; }
button:focus-visible, label:focus-visible { outline: 3px solid rgba(39, 94, 231, 0.28); outline-offset: 2px; }

.upload-status { min-height: 28px; padding: 12px 4px 0; color: var(--muted); font-size: 14px; }
.workspace { margin-top: 40px; }
.is-hidden { display: none !important; }
.preflight-panel { margin-bottom: 16px; padding: 20px; border-radius: 20px; background: linear-gradient(135deg, #f8faff, #eef3ff); box-shadow: var(--shadow-card); display: grid; grid-template-columns: minmax(250px, 1fr) auto auto; align-items: center; gap: 22px; }
.preflight-copy .eyebrow { margin-bottom: 6px; }
.preflight-copy h2 { font-size: 21px; letter-spacing: -.025em; }
.preflight-copy > p:last-child { max-width: 610px; margin-top: 7px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.preflight-stats { margin: 0; display: flex; gap: 8px; }
.preflight-stats div { min-width: 104px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.76); box-shadow: 0 0 0 1px rgba(0,0,0,.055); }
.preflight-stats dt { color: var(--muted); font-size: 11px; line-height: 1.25; }
.preflight-stats dd { margin: 5px 0 0; font-size: 20px; font-weight: 780; letter-spacing: -.03em; }
.preflight-start { white-space: nowrap; }
.summary-row { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 12px; }
.summary-card { min-height: 96px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-card); padding: 19px 20px; display: flex; flex-direction: column; justify-content: space-between; }
.summary-card span { color: var(--muted); font-size: 14px; }
.summary-card strong { font-size: 26px; letter-spacing: -0.035em; }
.summary-green strong { color: var(--green); }
.summary-yellow strong { color: var(--yellow); }
.summary-red strong { color: var(--red); }

.queue-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 28px; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filter { padding: 0 14px; border-radius: 10px; background: transparent; color: var(--muted); gap: 7px; font-size: 14px; }
.filter span { min-width: 18px; height: 20px; border-radius: 7px; padding: 0 5px; background: #e9edf4; color: #566177; font-size: 12px; display: grid; place-items: center; }
.filter.is-active { background: var(--ink); color: white; box-shadow: 0 5px 12px rgba(24, 32, 45, 0.14); }
.filter.is-active span { background: rgba(255,255,255,.16); color: white; }
.queue-actions, .bulk-actions { display: flex; gap: 8px; }

.bulk-bar { min-height: 66px; display: flex; align-items: center; gap: 18px; margin-top: 16px; padding: 10px 12px 10px 18px; background: rgba(255,255,255,.72); border-radius: 16px; box-shadow: 0 0 0 1px rgba(0,0,0,.055); }
.select-all { display: flex; align-items: center; gap: 9px; min-height: 40px; cursor: pointer; font-weight: 650; }
.select-all input, .file-select { width: 18px; height: 18px; accent-color: var(--blue); }
#selected-count { color: var(--muted); font-size: 14px; }
.bulk-actions { margin-left: auto; }

.file-list { margin-top: 16px; display: grid; gap: 12px; }
.file-card { background: var(--surface); border-radius: 20px; padding: 12px; box-shadow: var(--shadow-card); display: grid; grid-template-columns: 44px 96px minmax(170px, 1fr) 170px 138px; align-items: center; gap: 16px; transition-property: box-shadow, transform; transition-duration: 160ms; transition-timing-function: ease-out; }
.file-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.file-card.is-new { animation: card-in 320ms cubic-bezier(.2,0,0,1) both; }
@keyframes card-in { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } }
.select-cell { display: grid; place-items: center; }
.thumb-pair { width: 96px; height: 68px; position: relative; }
.thumb { position: absolute; width: 70px; height: 52px; border-radius: 9px; object-fit: cover; outline: 1px solid rgba(0, 0, 0, 0.1); outline-offset: -1px; background: #e8ebf0; }
.thumb-before { left: 0; top: 0; filter: saturate(.82); }
.thumb-result { right: 0; bottom: 0; box-shadow: 0 5px 12px rgba(24,32,45,.18); }
.thumb-placeholder { position: absolute; inset: 7px; border-radius: 10px; background: linear-gradient(100deg, #eceff4 20%, #f7f8fa 38%, #eceff4 56%); background-size: 220% 100%; animation: shimmer 1.5s linear infinite; }
@keyframes shimmer { to { background-position-x: -220%; } }
.file-main { min-width: 0; }
.file-name { font-weight: 750; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.file-meta { color: var(--muted); font-size: 13px; margin-top: 6px; display: flex; gap: 12px; }
.result-copy { display: flex; flex-direction: column; gap: 5px; }
.result-copy strong { font-size: 14px; }
.result-copy span { font-size: 13px; color: var(--muted); }
.status-pill { width: fit-content; min-height: 30px; padding: 0 10px; border-radius: 9px; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 750; }
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 99px; background: currentColor; }
.status-green { color: var(--green); background: var(--green-bg); }
.status-yellow { color: var(--yellow); background: var(--yellow-bg); }
.status-red, .status-error { color: var(--red); background: var(--red-bg); }
.status-processing, .status-waiting { color: #52617a; background: #eef1f6; }
.status-preflight { color: var(--blue-dark); background: #eaf0ff; }
.status-processing::before { animation: pulse 1.1s ease-in-out infinite alternate; }
@keyframes pulse { to { opacity: .25; transform: scale(.65); } }
.card-actions { display: flex; justify-content: end; gap: 7px; }
.open-button { min-width: 94px; }
.cancel-button { min-width: 44px; padding: 0; }
.empty-filter { padding: 52px; color: var(--muted); text-align: center; }
.debug-card { grid-column: 2 / -1; padding: 10px 12px 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.debug-card summary { min-height: 40px; display: flex; align-items: center; cursor: pointer; color: #3e4a61; font-weight: 750; }
.debug-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.debug-grid div { min-width: 0; padding: 10px; border-radius: 10px; background: var(--surface-soft); }
.debug-grid dt { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; }
.debug-grid dd { margin: 5px 0 0; color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.debug-candidates { margin: 10px 0 0; padding: 11px; border-radius: 10px; overflow: auto; background: #111722; color: #dbe4f1; font: 12px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; }

.viewer { width: min(1180px, calc(100vw - 28px)); max-width: none; padding: 0; border: 0; border-radius: 24px; background: #111722; color: white; box-shadow: 0 30px 90px rgba(0,0,0,.36); overflow: hidden; }
.viewer::backdrop, .system-dialog::backdrop { background: rgba(12, 17, 26, .72); backdrop-filter: blur(7px); }
.viewer-shell { height: min(860px, calc(100vh - 28px)); display: grid; grid-template-rows: auto auto minmax(0,1fr) auto; }
.viewer-header { padding: 18px 20px 15px 22px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.08); }
.viewer-kicker { color: #9da9bb; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
.viewer-title-wrap h2 { margin-top: 4px; font-size: 19px; max-width: 70vw; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.icon-button { width: 44px; height: 44px; padding: 0; border-radius: 12px; color: inherit; background: rgba(255,255,255,.08); }
.icon-button:hover { background: rgba(255,255,255,.14); }
.icon-button svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.viewer-toolbar { min-height: 64px; padding: 10px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid rgba(255,255,255,.07); }
.segmented { padding: 4px; border-radius: 14px; background: rgba(255,255,255,.07); display: flex; }
.segmented button { min-width: 94px; min-height: 40px; border: 0; border-radius: 10px; color: #aeb7c5; background: transparent; cursor: pointer; font-weight: 750; }
.segmented button.is-active { color: #111722; background: white; box-shadow: 0 3px 10px rgba(0,0,0,.2); }
.zoom-tools { display: flex; align-items: center; gap: 6px; }
.zoom-tools output { min-width: 58px; text-align: center; color: #c4ccda; font-size: 13px; }
.tool-button { padding: 0 13px; border-radius: 10px; color: #d5dbe5; background: rgba(255,255,255,.08); }
.tool-button:hover { background: rgba(255,255,255,.14); }
.image-stage { position: relative; overflow: hidden; min-height: 300px; background-color: #0b1018; background-image: linear-gradient(45deg, rgba(255,255,255,.025) 25%, transparent 25%), linear-gradient(-45deg, rgba(255,255,255,.025) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, rgba(255,255,255,.025) 75%), linear-gradient(-45deg, transparent 75%, rgba(255,255,255,.025) 75%); background-size: 28px 28px; background-position: 0 0, 0 14px, 14px -14px, -14px 0; display: grid; place-items: center; cursor: grab; touch-action: none; }
.image-stage.is-dragging { cursor: grabbing; }
.image-stage img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; outline: 1px solid rgba(255, 255, 255, 0.1); outline-offset: -1px; transform: translate3d(0,0,0) scale(1); transition-property: opacity, filter; transition-duration: 130ms; transition-timing-function: ease-out; }
.image-stage img.is-loading { opacity: .16; filter: blur(4px); }
.view-label { position: absolute; left: 18px; top: 16px; min-height: 30px; padding: 0 11px; border-radius: 9px; background: rgba(10,14,21,.72); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 800; backdrop-filter: blur(8px); pointer-events: none; }
.image-message { color: #b6bfcd; max-width: 420px; text-align: center; line-height: 1.55; padding: 24px; }
.viewer-footer { padding: 15px 18px 17px 22px; display: flex; justify-content: space-between; gap: 24px; align-items: center; border-top: 1px solid rgba(255,255,255,.08); }
.candidate-area { min-width: 0; }
.candidate-area p { color: #c0c8d4; font-size: 14px; line-height: 1.45; }
.candidate-tabs { display: flex; gap: 7px; margin-top: 10px; }
.candidate-tabs button { min-height: 38px; padding: 0 13px; border: 0; border-radius: 10px; color: #bdc6d4; background: rgba(255,255,255,.08); cursor: pointer; font-weight: 700; }
.candidate-tabs button.is-active { color: white; background: var(--blue); }
.viewer-actions { display: flex; gap: 8px; flex-shrink: 0; }
.viewer .secondary-button { background: rgba(255,255,255,.1); color: white; box-shadow: 0 0 0 1px rgba(255,255,255,.1); }
.viewer .secondary-button:hover { background: rgba(255,255,255,.16); }
.viewer:fullscreen { width: 100vw; height: 100vh; border-radius: 0; }
.viewer:fullscreen .viewer-shell { height: 100vh; }

.system-dialog { width: min(720px, calc(100vw - 30px)); padding: 0; border: 0; border-radius: 20px; box-shadow: 0 25px 80px rgba(0,0,0,.3); }
.system-card { padding: 22px; }
.system-card header { display: flex; justify-content: space-between; align-items: center; }
.system-card .icon-button { color: var(--ink); background: var(--surface-soft); }
.system-card pre { overflow: auto; max-height: 60vh; padding: 16px; border-radius: 12px; background: #111722; color: #dbe4f1; font: 13px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; }
.toast { position: fixed; left: 50%; bottom: 24px; translate: -50% 18px; opacity: 0; pointer-events: none; z-index: 100; max-width: min(560px, calc(100vw - 28px)); padding: 13px 17px; border-radius: 12px; background: #18202d; color: white; box-shadow: 0 16px 48px rgba(0,0,0,.24); transition-property: opacity, translate; transition-duration: 180ms; transition-timing-function: ease-out; }
.toast.is-visible { opacity: 1; translate: -50% 0; }
.debug-only { display: none; }
body.debug-mode .debug-only { display: inline-flex; }

@media (max-width: 900px) {
  .preflight-panel { grid-template-columns: 1fr auto; }
  .preflight-stats { grid-column: 1 / -1; grid-row: 2; }
  .dropzone { grid-template-columns: auto 1fr; }
  .drop-actions { grid-column: 1 / -1; flex-direction: row; margin: 0 8px 4px; }
  .file-card { grid-template-columns: 36px 82px minmax(0, 1fr) auto; }
  .thumb-pair { width: 82px; }
  .result-copy { grid-column: 3; }
  .card-actions { grid-column: 4; grid-row: 1 / span 2; }
  .debug-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .queue-toolbar { align-items: flex-start; flex-direction: column; }
  .queue-actions { align-self: stretch; }
}

@media (max-width: 680px) {
  .topbar { padding: 0 16px; }
  .local-note { font-size: 0; }
  .local-note::after { content: "Локально"; font-size: 13px; }
  .shell { padding: 34px 14px 60px; }
  .intro { align-items: start; }
  .intro h1 { font-size: 36px; }
  .dropzone { min-height: 300px; padding: 32px 25px; grid-template-columns: 1fr; text-align: center; }
  .drop-icon { margin: 0 auto; }
  .drop-actions { flex-direction: column; margin: 0; }
  .summary-row { grid-template-columns: 1fr 1fr; }
  .preflight-panel { grid-template-columns: 1fr; gap: 16px; }
  .preflight-stats { grid-column: auto; grid-row: auto; display: grid; grid-template-columns: repeat(3, 1fr); }
  .preflight-stats div { min-width: 0; }
  .preflight-start { width: 100%; }
  .summary-card { min-height: 86px; }
  .queue-actions { overflow-x: auto; }
  .bulk-bar { align-items: flex-start; flex-wrap: wrap; gap: 6px 16px; }
  .bulk-actions { width: 100%; }
  .bulk-actions button { flex: 1; }
  .file-card { grid-template-columns: 30px 76px minmax(0, 1fr); gap: 11px; border-radius: 17px; }
  .thumb-pair { width: 76px; height: 62px; }
  .thumb { width: 58px; height: 46px; }
  .result-copy { grid-column: 2 / -1; padding-left: 0; }
  .card-actions { grid-column: 2 / -1; grid-row: auto; justify-content: stretch; }
  .card-actions button { flex: 1; }
  .debug-card { grid-column: 1 / -1; }
  .debug-grid { grid-template-columns: 1fr; }
  .viewer { width: 100vw; height: 100dvh; border-radius: 0; }
  .viewer-shell { height: 100dvh; }
  .viewer-toolbar { align-items: stretch; flex-direction: column; }
  .segmented { align-self: center; }
  .zoom-tools { justify-content: center; }
  .viewer-footer { align-items: stretch; flex-direction: column; gap: 12px; }
  .viewer-actions { flex-wrap: wrap; }
  .viewer-actions button { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}

/* Result workspace: user-facing categories, progressive reveal and one action dock. */
.summary-row {
  grid-template-columns: 1.2fr repeat(4, minmax(0, 1fr));
}
.summary-embedded strong { color: #626f86; }
.status-embedded {
  color: #52617a;
  background: #edf0f4;
}
.embedded-fallback {
  color: #6a7484;
  font-size: 12px;
  line-height: 1.4;
  text-wrap: pretty;
}
.is-terminal .queue-strip { display: none; }
.is-terminal .batch-timeline { margin-bottom: 16px; }
.is-terminal .queue-toolbar {
  position: sticky;
  z-index: 18;
  top: 70px;
  margin-inline: -10px;
  padding: 10px;
  border-radius: 15px;
  background: rgba(236,236,231,.92);
  box-shadow: 0 8px 26px rgba(25,34,31,.08);
  backdrop-filter: blur(12px);
}
.reveal-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 22px 0 6px;
  color: var(--text-muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.reveal-control button { min-width: 150px; }
.selection-dock {
  position: fixed;
  z-index: 45;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  translate: -50% 0;
  width: min(680px, calc(100vw - 28px));
  min-height: 68px;
  padding: 10px 10px 10px 18px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #f4f7f6;
  background: rgba(24,33,31,.94);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 18px 54px rgba(18,25,23,.28);
  backdrop-filter: blur(14px);
  transition-property: opacity, translate;
  transition-duration: 170ms;
  transition-timing-function: var(--motion-ease);
}
.selection-dock > div { display: grid; gap: 3px; min-width: 0; }
.selection-dock strong, .selection-dock span { font-variant-numeric: tabular-nums; }
.selection-dock span { color: #b9c4c0; font-size: 12px; }
.selection-dock .primary-button { min-width: 190px; }
.workspace.has-selection-dock { padding-bottom: 108px; }
.has-active-job #examples {
  margin-top: 62px;
  border-top-color: rgba(22,25,29,.13);
}
.candidate-tabs .embedded-candidate {
  position: relative;
  color: #aeb7c5;
  background: rgba(255,255,255,.045);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08);
}
.candidate-tabs .embedded-candidate:not(:first-child) { margin-left: 14px; }
.candidate-tabs .embedded-candidate:not(:first-child)::before {
  content: "";
  position: absolute;
  left: -11px;
  top: 5px;
  bottom: 5px;
  width: 1px;
  background: rgba(255,255,255,.12);
}
.candidate-tabs button span { display: grid; gap: 2px; }
.candidate-tabs button small { color: #8793a4; font-size: 10px; font-weight: 600; }
.candidate-tabs .embedded-candidate.is-active { background: #3e4a59; }

@media (max-width: 1024px) {
  .summary-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .summary-total { grid-row: span 2; }
}

@media (max-width: 680px) {
  .summary-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary-total { grid-column: 1 / -1; grid-row: auto; min-height: 76px; }
  .summary-card { min-width: 0; padding: 15px; }
  .summary-card span { font-size: 12px; text-wrap: pretty; }
  .is-terminal .queue-toolbar { top: 62px; margin-inline: -5px; padding: 8px 5px; }
  .is-terminal .queue-actions { display: none; }
  .bulk-bar { align-items: stretch; flex-direction: column; gap: 7px; padding: 12px; }
  .bulk-actions { width: 100%; margin-left: 0; }
  .bulk-actions button { width: 100%; }
  #selected-count { padding-left: 2px; }
  .file-card { min-width: 0; }
  .file-main, .result-copy, .card-actions { min-width: 0; }
  .result-copy strong, .embedded-fallback { overflow-wrap: anywhere; }
  .card-actions .open-button { width: 100%; min-width: 0; }
  .reveal-control { flex-direction: column; gap: 8px; padding-top: 18px; }
  .reveal-control button { width: 100%; }
  .selection-dock {
    width: calc(100vw - 20px);
    bottom: max(10px, env(safe-area-inset-bottom));
    min-height: 66px;
    padding: 9px 9px 9px 14px;
    border-radius: 16px;
    gap: 10px;
  }
  .selection-dock .primary-button { min-width: 0; padding-inline: 13px; white-space: nowrap; }
  .viewer-footer { max-height: 46dvh; overflow-y: auto; }
  .candidate-tabs { flex-wrap: nowrap; overflow-x: auto; padding: 1px 1px 5px; }
  .candidate-tabs button { flex: 0 0 auto; }
  .candidate-tabs .embedded-candidate:not(:first-child) { margin-left: 8px; }
  .viewer-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .viewer-actions button { min-width: 0; min-height: 44px; }
}

@media (max-width: 410px) {
  .file-card { grid-template-columns: 96px minmax(0, 1fr); }
  .thumb-pair { width: 96px; }
  .selection-dock span { display: none; }
  .selection-dock strong { font-size: 13px; }
  .selection-dock .primary-button { font-size: 12px; }
}

/* PixSave presentation layer */
:root {
  --bg-main:#f4f3ef; --bg-card:#fbfbf8; --bg-elevated:#fff;
  --text-primary:#16191d; --text-secondary:#68706e; --text-muted:#8a918e;
  --brand:#177a76; --brand-hover:#11645f; --brand-soft:#e4f1ef;
  --viewer:#11161b; --viewer-panel:#171d23;
  --success:#23835a; --success-soft:#e6f4ec;
  --warning:#a86f18; --warning-soft:#fbf0d6;
  --danger:#a94742; --danger-soft:#f8e6e4;
  --border:rgba(22,25,29,.10);
  --ink:var(--text-primary); --muted:var(--text-secondary); --blue:var(--brand);
  --blue-dark:var(--brand-hover); --green:var(--success); --green-bg:var(--success-soft);
  --yellow:var(--warning); --yellow-bg:var(--warning-soft); --red:var(--danger); --red-bg:var(--danger-soft);
  --surface:var(--bg-card); --surface-soft:#f1f2ee; --line:var(--border);
  --shadow-card:0 0 0 1px rgba(0,0,0,.055),0 1px 2px -1px rgba(0,0,0,.07),0 14px 36px rgba(38,45,43,.055);
  --shadow-hover:0 0 0 1px rgba(0,0,0,.075),0 2px 5px -1px rgba(0,0,0,.08),0 20px 50px rgba(38,45,43,.09);
  font-family:Onest,Geist,Manrope,Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  background:var(--bg-main); color:var(--text-primary);
}
html{scroll-behavior:smooth;scroll-padding-top:90px}
body{background:radial-gradient(circle at 76% 2%,rgba(255,255,255,.92),transparent 30rem),var(--bg-main);overflow-x:hidden}
a{color:inherit}.shell{max-width:1240px;padding:0 28px 96px}.marketing-section{padding:108px 0}
.topbar{height:72px;padding:0 max(28px,calc((100vw - 1184px)/2));background:rgba(244,243,239,.82);border-bottom:1px solid transparent;transition-property:background-color,box-shadow;transition-duration:180ms;z-index:30}
.topbar.is-scrolled{background:rgba(251,251,248,.88);box-shadow:0 1px 0 rgba(22,25,29,.08),0 8px 30px rgba(22,25,29,.04)}
.brand{gap:0;font-size:18px;font-weight:760;letter-spacing:-.035em}.brand small{font-size:10px;line-height:1;padding:5px 7px;border-radius:6px;background:var(--brand-soft);color:var(--brand);letter-spacing:.02em}
.brand-logo{display:block;width:120px;height:32px;object-fit:contain;object-position:left center}
.topbar nav{display:flex;gap:30px}.topbar nav a{font-size:13px;font-weight:630;text-decoration:none;color:#414846;transition-property:color;transition-duration:150ms}.topbar nav a:hover{color:var(--brand)}
.header-cta{min-height:40px!important;border-radius:999px!important;font-size:13px;text-decoration:none;padding-inline:18px!important}
.intro{min-height:590px;display:grid;grid-template-columns:minmax(0,1.08fr) minmax(380px,.92fr);align-items:center;gap:70px;margin:0;padding:78px 0 56px;position:relative}
.intro>.debug-only{position:absolute;right:0;top:22px}.eyebrow{color:var(--brand);font-size:11px;letter-spacing:.15em;margin-bottom:15px}
.intro h1{font-size:clamp(48px,5.6vw,72px);line-height:.98;letter-spacing:-.065em;max-width:720px}.intro h1 span{color:#39413f}
.intro-copy{max-width:650px;margin-top:25px;color:var(--text-secondary);font-size:18px;line-height:1.62}
.hero-trust{list-style:none;margin:34px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:12px 24px}.hero-trust li{display:flex;align-items:center;gap:9px;font-size:13px;font-weight:650;color:#3c4542}
.hero-trust li:before{content:"";width:28px;height:28px;border-radius:50%;background:var(--brand-soft);box-shadow:inset 0 0 0 1px rgba(23,122,118,.08)}.hero-trust li:after{content:"";position:absolute}.hero-visual{position:relative;justify-self:end;width:min(100%,480px);padding:34px 22px 30px}
.hero-image{position:relative;aspect-ratio:4/3;border-radius:5px;overflow:hidden;background:linear-gradient(135deg,#d7ded8,#aebdb4);box-shadow:0 30px 70px rgba(42,51,47,.2),0 0 0 1px rgba(0,0,0,.08);transform:rotate(2deg)}
.hero-image img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;outline:1px solid rgba(0,0,0,.1);outline-offset:-1px}.hero-image img:first-child{clip-path:inset(0 49% 0 0);filter:saturate(.72) contrast(.94)}.hero-image img:nth-child(2){clip-path:inset(0 0 0 51%)}.hero-image span{position:absolute;left:50%;top:0;bottom:0;width:1px;background:rgba(255,255,255,.85);box-shadow:0 0 0 1px rgba(0,0,0,.12)}
.hero-visual em{position:absolute;right:-9px;bottom:0;max-width:130px;padding:12px 14px;background:#fffdfa;box-shadow:0 12px 32px rgba(33,39,37,.14);font:600 15px/1.15 "Segoe Print",cursive;transform:rotate(-5deg);color:#39413f}
.pixel{position:absolute;display:block;background:var(--brand)}.p1{width:18px;height:18px;left:7px;top:20px}.p2{width:11px;height:11px;right:4px;top:86px}.p3{width:14px;height:14px;left:28px;bottom:48px}
.dropzone{min-height:280px;margin:0 0 18px;padding:46px;grid-template-columns:1fr;text-align:center;justify-items:center;gap:12px;border-radius:20px;background:rgba(251,251,248,.72);box-shadow:0 0 0 1px rgba(23,122,118,.24),0 18px 50px rgba(38,45,43,.045)}
.dropzone::after{inset:0;border:1px dashed rgba(23,122,118,.38);border-radius:20px}.dropzone:hover,.dropzone:focus-visible,.dropzone.is-dragging{transform:translateY(-2px);box-shadow:0 0 0 3px rgba(23,122,118,.13),0 24px 60px rgba(38,45,43,.1)}
.dropzone.is-dragging{background:var(--brand-soft)}.dropzone.is-dragging .drop-copy h2:after{content:" — отпустите, проверим фотографии";color:var(--brand)}
.drop-icon{width:58px;height:58px;border-radius:18px;background:var(--brand-soft);color:var(--brand);margin:0}.drop-icon svg{width:28px}.drop-copy h2{font-size:24px;letter-spacing:-.035em}.drop-copy p{font-size:14px}
.drop-actions{margin:12px 0 0;flex-direction:row}.drop-limit{color:var(--text-muted);font-size:12px;margin-top:6px;position:relative;z-index:2}
.upload-legal-notice{position:relative;z-index:2;max-width:720px;margin:14px auto 0;color:var(--text-muted);font-size:12px;line-height:1.55;text-wrap:pretty}.upload-legal-notice a{color:var(--brand);font-weight:680;text-underline-offset:2px}
.primary-button{background:var(--brand);box-shadow:0 7px 18px rgba(23,122,118,.22);border-radius:11px}.primary-button:hover{background:var(--brand-hover)}.secondary-button{color:#34413e;background:var(--bg-elevated)}button:focus-visible,label:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid rgba(23,122,118,.28);outline-offset:3px}
.upload-status{text-align:center;min-height:38px}.workspace{margin:48px 0 10px;padding:32px;border-radius:28px;background:#ecece7;box-shadow:0 0 0 1px rgba(0,0,0,.04),0 20px 70px rgba(30,36,34,.07)}
.workspace-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:26px}.workspace-heading h2{font-size:36px;letter-spacing:-.045em}.workspace-heading p:last-child{margin-top:8px;color:var(--muted);line-height:1.5}.workspace-heading-actions{display:flex;gap:8px}
.batch-timeline{list-style:none;margin:0 0 18px;padding:17px 22px;display:grid;grid-template-columns:repeat(3,1fr);background:rgba(255,255,255,.64);border-radius:16px;box-shadow:0 0 0 1px rgba(0,0,0,.05)}
.batch-timeline li{position:relative;display:flex;align-items:center;gap:11px;color:var(--text-muted)}.batch-timeline li:not(:last-child):after{content:"";position:absolute;left:48px;right:16px;top:16px;height:2px;background:#d7dbd7}.batch-timeline li>span{position:relative;z-index:1;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#dfe2de;font-weight:760;font-size:12px}.batch-timeline strong,.batch-timeline small{display:block}.batch-timeline strong{font-size:13px;color:#424a48}.batch-timeline small{font-size:11px;margin-top:2px}.batch-timeline li.is-active>span,.batch-timeline li.is-complete>span{background:var(--brand);color:#fff}.batch-timeline li.is-active strong,.batch-timeline li.is-complete strong{color:var(--text-primary)}
.queue-strip{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:17px 20px;margin-bottom:16px;border-radius:16px;background:#18211f;color:#fff}.queue-strip>div{display:flex;align-items:center;gap:12px}.queue-strip p{margin-top:3px;font-size:12px;color:#aeb9b5}.queue-dot{width:10px;height:10px;border-radius:50%;background:#52c59b;box-shadow:0 0 0 5px rgba(82,197,155,.12)}.queue-strip dl{display:flex;gap:25px;margin:0}.queue-strip dl div{display:flex;align-items:baseline;gap:7px}.queue-strip dt{font-size:11px;color:#aeb9b5}.queue-strip dd{margin:0;font-size:20px;font-weight:760;font-variant-numeric:tabular-nums}
.preflight-panel{background:#f6faf8;grid-template-columns:1fr auto;margin-bottom:16px;padding:22px}.preflight-copy h2{font-size:24px}.preflight-start{min-width:230px}.summary-row{grid-template-columns:1.2fr repeat(3,1fr)}.summary-card{background:rgba(255,255,255,.78);box-shadow:0 0 0 1px rgba(0,0,0,.045);min-height:88px}
.queue-toolbar{margin-top:24px}.filter.is-active{background:#20302d}.bulk-bar{background:rgba(255,255,255,.67)}
.file-list{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.file-card{position:relative;display:flex;flex-direction:column;align-items:stretch;gap:0;padding:10px 10px 12px;border-radius:18px;background:var(--bg-card);min-width:0}.file-card:hover{transform:translateY(-2px)}
.select-cell{position:absolute;z-index:4;left:18px;top:18px;width:28px;height:28px;border-radius:9px;background:rgba(255,255,255,.88);backdrop-filter:blur(7px);box-shadow:0 2px 10px rgba(0,0,0,.14)}.thumb-pair{width:100%;height:auto;aspect-ratio:4/3;border-radius:11px;overflow:hidden;background:#e7e9e4}.thumb{inset:0;width:100%;height:100%;border-radius:11px}.thumb-before{display:none}.thumb-result{box-shadow:none}.thumb-placeholder{inset:0;border-radius:11px}.file-main{padding:13px 3px 0}.file-name{font-size:13px}.file-meta{font-size:11px;margin-top:4px}.result-copy{padding:11px 3px 0;min-height:74px;gap:6px}.result-copy strong{font-size:12px;color:var(--text-secondary);font-weight:560;line-height:1.4}.status-pill{min-height:26px;padding:0 8px;border-radius:7px;font-size:11px}.card-actions{margin-top:auto;padding:7px 2px 0}.open-button{width:100%;min-height:40px}.cancel-button{position:absolute;right:16px;top:16px;z-index:5;background:rgba(255,255,255,.9)}.debug-card{grid-column:auto;width:100%;margin-top:8px}.debug-grid{grid-template-columns:1fr}
.marketing-section{border-top:1px solid rgba(22,25,29,.07)}.section-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:50px;margin-bottom:38px}.section-heading h2,.difference h2,.limitations h2,.faq h2,.final-cta h2{font-size:clamp(38px,4.4vw,52px);line-height:1.02;letter-spacing:-.055em}.section-heading>p{max-width:430px;color:var(--muted);line-height:1.55;font-size:14px}
.example-gallery{display:grid;grid-template-columns:1.3fr .7fr;grid-template-rows:repeat(2,1fr);gap:16px}.example-card{min-width:0}.example-card.featured{grid-row:1/3}.ba-stage{position:relative;overflow:hidden;aspect-ratio:16/10;border-radius:16px;background:#dfe3dd;box-shadow:var(--shadow-card);touch-action:none}.featured .ba-stage{height:100%;aspect-ratio:auto;min-height:510px}.ba-stage img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;outline:1px solid rgba(0,0,0,.1);outline-offset:-1px}.ba-stage .ba-after-wrap{position:absolute;inset:0;clip-path:inset(0 0 0 50%);overflow:hidden}.ba-stage .ba-divider{position:absolute;left:50%;top:0;bottom:0;width:2px;background:#fff;box-shadow:0 0 0 1px rgba(0,0,0,.14);pointer-events:none}.ba-divider span{position:absolute;left:50%;top:50%;translate:-50% -50%;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#fff;color:var(--brand);font-weight:800;box-shadow:0 5px 18px rgba(0,0,0,.22)}.ba-range{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:ew-resize}.ba-label{position:absolute;bottom:12px;padding:7px 9px;border-radius:7px;background:rgba(18,23,22,.76);color:#fff;font-size:11px;font-weight:700;pointer-events:none}.ba-label.before{left:12px}.ba-label.after{right:12px}.example-card figcaption{padding:10px 2px 0;color:#505956;font-size:13px}.example-skeleton{min-height:230px;border-radius:16px;background:linear-gradient(100deg,#e1e3de 20%,#f4f4f0 38%,#e1e3de 56%);background-size:220% 100%;animation:shimmer 1.5s linear infinite}.example-skeleton.featured{grid-row:1/3}
.steps-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.steps-grid li{position:relative;min-height:280px;padding:24px;border-radius:18px;background:var(--bg-card);box-shadow:var(--shadow-card)}.steps-grid>li>span{font-size:12px;font-weight:800;color:var(--brand)}.steps-grid i{display:block;width:58px;height:58px;margin:32px 0 24px;border-radius:18px;background:var(--brand-soft);position:relative}.steps-grid i:before,.steps-grid i:after{content:"";position:absolute;background:var(--brand)}.step-upload:before{width:2px;height:23px;left:28px;top:15px}.step-upload:after{width:10px;height:10px;left:24px;top:14px;border-left:2px solid var(--brand);border-top:2px solid var(--brand);background:none;transform:rotate(45deg)}.step-pixels:before{width:14px;height:14px;left:13px;top:13px;box-shadow:18px 0 var(--brand),0 18px var(--brand),18px 18px rgba(23,122,118,.28)}.step-photo:before{inset:13px;border:2px solid var(--brand);background:none;border-radius:3px}.step-photo:after{width:8px;height:8px;border-radius:50%;top:19px;left:20px}.steps-grid h3{font-size:22px;letter-spacing:-.035em}.steps-grid p{margin-top:11px;color:var(--muted);line-height:1.55;font-size:14px}
.difference{display:grid;grid-template-columns:.82fr 1.18fr;gap:70px;align-items:center}.difference-copy>p:last-child{margin-top:22px;max-width:500px;color:var(--muted);line-height:1.65}.process-compare{display:grid;grid-template-columns:1fr 1fr;gap:12px}.process-card{padding:22px;border-radius:18px;background:var(--bg-card);box-shadow:var(--shadow-card)}.process-card.pixsave{box-shadow:0 0 0 1px rgba(23,122,118,.22),0 16px 42px rgba(23,122,118,.08)}.process-card>strong{display:block;margin-bottom:18px;color:var(--brand)}.process-card ol{list-style:none;margin:0;padding:0}.process-card li{position:relative;padding:10px 0 10px 29px;color:#4d5653;font-size:13px}.process-card li:before{content:"";position:absolute;left:3px;top:13px;width:9px;height:9px;border-radius:3px;background:var(--brand)}.process-card li:not(:last-child):after{content:"";position:absolute;left:7px;top:25px;width:1px;height:18px;background:rgba(23,122,118,.25)}.generation{background:#f6f0e9}.generation>strong{color:#705e4c}.generation li:before{background:#a58d75}.generation p{margin-top:16px;padding-top:14px;border-top:1px solid rgba(60,45,30,.09);font-size:11px;color:#8b6d51;line-height:1.5}
.damage-grid,.privacy-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.damage-grid li,.privacy-grid li{display:flex;gap:15px;padding:21px;border-radius:15px;background:rgba(251,251,248,.76);box-shadow:0 0 0 1px rgba(0,0,0,.05)}.damage-grid i{flex:0 0 34px;height:34px;border-radius:10px;background:var(--brand-soft);position:relative}.damage-grid i:before{content:"";position:absolute;inset:9px;background:repeating-linear-gradient(0deg,var(--brand) 0 2px,transparent 2px 5px)}.damage-grid strong,.privacy-grid strong{font-size:14px}.damage-grid p,.privacy-grid p{margin-top:6px;color:var(--muted);font-size:12px;line-height:1.5}
.limitations{display:grid;grid-template-columns:80px .9fr 1.1fr;align-items:center;gap:32px;margin:28px 0 80px;padding:42px;border:0;border-radius:22px;background:#e9eeea}.limit-mark{width:62px;height:62px;border:2px solid var(--brand);border-radius:16px;position:relative}.limit-mark:before{content:"";position:absolute;width:16px;height:16px;right:-8px;top:-8px;background:var(--brand);box-shadow:-17px -11px 0 rgba(23,122,118,.35),11px 17px 0 rgba(23,122,118,.2)}.limitations>p{color:#59625f;line-height:1.65}
.privacy-grid li{padding:26px}.privacy-grid i{flex:0 0 42px;height:42px;border-radius:50%;display:grid;place-items:center;background:var(--brand-soft);color:var(--brand);font-style:normal;font-size:18px}
.faq{display:grid;grid-template-columns:.72fr 1.28fr;gap:80px}.faq-heading>p:last-child{margin-top:20px;color:var(--muted);line-height:1.6}.faq-list details{border-bottom:1px solid var(--border)}.faq-list summary{list-style:none;position:relative;padding:22px 50px 22px 0;cursor:pointer;font-weight:680}.faq-list summary::-webkit-details-marker{display:none}.faq-list summary:after{content:"+";position:absolute;right:6px;top:14px;width:36px;height:36px;display:grid;place-items:center;border-radius:50%;background:var(--bg-card);font-size:20px}.faq-list details[open] summary:after{content:"−"}.faq-list details p{padding:0 48px 22px 0;color:var(--muted);line-height:1.6}
.final-cta{position:relative;text-align:center;margin:40px 0 90px;padding:78px 20px;border:0;border-radius:26px;background:#e3edeb;overflow:hidden}.final-cta h2{max-width:850px;margin:auto}.final-cta>p:not(.eyebrow){max-width:570px;margin:20px auto 28px;color:var(--muted);line-height:1.6}.final-cta a{text-decoration:none}.site-footer{max-width:1184px;margin:auto;padding:28px;display:flex;align-items:center;gap:30px;border-top:1px solid var(--border);color:var(--muted);font-size:12px}.site-footer p{margin-left:auto}.site-footer .brand{color:var(--text-primary)}
.viewer{background:var(--viewer);border-radius:18px}.viewer-shell{height:min(900px,calc(100vh - 28px))}.viewer-header{background:var(--viewer);padding:14px 18px}.viewer-toolbar{background:var(--viewer-panel)}.image-stage{background-color:#0c1115}.viewer-footer{background:var(--viewer-panel)}.candidate-tabs button.is-active{background:var(--brand)}.viewer .primary-button{background:#f3f5f3;color:#17201e;box-shadow:none}
.image-stage>img,.viewer-result-clip img{position:absolute;inset:0;margin:auto;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain}
.viewer-result-clip{position:absolute;inset:0;overflow:hidden;z-index:2;pointer-events:none}.viewer-result-clip img{outline:1px solid rgba(255,255,255,.1);outline-offset:-1px;transition-property:opacity,filter;transition-duration:130ms}
.viewer-divider{position:absolute;z-index:4;top:0;bottom:0;width:1px;background:rgba(255,255,255,.9);box-shadow:0 0 0 1px rgba(0,0,0,.2);pointer-events:auto;cursor:ew-resize;touch-action:none}.viewer-divider::before{content:"";position:absolute;inset:0 auto 0 50%;width:44px;translate:-50% 0}.viewer-divider span{position:absolute;left:50%;top:50%;translate:-50% -50%;width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#fff;color:#18201e;box-shadow:0 6px 20px rgba(0,0,0,.28);font-size:14px;pointer-events:none}
.viewer-compare-range{position:absolute;z-index:6;left:15%;right:15%;bottom:10px;width:70%;height:42px;opacity:.001;cursor:ew-resize}.viewer-compare-range:focus-visible{opacity:.12;accent-color:#fff}
.image-stage .view-label{z-index:5}.candidate-tabs button{display:grid;grid-template-columns:52px 1fr;align-items:center;gap:9px;min-width:128px;padding:5px 11px 5px 5px;text-align:left}.candidate-tabs button img{width:52px;height:38px;border-radius:6px;object-fit:cover;outline:1px solid rgba(255,255,255,.1);outline-offset:-1px}.candidate-tabs button span{font-size:12px}.candidate-tabs{flex-wrap:wrap}
@media(max-width:1024px){.intro{grid-template-columns:1fr 390px;gap:30px}.intro h1{font-size:54px}.hero-trust{display:grid}.file-list{grid-template-columns:repeat(3,1fr)}.difference{gap:35px}.damage-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:820px){.topbar nav{display:none}.intro{grid-template-columns:1fr;padding-top:60px}.hero-copy{max-width:690px}.hero-visual{justify-self:center;width:min(88vw,500px)}.file-list{grid-template-columns:repeat(2,1fr)}.example-gallery{grid-template-columns:1fr 1fr;grid-template-rows:auto}.example-card.featured,.example-skeleton.featured{grid-column:1/-1;grid-row:auto}.featured .ba-stage{min-height:430px}.steps-grid{grid-template-columns:1fr}.steps-grid li{min-height:0}.difference{grid-template-columns:1fr}.limitations{grid-template-columns:64px 1fr}.limitations>p{grid-column:2}.privacy-grid{grid-template-columns:1fr}.faq{grid-template-columns:1fr}.workspace{padding:22px}.workspace-heading{align-items:flex-start}.batch-timeline li:not(:last-child):after{right:4px}.preflight-panel{grid-template-columns:1fr}.preflight-start{width:100%}}
@media(max-width:680px){.shell{padding:0 14px 60px}.topbar{height:62px;padding:0 15px}.brand-logo{width:108px;height:29px}.brand small{display:none}.header-cta{font-size:0;width:44px;padding:0!important}.header-cta:after{content:"+";font-size:22px}.intro{min-height:auto;padding:52px 4px 38px}.intro h1{font-size:44px}.intro-copy{font-size:16px}.hero-visual{width:100%;padding:26px 14px}.dropzone{min-height:330px;padding:34px 20px}.drop-actions{flex-direction:column;width:100%}.drop-actions label{width:100%}.marketing-section{padding:72px 2px}.section-heading{display:block;margin-bottom:28px}.section-heading>p{margin-top:18px}.section-heading h2,.difference h2,.limitations h2,.faq h2,.final-cta h2{font-size:36px}.workspace{margin-top:30px;padding:18px 12px;border-radius:20px}.workspace-heading{display:block;padding:4px 5px}.workspace-heading h2{font-size:29px}.workspace-heading-actions{margin-top:16px}.batch-timeline{padding:14px 10px}.batch-timeline li{gap:6px}.batch-timeline li>span{width:28px;height:28px}.batch-timeline li:not(:last-child):after{left:32px;right:2px;top:14px}.batch-timeline strong{font-size:11px}.batch-timeline small{display:none}.queue-strip{align-items:flex-start;flex-direction:column}.queue-strip dl{width:100%;justify-content:space-between}.summary-row{grid-template-columns:1fr 1fr}.queue-toolbar{overflow:hidden}.filters{width:100%;overflow-x:auto;flex-wrap:nowrap;padding-bottom:4px}.filter{flex:0 0 auto}.queue-actions{width:100%}.bulk-actions{display:grid;grid-template-columns:1fr 1fr}.file-list{grid-template-columns:1fr}.file-card{display:grid;grid-template-columns:112px 1fr;padding:9px}.thumb-pair{grid-row:1/4;grid-column:1;aspect-ratio:1}.file-main,.result-copy,.card-actions{grid-column:2;padding-left:10px}.result-copy{min-height:0}.card-actions{padding-top:8px}.select-cell{left:16px;top:16px}.example-gallery{grid-template-columns:1fr}.example-card.featured{grid-column:auto}.featured .ba-stage{min-height:0;aspect-ratio:4/3}.process-compare{grid-template-columns:1fr}.damage-grid{grid-template-columns:1fr}.limitations{grid-template-columns:1fr;padding:28px}.limitations>p{grid-column:auto}.site-footer{padding:24px 16px;flex-wrap:wrap}.site-footer p{order:3;margin:0;width:100%}.viewer{width:100vw;height:100dvh}.viewer-shell{height:100dvh}.viewer-toolbar{padding-top:max(10px,env(safe-area-inset-top))}.viewer-footer{padding-bottom:max(17px,env(safe-area-inset-bottom))}.zoom-tools .tool-button{display:none}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.hero-image{transform:none}.file-card:hover,.dropzone:hover{transform:none}}

/* Public launch lock and commercial pricing. */
.pricing-section{padding-top:62px}.pricing-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.pricing-grid article{display:flex;justify-content:space-between;align-items:baseline;gap:16px;padding:22px;border-radius:18px;background:var(--bg-card);box-shadow:0 0 0 1px rgba(0,0,0,.06),0 8px 28px rgba(30,36,34,.055)}.pricing-grid strong{color:var(--text-primary);font-size:15px}.pricing-grid span{color:var(--brand);font-size:24px;font-weight:820;letter-spacing:-.035em;font-variant-numeric:tabular-nums;white-space:nowrap}.pricing-note{margin-top:18px;color:var(--text-muted);font-size:13px;line-height:1.6;text-wrap:pretty}.upload-lock-dialog{width:min(520px,calc(100% - 28px));padding:0;border:0;border-radius:28px;background:var(--bg-card);color:var(--text-primary);box-shadow:0 0 0 1px rgba(0,0,0,.08),0 28px 90px rgba(15,23,21,.22)}.upload-lock-dialog::backdrop{background:rgba(12,17,26,.58);backdrop-filter:blur(5px)}.upload-lock-card{display:grid;justify-items:center;padding:34px;text-align:center}.upload-lock-icon{width:58px;height:58px;display:grid;place-items:center;border-radius:18px;background:var(--brand-soft);color:var(--brand)}.upload-lock-icon .ps-icon{width:27px;height:27px}.upload-lock-card h2{margin:20px 0 10px;font-size:30px;letter-spacing:-.035em;text-wrap:balance}.upload-lock-card p{max-width:420px;margin:0;color:var(--text-muted);line-height:1.65;text-wrap:pretty}.upload-lock-card button{margin-top:24px;min-width:132px}.primary-button:active,.secondary-button:active{scale:.96}@media(max-width:820px){.pricing-grid{grid-template-columns:1fr 1fr}}@media(max-width:520px){.pricing-grid{grid-template-columns:1fr}.upload-lock-card{padding:28px 20px}.upload-lock-card button{width:100%}}
@media(min-width:1025px){.intro{grid-template-columns:minmax(0,1fr) 420px;gap:42px}.intro h1{font-size:64px}}
@media(max-width:680px){.header-cta{font-size:12px;width:auto;padding:0 15px!important}.header-cta:after{content:none}.hero-visual{display:none}}

/* PixSave refinement pass: motion, pixel identity and visual rhythm */
:root {
  --motion-ease: cubic-bezier(.2, 0, 0, 1);
  interpolate-size: allow-keywords;
}
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html.is-restoring-scroll,
html.is-restoring-scroll body,
html.is-preserving-scroll,
html.is-preserving-scroll body {
  overflow-anchor: none;
  scroll-behavior: auto;
}
h1, h2, h3, summary { text-wrap: balance; }
p, li, figcaption { text-wrap: pretty; }
button, .primary-button, .secondary-button, .quiet-button, .tool-button, .filter {
  transition-property: transform, scale, color, background-color, box-shadow, opacity;
  transition-duration: 170ms;
  transition-timing-function: var(--motion-ease);
}
button:active:not(:disabled), .primary-button:active, .secondary-button:active, label.primary-button:active, label.secondary-button:active {
  scale: .96;
}
.summary-card strong, .queue-strip dd, .filter span, .file-meta {
  font-variant-numeric: tabular-nums;
}

/* Hero: one-shot assembly, then a tiny pointer response. */
.hero-visual {
  --pixel-x: 0px;
  --pixel-y: 0px;
  --pixel-x-reverse: 0px;
  --pixel-y-reverse: 0px;
  width: min(100%, 520px);
}
.hero-image {
  transform: rotate(1.5deg);
  transition-property: transform, box-shadow;
  transition-duration: 200ms;
  transition-timing-function: var(--motion-ease);
}
.hero-visual:hover .hero-image {
  transform: rotate(1deg) scale(1.012);
  box-shadow: 0 34px 76px rgba(42,51,47,.23), 0 0 0 1px rgba(0,0,0,.1);
}
.hero-image::after {
  content: "";
  position: absolute;
  z-index: 4;
  left: 47%;
  top: 18%;
  width: 12px;
  height: 12px;
  background: rgba(23,122,118,.82);
  opacity: 0;
  box-shadow:
    -22px 18px rgba(244,243,239,.92),
    18px 32px rgba(23,122,118,.48),
    -8px 58px rgba(244,243,239,.78),
    24px 82px rgba(23,122,118,.34),
    -18px 112px rgba(244,243,239,.7);
  pointer-events: none;
}
.hero-visual.is-assembling .hero-image::after {
  animation: hero-blocks-assemble 820ms var(--motion-ease) both;
}
.hero-visual .pixel {
  border-radius: 1px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.22);
  transition-property: transform, opacity;
  transition-duration: 180ms;
  transition-timing-function: var(--motion-ease);
}
.hero-visual .p1 { transform: translate(var(--pixel-x), var(--pixel-y)); }
.hero-visual .p2 { transform: translate(var(--pixel-x-reverse), var(--pixel-y)); }
.hero-visual .p3 { transform: translate(var(--pixel-x), var(--pixel-y-reverse)); }
.hero-visual .p4 { width: 8px; height: 8px; right: 32px; bottom: 72px; opacity: .58; transform: translate(var(--pixel-x-reverse), var(--pixel-y-reverse)); }
.hero-visual .p5 { width: 6px; height: 6px; left: 48px; top: 84px; opacity: .36; transform: translate(var(--pixel-x), var(--pixel-y)); }
.hero-visual.is-assembling .p1 { animation: hero-pixel-assemble 720ms var(--motion-ease) 40ms both; }
.hero-visual.is-assembling .p2 { animation: hero-pixel-assemble 760ms var(--motion-ease) 110ms both; }
.hero-visual.is-assembling .p3 { animation: hero-pixel-assemble 700ms var(--motion-ease) 170ms both; }
.hero-visual.is-assembling .p4 { animation: hero-pixel-assemble 660ms var(--motion-ease) 220ms both; }
.hero-visual.is-assembling .p5 { animation: hero-pixel-assemble 620ms var(--motion-ease) 280ms both; }
.hero-note {
  position: absolute;
  z-index: 5;
  right: -7px;
  bottom: 0;
  max-width: 176px;
  padding: 12px 15px;
  border-radius: 10px;
  background: #fffdfa;
  color: #39413f;
  font-size: 13px;
  font-weight: 680;
  line-height: 1.35;
  letter-spacing: -.015em;
  box-shadow: 0 0 0 1px rgba(0,0,0,.055), 0 12px 32px rgba(33,39,37,.13);
}
@keyframes hero-pixel-assemble {
  0% { opacity: 0; transform: translate(18px, -14px) scale(.7); }
  58% { opacity: 1; }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes hero-blocks-assemble {
  0% { opacity: 0; transform: translateX(-26px) scale(.7); }
  24% { opacity: .82; }
  72% { opacity: .55; transform: translateX(5px) scale(1); }
  100% { opacity: 0; transform: translateX(0) scale(.9); }
}

/* Uploader: a quiet technical grid whose blocks collect on drag. */
.dropzone {
  overflow: hidden;
  isolation: isolate;
  transition-property: transform, background-color, box-shadow;
  transition-duration: 190ms;
  transition-timing-function: var(--motion-ease);
}
.dropzone::after {
  transition-property: border-color, opacity;
  transition-duration: 180ms;
  transition-timing-function: var(--motion-ease);
}
.dropzone:hover::after, .dropzone:focus-within::after, .dropzone.is-dragging::after {
  border-color: rgba(23,122,118,.72);
}
.drop-grid {
  position: absolute;
  z-index: -1;
  inset: 16px;
  border-radius: 13px;
  opacity: .48;
  background-image:
    linear-gradient(rgba(23,122,118,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23,122,118,.045) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(circle at center, #000 5%, transparent 72%);
  mask-image: radial-gradient(circle at center, #000 5%, transparent 72%);
  transition-property: opacity, background-size;
  transition-duration: 190ms;
  transition-timing-function: var(--motion-ease);
}
.dropzone:hover .drop-grid { opacity: .72; background-size: 27px 27px; }
.dropzone.is-dragging .drop-grid { opacity: .9; background-size: 24px 24px; }
.drop-grid i {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 1px;
  background: rgba(23,122,118,.34);
  transition-property: left, top, transform, opacity;
  transition-duration: 650ms;
  transition-timing-function: var(--motion-ease);
}
.drop-grid i:nth-child(1) { left: 10%; top: 22%; }
.drop-grid i:nth-child(2) { left: 19%; top: 70%; width: 6px; height: 6px; }
.drop-grid i:nth-child(3) { left: 78%; top: 20%; width: 12px; height: 12px; }
.drop-grid i:nth-child(4) { left: 87%; top: 68%; }
.drop-grid i:nth-child(5) { left: 31%; top: 42%; width: 5px; height: 5px; opacity: .55; }
.drop-grid i:nth-child(6) { left: 68%; top: 54%; width: 7px; height: 7px; opacity: .6; }
.dropzone:hover .drop-grid i:nth-child(odd) { transform: translate(2px, -2px); }
.dropzone:hover .drop-grid i:nth-child(even) { transform: translate(-2px, 2px); }
.dropzone.is-dragging .drop-grid i:nth-child(1) { left: 46%; top: 45%; transform: translate(-18px, -8px); }
.dropzone.is-dragging .drop-grid i:nth-child(2) { left: 48%; top: 48%; transform: translate(-8px, 12px); }
.dropzone.is-dragging .drop-grid i:nth-child(3) { left: 51%; top: 45%; transform: translate(12px, -10px); }
.dropzone.is-dragging .drop-grid i:nth-child(4) { left: 53%; top: 50%; transform: translate(18px, 8px); }
.dropzone.is-dragging .drop-grid i:nth-child(5) { left: 49%; top: 46%; transform: translate(-3px, -14px); opacity: .9; }
.dropzone.is-dragging .drop-grid i:nth-child(6) { left: 51%; top: 49%; transform: translate(8px, 5px); opacity: .9; }
.dropzone.is-dragging .drop-copy h2::after { content: none; }
.drop-icon, .drop-copy, .drop-actions, .drop-limit { z-index: 2; }
.drop-icon {
  transition-property: transform, background-color, box-shadow;
  transition-duration: 180ms;
  transition-timing-function: var(--motion-ease);
}
.dropzone:hover .drop-icon { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(23,122,118,.1); }
.dropzone.is-dragging .drop-icon { transform: scale(.96); background: #d7ebe8; }
.upload-status:empty { display: none; }

/* Photography remains the primary interaction. */
.ba-stage img {
  transition-property: transform;
  transition-duration: 200ms;
  transition-timing-function: var(--motion-ease);
}
.ba-stage:hover img { transform: scale(1.012); }
.ba-stage .ba-after-wrap, .ba-stage .ba-divider {
  transition-property: clip-path, left, width, box-shadow;
  transition-duration: 90ms;
  transition-timing-function: linear;
}
.ba-stage:hover .ba-divider { width: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.16), 0 0 18px rgba(255,255,255,.34); }
.example-card { margin: 0; }
.example-card figcaption { font-size: 14px; }

/* One connected recovery flow instead of three SaaS cards. */
#how { padding-bottom: 64px; }
.steps-grid { position: relative; gap: 0; }
.steps-grid::before {
  content: "";
  position: absolute;
  left: 7%;
  right: 7%;
  top: 79px;
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(23,122,118,.32) 0 7px, transparent 7px 13px);
}
.steps-grid li {
  min-height: 230px;
  padding: 8px 48px 0 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.steps-grid li + li { padding-left: 48px; }
.steps-grid li:not(:last-child)::after {
  content: "→";
  position: absolute;
  z-index: 2;
  right: 16px;
  top: 64px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg-main);
  color: var(--brand);
  font-size: 17px;
}
@media (min-width: 821px) {
  .steps-grid li:last-child::before {
    content: "";
    position: absolute;
    z-index: 1;
    left: 106px;
    right: 0;
    top: 79px;
    height: 3px;
    background: var(--bg-main);
  }
}
.steps-grid i {
  z-index: 2;
  margin: 24px 0 22px;
  box-shadow: 0 0 0 8px var(--bg-main);
  transition-property: transform, box-shadow, background-color;
  transition-duration: 180ms;
  transition-timing-function: var(--motion-ease);
}
.steps-grid li:hover i { transform: translateY(-2px); background: #d7ebe8; box-shadow: 0 0 0 8px var(--bg-main), 0 12px 24px rgba(23,122,118,.1); }
.steps-grid h3 { font-size: 25px; }
.steps-grid p { max-width: 310px; font-size: 15px; }

/* Dark bridge between the landing and professional viewer. */
.difference {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-inline: -34px;
  padding: 76px 34px;
  border: 0;
  border-radius: 28px;
  background: #11161b;
  color: #f6f7f4;
  box-shadow: 0 28px 80px rgba(17,22,27,.16);
}
.difference::before, .difference::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 9px;
  height: 9px;
  background: rgba(57,174,166,.6);
  box-shadow: 18px 0 rgba(57,174,166,.24), 0 18px rgba(57,174,166,.18), 36px 18px rgba(255,255,255,.08);
}
.difference::before { left: 32px; bottom: 34px; }
.difference::after { right: 54px; top: 34px; transform: rotate(90deg); opacity: .68; }
.difference .eyebrow { color: #61c1ba; }
.difference h2 { color: #f7f8f5; }
.difference-copy > p:last-child { color: #aeb9b5; }
.process-compare { gap: 14px; }
.process-card {
  min-height: 330px;
  padding: 26px;
  background: rgba(255,255,255,.035);
  box-shadow: 0 0 0 1px rgba(255,255,255,.09);
}
.process-card.pixsave {
  background: rgba(23,122,118,.11);
  box-shadow: 0 0 0 1px rgba(67,177,168,.34), 0 18px 46px rgba(0,0,0,.16);
}
.process-card > strong { color: #6bc9c2; font-size: 15px; }
.process-card li { color: #dce2df; font-size: 14px; }
.process-card li:not(:last-child)::after { background: rgba(91,196,188,.34); }
.process-card li::before { background: #4eb2aa; }
.process-card.generation { background: rgba(180,157,130,.055); }
.generation > strong { color: #d0bda8; }
.generation li::before { background: #9a8773; }
.generation p { border-color: rgba(255,255,255,.09); color: #b9aa99; font-size: 12px; }

/* Lighter diagnostic rows and a stronger, still calm trust section. */
.supported-damage { padding-top: 74px; }
.damage-grid { gap: 0 28px; }
.damage-grid li {
  min-height: 128px;
  padding: 22px 4px;
  border-radius: 0;
  background: transparent;
  box-shadow: inset 0 1px rgba(22,25,29,.08);
  transition-property: transform, color, box-shadow;
  transition-duration: 170ms;
  transition-timing-function: var(--motion-ease);
}
.damage-grid li:hover { transform: translateY(-2px); box-shadow: inset 0 1px rgba(23,122,118,.32); }
.damage-grid strong { font-size: 16px; }
.damage-grid p { font-size: 14px; }
.damage-grid li:nth-child(2n) i::before { transform: rotate(90deg); }
.damage-grid li:nth-child(3n) i { border-radius: 50%; }
.limitations {
  margin-bottom: 62px;
  box-shadow: 0 0 0 1px rgba(23,122,118,.07), 0 18px 50px rgba(31,49,44,.045);
}
.limit-mark {
  border-top-color: transparent;
  border-right-color: transparent;
}
.limit-mark::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 4px;
  width: 8px;
  height: 8px;
  background: rgba(23,122,118,.34);
  box-shadow: 13px -12px rgba(23,122,118,.18), 17px 5px rgba(23,122,118,.5);
}
#privacy {
  position: relative;
  overflow: hidden;
  margin-top: 0;
  padding: 70px 42px;
  border: 0;
  border-radius: 28px;
  background: rgba(232,239,235,.76);
  box-shadow: 0 0 0 1px rgba(23,122,118,.055);
}
#privacy::after {
  content: "";
  position: absolute;
  right: 34px;
  top: 28px;
  width: 10px;
  height: 10px;
  background: rgba(23,122,118,.48);
  box-shadow: 16px 0 rgba(23,122,118,.16), 0 16px rgba(23,122,118,.24), -12px 28px rgba(23,122,118,.1);
}
.privacy-grid { gap: 14px; }
.privacy-grid li {
  min-height: 184px;
  padding: 29px;
  border-radius: 18px;
  background: rgba(251,251,248,.88);
  box-shadow: 0 0 0 1px rgba(0,0,0,.045), 0 10px 30px rgba(33,45,41,.035);
  transition-property: transform, box-shadow, background-color;
  transition-duration: 180ms;
  transition-timing-function: var(--motion-ease);
}
.privacy-grid li:hover { transform: translateY(-2px); background: #fbfbf8; box-shadow: 0 0 0 1px rgba(23,122,118,.11), 0 16px 38px rgba(33,45,41,.065); }
.privacy-grid strong { font-size: 16px; line-height: 1.35; }
.privacy-grid p { font-size: 14px; }

/* Native accessible details with an animated content track. */
.faq { padding-top: 72px; padding-bottom: 58px; }
.faq-list details::details-content {
  overflow: hidden;
  block-size: 0;
  opacity: 0;
  transition-property: block-size, opacity, content-visibility;
  transition-duration: 220ms;
  transition-timing-function: var(--motion-ease);
  transition-behavior: allow-discrete;
}
.faq-list details[open]::details-content { block-size: auto; opacity: 1; }
.faq-list summary { min-height: 64px; transition-property: color; transition-duration: 170ms; }
.faq-list summary:hover { color: var(--brand); }
.faq-list summary::after {
  content: "";
  background-color: var(--bg-card);
  background-image:
    linear-gradient(currentColor,currentColor),
    linear-gradient(currentColor,currentColor);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 12px 2px, 2px 12px;
  color: var(--text-primary);
  box-shadow: 0 0 0 1px rgba(0,0,0,.045);
  transition-property: background-size, background-color, color;
  transition-duration: 180ms;
  transition-timing-function: var(--motion-ease);
}
.faq-list details[open] summary::after { content: ""; background-size: 12px 2px, 2px 0; color: var(--brand); }
.faq-list details p { font-size: 15px; }

.final-cta {
  margin-top: 22px;
  margin-bottom: 72px;
  padding-block: 70px;
}
.final-cta > span {
  position: absolute;
  left: 38px;
  top: 36px;
  width: 11px;
  height: 11px;
  background: rgba(23,122,118,.55);
  box-shadow: 17px 0 rgba(23,122,118,.18), 0 17px rgba(23,122,118,.27), 34px 17px rgba(23,122,118,.1);
}
.topbar nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition-property: transform;
  transition-duration: 180ms;
  transition-timing-function: var(--motion-ease);
}
.topbar nav a:hover::after, .topbar nav a:focus-visible::after { transform: scaleX(1); }

.site-footer {
  align-items: flex-start;
  padding-block: 38px 46px;
  gap: 50px;
}
.footer-brand { max-width: 290px; }
.footer-brand p { margin: 12px 0 0; line-height: 1.55; }
.site-footer nav { display: grid; grid-template-columns: repeat(2, minmax(150px, 1fr)); gap: 15px 34px; margin-left: auto; }
.site-footer nav a, .footer-link { width: fit-content; color: #48514f; text-decoration: none; font-weight: 620; }
.site-footer button.footer-link { min-width:40px; min-height:40px; padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; cursor:pointer; }
.topbar nav a, .site-footer nav a { position:relative; display: flex; align-items: center; min-width: 40px; min-height: 40px; }
.site-footer nav a:focus-visible, .site-footer .footer-link:focus-visible { outline:2px solid var(--brand); outline-offset:4px; border-radius:2px; }
.footer-link.is-disabled { color: var(--text-muted); cursor: default; }
.footer-link small { margin-left: 5px; color: var(--brand); font-size: 9px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.footer-meta { align-self: flex-end; white-space: nowrap; }

/* One-time, section-level reveal rather than decorative perpetual motion. */
.motion-ready .reveal-item {
  opacity: 0;
  transform: translateY(12px);
  filter: blur(4px);
}
.motion-ready .reveal-item.is-revealed {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition-property: opacity, transform, filter;
  transition-duration: 420ms;
  transition-delay: var(--reveal-delay, 0ms);
  transition-timing-function: var(--motion-ease);
}

/* The same language continues after upload. */
.file-card, .summary-card, .preflight-panel, .queue-strip {
  transition-property: transform, box-shadow, background-color;
  transition-duration: 180ms;
  transition-timing-function: var(--motion-ease);
}
.file-card:hover { box-shadow: 0 0 0 1px rgba(0,0,0,.075), 0 18px 42px rgba(25,34,31,.09); }
.file-card:hover .thumb { transform: scale(1.018); }
.thumb { transition-property: transform, opacity, filter; transition-duration: 190ms; transition-timing-function: var(--motion-ease); }
.file-card[data-result="processing"] .thumb-pair::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0 auto 0 -35%;
  width: 32%;
  background: linear-gradient(90deg, transparent, rgba(228,241,239,.42), transparent);
  animation: repair-sweep 1800ms var(--motion-ease) infinite;
  pointer-events: none;
}
@keyframes repair-sweep { to { transform: translateX(440%); } }
.viewer-divider { transition-property: box-shadow; transition-duration: 90ms; transition-timing-function: linear; }
.viewer-compare-range:active + .viewer-divider, .image-stage:hover .viewer-divider { box-shadow: 0 0 0 1px rgba(0,0,0,.24), 0 0 20px rgba(255,255,255,.2); }
.image-stage.is-comparing { cursor: ew-resize; }

@media (min-width: 1025px) {
  .intro { grid-template-columns: minmax(0,1fr) 420px; gap: 42px; }
  .intro h1 { font-size: 64px; }
  .hero-visual { transform: scale(1.12); transform-origin: right center; }
}
@media (max-width: 1024px) {
  .difference { margin-inline: 0; padding-inline: 30px; }
  #privacy { padding-inline: 30px; }
  .site-footer { flex-wrap: wrap; }
  .site-footer nav { order: 3; width: 100%; margin-left: 0; }
  .footer-meta { margin-left: auto; }
}
@media (max-width: 820px) {
  #how { padding-bottom: 50px; }
  .steps-grid::before { left: 29px; right: auto; top: 61px; bottom: 42px; width: 1px; height: auto; background: repeating-linear-gradient(0deg, rgba(23,122,118,.32) 0 7px, transparent 7px 13px); }
  .steps-grid li, .steps-grid li + li { min-height: 160px; padding: 4px 0 34px 84px; }
  .steps-grid li i { position: absolute; left: 0; top: 28px; margin: 0; }
  .steps-grid li:not(:last-child)::after { content: "↓"; left: 16px; right: auto; top: 116px; }
  .steps-grid h3 { margin-top: 18px; }
  .difference { padding-block: 62px; }
  .process-card { min-height: 0; }
  #privacy { padding-block: 58px; }
  .privacy-grid li { min-height: 0; }
}
@media (max-width: 680px) {
  .marketing-section { padding-block: 62px; }
  .featured .ba-stage { width: 100%; height: auto; }
  .drop-grid { inset: 10px; }
  .difference { margin-inline: 0; padding: 54px 20px; border-radius: 22px; }
  .supported-damage { padding-top: 58px; }
  .limitations { margin-bottom: 48px; }
  #privacy { padding: 52px 18px; border-radius: 22px; }
  .privacy-grid li { padding: 23px; }
  .faq { padding-top: 58px; padding-bottom: 44px; }
  .faq-list summary { padding-right: 48px; }
  .final-cta { margin-top: 10px; margin-bottom: 56px; padding: 60px 20px; }
  .site-footer { display: grid; gap: 28px; padding: 30px 16px 40px; }
  .site-footer nav { grid-template-columns: 1fr; gap: 16px; }
  .footer-meta { margin-left: 0; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  .motion-ready .reveal-item, .motion-ready .reveal-item.is-revealed { opacity: 1; transform: none; filter: none; }
  .hero-visual .pixel, .hero-image::after, .drop-grid i { animation: none !important; transform: none !important; }
  .file-card[data-result="processing"] .thumb-pair::after { animation: none !important; opacity: 0; }
  .ba-stage:hover img, .hero-visual:hover .hero-image { transform: none; }
}

/* Product-only support and explicit result feedback hooks. */
.result-feedback {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
}
.result-feedback > span { margin-right: 3px; color: #c0c8d4; font-size: 13px; }
.result-feedback button {
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  color: #e7ebf1;
  background: rgba(255,255,255,.09);
  box-shadow: 0 0 0 1px rgba(255,255,255,.09);
  cursor: pointer;
  transition-property: background-color, box-shadow, scale;
  transition-duration: 150ms;
  transition-timing-function: var(--motion-ease);
}
.result-feedback button:active { scale: .96; }
.result-feedback button.is-active { color: #fff; background: var(--brand); }
.result-feedback select {
  min-height: 40px;
  max-width: 280px;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px;
  color: #eef2f5;
  background: #202831;
}
.support-dialog {
  width: min(620px, calc(100vw - 28px));
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 22px;
  color: var(--text-primary);
  background: var(--bg-elevated);
  box-shadow: 0 28px 90px rgba(0,0,0,.3);
}
.support-dialog::backdrop { background: rgba(12,17,26,.66); backdrop-filter: blur(6px); }
.new-batch-dialog {
  width: min(500px, calc(100vw - 28px)); max-width: none; padding: 0; border: 0;
  border-radius: 22px; color: var(--text-primary); background: var(--bg-elevated);
  box-shadow: 0 28px 90px rgba(0,0,0,.3);
}
.new-batch-dialog::backdrop { background: rgba(12,17,26,.66); backdrop-filter: blur(6px); }
.new-batch-card { display: grid; gap: 18px; padding: 25px; }
.new-batch-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.new-batch-card header .icon-button { color: var(--text-primary); background: var(--brand-soft); }
.new-batch-card > p { margin: 0; color: var(--text-secondary); font-size: 15px; line-height: 1.55; }
.new-batch-actions { display: flex; justify-content: flex-end; gap: 8px; }
.new-batch-actions button { min-height: 44px; }
.support-card { display: grid; gap: 17px; padding: 25px; }
.support-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.support-card header > div > p:last-child { margin-top: 7px; color: var(--text-secondary); font-size: 14px; }
.support-card .icon-button { color: var(--text-primary); background: var(--brand-soft); }
.support-card label { display: grid; gap: 7px; color: var(--text-secondary); font-size: 13px; font-weight: 700; }
.support-card input, .support-card select, .support-card textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(22,25,29,.16);
  border-radius: 10px;
  color: var(--text-primary);
  background: #fff;
}
.support-card textarea { resize: vertical; }
.support-card input:focus, .support-card select:focus, .support-card textarea:focus {
  outline: 3px solid rgba(23,122,118,.15);
  border-color: var(--brand);
}
.support-card .support-consent{grid-template-columns:22px 1fr;align-items:start;gap:11px;padding:13px 14px;border-radius:14px;background:var(--brand-soft);color:var(--text-secondary);font-size:12px;font-weight:560;line-height:1.55;text-wrap:pretty}.support-card .support-consent input{width:20px;min-height:20px;height:20px;margin:1px 0 0;accent-color:var(--brand)}.support-card .support-consent a{color:var(--brand);font-weight:720;text-underline-offset:2px}
.support-job-reference { color: var(--text-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.support-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 3px; }
@media (max-width: 680px) {
  .support-dialog { width: 100vw; height: 100dvh; border-radius: 0; }
  .support-card { padding: 20px 16px; }
  .support-actions button { flex: 1; }
  .result-feedback select { width: 100%; max-width: none; }
  .new-batch-dialog { max-height: calc(100dvh - 24px); }
  .new-batch-card { padding: 22px 18px 18px; }
  .new-batch-actions { display: grid; grid-template-columns: 1fr; }
  .new-batch-actions .primary-button { grid-row: 1; }
}

/* PixSave icon system: one 24px grid, one stroke weight, one teal hierarchy. */
.ps-icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}
.ps-icon {
  display: block;
  width: 24px;
  height: 24px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.ps-icon .ps-soft { opacity: .42; }
.ps-icon .ps-fill { fill: currentColor; stroke: none; opacity: .16; }
.ps-icon .ps-soft-fill { fill: currentColor; stroke: none; opacity: .34; }
.ps-icon .ps-pixel { fill: currentColor; stroke: none; }
.ps-icon-shell {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  color: var(--brand);
  background: var(--brand-soft);
  box-shadow: inset 0 0 0 1px rgba(23,122,118,.075);
  transition-property: transform, color, background-color, box-shadow;
  transition-duration: 170ms;
  transition-timing-function: var(--motion-ease);
}
.ps-icon-shell .ps-icon {
  transition-property: transform, opacity;
  transition-duration: 170ms;
  transition-timing-function: var(--motion-ease);
}
.ps-icon-shell.has-pixel::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 4px;
  width: 4px;
  height: 4px;
  border-radius: 1px;
  background: rgba(23,122,118,.5);
  transition-property: transform, opacity;
  transition-duration: 170ms;
  transition-timing-function: var(--motion-ease);
}

.hero-trust { gap: 14px 22px; }
.hero-trust li { position: relative; gap: 10px; }
.hero-trust li::before, .hero-trust li::after { display: none; }
.benefit-icon { width: 40px; height: 40px; border-radius: 12px; }
.benefit-icon .ps-icon { width: 22px; height: 22px; }
.hero-trust li:hover .benefit-icon {
  transform: translateY(-2px);
  background: #dcecea;
  box-shadow: inset 0 0 0 1px rgba(23,122,118,.12), 0 8px 18px rgba(23,122,118,.08);
}
.hero-trust li:hover .benefit-icon .ps-icon { transform: translateY(-1px); }
.hero-trust li:hover .benefit-icon.has-pixel::after { transform: translate(-2px,2px); opacity: .75; }

.drop-icon .ps-icon { width: 28px; height: 28px; }

.steps-grid .step-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 32px 0 24px;
  border-radius: 18px;
}
.steps-grid li:hover .step-icon {
  transform: translateY(-2px);
  background: #d7ebe8;
  box-shadow: 0 0 0 8px var(--bg-main), 0 12px 24px rgba(23,122,118,.1);
}
.steps-grid li:hover .step-icon .ps-icon { transform: translateY(-1px); }
.steps-grid .step-icon .ps-icon { width: 28px; height: 28px; }
.steps-grid li:hover .step-icon.has-pixel::after { transform: translate(-2px,2px); }

.process-card > strong {
  display: flex;
  align-items: center;
  gap: 10px;
}
.process-card > strong .ps-icon {
  width: 22px;
  height: 22px;
  color: #6bc9c2;
  stroke-width: 1.65;
}
.process-card.generation > strong .ps-icon { color: #b9aa99; }

.damage-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}
.damage-icon .ps-icon { width: 23px; height: 23px; }
.damage-grid li:hover .damage-icon {
  transform: translateY(-2px);
  background: #dcecea;
  box-shadow: inset 0 0 0 1px rgba(23,122,118,.12);
}
.damage-grid li:hover .damage-icon .ps-icon { transform: scale(1.025); }
.damage-grid li:hover .damage-icon.has-pixel::after { transform: translate(-2px,2px); }

.limitation-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(251,251,248,.72);
  box-shadow: inset 0 0 0 1px rgba(23,122,118,.12), 0 10px 24px rgba(23,122,118,.065);
}
.limitation-icon .ps-icon { width: 36px; height: 36px; }
.limitation-icon.has-pixel::after { right: 7px; top: 7px; width: 5px; height: 5px; }
.motion-ready .limitation-icon.reveal-item.is-revealed .ps-icon {
  animation: ps-icon-assemble 620ms var(--motion-ease) both;
}
@keyframes ps-icon-assemble {
  0% { opacity: .25; transform: translate(3px,-2px) scale(.94); }
  62% { opacity: 1; transform: translate(-1px,1px) scale(1.015); }
  100% { opacity: 1; transform: translate(0,0) scale(1); }
}

.privacy-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
}
.privacy-icon .ps-icon { width: 24px; height: 24px; }
.privacy-grid li:hover .privacy-icon {
  transform: translateY(-2px);
  background: #d9ebe8;
  box-shadow: inset 0 0 0 1px rgba(23,122,118,.12);
}
.privacy-grid li:hover .privacy-icon .ps-icon { transform: scale(1.025); }

.footer-link small {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 2px 6px;
  border-radius: 6px;
  color: #7f8784;
  background: rgba(22,25,29,.045);
  box-shadow: inset 0 0 0 1px rgba(22,25,29,.045);
  font-size: 8px;
  letter-spacing: .055em;
}

@media (max-width: 820px) {
  .steps-grid li .step-icon { position: absolute; left: 0; top: 28px; margin: 0; }
}

@media (max-width: 680px) {
  .hero-trust li { min-height: 44px; }
  .damage-icon { width: 40px; height: 40px; }
  .privacy-icon { width: 42px; height: 42px; }
  .limitations .limitation-icon { width: 58px; height: 58px; }
  .limitations .limitation-icon .ps-icon { width: 32px; height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .ps-icon-shell, .ps-icon-shell .ps-icon, .ps-icon-shell.has-pixel::after { transition-duration: 0ms; }
  .motion-ready .limitation-icon.reveal-item.is-revealed .ps-icon { animation: none; }
}

/* PixSave commercial polish: shared geometry, quieter surfaces and measured rhythm. */
:root {
  --page-max: 1184px;
  --page-gutter: clamp(16px, 2.2vw, 28px);
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 72px;
  --space-8: 96px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --surface-line: rgba(22,25,29,.085);
  --shadow-low: 0 1px 2px rgba(22,25,29,.04), 0 8px 22px rgba(22,25,29,.035);
  --shadow-raised: 0 22px 56px rgba(31,43,40,.11), 0 0 0 1px rgba(22,25,29,.075);
}

body { background: var(--bg-main); }
.shell {
  width: min(100%, 1240px);
  max-width: none;
  padding-inline: var(--page-gutter);
  padding-bottom: var(--space-7);
}
.topbar { padding-inline: max(var(--page-gutter), calc((100vw - var(--page-max)) / 2)); }
.site-footer { width: min(calc(100% - (2 * var(--page-gutter))), var(--page-max)); max-width: none; padding-inline: 0; }
.marketing-section { padding-block: 88px; }
.section-heading { margin-bottom: var(--space-6); }
.section-heading > p { max-width: 430px; }

/* Lucide glyphs share one optical grid. Brand and decorative pixel marks stay custom. */
.ps-icon {
  width: 24px;
  height: 24px;
  stroke-width: 1.8;
}
.ps-icon-shell {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #e2efed;
  box-shadow: inset 0 0 0 1px rgba(23,122,118,.075);
}
.benefit-icon, .damage-icon, .privacy-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}
.benefit-icon .ps-icon, .damage-icon .ps-icon, .privacy-icon .ps-icon { width: 23px; height: 23px; }
.limitation-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
}
.icon-button .ps-icon { width: 20px; height: 20px; stroke-width: 1.9; }
.viewer-divider .ps-icon, .ba-divider .ps-icon { width: 18px; height: 18px; stroke-width: 1.9; }

/* Hero image reads as one before/after object, not a tilted mockup with a sticker. */
.hero-visual {
  width: min(100%, 506px);
  padding: 28px 18px 44px;
}
.hero-visual::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 12px 2px 28px 12px;
  border-radius: var(--radius-xl);
  background: rgba(228,235,230,.72);
  box-shadow: inset 0 0 0 1px rgba(23,122,118,.045);
}
.hero-image {
  border-radius: 16px;
  background: #d7ded8;
  box-shadow: var(--shadow-raised);
  transform: rotate(.45deg);
}
.hero-visual:hover .hero-image { transform: rotate(0) scale(1.01); box-shadow: 0 26px 64px rgba(31,43,40,.15), 0 0 0 1px rgba(22,25,29,.08); }
.hero-image img:first-child { clip-path: inset(0 50% 0 0); }
.hero-image img:nth-child(2) { clip-path: inset(0 0 0 50%); }
.hero-image .hero-divider {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 0 0 1px rgba(0,0,0,.12);
}
.hero-divider .ps-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  box-sizing: content-box;
  padding: 8px;
  border-radius: 50%;
  color: var(--brand);
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.2);
  transform: translate(-50%,-50%);
}
.hero-image .hero-side-label {
  z-index: 6;
  top: auto;
  bottom: 12px;
  width: auto;
  padding: 6px 9px;
  border-radius: 7px;
  color: #fff;
  background: rgba(17,22,27,.76);
  box-shadow: none;
  font-size: 11px;
  font-weight: 720;
  line-height: 1;
}
.hero-image .hero-side-label-before { left: 12px; right: auto; }
.hero-image .hero-side-label-after { left: auto; right: 12px; }
.hero-note {
  right: 28px;
  bottom: 0;
  max-width: 210px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: #f9faf6;
  color: #39413f;
  box-shadow: var(--shadow-low), inset 3px 0 var(--brand);
}
.hero-visual .p1 { left: 2px; top: 18px; }
.hero-visual .p2 { right: -1px; top: 78px; }
.hero-visual .p3 { left: 20px; bottom: 50px; }

/* The uploader stays the primary action, with a quiet lab-grid rather than a SaaS panel. */
.dropzone {
  min-height: 270px;
  margin-bottom: var(--space-3);
  padding: 42px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-low), inset 0 0 0 1px rgba(23,122,118,.1);
}
.dropzone::after { inset: 1px; border-radius: calc(var(--radius-lg) - 1px); border-color: rgba(23,122,118,.34); }
.drop-grid {
  inset: var(--space-3);
  border-radius: calc(var(--radius-lg) - var(--space-1));
}
.drop-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(23,122,118,.08);
}
.drop-icon .ps-icon { width: 29px; height: 29px; }
.drop-copy h2 { font-size: 25px; }
.drop-actions { margin-top: 2px; }
.drop-limit { margin-top: 2px; }

/* Related sections sit closer; major conceptual transitions keep more air. */
.examples { padding-top: 92px; padding-bottom: 82px; }
#how { padding-top: 78px; padding-bottom: 62px; }
.difference { padding: 72px 34px; border-radius: var(--radius-xl); box-shadow: 0 24px 64px rgba(17,22,27,.14); }
.supported-damage { padding-top: 78px; padding-bottom: 50px; }
.limitations {
  margin: 18px 0 50px;
  padding: 38px;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px rgba(23,122,118,.065);
}
#privacy {
  padding: 64px 38px 58px;
  border-radius: 24px;
  box-shadow: inset 0 0 0 1px rgba(23,122,118,.055);
}
.faq { padding-top: 78px; padding-bottom: 54px; }
.final-cta { margin-top: 14px; margin-bottom: 68px; padding-block: 64px; border-radius: 24px; }

/* Feature rows and privacy principles are content, not dashboard widgets. */
.damage-grid li { min-height: 122px; padding: 22px 4px; }
.damage-grid li:nth-child(3n) .damage-icon { border-radius: 12px; }
.privacy-grid {
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 0;
  margin-top: 4px;
}
.privacy-grid li {
  min-height: 150px;
  padding: 24px 28px 10px 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.privacy-grid li + li {
  padding-left: 28px;
  border-left: 1px solid rgba(23,122,118,.13);
}
.privacy-grid li:hover {
  transform: none;
  background: transparent;
  box-shadow: none;
}
.privacy-grid li:hover .privacy-icon { transform: translateY(-2px); }
.privacy-grid strong { font-size: 16px; }
.privacy-grid p { font-size: 14px; }

.steps-grid::before { background: rgba(23,122,118,.22); }
.steps-grid .step-icon { width: 58px; height: 58px; border-radius: 17px; }
.steps-grid .step-icon .ps-icon { width: 28px; height: 28px; }
.ba-divider span { box-shadow: 0 5px 18px rgba(0,0,0,.18); }

@media (max-width: 1024px) {
  .marketing-section { padding-block: 78px; }
  .intro { grid-template-columns: minmax(0,1fr) 390px; gap: var(--space-5); }
  .hero-visual { padding-inline: 12px; }
  .privacy-grid li { padding-right: 20px; }
  .privacy-grid li + li { padding-left: 20px; }
}

@media (max-width: 820px) {
  .marketing-section { padding-block: var(--space-7); }
  .intro { grid-template-columns: 1fr; gap: var(--space-4); }
  .hero-visual { width: min(88vw, 540px); margin-top: var(--space-2); justify-self: center; }
  .steps-grid::before { left: 29px; right: auto; top: 54px; bottom: 32px; width: 1px; height: auto; }
  .privacy-grid { grid-template-columns: 1fr; }
  .privacy-grid li { min-height: 0; padding: 24px 0; }
  .privacy-grid li + li { padding-left: 0; border-left: 0; border-top: 1px solid rgba(23,122,118,.13); }
  #privacy { padding: 56px 32px 30px; }
}

@media (max-width: 680px) {
  .shell { padding-inline: var(--page-gutter); padding-bottom: var(--space-6); }
  .marketing-section { padding-block: 62px; }
  .intro { padding: 48px 2px 38px; gap: 20px; }
  .intro h1 { font-size: clamp(40px, 11.2vw, 48px); }
  .hero-trust { gap: 10px; }
  .limitations .limitation-icon { width: 58px; height: 58px; }
  .hero-visual {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 20px 10px 38px;
  }
  .hero-visual::before { inset: 8px 0 24px 5px; border-radius: 22px; }
  .hero-image { border-radius: var(--radius-md); }
  .hero-note { right: 18px; padding: 9px 12px; font-size: 12px; }
  .hero-visual .p1 { left: -1px; top: 11px; width: 13px; height: 13px; }
  .hero-visual .p2 { right: -2px; top: 60px; width: 8px; height: 8px; }
  .hero-visual .p3 { left: 14px; bottom: 40px; width: 10px; height: 10px; }
  .dropzone { min-height: 318px; padding: 34px 20px; }
  .section-heading { margin-bottom: var(--space-5); }
  .examples { padding-top: 68px; padding-bottom: 58px; }
  #how { padding-top: 62px; padding-bottom: 52px; }
  .difference { margin-inline: -4px; padding: 54px 22px; border-radius: 22px; }
  .supported-damage { padding-top: 62px; padding-bottom: 38px; }
  .limitations { margin: 10px 0 38px; padding: 28px 24px; }
  #privacy { padding: 48px 22px 24px; border-radius: 20px; }
  .faq { padding-top: 62px; padding-bottom: 44px; }
  .final-cta { margin-top: 8px; margin-bottom: 52px; padding: 54px 20px; border-radius: 20px; }
  .site-footer { width: calc(100% - (2 * var(--page-gutter))); padding-inline: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual:hover .hero-image,
  .privacy-grid li:hover .privacy-icon { transform: none; }
}

/* Keep result-workspace layout authoritative after the landing-page cascade. */
.workspace .summary-row { grid-template-columns: 1.2fr repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) {
  .workspace .summary-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .workspace .summary-total { grid-row: span 2; }
}
@media (max-width: 680px) {
  .workspace .summary-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workspace .summary-total { grid-column: 1 / -1; grid-row: auto; }
  .workspace .workspace-heading-actions { flex-wrap: wrap; max-width: 100%; }
  .workspace .workspace-heading-actions button { flex: 1 1 130px; min-width: 0; }
  .bulk-bar .bulk-actions { grid-template-columns: 1fr; }
}
@media (max-width: 410px) {
  .workspace .file-card { grid-template-columns: 96px minmax(0, 1fr); }
  .workspace .thumb-pair { width: 96px; }
}

/* Final result-flow polish: compact review controls and explicit trust states. */
@media (min-width: 821px) {
  .hero-trust { display: grid; grid-template-columns: repeat(3, max-content); gap: 12px; align-items: center; }
  .hero-trust li { gap: 7px; white-space: nowrap; font-size: 12px; }
  .hero-trust .benefit-icon { width: 36px; height: 36px; }
  .hero-trust .benefit-icon .ps-icon { width: 20px; height: 20px; }
}
.batch-timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.batch-timeline li {
  position: relative; display: grid; grid-template-rows: 32px auto;
  min-width: 0; justify-items: center; gap: 6px; text-align: center;
}
.batch-timeline li:not(:last-child)::after {
  position: absolute; z-index: 0; left: calc(50% + 16px); right: calc(-50% + 16px);
  top: 16px; min-width: 0; height: 2px; margin: 0;
}
.batch-timeline li:last-child::after { content: none; }
.batch-timeline li > span { position: absolute; left: 50%; top: 0; translate: -50% 0; }
.batch-timeline li > div { grid-row: 2; }
.queue-toolbar { min-width: 0; gap: 12px; }
.filters {
  min-width: 0; flex: 1 1 auto; flex-wrap: nowrap; overflow-x: visible;
  gap: 2px; padding: 2px 1px;
}
.filter { flex: 0 0 auto; padding-inline: 10px; gap: 5px; white-space: nowrap; }
.is-terminal .queue-actions { display: none; }
.is-terminal .workspace-heading { margin-bottom: 14px; }
.is-terminal .batch-timeline { margin-bottom: 12px; padding-block: 12px; }
.is-terminal .summary-card { min-height: 72px; padding-block: 12px; }
.is-terminal .queue-toolbar { margin-top: 14px; }
.is-terminal .bulk-bar { min-height: 56px; margin-top: 10px; }
.review-progress {
  display: grid; grid-template-columns: minmax(210px, auto) minmax(140px, 1fr);
  align-items: center; gap: 14px; margin-top: 10px; padding: 10px 14px;
  border-radius: 12px; background: rgba(245,241,231,.72);
  box-shadow: inset 0 0 0 1px rgba(137,104,33,.09);
}
.review-progress > div { display: flex; align-items: baseline; gap: 10px; }
.review-progress span { color: var(--text-muted); font-size: 12px; }
.review-progress strong { color: #65501e; font-size: 13px; font-variant-numeric: tabular-nums; }
.review-progress progress { width: 100%; height: 6px; accent-color: var(--brand); }
.review-progress.is-complete { background: rgba(228,244,239,.78); box-shadow: inset 0 0 0 1px rgba(23,122,118,.11); }
.review-progress.is-complete strong { color: #176f68; }
.embedded-fallback {
  margin-top: 4px; color: #858d99; font-size: 11px; font-weight: 560; line-height: 1.35;
}
.viewer-shell { grid-template-rows: auto auto minmax(0,1fr) 304px; }
.viewer-footer {
  position: relative; box-sizing: border-box; height: 304px; min-height: 304px;
  align-items: flex-start; overflow: visible;
}
.candidate-area { position: relative; flex: 1 1 auto; align-self: stretch; min-width: 0; }
.selection-feedback-slot { height: 132px; min-height: 132px; overflow: hidden; }
.viewer-selection-state {
  width: fit-content; margin-top: 8px; padding: 6px 9px; border-radius: 8px;
  color: #b9eee8; background: rgba(23,122,118,.2); font-size: 13px; font-weight: 760;
}
.selection-feedback-slot .result-feedback { margin-top: 7px; }
.viewer-actions { align-self: flex-end; }
.result-info-button {
  min-height: 40px; margin-top: 2px; padding: 0 12px; border: 0; border-radius: 10px;
  color: #dce4ec; background: rgba(255,255,255,.08);
  box-shadow: 0 0 0 1px rgba(255,255,255,.1);
  font: inherit; font-size: 13px; font-weight: 740; cursor: pointer;
  transition-property: color, background-color, box-shadow, scale;
  transition-duration: 150ms; transition-timing-function: var(--motion-ease);
}
.result-info-button:hover { color: #fff; background: rgba(255,255,255,.13); }
.result-info-button:active { scale: .96; }
.result-info-panel {
  position: absolute; z-index: 12; left: 0; bottom: 44px;
  width: min(620px, calc(100vw - 80px)); max-width: 100%; margin: 0; padding: 16px;
  border-radius: 14px; color: #e9edf2; background: rgba(12,17,22,.98);
  box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 18px 44px rgba(0,0,0,.32);
}
.result-info-panel h3 { margin: 0 0 10px; font-size: 14px; }
.result-info-panel dl { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px 18px; margin: 0; }
.result-info-panel dl div { min-width: 0; }
.result-info-panel dt { color: #929eac; font-size: 11px; }
.result-info-panel dd { margin: 2px 0 0; overflow-wrap: anywhere; font-size: 12px; }
.viewer.is-maximized {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; border-radius: 0;
}
.viewer.is-maximized .viewer-shell { height: 100dvh; }
@media (max-width: 680px) {
  .batch-timeline li {
    display: grid; grid-template-rows: 28px auto; justify-items: center;
    gap: 5px; text-align: center;
  }
  .batch-timeline li:not(:last-child)::after {
    position: absolute; z-index: 0; left: calc(50% + 14px); right: calc(-50% + 14px);
    top: 14px; min-width: 0; margin: 0;
  }
  .batch-timeline li > span { position: absolute; left: 50%; top: 0; translate: -50% 0; }
  .batch-timeline li > div { grid-row: 2; }
  .viewer-shell { grid-template-rows: auto auto minmax(220px,1fr) 400px; }
  .viewer-footer {
    height: 400px; min-height: 400px; max-height: none; overflow: visible;
  }
  .selection-feedback-slot { height: 132px; min-height: 132px; }
  .result-info-panel {
    width: min(340px, calc(100vw - 52px)); max-height: 260px; overflow-y: auto;
  }
  .review-progress { grid-template-columns: 1fr; gap: 8px; }
  .review-progress > div { justify-content: space-between; }
  .result-info-panel dl { grid-template-columns: 1fr; }
}

/* Beta-freeze result workspace: safe placeholders and compact, stable review controls. */
.layout-anchor { display: block; width: 100%; height: 1px; pointer-events: none; }
.workspace .file-list { align-items: start; }
.workspace.has-selection-dock { padding-bottom: 32px; }
.workspace.has-download-selection #result-workspace-end-anchor { height: 100px; }
@media (max-width: 680px) { .workspace.has-selection-dock { padding-bottom: 18px; } }
.status-selected { color: #176f68; background: #e3f3ef; }
.status-selected::before { display: none; }
.result-copy { height: 100px; min-height: 100px; }
.file-card.is-finished .result-copy {
  box-sizing: border-box; display: grid; grid-template-columns: minmax(0,1fr) auto;
  grid-template-rows: auto minmax(40px,auto); align-content: start;
  height: 100px; min-height: 100px;
}
.file-card.is-finished .result-copy > .status-pill { grid-column: 1 / -1; width: fit-content; }
.file-card.is-finished .result-copy > strong { grid-column: 1; align-self: start; }
.file-card.is-finished .card-result-tools { grid-column: 2; align-self: start; }
.file-card.is-finished .embedded-fallback { grid-column: 1 / -1; }
.card-result-tools { display: flex; min-height: 40px; align-items: center; gap: 7px; flex-wrap: wrap; }
.card-result-info-wrap { position: relative; display: inline-flex; }
.card-result-info {
  min-height: 40px; padding: 0 7px; border: 0; border-radius: 8px;
  color: #287b74; background: transparent; box-shadow: none;
  font: inherit; font-size: 12px; font-weight: 720; cursor: pointer;
  transition-property: color, background-color, scale;
  transition-duration: 150ms; transition-timing-function: var(--motion-ease);
}
.card-result-info:hover, .card-result-info[aria-expanded="true"] { color: #135e58; background: #e6f1ee; }
.card-result-info:active { scale: .96; }
.card-result-info-panel {
  --popover-shift-x: 0px;
  position: absolute; z-index: 30; right: auto; left: 0; bottom: calc(100% + 7px);
  width: min(320px, calc(100vw - 48px)); padding: 14px; border-radius: 13px;
  color: #edf2f1; background: rgba(18,27,25,.98);
  box-shadow: 0 0 0 1px rgba(255,255,255,.09), 0 18px 44px rgba(18,27,25,.25);
  max-height: calc(100dvh - 24px); overflow-y: auto;
  transform: translateX(var(--popover-shift-x));
}
.card-result-info-panel.opens-down { top: calc(100% + 7px); bottom: auto; }
.card-result-info-panel h3 { margin: 0 0 10px; font-size: 14px; }
.card-result-info-panel dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 13px; margin: 0; }
.card-result-info-panel dl div { min-width: 0; }
.card-result-info-panel dt { color: #98a7a3; font-size: 10px; }
.card-result-info-panel dd { margin: 2px 0 0; overflow-wrap: anywhere; font-size: 11px; line-height: 1.35; }
@media (min-width: 1025px) {
  .file-card:nth-child(4n) .card-result-info-panel { right: 0; left: auto; }
}
@media (min-width: 681px) and (max-width: 1024px) {
  .file-card:nth-child(3n) .card-result-info-panel { right: 0; left: auto; }
}

.pixel-placeholder {
  position: absolute; inset: 0; overflow: hidden; border-radius: 11px;
  background:
    radial-gradient(circle at 66% 30%, rgba(158,231,208,.3), transparent 44%),
    linear-gradient(145deg, rgba(23,122,118,.07), transparent 58%),
    #e7eeeb;
  outline: 1px solid rgba(0,0,0,.1); outline-offset: -1px;
  isolation: isolate;
}
.pixel-placeholder::before {
  content: ""; position: absolute; inset: 18% 11% 12%; z-index: 0;
  border-radius: 50%; background: rgba(23,122,118,.12); filter: blur(24px); opacity: .55;
}
.pixel-frame {
  position: absolute; left: 50%; top: 50%; z-index: 1; display: block;
  width: min(86%, 192px); height: auto; overflow: visible;
  transform: translate(-50%,-50%); filter: drop-shadow(0 10px 13px rgba(34,58,54,.16));
}
.pixel-photo-outline {
  fill: none; stroke: rgba(0,0,0,.1); stroke-width: 1.5;
}
.pixel-photo-symbol { opacity: .76; transform-origin: 60px 72px; }
.pixel-cutout { opacity: 1; }
.pixel-mask-cells { opacity: 0; }
.pixel-mask-cell {
  fill: #fff; opacity: 0;
}
.pixel-mask-seal {
  fill: #fff; stroke: #fff; stroke-width: 2; stroke-linejoin: round; opacity: 0;
}
.pixel-missing-area {
  fill: rgba(224,247,240,.46); stroke: rgba(23,122,118,.46); stroke-width: 1.2;
  stroke-dasharray: 3 3; stroke-linejoin: round; opacity: .9;
}
.pixel-break-edge {
  fill: none; stroke: rgba(34,58,54,.26); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
  opacity: .8;
}
.pixel-destination {
  fill: rgba(255,255,255,.2); stroke: rgba(23,122,118,.58); stroke-width: 1;
  stroke-dasharray: 2.2 2.2; opacity: .76;
}
.pixel-orbit { pointer-events: none; }
.pixel-block {
  --from-x: 30px; --from-y: 0; --mid-x: 16px; --mid-y: 0; --pixel-delay: 0ms;
  opacity: .4; transform-box: fill-box; transform-origin: center;
  transform: translate(var(--from-x),var(--from-y)) scale(.74);
}
.pixel-block-1 { --from-x: -6px; --from-y: -12px; --mid-x: -2px; --mid-y: -5px; --pixel-delay: 0ms; }
.pixel-block-2 { --from-x: 5px; --from-y: -13px; --mid-x: 3px; --mid-y: -6px; --pixel-delay: 60ms; }
.pixel-block-3 { --from-x: 18px; --from-y: -10px; --mid-x: 9px; --mid-y: -4px; --pixel-delay: 120ms; }
.pixel-block-4 { --from-x: 36px; --from-y: -4px; --mid-x: 14px; --mid-y: -2px; --pixel-delay: 180ms; }
.pixel-block-5 { --from-x: 36px; --from-y: 10px; --mid-x: 16px; --mid-y: 4px; --pixel-delay: 240ms; }
.pixel-block-6 { --from-x: 28px; --from-y: 14px; --mid-x: 13px; --mid-y: 7px; --pixel-delay: 300ms; }
.pixel-block-7 { --from-x: 18px; --from-y: 18px; --mid-x: 9px; --mid-y: 9px; --pixel-delay: 360ms; }
.pixel-destination-1, .pixel-mask-cell-1 { --pixel-delay: 0ms; }
.pixel-destination-2, .pixel-mask-cell-2 { --pixel-delay: 60ms; }
.pixel-destination-3, .pixel-mask-cell-3 { --pixel-delay: 120ms; }
.pixel-destination-4, .pixel-mask-cell-4 { --pixel-delay: 180ms; }
.pixel-destination-5, .pixel-mask-cell-5 { --pixel-delay: 240ms; }
.pixel-destination-6, .pixel-mask-cell-6 { --pixel-delay: 300ms; }
.pixel-destination-7, .pixel-mask-cell-7 { --pixel-delay: 360ms; }
.pixel-restored-glow {
  fill: none; stroke: rgba(202,255,238,.9); stroke-width: 2.2; stroke-linejoin: round;
  opacity: 0; filter: drop-shadow(0 0 5px rgba(87,211,184,.7)); pointer-events: none;
}
.pixel-placeholder.is-processing {
  background:
    radial-gradient(circle at 66% 30%, rgba(158,231,208,.42), transparent 46%),
    linear-gradient(145deg, rgba(23,122,118,.1), transparent 60%),
    #e7eeeb;
}
.pixel-placeholder.is-animated .pixel-missing-area,
.pixel-placeholder.is-animated .pixel-break-edge {
  animation: processing-corner-repair 5200ms var(--motion-ease) infinite;
}
.pixel-placeholder.is-animated .pixel-destination {
  animation: processing-target-claim 5200ms var(--motion-ease) infinite both;
  animation-delay: var(--pixel-delay);
}
.pixel-placeholder.is-animated .pixel-block {
  animation: processing-pixel-return 5200ms var(--motion-ease) infinite both;
  animation-delay: var(--pixel-delay);
}
.pixel-placeholder.is-animated .pixel-mask-cells {
  animation: processing-mask-window 5200ms var(--motion-ease) infinite;
}
.pixel-placeholder.is-animated .pixel-mask-cell {
  animation: processing-mask-cell 5200ms var(--motion-ease) infinite both;
  animation-delay: var(--pixel-delay);
}
.pixel-placeholder.is-animated .pixel-mask-seal {
  animation: processing-mask-seal 5200ms var(--motion-ease) infinite;
}
.pixel-placeholder.is-animated .pixel-restored-glow {
  animation: processing-restored-glow 5200ms var(--motion-ease) infinite;
}
.pixel-placeholder.is-waiting .pixel-photo-body { animation: queued-photo-breathe 4000ms ease-in-out infinite; }
.pixel-placeholder.is-waiting .pixel-block { opacity: .28; }
.file-card[data-result="processing"] .thumb-pair::after { content: none; }
.file-card[data-result="processing"] .status-processing::before { animation: none; }
@keyframes processing-pixel-return {
  0%, 9% { opacity: 0; filter: drop-shadow(0 0 4px rgba(87,211,184,.58)); transform: translate(var(--from-x),var(--from-y)) scale(.74); }
  14% { opacity: .92; filter: drop-shadow(0 0 4px rgba(87,211,184,.58)); transform: translate(var(--from-x),var(--from-y)) scale(.82); }
  36% { opacity: 1; filter: drop-shadow(0 0 3px rgba(87,211,184,.4)); transform: translate(var(--mid-x),var(--mid-y)) scale(.94); }
  57%, 61% { opacity: 1; filter: none; transform: translate(0,0) scale(1); }
  66% { opacity: 0; filter: none; transform: translate(0,0) scale(1); }
  67%, 100% { opacity: 0; filter: none; transform: translate(var(--from-x),var(--from-y)) scale(.74); }
}
@keyframes processing-corner-repair {
  0%, 55% { opacity: 1; }
  68%, 80% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes processing-target-claim {
  0%, 50% { opacity: .76; }
  58%, 80% { opacity: 0; }
  100% { opacity: .76; }
}
@keyframes processing-mask-window {
  0%, 49% { opacity: 0; }
  58%, 80% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes processing-mask-cell {
  0%, 50% { opacity: 0; }
  58%, 100% { opacity: 1; }
}
@keyframes processing-mask-seal {
  0%, 70% { opacity: 0; }
  74%, 100% { opacity: 1; }
}
@keyframes processing-restored-glow {
  0%, 60% { opacity: 0; }
  65% { opacity: .42; }
  71%, 100% { opacity: 0; }
}
@keyframes queued-photo-breathe {
  0%, 100% { opacity: .84; }
  50% { opacity: 1; }
}

.image-stage { cursor: default; }
.image-stage.is-dragging { cursor: default; }
.image-stage.is-comparing { cursor: ew-resize; }

.file-card.is-info-open { z-index: 70; transform: none; }

.viewer { height: min(900px, calc(100dvh - 28px)); max-height: none; }
.viewer-shell { height: 100%; }
.viewer-shell { grid-template-rows: auto auto minmax(0,1fr) 128px; }
.viewer-footer {
  box-sizing: border-box; display: grid; grid-template-rows: minmax(0,1fr) 46px;
  height: 128px; min-height: 128px; padding: 8px 18px 10px 22px;
  gap: 6px; align-items: stretch; justify-content: stretch; overflow: visible;
}
.viewer-summary-row, .viewer-control-row {
  box-sizing: border-box; display: flex; width: 100%; min-width: 0;
  align-items: center; justify-content: space-between; gap: 20px;
}
.viewer-control-row { position: relative; padding-right: 726px; }
.viewer-summary-row > #viewer-message {
  flex: 1 1 auto; min-width: 0; max-width: 760px; height: 36px;
  display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  margin: 0; font-size: 13px; line-height: 1.35;
}
.viewer-review-state {
  display: flex; flex: 0 0 auto; min-width: 0; min-height: 44px;
  align-items: center; justify-content: flex-end; gap: 9px;
}
.viewer-control-row .candidate-tabs {
  flex: 1 1 auto; min-width: 0; max-width: 100%; height: 46px; margin: 0;
  flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; padding: 1px;
  scrollbar-width: thin;
}
.viewer-control-row .candidate-tabs button {
  grid-template-columns: 48px minmax(0,1fr); height: 44px; min-height: 44px; padding: 4px 9px 4px 4px;
}
.viewer-control-row .candidate-tabs button img { width: 48px; height: 36px; }
.viewer-control-row .candidate-tabs button span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.viewer-control-row .candidate-tabs button small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.viewer-selection-state {
  display: inline-flex; min-height: 36px; align-items: center; flex: 0 0 auto;
  margin: 0; padding: 0 10px;
}
.viewer-review-state .result-feedback { position: relative; margin: 0; flex-wrap: nowrap; }
.viewer-review-state .result-feedback select { position: absolute; right: 0; bottom: 48px; z-index: 15; width: 280px; }
.viewer-review-state .result-feedback > span { white-space: nowrap; }
.viewer-control-row .viewer-actions { align-self: center; }
.viewer-control-row .viewer-actions {
  position: absolute; right: 0; bottom: 1px; display: grid;
  grid-template-columns: 112px 218px 218px 134px; grid-template-rows: 44px;
  width: 706px; gap: 8px;
}
.viewer-actions > button { width: 100%; min-width: 0; min-height: 44px; padding-inline: 10px; line-height: 1.15; }
#support-result-button { grid-column: 1; grid-row: 1; }
#select-candidate, #download-original { grid-column: 2; grid-row: 1; }
#download-file { grid-column: 3; grid-row: 1; }
#result-info-button { grid-column: 4; grid-row: 1; }
#debug-button { position: absolute; right: 0; bottom: calc(100% + 8px); width: auto; }
.result-info-button { flex: 0 0 auto; margin: 0; }
.viewer-footer > .result-info-panel { right: 18px; left: auto; bottom: 62px; }

@media (max-width: 680px) {
  .result-copy { height: 100px; min-height: 100px; }
  .file-card.is-finished .result-copy { height: 100px; min-height: 100px; }
  .viewer { max-height: none; margin: 0; }
  .card-result-info-panel {
    position: fixed; z-index: 80; top: var(--popover-top, 12px); right: 16px; bottom: auto; left: 16px;
    width: auto; max-height: calc(100dvh - 32px); transform: none;
  }
  .viewer-shell { grid-template-rows: auto auto minmax(0,1fr) 310px; }
  .image-stage { min-height: 0; }
  .viewer-footer {
    display: grid; grid-template-rows: 124px minmax(0,1fr);
    height: 310px; min-height: 310px; max-height: none;
    padding: 9px 14px max(11px,env(safe-area-inset-bottom)); gap: 7px;
  }
  .viewer-summary-row { align-items: stretch; flex-direction: column; justify-content: flex-start; gap: 5px; }
  .viewer-summary-row > #viewer-message { flex: 0 0 38px; max-width: none; }
  .viewer-review-state {
    display: grid; grid-template-rows: 40px 36px; width: 100%; min-height: 81px;
    align-items: center; justify-content: flex-start; align-content: start; gap: 5px;
  }
  .viewer-review-state .result-feedback { flex-wrap: nowrap; }
  .viewer-review-state .result-feedback select {
    position: fixed; right: 14px; bottom: calc(318px + env(safe-area-inset-bottom));
    width: min(280px, calc(100vw - 28px));
  }
  .viewer-control-row {
    position: static; align-items: stretch; flex-direction: column; justify-content: flex-start;
    gap: 7px; overflow: hidden; padding-right: 0;
  }
  .viewer-control-row .candidate-tabs { flex: 0 0 50px; width: 100%; overflow-x: auto; }
  .viewer-control-row .viewer-actions {
    position: relative; right: auto; bottom: auto; display: grid;
    grid-template-columns: 1fr 1fr; grid-template-rows: 44px 44px;
    flex: 0 0 95px; width: 100%; gap: 7px;
  }
  .viewer-control-row .viewer-actions button { min-width: 0; padding-inline: 9px; }
  #support-result-button { grid-column: 1; grid-row: 1; }
  #select-candidate, #download-original { grid-column: 2; grid-row: 1; }
  #download-file { grid-column: 1; grid-row: 2; }
  #result-info-button { grid-column: 2; grid-row: 2; }
  #debug-button { right: 0; bottom: calc(100% + 7px); width: auto; }
  .viewer-footer > .result-info-panel {
    position: fixed; top: auto; right: 14px; bottom: calc(310px + 28px); left: auto;
    max-height: min(260px, calc(100dvh - 543px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .pixel-placeholder.is-animated .pixel-missing-area,
  .pixel-placeholder.is-animated .pixel-break-edge,
  .pixel-placeholder.is-animated .pixel-destination,
  .pixel-placeholder.is-animated .pixel-block,
  .pixel-placeholder.is-animated .pixel-mask-cells,
  .pixel-placeholder.is-animated .pixel-mask-cell,
  .pixel-placeholder.is-animated .pixel-mask-seal {
    animation-duration: 6400ms !important;
    animation-iteration-count: infinite !important;
  }
  .pixel-placeholder.is-animated .pixel-restored-glow,
  .pixel-placeholder.is-waiting .pixel-photo-body {
    animation: none !important;
  }
}

/* Approved landing demo: static hero plus manifest-backed comparisons. */
.hero-visual {
  width: min(100%, 548px);
  padding: 22px 12px 42px;
}
.hero-image {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  transform: none;
  transition: none;
}
.hero-visual:hover .hero-image {
  transform: none;
  box-shadow: var(--shadow-raised);
}
.hero-image::after, .hero-visual::before { display: none; }
.hero-image #hero-static {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: none;
  filter: none;
}

.example-card { position: relative; }
.example-card figcaption {
  display: flex;
  align-items: center;
  min-height: 32px;
  padding: 10px 48px 0 2px;
  color: var(--text-secondary);
  font-weight: 620;
  line-height: 1.35;
}
.demo-info-button {
  position: absolute;
  z-index: 12;
  top: 12px;
  right: 12px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 50%;
  color: #fff;
  background: rgba(17,22,27,.7);
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  backdrop-filter: blur(8px);
  font: 750 15px/1 ui-sans-serif,system-ui,sans-serif;
  cursor: pointer;
  transition-property: background-color, box-shadow, scale;
  transition-duration: 150ms;
  transition-timing-function: var(--motion-ease);
}
.demo-info-button:hover, .demo-info-button[aria-expanded="true"] {
  background: rgba(23,122,118,.94);
  box-shadow: 0 8px 22px rgba(0,0,0,.24);
}
.demo-info-button:active { scale: .96; }
.demo-info-panel {
  position: absolute;
  z-index: 14;
  top: 60px;
  right: 12px;
  width: min(310px, calc(100% - 24px));
  padding: 16px;
  border-radius: 14px;
  color: #eef3f2;
  background: rgba(17,22,27,.94);
  box-shadow: 0 18px 50px rgba(0,0,0,.3), inset 0 0 0 1px rgba(255,255,255,.09);
  backdrop-filter: blur(14px);
}
.demo-info-panel[hidden] { display: none; }
.demo-info-panel > strong { display: block; margin-bottom: 11px; font-size: 13px; }
.demo-info-panel dl { display: grid; gap: 8px; margin: 0; }
.demo-info-panel dl div { display: grid; grid-template-columns: 78px minmax(0,1fr); gap: 10px; }
.demo-info-panel dt { color: #99a5a1; font-size: 11px; }
.demo-info-panel dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: #f5f7f6;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 680px) {
  .hero-visual { display: block; padding-inline: 0; }
  .hero-note { right: 10px; }
  .example-card figcaption { padding-right: 2px; }
}
