/* CompressJPG — design system ported from CompressJPG.dc.html */

:root {
  --indigo: #6366F1;
  --indigo-dark: #4F46E5;
  --violet: #8B5CF6;
  --purple: #7C3AED;
  --ink: #181B2C;
  --text: #1F2333;
  --text-soft: #4B5068;
  --text-muted: #565B73;
  --text-faint: #8A8EA3;
  --text-ghost: #A0A3B8;
  --line: #ECECF2;
  --line-soft: #DDDEE8;
  --bg: #FAFAFC;
  --green: #10B981;
  --green-dark: #059669;
}

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--indigo); text-decoration: none; }
a:hover { color: var(--indigo-dark); text-decoration: underline; }
img { max-width: 100%; }
[hidden] { display: none !important; }
summary::-webkit-details-marker { display: none; }
summary { list-style: none; }
input[type=range] { accent-color: var(--indigo); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .header-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 24px; height: 64px;
  display: flex; align-items: center; gap: 32px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 17px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
  overflow: hidden; flex-shrink: 0;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-name { font-size: 18px; font-weight: 800; color: var(--text); letter-spacing: -0.3px; }
.brand-name .accent { color: var(--indigo); }
.site-nav { display: flex; gap: 24px; flex: 1; justify-content: flex-end; flex-wrap: wrap; }
.site-nav a { font-size: 14px; font-weight: 600; color: var(--text-soft); }
.site-nav a:hover, .site-nav a.active { color: var(--indigo); text-decoration: none; }

.nav-toggle {
  display: none; margin-left: auto;
  width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; cursor: pointer; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px; border-radius: 2px;
  background: var(--text); transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, #EEF2FF 0%, #F5F3FF 45%, #FDF4FF 100%);
  padding: 72px 24px 56px;
}
.hero-inner {
  max-width: 820px; margin: 0 auto; text-align: center;
  display: flex; flex-direction: column; gap: 20px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.8); border: 1px solid #E4E4F4;
  border-radius: 999px; padding: 7px 16px;
  font-size: 13px; font-weight: 600; color: var(--indigo);
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block; }
.hero h1 {
  margin: 0; font-size: clamp(34px, 4.6vw, 52px); line-height: 1.12;
  font-weight: 800; letter-spacing: -1.2px; color: var(--ink);
}
.hero h1 .gradient-text {
  background: linear-gradient(90deg, var(--indigo), #A855F7);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { margin: 0; font-size: 17px; line-height: 1.65; color: var(--text-muted); max-width: 620px; }

/* Page hero (inner pages) */
.page-hero { background: linear-gradient(160deg, #EEF2FF 0%, #F5F3FF 45%, #FDF4FF 100%); padding: 56px 24px 40px; }
.page-hero h1 { margin: 0; font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; letter-spacing: -0.8px; color: var(--ink); }
.page-hero p { margin: 12px 0 0; font-size: 16px; line-height: 1.65; color: var(--text-muted); max-width: 640px; }

/* ---------- Ad slots ---------- */
.ad-slot { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ad-slot--top { padding: 28px 24px 8px; }
.ad-slot--footer { padding: 32px 24px; }
.ad-slot--sidebar { padding-top: 8px; }
.ad-slot--article { padding: 28px 0; }
.ad-label {
  font-size: 10px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--text-ghost);
}
.ad-slot .adsbygoogle { display: block; width: 100%; max-width: 728px; }
.ad-slot--sidebar .adsbygoogle { max-width: 336px; min-height: 250px; }

/* ---------- Tool ---------- */
.tool-section { padding: 32px 24px 16px; }
.tool-inner { max-width: 1120px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }

.dropzone {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 2px dashed #D8D9E4; border-radius: 24px;
  box-shadow: 0 8px 32px rgba(24, 27, 44, 0.06);
  padding: 48px 32px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.dropzone.dragging {
  border-color: var(--indigo);
  box-shadow: 0 0 0 6px rgba(99, 102, 241, 0.15), 0 12px 40px rgba(99, 102, 241, 0.25);
}
.dropzone-icon {
  width: 64px; height: 64px; border-radius: 20px;
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
  color: #fff; font-size: 28px; line-height: 1;
}
.dropzone-title { font-size: 19px; font-weight: 700; color: var(--text); }
.dropzone-hint { font-size: 14px; color: var(--text-faint); }
.btn-select {
  background: linear-gradient(135deg, var(--indigo), var(--purple));
  color: #fff; border-radius: 12px; padding: 14px 32px;
  font-size: 15px; font-weight: 700; cursor: pointer;
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.4);
  transition: transform 0.15s, box-shadow 0.15s;
  display: inline-block;
}
.btn-select:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(99, 102, 241, 0.5); }
.dropzone-error {
  background: #FFF7ED; color: #C2410C; border-radius: 8px;
  padding: 8px 16px; font-size: 13px; font-weight: 600;
}

.controls-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 20px 24px; display: flex; gap: 32px; flex-wrap: wrap; align-items: center;
  box-shadow: 0 1px 3px rgba(24, 27, 44, 0.05);
}
.control-quality { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 220px; }
.control-quality label { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--text-soft); }
.control-quality label .value { color: var(--indigo); }
.control-quality input { width: 100%; cursor: pointer; }
.control-group { display: flex; flex-direction: column; gap: 8px; }
.control-label { font-size: 13px; font-weight: 700; color: var(--text-soft); }
.format-buttons { display: flex; gap: 6px; }
.format-btn {
  padding: 9px 18px; border-radius: 10px; border: 1px solid var(--line-soft);
  background: #fff; color: var(--text-muted);
  font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit;
}
.format-btn.active { border-color: var(--indigo); background: #EEF2FF; color: var(--indigo-dark); }
.maxw-select {
  padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line-soft);
  background: #fff; font-size: 13px; font-weight: 600; color: var(--text);
  font-family: inherit; cursor: pointer;
}

.progress-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 16px 24px; display: flex; flex-direction: column; gap: 10px;
}
.progress-head { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--text-soft); }
.progress-track { height: 8px; border-radius: 999px; background: #EEEEF4; overflow: hidden; }
.progress-fill {
  height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--indigo), #A855F7);
  transition: width 0.25s;
}

