/* HeicLocal — warm paper workbench (Squoosh/TinyPNG-inspired, not AI SaaS) */
:root {
  --bg: #f4f1ea;
  --bg-card: #fffcf7;
  --bg-muted: #ebe6dc;
  --bg-tertiary: #f7f5f0;
  --ink: #1c1917;
  --muted: #57534e;
  --line: #d6d0c4;
  --line-strong: #a8a29e;
  --accent: #2f6b4f;
  --accent-hover: #245540;
  --accent-soft: #e7f0eb;
  --danger: #b42318;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.04), 0 4px 14px rgba(28, 25, 23, 0.05);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  /* Type scale — body/min reading ≥16px; xs/sm for chrome only */
  --text-xs: 0.8125rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.25rem;
  --text-xl: clamp(1.625rem, 3.8vw, 2.05rem);
  /* Layout */
  --page-gutter: clamp(1rem, 4vw, 1.75rem);
  --panel-pad-x: clamp(1rem, 3.2vw, 1.5rem);
  --page-max: 42rem;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 2.75rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-bottom: calc(var(--batch-bar-h, 0px) + 0.75rem);
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: clip;
  word-break: break-word;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgba(47, 107, 79, 0.15);
}

html[lang="zh"] body,
html[lang="zh-CN"] body,
html[lang="zh-Hans"] body,
html[lang^="zh"] body {
  line-height: 1.65;
  letter-spacing: 0.01em;
}

::selection {
  background: var(--accent-soft);
  color: var(--ink);
}

a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }

.wrap {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding-left: max(var(--page-gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--page-gutter), env(safe-area-inset-right, 0px));
  padding-bottom: 3rem;
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100dvh;
}

/* Header — flat, no glass; container queries follow content width */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: calc(1rem + env(safe-area-inset-top, 0px)) 0 0.85rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.25rem;
  background: var(--bg);
  position: relative;
  z-index: 10;
  container-type: inline-size;
  container-name: topbar;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: var(--text-base);
  flex: 0 0 auto;
  min-width: 0;
  max-width: min(100%, 16rem);
}

.brand a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  font-size: var(--text-base);
  min-width: 0;
}
.brand a:hover { color: inherit; text-decoration: none; }

.brand a > div {
  min-width: 0;
  overflow: hidden;
}

.brand-name {
  display: block;
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 600;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: block;
  flex: none;
  object-fit: contain;
  background: transparent;
  border: none;
}

.brand small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: var(--text-xs);
  margin-top: 0.05rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.top-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.4rem;
  justify-content: flex-end;
  min-width: 0;
  flex: none;
}

.lang-switch {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.15rem;
  flex: none;
}

.lang-btn {
  flex: none;
  padding: 0.3rem 0.5rem;
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.2;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -100px;
  z-index: 100;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--text-sm);
}
.skip-link:focus {
  top: 0.75rem;
  color: #fff;
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* Default = compact header (Guides menu + horizontal lang pair) */
.nav-toggle {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  flex: none;
  color: var(--muted);
  font-weight: 500;
  font-size: var(--text-sm);
  padding: 0.35rem 0.55rem;
  border: 1px solid transparent;
  background: transparent;
  box-shadow: none;
}
.nav-toggle:hover {
  color: var(--ink);
  background: var(--bg-muted);
  border-color: transparent;
}
.nav-toggle[aria-expanded="true"] {
  color: var(--ink);
  background: var(--bg-muted);
}

.nav-guides {
  display: none;
  gap: 0.2rem;
  margin-right: 0;
}
.nav-guides.is-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.4rem;
  padding-bottom: calc(0.4rem + env(safe-area-inset-bottom, 0px));
  min-width: 11rem;
  max-height: min(100dvh, 80vh);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 8px 24px rgba(28, 25, 23, 0.08);
  z-index: 20;
}
.nav-guides a {
  color: var(--muted);
  font-size: var(--text-sm);
  text-decoration: none;
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius-sm);
  min-height: 44px;
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.nav-guides a:hover {
  color: var(--ink);
  background: var(--bg-muted);
  text-decoration: none;
}

/* Wide topbar (content width): inline nav, hide Guides button */
@container topbar (min-width: 640px) {
  .nav-toggle { display: none; }
  .nav-guides {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    position: static;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    min-width: 0;
    max-height: none;
    overflow: visible;
    gap: 0.2rem;
    margin-right: 0.15rem;
  }
  .nav-guides.is-open {
    display: flex;
    flex-direction: row;
    position: static;
    box-shadow: none;
    border: none;
    padding: 0;
    max-height: none;
    overflow: visible;
  }
  .nav-guides a {
    font-size: var(--text-sm);
    padding: 0.35rem 0.5rem;
    min-height: 0;
  }
  .lang-btn {
    min-height: 2rem;
    min-width: auto;
    padding: 0.28rem 0.45rem;
  }
}

/* Fallback when container queries unsupported */
@supports not (container-type: inline-size) {
  @media (min-width: 720px) {
    .nav-toggle { display: none; }
    .nav-guides {
      display: flex;
      flex-direction: row;
      flex-wrap: nowrap;
      position: static;
      background: transparent;
      border: none;
      box-shadow: none;
      padding: 0;
      min-width: 0;
      gap: 0.2rem;
      margin-right: 0.15rem;
    }
    .nav-guides.is-open {
      display: flex;
      flex-direction: row;
      position: static;
      box-shadow: none;
      border: none;
      padding: 0;
    }
    .nav-guides a {
      font-size: var(--text-sm);
      padding: 0.35rem 0.5rem;
      min-height: 0;
    }
  }
}

.trust-block {
  margin: 0;
  padding: 0.7rem var(--panel-pad-x) 0.65rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg-card);
}
.trust-proof {
  margin-top: 0.4rem;
  font-size: var(--text-sm);
  color: var(--muted);
  background: var(--accent-soft);
  border: 1px solid #2f6b4f33;
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.75rem 0.55rem;
}
.trust-proof summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--accent-hover);
  padding: 0.35rem 0;
  list-style: none;
}
.trust-proof summary::-webkit-details-marker { display: none; }
.trust-proof summary::before {
  content: "▸ ";
  display: inline-block;
}
.trust-proof[open] summary::before { content: "▾ "; }
.trust-proof ol {
  margin: 0.25rem 0 0.35rem 1.1rem;
  padding: 0;
}
.trust-proof li { margin: 0.2rem 0; }

.footer-compare {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  align-items: center;
  margin: 0.35rem 0 0.45rem;
  font-size: var(--text-sm);
  color: var(--muted);
}
.footer-compare a { font-weight: 500; white-space: nowrap; }

.topbar { position: relative; }


/* Buttons — rectangular, small radius, no pills */
.btn,
button.btn {
  appearance: none;
  font: inherit;
  font-size: var(--text-sm);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--bg-card);
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  line-height: 1.3;
}
.btn:hover {
  border-color: var(--ink);
  text-decoration: none;
  color: var(--ink);
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  color: var(--muted);
  background: var(--bg-muted);
  border-color: var(--line);
  box-shadow: none;
}
.btn-primary:disabled {
  background: var(--bg-muted);
  border-color: var(--line);
  color: var(--muted);
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}
.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}
.btn-ghost:hover {
  color: var(--ink);
  background: var(--bg-muted);
  border-color: transparent;
}
.lang-btn.active {
  color: var(--ink);
  border-color: var(--line-strong);
  background: var(--bg-card);
}

