:root {
  --ink: #171714;
  --paper: #f3f0e8;
  --panel: #fbfaf6;
  --lime: #c9ff38;
  --orange: #ff5a36;
  --line: rgba(23, 23, 20, 0.17);
  --muted: #6d6c65;
  --shadow: 0 24px 70px rgba(30, 27, 18, 0.11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(23,23,20,.035) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(rgba(23,23,20,.035) 1px, transparent 1px) 0 0 / 56px 56px,
    var(--paper);
  font-family: Arial, Helvetica, sans-serif;
}

button, input, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button, select { min-height: 44px; }
[hidden] { display: none !important; }
figure { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header {
  width: min(1240px, calc(100% - 40px));
  height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; font-size: 24px; font-weight: 800; letter-spacing: -1px; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; background: var(--ink); color: var(--lime); font: italic 700 20px Georgia, serif; }
.brand-dot { color: var(--orange); }
.header-actions { display: flex; align-items: center; gap: 22px; }
.status-pill { display: flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #55c348; box-shadow: 0 0 0 4px rgba(85,195,72,.15); }
.language-picker { position: relative; }
.language-picker select { padding: 0 34px 0 13px; border: 1px solid var(--ink); border-radius: 0; color: var(--ink); background: var(--panel); font-size: 11px; font-weight: 900; letter-spacing: 1px; cursor: pointer; }

main { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.hero { padding: 72px 0 64px; text-align: center; }
.eyebrow { display: inline-block; margin-bottom: 18px; font-size: 10px; font-weight: 900; letter-spacing: 2.3px; }
.eyebrow::before { content: ""; display: inline-block; width: 22px; margin-right: 10px; border-top: 3px solid var(--orange); vertical-align: 3px; }
h1, h2 { margin: 0; letter-spacing: -.055em; line-height: .96; }
h1 { font-size: clamp(52px, 8.2vw, 108px); font-weight: 900; }
h1 em { color: var(--orange); font-family: Georgia, 'Times New Roman', serif; font-weight: 400; }
h2 { font-size: clamp(34px, 5vw, 58px); }
.hero-copy { max-width: 700px; margin: 30px auto 40px; color: var(--muted); font-size: 16px; line-height: 1.65; }

.group-workspace { padding: clamp(16px, 2.5vw, 28px); border: 1px solid var(--ink); background: var(--panel); box-shadow: var(--shadow); text-align: left; }
.workspace-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 4px 4px 22px; }
.workspace-heading .eyebrow { margin-bottom: 10px; }
.workspace-heading h2 { font-size: clamp(30px, 4vw, 48px); }
.workspace-heading p { max-width: 650px; margin: 13px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.add-group-button { flex: 0 0 auto; }
.group-list { display: grid; gap: 14px; }
.upload-group-card { padding: 15px; border: 1px solid var(--ink); background: #fff; }
.upload-group-header { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 12px; }
.group-name-field { min-width: 0; flex: 1; }
.group-name-field > span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: 1.2px; text-transform: uppercase; }
.group-name-input { width: 100%; min-height: 46px; padding: 0 13px; border: 1px solid var(--line); background: var(--panel); font-weight: 800; }
.group-name-input:focus { outline: 2px solid var(--lime); outline-offset: 0; border-color: var(--ink); }
.remove-group { flex: 0 0 auto; min-height: 46px; }
.drop-zone { width: 100%; min-height: 154px; border: 1px dashed rgba(23,23,20,.46); background: var(--panel); color: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: .18s ease; }
.drop-zone:hover, .drop-zone.dragging { border-style: solid; background: rgba(201,255,56,.22); }
.upload-icon { width: 42px; height: 42px; margin-bottom: 11px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; font-size: 24px; }
.drop-title { font-size: 18px; font-weight: 900; letter-spacing: -.3px; }
.drop-subtitle { margin-top: 5px; color: var(--muted); font-size: 12px; }
.file-rules { margin-top: 14px; font-size: 8px; font-weight: 900; letter-spacing: 1.2px; }
.selected-files { padding: 12px; border: 1px solid var(--line); background: var(--panel); }
.selected-files-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 0 11px; }
.selected-files-header > div { display: flex; flex-direction: column; gap: 3px; }
.selected-files-header span { color: var(--muted); font-size: 11px; }
.selected-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(105px, 1fr)); gap: 8px; }
.selected-thumb { min-width: 0; border: 1px solid var(--line); background: white; }
.selected-thumb img { width: 100%; height: 100px; display: block; object-fit: contain; background: #e7e4dc; }
.selected-thumb figcaption { padding: 7px 8px; margin: 0; display: flex; flex-direction: column; gap: 3px; letter-spacing: 0; }
.selected-thumb strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.selected-thumb span { color: var(--muted); font-size: 9px; font-weight: 400; }
.form-error { margin: 10px 0 0; padding: 11px 13px; border-left: 4px solid var(--orange); color: #872b19; background: #ffe3d9; font-size: 12px; line-height: 1.45; }
.group-started-note { margin: 10px 0 0; padding: 10px 12px; border-left: 4px solid var(--lime); background: var(--paper); color: var(--muted); font-size: 11px; }
.group-start-button { width: 100%; margin-top: 10px; }

.primary-button, .secondary-button { min-height: 46px; padding: 0 20px; border: 0; display: inline-flex; align-items: center; justify-content: center; gap: 18px; color: inherit; text-decoration: none; text-transform: uppercase; font-size: 10px; font-weight: 900; letter-spacing: 1.1px; cursor: pointer; }
.primary-button { background: var(--ink); color: white; }
.primary-button:hover { background: var(--orange); }
.secondary-button { border: 1px solid var(--ink); background: transparent; }
.secondary-button:hover { background: var(--ink); color: white; }
.primary-button:disabled, .secondary-button:disabled { opacity: .35; cursor: not-allowed; }
.text-button { min-height: 44px; padding: 8px; border: 0; background: none; color: var(--ink); text-decoration: underline; cursor: pointer; }
.trust-row { margin-top: 34px; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 36px; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; }
.trust-row i { margin-right: 6px; color: var(--orange); font-style: normal; font-weight: 900; }

.batch-section { margin: 46px 0 86px; padding: clamp(16px, 3vw, 32px); border: 1px solid var(--ink); background: var(--panel); box-shadow: var(--shadow); }
.batch-heading { margin-bottom: 22px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.batch-heading .eyebrow { margin-bottom: 9px; }
.batch-heading h2 { font-size: clamp(32px, 5vw, 52px); }
.batch-summary { max-width: 390px; padding: 10px 14px; background: var(--lime); font-size: 10px; font-weight: 900; line-height: 1.4; text-align: right; }
.result-groups { display: grid; gap: 18px; }
.result-group { padding: 14px; border: 1px solid var(--ink); background: #edeae2; }
.result-group-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 12px; }
.result-group-header > div { min-width: 0; }
.result-group-header span { color: var(--muted); font-size: 8px; font-weight: 900; letter-spacing: 1.2px; text-transform: uppercase; }
.result-group-header h3 { margin: 3px 0 2px; overflow: hidden; font-size: 22px; text-overflow: ellipsis; white-space: nowrap; }
.group-summary { margin: 0; color: var(--muted); font-size: 11px; }
.group-zip-button { flex: 0 0 auto; }
.batch-grid { display: grid; gap: 9px; }
.batch-card { padding: 11px 12px; border: 1px solid var(--line); background: white; }
.batch-card-header { margin-bottom: 9px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.batch-file-title { min-width: 0; display: flex; align-items: center; gap: 10px; }
.batch-file-title > div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.batch-file-title strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.batch-file-title small { color: var(--muted); font-size: 9px; }
.batch-index { color: var(--orange); font: italic 22px Georgia, serif; }
.queue-status { flex: 0 0 auto; padding: 5px 8px; border: 1px solid var(--line); font-size: 7px; font-weight: 900; letter-spacing: .8px; text-transform: uppercase; }
.status-processing, .status-uploading { border-color: #f2ac21; background: #fff0cc; }
.status-queued { background: #eceae3; }
.status-awaiting_selection { border-color: #b575d1; background: #f4e3ff; }
.status-completed { border-color: #8dbb12; background: var(--lime); }
.status-failed { border-color: var(--orange); background: #ffe3d9; }
.batch-card-main { display: grid; grid-template-columns: 292px minmax(0, 1fr); gap: 18px; align-items: center; }
.batch-images { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.batch-images figcaption { margin-bottom: 4px; font-size: 7px; font-weight: 900; letter-spacing: 1.1px; }
.batch-image { position: relative; width: 100%; height: 180px; display: grid; place-items: center; overflow: hidden; background: #dedbd2; }
.batch-image img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: contain; object-position: center; }
.result-placeholder { max-width: 70px; color: var(--muted); font-size: 7px; font-weight: 900; letter-spacing: .7px; text-align: center; text-transform: uppercase; }
.batch-details { min-width: 0; }
.batch-progress-wrap > div { margin-bottom: 6px; display: flex; justify-content: space-between; gap: 18px; font-size: 10px; }
.batch-progress { width: 100%; height: 6px; appearance: none; display: block; overflow: hidden; border: 0; background: #dfddd5; }
.batch-progress::-webkit-progress-bar { background: #dfddd5; }
.batch-progress::-webkit-progress-value { background: var(--orange); transition: width .3s ease; }
.batch-progress::-moz-progress-bar { background: var(--orange); }
.inline-warning { margin-top: 10px; padding: 9px 11px; border-left: 3px solid #f2ac21; background: #fff0cc; font-size: 10px; line-height: 1.4; }
.person-picker { margin-top: 10px; padding: 11px; border: 1px solid #b575d1; background: #fbf3ff; }
.person-picker > strong { display: block; margin-bottom: 8px; font-size: 11px; }
.person-options { display: flex; flex-wrap: wrap; gap: 8px; }
.person-option { width: 90px; padding: 5px; border: 1px solid var(--line); background: white; cursor: pointer; }
.person-option:hover { border-color: var(--orange); }
.person-option img { width: 100%; aspect-ratio: 1; display: block; object-fit: contain; }
.person-option span { display: block; margin-top: 5px; font-size: 9px; font-weight: 800; }
.batch-result-meta { margin-top: 10px; display: flex; justify-content: space-between; gap: 14px; color: var(--muted); font-size: 9px; }
.batch-score { color: var(--ink); font-weight: 900; }
.batch-actions { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 7px; }
.batch-actions .primary-button, .batch-actions .secondary-button { min-height: 38px; padding: 6px 12px; font-size: 8px; }

.seo-section { margin: 0 0 90px; padding: clamp(28px, 5vw, 60px); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: rgba(251,250,246,.7); }
.seo-intro { max-width: 800px; }
.seo-intro h2 { font-size: clamp(34px, 5vw, 58px); }
.seo-intro p { margin: 22px 0 0; color: var(--muted); font-size: 15px; line-height: 1.75; }
.seo-grid { margin-top: 36px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--ink); border: 1px solid var(--ink); }
.seo-grid article { padding: 24px; background: var(--panel); }
.seo-grid article > strong { color: var(--orange); font: italic 22px Georgia, serif; }
.seo-grid h3 { margin: 17px 0 10px; font-size: 18px; }
.seo-grid p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.site-footer { width: min(1240px, calc(100% - 40px)); margin: 0 auto; padding: 26px 0 38px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 9px; letter-spacing: 1px; }

.checkerboard { background-color: #f8f8f8; background-image: linear-gradient(45deg,#d8d8d8 25%,transparent 25%),linear-gradient(-45deg,#d8d8d8 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#d8d8d8 75%),linear-gradient(-45deg,transparent 75%,#d8d8d8 75%); background-size: 20px 20px; background-position: 0 0,0 10px,10px -10px,-10px 0; }

body.editor-open { overflow: hidden; }
.editor-modal { position: fixed; inset: 0; z-index: 1000; padding: 18px; display: grid; place-items: center; }
.editor-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(23,23,20,.76); cursor: default; }
.editor-dialog { position: relative; width: min(1180px, 100%); height: calc(100dvh - 36px); max-height: calc(100vh - 36px); display: grid; grid-template-rows: auto minmax(0,1fr) auto; overflow: hidden; border: 1px solid var(--ink); background: var(--panel); box-shadow: 0 30px 100px rgba(0,0,0,.35); }
.editor-header { padding: 19px 22px 15px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: flex-start; gap: 22px; }
.editor-header .eyebrow { margin-bottom: 8px; }
.editor-header h2 { font-size: clamp(30px, 4vw, 45px); }
.editor-header p { max-width: 540px; margin: 7px 0 0; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.editor-close { flex: 0 0 auto; width: 44px; height: 44px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font-size: 27px; cursor: pointer; }
.editor-close:hover { background: var(--ink); color: white; }
.editor-body { min-height: 0; display: grid; grid-template-columns: minmax(0,1fr) 290px; overflow: hidden; }
.editor-canvas-column { min-width: 0; min-height: 0; padding: 16px; border-right: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden; }
.editor-canvas-stage { position: relative; min-width: 0; min-height: 0; height: 100%; flex: 1 1 0; overflow: scroll; overscroll-behavior: contain; scrollbar-gutter: stable both-edges; scrollbar-color: var(--orange) #dedbd2; scrollbar-width: auto; border: 1px solid var(--line); }
.editor-canvas-stage::-webkit-scrollbar { width: 15px; height: 15px; }
.editor-canvas-stage::-webkit-scrollbar-track { background: #dedbd2; border: 1px solid rgba(23,23,20,.12); }
.editor-canvas-stage::-webkit-scrollbar-thumb { min-width: 42px; min-height: 42px; border: 3px solid #dedbd2; background: var(--orange); }
.editor-canvas-stage::-webkit-scrollbar-corner { background: #dedbd2; }
.editor-canvas-content { position: relative; min-width: 100%; min-height: 100%; display: flex; align-items: center; justify-content: center; }
#editorCanvas { max-width: none; max-height: none; flex: 0 0 auto; display: block; cursor: none; touch-action: none; }
#editorCanvas.pan-mode { cursor: grab; }
#editorCanvas.pan-mode.is-panning { cursor: grabbing; }
.editor-loading { position: absolute; inset: 0; z-index: 4; padding: 30px; display: grid; place-items: center; background: rgba(251,250,246,.9); font-size: 10px; font-weight: 900; letter-spacing: 1px; text-align: center; text-transform: uppercase; }
.editor-brush-cursor { position: absolute; z-index: 3; border: 2px solid currentColor; border-radius: 50%; color: #ff3b1f; box-shadow: 0 0 0 1px white, inset 0 0 0 1px rgba(0,0,0,.25); pointer-events: none; transform: translate(-50%,-50%); }
.editor-brush-cursor::after { content: ""; position: absolute; left: 50%; top: 50%; width: var(--hardness-diameter,65%); height: var(--hardness-diameter,65%); border: 1px dashed currentColor; border-radius: 50%; opacity: .72; transform: translate(-50%,-50%); }
.editor-brush-cursor.fully-soft::after { width: 3px; height: 3px; border-style: solid; }
.editor-brush-cursor[data-mode="restore"] { color: #65b900; }
.editor-hint { margin: 9px 0 0; color: var(--muted); font-size: 10px; text-align: center; }
.editor-tools { min-width: 0; padding: 18px; overflow: auto; background: white; }
.editor-tool-group { display: block; margin-bottom: 19px; }
.editor-tool-label { margin-bottom: 8px; display: flex; justify-content: space-between; gap: 12px; font-size: 9px; font-weight: 900; letter-spacing: 1.1px; text-transform: uppercase; }
.editor-tool-label strong { color: var(--orange); }
.editor-zoom-controls { display: grid; grid-template-columns: 44px minmax(0,1fr) 44px; gap: 6px; }
.editor-zoom-controls button { border: 1px solid var(--line); background: var(--panel); color: var(--ink); font-weight: 900; cursor: pointer; }
.editor-zoom-controls button:hover { border-color: var(--ink); }
.editor-zoom-controls button:disabled { opacity: .35; cursor: not-allowed; }
.editor-pan-button { width: 100%; min-height: 42px; margin-top: 7px; border: 1px solid var(--ink); background: transparent; display: flex; align-items: center; justify-content: center; gap: 9px; color: var(--ink); font-size: 9px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; cursor: grab; }
.editor-pan-button:hover, .editor-pan-button.active { background: var(--ink); color: white; }
.editor-pan-button:disabled { opacity: .35; cursor: not-allowed; }
.editor-pan-help { margin: 7px 0 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.editor-mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.editor-mode { min-height: 45px; border: 1px solid var(--line); background: transparent; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 10px; font-weight: 900; cursor: pointer; }
.editor-mode.active { border-color: var(--ink); background: var(--ink); color: white; }
.editor-mode:disabled { opacity: .35; cursor: not-allowed; }
.tool-dot { width: 12px; height: 12px; border: 2px solid currentColor; border-radius: 50%; }
.erase-dot { background: #ff5a36; }
.restore-dot { background: #9bda20; }
#editorBrushSize, #editorSoftness { width: 100%; accent-color: var(--orange); cursor: ew-resize; }
.editor-history-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.editor-history-actions .secondary-button { min-height: 43px; padding: 7px 9px; font-size: 9px; }
.editor-tool-note { margin-top: 19px; padding: 12px; border-left: 4px solid var(--lime); background: var(--paper); color: var(--muted); font-size: 10px; line-height: 1.6; }
.editor-tool-note strong { color: var(--ink); }
.editor-tool-note kbd { padding: 1px 4px; border: 1px solid var(--line); border-bottom-color: var(--ink); background: white; color: var(--ink); font: inherit; }
.editor-status { min-height: 30px; margin: 13px 0 0; color: var(--muted); font-size: 10px; line-height: 1.4; }
.editor-footer { width: 100%; margin: 0; padding: 12px 20px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.editor-footer .primary-button { min-height: 46px; }
.edit-result.edited::after { content: " ✓"; color: #65b900; }

@media (max-width: 860px) {
  .editor-body { grid-template-columns: minmax(0,1fr) 250px; }
  .editor-tools { padding: 14px; }
  .batch-card-main { grid-template-columns: 250px minmax(0, 1fr); }
  .batch-image { height: 160px; }
  .seo-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .site-header, main, .site-footer { width: min(100% - 24px, 1120px); }
  .site-header { height: 66px; }
  .status-pill { display: none; }
  .header-actions { gap: 8px; }
  .language-picker select { min-height: 42px; }
  .hero { padding: 46px 0 48px; }
  h1 { font-size: clamp(42px, 14vw, 64px); }
  .hero-copy { margin: 23px auto 30px; font-size: 14px; }
  .group-workspace { padding: 11px; }
  .workspace-heading { padding: 5px 2px 16px; flex-direction: column; align-items: stretch; }
  .workspace-heading h2 { font-size: 34px; }
  .add-group-button { width: 100%; }
  .upload-group-card { padding: 10px; }
  .upload-group-header { align-items: stretch; }
  .remove-group { padding-inline: 12px; }
  .drop-zone { min-height: 142px; padding: 16px 10px; }
  .drop-title { font-size: 16px; }
  .selected-files-header { align-items: flex-start; }
  .selected-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .selected-thumb img { height: 120px; }
  .trust-row { gap: 12px 18px; }
  .batch-section { margin: 34px 0 54px; padding: 11px; }
  .batch-heading { align-items: stretch; flex-direction: column; }
  .batch-summary { max-width: none; text-align: left; }
  .result-group { padding: 9px; }
  .result-group-header { align-items: stretch; flex-direction: column; }
  .result-group-header h3 { font-size: 20px; }
  .group-zip-button { width: 100%; }
  .batch-card { padding: 9px; }
  .batch-card-header { align-items: flex-start; }
  .batch-card-main { grid-template-columns: 1fr; gap: 10px; }
  .batch-image { height: 190px; }
  .batch-result-meta { flex-direction: column; gap: 4px; }
  .batch-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .batch-actions .result-download { grid-column: 1 / -1; grid-row: 1; }
  .seo-section { margin-bottom: 54px; padding: 34px 16px; }
  .seo-grid { margin-top: 26px; }
  .seo-grid article { padding: 20px; }
  .site-footer { padding-bottom: 28px; flex-direction: column; gap: 8px; }

  .editor-modal { padding: 0; }
  .editor-dialog { width: 100%; height: 100dvh; max-height: 100vh; border: 0; }
  .editor-header { padding: 12px 14px; }
  .editor-header .eyebrow { display: none; }
  .editor-header h2 { font-size: 28px; }
  .editor-body { grid-template-columns: 1fr; overflow: auto; }
  .editor-canvas-column { min-height: 43vh; max-height: 50vh; padding: 9px; border-right: 0; border-bottom: 1px solid var(--line); }
  .editor-canvas-stage { min-height: 0; max-height: none; }
  .editor-tools { padding: 14px; overflow: visible; }
  .editor-tool-group { margin-bottom: 14px; }
  .editor-tool-note { display: none; }
  .editor-footer { padding: 9px 12px max(9px, env(safe-area-inset-bottom)); }
  .editor-footer .primary-button { min-height: 44px; padding-inline: 13px; gap: 9px; }
}

@media (max-width: 390px) {
  .brand { font-size: 21px; }
  .brand-mark { width: 31px; height: 31px; }
  .language-picker select { padding-inline: 10px; }
  .batch-image { height: 170px; }
  .batch-actions { grid-template-columns: 1fr; }
  .batch-actions .result-download { grid-column: auto; grid-row: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