.results { display: flex; flex-direction: column; gap: 20px; }
.results-bar { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.results-stats { display: flex; gap: 24px; flex-wrap: wrap; flex: 1; }
.stat { display: flex; flex-direction: column; }
.stat-value { font-size: 22px; font-weight: 800; color: var(--ink); }
.stat-value.green { color: var(--green); }
.stat-value.indigo { color: var(--indigo); }
.stat-label { font-size: 12px; color: var(--text-faint); font-weight: 600; }
.btn-clear {
  background: transparent; border: 1px solid var(--line-soft); color: var(--text-muted);
  border-radius: 10px; padding: 11px 20px; font-size: 13px; font-weight: 700;
  cursor: pointer; font-family: inherit;
}
.btn-clear:hover { border-color: #B4B7C9; color: var(--text); }
.btn-download-all {
  background: var(--green); border: none; color: #fff; border-radius: 12px;
  padding: 13px 26px; font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit;
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
  display: flex; align-items: center; gap: 8px;
}
.btn-download-all:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(16, 185, 129, 0.45); }

.results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.result-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 1px 3px rgba(24, 27, 44, 0.05);
  transition: transform 0.15s, box-shadow 0.15s;
}
.result-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(24, 27, 44, 0.1); }
.result-thumb {
  border: none; padding: 0; cursor: zoom-in; height: 150px; display: block; width: 100%;
  background: repeating-conic-gradient(#FAFAFC 0% 25%, #F1F1F6 0% 50%) 0 0 / 18px 18px;
}
.result-thumb img { width: 100%; height: 150px; object-fit: cover; display: block; }
.result-thumb img.errored { opacity: 0.3; }
.result-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.result-name { font-size: 13px; font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-sizes { display: flex; align-items: center; gap: 8px; font-size: 12px; flex-wrap: wrap; }
.result-sizes .orig { color: var(--text-faint); text-decoration: line-through; }
.result-sizes .arrow { color: var(--text-muted); }
.result-sizes .new { font-weight: 700; color: var(--text); }
.pct-badge { border-radius: 999px; padding: 3px 10px; font-size: 11px; font-weight: 700; }
.pct-badge.saved { background: #ECFDF5; color: var(--green-dark); }
.pct-badge.grew { background: #FFF7ED; color: #C2410C; }
.pct-badge.error { background: #FEF2F2; color: #DC2626; }
.result-actions { display: flex; gap: 8px; }
.btn-card-download {
  flex: 1; background: #EEF2FF; color: var(--indigo-dark); border: none; border-radius: 9px;
  padding: 9px 0; font-size: 12px; font-weight: 700; cursor: pointer; font-family: inherit;
}
.btn-card-download:hover { background: #E0E7FF; }
.btn-card-remove {
  background: transparent; color: #B4B7C9; border: 1px solid var(--line); border-radius: 9px;
  padding: 9px 12px; font-size: 12px; font-weight: 700; cursor: pointer; font-family: inherit;
}
.btn-card-remove:hover { color: #DC2626; border-color: #FECACA; }

/* ---------- Content sections ---------- */
.section { padding: 48px 24px; }
.section--why { padding: 64px 24px 32px; }
.section--white { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -0.6px; color: var(--ink); }
.section h2.centered { text-align: center; }
.section p { margin: 0; font-size: 15px; line-height: 1.75; color: var(--text-muted); }
.section p strong { color: var(--text); }

.why-grid {
  max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px; align-items: start;
}
.why-copy { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.steps-grid, .features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px;
}
.features-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.step-card {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 32px 28px; display: flex; flex-direction: column; gap: 12px;
}
.step-num {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800;
}
.step-num.n1 { background: #EEF2FF; color: var(--indigo-dark); }
.step-num.n2 { background: #F5F3FF; color: var(--purple); }
.step-num.n3 { background: #ECFDF5; color: var(--green-dark); }
.step-card h3, .feature-card h3 { margin: 0; font-size: 18px; font-weight: 700; color: var(--text); }
.step-card p, .feature-card p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--text-muted); }
.feature-card { border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.feature-card h3 { font-size: 16px; }

.guide { display: flex; flex-direction: column; gap: 20px; }
.guide h3 { margin: 12px 0 0; font-size: 20px; font-weight: 700; color: var(--text); }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-list details { border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; background: var(--bg); }
.faq-list summary {
  font-size: 15px; font-weight: 700; color: var(--text); cursor: pointer;
  display: flex; justify-content: space-between; gap: 12px;
}
.faq-list summary .marker { color: var(--indigo); }
.faq-list details[open] summary .marker { transform: rotate(45deg); display: inline-block; }
.faq-list details p { margin: 12px 0 0; font-size: 14px; line-height: 1.7; color: var(--text-muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #B4B7C9; padding: 48px 24px 32px; margin-top: auto; }
.footer-inner { max-width: 1120px; margin: 0 auto; display: flex; flex-direction: column; gap: 32px; }
.footer-cols { display: flex; gap: 48px; flex-wrap: wrap; justify-content: space-between; }
.footer-brand { display: flex; flex-direction: column; gap: 12px; max-width: 320px; }
.footer-brand .brand-mark { width: 30px; height: 30px; border-radius: 8px; font-size: 15px; box-shadow: none; }
.footer-brand .name { font-size: 16px; font-weight: 800; color: #fff; }
.footer-brand p { margin: 0; font-size: 13px; line-height: 1.7; color: var(--text-faint); }
.footer-links { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col .col-title {
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text-muted);
}
.footer-col a { font-size: 13px; color: #B4B7C9; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom { border-top: 1px solid #2A2E44; padding-top: 20px; font-size: 12px; color: var(--text-muted); text-align: center; }

/* ---------- Compare modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(24, 27, 44, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.compare-box {
  background: #fff; border-radius: 20px; max-width: 960px; width: 100%; max-height: 88vh;
  overflow: auto; padding: 24px; display: flex; flex-direction: column; gap: 16px; box-sizing: border-box;
}
.compare-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.compare-name { font-size: 16px; font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-modal-close {
  background: #F4F4F8; border: none; border-radius: 10px; width: 36px; height: 36px;
  font-size: 15px; color: var(--text-muted); cursor: pointer; flex-shrink: 0;
}
.btn-modal-close:hover { background: var(--line); }
.compare-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.compare-pane { display: flex; flex-direction: column; gap: 8px; }
.compare-meta { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; }
.compare-meta .tag-orig { color: var(--text-faint); }
.compare-meta .tag-new { color: var(--green-dark); }
.compare-meta .size { color: var(--text-muted); }
.compare-img {
  background: repeating-conic-gradient(#FAFAFC 0% 25%, #F1F1F6 0% 50%) 0 0 / 18px 18px;
  border-radius: 12px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; min-height: 200px;
}
.compare-img img { max-width: 100%; max-height: 52vh; display: block; }

/* ---------- Inner pages (legal / blog / contact) ---------- */
.page-content { padding: 48px 24px 64px; }
.page-content .prose { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.prose h2 { margin: 16px 0 0; font-size: 24px; font-weight: 800; letter-spacing: -0.4px; color: var(--ink); }
.prose h3 { margin: 8px 0 0; font-size: 18px; font-weight: 700; color: var(--text); }
.prose p, .prose li { margin: 0; font-size: 15px; line-height: 1.8; color: var(--text-muted); }
.prose ul, .prose ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.prose strong { color: var(--text); }
.prose .updated { font-size: 13px; color: var(--text-faint); }
.article-figure { margin: 12px 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.article-figure svg { width: 100%; height: auto; display: block; }
.article-figure figcaption { margin-top: 10px; font-size: 13px; color: var(--text-faint); text-align: center; }
.prose code {
  background: #EEF2FF; color: var(--indigo-dark); border-radius: 6px;
  padding: 2px 7px; font-size: 13px;
}

/* Blog cards */
.blog-grid { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.blog-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(24, 27, 44, 0.1); text-decoration: none; }
.blog-card .kicker { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--indigo); }
.blog-card h2 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -0.3px; color: var(--ink); line-height: 1.35; }
.blog-card p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--text-muted); }
.blog-card .read-more { font-size: 13px; font-weight: 700; color: var(--indigo); margin-top: auto; }
.article-meta { font-size: 13px; color: var(--text-faint); }
.breadcrumbs { font-size: 13px; color: var(--text-faint); margin-bottom: 4px; }
.breadcrumbs a { color: var(--text-faint); }
.breadcrumbs a:hover { color: var(--indigo); }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 12px; max-width: 520px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--text-soft); }
.contact-form input, .contact-form textarea {
  border: 1px solid var(--line-soft); border-radius: 10px; padding: 11px 14px;
  font-size: 14px; font-family: inherit; color: var(--text);
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--indigo); outline: none; }
.contact-form textarea { resize: vertical; }
.btn-primary {
  background: linear-gradient(135deg, var(--indigo), var(--purple));
  color: #fff; border: none; border-radius: 12px; padding: 13px 28px;
  font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit;
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
}
.btn-primary:hover { transform: translateY(-1px); }

/* ---------- ZIP tool file list ---------- */
.zip-file-list { display: flex; flex-direction: column; gap: 8px; }
.zip-row {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 16px;
}
.zip-name { flex: 1; font-size: 13px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zip-size { font-size: 12px; color: var(--text-faint); white-space: nowrap; }

/* ---------- Cookie notice ---------- */
.cookie-notice {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90;
  max-width: 560px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 12px 40px rgba(24, 27, 44, 0.18);
  padding: 16px 20px; display: none; gap: 14px; align-items: center; flex-wrap: wrap;
}
.cookie-notice.visible { display: flex; }
.cookie-notice p { margin: 0; flex: 1; min-width: 220px; font-size: 13px; line-height: 1.6; color: var(--text-muted); }
.cookie-notice button {
  background: var(--ink); color: #fff; border: none; border-radius: 10px;
  padding: 10px 20px; font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit;
}

/* ---------- Layout helpers ---------- */
.page-wrap { min-height: 100vh; display: flex; flex-direction: column; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0;
}

@media (max-width: 640px) {
  .site-header .header-inner {
    gap: 12px; height: auto; min-height: 56px;
    padding: 10px 16px; flex-wrap: wrap;
  }
  .nav-toggle { display: flex; }
  .site-nav { display: none; flex-basis: 100%; flex-direction: column; gap: 0; padding: 4px 0 10px; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 4px; border-top: 1px solid var(--line); font-size: 15px; }

  .results-bar { flex-direction: column; align-items: stretch; gap: 14px; }
  .results-stats {
    justify-content: space-between; gap: 8px; flex-wrap: nowrap;
    background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px;
  }
  .stat { align-items: center; text-align: center; flex: 1; min-width: 0; }
  .stat-value { font-size: 17px; white-space: nowrap; }
  .stat-label { white-space: nowrap; }
  .results-bar .btn-clear, .results-bar .btn-download-all { width: 100%; justify-content: center; text-align: center; }

  .footer-links { gap: 32px; }
  .controls-card { gap: 20px; }
  .hero { padding: 48px 20px 40px; }
  .dropzone { padding: 36px 20px; }
}