/* Hero — quiet; dropzone is the true focal */
.hero {
  padding: 0.15rem 0 0.85rem;
}
.hero h1 {
  margin: 0 0 0.4rem;
  font-size: var(--text-xl);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.22;
  color: var(--ink);
}
.hero .lead {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-base);
  max-width: 34rem;
  font-weight: 400;
  line-height: 1.55;
  opacity: 0.92;
}

/* Converter workbench */
.panel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

/* SaaS-style dropzone: full dashed perimeter, inset card, visible Choose button */
.dropzone {
  margin: 1rem;
  padding: 1.75rem 1.25rem 1.5rem;
  min-height: 12.5rem; /* ~200px — reads as a drop target, not a text block */
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 2px dashed var(--accent);
  border-radius: var(--radius);
  background: var(--accent-soft);
  box-shadow: none;
  transition: background 0.12s ease, border-color 0.12s ease, border-style 0.12s ease, box-shadow 0.12s ease;
}
.dropzone:hover {
  background: #dceee4;
  border-color: var(--accent-hover);
  box-shadow: inset 0 0 0 1px rgba(47, 107, 79, 0.12);
}
.dropzone.dragover {
  border-style: solid;
  border-width: 2px;
  border-color: var(--accent-hover);
  background: #d0e6d9;
  box-shadow: inset 0 0 0 2px rgba(47, 107, 79, 0.2);
}
.dropzone:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.drop-ico {
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 0 0.35rem;
  border-radius: 50%;
  background: #fff;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.06), 0 0 0 1px rgba(47, 107, 79, 0.1);
  opacity: 1;
  font-size: 0; /* if SVG missing, no arrow glyph sizing */
  line-height: 0;
}
.drop-ico svg {
  width: 1.5rem;
  height: 1.5rem;
  display: block;
}
.dropzone h2 {
  margin: 0;
  font-size: var(--text-lg);
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.dropzone p,
.dropzone .drop-sub,
.dropzone .drop-hint {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.4;
}
.dropzone .drop-choose {
  margin: 0.55rem 0 0.15rem;
  min-height: 2.75rem; /* ≥44px tap target */
  padding: 0.6rem 1.25rem;
  font-weight: 650;
  cursor: pointer;
  pointer-events: auto;
}
.dropzone .drop-hint {
  font-size: var(--text-xs);
  opacity: 0.9;
}
.dropzone .drop-drag-label {
  display: none;
  margin: 0.15rem 0 0;
  font-size: var(--text-sm);
  font-weight: 650;
  color: var(--accent-hover);
}
.dropzone.dragover .drop-hint,
.dropzone.dragover .drop-choose,
.dropzone.dragover .drop-sub {
  opacity: 0.35;
}
.dropzone.dragover .drop-drag-label {
  display: block;
}

.trust-line {
  margin: 0;
  padding: 0 0 0.45rem;
  font-size: var(--text-sm);
  color: var(--muted);
  background: transparent;
  border-bottom: none;
  line-height: 1.45;
}
.trust-line strong {
  color: var(--accent-hover);
  font-weight: 650;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.55rem 1rem;
  padding: 0.75rem var(--panel-pad-x);
  background: var(--bg-card);
  border-top: 1px solid var(--line);
}
.field {
  flex: 0 1 auto;
  min-width: 140px;
  width: 100%;
}
.field label {
  display: block;
  font-size: var(--text-xs);
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.field .value {
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  font-weight: 600;
  font-family: var(--mono);
  font-size: var(--text-sm);
}
.field input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--text-sm);
  color: var(--muted);
  padding: 0;
  background: none;
  border: none;
}
.toggle .lock {
  color: var(--accent);
  font-size: var(--text-xs);
  font-weight: 700;
}

.actions {
  display: flex;
  gap: 0.4rem;
  margin-left: auto;
}

.status {
  display: none;
  margin: 0;
  padding: 0.55rem var(--panel-pad-x);
  font-size: var(--text-sm);
  border-top: 1px solid var(--line);
  background: var(--bg-tertiary);
  color: var(--muted);
}
.status.show { display: block; }
.status.ok {
  color: var(--accent-hover);
  background: var(--accent-soft);
  border-left: none;
  box-shadow: inset 2px 0 0 rgba(47, 107, 79, 0.35);
  padding-left: var(--panel-pad-x);
}
.status.error {
  color: var(--danger);
  background: #fceceb;
  border-left: none;
  box-shadow: inset 2px 0 0 rgba(180, 35, 24, 0.4);
  padding-left: var(--panel-pad-x);
}
.status.warn {
  color: #92400e;
  background: #fef3c7;
  border-left: none;
  box-shadow: inset 2px 0 0 rgba(217, 119, 6, 0.4);
  padding-left: var(--panel-pad-x);
}

