/* Production bundle: icon subset + style.css + reference-theme.css. */
/*! Bootstrap Icons v1.11.1 — subset for Free Image Converter */
@font-face{font-display:swap;font-family:bootstrap-icons;src:url("../fonts/bootstrap-icons-subset.woff2?v=1.11.1-fic1") format("woff2")}
.bi::before,[class*=" bi-"]::before,[class^=bi-]::before{display:inline-block;font-family:bootstrap-icons!important;font-style:normal;font-weight:400!important;font-variant:normal;text-transform:none;line-height:1;vertical-align:-.125em;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
.bi-arrow-clockwise::before{content:"\f116"}.bi-arrow-counterclockwise::before{content:"\f117"}.bi-arrow-down::before{content:"\f128"}.bi-arrow-left::before{content:"\f12f"}.bi-arrow-left-right::before{content:"\f12b"}.bi-arrow-repeat::before{content:"\f130"}.bi-arrow-right::before{content:"\f138"}.bi-arrow-up::before{content:"\f148"}.bi-arrows-angle-expand::before{content:"\f14a"}.bi-arrows-fullscreen::before{content:"\f14d"}.bi-aspect-ratio::before{content:"\f150"}.bi-badge-ad::before{content:"\f161"}.bi-bar-chart::before{content:"\f17e"}.bi-bezier2::before{content:"\f18c"}.bi-bounding-box::before{content:"\f1b6"}.bi-box-arrow-down::before{content:"\f1b9"}.bi-brightness-high::before{content:"\f1d2"}.bi-check::before{content:"\f26e"}.bi-check-circle::before{content:"\f26b"}.bi-check-circle-fill::before{content:"\f26a"}.bi-check2-circle::before{content:"\f270"}.bi-chevron-right::before{content:"\f285"}.bi-circle-half::before{content:"\f288"}.bi-clock-history::before{content:"\f292"}.bi-cloud-slash::before{content:"\f2b8"}.bi-cpu::before{content:"\f2d6"}.bi-crop::before{content:"\f2dd"}.bi-download::before{content:"\f30a"}.bi-droplet::before{content:"\f30d"}.bi-exclamation-circle-fill::before{content:"\f332"}.bi-eye::before{content:"\f341"}.bi-file-earmark-pdf::before{content:"\f63e"}.bi-file-earmark-zip::before{content:"\f391"}.bi-file-pdf::before{content:"\f640"}.bi-files::before{content:"\f3c2"}.bi-globe2::before{content:"\f3ef"}.bi-grid::before{content:"\f3fc"}.bi-grip-vertical::before{content:"\f3fe"}.bi-image::before{content:"\f42a"}.bi-info-circle::before{content:"\f431"}.bi-layers::before{content:"\f45b"}.bi-lightning-charge-fill::before{content:"\f46c"}.bi-lock::before{content:"\f47b"}.bi-lock-fill::before{content:"\f47a"}.bi-moon::before{content:"\f497"}.bi-palette::before{content:"\f4b1"}.bi-palette-fill::before{content:"\f4b0"}.bi-pencil-square::before{content:"\f4ca"}.bi-person-check::before{content:"\f4d6"}.bi-person-check-fill::before{content:"\f4d5"}.bi-phone::before{content:"\f4e7"}.bi-plus-circle::before{content:"\f4fa"}.bi-plus-lg::before{content:"\f64d"}.bi-shield-check::before{content:"\f52f"}.bi-shield-lock::before{content:"\f538"}.bi-shield-lock-fill::before{content:"\f537"}.bi-sliders::before{content:"\f56b"}.bi-snow::before{content:"\f56d"}.bi-speedometer2::before{content:"\f580"}.bi-square::before{content:"\f584"}.bi-stars::before{content:"\f589"}.bi-symmetry-horizontal::before{content:"\f5a8"}.bi-symmetry-vertical::before{content:"\f5a9"}.bi-toggles::before{content:"\f5d9"}.bi-tools::before{content:"\f5db"}.bi-transparency::before{content:"\f8da"}.bi-unlock::before{content:"\f600"}.bi-x::before{content:"\f62a"}.bi-x-lg::before{content:"\f659"}

:root {
  /* Modern 2025 Color Palette */
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --secondary: #0891b2;
  --accent: #06b6d4;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;

  /* Neutral Colors */
  --dark: #0f172a;
  --dark-light: #1e293b;
  --gray: #475569;
  --gray-light: #cbd5e1;
  --light: #f8fafc;
  --bg-primary: #fafbfc;
  --bg-secondary: #f4f6f8;
  --bg-card: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border-light: #e2e8f0;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --gradient-secondary: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
  --gradient-hero: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);

  /* Shadows */
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Content, policy, contact and monetization-safe surfaces */
.content-hero {
  max-width: 760px;
  margin: 0 auto 3rem;
  text-align: center;
}

.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 2rem;
  color: var(--text-secondary);
  font-size: 0.86rem;
}
.page-breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}
.page-breadcrumb a:hover,
.page-breadcrumb a:focus-visible { text-decoration: underline; }
.footer-link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}
.footer-link-button:hover,
.footer-link-button:focus-visible {
  color: var(--primary);
  text-decoration: underline;
}

.content-hero h1,
.policy-article h1 {
  margin: 0.6rem 0 1rem;
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 850;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.content-hero p,
.policy-article header > p:not(.policy-meta) {
  color: var(--text-secondary);
  font-size: 1.08rem;
}

.policy-article {
  max-width: 780px;
  margin: 0 auto;
}

.policy-article header { margin-bottom: 3rem; }
.policy-article section {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-light);
}
.policy-article h2 {
  margin-bottom: 0.65rem;
  font-size: 1.35rem;
  font-weight: 800;
}
.policy-article p,
.policy-article li { color: var(--text-secondary); }
.policy-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: 1.5rem;
  max-width: 940px;
  margin: 0 auto;
}
.contact-card,
.contact-aside {
  padding: 1.5rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}
.contact-card h2,
.contact-aside h2 {
  font-size: 1.45rem;
  font-weight: 800;
}
.contact-aside h3 {
  margin-top: 1.5rem;
  font-size: 1rem;
  font-weight: 800;
}
.contact-aside p,
.contact-aside li { color: var(--text-secondary); }
.contact-form {
  display: grid;
  gap: 1rem;
}
.contact-form label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 700;
}
.settings-label {
  display: block;
  font-weight: 700;
}
.contact-form small { color: var(--text-secondary); }
.honeypot {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.form-notice {
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
}
.form-notice-success {
  border: 1px solid #a7f3d0;
  background: #ecfdf5;
  color: #08745f;
}
.form-notice-error {
  border: 1px solid #fecaca;
  background: #fff1f2;
  color: #b42318;
}

.content-faq {
  max-width: 820px;
  margin: 0 auto;
}
.content-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: 820px;
  margin: 3rem auto 0;
  padding: 1.5rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}
.content-cta h2 {
  margin: 0 0 0.35rem;
  font-size: 1.4rem;
  font-weight: 800;
}
.content-cta p {
  margin: 0;
  color: var(--text-secondary);
}

.error-state {
  display: grid;
  justify-items: center;
  gap: 1rem;
  max-width: 680px;
  margin: 8vh auto;
  text-align: center;
}
.error-state h1 {
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  font-weight: 850;
}
.error-state p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}
.error-state > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
.error-code {
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 850;
}

.ad-container {
  max-width: 1100px;
  min-height: 120px;
  margin: 4rem auto 0;
  padding: 1rem;
  border-top: 1px solid var(--border-light);
  text-align: center;
  contain: layout paint;
}
.ad-container > span {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.consent-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 980px;
  margin: auto;
  padding: 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-xl);
}
.consent-banner p {
  margin: 0.2rem 0 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.consent-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 0.5rem;
}

@media (max-width: 760px) {
  .contact-layout { grid-template-columns: 1fr; }
  .content-cta,
  .consent-banner {
    align-items: stretch;
    flex-direction: column;
  }
  .consent-actions {
    display: grid;
    width: 100%;
  }
}

/* Homepage conversion hierarchy: primary tools immediately follow a compact hero. */
.main-page .hero {
  min-height: 0;
  padding: 6rem 0 1.75rem;
}

.main-page .hero-content {
  max-width: 940px;
  padding: 0.75rem 1rem;
}

.main-page .hero h1 {
  margin-bottom: 0.65rem;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.08;
  text-wrap: balance;
}

.main-page .hero p {
  max-width: 720px;
  margin: 0 auto;
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.main-page .section {
  padding: 5rem 0;
}

.main-page .tools-section {
  scroll-margin-top: 80px;
  padding: 7rem 0 4.5rem;
  background: var(--bg-card);
}

.main-page .tools-section .section-title {
  max-width: 680px;
  margin: 0 auto 2.25rem;
}

.main-page .tools-section .section-title h1 {
  margin: 0.4rem 0 0.65rem;
  font-size: clamp(2.25rem, 4.5vw, 3.6rem);
  line-height: 1.12;
  text-wrap: balance;
}

.main-page .tools-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 0;
}

.main-page .tool-card {
  min-width: 0;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: none;
}

.main-page .tool-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: none;
}

.main-page .tool-card:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.16);
}

.main-page .tool-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  border-radius: var(--radius-sm);
  font-size: 1.3rem;
}

.main-page .tool-card h3 {
  margin-bottom: 0.55rem;
  font-size: 1.15rem;
}

.main-page .tool-card p {
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  line-height: 1.55;
}

.main-page .tool-link {
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
}

.main-page .tool-link::after {
  position: absolute;
  inset: 0;
  content: "";
}

.main-page .tool-link:focus-visible {
  outline: 0;
}

.main-page .tool-card:hover .tool-icon {
  transform: scale(1.04);
}

.main-page .tool-link:hover,
.main-page .tool-link:focus-visible {
  transform: none;
}

.main-page .recent-tools-section {
  padding: 2rem 0 0;
}

.main-page .proof-section {
  padding: 4rem 0;
}

.main-page .proof-section .section-title {
  margin-bottom: 2rem;
}

.proof-action {
  margin-top: 1.5rem;
  text-align: center;
}

.proof-action a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 750;
  text-decoration: none;
}

.proof-action a:hover,
.proof-action a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

.proof-action a i {
  transition: var(--transition);
}

.proof-action a:hover i,
.proof-action a:focus-visible i {
  transform: translateX(3px);
}

@media (max-width: 1199px) {
  .main-page .tools-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .main-page .tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .main-page .hero {
    padding: 5.75rem 0 1.25rem;
  }
  .main-page .hero-content {
    padding: 0.5rem 0;
  }
  .main-page .hero h1 {
    font-size: clamp(1.85rem, 9vw, 2.6rem);
  }
  .main-page .section {
    padding: 4rem 0;
  }
  .main-page .tools-section {
    padding: 9.25rem 0 3.5rem;
  }
  .main-page .proof-section {
    padding: 3.5rem 0;
  }
}

/* Research hub and reproducible benchmark */
.research-hero,
.benchmark-hero,
.research-section,
.research-principles,
.benchmark-method,
.research-related,
.benchmark-method-summary,
.benchmark-runner,
.benchmark-results {
  max-width: 1100px;
  margin-inline: auto;
}

.research-feature,
.benchmark-runner,
.benchmark-results {
  margin-block: 2rem 4rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  background: rgba(250, 250, 250, .72);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .05);
}

.research-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  max-width: 1100px;
  margin-inline: auto;
}

.research-feature h2,
.research-section h2,
.research-principles h2,
.benchmark-runner h2,
.benchmark-results h2,
.benchmark-method h2,
.research-related h2 { margin-block: .6rem .75rem; }

.research-status {
  display: inline-flex;
  color: var(--primary-dark);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.research-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.25rem; }
.research-facts { display: grid; gap: .75rem; margin: 0; }
.research-facts div { padding: 1rem; border: 1px solid var(--border-light); border-radius: 16px; background: #fff; }
.research-facts dt { color: var(--text-secondary); font-size: .82rem; }
.research-facts dd { margin: .2rem 0 0; font-weight: 650; }
.research-section { margin-block: 4rem; }
.research-section > header { max-width: 720px; margin-bottom: 1.5rem; }
.research-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.research-card-grid article { display: flex; min-height: 220px; padding: 1.4rem; border: 1px solid var(--border-light); border-radius: 20px; background: rgba(255,255,255,.72); flex-direction: column; }
.research-card-grid article > span { color: var(--primary-dark); font-size: .78rem; font-weight: 700; text-transform: uppercase; }
.research-card-grid h3 { margin-block: .75rem .6rem; font-size: 1.15rem; }
.research-card-grid p { margin: 0; color: var(--text-secondary); line-height: 1.6; }
.research-principles { display: grid; grid-template-columns: .75fr 1.25fr; gap: 2rem; margin-block: 4rem; }
.research-principles ul { display: grid; gap: .8rem; margin: 0; padding-left: 1.2rem; }
.benchmark-method-summary { margin-block: 2rem; padding-left: 1rem; border-left: 3px solid var(--primary); }
.benchmark-method-summary p { max-width: 850px; margin-bottom: 0; color: var(--text-secondary); }
.benchmark-runner-head,
.benchmark-results-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.benchmark-support { max-width: 390px; padding: .7rem .9rem; border-radius: 12px; background: rgba(255,255,255,.8); color: var(--text-secondary); font-size: .84rem; }
.benchmark-dropzone { display: grid; min-height: 150px; margin-block: 1.5rem; padding: 1.25rem; border: 2px dashed var(--border-light); border-radius: 20px; background: #fff; cursor: pointer; text-align: center; place-content: center; transition: border-color 180ms ease, background-color 180ms ease; }
.benchmark-dropzone:hover,
.benchmark-dropzone:focus-within,
.benchmark-dropzone.is-dragging { border-color: var(--primary); background: rgba(255, 240, 239, .55); }
.benchmark-dropzone:focus-within { outline: 3px solid rgba(239,111,103,.2); outline-offset: 3px; }
.benchmark-dropzone span { margin-top: .35rem; color: var(--text-secondary); font-size: .9rem; }
.benchmark-dropzone input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); clip-path: inset(50%); white-space: nowrap; }
.benchmark-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.benchmark-controls fieldset { display: flex; gap: .9rem 1.25rem; padding: 1rem; border: 1px solid var(--border-light); border-radius: 16px; flex-wrap: wrap; }
.benchmark-controls legend { width: 100%; margin-bottom: .35rem; font-size: .9rem; font-weight: 700; }
.benchmark-controls label { display: inline-flex; align-items: center; gap: .4rem; }
.benchmark-selection,
.benchmark-progress { min-height: 1.6rem; margin-block: .75rem; color: var(--text-secondary); }
.benchmark-meta { display: flex; gap: .75rem; margin-block: 1rem 1.5rem; flex-wrap: wrap; }
.benchmark-meta span { padding: .6rem .8rem; border: 1px solid var(--border-light); border-radius: 12px; background: #fff; font-size: .86rem; }
.benchmark-charts { display: grid; gap: .8rem; margin-block: 1.5rem 2rem; }
.benchmark-chart-row { display: grid; grid-template-columns: 160px minmax(0,1fr); align-items: center; gap: 1rem; }
.benchmark-chart-row > div:first-child { display: flex; justify-content: space-between; gap: .5rem; flex-direction: column; font-size: .82rem; }
.benchmark-chart-row span { color: var(--text-secondary); }
.benchmark-bar-track { height: 12px; overflow: hidden; border-radius: 999px; background: rgba(0,0,0,.07); }
.benchmark-bar-track span { display: block; height: 100%; border-radius: inherit; background: var(--primary); }
.benchmark-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.benchmark-table caption { color: var(--text-secondary); caption-side: top; }
.benchmark-table th,
.benchmark-table td { padding: .8rem; border-bottom: 1px solid var(--border-light); text-align: left; vertical-align: top; }
.benchmark-table thead th { color: var(--text-secondary); font-size: .78rem; text-transform: uppercase; }
.benchmark-raw { margin-top: 1.5rem; }
.benchmark-raw summary { cursor: pointer; font-weight: 700; }
.benchmark-raw .table-responsive { margin-top: 1rem; }
.benchmark-method { margin-block: 4rem; }
.benchmark-method ol { max-width: 850px; padding-left: 1.25rem; }
.benchmark-method li { margin-bottom: .75rem; line-height: 1.65; }
.benchmark-method h3 { margin-top: 2rem; font-size: 1.15rem; }
.benchmark-method p { max-width: 850px; color: var(--text-secondary); line-height: 1.7; }
.benchmark-sources a { font-weight: 600; }
.research-related { margin-block: 4rem; }
.research-related > div { display: flex; gap: .7rem; flex-wrap: wrap; }
.research-related a { padding: .75rem 1rem; border: 1px solid var(--border-light); border-radius: 999px; background: #fff; color: var(--text-primary); font-weight: 600; text-decoration: none; }

@media (max-width: 900px) {
  .research-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .research-feature,
  .research-principles,
  .benchmark-controls { grid-template-columns: 1fr; }
  .research-card-grid { grid-template-columns: 1fr; }
  .research-card-grid article { min-height: 0; }
  .benchmark-runner-head,
  .benchmark-results-head { align-items: stretch; flex-direction: column; }
  .benchmark-chart-row { grid-template-columns: 1fr; gap: .35rem; }
  .benchmark-results-head .research-actions .btn { flex: 1 1 auto; }
  #runBenchmark { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .benchmark-dropzone { transition: none; }
}

/* Save-to-image-inspired visual system, adapted to this product and content. */
:root {
  --primary: oklch(64% .2 30);
  --primary-dark: oklch(57% .2 30);
  --primary-light: oklch(93% .035 30);
  --secondary: oklch(96% .002 270);
  --accent: oklch(64% .2 30);
  --bg-primary: oklch(96.5% .002 270);
  --bg-secondary: oklch(96% .002 270);
  --bg-card: oklch(100% 0 0);
  --text-primary: oklch(18% .005 270);
  --text-secondary: oklch(43% .006 270);
  --text-muted: oklch(55% .006 270);
  --border-light: oklch(92% .003 270);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .03), 0 2px 4px rgba(0, 0, 0, .03), inset 0 1px 0 rgba(255, 255, 255, .6);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, .07);
  --shadow-lg: 0 12px 36px rgba(0, 0, 0, .09);
  --radius-lg: 20px;
  --radius-md: 14px;
}

html,
body,
body.main-page,
body.tool-page,
body.content-page,
body.formats-page,
body.article-page {
  background: #f5f5f6;
  background: var(--bg-primary);
}

body {
  color: var(--text-primary);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  font-size: 16px;
  line-height: 1.5;
}

