:root { color-scheme: light; --ink: #293137; --muted: #606b73; --green: #345d4c; --line: #d9dfe3; --paper: #fff; --accent: #fff; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--paper); font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select { font: inherit; }
button, select, summary { cursor: pointer; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: not-allowed; opacity: .45; }
:focus-visible { outline: 3px solid #549366; outline-offset: 4px; }
button { transition: background .15s, color .15s; }
.site-header, main, .site-footer { max-width: 1440px; margin: auto; padding-inline: 32px; }
.site-header { min-height: 62px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); gap: 20px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; font-size: 15px; font-weight: 600; }
.brand-icon { width: 28px; height: 28px; padding: 2px; background: var(--green); border-radius: 4px; fill: none; stroke: var(--accent); stroke-width: 1.5; }
.brand-divider { padding-inline: 6px; color: #a9b4a6; font-weight: 400; }
.brand-page { font-size: 14px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.nav-link { text-decoration: none; font-size: 13px; font-weight: 600; white-space: nowrap; }
.nav-link span, .inline-link span { margin-left: 10px; }
.intro { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; }
h1 { font-size: 26px; line-height: 1.3; font-weight: 600; margin: 0 0 8px; }
.intro-copy { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; }
.intro-note { text-align: right; flex-shrink: 0; }
.intro-note p { font-size: 12px; line-height: 1.6; color: var(--muted); margin: 7px 0 0; }
.badge { display: inline-block; font-size: 11px; font-weight: 500; padding: 4px 7px; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); background: #f4f6f7; white-space: nowrap; }
.upload-bar { display: grid; grid-template-columns: minmax(0, 1fr) 245px 178px; align-items: center; gap: 24px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.file-control { position: relative; display: flex; align-items: center; gap: 17px; min-width: 0; border-radius: 4px; padding: 5px; }
.file-control:focus-within { outline: 3px solid #549366; outline-offset: 5px; }
.file-control.dragging { background: #e8f3de; outline: 2px dashed #549366; outline-offset: 5px; }
.file-control input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.file-control input:disabled { cursor: wait; }
.upload-icon { flex: 0 0 44px; width: 44px; height: 44px; padding: 11px; background: #f0f3f4; border-radius: 4px; color: var(--muted); }
.file-copy { min-width: 0; }
.file-label { font-size: 14px; font-weight: 600; }
.file-label span { font-weight: 400; color: var(--muted); }
.file-copy p { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.file-copy .file-name { font-size: 12px; font-weight: 600; color: var(--green); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.settings { display: grid; grid-template-columns: 1fr; gap: 5px; border-left: 1px solid var(--line); padding-left: 25px; }
.settings label { font-size: 12px; font-weight: 600; }
.settings select { color: var(--ink); font-weight: 600; background: #fff; border: 0; font-size: 13px; padding: 3px 0; width: 100%; }
.settings > span { font-size: 11px; color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 15px; border-radius: 4px; padding: 11px 14px; font-size: 13px; font-weight: 600; border: 1px solid transparent; }
.primary { background: var(--green); color: white; min-height: 42px; justify-content: center; }
.primary:hover:not(:disabled) { background: #326447; }
.secondary { background: #fff; border-color: #bac4cb; color: var(--ink); width: 100%; }
.secondary:hover:not(:disabled) { background: #e9edef; }
.status-row { display: flex; align-items: center; gap: 12px; min-height: 42px; font-size: 11px; color: var(--muted); }
.status-row p { margin: 8px 0; }
.privacy-note { margin-left: auto; text-align: right; }
.error { color: #853e29; background: #fff0e7; border: 1px solid #e6c9b7; border-radius: 4px; font-size: 13px; padding: 15px; line-height: 1.5; margin: 0 0 18px; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 310px; border: 1px solid var(--line); border-radius: 4px; background: white; overflow: hidden; }
.comparison { padding: 20px; min-width: 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
h2 { font-size: 14px; font-weight: 600; margin: 0; }
.subtle { font-size: 11px; color: var(--muted); }
.image-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
figure { margin: 0; min-width: 0; }
figcaption { display: flex; justify-content: space-between; align-items: center; font-size: 12px; margin-bottom: 10px; }
figcaption > span:first-child { display: inline-flex; align-items: center; gap: 7px; }
.image-stage { aspect-ratio: 1.3; background: #f7f8f9; border: 1px solid #e0e5e8; border-radius: 3px; overflow: hidden; display: flex; align-items: center; justify-content: center; position: relative; }
.image-stage img, .image-stage canvas { width: 100%; height: 100%; object-fit: contain; }
.placeholder { text-align: center; padding: 15px; display: flex; flex-direction: column; align-items: center; color: var(--muted); }
.placeholder strong { font-size: 13px; font-weight: 500; line-height: 1.6; }
.placeholder > span { font-size: 12px; color: var(--muted); line-height: 1.7; margin-top: 5px; }
.image-note { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; line-height: 1.6; margin: 10px 0 0; }
.box-key { display: inline-block; width: 7px; height: 7px; border: 1px solid #477e56; flex-shrink: 0; }
.comparison-footer { display: flex; justify-content: space-between; align-items: center; gap: 18px; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 18px; }
.comparison-footer p { font-size: 11px; line-height: 1.7; color: var(--muted); margin: 0; max-width: 360px; }
.text-button { background: none; border: 0; color: var(--green); font-weight: 500; font-size: 12px; padding: 6px 0; white-space: nowrap; }
.text-button span { margin-left: 8px; }
.results-panel { background: #f6f8f9; border-left: 1px solid var(--line); padding: 20px; min-width: 0; }
.results-panel .section-heading { margin-bottom: 10px; gap: 8px; }
.results-panel h2 { font-size: 14px; }
.count-line { display: flex; align-items: baseline; gap: 10px; margin-top: 9px; }
.count-line strong { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 42px; font-weight: 500; line-height: 1.4; font-variant-numeric: tabular-nums; }
.count-line > span { font-size: 12px; color: var(--muted); }
.review-note { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 4px 0 16px; }
.limit-note { font-size: 11px; line-height: 1.6; color: #7a4b20; background: #fff1cd; padding: 10px; border-radius: 4px; }
.metadata { border-block: 1px solid var(--line); padding: 9px 0; margin: 0 0 16px; }
.metadata > div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; font-size: 12px; }
dt { color: var(--muted); }
dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }
details { margin-bottom: 18px; }
summary { font-size: 12px; font-weight: 600; padding: 4px 0; }
details p { font-size: 12px; line-height: 1.7; color: var(--muted); }
details pre { max-height: 240px; overflow: auto; font-size: 11px; background: #e9edef; padding: 10px; border-radius: 5px; }
.file-type { font-size: 11px; font-weight: 400; white-space: nowrap; }
.quickstart { display: grid; grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr); gap: 32px; padding: 28px 0; align-items: start; }
.quickstart h2 { font-size: 15px; font-weight: 600; }
.quickstart-copy p { font-size: 13px; color: var(--muted); line-height: 1.8; max-width: 330px; }
.quickstart-copy code { font-size: 12px; color: var(--green); }
.inline-link { font-size: 12px; text-decoration: none; font-weight: 600; display: inline-block; margin-top: 4px; }
.inline-link:hover, .nav-link:hover { text-decoration: underline; }
.code-panel { background: #f6f8f9; color: var(--ink); border: 1px solid var(--line); border-radius: 4px; min-width: 0; }
.code-header { display: flex; justify-content: space-between; align-items: center; padding: 9px 16px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.code-header button { font-size: 12px; color: var(--ink); border: 1px solid #bac4cb; border-radius: 4px; background: transparent; padding: 5px 9px; }
.code-header button:hover { background: #e9edef; }
.code-panel pre { font-size: 12px; line-height: 1.85; margin: 0; padding: 17px 19px 12px; overflow-x: auto; tab-size: 2; }
.code-panel > p { font-size: 11px; color: var(--muted); margin: 0; padding: 0 19px 17px; line-height: 1.6; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 18px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.skip-link { position: absolute; top: -60px; left: 20px; z-index: 5; background: white; padding: 12px; }
.skip-link:focus { top: 15px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (min-width: 1400px) { .image-stage { aspect-ratio: 1.2; } }
@media (max-width: 1100px) {
  .site-header, main, .site-footer { padding-inline: 28px; }
  .upload-bar { grid-template-columns: minmax(0, 1fr) 210px 150px; gap: 16px; }
  .workspace { grid-template-columns: minmax(0, 1fr) 285px; }
  .comparison, .results-panel { padding: 20px; }
  .placeholder strong { font-size: 12px; }
  .placeholder > span { font-size: 11px; }
  .comparison-footer { flex-wrap: wrap; gap: 8px; }
  .image-stage { aspect-ratio: .88; }
  .quickstart { gap: 30px; }
}
@media (max-width: 850px) {
  .upload-bar { grid-template-columns: minmax(0, 1fr) 190px; }
  .file-control { grid-column: 1 / -1; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
  .settings { border: 0; padding-left: 0; }
  .workspace { grid-template-columns: 1fr; }
  .results-panel { border-left: 0; border-top: 1px solid var(--line); }
  .image-stage { aspect-ratio: 1.2; }
  .metadata > div { font-size: 12px; }
  .results-panel h2, .review-note, summary { font-size: 12px; }
  .quickstart { grid-template-columns: 1fr; gap: 22px; }
  .quickstart-copy p { max-width: 100%; }
  .privacy-note { max-width: 220px; }
}
@media (max-width: 520px) {
  .site-header, main, .site-footer { padding-inline: 18px; }
  .site-header { min-height: 58px; }
  .brand { font-size: 15px; gap: 8px; }
  .brand-divider, .brand-page { display: none; }
  .nav-link { font-size: 11px; }
  .intro { padding: 20px 0; flex-direction: column; align-items: flex-start; gap: 12px; }
  h1 { font-size: 24px; }
  .intro-note { display: flex; align-items: center; gap: 10px; text-align: left; flex-wrap: wrap; }
  .intro-note p { margin: 0; font-size: 11px; }
  .intro-copy { font-size: 13px; }
  .upload-bar { grid-template-columns: 1fr; padding: 18px; gap: 20px; }
  .file-control { padding: 0 0 18px; gap: 12px; }
  .file-label { font-size: 13px; }
  .file-label span { display: block; font-size: 11px; margin-top: 3px; }
  .file-copy p { line-height: 1.5; }
  .settings select { padding-block: 8px; font-size: 14px; }
  .primary { justify-content: center; }
  .status-row { align-items: flex-start; flex-wrap: wrap; gap: 0 8px; padding: 10px 0 14px; }
  .status-row p { margin: 0; }
  .privacy-note { width: 100%; max-width: none; text-align: left; margin-top: 5px; font-size: 11px; }
  .comparison, .results-panel { padding: 18px; }
  .section-heading { margin-bottom: 20px; }
  .subtle { display: none; }
  .image-grid { grid-template-columns: 1fr; gap: 22px; }
  .image-stage { aspect-ratio: 1.2; }
  .placeholder strong { font-size: 13px; }
  .placeholder > span { font-size: 11px; }
  .image-note, .comparison-footer p, .text-button { font-size: 11px; }
  .comparison-footer { gap: 10px; }
  .code-panel pre { font-size: 11px; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 10px; font-size: 11px; }
}