.results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.65rem;
  padding: 0.85rem var(--panel-pad-x) 1rem;
  border-top: 1px solid var(--line);
}
.results:empty { display: none; padding: 0; border: 0; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.card .thumb {
  aspect-ratio: 1;
  min-height: 120px;
  min-width: 0;
  background: var(--bg-muted);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.card .meta { padding: 0.55rem 0.6rem 0.65rem; }
.card .name {
  font-size: var(--text-xs);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card .size {
  color: var(--muted);
  font-size: var(--text-xs);
  margin-top: 0.15rem;
  font-family: var(--mono);
}
.card .row { margin-top: 0.45rem; }
.card .row .btn { width: 100%; text-align: center; padding: 0.35rem 0.5rem; font-size: var(--text-sm); }
.card.is-error .err { color: var(--danger); white-space: normal; font-family: var(--font); }

/* Secondary content — quieter */
.trust {
  display: none; /* replaced by trust-line; keep class unused */
}

.guides {
  margin-top: var(--space-7);
}
.guides h2,
.faq h2,
.seo-copy h2 {
  margin: 0 0 0.75rem;
  padding-top: 0.15rem;
  font-size: var(--text-md);
  font-weight: 650;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.guides-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
@media (max-width: 520px) {
  .guides-grid { grid-template-columns: 1fr; }
}

.guide-card {
  display: block;
  padding: 0.8rem 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.guide-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(47, 107, 79, 0.12);
  text-decoration: none;
  color: inherit;
}
.guide-card strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.guide-card span {
  font-size: var(--text-xs);
  color: var(--muted);
  line-height: 1.4;
}

.faq {
  margin-top: var(--space-7);
}
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  padding: 0.7rem 0.9rem;
  margin-bottom: 0.45rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 550;
  font-size: var(--text-base);
}
.faq p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: var(--text-base);
  line-height: 1.7;
}

.footer {
  margin-top: var(--space-7);
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: var(--text-xs);
  color: var(--muted);
}
.footer-guides {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.5rem;
}
.footer-guides a {
  margin-right: 0;
  color: var(--muted);
  text-decoration: none;
  font-size: var(--text-xs);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}
.footer-guides a:hover { color: var(--accent); text-decoration: underline; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--accent); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Guide / article pages */
.article {
  max-width: none;
  padding: 0.25rem 0 1.5rem;
}
.article h1 {
  font-size: var(--text-xl);
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  line-height: 1.25;
}
.article .lead {
  color: var(--muted);
  font-size: var(--text-base);
  margin: 0 0 1.25rem;
  line-height: 1.7;
}
.article h2 {
  font-size: var(--text-md);
  font-weight: 650;
  margin: 1.6rem 0 0.45rem;
  letter-spacing: -0.01em;
}
.article p,
.article li {
  color: var(--muted);
  font-size: var(--text-base);
  line-height: 1.7;
}
.article ol,
.article ul {
  padding-left: 1.15rem;
  margin: 0.35rem 0 0;
}
.article li { margin: 0.3rem 0; }

.cta-bar {
  margin: 1rem 0 1.25rem;
  padding: 0.9rem var(--panel-pad-x);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  justify-content: space-between;
}
.cta-bar p {
  margin: 0;
  color: var(--ink);
  font-weight: 550;
  font-size: var(--text-base);
}

.related {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: var(--text-sm);
}
.related a {
  display: inline-block;
  margin: 0.35rem 0.85rem 0 0;
  color: var(--muted);
  text-decoration: none;
}
.related a:hover { color: var(--accent); text-decoration: underline; }

.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.5rem var(--panel-pad-x);
  border-bottom: 1px solid var(--line);
  background: var(--bg-tertiary);
}
.tool-actions .btn { font-size: var(--text-xs); }

.share-row {
  display: none;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.5rem var(--panel-pad-x);
  border-top: 1px solid var(--line);
  background: var(--bg-tertiary);
  font-size: var(--text-xs);
  color: var(--muted);
}
.share-row.show { display: flex; }

.seo-copy {
  margin-top: var(--space-7);
  padding-top: 0.15rem;
}
.seo-copy h2 {
  margin: 1.35rem 0 0.45rem;
}
.seo-copy ol {
  margin: 0.25rem 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: var(--text-base);
  line-height: 1.7;
}
.seo-copy li { margin: 0.4rem 0; }
.seo-copy p {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: var(--text-base);
  line-height: 1.7;
}

.article table.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  margin: 1rem 0;
}
.article table.compare th,
.article table.compare td {
  border: 1px solid var(--line);
  padding: 0.45rem 0.55rem;
  text-align: left;
}
.article table.compare th {
  background: var(--bg-muted);
}
.article .rank-note {
  font-size: var(--text-sm);
  color: var(--muted);
}

/* --- UX upgrade: progress, presets, page-drop, batch bar --- */
.btn-danger {
  background: #fff;
  border-color: var(--danger);
  color: var(--danger);
  font-weight: 600;
}
.btn-danger:hover:not(:disabled) {
  background: #fceceb;
  border-color: var(--danger);
  color: var(--danger);
}

/* layout already set on .dropzone above; keep busy + btn min-heights */
.dropzone.is-busy {
  pointer-events: none;
  cursor: wait;
  position: relative;
}
.dropzone.is-busy > * {
  opacity: 0.38;
}
.dropzone.is-busy::after {
  content: attr(data-busy-label);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: none;
  opacity: 1;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--accent);
  color: var(--accent-hover);
  font-size: var(--text-sm);
  font-weight: 650;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(47, 107, 79, 0.14);
}
.dropzone .btn,
.actions .btn,
.batch-bar .btn,
.tool-actions .btn {
  min-height: 2.5rem;
  padding: 0.55rem 1rem;
}

.page-drop-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(47, 107, 79, 0.14);
  border: 3px dashed var(--accent);
  pointer-events: none;
  align-items: center;
  justify-content: center;
}
.page-drop-overlay.show {
  display: flex;
}
.page-drop-overlay-inner {
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  font-weight: 600;
  color: var(--accent);
  box-shadow: 0 8px 28px rgba(28, 25, 23, 0.12);
}

.quality-block {
  flex: 1 1 220px;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.preset-chip {
  font-size: var(--text-sm);
  padding: 0.4rem 0.75rem;
  min-height: 2.25rem;
  border-radius: var(--radius-sm);
}
.preset-chip.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-hover);
  font-weight: 600;
}

.opt-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.15rem;
  flex: 1 1 100%;
  margin-top: 0.1rem;
}
.opt-check {
  cursor: pointer;
  user-select: none;
  gap: 0.45rem;
}
.opt-check input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--accent);
  flex: none;
}

.controls {
  align-items: flex-end;
}
.controls .actions {
  flex: 0 0 auto;
  align-self: center;
}

.progress-wrap {
  padding: 0.55rem var(--panel-pad-x) 0.75rem;
  border-top: 1px solid var(--line);
  background: var(--bg-tertiary);
}
.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: var(--text-xs);
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.progress-count {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  flex: none;
}
.progress-bar {
  height: 0.65rem;
  background: var(--bg-muted);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent) 0%, #3d8a64 100%);
  border-radius: inherit;
  transition: width 0.2s ease;
}


.batch-bar {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  padding: 0.7rem var(--panel-pad-x);
  border-top: 1px solid var(--line);
  background: var(--bg-card);
  box-shadow: 0 -6px 18px rgba(28, 25, 23, 0.06);
}
.batch-bar[hidden] {
  display: none !important;
}
.batch-bar-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
}
.batch-bar-actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

@media (max-width: 400px) {
  .dropzone {
    margin: 0.75rem;
    padding: 1.35rem 0.85rem 1.25rem;
    min-height: 11.25rem;
  }
  .preset-row {
    width: 100%;
  }
  .preset-chip {
    flex: 1 1 auto;
    text-align: center;
  }
  .controls .actions {
    width: 100%;
    margin-left: 0;
  }
  .controls .actions .btn {
    flex: 1 1 auto;
  }
  .batch-bar {
    padding-bottom: calc(0.7rem + env(safe-area-inset-bottom, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .progress-fill { transition: none; }
  .dropzone { transition: none; }
}


/* Round-2 mobile / touch / batch-bar */
.btn,
button.btn,
.preset-chip,
.nav-toggle,
.lang-btn,
.dropzone {
  touch-action: manipulation;
}

@media (max-width: 820px) {
  .field label,
  .opt-check,
  .toggle {
    font-size: 16px;
  }
  .opt-check input {
    width: 1.15rem;
    height: 1.15rem;
  }
}

.panel.is-batch-visible .results {
  padding-bottom: calc(0.85rem + var(--batch-bar-h, 0px));
}

.batch-bar {
  padding-bottom: calc(0.7rem + env(safe-area-inset-bottom, 0px));
  padding-left: max(var(--panel-pad-x), env(safe-area-inset-left, 0px));
  padding-right: max(var(--panel-pad-x), env(safe-area-inset-right, 0px));
}


/* Differentiation chrome */
.diff-chrome {
  padding: 0.55rem var(--panel-pad-x) 0.35rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg-tertiary);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.device-chip {
  margin: 0;
  font-size: var(--text-sm);
}
.device-chip > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
  font-weight: 600;
  color: var(--accent-hover);
  min-height: 2.25rem;
}
.device-chip > summary::-webkit-details-marker { display: none; }
.device-chip-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 107, 79, 0.18);
  flex: none;
}
.offline-pill {
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  border: 1px solid #2f6b4f33;
}
.vs-cloud-list {
  margin: 0.3rem 0 0.2rem 1.25rem;
  padding: 0;
  color: var(--muted);
  font-size: var(--text-xs);
}
.vs-cloud-list li { margin: 0.15rem 0; }
.session-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  font-size: var(--text-xs);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.session-clear {
  font-size: var(--text-xs) !important;
  min-height: 2rem;
  padding: 0.25rem 0.55rem !important;
}