.navbar,
.navbar.scrolled {
  top: 1rem;
  left: 50%;
  width: calc(100% - 2rem);
  max-width: 1024px;
  min-height: 56px;
  padding: .45rem .6rem;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 8px 28px rgba(24, 24, 27, .12), inset 0 1px 0 #fff;
  transform: translateX(-50%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.navbar .container {
  width: 100%;
  padding-inline: .35rem;
}

.navbar-brand {
  color: var(--text-primary) !important;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -.025em;
}

.navbar-brand > i {
  display: grid;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  place-items: center;
}

.nav-link {
  padding: .55rem .85rem !important;
  border-radius: 999px;
  color: var(--text-secondary) !important;
  font-size: .875rem;
  font-weight: 500;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.active {
  background: var(--text-primary);
  color: #fff !important;
}

.main-page .tools-section {
  padding-top: 9.5rem;
  padding-bottom: 4.5rem;
}

.main-page .tools-section .homepage-intro {
  max-width: 760px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.main-page .tools-section .homepage-intro h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: .98;
}

.main-page .tools-section .homepage-intro p {
  max-width: 620px;
  margin-inline: auto;
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.625;
  text-align: center;
}

.main-page .tools-grid {
  gap: 1rem;
}

.main-page .tool-card,
.tool-card,
.workflow-grid > a,
.differentiation-grid article,
.faq-list details,
.recent-tools-panel,
.format-route-grid a,
.format-choice-grid article,
.guide-card,
.guide-related a,
.contact-card,
.contact-aside,
.related-guides,
.batch-workspace,
.preview-area,
.control-panel,
.result-area,
.batch-settings,
.batch-files,
.diagnostic-card,
.privacy-section,
.about-principles-grid article,
.about-operator {
  border: 1px solid var(--border-light) !important;
  border-radius: 20px !important;
  background: #fff !important;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm) !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.main-page .tool-card {
  min-height: 220px;
  padding: 1.5rem;
}

.main-page .tool-card:first-child {
  border-color: transparent !important;
  background: var(--primary) !important;
  color: #fff;
  box-shadow: 0 8px 32px -8px rgba(219, 77, 57, .38), inset 0 1px 0 rgba(255, 255, 255, .6) !important;
}

.main-page .tool-card:first-child h3,
.main-page .tool-card:first-child p,
.main-page .tool-card:first-child .tool-link {
  color: #fff !important;
}

.main-page .tool-card:first-child .tool-icon {
  background: rgba(255, 255, 255, .18) !important;
  color: #fff !important;
}

.main-page .tool-card:hover,
.tool-card:hover,
.workflow-grid > a:hover,
.format-route-grid a:hover,
.guide-related a:hover {
  border-color: color-mix(in oklab, var(--primary) 35%, transparent) !important;
  background: #fff !important;
  box-shadow: var(--shadow-md) !important;
  transform: none !important;
}

.main-page .tool-card:first-child:hover {
  background: var(--primary-dark) !important;
}

.main-page .tool-card h3,
.tool-card h3,
.guide-card h2,
.differentiation-grid h3 {
  color: var(--text-primary);
  font-weight: 750;
  letter-spacing: -.025em;
}

.main-page .tool-card p,
.tool-card p,
.guide-card p,
.differentiation-grid p,
.format-choice-grid p {
  color: var(--text-muted);
}

.tool-icon,
.main-page .tool-icon {
  border-radius: 12px;
  background: var(--primary-light) !important;
  color: var(--primary) !important;
  box-shadow: none;
}

.tool-link,
.guide-card-link,
.proof-action a,
.format-intro-copy a,
.about-links a {
  color: var(--primary-dark);
  font-weight: 650;
}

.btn-primary,
.btn-success,
.btn-warning,
.btn-download,
.primary-btn,
.cta-button,
.upload-button {
  border-color: transparent !important;
  border-radius: 999px !important;
  background: var(--primary) !important;
  color: #fff !important;
  box-shadow: none !important;
  font-weight: 650;
}

.btn-primary:hover,
.btn-success:hover,
.btn-warning:hover,
.btn-download:hover,
.primary-btn:hover,
.cta-button:hover,
.upload-button:hover {
  background: var(--primary-dark) !important;
}

.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-success {
  border-color: var(--border-light);
  border-radius: 999px;
  background: #fff;
  color: var(--text-primary);
}

.section-eyebrow,
.privacy-pill {
  color: var(--primary-dark);
  font-size: .75rem;
  font-weight: 750;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.privacy-pill {
  border: 1px solid var(--border-light);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.section-title h2,
.content-hero h1,
.policy-article h1,
.privacy-hero h1,
.formats-page .formats-hero h1,
.conversion-hero h1,
.guides-hero h1,
.guide-header h1 {
  color: var(--text-primary);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.02;
}

.content-hero h1,
.policy-article h1,
.privacy-hero h1,
.formats-page .formats-hero h1,
.conversion-hero h1,
.guides-hero h1,
.guide-header h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
}

.tool-heading h1 {
  color: var(--text-primary);
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
}

.section-title p,
.content-hero p,
.tool-heading p,
.privacy-hero p,
.guides-hero p,
.guide-deck {
  color: var(--text-muted);
}

.main-page .homepage-format-intro,
.main-page .workflow-section,
.main-page .differentiation-section,
.main-page .homepage-faq {
  padding-block: 5rem;
  border-color: var(--border-light);
}

.upload-area,
.upload-area.universal-upload {
  border: 1.5px dashed color-mix(in oklab, var(--text-primary) 15%, transparent);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.upload-area:hover,
.upload-area:focus-visible,
.upload-area.dragging,
.upload-area.universal-upload:hover,
.upload-area.universal-upload.dragging {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--primary) 12%, transparent), var(--shadow-md);
}

.form-control,
.form-select,
input[type="number"],
input[type="text"],
input[type="email"],
textarea,
select,
.format-grid button,
.preset-grid button,
.advanced-settings {
  border-color: var(--border-light);
  border-radius: 12px;
  background: #fff;
  color: var(--text-primary);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.format-grid button.selected,
.preset-grid button.selected {
  border-color: var(--text-primary);
  background: var(--text-primary);
  color: #fff;
}

footer {
  border-top: 1px solid var(--border-light);
  background: var(--text-primary);
  color: #fff;
}

.footer-brand h2,
.footer-links-column h3 {
  color: #fff;
}

.footer-brand p,
.footer-links-column a,
.footer-legal,
.footer-legal a,
.footer-bottom {
  color: rgba(255, 255, 255, .62);
}

.footer-links-column a:hover,
.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: #fff;
}

.footer-bottom .local-status {
  border-color: rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .07);
  color: rgba(255, 255, 255, .72);
}

.footer-bottom .local-status a {
  color: #fff;
}

@media (max-width: 991px) {
  .navbar-collapse {
    margin-top: .6rem;
    padding: .5rem;
    border: 1px solid var(--border-light);
    border-radius: 18px;
    background: rgba(255, 255, 255, .98);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
}

@media (max-width: 767px) {
  .navbar,
  .navbar.scrolled {
    top: .75rem;
    width: calc(100% - 1.5rem);
  }

  .main-page .tools-section {
    padding-top: 8rem;
    padding-bottom: 3rem;
  }

  .main-page .tools-section .homepage-intro {
    margin-bottom: 2rem;
    text-align: left;
  }

  .main-page .tools-section .homepage-intro h1 {
    font-size: clamp(2.4rem, 13vw, 3.5rem);
    line-height: 1;
  }

  .main-page .tools-section .homepage-intro p {
    margin-inline: 0;
    text-align: left;
  }

  .main-page .homepage-format-intro,
  .main-page .workflow-section,
  .main-page .differentiation-section,
  .main-page .homepage-faq {
    padding-block: 3.5rem;
  }

  .content-hero h1,
  .policy-article h1,
  .privacy-hero h1,
  .formats-page .formats-hero h1,
  .conversion-hero h1,
  .guides-hero h1,
  .guide-header h1 {
    font-size: clamp(2.25rem, 11vw, 3.25rem);
  }

  .main-page .tool-card {
    min-height: 190px;
  }
}


@media (max-width: 559px) {
  .main-page .tools-grid {
    grid-template-columns: 1fr;
  }
  .main-page .tool-card {
    padding: 1.35rem;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Homepage specific gradient background */
body.homepage {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  background-attachment: fixed;
}

body.homepage::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 20% 50%,
      rgba(120, 119, 198, 0.3) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(255, 135, 191, 0.3) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 20%,
      rgba(99, 102, 241, 0.2) 0%,
      transparent 50%
    );
  animation: backgroundMove 15s ease infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes backgroundMove {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

/* Tool pages specific background */
body.tool-page {
  background: var(--gradient-hero);
}

body.tool-page::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(79, 70, 229, 0.08) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

body.tool-page::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(6, 182, 212, 0.06) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* Main Container */
main.container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  padding: 3rem;
  margin-top: 2rem !important;
  margin-bottom: 2rem !important;
  position: relative;
  z-index: 1;
}

/* Navbar Styles */
.navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  padding: 1rem 0;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

/* Homepage navbar glass effect */
body.homepage .navbar {
  background: rgba(255, 255, 255, 0.1) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

body.homepage .navbar-brand {
  color: white !important;
}

body.homepage .nav-link {
  color: rgba(255, 255, 255, 0.95) !important;
}

body.homepage .nav-link:hover {
  background: rgba(255, 255, 255, 0.15);
}

body.homepage .nav-link.active {
  background: rgba(255, 255, 255, 0.25);
}

/* Tool pages navbar */
body.tool-page .navbar-brand {
  color: var(--text-primary) !important;
}

body.tool-page .nav-link {
  color: var(--text-secondary) !important;
}

body.tool-page .nav-link:hover,
body.tool-page .nav-link.active {
  background: var(--bg-secondary);
  color: var(--primary) !important;
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-brand:hover {
  transform: translateY(-2px);
}

.navbar-brand i {
  font-size: 1.8rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-link {
  font-weight: 500;
  padding: 0.5rem 1.25rem !important;
  border-radius: 50px;
  transition: var(--transition);
  margin: 0 0.25rem;
  font-size: 0.95rem;
}

/* Hero Section - Homepage */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem 1rem;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: -2px;
  color: var(--text-primary);
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  padding: 0 0.02em 0.12em;
  margin-bottom: -0.12em;
  background-clip: text;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1.125rem 2.75rem;
  background: var(--primary);
  color: white;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.3);
  transition: var(--transition);
  font-size: 1.05rem;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(79, 70, 229, 0.4);
  color: white;
  background: var(--primary-dark);
}

/* Section Styles */
.section {
  padding: 6rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title h2 {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -1px;
  color: var(--text-primary);
}

.section-title p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.125rem;
}

/* Tool Cards - Works for both homepage and tool pages */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.tool-card:hover::before {
  transform: scaleX(1);
}

.tool-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.tool-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1.5rem;
  background: linear-gradient(
    135deg,
    rgba(79, 70, 229, 0.1),
    rgba(124, 58, 237, 0.1)
  );
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--primary);
  transition: var(--transition);
}

.tool-card:hover .tool-icon {
  transform: scale(1.1) rotate(-5deg);
  background: var(--gradient-primary);
  color: white;
}

.tool-card h3,
.tool-card h5 {
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: var(--text-primary);
}

.tool-card p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  flex-grow: 1;
  line-height: 1.7;
}

.tool-link,
.btn-tool {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: var(--bg-secondary);
  color: var(--primary);
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: var(--transition);
  align-self: flex-start;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
}

.tool-link:hover,
.btn-tool:hover {
  background: var(--primary);
  color: white;
  transform: translateX(4px);
}

/* Upload Area - Modern Design (No color change on hover) */
.upload-area {
  border: 3px dashed var(--gray-light);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.upload-area:hover,
.upload-area.dragging {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.upload-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.3);
}

.upload-icon i {
  font-size: 3rem;
  color: white;
}

.upload-text {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.upload-subtext {
  font-size: 0.95rem;
  color: var(--gray);
}

/* Preview Area */
.preview-area {
  background: rgba(248, 250, 252, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(203, 213, 225, 0.5);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-top: 2rem;
  box-shadow: var(--shadow-lg);
}

.preview-image {
  max-width: 100%;
  max-height: 450px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  border: 4px solid white;
}

/* Control Panel */
.control-panel {
  background: white;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 2rem;
  box-shadow: var(--shadow-md);
}

.control-panel label {
  font-weight: 600;
  color: var(--dark);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  display: block;
}

/* Form Controls */
.form-control,
.form-select {
  border: 2px solid var(--gray-light);
  border-radius: var(--radius-sm);
  padding: 0.875rem 1rem;
  font-size: 0.95rem;
  transition: var(--transition);
  background: white;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
  outline: none;
}

.form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--gray-light);
  cursor: pointer;
}

.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.form-range {
  --range-track-height: 8px;
  --range-thumb-size: 20px;
  --range-progress: 0%;
  width: 100%;
  height: 44px;
  padding: 0;
  overflow: visible;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
  touch-action: pan-y;
}

.form-range:focus-visible {
  outline: none;
}

.form-range::-webkit-slider-runnable-track {
  width: 100%;
  height: var(--range-track-height);
  border: 0;
  border-radius: 10px;
  background: linear-gradient(
    to right,
    var(--primary) 0 var(--range-progress),
    var(--gray-light) var(--range-progress) 100%
  );
}

.form-range::-webkit-slider-thumb {
  width: var(--range-thumb-size);
  height: var(--range-thumb-size);
  margin-top: calc((var(--range-track-height) - var(--range-thumb-size)) / 2);
  border: 0;
  background: var(--gradient-primary);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: box-shadow 160ms ease;
}

.form-range::-moz-range-track {
  width: 100%;
  height: var(--range-track-height);
  border: 0;
  border-radius: 10px;
  background: var(--gray-light);
}

.form-range::-moz-range-progress {
  height: var(--range-track-height);
  border: 0;
  border-radius: 10px;
  background: var(--primary);
}

.form-range::-moz-range-thumb {
  width: var(--range-thumb-size);
  height: var(--range-thumb-size);
  border: 0;
  background: var(--gradient-primary);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
  cursor: pointer;
  transition: box-shadow 160ms ease;
}

.form-range:hover::-webkit-slider-thumb {
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3), 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.form-range:hover::-moz-range-thumb {
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3), 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.form-range:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3), 0 0 0 5px var(--focus-ring);
}

.form-range:focus-visible::-moz-range-thumb {
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3), 0 0 0 5px var(--focus-ring);
}

.form-range:active::-webkit-slider-thumb {
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3), 0 0 0 6px rgba(79, 70, 229, 0.16);
}

.form-range:active::-moz-range-thumb {
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3), 0 0 0 6px rgba(79, 70, 229, 0.16);
}

.form-range:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.form-range:disabled::-webkit-slider-thumb {
  cursor: not-allowed;
}

.form-range:disabled::-moz-range-thumb {
  cursor: not-allowed;
}

/* Buttons */
.btn-primary {
  background: var(--gradient-primary);
  border: none;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
  color: white;
}

