/* Versioned asset f56e4e4187ca */
/* Text-first UI. Three text tones (t1 > t2 > t3) — swap these variables to theme. */
:root {
  --bg: #ffffff;
  --t1: #1a1a1a;
  --t2: #6e6e6e;
  --t3: #a3a3a3;
  --hover: #ededed;
  --error: #b3261e;
  --danger-bg: #fff4f3;
  --font: system-ui;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131313;
    --t1: #e6e6e6;
    --t2: #969696;
    --t3: #5e5e5e;
    --hover: #242424;
    --error: #ff7168;
    --danger-bg: #211718;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--t1);
  line-height: 1.65;
}

.container { max-width: 680px; margin: 0 auto; padding: 0 1.25rem; }

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

h1 { font-size: 1.7rem; line-height: 1.25; margin: 2rem 0 0.5rem; }
h2 { font-size: 1.15rem; margin: 2.5rem 0 0.5rem; }
h3 { font-size: 1rem; margin: 1.5rem 0 0.25rem; }
p, li { color: var(--t2); }
h1 + .sub, .privacy-line { color: var(--t2); margin-top: 0; }

/* Header / footer */
.site-header nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.1rem 1.25rem 0.5rem;
}
.brand { font-weight: 700; text-decoration: none; }
.nav-links a { margin-left: 1.25rem; color: var(--t2); text-decoration: none; }
.nav-links a:hover { color: var(--t1); background: var(--hover); }

main { padding-bottom: 3rem; }

.site-footer { margin-top: 3rem; padding: 1.5rem 0 2.5rem; font-size: 0.85rem; }
.site-footer p, .site-footer a { color: var(--t3); }
.site-footer nav a { margin-right: 1rem; text-decoration: none; }
.site-footer nav a:hover { color: var(--t1); background: var(--hover); }
.copyright { margin-bottom: 0; }

/* Buttons: no borders, no backgrounds — hover highlight only */
.btn, .format-btn {
  border: none;
  border-radius: 0;
  background: none;
  font: inherit;
  line-height: 1.25;
  color: var(--t2);
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover, .format-btn:hover { background: var(--hover); color: var(--t1); }
.btn.primary { color: var(--t1); font-weight: 600; }
.btn.destructive {
  background: var(--danger-bg);
  color: var(--error);
}
.btn.destructive:hover { background: var(--danger-bg); color: var(--error); filter: brightness(0.96); }
.btn:disabled { color: var(--t3); cursor: wait; }
.format-btn { font-size: 0.9rem; color: var(--t3); }
.format-btn.selected { color: var(--t1); font-weight: 700; }
.format-btn:disabled { color: var(--t3); text-decoration: line-through; cursor: not-allowed; }

/* Tool UI */
.tool-ui { margin: 1.75rem 0; }
.dropzone {
  border: 1px dashed var(--t3);
  text-align: center;
  padding: 3rem 1rem;
  cursor: pointer;
}
.dropzone:hover, .dropzone:focus-visible, .dropzone.dragging { background: var(--hover); outline: none; }
.dropzone.has-files { padding: 1rem; margin-bottom: 0.75rem; }
.dropzone.has-files .dz-primary::before { content: "Add more: "; }
.home-dropzone.has-files { padding: 1rem; }
.dz-primary { color: var(--t1); font-weight: 600; margin: 0; }
.dz-secondary { color: var(--t3); margin: 0.3rem 0 0; }

/* Homepage converter: the primary action should look actionable. */
.home-hero { margin-top: 2rem; }
.home-hero h1 { margin-top: 0; font-size: 2rem; max-width: 18ch; }
.home-tool { margin-top: 1.5rem; }
.home-dropzone { padding: 2.5rem 1rem; }
.choose-cta {
  display: inline-block;
  border-radius: 0;
  padding: 0.65rem 1.1rem;
  background: var(--t1);
  color: var(--bg);
  font-weight: 700;
}
.home-dropzone:hover .choose-cta, .home-dropzone:focus-visible .choose-cta {
  opacity: 0.85;
}
.format-support {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.75rem 0 0;
  color: var(--t3);
  font-size: 0.8rem;
}
.format-support span {
  border: 1px solid var(--hover);
  border-radius: 999px;
  padding: 0.08rem 0.45rem;
  color: var(--t2);
}
.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  margin: 0.65rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
}
.trust-list li::before { content: "✓ "; color: var(--t1); }
.home-tool .format-btn {
  border: 1px solid var(--hover);
  margin-right: 0.2rem;
}
.home-tool .format-btn.selected {
  background: var(--hover);
  border-color: var(--hover);
  color: var(--t1);
}
.home-tool .btn.primary {
  display: inline-block;
  padding: 0.55rem 0.8rem;
  background: var(--hover);
  color: var(--t1);
}
.home-tool .btn.primary:hover { filter: brightness(0.96); }