.naming-drawer {
  margin: 0;
  padding: 0.4rem var(--panel-pad-x) 0.55rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg-tertiary);
  font-size: var(--text-sm);
}
.naming-drawer > summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  padding: 0.35rem 0;
  list-style: none;
  min-height: 2.25rem;
  display: flex;
  align-items: center;
}
.naming-drawer > summary::-webkit-details-marker { display: none; }
.naming-drawer > summary::before { content: "▸ "; color: var(--muted); }
.naming-drawer[open] > summary::before { content: "▾ "; }
.naming-body { display: flex; flex-direction: column; gap: 0.4rem; padding-bottom: 0.25rem; }
.naming-opt {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  cursor: pointer;
  color: var(--muted);
  line-height: 1.35;
}
.naming-opt input { margin-top: 0.2rem; accent-color: var(--accent); flex: none; }
.naming-pattern-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.65rem;
  padding-left: 1.5rem;
}
.naming-pattern-row input[type="text"] {
  font: inherit;
  font-size: 16px;
  padding: 0.4rem 0.55rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  min-width: 8rem;
  max-width: 12rem;
}
.naming-hint { font-size: var(--text-xs); color: var(--muted); }
.naming-preview {
  margin: 0.15rem 0 0;
  padding-left: 1.5rem;
  font-family: var(--mono);
  font-size: var(--text-xs);
  color: var(--ink);
}

.skipped-box {
  margin: 0;
  padding: 0.65rem var(--panel-pad-x) 0.75rem;
  border-top: 1px solid var(--line);
  background: var(--bg-tertiary);
  font-size: var(--text-sm);
  color: var(--muted);
}
.skipped-box[hidden] { display: none !important; }
.skipped-title { margin: 0 0 0.35rem; font-weight: 600; color: var(--ink); font-size: var(--text-sm); }
.skipped-box ul { margin: 0; padding-left: 1.1rem; }
.skipped-box li { margin: 0.15rem 0; }
.livephoto-note { margin: 0.45rem 0 0; font-size: var(--text-xs); }

.privacy-receipt {
  margin: 0;
  padding: 0.55rem var(--panel-pad-x) 0.75rem;
  border-top: 1px solid var(--line);
  background: var(--accent-soft);
  font-size: var(--text-sm);
}
.privacy-receipt[hidden] { display: none !important; }
.privacy-receipt > summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--accent-hover);
  list-style: none;
  min-height: 2.25rem;
  display: flex;
  align-items: center;
}
.privacy-receipt > summary::-webkit-details-marker { display: none; }
.receipt-body ul { margin: 0.25rem 0 0.5rem 1.1rem; padding: 0; color: var(--muted); }
.receipt-pre {
  margin: 0 0 0.55rem;
  padding: 0.55rem 0.65rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--mono);
  font-size: var(--text-xs);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 10rem;
  overflow: auto;
  color: var(--ink);
}
.receipt-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.card .size .save-pct {
  color: var(--accent);
  font-weight: 600;
  margin-left: 0.25rem;
}

/* ========== Layout: gutters + adaptive page width ========== */
@media (min-width: 900px) {
  :root {
    --page-max: 48rem;
  }
}

@media (max-width: 520px) {
  :root {
    --page-gutter: 1rem;
    --panel-pad-x: 1rem;
  }
  .topbar {
    margin-bottom: 1rem;
  }
}

@media (max-width: 360px) {
  :root {
    --page-gutter: 0.85rem;
    --panel-pad-x: 1rem;
  }
  .dropzone h2 {
    font-size: var(--text-md);
  }
}

/* Primary ZIP stays strongest */
.btn-primary {
  letter-spacing: 0.01em;
  box-shadow: 0 1px 0 rgba(28, 25, 23, 0.06);
}

/* Soften stacked borders between tertiary bands */
.diff-chrome + .naming-drawer,
.naming-drawer + .tool-actions,
.tool-actions + .controls {
  border-top: none;
}
.controls {
  border-top: 1px solid var(--line);
}

/* UI polish pass 2026-10-19 — proactive full visual / a11y / density */

/* Unified focus rings */
a:focus-visible,
.btn:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
.guide-card:focus-visible,
.dropzone:focus-visible,
.lang-btn:focus-visible,
.nav-guides a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.dropzone:focus-visible {
  outline-offset: 2px; /* inset dashed card — ring outside border */
}
.btn:focus:not(:focus-visible),
button:focus:not(:focus-visible),
summary:focus:not(:focus-visible),
input:focus:not(:focus-visible) {
  outline: none;
}

/* Collapse tertiary chrome into one quieter options group */
.diff-chrome,
.naming-drawer,
.tool-actions {
  background: var(--bg-tertiary);
  border-bottom: 1px solid transparent;
  border-top: none;
}
.diff-chrome {
  padding-top: 0.45rem;
  padding-bottom: 0.3rem;
  border-bottom: none;
}
.naming-drawer {
  padding-top: 0.2rem;
  border-bottom: none;
}
.tool-actions {
  padding-top: 0.35rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--line);
  opacity: 0.92;
}
.tool-actions .btn {
  font-size: var(--text-xs);
  color: var(--muted);
  background: transparent;
  border-color: var(--line);
  min-height: 2.25rem;
  padding: 0.4rem 0.75rem;
}
.tool-actions .btn:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  background: var(--bg-card);
}

/* Trust: one clear signal, not competing with dropzone */
.trust-block {
  padding: 0.55rem var(--panel-pad-x) 0.5rem;
  background: var(--bg-card);
}
.trust-line {
  font-size: var(--text-sm);
  line-height: 1.5;
}
.trust-proof {
  margin-top: 0.3rem;
  font-size: var(--text-xs);
  background: transparent;
  border: none;
  padding: 0;
  color: var(--muted);
}
.trust-proof summary {
  font-weight: 550;
  color: var(--muted);
  font-size: var(--text-xs);
  min-height: 2.25rem;
  display: flex;
  align-items: center;
  padding: 0.25rem 0;
}
.trust-proof summary:hover {
  color: var(--accent-hover);
}
.trust-proof[open] {
  margin-top: 0.35rem;
  padding: 0.45rem 0.65rem 0.55rem;
  background: var(--accent-soft);
  border: 1px solid #2f6b4f33;
  border-radius: var(--radius-sm);
}
.trust-proof[open] summary {
  color: var(--accent-hover);
  font-weight: 600;
  min-height: 0;
  padding: 0.15rem 0 0.25rem;
}

