/* Toolsite design system. Shared by the directory and every tool workspace.
   Keep type, color and spacing decisions here; see docs/工具站视觉与组件规范.md. */
:root {
  --font-ui: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --text-xs: .875rem;
  --text-sm: .9375rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --ink: #192e35;
  --ink-soft: #40575f;
  --muted: #5b6e75;
  --paper: #f5f7f8;
  --white: #fff;
  --line: #dce5e6;
  --line-dark: #9cafb2;
  --teal: #0f766e;
  --teal-dark: #095c55;
  --teal-pale: #eaf5f2;
  --amber: #80531d;
  --amber-pale: #fff8ed;
  --danger: #a03532;
  --danger-pale: #fff1ef;
  --radius: 16px;
  --radius-sm: 10px;
  --space-section: 40px;
  --shadow: 0 6px 24px #193c3505;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--text-base)/1.75 var(--font-ui); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; margin: 0; flex-shrink: 0; accent-color: var(--teal); }
input:not([type=file]):not([type=checkbox]):not([type=radio]), select, textarea {
  min-width: 0; border: 1px solid var(--line-dark); border-radius: var(--radius-sm);
  background: var(--white); color: var(--ink); font-size: var(--text-base);
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input:disabled, select:disabled { background: #eef2f3; color: var(--muted); }
h1, h2, h3, p { overflow-wrap: break-word; }
h1, h2, h3 { font-weight: 650; line-height: 1.45; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
.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 { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 max(28px,calc((100vw - 1120px)/2)); border-bottom: 1px solid var(--line); background: var(--white); }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; gap: 12px; font-size: 20px; font-weight: 650; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--teal-dark); color: white; font-size: 21px; font-weight: 600; }
.site-header nav { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; color: var(--ink-soft); font-size: var(--text-sm); }
.site-header nav a { white-space: nowrap; flex-shrink: 0; display: inline-flex; align-items: center; min-height: 48px; border-bottom: 2px solid transparent; }
.site-header .nav-current { color: var(--teal-dark); border-color: var(--teal); font-weight: 650; }
.site-header nav a:hover, .site-footer a:hover, .back-link:hover { color: var(--teal); }
.directory, .workspace, .pdf-main { width: min(1120px,calc(100% - 56px)); margin: 0 auto; }
.directory { padding: 36px 0 64px; }
.directory-hero { padding: 12px 0 32px; }
.hero-break { display: none; }
.hero-copy { max-width: 960px; }
.eyebrow { display: inline-block; color: var(--teal-dark); font-size: var(--text-xs); font-weight: 650; letter-spacing: .025em; }
.directory h1 { font-size: clamp(34px,4vw,46px); line-height: 1.3; letter-spacing: -.025em; margin: 14px 0 18px; }
.directory h1 em { font-style: normal; color: var(--teal); }
.directory-hero p { margin: 0; color: var(--ink-soft); font-size: var(--text-lg); }
.trust-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 22px; color: var(--muted); font-size: var(--text-xs); }
.trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.trust-row i { font-style: normal; color: var(--teal); }
.directory-tools { padding-top: 28px; border-top: 1px solid var(--line); }
.directory-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.section-title { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 0; }
.section-title h2 { margin: 0; font-size: 26px; }
.count-label { color: var(--muted); font-size: var(--text-xs); white-space: nowrap; }
.directory-filters { display: flex; flex-direction: column; gap: 18px; margin: 0 0 24px; }
.search-field { position: relative; display: block; width: 400px; max-width: 100%; }
.search-field svg { position: absolute; left: 17px; top: 17px; width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
#tool-search { width: 100%; height: 54px; padding: 12px 16px 12px 48px; }
.category-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.category-tabs button { min-height: 44px; padding: 7px 16px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--ink-soft); font-size: var(--text-sm); }
.category-tabs button:hover { background: #e8eeef; }
.category-tabs button[aria-pressed=true] { background: var(--teal-pale); color: var(--teal-dark); border-color: #b6d7ce; font-weight: 650; }
.search-feedback { margin: 0 0 20px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink-soft); background: white; }
.tool-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.tool-card { display: flex; flex-direction: column; min-width: 0; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow); transition: border-color .18s, box-shadow .18s, transform .18s; }
.tool-card:hover { border-color: #80b5a9; box-shadow: 0 10px 28px #193c350b; transform: translateY(-2px); }
.card-top { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; }
.tool-icon { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; color: var(--teal-dark); background: var(--teal-pale); }
.tool-icon svg { width: 25px; height: 25px; }
.icon-image { background: #edf1fa; color: #3e5f9b; }
.icon-document { background: #fff0e7; color: #99592d; }
.icon-special { background: #f0edf9; color: #6b5394; }
.card-kicker { margin: 0; color: var(--muted); font-size: var(--text-xs); }
.tool-card h3 { margin: 0 0 10px; font-size: 24px; }
.card-copy { margin: 0 0 24px; color: var(--ink-soft); font-size: var(--text-base); line-height: 1.8; }
.card-link { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; margin-top: auto; padding-top: 16px; border-top: 1px solid #e8eeee; color: var(--teal-dark); font-size: var(--text-base); font-weight: 650; }
.card-link svg { width: 21px; height: 21px; transition: transform .18s; }
.card-link:hover svg { transform: translateX(4px); }
.repeat-note { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 28px; margin-top: 28px; border: 1px solid #d5e5df; border-radius: var(--radius); background: #eef6f2; }
.repeat-note h3 { margin: 0 0 6px; font-size: var(--text-lg); }
.repeat-note p { margin: 0; font-size: var(--text-sm); color: var(--ink-soft); }
.repeat-note > a { display: inline-flex; align-items: center; flex-shrink: 0; min-height: 44px; color: var(--teal-dark); font-weight: 650; }
.workspace, .pdf-main { padding: 32px 0 64px; }
.back-link { display: inline-flex; align-items: center; min-height: 40px; color: var(--muted); font-size: var(--text-sm); margin-bottom: 20px; }
.workspace-heading, .pdf-hero { margin-bottom: 28px; }
.workspace-heading h1, .pdf-hero h1 { margin: 10px 0 12px; font-size: clamp(30px,3.4vw,40px); line-height: 1.35; letter-spacing: -.02em; }
.workspace-heading p, .pdf-hero p { max-width: 840px; margin: 0; font-size: var(--text-base); color: var(--ink-soft); }
.workspace-local-note { display: block; margin-top: 14px; color: var(--teal-dark); font-size: var(--text-xs); }
.limit-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 18px; margin: 20px 0; font-size: var(--text-xs); color: var(--muted); }
.limit-strip strong { color: var(--ink-soft); font-weight: 650; }
.limit-strip span { display: inline-flex; align-items: center; gap: 10px; }
.limit-strip span::before { content: ""; width: 3px; height: 3px; border-radius: 50%; background: #8da6a5; }
.workspace-card, .results-card { margin: 20px 0; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.step-heading { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 24px; }
.step-no { display: grid; place-items: center; flex: 0 0 32px; height: 32px; border-radius: 10px; background: var(--teal-pale); color: var(--teal-dark); font-size: var(--text-xs); font-weight: 650; }
.step-heading h2, .results-heading h2 { margin: 0 0 7px; font-size: var(--text-xl); }
.step-heading p { margin: 0; color: var(--muted); font-size: var(--text-sm); line-height: 1.75; }
.file-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.file-drop { display: flex; position: relative; min-width: 0; min-height: 172px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; padding: 24px; border: 1px dashed #8eafa9; border-radius: 12px; background: #f8fbfa; cursor: pointer; }
.file-drop:hover, .file-drop:focus-within { background: #edf7f3; border-color: var(--teal); }
.file-drop:focus-within { outline: 3px solid var(--teal); outline-offset: 3px; }
.file-drop input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop-icon { font-size: 25px; color: var(--teal); margin-bottom: 3px; }
.file-drop strong { font-size: var(--text-lg); font-weight: 650; }
.drop-help { color: var(--muted); font-size: var(--text-xs); }
.file-name { max-width: 100%; margin-top: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--text-sm); color: var(--teal-dark); }
.single-drop { max-width: 100%; margin-bottom: 24px; }
.control-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 18px; }
.control-row > label { display: inline-flex; align-items: center; gap: 12px; font-size: var(--text-sm); color: var(--ink-soft); }
.control-row select { min-height: 46px; padding: 8px 12px; }
.control-hint, .field-help { font-size: var(--text-xs); color: var(--muted); }
.control-hint { margin: 0 0 12px; }
.control-row .control-hint { margin: 0; }
.field-help { margin: 8px 0 16px; }
.key-fieldset, .mode-fieldset { min-width: 0; border: 0; padding: 0; margin: 0 0 20px; }
.key-fieldset legend, .mode-fieldset legend { margin-bottom: 10px; font-size: var(--text-sm); font-weight: 650; }
.key-options { display: flex; flex-wrap: wrap; gap: 10px; }
.key-options label, .mode-fieldset label { display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 9px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: white; color: var(--ink-soft); font-size: var(--text-sm); cursor: pointer; }
.mode-fieldset label { margin: 0 8px 8px 0; }
.key-options label:has(input:checked), .mode-fieldset label:has(input:checked) { border-color: #6ca697; color: var(--teal-dark); background: var(--teal-pale); }
.muted, .empty-chip { font-size: var(--text-xs); color: var(--muted); }
.button-primary, .button-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 10px 20px; border-radius: var(--radius-sm); font-size: var(--text-base); font-weight: 600; line-height: 1.5; }
.button-primary { border: 1px solid var(--teal); color: white; background: var(--teal); }
.button-primary:hover:not(:disabled) { background: var(--teal-dark); border-color: var(--teal-dark); }
.button-secondary { border: 1px solid var(--line-dark); color: var(--ink-soft); background: white; }
.button-secondary:hover:not(:disabled) { border-color: var(--teal); color: var(--teal-dark); background: #f3f9f6; }
.status-line { min-height: 24px; margin: 14px 0 0; color: var(--muted); font-size: var(--text-sm); }
.status-line[data-kind=error] { color: var(--danger); }
.status-line[data-kind=success] { color: var(--teal-dark); }
.results-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; margin-bottom: 24px; }
.results-heading h2 { margin-top: 5px; }
.metric-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; margin-bottom: 24px; }
.metric { padding: 16px; border-radius: var(--radius-sm); background: #f2f7f5; }
.metric strong { display: block; color: var(--teal-dark); font-size: 28px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.metric span { color: var(--ink-soft); font-size: var(--text-xs); }
.column-changes { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 20px; }
.column-changes > div { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.column-changes h3 { margin: 0 0 8px; color: var(--muted); font-size: var(--text-xs); }
.column-changes ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.column-changes li { font-size: var(--text-xs); padding: 2px 8px; border-radius: 6px; background: #f0f4f3; overflow-wrap: anywhere; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
table { width: 100%; min-width: 820px; border-collapse: collapse; font-size: var(--text-xs); line-height: 1.7; white-space: pre-wrap; }
caption { padding: 14px 16px; background: #f8faf9; color: var(--muted); text-align: left; }
th, td { padding: 13px 16px; border-top: 1px solid #e5ebeb; vertical-align: top; text-align: left; max-width: 300px; overflow-wrap: anywhere; }
th { background: #f0f5f3; color: var(--ink-soft); font-weight: 650; }
th, td:nth-child(1), td:nth-child(2) { white-space: nowrap; }
td.type-added { color: #1a7052; } td.type-removed { color: #875423; }
td.type-changed { color: #365f92; } td.type-issue { color: var(--danger); }
.summary-banner { margin: 0 0 20px; padding: 16px 20px; border-radius: var(--radius-sm); background: var(--teal-pale); color: var(--ink-soft); }
.summary-banner strong { color: var(--teal-dark); margin-right: 6px; font-size: 24px; }
.summary-banner.has-errors { background: var(--danger-pale); color: #854744; }
.summary-banner.has-errors strong { color: var(--danger); }
.official-link { margin-top: 18px; font-size: var(--text-sm); }
.official-link a, .faq a, .text-button { color: var(--teal-dark); text-decoration: underline; text-underline-offset: 4px; }
.text-button { display: inline-flex; align-items: center; min-height: 44px; border: 0; background: none; padding: 5px 0; font-weight: 600; font-size: var(--text-sm); }
.sample-box, .scope-note, .privacy-settings { margin: 14px 0; padding: 18px 22px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.sample-box summary, .scope-note summary, .privacy-settings summary { font-size: var(--text-sm); font-weight: 600; color: var(--ink-soft); }
.sample-box p, .scope-note p, .privacy-settings p { margin: 12px 0 0; color: var(--muted); font-size: var(--text-xs); line-height: 1.85; }
.sample-box pre { padding: 16px; overflow: auto; border-radius: 8px; background: #f1f5f3; font-size: var(--text-xs); color: var(--ink-soft); }
.sample-preview { margin-top: 14px; }
.sample-preview img { display: block; width: min(260px,100%); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.privacy-choice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; font-size: var(--text-xs); color: var(--muted); }
.privacy-choice label, .check-line { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.privacy-choice input, .check-line input { margin-top: 4px; }
.consent-state { color: var(--muted); }
.important-note { display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px; border: 1px solid #e7d9be; border-radius: 12px; background: var(--amber-pale); font-size: var(--text-xs); color: #77562d; }
.important-note > span { display: grid; place-items: center; flex: 0 0 24px; height: 24px; border-radius: 50%; background: #f1e3c9; font-weight: 600; }
.important-note p { margin: 0; }
.important-note strong { color: #61401e; }
.image-settings { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin: 24px 0 10px; }
.image-settings label { display: grid; grid-template-columns: 1fr auto; gap: 8px; color: var(--ink-soft); font-size: var(--text-sm); align-items: center; }
.image-settings input, .image-settings select { grid-column: 1; grid-row: 2; min-height: 48px; width: 100%; padding: 10px 12px; }
.image-settings label span { grid-column: 2; grid-row: 2; color: var(--muted); font-size: var(--text-xs); }
.image-settings label:has(select) select { grid-column: 1 / -1; }
.check-line { margin: 18px 0 24px; font-size: var(--text-sm); color: var(--ink-soft); }
.image-results-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.image-card { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 12px; }
.image-card h3 { margin: 0 0 14px; font-size: var(--text-base); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.image-previews { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.image-previews figure { min-width: 0; margin: 0; }
.image-previews figcaption { margin-bottom: 7px; font-size: var(--text-xs); color: var(--muted); }
.image-previews img { display: block; width: 100%; height: 180px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: #f3f6f5; }
.image-metrics, .image-note { margin: 12px 0; font-size: var(--text-xs); color: var(--muted); }
.image-metrics strong { color: var(--ink-soft); }
.image-outcome { margin: 12px 0; font-size: var(--text-sm); font-weight: 600; }
.image-outcome[data-kind=bad], .image-error { color: var(--danger); }
.image-outcome[data-kind=good] { color: var(--teal-dark); }
.image-actions { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.image-actions a, .image-actions button { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 0; border: 0; background: none; color: var(--teal-dark); font-size: var(--text-sm); text-decoration: underline; text-underline-offset: 4px; }
.image-actions button { color: var(--danger); }
.image-card[data-error=true] { border-color: #e4b0aa; background: #fff9f8; }
.image-error { font-size: var(--text-sm); }
.faq { margin-top: var(--space-section); }
.faq h2 { margin: 0 0 20px; font-size: var(--text-xl); }
.faq details { border-top: 1px solid var(--line); padding: 17px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { color: var(--ink-soft); font-size: var(--text-base); font-weight: 600; }
.faq p { max-width: 850px; margin: 12px 0 0; font-size: var(--text-sm); color: var(--muted); }
.faq a { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; font-size: var(--text-sm); }
#csv-paste-source textarea { display: block; width: 100%; min-width: 0; resize: vertical; margin-top: 12px; padding: 14px; font: 400 var(--text-sm)/1.7 ui-monospace,Consolas,"Microsoft YaHei",monospace; text-align: left; }
#csv-paste-source .file-drop { cursor: text; background: #fafcfc; }
#csv-read-paste { margin-top: 20px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 22px 36px; max-width: 1120px; margin: 0 auto; padding: 28px 0 36px; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--text-xs); }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-size: var(--text-base); }
.footer-brand .brand-mark { width: 32px; height: 32px; font-size: 18px; border-radius: 9px; }
.site-footer p { margin: 8px 0 0; }
.site-footer nav { display: flex; align-items: center; justify-content: flex-end; gap: 8px 22px; flex-wrap: wrap; max-width: 640px; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 36px; }
#icp-link { flex-basis: 100%; justify-content: flex-end; }
@media (max-width: 1176px) { .site-footer { margin: 0 28px; } }
@media (max-width: 900px) {
  .image-settings { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .metric-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .site-footer { align-items: flex-start; }
  .site-footer nav { justify-content: flex-start; }
  #icp-link { justify-content: flex-start; }
}
@media (max-width: 760px) {
  .site-header { min-height: 72px; padding: 0 20px; gap: 16px; }
  .site-header nav { gap: 18px; }
  .brand { font-size: 18px; gap: 9px; }
  .brand-mark { width: 34px; height: 34px; font-size: 19px; }
  .directory, .workspace, .pdf-main { width: calc(100% - 40px); }
  .directory { padding-top: 32px; }
  .directory-hero { padding-bottom: 28px; }
  .hero-break { display: block; }
  .directory-toolbar { align-items: stretch; flex-direction: column; gap: 16px; }
  .search-field { width: 100%; }
  .directory h1 { font-size: 36px; }
  .directory-hero p { font-size: var(--text-base); }
  .tool-grid, .file-pair, .image-results-grid { grid-template-columns: minmax(0,1fr); }
  .tool-card { padding: 24px; }
  .tool-card h3 { font-size: 22px; }
  .card-copy { margin-bottom: 20px; }
  .repeat-note { align-items: flex-start; flex-direction: column; gap: 12px; padding: 22px; }
  .workspace, .pdf-main { padding-top: 24px; }
  .workspace-heading h1, .pdf-hero h1 { font-size: 32px; }
  .workspace-card, .results-card { padding: 22px; }
  .step-heading { gap: 12px; }
  .results-heading { align-items: flex-start; }
  .site-footer { margin: 0 20px; padding-bottom: 28px; }
}
@media (max-width: 480px) {
  .site-header { padding: 14px 16px 0; gap: 12px; flex-wrap: wrap; }
  .site-header nav { width: 100%; gap: 14px; font-size: var(--text-xs); }
  .brand { font-size: 17px; }
  .directory, .workspace, .pdf-main { width: calc(100% - 32px); }
  .directory h1 { font-size: 32px; }
  .directory-hero .eyebrow { display: none; }
  .directory h1 { margin-top: 0; }
  .section-title h2 { font-size: 24px; }
  .trust-row { column-gap: 16px; }
  .category-tabs { gap: 5px; }
  .category-tabs button { padding: 7px 12px; font-size: var(--text-xs); }
  .workspace-card, .results-card { padding: 20px 16px; }
  .step-heading h2, .results-heading h2 { font-size: 20px; }
  .file-drop { padding: 20px; }
  .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .column-changes { grid-template-columns: minmax(0,1fr); }
  .image-settings { gap: 16px 12px; }
  .image-settings label { font-size: var(--text-xs); }
  .image-previews img { height: 150px; }
  .sample-box, .scope-note, .privacy-settings { padding: 17px; }
  .site-footer { margin: 0 16px; }
}
@media (max-width: 359px) {
  .site-header nav { gap: 10px; }
  .brand { font-size: 16px; }
  .brand-mark { width: 30px; height: 30px; }
  .image-settings { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.skip-link { position: fixed; top: -80px; left: 16px; z-index: 10; padding: 12px 18px; border-radius: 8px; background: var(--teal-dark); color: white; }
.skip-link:focus { top: 12px; }
