.image-page { --image-accent: var(--fmf-gold); }
.image-intro { --accent: var(--image-accent); }
.image-intro__chips { position: relative; display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.image-intro__chips span { padding: 7px 11px; border-radius: 999px; background: color-mix(in srgb, var(--image-accent) 22%, white); color: var(--fmf-navy); font-size: .82rem; font-weight: 700; }

.image-converter { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(270px, .75fr); gap: 22px; align-items: start; }
.image-converter__main, .image-side > div, .image-server-note, .image-format-grid article, .image-notes { background: white; border: 1px solid var(--fmf-border); border-radius: var(--radius); }
.image-converter__main { padding: clamp(20px, 4vw, 34px); min-width: 0; }
.image-side { display: grid; gap: 18px; min-width: 0; }
.image-side > div { padding: 22px; }
.image-section-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.image-section-heading h2, .image-options__heading h2, .image-side h2, .image-notes h2 { color: var(--fmf-navy); letter-spacing: -.03em; margin: .12em 0 0; }
.image-reset, .image-file-card__change, .image-another-button { min-height: 44px; border: 1px solid var(--fmf-border); border-radius: 11px; background: white; color: var(--fmf-navy); font-weight: 700; cursor: pointer; padding: 0 14px; }

.image-dropzone { min-height: 245px; display: grid; place-items: center; align-content: center; gap: 7px; padding: 26px; text-align: center; border: 2px dashed #cfd9e7; border-radius: 20px; background: linear-gradient(145deg, #fffdf8, #fbfdff); cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.image-dropzone:hover, .image-dropzone.is-dragover { border-color: #e7ad2f; background: #fffaf0; }
.image-dropzone.is-dragover { transform: translateY(-2px); }
.image-dropzone__icon { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 18px; background: color-mix(in srgb, var(--image-accent) 30%, white); color: var(--fmf-navy); font-size: 1.9rem; font-weight: 700; }
.image-dropzone strong { color: var(--fmf-navy); font-size: 1.15rem; }
.image-dropzone > span:not(.image-dropzone__icon), .image-dropzone small { color: var(--fmf-muted); }
.image-dropzone small { max-width: 660px; }

.image-file-card { display: grid; grid-template-columns: 86px minmax(0, 1fr) auto; gap: 16px; align-items: center; border: 1px solid var(--fmf-border); border-radius: 17px; padding: 14px; background: #fcfdff; }
.image-preview { width: 86px; height: 68px; border-radius: 12px; overflow: hidden; background: #eef3fa; display: grid; place-items: center; color: #77829a; font-weight: 700; }
.image-preview img { width: 100%; height: 100%; object-fit: cover; }
.image-file-card__body { min-width: 0; display: grid; gap: 4px; }
.image-file-card__body strong { color: var(--fmf-navy); overflow-wrap: anywhere; }
.image-file-card__body span { color: var(--fmf-muted); font-size: .9rem; }

.image-options { margin-top: 24px; }
.image-options__heading { margin-bottom: 16px; }
.image-options__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.image-field { display: grid; align-content: start; gap: 7px; min-width: 0; border: 1px solid var(--fmf-border); border-radius: 15px; padding: 15px; background: #fbfdff; }
.image-field--wide { grid-column: 1 / -1; }
.image-field__label { color: var(--fmf-navy); font-weight: 700; }
.image-field select { width: 100%; min-height: 48px; border: 1px solid #ccd6e5; border-radius: 11px; background: white; color: var(--fmf-text); padding: 0 12px; }
.image-field input[type="range"] { width: 100%; min-height: 34px; accent-color: #d89b14; }
.image-field small { color: var(--fmf-muted); line-height: 1.4; }
.image-color-control { display: flex; align-items: center; gap: 10px; min-height: 48px; }
.image-color-control input[type="color"] { width: 52px; height: 44px; padding: 3px; border: 1px solid #ccd6e5; border-radius: 10px; background: white; }
.image-color-control span { color: var(--fmf-muted); font-size: .9rem; }

.image-check { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 12px; margin-top: 16px; border: 1px solid var(--fmf-border); border-radius: 15px; padding: 15px; background: #fffdf7; cursor: pointer; }
.image-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: #d89b14; }
.image-check span { display: grid; gap: 3px; }
.image-check strong { color: var(--fmf-navy); }
.image-check small { color: var(--fmf-muted); }

.image-route { margin-top: 16px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; border-radius: 15px; padding: 15px; background: #eefaf5; border: 1px solid #ccebdc; }
.image-route.is-server { background: #f4f7fc; border-color: #d8e1ef; }
.image-route__badge { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 0 10px; border-radius: 999px; background: #d6f3e4; color: #176848; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.image-route.is-server .image-route__badge { background: #e4ebf7; color: #405373; }
.image-route strong { color: var(--fmf-navy); }
.image-route p { margin: 3px 0 0; color: var(--fmf-muted); font-size: .9rem; }
.image-validation { min-height: 1.5em; margin: 12px 0 0; color: #ad3c32; font-weight: 500; }

.image-convert-button, .image-download-button { width: 100%; min-height: 58px; border: 0; border-radius: 15px; background: var(--fmf-navy); color: white; font-weight: 700; cursor: pointer; text-decoration: none; display: grid; place-items: center; align-content: center; padding: 10px 18px; margin-top: 8px; }
.image-convert-button small { color: #dce5ff; font-weight: 400; }
.image-convert-button:disabled { opacity: .6; cursor: wait; }

.image-privacy-card ul { padding-left: 19px; margin: 14px 0 0; color: var(--fmf-muted); }
.image-privacy-card li + li { margin-top: 8px; }
.image-progress-card, .image-result-card { position: relative; overflow: hidden; }
.image-progress-track { height: 10px; background: #e9eef6; border-radius: 999px; overflow: hidden; margin: 16px 0 10px; }
.image-progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--fmf-gold), var(--fmf-coral)); transition: width .22s ease; }
.image-progress-meta { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; }
.image-progress-meta strong { color: var(--fmf-navy); font-size: 1.2rem; }
.image-progress-meta span { color: var(--fmf-muted); font-size: .9rem; }
.image-result-card__check { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: #dff7eb; color: #176848; font-size: 1.5rem; font-weight: 700; margin-bottom: 10px; }
.image-result-card p:not(.eyebrow) { color: var(--fmf-muted); }
.image-another-button { width: 100%; margin-top: 10px; }

.image-server-note { display: flex; gap: 8px 14px; flex-wrap: wrap; margin-top: 20px; padding: 18px 20px; border-color: #ead7a1; background: #fffaf0; }
.image-server-note strong { color: var(--fmf-navy); }
.image-server-note span { color: var(--fmf-muted); }

.image-format-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.image-format-grid article { padding: 20px; }
.image-format-grid strong { color: var(--fmf-navy); }
.image-format-grid p { margin: 7px 0 0; color: var(--fmf-muted); font-size: .92rem; }
.image-notes { margin-top: 20px; padding: clamp(22px, 4vw, 34px); }
.image-notes p { color: var(--fmf-muted); max-width: 940px; }

@media (max-width: 959px) {
  .image-converter { grid-template-columns: 1fr; }
  .image-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .image-result-card, .image-progress-card { grid-column: auto; }
  .image-format-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .image-converter__main { padding: 18px; }
  .image-section-heading { align-items: center; }
  .image-dropzone { min-height: 215px; padding: 20px 14px; }
  .image-file-card { grid-template-columns: 68px minmax(0, 1fr); }
  .image-preview { width: 68px; height: 58px; }
  .image-file-card__change { grid-column: 1 / -1; width: 100%; }
  .image-options__grid, .image-side, .image-format-grid { grid-template-columns: 1fr; }
  .image-field--wide { grid-column: auto; }
  .image-route { grid-template-columns: 1fr; }
  .image-route__badge { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  .image-dropzone, .image-progress-track span { transition: none; }
}

.image-options__note { margin: 5px 0 0; color: var(--fmf-muted); font-size: .92rem; }
.image-preview__format { display: grid; place-items: center; width: 100%; height: 100%; padding: 8px; color: var(--fmf-navy); font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-align: center; overflow-wrap: anywhere; }

.image-pro-section,
.image-supported-section,
.image-faq {
  margin-top: 22px;
  padding: clamp(22px, 4vw, 36px);
  background: white;
  border: 1px solid var(--fmf-border);
  border-radius: var(--radius);
}
.image-section-copy { max-width: 920px; }
.image-section-copy h2,
.image-supported-section h2,
.image-faq h2 { margin: .15em 0 .45em; color: var(--fmf-navy); letter-spacing: -.03em; }
.image-section-copy p:not(.eyebrow),
.image-supported-section > p { color: var(--fmf-muted); line-height: 1.65; }

.image-format-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.image-format-cloud span { display: inline-flex; align-items: center; min-height: 34px; padding: 6px 10px; border: 1px solid #d9e2ef; border-radius: 999px; background: #f8fbff; color: var(--fmf-navy); font-size: .8rem; font-weight: 700; }
.image-format-cloud span small { margin-left: 5px; color: var(--fmf-muted); font-size: .72rem; }
.image-format-cloud--wide span { border-radius: 11px; }

.image-workflow-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.image-workflow-grid article { min-width: 0; padding: 18px; border: 1px solid var(--fmf-border); border-radius: 15px; background: #fbfdff; }
.image-workflow-grid strong { color: var(--fmf-navy); }
.image-workflow-grid p { margin: 7px 0 0; color: var(--fmf-muted); font-size: .9rem; line-height: 1.5; }

.image-format-grid--pro { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.image-format-grid--pro article { background: #fbfdff; }

.image-notes__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; margin-top: 18px; }
.image-notes__grid h3 { margin: 0 0 7px; color: var(--fmf-navy); font-size: 1rem; }
.image-notes__grid p { margin: 0; }

.image-faq details { border-top: 1px solid var(--fmf-border); }
.image-faq details:last-child { border-bottom: 1px solid var(--fmf-border); }
.image-faq summary { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 0; color: var(--fmf-navy); font-weight: 700; cursor: pointer; }
.image-faq summary::marker { color: var(--fmf-gold); }
.image-faq details p { margin: 0; padding: 0 0 17px; color: var(--fmf-muted); line-height: 1.6; max-width: 920px; }

@media (max-width: 959px) {
  .image-workflow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .image-format-grid--pro { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .image-workflow-grid,
  .image-format-grid--pro,
  .image-notes__grid { grid-template-columns: 1fr; }
  .image-pro-section,
  .image-supported-section,
  .image-faq { padding: 20px 18px; }
}