/* Device chip / offline: informational, not error-like */
.device-chip > summary {
  font-weight: 550;
  color: var(--muted);
  font-size: var(--text-xs);
}
.device-chip-dot {
  width: 0.45rem;
  height: 0.45rem;
  box-shadow: 0 0 0 2px rgba(47, 107, 79, 0.15);
}
.offline-pill {
  font-weight: 550;
  background: var(--bg-card);
  color: var(--muted);
  border-color: var(--line);
}
.session-strip {
  opacity: 0.9;
}

/* Share row: demoted (still shows after convert via JS .show) */
.share-row {
  background: transparent;
  border-top: 1px dashed var(--line);
  padding: 0.4rem var(--panel-pad-x) 0.55rem;
  font-size: var(--text-xs);
  color: var(--muted);
  opacity: 0.85;
}
.share-row .btn {
  font-size: var(--text-xs);
  min-height: 2rem;
  padding: 0.3rem 0.65rem;
  color: var(--muted);
  background: transparent;
  border-color: var(--line);
}

/* Primary Download ZIP always strongest when enabled */
.btn-primary:not(:disabled) {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 650;
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.08), 0 2px 8px rgba(47, 107, 79, 0.18);
}
.btn-primary:not(:disabled):hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 2px 4px rgba(28, 25, 23, 0.1), 0 4px 12px rgba(47, 107, 79, 0.22);
}

/* Dropzone remains #1 CTA — strong dashed card wins; do not revert to border:none / flat bg */
.dropzone {
  /* keep accent-soft + dashed perimeter from primary .dropzone rule */
  background: var(--accent-soft);
}

/* Range: thicker track / larger thumb on touch */
@media (hover: none) {
  .field input[type="range"] {
    height: 1.75rem;
  }
  .field input[type="range"]::-webkit-slider-runnable-track {
    height: 0.45rem;
    border-radius: 999px;
    background: var(--bg-muted);
  }
  .field input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 1.35rem;
    height: 1.35rem;
    margin-top: -0.45rem;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(28, 25, 23, 0.2);
  }
  .field input[type="range"]::-moz-range-track {
    height: 0.45rem;
    border-radius: 999px;
    background: var(--bg-muted);
  }
  .field input[type="range"]::-moz-range-thumb {
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(28, 25, 23, 0.2);
  }
}

/* details/summary comfort */
.faq details,
.naming-drawer,
.device-chip,
.privacy-receipt,
.trust-proof {
  border-radius: var(--radius-sm);
}
.faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.15rem 0;
  line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "▸";
  color: var(--muted);
  flex: none;
  font-size: var(--text-sm);
}
.faq details[open] summary::before { content: "▾"; }
.faq summary:hover {
  color: var(--accent-hover);
}
.faq details[open] {
  padding-bottom: 0.85rem;
  background: var(--bg-card);
  box-shadow: inset 0 0 0 1px rgba(47, 107, 79, 0.06);
}
.faq details[open] p {
  margin-top: 0.55rem;
  line-height: 1.6;
}
.device-chip > summary:hover,
.naming-drawer > summary:hover,
.privacy-receipt > summary:hover {
  background: rgba(28, 25, 23, 0.03);
  border-radius: var(--radius-sm);
}