.btn-success {
  background: linear-gradient(135deg, var(--success), #059669);
  border: none;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-warning {
  background: linear-gradient(135deg, var(--warning), #d97706);
  border: none;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-info {
  background: linear-gradient(135deg, var(--accent), #0d9488);
  border: none;
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger), #dc2626);
  border: none;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-download {
  background: linear-gradient(135deg, var(--success), #059669);
  border: none;
  color: white;
  padding: 1rem 2.5rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1.05rem;
  transition: var(--transition);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
}

.btn-download:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.4);
  color: white;
}

.btn-secondary {
  background: white;
  border: 2px solid var(--gray-light);
  color: var(--dark);
  font-weight: 600;
}

.btn-secondary:hover {
  background: var(--light);
  border-color: var(--gray);
}

/* Spinner */
.spinner-wrapper {
  display: none !important;
  text-align: center;
  padding: 3rem;
}

.spinner-wrapper.show {
  display: block !important;
}

.spinner-border {
  width: 4rem;
  height: 4rem;
  border-width: 0.4rem;
  border-color: var(--primary);
  border-right-color: transparent;
}

/* Result Area */
.result-area {
  background: linear-gradient(135deg, var(--light) 0%, white 100%);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  padding: 3rem;
  margin-top: 2rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.file-info {
  background: white;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 1.5rem auto;
  display: inline-block;
  box-shadow: var(--shadow-sm);
}

.file-info-item {
  display: inline-block;
  margin: 0 1.5rem;
  font-size: 0.95rem;
}

.file-info-item strong {
  color: var(--dark);
  font-weight: 700;
}

/* Features Section */
.features-section {
  background: var(--bg-secondary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-light);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  background: var(--gradient-secondary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: white;
}

.feature-card h3,
.feature-card h5 {
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-size: 1.25rem;
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Footer */
footer {
  background: var(--text-primary);
  padding: 4rem 0 2rem;
  color: var(--bg-card);
  margin-top: 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h2 {
  font-weight: 800;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
}

.footer-brand h2 i {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-brand p {
  color: var(--text-muted);
  max-width: 350px;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}

.footer-links-column h3 {
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  color: white;
}

.footer-links-column ul {
  list-style: none;
  padding: 0;
}

.footer-links-column ul li {
  margin-bottom: 0.75rem;
}

.footer-links-column ul li a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.95rem;
}

.footer-links-column ul li a:hover {
  color: white;
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Tool-specific Components */
.image-item {
  position: relative;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  background: white;
  transition: var(--transition);
}

.image-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.image-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.image-item .remove-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--danger);
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.image-item .remove-btn:hover {
  background: #dc2626;
  transform: scale(1.1);
}

.image-item .image-index {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  color: white;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
}

.format-option {
  border: 3px solid var(--gray-light);
  border-radius: var(--radius-md);
  padding: 2rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: white;
  height: 100%;
}

.format-option:hover {
  border-color: var(--primary);
  background: rgba(79, 70, 229, 0.05);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.format-option.selected {
  border-color: var(--primary);
  background: linear-gradient(
    135deg,
    rgba(79, 70, 229, 0.1),
    rgba(124, 58, 237, 0.1)
  );
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.format-option i {
  font-size: 2.5rem;
  color: var(--primary);
  display: block;
  margin-bottom: 0.75rem;
}

.format-option span {
  font-weight: 700;
  color: var(--dark);
  font-size: 1.15rem;
}

.compression-preset {
  border: 2px solid var(--gray-light);
  border-radius: var(--radius-md);
  padding: 1.25rem 0.75rem;
  transition: var(--transition);
  height: 100%;
  background: white;
}

.compression-preset:hover {
  border-color: var(--warning);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.compression-preset.active {
  border-color: var(--warning);
  background: linear-gradient(
    135deg,
    rgba(245, 158, 11, 0.1),
    rgba(217, 119, 6, 0.1)
  );
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1);
}

.aspect-preset {
  border: 2px solid var(--gray-light);
  border-radius: var(--radius-md);
  padding: 1rem 0.5rem;
  transition: var(--transition);
  background: white;
}

.aspect-preset:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.aspect-preset.active {
  border-color: var(--accent);
  background: linear-gradient(
    135deg,
    rgba(6, 182, 212, 0.1),
    rgba(8, 145, 178, 0.1)
  );
}

#cropContainer {
  max-width: 100%;
  margin: 0 auto;
  display: inline-block;
}

#cropCanvas {
  max-width: 100%;
  border: 3px solid var(--gray-light);
  border-radius: var(--radius-md);
  cursor: crosshair;
  box-shadow: var(--shadow-lg);
}

#cropBox {
  border: 3px solid var(--accent);
  background: rgba(6, 182, 212, 0.15);
  backdrop-filter: blur(2px);
}

.crop-handle {
  width: 14px;
  height: 14px;
  background: var(--accent);
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(6, 182, 212, 0.4);
}

.progress {
  display: none;
  height: 24px;
  border-radius: var(--radius-sm);
  background: var(--gray-light);
  overflow: hidden;
}

.progress.show {
  display: flex;
}

.progress-bar {
  background: linear-gradient(90deg, var(--success), var(--accent));
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 24px;
}

.card {
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.badge {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
}

.alert {
  border: none;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease;
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--light);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--primary-dark), #7c3aed);
}

/* Responsive */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 3rem;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .tools-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  main.container {
    padding: 2rem 1.5rem;
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.125rem;
  }

  .section {
    padding: 4rem 0;
  }

  .section-title h2 {
    font-size: 2.25rem;
  }

  .tools-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .tool-card {
    padding: 2rem 1.5rem;
  }

  .upload-area {
    padding: 3rem 1.5rem;
  }

  .upload-icon {
    width: 80px;
    height: 80px;
  }

  .upload-icon i {
    font-size: 2.5rem;
  }

  .tool-icon {
    width: 60px;
    height: 60px;
  }

  .tool-icon i {
    font-size: 1.5rem;
  }

  .file-info-item {
    display: block;
    margin: 0.5rem 0;
  }
}

@media (max-width: 576px) {
  .hero {
    min-height: 75vh;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .section-title h2 {
    font-size: 1.875rem;
  }

  .cta-button {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
}
/* Phase 0 production shell and accessibility */
:root {
    --focus-ring: #4f46e5;
}

html {
    scroll-padding-top: 88px;
    overflow-x: clip;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.tool-main {
    padding-top: 8rem;
    padding-bottom: 5rem;
    min-height: 70vh;
}

.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 1100;
    transform: translateY(-200%);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    background: #111827;
    color: #fff;
}

.skip-link:focus {
    transform: translateY(0);
}

:where(a, button, input, select, [role="button"]):focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 3px;
}

.upload-area[role="button"] {
    cursor: pointer;
}

.format-option {
    appearance: none;
}

.app-status {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1200;
    max-width: min(26rem, calc(100vw - 2rem));
    padding: 0.9rem 1rem;
    border-radius: 0.75rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
    color: #fff;
    opacity: 0;
    transform: translateY(1rem);
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
}

.app-status.show {
    opacity: 1;
    transform: translateY(0);
}

.app-status-danger { background: #b42318; }
.app-status-success { background: #08745f; }
.app-status-info { background: #334155; }

#cropContainer,
#cropCanvas {
    touch-action: none;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* Phase 1 batch workspaces */
.tool-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-decoration: none;
}

.tool-heading {
  max-width: 760px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.tool-heading h1 {
  margin: 0.75rem 0;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.tool-heading p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.privacy-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  background: #ecfdf5;
  color: #08745f;
  font-size: 0.85rem;
  font-weight: 700;
}

.batch-workspace {
  margin-top: 2rem;
}

.batch-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
}

.batch-toolbar-actions {
  display: flex;
  gap: 0.5rem;
}

.batch-subtle {
  color: var(--text-secondary);
}

.batch-layout {
  display: grid;
  grid-template-columns: minmax(250px, 330px) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  margin-top: 1.5rem;
}

.batch-settings {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.batch-settings h2,
.batch-settings legend {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 750;
}

.batch-settings fieldset {
  display: grid;
  gap: 0.75rem;
  border: 0;
}

.batch-settings label {
  margin-bottom: -0.55rem;
  font-size: 0.88rem;
  font-weight: 700;
}

.settings-grid {
  display: grid;
  gap: 0.75rem;
}

.settings-grid.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.resize-dimensions-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr);
  gap: 0.55rem;
  align-items: end;
}

.ratio-lock {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.1rem;
  margin: 0 !important;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.7rem !important;
  line-height: 1;
}

.ratio-lock-icon {
  display: grid;
  width: 26px;
  height: 26px;
  border: 1px solid var(--border-light);
  border-radius: 50%;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  place-items: center;
}

.ratio-lock .ratio-unlocked,
.ratio-lock input:not(:checked) ~ .ratio-lock-icon .ratio-locked {
  display: none;
}

.ratio-lock input:not(:checked) ~ .ratio-lock-icon .ratio-unlocked {
  display: inline-block;
}

.ratio-lock input:checked ~ .ratio-lock-icon {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary-dark);
}

.ratio-lock:focus-within {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.preset-grid,
.format-grid,
.editor-button-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.preset-grid button,
.format-grid button,
.editor-button-grid button {
  min-height: 44px;
  padding: 0.6rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-weight: 650;
}

.preset-grid button:hover,
.preset-grid button.active,
.format-grid button:hover,
.format-grid button.selected,
.editor-button-grid button:hover {
  border-color: var(--primary);
  background: #eef2ff;
  color: var(--primary-dark);
}

.settings-note {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.5;
}

.color-control {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.color-control input {
  width: 52px;
  height: 40px;
  padding: 0.2rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
}

.batch-files {
  min-width: 0;
}

.progress-summary {
  min-height: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.progress-local {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: -0.35rem 0 1rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.progress-local i {
  color: var(--success);
}

.batch-local-errors {
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid #e8b4bc;
  border-radius: var(--radius-md);
  background: #fff7f8;
  color: var(--text-primary);
}

.tool-inline-error {
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid #e8b4bc;
  border-radius: var(--radius-md);
  background: #fff7f8;
  color: var(--text-primary);
}

.tool-inline-error strong,
.tool-inline-error p {
  display: block;
}

.tool-inline-error p {
  margin: 0.3rem 0 0.75rem;
  color: var(--text-secondary);
  font-size: 0.86rem;
  line-height: 1.45;
}

.batch-local-errors h2 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

.batch-local-errors ul {
  display: grid;
  gap: 0.35rem;
  margin: 0 0 0.75rem;
  padding-left: 1.2rem;
  color: var(--text-secondary);
  font-size: 0.84rem;
}

.batch-result-summary {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1.15rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
}

.batch-result-summary h2,
.batch-result-summary p,
.batch-result-summary dl,
.batch-result-summary dd {
  margin: 0;
}

.batch-result-summary h2 {
  font-size: 1.2rem;
}

.batch-result-count {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.batch-result-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.6rem;
}

.batch-result-metrics > div {
  padding: 0.7rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #fff;
}

.batch-result-metrics dt {
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 650;
}

.batch-result-metrics dd {
  margin-top: 0.15rem;
  color: var(--text-primary);
  font-size: 0.96rem;
  font-weight: 750;
}

.batch-result-summary > .btn-download {
  margin: 0;
}

.batch-file-list {
  display: grid;
  gap: 0.75rem;
}

.batch-file {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 0.8rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #fff;
}

.batch-file img {
  width: 72px;
  height: 60px;
  border-radius: 0.5rem;
  background: var(--bg-secondary);
  object-fit: cover;
}

.batch-file-info {
  min-width: 0;
}

.batch-file-info h3 {
  overflow: hidden;
  margin: 0 0 0.15rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.batch-file-info p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.file-status {
  margin-top: 0.2rem;
  font-size: 0.78rem;
  font-weight: 650;
}

.file-status-ready { color: var(--text-secondary); }
.file-status-processing { color: var(--primary); }
.file-status-done { color: #08745f; }
.file-status-error { color: #b42318; }
.file-status-error strong,
.file-status-error span {
  display: block;
}
.file-status-error span {
  margin-top: 0.15rem;
  color: var(--text-secondary);
  font-weight: 500;
  line-height: 1.4;
}

.batch-file-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.icon-button {
  display: grid;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-secondary);
  place-items: center;
}

.icon-button:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.icon-button-danger:hover {
  background: #fee2e2;
  color: #b42318;
}

.btn-tertiary-danger {
  border-color: transparent;
  background: transparent;
  color: #a5283d;
  box-shadow: none;
}

.btn-tertiary-danger:hover {
  border-color: transparent;
  background: #fff3f5;
  color: #84233a;
}

.range-with-marker {
  position: relative;
}

.range-with-marker .form-range {
  position: relative;
  z-index: 1;
  margin: 0;
}

.range-neutral-marker {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 16px;
  border-radius: 2px;
  background: var(--text-muted);
  opacity: 0.55;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.range-default-start .range-neutral-marker {
  left: 10px;
}

.batch-files > .btn-download,
.savings-summary {
  margin-top: 1rem;
}

.savings-summary {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: #ecfdf5;
  color: #08745f;
  font-weight: 700;
  text-align: center;
}

.savings-sizes,
.savings-reduction {
  display: block;
}

.savings-sizes {
  color: var(--text-primary);
  font-size: 1rem;
}

.savings-reduction {
  margin-top: 0.2rem;
  font-size: 1.05rem;
}

.batch-file-info .compression-value {
  color: #08745f;
  font-weight: 700;
}

.editor-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 1.5rem;
  align-items: start;
}

.editor-preview {
  display: grid;
  min-height: 520px;
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: repeating-conic-gradient(#eef2f6 0 25%, #fff 0 50%) 50% / 24px 24px;
  place-items: center;
}

#editorCanvas {
  max-width: 100%;
  max-height: 70vh;
  box-shadow: var(--shadow-xl);
}

.editor-actions {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
}

@media (max-width: 900px) {
  .batch-layout,
  .editor-workspace {
    grid-template-columns: 1fr;
  }
  .editor-preview {
    min-height: 340px;
  }
}

@media (max-width: 600px) {
  main.container {
    padding: 1.25rem;
  }
  .batch-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .batch-file {
    grid-template-columns: 56px minmax(0, 1fr);
  }
  .batch-file img {
    width: 56px;
    height: 52px;
  }
  .batch-file-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}

/* Local-processing status and privacy differentiation */
.local-status {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1050;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  background: rgba(255,255,255,0.96);
  box-shadow: var(--shadow-lg);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 650;
  backdrop-filter: blur(12px);
}

.local-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16,185,129,0.12);
}

.local-status.is-processing .local-status-dot {
  animation: local-pulse 1s ease infinite;
}

.local-status.is-offline .local-status-dot {
  background: var(--warning);
  box-shadow: 0 0 0 4px rgba(245,158,11,0.14);
}

.local-status a {
  color: var(--primary);
}

@keyframes local-pulse {
  50% { transform: scale(1.45); opacity: 0.55; }
}

.hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin: -1rem 0 2rem;
}

.hero-trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  background: rgba(255,255,255,0.75);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 650;
}

.differentiation-section {
  background: #eef2ff;
}

.differentiation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.differentiation-grid article {
  padding: 1.5rem;
  border: 1px solid #c7d2fe;
  border-radius: var(--radius-lg);
  background: #fff;
}

.differentiation-grid article > i {
  color: var(--primary);
  font-size: 1.65rem;
}

.differentiation-grid h3 {
  margin: 0.75rem 0 0.4rem;
  font-size: 1.1rem;
  font-weight: 750;
}

.differentiation-grid p {
  margin: 0;
  color: var(--text-secondary);
}

.preset-manager {
  display: grid;
  gap: 0.55rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.preset-manager-title {
  font-size: 0.88rem;
  font-weight: 750;
}

.preset-manager-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.4rem;
}

.privacy-hero {
  max-width: 780px;
  margin: 0 auto 3rem;
  text-align: center;
}

.privacy-hero h1 {
  margin: 0.9rem 0;
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 850;
  letter-spacing: -0.045em;
}

.privacy-hero p,
.diagnostic-card p {
  color: var(--text-secondary);
}

.diagnostic-card {
  display: grid;
  grid-template-columns: minmax(200px, 0.7fr) 1.3fr;
  gap: 2rem;
  padding: 1.5rem;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-lg);
  background: #ecfdf5;
}

.diagnostic-card h2,
.privacy-section h2 {
  font-size: 1.6rem;
  font-weight: 800;
}

.diagnostic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 0.75rem;
  margin: 0;
}

.diagnostic-grid div {
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.75);
}

.diagnostic-grid dt {
  color: var(--text-secondary);
  font-size: 0.78rem;
}

.diagnostic-grid dd {
  margin: 0.15rem 0 0;
  font-weight: 750;
}

.diagnostic-good { color: #08745f; }
.diagnostic-limited { color: #b54708; }

.privacy-section {
  margin-top: 3rem;
}

.comparison-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
}

.comparison-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: #fff;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
}

.comparison-table thead th {
  background: var(--bg-secondary);
}

.comparison-table td:nth-child(2) {
  color: #08745f;
  font-weight: 700;
}

.verification-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
}

.verification-grid li {
  margin-bottom: 0.6rem;
}

.verification-note {
  padding: 1.5rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
}

.architecture-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.5rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: #fff;
}

.architecture-flow div {
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  text-align: center;
}

.architecture-flow strong {
  display: grid;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  place-items: center;
}

.app-status {
  bottom: 4.75rem;
}

/* Phase 3: growth surfaces */
.section-eyebrow,
.conversion-kicker {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.recent-tools-section {
  padding-top: 0;
  padding-bottom: 0;
}

.recent-tools-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.recent-tools-panel h2 {
  margin: 0.25rem 0 0;
  font-size: 1.35rem;
  font-weight: 800;
}

.recent-tools-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.6rem;
}

.recent-tools-list a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}

.recent-tools-list a:hover,
.recent-tools-list a:focus-visible {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.workflow-grid,
.format-route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.workflow-grid > a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
}

.workflow-grid > a:hover,
.workflow-grid > a:focus-visible {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.workflow-grid > a > i:first-child {
  display: grid;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: #eef2ff;
  color: var(--primary);
  font-size: 1.2rem;
  place-items: center;
}

.workflow-grid strong,
.workflow-grid span {
  display: block;
}

.workflow-grid span {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.faq-layout {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 3rem;
}

.faq-layout h2 {
  margin: 0.5rem 0;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 850;
  letter-spacing: -0.035em;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-list details {
  padding: 1rem 1.1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-card);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 750;
}

.faq-list p {
  margin: 0.75rem 0 0;
  color: var(--text-secondary);
}

.formats-hero,
.conversion-hero {
  max-width: 820px;
  margin: 0 auto 4rem;
  text-align: center;
}

.formats-hero h1,
.conversion-hero h1 {
  margin: 0.75rem 0 1rem;
  font-size: clamp(2.4rem, 7vw, 4.7rem);
  font-weight: 850;
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.formats-hero p,
.conversion-hero > p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.format-directory,
.format-decision,
.conversion-section {
  margin: 4rem 0;
}

body.formats-page main.tool-main {
  padding-top: 6rem;
  padding-bottom: 3rem;
}

.formats-page .formats-hero {
  max-width: 720px;
  margin-bottom: 2.25rem;
}

.formats-page .formats-hero h1 {
  margin: 0.6rem 0 0.65rem;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.06;
  text-wrap: balance;
}

.formats-page .formats-hero p {
  margin: 0;
  font-size: 1rem;
}

.formats-page .format-directory {
  margin: 2.25rem 0 3.25rem;
}

.formats-page .format-directory .section-title {
  margin-bottom: 1.5rem;
}

.formats-page .format-directory .section-title h2 {
  margin-bottom: 0;
}

.formats-page .format-decision {
  margin: 3.25rem 0;
}

.format-decision-heading {
  margin-bottom: 1.5rem;
  text-align: center;
}

.format-decision-heading h2 {
  margin: 0.4rem 0 0;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 850;
  letter-spacing: -0.035em;
}

.format-route-grid a {
  display: grid;
  grid-template-columns: auto auto auto 1fr;
  align-items: center;
  gap: 0.7rem;
  padding: 1.25rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
}

.format-route-grid a:hover,
.format-route-grid a:focus-visible {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.format-route-grid span,
.format-route-grid strong {
  font-size: 1.1rem;
}

.format-route-grid strong {
  color: var(--primary);
}

.format-route-grid small {
  color: var(--text-secondary);
  text-align: right;
}

.format-choice-grid,
.conversion-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.format-choice-grid article,
.conversion-benefits article {
  padding: 1.5rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}

.format-choice-grid article > strong {
  color: var(--primary);
  font-size: 1.3rem;
}

.format-choice-grid h3,
.conversion-benefits h2 {
  margin: 0.75rem 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 800;
}

.format-choice-grid p,
.conversion-benefits p {
  margin: 0;
  color: var(--text-secondary);
}

.conversion-kicker {
  margin-top: 1rem;
}

.conversion-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.conversion-actions span {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.conversion-benefits article > i {
  color: var(--primary);
  font-size: 1.5rem;
}

.conversion-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr);
  gap: 3rem;
}

.conversion-tool-entry > .batch-stage {
  min-width: 0;
}

.conversion-tool-entry .upload-area,
.conversion-tool-entry .batch-workspace {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

.related-conversion-links {
  display: grid;
  gap: 0.75rem;
}

.related-conversion-links a {
  display: flex;
  min-height: 48px;
  padding: 0.8rem 1rem;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: var(--text-primary);
  font-weight: 750;
  text-decoration: none;
}

.related-conversion-links a:hover,
.related-conversion-links a:focus-visible {
  border-color: var(--primary);
}

.conversion-section h2,
.conversion-final-cta h2 {
  margin: 0.5rem 0;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 850;
  letter-spacing: -0.035em;
}

.conversion-steps {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  counter-reset: conversion-step;
  list-style: none;
}

.conversion-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 1rem;
  padding: 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  counter-increment: conversion-step;
}

.conversion-steps li::before {
  grid-row: span 2;
  content: counter(conversion-step);
  display: grid;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  place-items: center;
}

.conversion-steps span,
.conversion-explainer > p {
  color: var(--text-secondary);
}

.conversion-final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin: 4rem 0 1rem;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--dark);
  color: #fff;
}

.conversion-final-cta p {
  max-width: 650px;
  margin: 0;
  color: #cbd5e1;
}

.related-guides {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 3rem;
  padding: 1.5rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}

.related-guides h2 {
  margin: 0.25rem 0 0;
  font-size: 1.4rem;
  font-weight: 800;
}

.related-guides nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.related-guides a {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.related-guides a:hover,
.related-guides a:focus-visible {
  border-color: var(--primary);
  color: var(--primary);
}

@media (max-width: 760px) {
  .differentiation-grid,
  .diagnostic-card,
  .verification-grid {
    grid-template-columns: 1fr;
  }
  .architecture-flow {
    align-items: stretch;
    flex-direction: column;
  }
  .architecture-flow > i {
    transform: rotate(90deg);
    text-align: center;
  }
  .local-status {
    right: 0.75rem;
    bottom: 0.75rem;
    max-width: calc(100vw - 1.5rem);
  }
  .recent-tools-panel,
  .conversion-actions,
  .conversion-final-cta,
  .related-guides {
    align-items: stretch;
    flex-direction: column;
  }
  .recent-tools-list {
    justify-content: stretch;
  }
  .related-guides nav {
    justify-content: flex-start;
  }
  .recent-tools-list a {
    flex: 1 1 100%;
  }
  .workflow-grid,
  .format-route-grid,
  .format-choice-grid,
  .conversion-benefits,
  .faq-layout,
  .conversion-section {
    grid-template-columns: 1fr;
  }
  .format-route-grid a {
    grid-template-columns: auto auto auto;
  }
  .format-route-grid small {
    grid-column: 1 / -1;
    text-align: left;
  }
  body.formats-page main.tool-main {
    padding-top: 5.25rem;
    padding-bottom: 2rem;
  }
  .formats-page .formats-hero {
    margin-bottom: 1.75rem;
  }
  .formats-page .format-directory,
  .formats-page .format-decision {
    margin: 2.5rem 0;
  }
}

/*
 * Fixed-navigation clearance for every inner page.
 * Keep the navigation offset on the page shell so later container padding
 * rules cannot allow breadcrumbs or headings to slide underneath the menu.
 */
body:not(.main-page) {
  padding-top: 4.75rem;
}

body:not(.main-page) main.tool-main {
  padding-top: 3rem;
}

/* Search-led editorial guides: quiet, readable and built around real decisions. */
.guides-hero,
.guide-header { max-width: 850px; margin: 0 auto 3rem; text-align: center; }
.guides-hero h1,
.guide-header h1 { margin: .6rem 0 1rem; font-size: clamp(2.35rem, 6vw, 4.5rem); font-weight: 880; letter-spacing: -.055em; line-height: 1.03; }
.guides-hero p,
.guide-deck { color: var(--text-secondary); font-size: clamp(1.05rem, 2vw, 1.25rem); line-height: 1.7; }
.guides-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; max-width: 1100px; margin: 0 auto; }
.guide-card { display: flex; min-height: 290px; padding: 1.75rem; border: 1px solid var(--border-light); border-radius: var(--radius-lg); background: var(--bg-card); flex-direction: column; }
.guide-card > div,
.guide-meta { display: flex; flex-wrap: wrap; gap: .65rem 1rem; color: var(--text-secondary); font-size: .82rem; font-weight: 700; }
.guide-card h2,
.guide-card h3 { margin: 1rem 0 .75rem; font-size: 1.35rem; line-height: 1.25; }
.guide-card h2 a,
.guide-card h3 a { color: var(--text-primary); text-decoration: none; }
.guide-card h2 a:hover,
.guide-card h3 a:hover { color: var(--primary); }
.guide-card p { color: var(--text-secondary); line-height: 1.65; }
.guide-card-link { margin-top: auto; font-weight: 800; text-decoration: none; }
.guide-cluster-nav { display: flex; max-width: 1100px; margin: 0 auto 3rem; flex-wrap: wrap; gap: .65rem; }
.guide-cluster-nav a { padding: .65rem .9rem; border: 1px solid var(--border-light); border-radius: 999px; background: var(--bg-card); color: var(--text-primary); font-weight: 700; text-decoration: none; }
.guide-cluster-nav a:hover,
.guide-cluster-nav a:focus-visible { border-color: var(--primary); color: var(--primary); }
.guide-cluster { max-width: 1100px; margin: 0 auto 4.5rem; scroll-margin-top: 7rem; }
.guide-cluster > header { margin-bottom: 1.35rem; }
.guide-cluster > header h2 { margin: .4rem 0 0; font-size: clamp(1.75rem, 4vw, 2.5rem); letter-spacing: -.035em; }
.guide-sources li + li { margin-top: .55rem; }
.guides-method,
.guide-tool-cta { display: flex; align-items: center; justify-content: space-between; gap: 2rem; max-width: 1100px; margin: 3rem auto 0; padding: 2rem; border-radius: var(--radius-lg); background: var(--dark); color: #fff; }
.guides-method h2,
.guide-tool-cta h2 { margin: .5rem 0 0; font-weight: 850; }
.guides-method p,
.guide-tool-cta p { max-width: 650px; margin: 0; color: #cbd5e1; }
.article-page main.tool-main { max-width: 1120px; }
.guide-article .page-breadcrumb { margin-bottom: 2.5rem; }
.guide-meta { justify-content: center; }
.guide-answer { max-width: 820px; margin: 0 auto 3rem; padding: 1.5rem 1.75rem; border: 1px solid rgba(79,70,229,.25); border-left: 4px solid var(--primary); border-radius: var(--radius-md); background: rgba(79,70,229,.06); }
.guide-answer strong { color: var(--primary); }
.guide-answer p { margin: .5rem 0 0; font-size: 1.08rem; line-height: 1.7; }
.guide-body { max-width: 760px; margin: 0 auto; }
.guide-body section { margin: 0 0 3rem; }
.guide-body h2 { margin-bottom: 1rem; font-size: clamp(1.55rem, 3vw, 2rem); font-weight: 850; letter-spacing: -.03em; }
.guide-body p,
.guide-body li { color: var(--text-secondary); font-size: 1.03rem; line-height: 1.8; }
.guide-body li + li { margin-top: .55rem; }
.guide-table-wrap { overflow-x: auto; margin: 1.25rem 0; }
.guide-table-wrap table { width: 100%; border-collapse: collapse; }
.guide-table-wrap th,
.guide-table-wrap td { padding: .85rem; border: 1px solid var(--border-light); text-align: left; vertical-align: top; }
.guide-table-wrap th { background: var(--bg-light); color: var(--text-primary); }
.guide-faq details { border-top: 1px solid var(--border-light); padding: 1rem 0; }
.guide-faq summary { cursor: pointer; font-weight: 800; }
.guide-faq details p { margin: .75rem 0 0; }
.guide-tool-cta { max-width: 920px; }
.guide-related { max-width: 920px; margin: 3rem auto 0; }
.guide-related h2 { margin-bottom: 1rem; font-size: 1.4rem; font-weight: 850; }
.guide-related > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.guide-related a { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem; border: 1px solid var(--border-light); border-radius: var(--radius-md); color: var(--text-primary); font-weight: 750; text-decoration: none; }
.guide-related a:hover { border-color: var(--primary); color: var(--primary); }

@media (max-width: 767px) {
  body:not(.main-page) {
    padding-top: 4.75rem;
  }

  body:not(.main-page) main.tool-main {
    padding-top: 1.75rem;
  }

  .guides-grid,
  .guide-related > div { grid-template-columns: 1fr; }
  .guides-method,
  .guide-tool-cta { align-items: stretch; flex-direction: column; }
  .guide-card { min-height: 0; }
  .guide-header { text-align: left; }
  .guide-meta { justify-content: flex-start; }
  .guide-article .page-breadcrumb { overflow: hidden; white-space: nowrap; }
  .guide-article .page-breadcrumb span { overflow: hidden; text-overflow: ellipsis; }
}

/*
 * 2026 dark workspace redesign.
 * Inspired by focused productivity interfaces while retaining an original
 * Free Image Converter identity, content hierarchy and interaction model.
 */
:root {
  --primary: #5ee0b2;
  --primary-dark: #42c697;
  --secondary: #f0aa62;
  --accent: #82ead0;
  --success: #5ee0b2;
  --warning: #f0aa62;
  --danger: #ff7d79;
  --dark: #070a0b;
  --dark-light: #101516;
  --gray: #98a5a1;
  --gray-light: #293130;
  --light: #f3f7f5;
  --bg-primary: #070a0b;
  --bg-secondary: #101415;
  --bg-card: #0d1112;
  --text-primary: #f3f7f5;
  --text-secondary: #a7b2ae;
  --text-muted: #6f7b77;
  --border-light: #242b2a;
  --gradient-primary: linear-gradient(135deg, #5ee0b2 0%, #82ead0 100%);
  --gradient-secondary: linear-gradient(135deg, #f0aa62 0%, #f4c38f 100%);
  --gradient-hero: #070a0b;
  --shadow-sm: 0 1px 0 rgba(255, 255, 255, 0.04);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.22);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 24px 70px rgba(0, 0, 0, 0.38);
  --shadow-2xl: 0 32px 90px rgba(0, 0, 0, 0.46);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --transition: 160ms ease;
}

html {
  color-scheme: dark;
  background: var(--bg-primary);
  scroll-behavior: smooth;
}

body,
body.homepage,
body.tool-page {
  background: var(--bg-primary);
  color: var(--text-primary);
}

body.homepage::before,
body.tool-page::before,
body.tool-page::after {
  display: none;
}

body::selection {
  background: rgba(94, 224, 178, 0.28);
  color: var(--text-primary);
}

a { color: var(--primary); }

.container {
  width: min(100% - 2rem, 1180px);
}

.navbar,
body.homepage .navbar {
  min-height: 64px;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  background: rgba(7, 10, 11, 0.88) !important;
  box-shadow: none;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.navbar.scrolled { box-shadow: none; }

.navbar-brand,
body.homepage .navbar-brand,
body.tool-page .navbar-brand {
  gap: 0.65rem;
  color: var(--text-primary) !important;
  font-size: 1.04rem;
  font-weight: 720;
  letter-spacing: -0.025em;
}

.navbar-brand:hover { transform: none; }

.navbar-brand i {
  display: grid;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(94, 224, 178, 0.3);
  border-radius: 9px;
  background: rgba(94, 224, 178, 0.08);
  color: var(--primary);
  font-size: 1rem;
  -webkit-text-fill-color: currentColor;
  place-items: center;
}

.navbar-nav { align-items: center; gap: 0.15rem; }

.nav-link,
body.homepage .nav-link,
body.tool-page .nav-link {
  margin: 0;
  padding: 0.52rem 0.78rem !important;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--text-secondary) !important;
  font-size: 0.875rem;
  font-weight: 560;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.active,
body.homepage .nav-link:hover,
body.homepage .nav-link.active,
body.tool-page .nav-link:hover,
body.tool-page .nav-link.active {
  border-color: var(--border-light);
  background: #151a1b;
  color: var(--text-primary) !important;
}

.navbar-toggler {
  border: 1px solid var(--border-light);
  background: #111617;
  filter: invert(1);
}

.main-page .tools-section {
  min-height: min(820px, 100svh);
  padding: 9.5rem 0 6rem;
  background: var(--bg-primary);
}

.main-page .tools-section .section-title {
  max-width: 760px;
  margin-bottom: 3rem;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 720;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 5px rgba(94, 224, 178, 0.08);
}

.main-page .tools-section .section-title h1,
.section-title h2,
.content-hero h1,
.policy-article h1,
.tool-heading h1,
.guides-hero h1,
.guide-header h1 {
  color: var(--text-primary);
  font-weight: 650;
  letter-spacing: -0.045em;
}

.main-page .tools-section .section-title h1 {
  margin: 0.85rem 0 1rem;
  font-size: clamp(2.7rem, 6vw, 5.25rem);
  line-height: 0.98;
}

.gradient-text {
  background: none;
  color: var(--primary);
  -webkit-text-fill-color: currentColor;
}

.main-page .tools-section .section-title p,
.section-title p,
.tool-heading p,
.content-hero p,
.policy-article header > p:not(.policy-meta) {
  color: var(--text-secondary);
}

.main-page .tools-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 920px;
  margin-inline: auto;
}

.main-page .tool-card,
.tool-card {
  min-height: 168px;
  padding: 1.35rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  box-shadow: none;
  transition: border-color var(--transition), background-color var(--transition);
}

.main-page .tool-card:first-child {
  grid-column: 1 / -1;
  min-height: 190px;
  border-color: rgba(94, 224, 178, 0.28);
  background: #0f1514;
}

.tool-card::before { display: none; }

.main-page .tool-card:hover,
.tool-card:hover {
  border-color: rgba(94, 224, 178, 0.55);
  background: #111716;
  box-shadow: none;
  transform: none;
}

.main-page .tool-icon,
.tool-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 1rem;
  border: 1px solid rgba(94, 224, 178, 0.18);
  border-radius: 11px;
  background: rgba(94, 224, 178, 0.07);
  color: var(--primary);
  font-size: 1.1rem;
}

.main-page .tool-card:hover .tool-icon,
.tool-card:hover .tool-icon {
  background: rgba(94, 224, 178, 0.1);
  color: var(--primary);
  transform: none;
}

.main-page .tool-card h3,
.tool-card h3,
.tool-card h5 {
  margin-bottom: 0.4rem;
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 650;
}

.main-page .tool-card p,
.tool-card p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.55;
}

.main-page .tool-link,
.tool-link,
.btn-tool {
  padding: 0;
  background: transparent;
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 650;
}

.main-page .tool-link:hover,
.tool-link:hover,
.btn-tool:hover {
  background: transparent;
  color: var(--accent);
  transform: none;
}

.main-page .section,
.section { padding: 5.5rem 0; }

.workflow-section,
.differentiation-section,
.homepage-faq,
.recent-tools-section {
  border-top: 1px solid var(--border-light);
  background: var(--bg-primary);
}

.workflow-grid > a,
.differentiation-grid article,
.faq-list details,
.recent-tools-panel,
.conversion-steps li,
.format-route-grid a,
.format-choice-grid article,
.guide-card,
.guide-related a,
.contact-card,
.contact-aside,
.content-cta,
.related-guides {
  border-color: var(--border-light);
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: none;
}

.workflow-grid > a:hover,
.workflow-grid > a:focus-visible,
.guide-related a:hover,
.format-route-grid a:hover {
  border-color: rgba(94, 224, 178, 0.55);
  background: #111716;
  color: var(--text-primary);
  transform: none;
}

.privacy-pill {
  border: 1px solid rgba(94, 224, 178, 0.25);
  background: rgba(94, 224, 178, 0.07);
  color: var(--primary);
}

main.container,
body:not(.main-page) main.tool-main {
  width: min(100% - 2rem, 1180px);
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 3.5rem 0 5rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body:not(.main-page) { padding-top: 4rem; }

.tool-back,
.page-breadcrumb,
.page-breadcrumb a {
  color: var(--text-muted);
}

.tool-back:hover,
.page-breadcrumb a:hover { color: var(--primary); }

.tool-heading {
  max-width: 760px;
  margin: 1.5rem auto 2.5rem;
}

.tool-heading h1 {
  margin: 0.8rem 0 0.7rem;
  font-size: clamp(2.35rem, 6vw, 4.6rem);
  line-height: 1;
}

.upload-area {
  padding: 4rem 2rem;
  border: 1px dashed #3a4642;
  border-radius: var(--radius-lg);
  background: #0b0f10;
  box-shadow: none;
  transition: border-color var(--transition), background-color var(--transition);
}

.upload-area:hover,
.upload-area:focus-visible,
.upload-area.dragging {
  border-color: var(--primary);
  background: #0e1412;
  box-shadow: none;
  transform: none;
}

.upload-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(94, 224, 178, 0.25);
  background: rgba(94, 224, 178, 0.08);
  box-shadow: none;
}

.upload-icon i { color: var(--primary); font-size: 1.75rem; }
.upload-text { color: var(--text-primary); }
.upload-subtext { color: var(--text-secondary); }

.batch-workspace,
.preview-area,
.control-panel,
.batch-settings,
.batch-files,
.batch-file {
  border-color: var(--border-light);
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: none;
}

.batch-toolbar { border-color: var(--border-light); }

.form-control,
.form-select,
input[type="number"],
input[type="text"],
input[type="email"],
textarea,
select {
  border-color: #313a38;
  background: #0a0e0f;
  color: var(--text-primary);
}

.form-control:focus,
.form-select:focus,
input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  background: #0c1111;
  color: var(--text-primary);
  box-shadow: 0 0 0 3px rgba(94, 224, 178, 0.1);
}

.format-grid button {
  border-color: var(--border-light);
  background: #0a0e0f;
  color: var(--text-secondary);
}

.format-grid button:hover,
.format-grid button.selected {
  border-color: var(--primary);
  background: rgba(94, 224, 178, 0.09);
  color: var(--primary);
}

.btn-success,
.btn-primary,
.btn-download,
.cta-button {
  border-color: var(--primary);
  border-radius: 999px;
  background: var(--primary);
  color: #06100d;
  box-shadow: none;
  font-weight: 720;
}

.btn-success:hover,
.btn-primary:hover,
.btn-download:hover,
.cta-button:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #06100d;
  box-shadow: none;
  transform: none;
}

.btn-outline-primary {
  border-color: #34413d;
  color: var(--primary);
}

.btn-outline-primary:hover {
  border-color: var(--primary);
  background: rgba(94, 224, 178, 0.09);
  color: var(--primary);
}

.policy-article section,
.guide-faq details,
.footer-bottom { border-color: var(--border-light); }

.policy-article p,
.policy-article li,
.contact-aside p,
.contact-aside li,
.guide-body p,
.guide-body li,
.guide-deck,
.faq-list p { color: var(--text-secondary); }

.conversion-final-cta,
.guides-method,
.guide-tool-cta {
  border: 1px solid var(--border-light);
  background: #0d1212;
}

footer {
  border-top: 1px solid var(--border-light);
  background: #060809;
}

.footer-brand h2,
.footer-links-column h3 { color: var(--text-primary); }
.footer-brand h2 i { color: var(--primary); }
.footer-brand p,
.footer-links-column a,
.footer-bottom { color: var(--text-muted); }
.footer-links-column a:hover { color: var(--primary); }

.local-status {
  border: 1px solid var(--border-light);
  background: rgba(11, 15, 16, 0.9);
  color: var(--text-secondary);
  box-shadow: none;
  backdrop-filter: blur(14px);
}

.local-status-dot { background: var(--primary); }

.consent-banner {
  border-color: var(--border-light);
  background: rgba(11, 15, 16, 0.96);
  color: var(--text-primary);
}

*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

@media (max-width: 991px) {
  .navbar-collapse {
    margin-top: 0.65rem;
    padding: 0.75rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    background: #0c1011;
  }
  .navbar-nav { align-items: stretch; }
  .nav-link { padding: 0.7rem 0.85rem !important; }
}

/* Homepage SEO hierarchy: compact, visible and consistent with the current UI. */
.main-page .tools-section .homepage-intro {
  margin-bottom: 2.25rem;
}

.main-page .tools-section .homepage-intro h1 {
  font-size: clamp(2.35rem, 5vw, 4.4rem);
  line-height: 1.02;
}

.tool-picker-heading {
  max-width: 720px;
  margin: 0 auto 1.5rem;
  text-align: center;
}

.tool-picker-heading h2,
.format-intro-copy h2 {
  margin: 0 0 0.45rem;
  color: var(--text-primary);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.tool-picker-heading p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.homepage-format-intro {
  padding: 3.5rem 0;
  border-top: 1px solid var(--border-light);
}

.format-intro-copy {
  max-width: 920px;
  margin: 0 auto;
}

.format-intro-copy h2 {
  margin-top: 0.65rem;
}

.format-intro-copy p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
}

.format-intro-copy a {
  color: var(--primary);
  font-weight: 650;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.format-intro-copy a:hover,
.format-intro-copy a:focus-visible {
  color: var(--primary-dark);
}

@media (max-width: 767px) {
  .tool-picker-heading,
  .format-intro-copy {
    text-align: left;
  }

  .homepage-format-intro {
    padding: 3rem 0;
  }
}

/* Unified product workspace */
.tool-page main {
  width: min(1120px, calc(100% - 32px));
}

.tool-heading {
  max-width: 720px;
  margin: 0 auto 1.4rem;
  text-align: center;
}

.tool-heading h1 {
  margin: .6rem 0 .35rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.tool-heading p { margin: 0; color: var(--text-secondary); }

.universal-upload {
  max-width: 940px;
  min-height: 270px;
  margin: 0 auto 2rem;
  padding: clamp(1.5rem, 5vw, 3rem);
  border: 1.5px dashed rgba(25, 28, 29, .22);
  border-radius: 24px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 18px 55px rgba(25, 28, 29, .07), inset 0 1px 0 #fff;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.universal-upload:hover,
.universal-upload.dragging {
  border-color: rgba(201, 99, 36, .65);
  background: rgba(255, 251, 247, .93);
  box-shadow: 0 20px 60px rgba(25, 28, 29, .09), 0 0 0 4px rgba(201, 99, 36, .07);
  transform: none;
}

.universal-upload .upload-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin: 0 auto .8rem;
  place-items: center;
  border-radius: 14px;
  background: #fff4eb;
  color: var(--primary);
  font-size: 1.35rem;
}

.universal-upload .upload-text { font-size: 1.2rem; font-weight: 700; }
.upload-choice { margin-top: .15rem; color: var(--text-secondary); }
.upload-choice span { color: var(--primary); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.universal-upload .upload-subtext { margin-top: .8rem; font-size: .86rem; }
.upload-privacy {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: 1rem;
  color: var(--text-secondary);
  font-size: .82rem;
}
.upload-privacy i { color: var(--success); }
.upload-privacy a { color: inherit; text-underline-offset: 3px; }

.advanced-settings {
  margin: .85rem 0;
  padding: .75rem;
  border: 1px solid rgba(25, 28, 29, .1);
  border-radius: 14px;
  background: rgba(255, 255, 255, .46);
}
.advanced-settings summary { cursor: pointer; font-weight: 700; }
.advanced-settings summary::marker { color: var(--text-muted); }
.advanced-settings-content {
  display: grid;
  max-height: 0;
  gap: .85rem;
  overflow: hidden;
  opacity: 0;
  transition: max-height 200ms ease, opacity 160ms ease, margin-top 200ms ease;
}
.advanced-settings:not([open]) > .advanced-settings-content { display: grid; }
.advanced-settings[open] > .advanced-settings-content {
  max-height: 40rem;
  margin-top: .85rem;
  opacity: 1;
}
.setting-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.quality-mode {
  color: var(--text-muted);
  font-size: .78rem;
  font-weight: 650;
}

@media (prefers-reduced-motion: reduce) {
  .advanced-settings-content { transition: none; }
}

.preset-grid button { min-height: 56px; }
.preset-grid button strong,
.preset-grid button small { display: block; }
.preset-grid button small { margin-top: .15rem; color: var(--text-muted); font-size: .7rem; font-weight: 500; }
.preset-grid button.active small { color: inherit; opacity: .75; }
.resize-presets button {
  text-align: left;
}
.resize-presets button.active {
  border-color: var(--primary-action);
  background: var(--primary-light);
  color: var(--text-primary);
  box-shadow: inset 0 0 0 1px var(--primary-action);
}

.tools-trust { margin: .35rem 0 0; color: var(--text-secondary); }
.tool-card-primary {
  border-color: rgba(201, 99, 36, .24);
  box-shadow: 0 18px 46px rgba(25, 28, 29, .08), inset 0 1px 0 #fff;
}
.tool-card-primary .tool-icon { background: #fff1e6; color: var(--primary); }

.preview-area,
.control-panel,
.result-area,
.spinner-wrapper {
  border: 1px solid rgba(25, 28, 29, .1);
  border-radius: 20px;
  background: rgba(255, 255, 255, .74);
  box-shadow: 0 16px 46px rgba(25, 28, 29, .06), inset 0 1px 0 #fff;
}
.preview-area, .control-panel, .result-area { padding: clamp(1rem, 3vw, 1.75rem); }
.image-item { border: 1px solid rgba(25, 28, 29, .12) !important; border-radius: 14px !important; box-shadow: 0 8px 22px rgba(25,28,29,.05); }
.image-item .remove-btn { min-width: 44px; min-height: 44px; }

button:disabled,
.btn:disabled {
  cursor: not-allowed;
  box-shadow: none !important;
  opacity: .52;
}

@media (max-width: 767px) {
  .tool-page main { width: min(100% - 24px, 1120px); }
  .tool-heading { margin-bottom: 1.15rem; }
  .universal-upload { min-height: 230px; border-radius: 20px; }
  .upload-privacy { max-width: 300px; margin-inline: auto; }
  .batch-layout, .editor-workspace { gap: 1rem; }
  .batch-settings { order: 2; }
  .batch-files, .editor-preview { order: 1; }
  .btn, button, select, input:not([type="range"]):not([type="checkbox"]):not([type="radio"]) { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .universal-upload { transition: none; }
}

@media (max-width: 767px) {
  .container { width: min(100% - 1.25rem, 1180px); }
  .main-page .tools-section {
    min-height: 0;
    padding: 7.5rem 0 4rem;
  }
  .main-page .tools-section .section-title {
    margin-bottom: 2rem;
    text-align: left;
  }
  .main-page .tools-section .section-title h1 {
    font-size: clamp(2.45rem, 13vw, 4rem);
  }
  .main-page .tools-section .section-title p {
    font-size: 1rem;
  }
  .main-page .tools-grid { grid-template-columns: 1fr; }
  .main-page .tool-card:first-child { grid-column: auto; min-height: 168px; }
  .main-page .section,
  .section { padding: 4rem 0; }
  main.container,
  body:not(.main-page) main.tool-main {
    width: min(100% - 1.25rem, 1180px);
    padding: 2.25rem 0 4rem;
  }
  .tool-heading { text-align: left; }
  .upload-area { padding: 3rem 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Bright glass theme — final visual layer. */
:root {
  --primary: #c96324;
  --primary-dark: #a94e18;
  --secondary: #ed8a4a;
  --accent: #f2a66f;
  --success: #16845b;
  --warning: #b96c18;
  --danger: #c2413b;
  --dark: #17191a;
  --dark-light: #292d2f;
  --gray: #62686c;
  --gray-light: #dfe2e3;
  --light: #fbfbfa;
  --bg-primary: #f4f3f0;
  --bg-secondary: rgba(255, 255, 255, 0.58);
  --bg-card: rgba(255, 255, 255, 0.72);
  --text-primary: #181a1b;
  --text-secondary: #62676a;
  --text-muted: #8b9092;
  --border-light: rgba(25, 28, 29, 0.1);
  --gradient-primary: linear-gradient(135deg, #c96324 0%, #ed8a4a 100%);
  --gradient-secondary: linear-gradient(135deg, #ed8a4a 0%, #f2a66f 100%);
  --gradient-hero: linear-gradient(180deg, #faf9f7 0%, #f2f0ec 100%);
  --shadow-sm: 0 1px 2px rgba(17, 20, 21, 0.04);
  --shadow-md: 0 12px 35px rgba(25, 28, 29, 0.07);
  --shadow-lg: 0 20px 55px rgba(25, 28, 29, 0.09);
  --shadow-xl: 0 26px 70px rgba(25, 28, 29, 0.12);
  --shadow-2xl: 0 32px 90px rgba(25, 28, 29, 0.14);
}

html {
  color-scheme: light;
  background: #f4f3f0;
}

body,
body.homepage,
body.tool-page {
  background:
    radial-gradient(circle at 12% 8%, rgba(237, 138, 74, 0.08), transparent 28rem),
    radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.95), transparent 31rem),
    linear-gradient(180deg, #faf9f7 0%, #f1efeb 100%);
  background-attachment: fixed;
  color: var(--text-primary);
}

body::selection {
  background: rgba(201, 99, 36, 0.18);
  color: var(--text-primary);
}

.navbar,
body.homepage .navbar,
body.tool-page .navbar {
  border-bottom: 1px solid rgba(25, 28, 29, 0.08);
  background: rgba(250, 249, 247, 0.7) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
}

.navbar-brand,
body.homepage .navbar-brand,
body.tool-page .navbar-brand {
  color: var(--text-primary) !important;
}

.navbar-brand i {
  border-color: rgba(201, 99, 36, 0.18);
  background: rgba(255, 255, 255, 0.64);
  color: var(--primary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.nav-link,
body.homepage .nav-link,
body.tool-page .nav-link {
  color: var(--text-secondary) !important;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.active,
body.homepage .nav-link:hover,
body.homepage .nav-link.active,
body.tool-page .nav-link:hover,
body.tool-page .nav-link.active {
  border-color: rgba(25, 28, 29, 0.07);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text-primary) !important;
  box-shadow: 0 4px 16px rgba(25, 28, 29, 0.05), inset 0 1px 0 #fff;
}

.navbar-toggler {
  border-color: rgba(25, 28, 29, 0.1);
  background: rgba(255, 255, 255, 0.68);
  filter: none;
}

.main-page .tools-section,
.workflow-section,
.differentiation-section,
.homepage-faq,
.recent-tools-section {
  background: transparent;
}

.main-page .tools-section {
  min-height: min(820px, 100svh);
}

.main-page .tools-section .section-title h1,
.section-title h2,
.content-hero h1,
.policy-article h1,
.tool-heading h1,
.guides-hero h1,
.guide-header h1 {
  color: var(--text-primary);
}

.gradient-text,
.section-eyebrow,
.proof-action a,
.tool-back:hover,
.page-breadcrumb a:hover {
  color: var(--primary);
}

.section-eyebrow::before {
  background: var(--primary);
  box-shadow: 0 0 0 5px rgba(201, 99, 36, 0.08);
}

.main-page .tools-section .section-title p,
.section-title p,
.tool-heading p,
.content-hero p,
.policy-article header > p:not(.policy-meta) {
  color: var(--text-secondary);
}

.main-page .tool-card,
.tool-card,
.main-page .tool-card:first-child,
.workflow-grid > a,
.differentiation-grid article,
.faq-list details,
.recent-tools-panel,
.conversion-steps li,
.format-route-grid a,
.format-choice-grid article,
.guide-card,
.guide-related a,
.contact-card,
.contact-aside,
.content-cta,
.related-guides,
.batch-workspace,
.preview-area,
.control-panel,
.batch-settings,
.batch-files,
.batch-file {
  border: 1px solid rgba(25, 28, 29, 0.09);
  background: rgba(255, 255, 255, 0.66);
  color: var(--text-primary);
  box-shadow: 0 18px 50px rgba(25, 28, 29, 0.055), inset 0 1px 0 rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(145%);
  -webkit-backdrop-filter: blur(20px) saturate(145%);
}

.main-page .tool-card:first-child {
  border-color: rgba(201, 99, 36, 0.2);
  background: rgba(255, 252, 249, 0.76);
}

.main-page .tool-card:hover,
.tool-card:hover,
.workflow-grid > a:hover,
.workflow-grid > a:focus-visible,
.guide-related a:hover,
.format-route-grid a:hover {
  border-color: rgba(201, 99, 36, 0.3);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text-primary);
  box-shadow: 0 22px 58px rgba(25, 28, 29, 0.075), inset 0 1px 0 #fff;
  transform: none;
}

.main-page .tool-icon,
.tool-icon {
  border-color: rgba(201, 99, 36, 0.15);
  background: rgba(255, 255, 255, 0.72);
  color: var(--primary);
  box-shadow: inset 0 1px 0 #fff, 0 7px 18px rgba(25, 28, 29, 0.045);
}

.main-page .tool-card:hover .tool-icon,
.tool-card:hover .tool-icon {
  background: rgba(255, 255, 255, 0.88);
  color: var(--primary);
}

.main-page .tool-card h3,
.tool-card h3,
.tool-card h5,
.upload-text,
.footer-brand h2,
.footer-links-column h3 {
  color: var(--text-primary);
}

.main-page .tool-card p,
.tool-card p,
.upload-subtext,
.policy-article p,
.policy-article li,
.contact-aside p,
.contact-aside li,
.guide-body p,
.guide-body li,
.guide-deck,
.faq-list p {
  color: var(--text-secondary);
}

.main-page .tool-link,
.tool-link,
.btn-tool {
  color: var(--primary);
}

.privacy-pill {
  border-color: rgba(201, 99, 36, 0.18);
  background: rgba(255, 255, 255, 0.58);
  color: var(--primary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
}

main.container,
body:not(.main-page) main.tool-main {
  background: transparent;
}

.tool-back,
.page-breadcrumb,
.page-breadcrumb a {
  color: var(--text-muted);
}

.upload-area {
  border: 1px dashed rgba(25, 28, 29, 0.2);
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 24px 70px rgba(25, 28, 29, 0.065), inset 0 1px 0 rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
}

.upload-area:hover,
.upload-area:focus-visible,
.upload-area.dragging {
  border-color: rgba(201, 99, 36, 0.5);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 26px 72px rgba(25, 28, 29, 0.075), inset 0 1px 0 #fff;
}

.upload-icon {
  border-color: rgba(201, 99, 36, 0.18);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 30px rgba(25, 28, 29, 0.06), inset 0 1px 0 #fff;
}

.upload-icon i { color: var(--primary); }
.batch-toolbar { border-color: rgba(25, 28, 29, 0.09); }

.form-control,
.form-select,
input[type="number"],
input[type="text"],
input[type="email"],
textarea,
select {
  border-color: rgba(25, 28, 29, 0.12);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text-primary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.form-control:focus,
.form-select:focus,
input:focus,
textarea:focus,
select:focus {
  border-color: rgba(201, 99, 36, 0.55);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-primary);
  box-shadow: 0 0 0 3px rgba(201, 99, 36, 0.1);
}

.format-grid button {
  border-color: rgba(25, 28, 29, 0.1);
  background: rgba(255, 255, 255, 0.62);
  color: var(--text-secondary);
}

.format-grid button:hover,
.format-grid button.selected {
  border-color: rgba(201, 99, 36, 0.38);
  background: rgba(255, 247, 241, 0.9);
  color: var(--primary);
}

.btn-success,
.btn-primary,
.btn-download,
.cta-button {
  border-color: var(--text-primary);
  background: var(--text-primary);
  color: #fff;
  box-shadow: 0 10px 25px rgba(25, 28, 29, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn-success:hover,
.btn-primary:hover,
.btn-download:hover,
.cta-button:hover {
  border-color: #303435;
  background: #303435;
  color: #fff;
  box-shadow: 0 13px 30px rgba(25, 28, 29, 0.16);
}

.btn-outline-primary {
  border-color: rgba(25, 28, 29, 0.12);
  background: rgba(255, 255, 255, 0.5);
  color: var(--primary);
}

.btn-outline-primary:hover {
  border-color: rgba(201, 99, 36, 0.3);
  background: rgba(255, 255, 255, 0.82);
  color: var(--primary);
}

.conversion-final-cta,
.guides-method,
.guide-tool-cta {
  border-color: rgba(25, 28, 29, 0.09);
  background: rgba(255, 255, 255, 0.66);
  color: var(--text-primary);
  box-shadow: 0 18px 50px rgba(25, 28, 29, 0.055), inset 0 1px 0 rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(145%);
}

.conversion-final-cta p,
.guides-method p,
.guide-tool-cta p { color: var(--text-secondary); }

footer {
  border-top: 1px solid rgba(25, 28, 29, 0.08);
  background: rgba(250, 249, 247, 0.56);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.footer-brand h2 i { color: var(--primary); }
.footer-brand p,
.footer-links-column a,
.footer-bottom { color: var(--text-muted); }
.footer-links-column a:hover { color: var(--primary); }

.local-status,
.consent-banner {
  border-color: rgba(25, 28, 29, 0.1);
  background: rgba(255, 255, 255, 0.76);
  color: var(--text-secondary);
  box-shadow: 0 16px 46px rgba(25, 28, 29, 0.1), inset 0 1px 0 #fff;
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}

.local-status-dot { background: var(--success); }

*:focus-visible {
  outline-color: var(--primary);
}

@media (max-width: 991px) {
  .navbar-collapse {
    border-color: rgba(25, 28, 29, 0.09);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 55px rgba(25, 28, 29, 0.1), inset 0 1px 0 #fff;
    backdrop-filter: blur(24px) saturate(155%);
    -webkit-backdrop-filter: blur(24px) saturate(155%);
  }
}

/* Final component-specific overrides. */
.main-page .tools-section .homepage-intro {
  max-width: 780px;
  margin-bottom: 1.75rem;
}
.main-page .tools-section .homepage-intro h1 {
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -.035em;
}
.main-page .tool-card.tool-card-primary {
  border-color: rgba(201, 99, 36, .28);
  background: rgba(255, 252, 249, .82);
  box-shadow: 0 20px 54px rgba(25, 28, 29, .075), inset 0 1px 0 #fff;
}
.main-page .tool-card:first-child { grid-column: auto; min-height: 168px; }
.main-page .tool-card.tool-card-primary .tool-icon { background: #fff1e6; }
.upload-area.universal-upload { min-height: 270px; }

@media (max-width: 767px) {
  .main-page .tools-section .homepage-intro h1 { font-size: clamp(1.75rem, 8.5vw, 2.25rem); }
  .upload-area.universal-upload { min-height: 230px; padding: 2.25rem 1rem; }
}

/* Product-discovery editorial theme, adapted for Free Image Converter. */
:root {
  --primary: #ef6f67;
  --primary-dark: #d95752;
  --secondary: #f28d82;
  --accent: #7a64f2;
  --success: #31966f;
  --warning: #d88b29;
  --danger: #cf4d49;
  --dark: #202124;
  --dark-light: #35373b;
  --gray: #686b72;
  --gray-light: #dedfe3;
  --light: #fafafa;
  --bg-primary: #f7f7f8;
  --bg-secondary: #f1f1f3;
  --bg-card: #ffffff;
  --text-primary: #202124;
  --text-secondary: #686b72;
  --text-muted: #97999f;
  --border-light: #e7e7ea;
  --gradient-primary: linear-gradient(135deg, #ef6f67 0%, #f28d82 100%);
  --gradient-secondary: linear-gradient(135deg, #7a64f2 0%, #9d8bf6 100%);
  --gradient-hero: #f7f7f8;
  --shadow-sm: 0 2px 8px rgba(24, 25, 28, .045);
  --shadow-md: 0 12px 30px rgba(24, 25, 28, .075);
  --shadow-lg: 0 18px 48px rgba(24, 25, 28, .09);
  --shadow-xl: 0 26px 64px rgba(24, 25, 28, .11);
  --shadow-2xl: 0 34px 90px rgba(24, 25, 28, .14);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;
}

html { color-scheme: light; background: var(--bg-primary); }
body,
body.homepage,
body.tool-page {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
}
body.homepage::before { display: none; }

h1, h2, h3, h4, h5, h6,
.navbar-brand {
  color: var(--text-primary);
  font-family: inherit;
  font-weight: 760;
  letter-spacing: -.04em;
}
p, li { letter-spacing: -.012em; }

.navbar,
body.homepage .navbar,
body.tool-page .navbar {
  border-bottom: 1px solid rgba(32, 33, 36, .07);
  background: rgba(255, 255, 255, .94) !important;
  box-shadow: 0 4px 18px rgba(24, 25, 28, .035);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.navbar-brand,
body.homepage .navbar-brand,
body.tool-page .navbar-brand { color: var(--text-primary) !important; }
.navbar-brand i {
  border: 0;
  background: #fff0ee;
  color: var(--primary);
  box-shadow: none;
}
.nav-link,
body.homepage .nav-link,
body.tool-page .nav-link { color: var(--text-secondary) !important; }
.nav-link:hover,
.nav-link:focus-visible,
.nav-link.active,
body.homepage .nav-link:hover,
body.homepage .nav-link.active,
body.tool-page .nav-link:hover,
body.tool-page .nav-link.active {
  border-color: transparent;
  border-radius: 999px;
  background: #f4f4f5;
  color: var(--text-primary) !important;
  box-shadow: none;
}
.navbar-toggler { border-color: var(--border-light); background: #f7f7f8; filter: none; }

.main-page .tools-section,
.workflow-section,
.differentiation-section,
.homepage-faq,
.recent-tools-section,
main.container,
body:not(.main-page) main.tool-main { background: transparent; }

.main-page .tools-section { padding-top: 6.5rem; }
.main-page .tools-section .homepage-intro {
  max-width: 860px;
  margin-inline: 0;
  text-align: left;
}
.main-page .tools-section .homepage-intro h1 {
  max-width: 760px;
  font-size: clamp(2rem, 4vw, 3.65rem);
  line-height: 1.04;
}
.main-page .tools-section .homepage-intro p { max-width: 680px; }
.tool-picker-heading {
  max-width: none;
  margin: 2rem 0 1.25rem;
  text-align: left;
}
.tool-picker-heading h2 { font-size: clamp(1.55rem, 2.5vw, 2.15rem); }

.main-page .tools-grid {
  max-width: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.main-page .tool-card,
.tool-card,
.main-page .tool-card:first-child,
.main-page .tool-card.tool-card-primary,
.workflow-grid > a,
.differentiation-grid article,
.faq-list details,
.recent-tools-panel,
.conversion-steps li,
.format-route-grid a,
.format-choice-grid article,
.guide-card,
.guide-related a,
.contact-card,
.contact-aside,
.content-cta,
.related-guides,
.batch-workspace,
.preview-area,
.control-panel,
.result-area,
.spinner-wrapper,
.batch-settings,
.batch-files,
.batch-file,
.image-item {
  border-color: var(--border-light) !important;
  background: var(--bg-card) !important;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.main-page .tool-card,
.tool-card {
  min-height: 184px;
  border-radius: 20px;
}
.main-page .tool-card.tool-card-primary {
  border-color: #f5c8c4 !important;
  background: linear-gradient(145deg, #fff 0%, #fff6f5 100%) !important;
}
.main-page .tool-card:hover,
.tool-card:hover,
.workflow-grid > a:hover,
.workflow-grid > a:focus-visible,
.guide-related a:hover,
.format-route-grid a:hover {
  border-color: #f0c1bd !important;
  background: #ffffff !important;
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.main-page .tool-icon,
.tool-icon,
.main-page .tool-card.tool-card-primary .tool-icon,
.upload-icon,
.universal-upload .upload-icon {
  border: 0;
  background: #fff0ee;
  color: var(--primary);
  box-shadow: none;
}
.main-page .tool-card:nth-child(3n + 2) .tool-icon { background: #f0edff; color: var(--accent); }
.main-page .tool-card:nth-child(3n) .tool-icon { background: #eaf7f2; color: var(--success); }

.main-page .tools-section .section-title h1,
.section-title h2,
.content-hero h1,
.policy-article h1,
.tool-heading h1,
.guides-hero h1,
.guide-header h1,
.main-page .tool-card h3,
.tool-card h3,
.tool-card h5,
.upload-text,
.footer-brand h2,
.footer-links-column h3 { color: var(--text-primary); }

.main-page .tools-section .section-title p,
.section-title p,
.tool-heading p,
.content-hero p,
.policy-article header > p:not(.policy-meta),
.main-page .tool-card p,
.tool-card p,
.upload-subtext,
.upload-choice,
.upload-privacy,
.policy-article p,
.policy-article li,
.contact-aside p,
.contact-aside li,
.guide-body p,
.guide-body li,
.guide-deck,
.faq-list p { color: var(--text-secondary); }

.section-eyebrow,
.gradient-text,
.main-page .tool-link,
.tool-link,
.btn-tool,
.proof-action a,
.upload-choice span,
.tool-back:hover,
.page-breadcrumb a:hover {
  color: var(--primary);
  -webkit-text-fill-color: currentColor;
}
.section-eyebrow::before { background: var(--primary); box-shadow: 0 0 0 5px rgba(239, 111, 103, .11); }
.privacy-pill {
  border-color: #f6cfcc;
  background: #fff1ef;
  color: var(--primary-dark);
  box-shadow: none;
  backdrop-filter: none;
}

.upload-area,
.upload-area.universal-upload {
  border-color: #d9d9de;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.upload-area:hover,
.upload-area:focus-visible,
.upload-area.dragging,
.upload-area.universal-upload:hover,
.upload-area.universal-upload.dragging {
  border-color: var(--primary);
  background: #fffafa;
  box-shadow: 0 0 0 4px rgba(239, 111, 103, .09), var(--shadow-md);
}
.upload-privacy i { color: var(--success); }
.local-status-dot { background: var(--success); }

.form-control,
.form-select,
input[type="number"],
input[type="text"],
input[type="email"],
textarea,
select,
.format-grid button,
.preset-grid button,
.advanced-settings {
  border-color: var(--border-light);
  border-radius: 12px;
  background: #f9f9fa;
  color: var(--text-primary);
  box-shadow: none;
}
.form-control:focus,
.form-select:focus,
input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  background: #fff;
  color: var(--text-primary);
  box-shadow: 0 0 0 3px rgba(239, 111, 103, .12);
}
.format-grid button:hover,
.format-grid button.selected,
.preset-grid button:hover,
.preset-grid button.active {
  border-color: #f0c1bd;
  background: #fff0ee;
  color: var(--primary-dark);
}

.btn-success,
.btn-primary,
.btn-warning,
.btn-danger,
.btn-download,
.cta-button {
  border-color: var(--primary);
  border-radius: 999px;
  background: var(--primary);
  color: #ffffff;
  box-shadow: none;
}
.btn-success:hover,
.btn-primary:hover,
.btn-warning:hover,
.btn-danger:hover,
.btn-download:hover,
.cta-button:hover {
  border-color: var(--primary-dark);
  background: var(--primary-dark);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}
.btn-outline-primary,
.btn-outline-secondary {
  border-color: var(--border-light);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text-secondary);
}
.btn-outline-primary:hover,
.btn-outline-secondary:hover { border-color: #f0c1bd; background: #fff0ee; color: var(--primary-dark); }

.batch-toolbar { border-color: var(--border-light); }
footer {
  border-top-color: var(--border-light);
  background: #ededf0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.local-status,
.consent-banner {
  border-color: var(--border-light);
  border-radius: 18px;
  background: #ffffff;
  color: var(--text-secondary);
  box-shadow: var(--shadow-lg);
}
*:focus-visible { outline-color: var(--primary); }

@media (max-width: 991px) {
  .main-page .tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .navbar-collapse { border-color: var(--border-light); background: #fff; box-shadow: var(--shadow-md); }
}

@media (max-width: 559px) {
  .main-page .tools-section { padding-top: 5.5rem; }
  .main-page .tools-grid { grid-template-columns: 1fr; }
  .main-page .tools-section .homepage-intro h1 { font-size: clamp(1.9rem, 9vw, 2.55rem); }
}

@media (prefers-reduced-motion: reduce) {
  .main-page .tool-card:hover,
  .tool-card:hover { transform: none; }
}

/* Warm glass finish layered over the product-discovery theme. */
body,
body.homepage,
body.tool-page {
  background:
    radial-gradient(circle at 8% 8%, rgba(239, 111, 103, .18), transparent 31rem),
    radial-gradient(circle at 88% 16%, rgba(122, 100, 242, .12), transparent 34rem),
    radial-gradient(circle at 52% 76%, rgba(255, 211, 205, .2), transparent 38rem),
    linear-gradient(180deg, #fffafa 0%, #f5f3f6 52%, #f8f7f8 100%);
  background-attachment: fixed;
}

body.homepage::before {
  display: block;
  position: fixed;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.2), rgba(255,255,255,.2)),
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.7), transparent 22rem);
  pointer-events: none;
}

.navbar,
body.homepage .navbar,
body.tool-page .navbar {
  border-color: rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .66) !important;
  box-shadow: 0 8px 30px rgba(44, 34, 42, .07), inset 0 1px 0 rgba(255,255,255,.9);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
}

.main-page .tool-card,
.tool-card,
.main-page .tool-card:first-child,
.main-page .tool-card.tool-card-primary,
.workflow-grid > a,
.differentiation-grid article,
.faq-list details,
.recent-tools-panel,
.conversion-steps li,
.format-route-grid a,
.format-choice-grid article,
.guide-card,
.guide-related a,
.contact-card,
.contact-aside,
.content-cta,
.related-guides,
.batch-workspace,
.preview-area,
.control-panel,
.result-area,
.spinner-wrapper,
.batch-settings,
.batch-files,
.batch-file,
.image-item {
  border-color: rgba(255, 255, 255, .8) !important;
  background: rgba(255, 255, 255, .64) !important;
  box-shadow: 0 18px 52px rgba(48, 38, 46, .075), inset 0 1px 0 rgba(255,255,255,.96);
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
}

.main-page .tool-card.tool-card-primary {
  border-color: rgba(255, 255, 255, .92) !important;
  background: linear-gradient(145deg, rgba(255,255,255,.8), rgba(255,239,237,.62)) !important;
}

.main-page .tool-card:hover,
.tool-card:hover,
.workflow-grid > a:hover,
.workflow-grid > a:focus-visible,
.guide-related a:hover,
.format-route-grid a:hover {
  border-color: rgba(255, 255, 255, .98) !important;
  background: rgba(255, 255, 255, .82) !important;
  box-shadow: 0 24px 62px rgba(48, 38, 46, .11), inset 0 1px 0 #fff;
}

.upload-area,
.upload-area.universal-upload {
  border-color: rgba(239, 111, 103, .3);
  background: rgba(255, 255, 255, .58);
  box-shadow: 0 22px 62px rgba(48, 38, 46, .075), inset 0 1px 0 rgba(255,255,255,.96);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
}

.upload-area:hover,
.upload-area:focus-visible,
.upload-area.dragging,
.upload-area.universal-upload:hover,
.upload-area.universal-upload.dragging {
  background: rgba(255, 250, 250, .8);
  box-shadow: 0 0 0 4px rgba(239, 111, 103, .09), 0 25px 65px rgba(48, 38, 46, .1);
}

.form-control,
.form-select,
input[type="number"],
input[type="text"],
input[type="email"],
textarea,
select,
.format-grid button,
.preset-grid button,
.advanced-settings {
  border-color: rgba(64, 55, 63, .1);
  background: rgba(255, 255, 255, .62);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.privacy-pill,
.local-status,
.consent-banner {
  border-color: rgba(255, 255, 255, .82);
  background: rgba(255, 255, 255, .66);
  box-shadow: 0 14px 40px rgba(48, 38, 46, .08), inset 0 1px 0 rgba(255,255,255,.96);
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
}

footer {
  border-top-color: rgba(255,255,255,.72);
  background: rgba(239, 237, 241, .68);
  backdrop-filter: blur(22px) saturate(135%);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
}

@media (max-width: 991px) {
  .navbar-collapse {
    border-color: rgba(255,255,255,.82);
    background: rgba(255,255,255,.82);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
  }
}

@media (prefers-reduced-transparency: reduce) {
  .navbar,
  .main-page .tool-card,
  .tool-card,
  .upload-area,
  .batch-workspace,
  .preview-area,
  .control-panel,
  .result-area,
  .batch-settings,
  .batch-files,
  .privacy-pill,
  .local-status,
  .consent-banner,
  footer {
    background: #ffffff !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* Live-sampled product styling: neutral canvas, coral accent and soft glass. */
:root {
  --primary: #e87070;
  --primary-dark: #d76161;
  --primary-light: #f6c7c7;
  --secondary: #2f3237;
  --accent: #e87070;
  --bg-primary: #ffffff;
  --bg-secondary: #f9f9f9;
  --bg-card: rgba(250, 250, 250, .6);
  --text-primary: #111213;
  --text-secondary: #2f3237;
  --text-muted: #73767d;
  --border-light: rgba(17, 18, 19, .08);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .06);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, .06);
  --shadow-lg: 0 8px 28px rgba(0, 0, 0, .08);
  --radius-lg: 24px;
}

html,
body,
body.main-page,
body.tool-page,
body.content-page {
  background: #ffffff;
}

body {
  color: #111213;
  font-family: "Helvetica Neue", -apple-system, BlinkMacSystemFont, system-ui,
    Arial, "Noto Sans", Ubuntu, Roboto, sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 16px;
  line-height: 1.3;
}

body.homepage::before {
  display: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
  color: #111213;
  font-family: inherit;
}

.homepage h1,
.hero h1,
.page-hero h1 {
  font-size: clamp(1.85rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.02em;
}

.section-title h2,
.homepage h2 {
  font-size: clamp(1.5rem, 2.5vw, 1.75rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.015em;
}

p,
.hero-description,
.section-subtitle,
.tool-card p {
  color: #2f3237;
}

.navbar,
.navbar.scrolled {
  border-color: rgba(17, 18, 19, .06);
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
  backdrop-filter: blur(27.5px);
  -webkit-backdrop-filter: blur(27.5px);
}

.main-page .tool-card,
.tool-card,
.batch-workspace,
.preview-area,
.control-panel,
.result-area,
.batch-settings,
.batch-files,
.feature-card,
.privacy-card,
.faq-card,
.content-card {
  border: 1px solid rgba(17, 18, 19, .06);
  border-radius: 24px;
  background: rgba(250, 250, 250, .6);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
  backdrop-filter: blur(27.5px);
  -webkit-backdrop-filter: blur(27.5px);
}

.main-page .tool-card:hover,
.tool-card:hover {
  border-color: rgba(232, 112, 112, .22);
  background: rgba(250, 250, 250, .82);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .08);
}

.tool-card h3,
.tool-card .tool-title {
  color: #181d27;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.btn-primary,
.primary-btn,
.cta-button,
.upload-button {
  border-color: #e87070;
  border-radius: 100px;
  background: #e87070;
  color: #ffffff;
  box-shadow: none;
}

.btn-primary:hover,
.primary-btn:hover,
.cta-button:hover,
.upload-button:hover {
  border-color: #d76161;
  background: #d76161;
  color: #ffffff;
}

.nav-link,
.category-pill,
.filter-btn,
.format-badge,
.privacy-pill,
.local-status {
  color: #2f3237;
}

.category-pill,
.filter-btn,
.format-badge {
  border-color: transparent;
  border-radius: 100px;
  background: #f9f9f9;
  font-weight: 700;
}

.upload-area,
.upload-area.universal-upload {
  border-color: rgba(232, 112, 112, .26);
  border-radius: 24px;
  background: rgba(250, 250, 250, .6);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
  backdrop-filter: blur(27.5px);
  -webkit-backdrop-filter: blur(27.5px);
}

.upload-area:hover,
.upload-area:focus-visible,
.upload-area.dragging,
.upload-area.universal-upload:hover,
.upload-area.universal-upload.dragging {
  background: rgba(250, 250, 250, .86);
  box-shadow: 0 0 0 4px rgba(232, 112, 112, .09), 0 8px 28px rgba(0, 0, 0, .08);
}

footer {
  border-top-color: rgba(17, 18, 19, .06);
  background: #f9f9f9;
  box-shadow: none;
}

@media (max-width: 991px) {
  .navbar-collapse {
    border-color: rgba(17, 18, 19, .06);
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(27.5px);
    -webkit-backdrop-filter: blur(27.5px);
  }
}

/* Compact homepage introduction: one message before the primary tools. */
.main-page .tools-section .homepage-intro {
  max-width: 720px;
  margin-bottom: 1.5rem;
}

.main-page .tools-section .homepage-intro h1 {
  max-width: none;
  margin-bottom: .75rem;
  font-size: clamp(1.85rem, 3vw, 2rem);
  line-height: 1.15;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.main-page .tools-section .homepage-intro p {
  max-width: 680px;
  margin-inline: 0;
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.55;
  text-wrap: pretty;
}

@media (max-width: 559px) {
  .main-page .tools-section .homepage-intro {
    margin-bottom: 1.25rem;
  }

  .main-page .tools-section .homepage-intro h1 {
    font-size: clamp(1.75rem, 8vw, 2rem);
  }
}

/* Final layout refinements: keep status informative without obscuring content. */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom > p {
  margin: 0;
}

.footer-bottom .local-status {
  position: static;
  inset: auto;
  z-index: auto;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: .5rem .7rem;
  box-shadow: none;
}

.homepage-format-intro {
  padding: 2rem 0;
}

.homepage-format-intro .format-intro-copy {
  max-width: 760px;
}

.homepage-format-intro .format-intro-copy p {
  line-height: 1.6;
}

.formats-page .formats-hero {
  margin-bottom: 1.75rem;
}

.formats-page .format-directory {
  margin: 1.75rem 0 2.25rem;
}

.formats-page .format-decision {
  margin: 2.25rem 0;
}

@media (max-width: 767px) {
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-bottom .local-status {
    justify-content: flex-start;
    width: 100%;
  }

  .homepage-format-intro {
    padding: 1.75rem 0;
  }

  .formats-page .formats-hero {
    margin-bottom: 1.25rem;
  }

  .formats-page .formats-hero h1 {
    margin-block: .5rem;
    font-size: clamp(2rem, 9vw, 2.6rem);
  }

  .formats-page .format-directory,
  .formats-page .format-decision {
    margin: 1.75rem 0;
  }

  .formats-page .format-directory .section-title,
  .format-decision-heading {
    margin-bottom: 1rem;
  }

  .formats-page .format-route-grid {
    gap: .75rem;
  }

  .formats-page .format-route-grid a {
    padding: .9rem 1rem;
  }

  .formats-page .format-choice-grid {
    gap: .75rem;
  }

  .formats-page .format-choice-grid article {
    padding: 1rem;
  }
}

/* Product-wide refinement pass: consistent hierarchy, spacing and density. */
.main-page .tool-card:hover,
.main-page .tool-card:focus-within,
.tool-card:hover,
.tool-card:focus-within,
.format-route-grid a:hover,
.workflow-grid > a:hover,
.workflow-grid > a:focus-visible {
  transform: none !important;
}

.main-page .section {
  padding-block: 4rem;
}

.main-page .tools-section {
  padding-top: 6.5rem;
  padding-bottom: 4rem;
}

.main-page .homepage-format-intro {
  padding-block: 3rem;
}

.main-page .workflow-section,
.main-page .differentiation-section,
.main-page .homepage-faq {
  padding-block: 4rem;
}

.recent-tools-inline {
  margin-top: 1.5rem;
}

.recent-tools-inline .recent-tools-panel {
  padding: 1rem 1.25rem;
}

.recent-tools-inline .recent-tools-panel h2 {
  margin: .2rem 0 0;
  font-size: 1.15rem;
}

.recent-tools-inline .section-eyebrow {
  font-size: .7rem;
}

@media (min-width: 992px) {
  .main-page .tools-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .main-page .tools-grid > .tool-card {
    grid-column: span 3;
  }

  .main-page .tools-grid > .tool-card:nth-child(n + 5) {
    grid-column: span 4;
  }
}

.content-hero h1,
.policy-article h1,
.privacy-hero h1,
.formats-page .formats-hero h1,
.conversion-hero h1,
.guides-hero h1,
.guide-header h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.08;
  text-wrap: balance;
}

.tool-heading h1 {
  font-size: clamp(2.15rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
}

.differentiation-grid article:nth-child(2) p {
  max-width: 30ch;
}

footer {
  padding: 3rem 0 1.5rem;
}

.footer-content {
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-links-column h3 {
  margin-bottom: 1rem;
}

.footer-links-column ul li {
  margin-bottom: .5rem;
}

.footer-bottom {
  padding-top: 1.25rem;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 1rem 1.25rem;
  flex-wrap: wrap;
  text-align: left;
}

.footer-legal > p {
  margin: 0;
}

.footer-legal nav {
  display: flex;
  gap: .5rem 1rem;
  flex-wrap: wrap;
}

.footer-legal a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: .2em;
}

.about-hero {
  max-width: 760px;
}

.about-principles,
.about-operator {
  margin-block: 3rem;
}

.about-principles .section-title {
  margin-bottom: 1.5rem;
  text-align: left;
}

.about-principles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.about-principles-grid article {
  padding: 1.5rem;
  border: 1px solid var(--border-light);
  border-radius: 24px;
  background: rgba(250, 250, 250, .6);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}

.about-principles-grid article > i {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: #fff0ef;
  color: var(--primary);
  font-size: 1.15rem;
  place-items: center;
}

.about-principles-grid h3 {
  margin-bottom: .5rem;
  font-size: 1.1rem;
}

.about-principles-grid p,
.about-operator p {
  margin-bottom: 0;
  color: var(--text-secondary);
  line-height: 1.65;
}

.about-operator {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 2rem;
  padding: 2rem;
  border: 1px solid var(--border-light);
  border-radius: 24px;
  background: rgba(250, 250, 250, .6);
}

.about-operator h2 {
  margin-top: .5rem;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}

.about-operator p + p {
  margin-top: 1rem;
}

.about-links {
  display: flex;
  gap: .75rem 1.25rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.about-links a {
  color: var(--primary-dark);
  font-weight: 600;
  text-underline-offset: .2em;
}

@media (max-width: 767px) {
  .main-page .section,
  .main-page .workflow-section,
  .main-page .differentiation-section,
  .main-page .homepage-faq {
    padding-block: 3rem;
  }

  .main-page .tools-section {
    padding-top: 5.5rem;
    padding-bottom: 3rem;
  }

  .main-page .homepage-format-intro {
    padding-block: 2.5rem;
  }

  .content-hero h1,
  .policy-article h1,
  .privacy-hero h1,
  .formats-page .formats-hero h1,
  .conversion-hero h1,
  .guides-hero h1,
  .guide-header h1 {
    font-size: clamp(2rem, 9vw, 2.65rem);
  }

  .footer-content {
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .footer-legal,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .about-principles-grid,
  .about-operator {
    grid-template-columns: 1fr;
  }

  .about-principles,
  .about-operator {
    margin-block: 2rem;
  }

  .about-operator {
    gap: 1.25rem;
    padding: 1.25rem;
  }
}

/* Warm editorial utility theme. */
:root{--primary:oklch(64% .2 30);--primary-dark:oklch(57% .2 30);--primary-light:oklch(93% .035 30);--primary-action:oklch(55% .19 30);--focus-ring:oklch(58% .18 30 / .34);--bg-primary:oklch(96.5% .002 270);--bg-secondary:oklch(96% .002 270);--bg-card:#fff;--text-primary:oklch(18% .005 270);--text-secondary:oklch(43% .006 270);--text-muted:oklch(55% .006 270);--border-light:oklch(92% .003 270);--shadow-sm:0 1px 2px rgba(0,0,0,.03),0 2px 4px rgba(0,0,0,.03),inset 0 1px 0 rgba(255,255,255,.6);--shadow-md:0 8px 24px rgba(0,0,0,.07);--shadow-lg:0 12px 36px rgba(0,0,0,.09);--radius-lg:20px;--radius-md:14px;--section-space:clamp(3.5rem,6vw,5rem)}
html,body,body.main-page,body.tool-page,body.content-page,body.formats-page,body.article-page{background:#f5f5f6;background:var(--bg-primary)}body{color:var(--text-primary);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:16px;line-height:1.5}
.navbar,.navbar.scrolled{top:1rem;left:50%;width:calc(100% - 2rem);max-width:1024px;min-height:56px;padding:.45rem .6rem;border:1px solid rgba(255,255,255,.85);border-radius:999px;background:rgba(255,255,255,.94);box-shadow:0 8px 28px rgba(24,24,27,.12),inset 0 1px 0 #fff;transform:translateX(-50%);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}.navbar .container{width:100%;padding-inline:.35rem}.navbar-brand{color:var(--text-primary)!important;font-size:1rem;font-weight:800;letter-spacing:-.025em}.navbar-brand>i{display:grid;width:32px;height:32px;border-radius:50%;background:var(--primary);color:#fff;place-items:center}.nav-link{padding:.55rem .85rem!important;border-radius:999px;color:var(--text-secondary)!important;font-size:.875rem;font-weight:500}.nav-link:hover,.nav-link:focus-visible,.nav-link.active{background:var(--text-primary);color:#fff!important}
.main-page .tools-section{padding-top:9.5rem;padding-bottom:4.5rem}.main-page .tools-section .homepage-intro{max-width:760px;margin:0 auto 2.5rem;text-align:center}.main-page .tools-section .homepage-intro h1{margin-bottom:1rem;font-size:clamp(2.5rem,5.5vw,4.5rem);font-weight:800;letter-spacing:-.045em;line-height:.98}.main-page .tools-section .homepage-intro p{max-width:620px;margin-inline:auto;color:var(--text-muted);font-size:clamp(1rem,2vw,1.125rem);line-height:1.625;text-align:center}.main-page .tools-grid{gap:1rem}
.main-page .tool-card,.tool-card,.workflow-grid>a,.differentiation-grid article,.faq-list details,.recent-tools-panel,.format-route-grid a,.format-choice-grid article,.guide-card,.guide-related a,.contact-card,.contact-aside,.related-guides,.batch-workspace,.preview-area,.control-panel,.result-area,.batch-settings,.batch-files,.diagnostic-card,.privacy-section,.about-principles-grid article,.about-operator{border:1px solid var(--border-light)!important;border-radius:20px!important;background:#fff!important;color:var(--text-primary);box-shadow:var(--shadow-sm)!important;backdrop-filter:none;-webkit-backdrop-filter:none}.main-page .tool-card{min-height:220px;padding:1.5rem}.main-page .tool-card:first-child{border-color:transparent!important;background:var(--primary)!important;color:#fff;box-shadow:0 8px 32px -8px rgba(219,77,57,.38),inset 0 1px 0 rgba(255,255,255,.6)!important}.main-page .tool-card:first-child h3,.main-page .tool-card:first-child p,.main-page .tool-card:first-child .tool-link{color:#fff!important}.main-page .tool-card:first-child .tool-icon{background:rgba(255,255,255,.18)!important;color:#fff!important}.main-page .tool-card:hover,.tool-card:hover,.workflow-grid>a:hover,.format-route-grid a:hover,.guide-related a:hover{border-color:color-mix(in oklab,var(--primary) 35%,transparent)!important;background:#fff!important;box-shadow:var(--shadow-md)!important;transform:none!important}.main-page .tool-card:first-child:hover{background:var(--primary-dark)!important}.main-page .tool-card h3,.tool-card h3,.guide-card h2,.differentiation-grid h3{color:var(--text-primary);font-weight:750;letter-spacing:-.025em}.main-page .tool-card p,.tool-card p,.guide-card p,.differentiation-grid p,.format-choice-grid p{color:var(--text-muted)}.tool-icon,.main-page .tool-icon{border-radius:12px;background:var(--primary-light)!important;color:var(--primary)!important;box-shadow:none}.tool-link,.guide-card-link,.proof-action a,.format-intro-copy a,.about-links a{color:var(--primary-dark);font-weight:650}
.btn-primary,.btn-success,.btn-warning,.btn-download,.primary-btn,.cta-button,.upload-button{border-color:transparent!important;border-radius:999px!important;background:var(--primary)!important;color:#fff!important;box-shadow:none!important;font-weight:650}.btn-primary:hover,.btn-success:hover,.btn-warning:hover,.btn-download:hover,.primary-btn:hover,.cta-button:hover,.upload-button:hover{background:var(--primary-dark)!important}.btn-outline-primary,.btn-outline-secondary,.btn-outline-success{border-color:var(--border-light);border-radius:999px;background:#fff;color:var(--text-primary)}.section-eyebrow,.privacy-pill{color:var(--primary-dark);font-size:.75rem;font-weight:750;letter-spacing:.14em;text-transform:uppercase}.privacy-pill{border:1px solid var(--border-light);border-radius:999px;background:#fff;box-shadow:var(--shadow-sm)}
.section-title h2,.content-hero h1,.policy-article h1,.privacy-hero h1,.formats-page .formats-hero h1,.conversion-hero h1,.guides-hero h1,.guide-header h1{color:var(--text-primary);font-size:clamp(2.5rem,5.5vw,4.5rem);font-weight:800;letter-spacing:-.04em;line-height:1.02}.tool-heading h1{color:var(--text-primary);font-size:clamp(2.25rem,4vw,3.5rem);font-weight:800;letter-spacing:-.04em;line-height:1}.section-title p,.content-hero p,.tool-heading p,.privacy-hero p,.guides-hero p,.guide-deck{color:var(--text-muted)}.main-page .homepage-format-intro,.main-page .workflow-section,.main-page .differentiation-section,.main-page .homepage-faq{padding-block:5rem;border-color:var(--border-light)}
.upload-area,.upload-area.universal-upload{border:1.5px dashed color-mix(in oklab,var(--text-primary) 15%,transparent);border-radius:20px;background:#fff;box-shadow:var(--shadow-sm);backdrop-filter:none;-webkit-backdrop-filter:none}.upload-area:hover,.upload-area:focus-visible,.upload-area.dragging,.upload-area.universal-upload:hover,.upload-area.universal-upload.dragging{border-color:var(--primary);background:#fff;box-shadow:0 0 0 4px color-mix(in oklab,var(--primary) 12%,transparent),var(--shadow-md)}.form-control,.form-select,input[type=number],input[type=text],input[type=email],textarea,select,.format-grid button,.preset-grid button,.advanced-settings{border-color:var(--border-light);border-radius:12px;background:#fff;color:var(--text-primary);box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}.format-grid button.selected,.preset-grid button.selected{border-color:var(--text-primary);background:var(--text-primary);color:#fff}
footer{border-top:1px solid var(--border-light);background:var(--text-primary);color:#fff}.footer-brand h2,.footer-links-column h3{color:#fff}.footer-brand p,.footer-links-column a,.footer-legal,.footer-legal a,.footer-bottom{color:rgba(255,255,255,.62)}.footer-links-column a:hover,.footer-legal a:hover,.footer-legal a:focus-visible{color:#fff}.footer-bottom .local-status{border-color:rgba(255,255,255,.12);background:rgba(255,255,255,.07);color:rgba(255,255,255,.72)}.footer-bottom .local-status a{color:#fff}
@media(max-width:991px){.navbar-collapse{margin-top:.6rem;padding:.5rem;border:1px solid var(--border-light);border-radius:18px;background:rgba(255,255,255,.98);box-shadow:var(--shadow-md);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}}
@media(max-width:767px){.navbar,.navbar.scrolled{top:.75rem;width:calc(100% - 1.5rem)}.main-page .tools-section{padding-top:8rem;padding-bottom:3rem}.main-page .tools-section .homepage-intro{margin-bottom:2rem;text-align:left}.main-page .tools-section .homepage-intro h1{font-size:clamp(2.4rem,13vw,3.5rem);line-height:1}.main-page .tools-section .homepage-intro p{margin-inline:0;text-align:left}.main-page .homepage-format-intro,.main-page .workflow-section,.main-page .differentiation-section,.main-page .homepage-faq{padding-block:3.5rem}.content-hero h1,.policy-article h1,.privacy-hero h1,.formats-page .formats-hero h1,.conversion-hero h1,.guides-hero h1,.guide-header h1{font-size:clamp(2.25rem,11vw,3.25rem)}.main-page .tool-card{min-height:190px}}

/* 2026 consistency and accessibility refinement */
/* Predictable hierarchy: supporting headings never compete with the page title. */
.main-page .tools-section .homepage-intro h1{font-size:clamp(2.5rem,5vw,4rem);line-height:1.02}
.section-title h2,.workflow-section .section-title h2,.differentiation-section .section-title h2,.homepage-faq h2,
.formats-page h2,.content-page h2,.privacy-section h2{font-size:clamp(1.9rem,3.4vw,3rem);line-height:1.1;letter-spacing:-.035em}
.formats-page .formats-hero h1,.content-hero h1,.privacy-hero h1,.guides-hero h1,.guide-header h1{font-size:clamp(2.5rem,5vw,4rem)}
.tool-heading h1{font-size:clamp(2.25rem,4vw,3.35rem)}

/* Stable, accessible action surfaces. */
.main-page .tool-card{position:relative;min-height:205px}
.stretched-tool-link::after{position:absolute;inset:0;content:"";border-radius:inherit}
.main-page .tool-card:has(.stretched-tool-link:focus-visible){outline:3px solid var(--focus-ring);outline-offset:3px}
.main-page .tool-card:first-child{background:var(--primary-action)!important}
.main-page .tool-card:first-child:hover{background:oklch(50% .18 30)!important}
.main-page .tool-card:first-child p{color:rgba(255,255,255,.94)!important}
.upload-button{display:inline-flex;min-height:44px;align-items:center;justify-content:center;margin-top:1rem;padding:.65rem 1.05rem;background:var(--primary-action)!important}
.upload-choice{margin-top:.2rem;color:var(--text-muted);font-size:.9rem}
.upload-subtext{margin-top:.9rem}
.upload-privacy{display:flex;align-items:center;justify-content:center;gap:.4rem;color:var(--text-muted)}
.upload-privacy strong{color:var(--text-secondary);font-weight:700}
.upload-area:focus-visible{outline:3px solid var(--focus-ring)!important;outline-offset:3px}
:where(a,button,input,select,textarea,[role=button]):focus-visible{outline:3px solid var(--focus-ring)!important;outline-offset:3px}
.form-range:focus-visible{outline:none!important}
button:disabled,.btn:disabled{cursor:not-allowed;opacity:.5;box-shadow:none!important;transform:none!important}

/* One alignment axis and one workspace language for every tool. */
.tool-heading{max-width:760px;margin-inline:0;text-align:left}
.tool-heading .privacy-pill{margin-inline:0}
.batch-workspace,.preview-area,.control-panel,.result-area{overflow:hidden}
.batch-settings,.control-panel{border-color:var(--border-light)!important;background:#fff!important}
.batch-files,.preview-area{background:#fff!important}
.workspace-header{max-width:620px;margin-inline:auto}.workspace-heading,.result-heading{margin:0;color:var(--text-primary);font-size:1.35rem;font-weight:750;letter-spacing:-.025em;line-height:1.2}.workspace-subheading{color:var(--text-primary);font-size:1rem;font-weight:750}.workspace-description{margin:.45rem 0 0;color:var(--text-muted);font-size:.94rem}.workspace-count{color:var(--text-muted);font-weight:600}.control-panel>.workspace-heading{text-align:left}.preview-area,.control-panel,.result-area{padding:1.5rem}.result-area{text-align:center}
.crop-selection-status{font-size:.94rem}.crop-selection-status output{margin-left:.25rem;color:var(--text-primary);font-weight:700}
.spinner-wrapper{padding:2rem;border:1px solid var(--border-light);border-radius:20px;background:#fff;text-align:center}
.file-info{border-color:var(--border-light);background:var(--bg-secondary)}
.progress-summary,.file-status{font-weight:650}
.file-status-done{color:var(--success)}
.file-status-error{color:#b42336}
.compression-presets button{position:relative;padding-right:2.1rem;text-align:left}
.compression-presets .preset-check{position:absolute;top:.55rem;right:.55rem;display:none;width:1.25rem;height:1.25rem;align-items:center;justify-content:center;border-radius:50%;background:var(--primary-action);color:#fff;font-size:.85rem}
.compression-presets button.active{border-color:var(--primary-action)!important;background:var(--primary-light)!important;color:var(--text-primary)!important;box-shadow:inset 0 0 0 1px var(--primary-action)!important}
.compression-presets button.active .preset-check{display:flex}
.compression-presets button.active small{color:var(--primary-dark)!important;opacity:1!important;font-weight:700}
.resize-control-group{margin-top:1rem}.resize-control-group>.settings-grid{margin:0}.resize-ratio-control{margin-top:.75rem;padding-top:.75rem;border-top:1px solid var(--border-light)}
.editor-control-group{display:grid;gap:.65rem;margin:0;padding:1.15rem 0;border:0;border-top:1px solid var(--border-light)}.editor-control-group legend{float:none;width:auto;margin:0;padding:0;color:var(--text-primary);font-size:.86rem;font-weight:750;letter-spacing:.01em}.editor-button-grid{gap:.6rem}.editor-button-grid button{display:grid;min-height:72px;grid-template-columns:32px 1fr;align-items:center;gap:.65rem;padding:.7rem;border:1px solid var(--border-light);border-radius:12px;background:#fff;color:var(--text-primary);text-align:left}.editor-button-grid button i{display:grid;width:32px;height:32px;border-radius:9px;background:var(--primary-light);color:var(--primary-dark);font-size:1rem;place-items:center}.editor-button-grid button:hover{border-color:var(--primary-action);background:var(--bg-secondary);transform:none}.editor-actions{padding-top:1rem;border-top:1px solid var(--border-light)}
.app-status-danger{border-color:#efb5bd;background:#fff1f3;color:#8f1d30}
.app-status-success{border-color:#a8dec8;background:#effbf6;color:#086447}
#cropCanvas{max-width:100%;border:2px solid var(--border-light);border-radius:12px;cursor:crosshair}
#cropBox{display:none;position:absolute;border:3px solid var(--primary-action);background:oklch(55% .19 30 / .1);cursor:move}
.crop-handle{position:absolute;width:14px;height:14px;border:2px solid #fff;border-radius:50%;background:var(--primary-action)}
.crop-handle[data-position=nw]{top:-7px;left:-7px;cursor:nw-resize}.crop-handle[data-position=ne]{top:-7px;right:-7px;cursor:ne-resize}.crop-handle[data-position=sw]{bottom:-7px;left:-7px;cursor:sw-resize}.crop-handle[data-position=se]{right:-7px;bottom:-7px;cursor:se-resize}
.aspect-preset{position:relative;min-height:64px;transition:border-color .18s ease,background-color .18s ease,color .18s ease,box-shadow .18s ease!important}.aspect-preset:hover{border-color:var(--primary-action)!important;transform:none!important}.aspect-preset.active{border-color:var(--primary-action)!important;background:var(--primary-action)!important;color:#fff!important;box-shadow:0 0 0 3px var(--focus-ring)!important}.aspect-preset.active small{color:#fff;font-weight:750}.btn-ghost{border:1px solid var(--border-light)!important;background:transparent!important;color:var(--text-secondary)!important;box-shadow:none!important}.btn-ghost:hover{border-color:var(--text-muted)!important;background:var(--bg-secondary)!important;color:var(--text-primary)!important}
.pdf-result-card{max-width:400px;margin-inline:auto}.pdf-result-icon{font-size:4rem}.pdf-filename{margin-bottom:0;color:var(--text-primary);font-weight:750}
.pdf-images-area{border-color:var(--primary-light)!important;box-shadow:0 0 0 3px color-mix(in oklab,var(--primary) 7%,transparent)!important}.image-item{position:relative;height:100%;padding:.65rem;border:1px solid var(--border-light);border-radius:14px;background:#fff;transition:border-color .18s ease,box-shadow .18s ease,opacity .18s ease}.image-item img{display:block;width:100%;height:140px;border-radius:10px;object-fit:cover}.image-item-actions{display:flex;align-items:center;gap:.25rem;margin-bottom:.55rem}.drag-handle{display:grid;width:32px;height:32px;margin-right:auto;border-radius:8px;background:var(--bg-secondary);color:var(--text-muted);cursor:grab;place-items:center}.image-order-btn,.image-item .remove-btn{display:grid;width:32px;height:32px;padding:0;border:1px solid var(--border-light);border-radius:8px;background:#fff;color:var(--text-secondary);place-items:center}.image-order-btn:hover{border-color:var(--primary);color:var(--primary-dark)}.image-order-btn:disabled{opacity:.35}.image-item .remove-btn{color:#a5283d}.image-item .remove-btn:hover{border-color:#d7909b;background:#fff3f5;transform:none}.image-index{position:absolute;top:3.55rem;left:1rem;padding:.2rem .45rem;border-radius:7px;background:rgba(23,25,35,.82);color:#fff;font-size:.72rem;font-weight:750}.image-filename{display:block;overflow:hidden;margin-top:.65rem;color:var(--text-primary);font-size:.86rem;text-overflow:ellipsis;white-space:nowrap}.image-file-size{display:block;color:var(--text-muted);font-size:.75rem}.image-item.is-dragging{opacity:.45}.image-item.is-drag-target{border-color:var(--primary-action);box-shadow:0 0 0 3px var(--focus-ring)}
.image-preview-container{position:relative;display:inline-block;max-width:100%}#previewCanvas{max-width:100%;height:auto;border:4px solid #fff;border-radius:var(--radius-md);box-shadow:var(--shadow-md)}.adjustment-control{padding:1rem;border:1px solid var(--border-light);border-radius:var(--radius-md);background:var(--bg-secondary)}.adjustment-control label i{color:var(--primary-dark)!important}.adjustment-value{display:inline-block;min-width:45px;color:var(--primary-dark);font-weight:700;text-align:right}.reset-btn{display:flex;width:32px;height:32px;align-items:center;justify-content:center;padding:0;border-radius:50%;font-size:.875rem}.preset-btn{padding:.5rem;border:1px solid var(--border-light)!important;border-radius:var(--radius-sm);background:#fff!important;color:var(--text-secondary)!important;font-size:.875rem;font-weight:650}.preset-btn:hover{border-color:var(--text-muted)!important;background:var(--bg-secondary)!important;color:var(--text-primary)!important}.preset-btn.active{border-color:var(--primary)!important;background:var(--primary-light)!important;color:var(--primary-dark)!important;box-shadow:inset 0 0 0 1px var(--primary)!important}#compareBtn{touch-action:none}#compareBtn.is-comparing{border-color:var(--primary-action);background:var(--primary-action);color:#fff}
.diagnostic-status{display:inline-flex;align-items:center;gap:.45rem}.diagnostic-spinner{width:.8rem;height:.8rem;border:2px solid color-mix(in oklab,var(--text-muted) 25%,transparent);border-top-color:var(--text-muted);border-radius:50%;animation:diagnostic-spin .8s linear infinite}.diagnostic-limited{color:#8a4b08}.diagnostic-good{color:#08745f}@keyframes diagnostic-spin{to{transform:rotate(360deg)}}
.guides-grid .guide-card{min-height:260px;border-color:var(--border-light)!important;box-shadow:none!important}.guides-grid .guide-card:hover{border-color:color-mix(in oklab,var(--primary) 24%,var(--border-light))!important;box-shadow:0 4px 14px rgba(24,24,27,.045)!important;transform:none!important}.guides-grid .guide-card h2{font-size:1.3rem}.guides-grid .guide-card-link{font-weight:700}

/* Mobile navigation and density. */
@media(max-width:991px){
  .navbar-collapse{max-height:calc(100vh - 96px);margin-top:.55rem;padding:.45rem;border-radius:14px;overflow-y:auto}
  .navbar-nav{gap:.1rem}
  .nav-link{display:flex;min-height:44px;align-items:center;padding:.6rem .8rem!important;border-radius:9px}
  .nav-link.active{border-radius:9px}
}
@media(max-width:767px){
  .main-page .tools-section{padding-top:7.4rem;padding-bottom:2.5rem}
  .main-page .tools-section .homepage-intro{margin-bottom:1.5rem}
  .main-page .tools-section .homepage-intro h1{font-size:clamp(2.35rem,11vw,3.15rem)}
  .main-page .tools-grid{gap:.75rem}
  .main-page .tool-card{min-height:0;padding:1.25rem}
  .main-page .tool-card p{margin-bottom:1rem;font-size:.94rem}
  .main-page .homepage-format-intro,.main-page .workflow-section,.main-page .differentiation-section,.main-page .homepage-faq{padding-block:2.75rem}
  .tool-heading{margin-bottom:1.5rem;text-align:left}
  .tool-heading h1{font-size:clamp(2.15rem,10vw,2.8rem)}
  .upload-area,.upload-area.universal-upload{min-height:0;padding:1.75rem 1rem}
  .upload-privacy{max-width:280px;margin-inline:auto;line-height:1.45}
  footer{padding-top:3rem}
  .footer-content{gap:2rem 1.25rem}
  .footer-links-column ul{gap:.45rem}
  .footer-links-column a{font-size:.87rem}
}
@media(max-width:430px){
  .navbar-brand span{font-size:.92rem}
  .footer-content{grid-template-columns:repeat(2,minmax(0,1fr))}
  .footer-brand{grid-column:1/-1}
  .footer-bottom{padding-top:1.5rem}
  .footer-legal nav{gap:.45rem .75rem}
}
@media(prefers-reduced-motion:reduce){.diagnostic-spinner{animation:none;border-color:var(--text-muted)}}

/* Guide hub cards use h3 beneath each topic-cluster h2. */
.guides-grid .guide-card h3{color:var(--text-primary);font-size:1.3rem;font-weight:750;letter-spacing:-.025em}
body[data-page="blog"] .guide-card h3{margin:1rem 0 .75rem}

/* One centered alignment rail for every tool workflow. */
body.tool-page main.tool-main {
  width: 100%;
  max-width: 972px;
  margin-inline: auto;
  padding-inline: 16px;
}
body.tool-page main.tool-main > .tool-heading,
body.tool-page main.tool-main > .upload-area,
body.tool-page main.tool-main > .batch-workspace,
body.tool-page main.tool-main > .batch-stage,
body.tool-page main.tool-main > .editor-workspace,
body.tool-page main.tool-main > .preview-area,
body.tool-page main.tool-main > .control-panel,
body.tool-page main.tool-main > .result-area,
body.tool-page main.tool-main > .spinner-wrapper {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}
.batch-stage{min-height:270px}
.batch-stage.is-transitioning{overflow:hidden;transition:height 180ms cubic-bezier(.2,.8,.2,1)}
@media(max-width:767px){
  body.tool-page main.tool-main{padding-inline:12px}
  .batch-stage{min-height:230px}
}
@media(prefers-reduced-motion:reduce){
  .batch-stage.is-transitioning{transition:none}
}

/* Homepage tools are peer actions; no card has a permanent selected surface. */
.main-page .tools-grid > .tool-card:first-child {
  border-color: var(--border-light) !important;
  background: #fff !important;
  color: var(--text-primary) !important;
  box-shadow: var(--shadow-sm) !important;
}
.main-page .tools-grid > .tool-card:first-child h3 {
  color: var(--text-primary) !important;
}
.main-page .tools-grid > .tool-card:first-child p {
  color: var(--text-muted) !important;
}
.main-page .tools-grid > .tool-card:first-child .tool-link {
  color: var(--primary-dark) !important;
}
.main-page .tools-grid > .tool-card:first-child .tool-icon {
  background: var(--primary-light) !important;
  color: var(--primary) !important;
}
.main-page .tools-grid > .tool-card:first-child:hover,
.main-page .tools-grid > .tool-card:first-child:focus-within {
  border-color: color-mix(in oklab, var(--primary) 35%, transparent) !important;
  background: #fff !important;
  box-shadow: var(--shadow-md) !important;
}

/* About page: one grid, with deliberate contrast between grouped and plain content. */
body.content-page main.tool-main > .about-hero,
body.content-page main.tool-main > .about-principles,
body.content-page main.tool-main > .about-operator,
body[data-page="about"] main.tool-main > .content-cta {
  width: 100%;
  max-width: 940px;
  margin-inline: auto;
}
.about-hero p {
  max-width: 760px;
  margin-inline: auto;
}
.about-principles {
  padding: 2rem;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.about-principles-grid article {
  padding: 0 1.5rem;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.about-principles-grid article:first-child {
  padding-left: 0;
}
.about-principles-grid article:last-child {
  padding-right: 0;
}
.about-principles-grid article + article {
  border-left: 1px solid var(--border-light) !important;
}
.about-operator {
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
@media(max-width:767px){
  .about-principles{padding:1.25rem}
  .about-principles-grid article,
  .about-principles-grid article:first-child,
  .about-principles-grid article:last-child{padding:1.25rem 0}
  .about-principles-grid article:first-child{padding-top:0}
  .about-principles-grid article:last-child{padding-bottom:0}
  .about-principles-grid article + article{
    border-top:1px solid var(--border-light) !important;
    border-left:0 !important;
  }
}

/* FAQ: one compact disclosure surface; the help CTA remains distinct. */
body[data-page="faq"] main.tool-main > .content-hero,
body[data-page="faq"] main.tool-main > .content-faq,
body[data-page="faq"] main.tool-main > .content-cta {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
}
body[data-page="faq"] .faq-list {
  display: block;
  overflow: hidden;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
body[data-page="faq"] .faq-list details {
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body[data-page="faq"] .faq-list details + details {
  border-top: 1px solid var(--border-light) !important;
}
body[data-page="faq"] .faq-list summary {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  list-style: none;
}
body[data-page="faq"] .faq-list summary::-webkit-details-marker {
  display: none;
}
body[data-page="faq"] .faq-list summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--text-muted);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1;
}
body[data-page="faq"] .faq-list details[open] summary::after {
  content: "−";
}
body[data-page="faq"] .faq-list p {
  margin: 0;
  padding: 0 1.25rem 1.15rem;
}

/* Local Processing: one page rail and one browser-status component. */
body[data-page="privacy-center"] main.tool-main > .privacy-hero,
body[data-page="privacy-center"] main.tool-main > .diagnostic-card,
body[data-page="privacy-center"] main.tool-main > .privacy-section {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}
body[data-page="privacy-center"] .diagnostic-grid {
  align-items: stretch;
  grid-auto-rows: 1fr;
}
body[data-page="privacy-center"] .diagnostic-card {
  display: block;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body[data-page="privacy-center"] .diagnostic-card > div:first-child {
  margin-bottom: 1.25rem;
}
body[data-page="privacy-center"] .diagnostic-grid .diagnostic-item {
  display: flex;
  min-height: 112px;
  padding: 1rem;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: var(--bg-secondary);
  flex-direction: column;
}
body[data-page="privacy-center"] .diagnostic-grid dt {
  min-height: 1.2rem;
  color: var(--text-secondary);
  font-size: .78rem;
  font-weight: 650;
}
body[data-page="privacy-center"] .diagnostic-grid .diagnostic-status {
  display: grid;
  align-items: start;
  grid-template-columns: 1rem minmax(0, 1fr);
  gap: .5rem;
  margin-top: auto;
  padding-top: .75rem;
  font-weight: 750;
  line-height: 1.35;
}
body[data-page="privacy-center"] .diagnostic-indicator,
body[data-page="privacy-center"] .diagnostic-spinner {
  width: .9rem;
  height: .9rem;
  margin-top: .12rem;
  flex: none;
}
body[data-page="privacy-center"] .privacy-section {
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body[data-page="privacy-center"] .comparison-table-wrap,
body[data-page="privacy-center"] .diagnostic-grid {
  width: 100%;
}
body[data-page="privacy-center"] .verification-grid {
  display: block;
}
body[data-page="privacy-center"] .verification-grid > div,
body[data-page="privacy-center"] .verification-note {
  max-width: 760px;
}
body[data-page="privacy-center"] .verification-grid ol {
  margin-bottom: 0;
}
body[data-page="privacy-center"] .verification-note {
  margin-top: 1.5rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid color-mix(in oklab, var(--primary) 18%, var(--border-light));
  border-radius: 12px;
  background: var(--primary-light);
}
body[data-page="privacy-center"] .verification-note-heading {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .5rem;
}
body[data-page="privacy-center"] .verification-note-heading i {
  color: var(--primary-dark);
}
body[data-page="privacy-center"] .verification-note-heading h3,
body[data-page="privacy-center"] .verification-note p {
  margin: 0;
}
@media(max-width:767px){
  body[data-page="privacy-center"] .diagnostic-grid{grid-template-columns:1fr}
}

/* Local architecture: one equal-node process component. */
body[data-page="privacy-center"] .architecture-flow {
  display: grid;
  align-items: stretch;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: .75rem;
}
body[data-page="privacy-center"] .architecture-flow > div {
  display: grid;
  min-width: 0;
  min-height: 112px;
  align-content: center;
  justify-items: center;
  gap: .6rem;
  padding: 1rem;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: var(--bg-secondary);
  text-align: center;
}
body[data-page="privacy-center"] .architecture-flow > i {
  align-self: center;
  justify-self: center;
  color: var(--text-muted);
}
@media(max-width:767px){
  body[data-page="privacy-center"] .architecture-flow{
    grid-template-columns:1fr;
  }
  body[data-page="privacy-center"] .architecture-flow > i{
    transform:rotate(90deg)
  }
}

/* Guides: equal card rhythm and one shared grid width. */
body[data-page="blog"] .guides-grid,
body[data-page="blog"] .guides-method {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
}
body[data-page="blog"] .guide-card {
  display: flex;
  height: 100%;
  padding: 1.75rem;
  flex-direction: column;
}
body[data-page="blog"] .guide-card h2 {
  margin: 1rem 0 .75rem;
}
body[data-page="blog"] .guide-card p {
  margin-bottom: 1.25rem;
}
body[data-page="blog"] .guide-card-link {
  margin-top: auto;
}

/* Legal and editorial pages remain quiet, readable documents—not card stacks. */
body:is([data-page="privacy"], [data-page="terms"], [data-page="cookies"], [data-page="disclaimer"], [data-page="accessibility"], [data-page="editorial"]) .policy-article {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
}
body:is([data-page="privacy"], [data-page="terms"], [data-page="cookies"], [data-page="disclaimer"], [data-page="accessibility"], [data-page="editorial"]) .policy-article section {
  padding: 2rem 0;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

/* Final interaction geometry and mobile workflow polish. */
.tool-page .form-control,
.tool-page .form-select,
.tool-page .input-group-text {
  min-height: 48px;
}
.tool-page .form-select {
  background-position: right .9rem center;
}
.tool-page .btn i,
.tool-page button i {
  line-height: 1;
  vertical-align: -.08em;
}
.tool-page .btn:hover,
.tool-page button:hover {
  transform: none !important;
}
.adjustment-value,
.progress-summary,
.batch-result-metrics dd {
  font-variant-numeric: tabular-nums;
}
#compareBtn {
  display: inline-flex;
  min-width: 142px;
  align-items: center;
  justify-content: center;
  gap: .35rem;
}
.tool-page button:not(:disabled),
.tool-page select:not(:disabled),
.tool-page input[type="range"]:not(:disabled) {
  cursor: pointer;
}
.batch-mobile-action {
  display: none;
}

@media (max-width: 767px) {
  body.has-mobile-batch-action {
    padding-bottom: 88px;
  }
  .tool-page .preview-area,
  .tool-page .control-panel,
  .tool-page .result-area,
  .tool-page .editor-preview,
  .tool-page canvas {
    max-width: 100%;
  }
  .tool-page .settings-grid.two-columns {
    grid-template-columns: 1fr;
  }
  .batch-mobile-action {
    position: fixed;
    z-index: 1040;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    left: 12px;
    display: flex;
    width: min(calc(100% - 24px), 440px);
    min-height: 64px;
    margin-inline: auto;
    padding: 8px 8px 8px 16px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid color-mix(in oklab, var(--border-light) 82%, transparent);
    border-radius: 18px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 14px 40px rgba(32,33,36,.18);
    color: var(--text-primary);
    font-weight: 700;
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
  }
  .batch-mobile-action[hidden] {
    display: none;
  }
  .batch-mobile-action .btn {
    display: inline-flex;
    width: 116px;
    min-height: 48px;
    padding-inline: 12px;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
  }
  .has-mobile-batch-action .local-status {
    bottom: calc(max(12px, env(safe-area-inset-bottom)) + 72px);
  }
  .pdf-images-area .image-order-btn,
  .pdf-images-area .remove-btn,
  .pdf-images-area .drag-handle {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }
  .pdf-images-area .drag-handle {
    touch-action: none;
  }
  body[data-page="crop"] #cropBtn,
  body[data-page="crop"] #resetCropBtn,
  body[data-page="crop"] #resultArea > .btn,
  body[data-page="crop"] #resultArea > a,
  body[data-page="to-pdf"] #createPdfBtn,
  body[data-page="to-pdf"] #resultArea > .btn,
  body[data-page="to-pdf"] #resultArea > a {
    display: flex;
    width: 100%;
    margin: 8px 0 0 !important;
    align-items: center;
    justify-content: center;
  }
}

/* Shared upload interaction states. */
.upload-area.universal-upload:hover {
  border-color: color-mix(in oklab, var(--primary) 55%, var(--border-light)) !important;
  background: color-mix(in oklab, var(--primary-light) 22%, #fff) !important;
  transform: none !important;
}
.upload-area.universal-upload.dragging,
.upload-area.universal-upload[data-state="drag-over"] {
  border-color: var(--primary) !important;
  background: color-mix(in oklab, var(--primary-light) 55%, #fff) !important;
  box-shadow: 0 0 0 4px var(--focus-ring), var(--shadow-md) !important;
  transform: none !important;
}
.upload-area.universal-upload:focus-visible {
  border-color: var(--primary) !important;
  outline: 3px solid var(--focus-ring) !important;
  outline-offset: 3px;
  transform: none !important;
}
.upload-area.universal-upload[data-state="invalid"] {
  border-color: #c93f55 !important;
  background: #fff7f8 !important;
  box-shadow: 0 0 0 3px rgba(201,63,85,.1) !important;
}
.upload-area.universal-upload[data-state="reading"] {
  border-color: color-mix(in oklab, var(--primary) 42%, var(--border-light)) !important;
  background: color-mix(in oklab, var(--primary-light) 28%, #fff) !important;
  cursor: progress;
}
.upload-area.universal-upload .upload-icon {
  transform: none !important;
  animation: none !important;
}
.upload-feedback {
  max-width: 34rem;
  margin: .85rem auto 0;
  font-size: .875rem;
  font-weight: 650;
  line-height: 1.45;
}
.upload-feedback-invalid { color: #a5283d; }
.upload-feedback-reading { color: var(--text-secondary); }