.file-info { display: flex; align-items: center; gap: 0.75rem; margin: 1rem 0; word-break: break-word; }
.file-info img { width: 56px; height: 56px; object-fit: contain; }
.file-info span { font-size: 0.8rem; color: var(--t2); }
.image-selection-heading {
  margin-top: 0.75rem;
  font-size: 0.85rem;
}
.selection-heading > span:last-child {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.selection-heading .btn {
  padding: 0.35rem 0.6rem;
  font-size: 0.82rem;
  font-weight: 500;
}
.image-file-queue { max-height: 16rem; overflow-y: auto; }
.image-file-queue .image-queue-item { justify-content: flex-start; }
.image-file-queue .image-queue-item .queue-actions { margin-left: auto; }
.image-thumb {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  padding: 0;
  border: 1px solid var(--hover);
  border-radius: 0;
  background: var(--bg);
  cursor: zoom-in;
  overflow: hidden;
}
.image-thumb:hover, .image-thumb:focus-visible { border-color: var(--t2); outline: none; }
.image-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.image-queue-name { min-width: 0; flex: 1; }
.image-preview-dialog {
  width: min(92vw, 1000px);
  max-width: none;
  max-height: 92vh;
  padding: 0.75rem;
  border: 1px solid var(--t3);
  border-radius: 0.5rem;
  background: var(--bg);
  color: var(--t1);
}
.image-preview-dialog::backdrop { background: rgba(0, 0, 0, 0.72); }
.image-preview-dialog figure { margin: 0; }
.image-preview-dialog img {
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: var(--hover);
}
.image-preview-dialog figcaption {
  padding: 0.6rem 0.25rem 0.1rem;
  color: var(--t2);
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}
.preview-close { display: block; margin: 0 0 0.5rem auto; }
.persistence-status {
  margin: -0.75rem 0 0.75rem;
  color: var(--t3);
  font-size: 0.76rem;
}

.control-row { margin: 0.9rem 0; }
.control-row label, .row-label { display: inline-block; font-size: 0.92rem; color: var(--t2); margin-right: 0.5rem; }
.control-row select, .control-row input[type="range"] { max-width: 100%; accent-color: var(--t1); }
.control-row select { font: inherit; color: var(--t1); background: var(--bg); border: none; padding: 0.3rem 0; }
.control-row.dims { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.control-row.dims label { margin: 0; display: flex; align-items: center; gap: 0.4rem; }
.control-row.dims input[type="number"] {
  width: 6rem;
  font: inherit;
  font-size: 0.9rem;
  color: var(--t1);
  background: var(--bg);
  border: none;
  border-bottom: 1px solid var(--t3);
  padding: 0.2rem 0.1rem;
}
.control-row.dims input[type="number"]:focus { outline: none; border-bottom-color: var(--t1); }

.result p { font-size: 0.9rem; color: var(--t1); font-weight: 600; }
.result .btn { margin-right: 0.5rem; }
.batch-results {
  list-style: none;
  margin: 0.5rem 0 1rem;
  padding: 0;
}
.batch-results li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--hover);
  font-size: 0.85rem;
}
.batch-results a { color: var(--t2); overflow-wrap: anywhere; }
.batch-results span { color: var(--t3); flex: 0 0 auto; }

.error { color: var(--error); }

/* Content */
.tool-list { list-style: none; padding: 0; margin: 0.5rem 0; }
.tool-list li { margin: 0.35rem 0; }
.tool-list a { color: var(--t2); text-decoration: none; }
.tool-list a:hover { color: var(--t1); background: var(--hover); }

.pdf-tool-list li { margin: 0.75rem 0; }
.pdf-tool-list li > span { display: block; font-size: 0.88rem; color: var(--t3); }
.tool-categories section { margin-top: 2.5rem; }
.tool-categories section h2 { margin-top: 0; }
.eyebrow { margin: 2rem 0 -1.2rem; color: var(--t3); font-size: 0.8rem; }
.eyebrow a { color: var(--t3); text-decoration: none; }

/* PDF tools reuse the same quiet, text-first design as image tools. */
.pdf-selection { margin-top: 1.25rem; }
.selection-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--t1); font-weight: 600; }
.file-queue { list-style: none; margin: 0.5rem 0 1.25rem; padding: 0; }
.file-queue li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.35rem 0;
  border-bottom: none;
  font-size: 0.84rem;
  word-break: break-word;
}
.file-queue li + li { margin-top: 0.35rem; }
.queue-actions { display: flex; flex: 0 0 auto; }
.queue-actions .btn { padding: 0.3rem 0.5rem; font-size: 0.76rem; font-weight: 500; }
.pdf-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem 1.25rem; margin: 1.25rem 0; }
.pdf-field { display: flex; flex-direction: column; gap: 0.25rem; color: var(--t2); font-size: 0.86rem; }
.pdf-field input:not([type="range"]), .pdf-field select {
  width: 100%;
  min-width: 0;
  border: none;
  border-bottom: 1px solid var(--t3);
  border-radius: 0;
  padding: 0.35rem 0.1rem;
  background: var(--bg);
  color: var(--t1);
  font: inherit;
}
.pdf-field input:focus, .pdf-field select:focus { outline: none; border-bottom-color: var(--t1); }
.range-control { display: flex; align-items: center; gap: 0.65rem; }
.range-control input { flex: 1; accent-color: var(--t1); }
.range-control output { min-width: 3rem; color: var(--t1); }
.processing { color: var(--t2); font-style: italic; }

.related { list-style: none; padding: 0; }
.related li { margin: 0.35rem 0; }
.related a { color: var(--t2); text-decoration: none; }
.related a:hover { color: var(--t1); background: var(--hover); }

.faq details { padding: 0.5rem 0; }
.faq summary { color: var(--t1); font-weight: 600; cursor: pointer; }
.faq summary:hover { background: var(--hover); }
.faq details p { color: var(--t2); margin: 0.5rem 0 0.25rem; }

@media (max-width: 480px) {
  h1 { font-size: 1.4rem; }
  .home-hero h1 { font-size: 1.65rem; }
  .dropzone { padding: 2.25rem 0.75rem; }
  .site-header nav { align-items: flex-start; flex-direction: column; gap: 0.35rem; }
  .nav-links { display: flex; width: 100%; gap: 0.85rem; justify-content: flex-start; }
  .nav-links a { margin-left: 0; }
  .pdf-fields { grid-template-columns: 1fr; }
  .file-queue li { align-items: flex-start; flex-direction: column; }
  .image-file-queue .image-queue-item {
    align-items: center;
    flex-direction: row;
    gap: 0.6rem;
    padding: 0.45rem 0;
  }
}