/* Result cards */
.results {
  gap: 0.75rem;
  padding: 1rem var(--panel-pad-x) 1.1rem;
}
.card {
  display: flex;
  flex-direction: column;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 2px 10px rgba(28, 25, 23, 0.05);
}
.card .meta {
  padding: 0.6rem 0.65rem 0.7rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card .row {
  margin-top: auto;
  padding-top: 0.5rem;
}
.card .row .btn {
  min-height: 2.5rem;
  padding: 0.45rem 0.5rem;
}

/* Batch bar elevation */
.batch-bar {
  box-shadow: 0 -8px 24px rgba(28, 25, 23, 0.08);
  background: rgba(255, 252, 247, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.batch-bar .btn-primary {
  min-height: 2.5rem;
}

/* Guide cards */
.guide-card {
  min-height: 4.5rem;
  transition: border-color 0.12s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.guide-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(28, 25, 23, 0.07);
  transform: translateY(-1px);
  text-decoration: none;
  color: inherit;
}
.guide-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .guide-card { transition: border-color 0.12s ease, box-shadow 0.12s ease; }
  .guide-card:hover { transform: none; }
  .progress-fill { transition: none; }
  .batch-bar { backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* Nav mobile menu polish (compact only; wide topbar resets via @container) */
.nav-guides.is-open {
  box-shadow: 0 12px 32px rgba(28, 25, 23, 0.14);
  border-color: var(--line-strong);
  max-height: min(70dvh, 22rem);
}
@container topbar (min-width: 640px) {
  .nav-guides.is-open {
    box-shadow: none;
    border-color: transparent;
    max-height: none;
  }
}

/* Vertical rhythm between major sections */
.hero { margin-bottom: 0.15rem; }
.panel { margin-bottom: 0; }
.seo-copy { margin-top: var(--space-7); }
.guides { margin-top: var(--space-7); }
.faq { margin-top: var(--space-7); }
.footer {
  margin-top: var(--space-7);
  padding-top: var(--space-4);
  padding-bottom: calc(var(--space-5) + env(safe-area-inset-bottom, 0px));
}

/* Article / guide pages */
.article {
  padding: 0.35rem 0 1.75rem;
}
.article h1 { line-height: 1.22; }
.article h2 {
  margin: 1.85rem 0 0.5rem;
  line-height: 1.3;
}
.article p {
  line-height: 1.6;
  margin: 0.4rem 0 0;
}
.article .updated-at {
  margin: 0 0 0.65rem;
  font-size: var(--text-xs);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.cta-bar {
  margin: 1.15rem 0 1.35rem;
  gap: 0.75rem;
}
.cta-bar .btn-primary {
  min-height: 2.75rem;
  padding: 0.55rem 1.15rem;
  white-space: nowrap;
}
.related {
  margin-top: 2.25rem;
}

/* Sticky converter CTA on article pages (second cta-bar stays in flow) */
.article .cta-bar:first-of-type {
  position: sticky;
  top: 0;
  z-index: 4;
  background: rgba(255, 252, 247, 0.97);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-color: var(--line-strong);
  margin-top: 0.75rem;
}
@media (prefers-reduced-motion: reduce) {
  .article .cta-bar:first-of-type {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* Legal + 404 pages */
.legal-page,
.not-found {
  max-width: 36rem;
  padding: 0.5rem 0 2rem;
}
.legal-page h1,
.not-found h1 {
  font-size: var(--text-xl);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.22;
  margin: 0 0 0.5rem;
}
.legal-page .lead,
.not-found .lead {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 1.25rem;
}
.legal-page p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0.75rem 0 0;
  font-size: var(--text-base);
}
.legal-page code {
  font-family: var(--mono);
  font-size: var(--text-sm);
  background: var(--bg-muted);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}
.legal-page {
  max-width: 42rem;
}
.legal-page h2 {
  margin: 1.75rem 0 0.55rem;
  font-size: var(--text-md);
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--ink);
}
.legal-page h2:first-of-type {
  margin-top: 1.25rem;
}
.legal-page ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
  color: var(--muted);
  line-height: 1.6;
  font-size: var(--text-base);
}
.legal-page li {
  margin: 0.35rem 0;
}
.legal-page a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-page a:hover {
  color: var(--accent-hover);
}
.legal-page .legal-nav {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: var(--text-sm);
}
.legal-page strong {
  color: var(--ink);
  font-weight: 600;
}

.not-found {
  text-align: center;
  margin: 2.5rem auto 0;
}
.not-found-code {
  margin: 0 0 0.35rem;
  font-size: clamp(2.25rem, 8vw, 3rem);
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1;
}
.not-found-actions {
  margin-top: 1.5rem;
}
.not-found-links {
  margin-top: 1rem;
  font-size: var(--text-sm);
  color: var(--muted);
}
.not-found-links a {
  color: var(--muted);
  text-decoration: none;
}
.not-found-links a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Mobile ≤520: stack controls cleanly */
@media (max-width: 520px) {
  .controls {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    padding: 0.85rem var(--panel-pad-x);
  }
  .quality-block {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
  }
  .field {
    min-width: 0;
    width: 100%;
  }
  .field input[type="range"] {
    width: 100%;
  }
  .opt-row {
    width: 100%;
  }
  .controls .actions {
    width: 100%;
    margin-left: 0;
    display: flex;
    gap: 0.45rem;
  }
  .controls .actions .btn {
    flex: 1 1 auto;
    min-height: 2.75rem;
  }
  .controls .actions .btn-primary {
    flex: 1.4 1 auto;
  }
  .lang-btn,
  .nav-toggle,
  .btn-ghost {
    min-height: 44px;
    min-width: 44px;
  }
  .card .row .btn {
    min-height: 44px;
  }
  .preset-row {
    width: 100%;
  }
  .preset-chip {
    flex: 1 1 0;
    text-align: center;
    min-height: 2.5rem;
  }
  .tool-actions {
    gap: 0.35rem;
  }
  .tool-actions .btn {
    flex: 1 1 auto;
    min-height: 44px;
  }
  .article .cta-bar:first-of-type {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }
  .article .cta-bar:first-of-type .btn {
    width: 100%;
    text-align: center;
  }
}

/* Naming pattern input focus */
.naming-pattern-row input[type="text"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

/* Skipped / empty borders */
.skipped-box:empty,
.results:empty {
  display: none;
  padding: 0;
  border: 0;
}

/* Compare table overflow on small screens */
.article table.compare {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

/* Topbar rhythm */
.topbar {
  margin-bottom: 1.35rem;
  padding-bottom: 0.9rem;
}

/* Privacy receipt open spacing */
.privacy-receipt[open] .receipt-body {
  margin-top: 0.45rem;
}

/* ========== Visual audit pass — empty density / tap / footer / status ========== */

/* Hide tertiary chrome until files exist */
.panel:not(.has-files) .options-band,
.panel:not(.has-files) .diff-chrome,
.panel:not(.has-files) .naming-drawer,
.panel:not(.has-files) .tool-actions,
.panel:not(.has-files) .controls .actions {
  display: none;
}

/* Quality: presets primary, raw float quieter */
.quality-block .field label {
  font-weight: 400;
  color: var(--muted);
}
.quality-block .field .value {
  font-weight: 500;
  color: var(--muted);
  font-size: var(--text-xs);
  font-family: var(--mono);
}
.quality-block .field {
  flex: 0 0 auto;
  min-width: 0;
  width: 100%;
  min-height: 0;
}
.quality-block .field input[type="range"] {
  display: block;
  margin: 0;
  height: 1.5rem;
  opacity: 0.9;
}

/* Metadata always-on: subtle note, not a fake checkbox */
.meta-note {
  margin: 0;
  padding: 0;
  font-size: var(--text-xs);
  color: var(--muted);
  line-height: 1.4;
  opacity: 0.88;
  max-width: 18rem;
}
.opt-row .meta-note {
  flex: 1 1 auto;
}

/* Tap targets ≥44px on phone / coarse pointer */
@media (max-width: 520px), (hover: none) {
  .lang-btn,
  .session-clear,
  .preset-chip,
  .faq summary,
  .footer-guides a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .faq summary {
    padding: 0.35rem 0;
  }
  .footer-guides {
    gap: 0.5rem 0.75rem;
  }
  .preset-chip {
    justify-content: center;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

/* Article pages: related already lists guides — demote duplicate footer row */
body:has(main.article) .footer-guides {
  display: none;
}
body:has(main.article) .related {
  gap: 0.25rem 0.65rem;
}
body:has(main.article) .related a {
  white-space: nowrap;
  margin: 0.25rem 0.65rem 0 0;
}

/* Header hotfix: brand never mid-word wrap; Guides XOR inline nav */
.brand,
.brand-name {
  flex-shrink: 0;
}
.brand-name {
  white-space: nowrap;
}
/* Compact (default): links only as dropdown when .is-open — never inline beside Guides */
@container topbar (max-width: 639px) {
  .nav-toggle { display: inline-flex; }
  .nav-guides {
    display: none;
  }
  .nav-guides.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
  }
}
/* Wide: hide Guides; force inline row (overrides any is-open dropdown chrome) */
@container topbar (min-width: 640px) {
  .nav-toggle {
    display: none !important;
  }
  .nav-guides,
  .nav-guides.is-open {
    display: flex !important;
    flex-direction: row !important;
    position: static !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    min-width: 0;
  }
}

/* ========== Button vertical centering + article FAQ ========== */
.btn,
button.btn,
a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  vertical-align: middle;
  box-sizing: border-box;
}

.cta-bar .btn,
.cta-bar .btn-primary,
.article .cta-bar .btn,
.article .cta-bar .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.2rem;
  line-height: 1.2;
}

/* Article pages: bare <details> after FAQ (no .faq wrapper) */
.article > details,
.article .faq details,
.faq details {
  margin-bottom: 0.75rem;
  padding: 0.85rem 1rem 0.9rem;
}

.article > details + details,
.faq details + details {
  margin-top: 0.15rem;
}

.article > details summary,
.article .faq summary,
.faq summary {
  min-height: 2.5rem;
  padding: 0.25rem 0;
  line-height: 1.4;
}

.article > details p,
.article .faq details p,
.faq details p {
  margin: 0.65rem 0 0.15rem;
  padding-left: 1.15rem; /* indent past chevron */
  line-height: 1.65;
  color: var(--muted);
}

.article > details[open],
.faq details[open] {
  padding-bottom: 1rem;
}

/* Card look for article bare details */
.article > details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
}

.article > details > summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: var(--text-base);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.article > details > summary::-webkit-details-marker { display: none; }
.article > details > summary::before {
  content: "▸";
  color: var(--muted);
  flex: none;
  font-size: var(--text-sm);
}
.article > details[open] > summary::before { content: "▾"; }

/* ========== Full-site close-out: compact header + FAQ + footer ========== */

/* Content pages: brand | Converter | Guides dropdown | lang — never expand to 6 inline links */
.topbar--compact .nav-toggle {
  display: inline-flex !important;
}
.topbar--compact .nav-guides:not(.is-open) {
  display: none !important;
}
.topbar--compact .nav-guides.is-open {
  display: flex !important;
  flex-direction: column !important;
  position: absolute !important;
  right: 0 !important;
  top: calc(100% + 0.35rem) !important;
  background: var(--bg-card) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  padding: 0.4rem !important;
  padding-bottom: calc(0.4rem + env(safe-area-inset-bottom, 0px)) !important;
  min-width: 12rem !important;
  max-height: min(100dvh, 80vh) !important;
  overflow-y: auto !important;
  box-shadow: 0 8px 24px rgba(28, 25, 23, 0.08) !important;
  z-index: 20 !important;
  gap: 0.15rem !important;
}
.topbar--compact .nav-guides.is-open a {
  min-height: 44px !important;
  padding: 0.55rem 0.7rem !important;
}
.topbar--compact .top-converter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.35rem 0.6rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--muted);
  flex: none;
  white-space: nowrap;
}
.topbar--compact .top-converter:hover {
  color: var(--ink);
  background: var(--bg-muted);
  text-decoration: none;
}
.topbar--compact .brand {
  max-width: min(100%, 14rem);
}
.topbar--compact .top-actions {
  gap: 0.3rem;
}

/* FAQ breathing room (home + articles) */
.faq {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.faq h2 {
  margin-bottom: 0.35rem;
}
.faq details,
.article .faq details,
.article > details {
  margin: 0 !important;
  padding: 0.95rem 1.05rem 1rem !important;
}
.faq details + details,
.article .faq details + details {
  margin-top: 0 !important;
}
.faq details p,
.article .faq details p,
.article > details p {
  margin: 0.7rem 0 0.1rem !important;
  padding-left: 1.25rem !important;
  line-height: 1.7 !important;
}

/* Footer: no orphan mid-word wraps on links */
.footer a,
.footer-guides a,
.footer-meta a {
  white-space: nowrap;
}
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.35rem;
  row-gap: 0.35rem;
}
.footer > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.35rem;
}

/* Status strip: intentional left accent, not a stray tick */
.status.ok,
.status.error,
.status.warn {
  border-left-width: 3px;
  border-left-style: solid;
  padding-left: 0.85rem;
}
.status.ok { border-left-color: var(--ok, #16a34a); }
.status.error { border-left-color: var(--danger, #dc2626); }
.status.warn { border-left-color: var(--warn, #d97706); }

/* Narrow insets ~16px feel */
@media (max-width: 640px) {
  :root {
    --page-gutter: max(1rem, env(safe-area-inset-left, 0px));
    --panel-pad-x: 1rem;
  }
  .lang-btn {
    min-height: 44px;
    min-width: 44px;
  }
  .preset-chip {
    min-height: 44px;
  }
}

/* Legal pages share article rhythm */
.legal-page h1 {
  font-size: var(--text-2xl, 1.75rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}
.legal-page .lead {
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.legal-page h2 {
  margin-top: 1.75rem;
  margin-bottom: 0.55rem;
  font-size: var(--text-lg, 1.125rem);
}
.legal-page p,
.legal-page li {
  line-height: 1.7;
  color: var(--ink);
}
.legal-page p + p {
  margin-top: 0.65rem;
}


/* ========== QA E2E fixes Oct 19 ========== */
/* 1) Compact header: never clip EN/中文 at ~390px
   Prior wrap-only on .top-actions failed because .topbar stayed one row and
   .top-actions was flex:none — the whole actions block overflowed past 390.
   Fix: stack brand (row1) + full-width actions (row2) on narrow viewports.
   Media query (not @container) because the container cannot style itself. */
.topbar--compact .brand,
.topbar--compact .brand-name {
  flex: 0 0 auto;
  white-space: nowrap;
}
.topbar--compact .lang-switch {
  flex: none;
  flex-shrink: 0;
}

/* Hide long Converter label on very narrow compact headers — show short Home */
.top-converter-short { display: none; }
@container topbar (max-width: 400px) {
  .topbar--compact .top-converter-full { display: none; }
  .topbar--compact .top-converter-short {
    display: inline;
  }
}

/* Stack compact topbar so lang-switch never clips (EN Home/Guides are longer) */
@media (max-width: 430px) {
  .topbar--compact {
    flex-wrap: wrap;
    align-items: center;
    row-gap: 0.35rem;
    column-gap: 0.5rem;
  }
  .topbar--compact .brand {
    flex: 1 1 auto;
    max-width: 100%;
    min-width: 0;
  }
  /* Tagline off — frees row1; brand name stays one line */
  .topbar--compact .brand small {
    display: none;
  }
  .topbar--compact .top-actions {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    justify-content: flex-end;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    row-gap: 0.3rem;
  }
  .topbar--compact .top-converter,
  .topbar--compact .nav-toggle {
    font-size: var(--text-xs);
    padding: 0.3rem 0.45rem;
    min-height: 44px;
  }
  .topbar--compact .lang-btn {
    min-height: 44px;
    min-width: 44px;
    padding: 0.3rem 0.45rem;
  }
}

/* 2) Sample always visible in empty state */
.sample-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.65rem var(--panel-pad-x) 0.15rem;
}
.panel:not(.has-files) .sample-row {
  display: flex;
}
.panel:not(.has-files) .tool-actions {
  display: none;
}

/* 7) Result card size: don't break mid-number */
.card .size {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* 6) Footer meta / legal links ≥44px on mobile */
@media (max-width: 520px), (hover: none) {
  .footer-meta a,
  .footer > div a[href="/privacy"],
  .footer > div a[href="/terms"],
  .footer a[data-i18n="privacy"],
  .footer a[data-i18n="terms"],
  .footer a[data-i18n="sample"] {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* 8) Cancel only while converting */
#cancelBtn[hidden] {
  display: none !important;
}

/* ========== UI/UX OPT pass 2026-10-19 — hierarchy / progress / cards / empty ========== */

/* OPT-01: Sample is secondary inside dropzone — never compete with Choose */
.dropzone .drop-sample {
  margin-top: 0.35rem;
  min-height: 2.25rem;
  padding: 0.35rem 0.75rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.dropzone .drop-sample:hover:not(:disabled) {
  color: var(--accent-hover);
  background: rgba(255, 255, 255, 0.55);
  border-color: transparent;
  text-decoration: underline;
}
.dropzone .drop-sample:disabled {
  opacity: 0.45;
  text-decoration: none;
}
.dropzone.dragover .drop-sample {
  opacity: 0.35;
}
/* Legacy sample-row (if any page still has it) */
.sample-row { display: none !important; }

/* OPT-02 / OPT-06: Empty = quieter settings; has-files = clear actions band */
.panel:not(.has-files) .controls {
  background: var(--bg-tertiary);
  border-top: 1px dashed var(--line);
  padding-top: 0.65rem;
  padding-bottom: 0.7rem;
  gap: 0.55rem 1rem;
}
.panel.has-files .controls {
  background: var(--bg-card);
  border-top: 1px solid var(--line);
}
.controls-label {
  margin: 0 0 0.15rem;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.01em;
  flex: 1 1 100%;
}
.quality-block .controls-label {
  margin-bottom: 0.1rem;
}
.preset-chip.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-hover);
  font-weight: 650;
  box-shadow: inset 0 0 0 1px rgba(47, 107, 79, 0.2);
}
.panel:not(.has-files) .opt-row {
  opacity: 0.9;
}
.panel.is-converting .options-band,
.panel.is-converting .diff-chrome,
.panel.is-converting .naming-drawer,
.panel.is-converting .tool-actions,
.panel.is-converting .share-row {
  opacity: 0.55;
  pointer-events: none;
}
.panel.is-converting .controls {
  opacity: 0.72;
}

/* OPT-03 / OPT-10: Stronger progress */
.progress-wrap {
  padding: 0.75rem var(--panel-pad-x) 0.9rem;
  background: var(--accent-soft);
  border-top: 1px solid #2f6b4f33;
  border-bottom: 1px solid #2f6b4f22;
}
.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}
.progress-live {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--accent-hover);
  line-height: 1.35;
}
.progress-pct {
  font-family: var(--mono);
  font-size: var(--text-md);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--accent-hover);
  flex: none;
}
.progress-file-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: var(--text-xs);
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.progress-bar {
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  overflow: hidden;
  border: 1px solid #2f6b4f33;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  border-radius: 999px;
  transition: width 0.2s ease;
  min-width: 0;
}

/* OPT-04: Result card success */
.card.is-success {
  border-color: #2f6b4f55;
  box-shadow: 0 0 0 1px rgba(47, 107, 79, 0.06);
}
.card.is-success:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 12px rgba(47, 107, 79, 0.1);
}
.card .name-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}
.card .name-row .name {
  flex: 1;
  min-width: 0;
}
.card .card-ok {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.card .size {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
}
.card .size-meta {
  margin-top: 0.15rem;
  font-size: var(--text-xs);
  color: var(--muted);
  line-height: 1.35;
}
.card .size-meta .save-pct {
  color: var(--accent-hover);
  font-weight: 600;
}
.card .size-meta .save-pct.is-larger {
  color: #92400e;
  font-weight: 550;
}
.card .size-meta .meta-gone {
  opacity: 0.85;
}
.card .row .btn {
  min-height: 2.75rem;
}

/* OPT-05: Idle status hidden — only show when .show set by JS */
.status:not(.show) {
  display: none;
}

/* OPT-07: Touch targets */
@media (max-width: 520px), (hover: none) {
  .card .row .btn,
  .actions .btn,
  .batch-bar .btn,
  #cancelBtn {
    min-height: 44px;
  }
  .dropzone .drop-sample {
    min-height: 44px;
    padding: 0.5rem 0.85rem;
  }
  .progress-wrap {
    padding-left: var(--panel-pad-x);
    padding-right: var(--panel-pad-x);
  }
}

/* OPT-08: Soften guide hover so it doesn't compete with converter CTAs */
.guide-card:hover {
  transform: none;
  box-shadow: 0 0 0 1px rgba(47, 107, 79, 0.14);
}

/* OPT-09: Reduced motion — kill non-essential motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dropzone,
  .guide-card,
  .card,
  .progress-fill,
  .btn-primary,
  .page-drop-overlay,
  .preset-chip,
  .share-row,
  .skel-spinner {
    transition: none !important;
    animation: none !important;
  }
  .guide-card:hover { transform: none; }
  .card:hover,
  .card.is-success:hover {
    box-shadow: none;
  }
  .dropzone.is-busy::after {
    transform: translate(-50%, -50%);
  }
}

/* Focus on result download links */
.card .row .btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* When converting, Cancel must stay fully visible */
.panel.is-converting .controls .actions {
  opacity: 1;
  pointer-events: auto;
}
.panel.is-converting #cancelBtn:not([hidden]) {
  opacity: 1;
  box-shadow: 0 0 0 2px rgba(180, 35, 24, 0.12);
}

/* ========== Full OPT pass 2026-10-19 (OPT-02 / 11 / 13) ========== */

/* OPT-02: Options band grouping */
.options-band {
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--line);
}
.options-label {
  margin: 0;
  padding: 0.5rem var(--panel-pad-x) 0.1rem;
  font-size: 0.68rem;
  font-weight: 650;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.options-band .diff-chrome,
.options-band .naming-drawer,
.options-band .tool-actions {
  background: transparent;
}
.options-band .tool-actions {
  border-bottom: none;
  padding-bottom: 0.65rem;
}

/* OPT-13: Paste / drop hint discoverability when empty */
.panel:not(.has-files) .dropzone .drop-hint {
  margin-top: 0.35rem;
  font-size: var(--text-sm);
  color: var(--ink);
  opacity: 0.72;
  font-weight: 500;
  line-height: 1.45;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}
.dropzone .drop-hint .paste-kbd {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72em;
  font-weight: 650;
  padding: 0.12rem 0.4rem;
  border-radius: 0.3rem;
  border: 1px solid var(--line-strong, var(--line));
  background: rgba(255, 255, 255, 0.75);
  color: var(--accent-hover);
  letter-spacing: 0;
}
.dropzone.dragover .drop-hint .paste-kbd {
  opacity: 0.35;
}

/* OPT-11: Per-file skeleton / pending cards */
.card.is-pending {
  border-style: dashed;
  border-color: #2f6b4f55;
  background: var(--bg-tertiary);
  opacity: 0.95;
}
.card.is-pending .thumb-skeleton {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #e8efe9 0%, #f3f7f4 50%, #e8efe9 100%);
  background-size: 200% 100%;
  animation: skel-shimmer 1.2s ease-in-out infinite;
  min-height: 7.5rem;
}
.skel-spinner {
  width: 1.35rem;
  height: 1.35rem;
  border: 2px solid #2f6b4f33;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: skel-spin 0.7s linear infinite;
}
.card.is-pending .pending-label {
  color: var(--accent-hover);
  font-weight: 550;
  white-space: normal;
}
.card.is-pending .name {
  opacity: 0.85;
}
@keyframes skel-spin {
  to { transform: rotate(360deg); }
}
@keyframes skel-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .card.is-pending .thumb-skeleton {
    animation: none;
    background: #e8efe9;
  }
  .skel-spinner {
    animation: none;
    border-top-color: var(--accent);
    opacity: 0.85;
  }
}

/* ========== Type + controls density 2026-10-19 ========== */
/* Body/min reading text ≥16px (1rem). Never use --text-sm for seo-copy / FAQ / article paragraphs. */
/* .field must not flex-grow inside .quality-block (was 1 1 160px → ~160px empty under slider). */
