:root {
  --image-blue: #2563EB;
  --image-blue-dark: #1d4ed8;
}

.image-page { --blue: var(--image-blue); --blue-dark: var(--image-blue-dark); background: #fff; }
.image-container { width: min(940px, calc(100% - 48px)); }
.image-intro { padding: 38px 0 58px; background: #fff; }
.image-back-link { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 31px; color: #647087; font-size: 12px; font-weight: 600; }
.image-back-link:hover { color: var(--image-blue); }
.image-back-link span { font-size: 16px; }
.image-intro > .container > .section-kicker { margin-bottom: 8px; }
.image-intro h1 { margin: 0 0 9px; color: var(--ink); font-family: var(--font-heading); font-size: clamp(33px, 5vw, 42px); font-weight: 800; letter-spacing: -1.7px; }
.image-lede { max-width: 700px; margin-bottom: 25px; color: #748098; font-size: 14px; line-height: 1.6; }
.image-tool-card { padding: 27px; border: 1px solid #e8edf5; border-radius: 14px; background: #fff; box-shadow: 0 14px 40px rgba(34,58,108,.07); }
.image-card-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 22px; }
.image-heading-icon { width: 44px; height: 44px; display: grid; flex: none; place-items: center; border: 1px solid #e1eaff; border-radius: 11px; color: var(--image-blue); background: #f2f6ff; }
.image-heading-icon svg { width: 25px; height: 25px; }
.image-card-heading h2 { margin: 0 0 4px; font-family: var(--font-heading); font-size: 17px; font-weight: 800; letter-spacing: -.3px; }
.image-card-heading p { margin: 0; color: #8490a2; font-size: 11px; line-height: 1.5; }
.image-drop-zone { min-height: 205px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 23px 18px; border: 1.5px dashed #cbd8f2; border-radius: 11px; background: #fbfcff; text-align: center; transition: background .18s ease, border-color .18s ease, box-shadow .18s ease; }
.image-drop-zone.is-dragging { border-color: var(--image-blue); background: #f1f5ff; box-shadow: 0 0 0 3px #edf2ff; }
.image-drop-zone.is-disabled { cursor: progress; opacity: .7; }
.image-upload-icon { width: 43px; height: 43px; display: grid; place-items: center; margin-bottom: 10px; border: 1px solid #e1eaff; border-radius: 12px; color: var(--image-blue); background: #f2f6ff; }
.image-upload-icon svg { width: 23px; height: 23px; }
.image-drop-copy h3 { margin: 0 0 4px; font-family: var(--font-heading); font-size: 14px; font-weight: 800; }
.image-drop-copy p { margin: 0 0 12px; color: #8490a2; font-size: 11px; }
.image-upload-guidance { margin: 12px 0 0; color: #929bad; font-size: 9px; line-height: 1.5; }
.image-button { min-height: 39px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 14px; border: 1px solid transparent; border-radius: 7px; font: inherit; font-size: 11px; font-weight: 700; transition: background .18s ease, border-color .18s ease, color .18s ease; }
.image-button:focus-visible, .image-remove-button:focus-visible, .image-drop-zone:focus-visible { outline: 3px solid #dce7ff; outline-offset: 2px; }
.image-button:disabled { cursor: not-allowed; opacity: .48; }
.image-button-primary { border-color: var(--image-blue); color: #fff; background: var(--image-blue); }
.image-button-primary:hover:not(:disabled) { background: var(--image-blue-dark); }
.image-button-secondary { border-color: #e4e9f1; color: #66738a; background: #fff; }
.image-button-secondary:hover:not(:disabled) { background: #f7f9fc; }
.image-message { min-height: 15px; margin: 10px 0 0; font-size: 10px; line-height: 1.5; }
.image-message[hidden] { display: none; }
.image-error { padding: 10px 12px; border: 1px solid #f3d4d4; border-radius: 8px; color: #ad4040; background: #fff8f8; white-space: pre-line; }
.image-status { color: #218c68; }
.image-status.is-error { color: #ad4040; }
.image-settings { margin-top: 21px; padding: 19px 0 0; border-top: 1px solid #edf0f5; }
.image-settings-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; }
.image-settings-heading h3, .image-results-heading h2, .image-faq-section h2 { margin: 0; font-family: var(--font-heading); font-weight: 800; letter-spacing: -.5px; }
.image-settings-heading h3 { margin-bottom: 4px; font-size: 13px; }
.image-settings-heading p { margin: 0; color: #8490a2; font-size: 10px; line-height: 1.5; }
.image-quality-value { flex: none; color: var(--image-blue); font-family: var(--font-heading); font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.image-slider-row { display: grid; grid-template-columns: auto minmax(80px, 1fr) auto; align-items: center; gap: 12px; margin-top: 15px; color: #8490a2; font-size: 9px; }
.image-slider-row input { width: 100%; margin: 0; accent-color: var(--image-blue); cursor: pointer; }
.image-slider-row input:focus-visible { outline: 3px solid #dce7ff; outline-offset: 3px; }
.image-settings-footer { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-top: 17px; padding-top: 14px; border-top: 1px solid #f0f2f6; }
.image-settings-footer > p { max-width: 390px; margin: 0; color: #929bad; font-size: 9px; line-height: 1.5; }
.image-main-actions { display: flex; flex: none; gap: 8px; }
.image-progress-wrap { margin-top: 15px; }
.image-progress-wrap[hidden] { display: none; }
.image-progress-heading { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; color: #647087; font-size: 10px; }
.image-progress-heading span:last-child { color: #929bad; font-variant-numeric: tabular-nums; }
.image-progress-wrap progress { width: 100%; height: 8px; overflow: hidden; border: 0; border-radius: 20px; accent-color: var(--image-blue); }
.image-progress-wrap progress::-webkit-progress-bar { border-radius: 20px; background: #edf1f8; }
.image-progress-wrap progress::-webkit-progress-value { border-radius: 20px; background: var(--image-blue); transition: width .2s ease; }
.image-progress-wrap progress::-moz-progress-bar { border-radius: 20px; background: var(--image-blue); }
.image-results { margin-top: 24px; padding-top: 23px; border-top: 1px solid #edf0f5; }
.image-results-heading { display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.image-results-heading .section-kicker { margin-bottom: 5px; }
.image-results-heading h2 { font-size: 19px; }
.image-count { margin: 4px 0 0; color: #8490a2; font-size: 9px; }
.image-download-all { flex: none; }
.image-download-note { margin: 9px 0 0; color: #929bad; font-size: 9px; text-align: right; }
.image-download-note[hidden] { display: none; }
.image-empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 215px; margin-top: 14px; padding: 24px 12px; border: 1px dashed #e2e8f2; border-radius: 10px; background: #fcfdff; text-align: center; }
.image-empty-state[hidden] { display: none; }
.image-empty-state > span { width: 40px; height: 40px; display: grid; place-items: center; margin-bottom: 10px; border-radius: 11px; color: #91a2c2; background: #f1f5fb; }
.image-empty-state svg { width: 23px; height: 23px; }
.image-empty-state h3 { margin: 0 0 5px; font-family: var(--font-heading); font-size: 13px; font-weight: 800; }
.image-empty-state p { margin: 0; color: #8490a2; font-size: 10px; line-height: 1.5; }
.image-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.image-list[hidden] { display: none; }
.image-result-card { min-width: 0; padding: 15px; border: 1px solid #e9edf4; border-radius: 10px; background: #fff; }
.image-result-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.image-file-heading { min-width: 0; }
.image-file-name { margin: 0 0 3px; color: #26334c; font-family: var(--font-heading); font-size: 12px; font-weight: 800; line-height: 1.45; overflow-wrap: anywhere; }
.image-file-state { margin: 0; color: #8490a2; font-size: 9px; line-height: 1.4; }
.image-file-state.is-error { color: #ad4040; }
.image-remove-button { flex: none; padding: 4px 7px; border: 1px solid #e9edf4; border-radius: 6px; color: #748098; background: #fff; font: inherit; font-size: 9px; font-weight: 700; }
.image-remove-button:hover:not(:disabled) { border-color: #f0caca; color: #b44444; background: #fff8f8; }
.image-remove-button:disabled { cursor: not-allowed; opacity: .48; }
.image-file-original { margin: 8px 0 11px; color: #788398; font-size: 9px; }
.image-preview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.image-preview { min-width: 0; margin: 0; }
.image-preview-frame { height: 135px; display: grid; place-items: center; overflow: hidden; border: 1px solid #edf0f5; border-radius: 7px; background-color: #fff; background-image: linear-gradient(45deg, #f1f3f7 25%, transparent 25%), linear-gradient(-45deg, #f1f3f7 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #f1f3f7 75%), linear-gradient(-45deg, transparent 75%, #f1f3f7 75%); background-position: 0 0, 0 6px, 6px -6px, -6px 0; background-size: 12px 12px; }
.image-preview-frame img { width: 100%; height: 100%; display: block; object-fit: contain; }
.image-preview-frame img[hidden] { display: none; }
.image-preview figcaption { margin-top: 5px; color: #8490a2; font-size: 9px; text-align: center; }
.image-preview-placeholder { max-width: 120px; padding: 10px; color: #9aa4b6; font-size: 9px; line-height: 1.4; text-align: center; }
.image-preview-placeholder[hidden] { display: none; }
.image-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 12px 0 0; }
.image-metrics > div { min-width: 0; padding: 8px 9px; border: 1px solid #edf0f5; border-radius: 7px; background: #fbfcfe; }
.image-metrics dt { margin-bottom: 3px; color: #8490a2; font-size: 8px; }
.image-metrics dd { margin: 0; color: #3d4d68; font-size: 10px; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.image-item-message { min-height: 13px; margin: 8px 0 0; color: #788398; font-size: 9px; line-height: 1.45; }
.image-item-message.is-error { color: #ad4040; }
.image-result-actions { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; padding-top: 10px; border-top: 1px solid #f0f2f6; }
.image-output-format { color: #8490a2; font-size: 8px; font-weight: 700; letter-spacing: .3px; }
.image-result-actions .image-button { min-height: 34px; padding: 0 9px; font-size: 9px; }
.image-privacy { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 15px 0 0; color: #7e899c; font-size: 10px; }
.image-privacy .status-dot { width: 6px; height: 6px; }
.image-faq-section { padding: 48px 0 72px; border-top: 1px solid #f0f2f6; background: #fff; }
.image-faq-section > .container > .section-kicker { margin-bottom: 7px; }
.image-faq-section h2 { margin-bottom: 21px; font-size: 25px; letter-spacing: -.8px; }
.image-faq-list { border-top: 1px solid #edf0f5; }
.image-faq-item { border-bottom: 1px solid #edf0f5; }
.image-faq-item summary { position: relative; padding: 17px 32px 17px 0; color: #26334c; font-size: 13px; font-weight: 700; cursor: pointer; list-style: none; }
.image-faq-item summary::-webkit-details-marker { display: none; }
.image-faq-item summary::after { position: absolute; top: 14px; right: 3px; color: var(--image-blue); content: "+"; font-size: 19px; font-weight: 500; }
.image-faq-item[open] summary::after { content: "−"; }
.image-faq-item p { max-width: 700px; margin: -3px 30px 17px 0; color: #788398; font-size: 12px; line-height: 1.7; }

@media (max-width: 700px) {
  .image-container { width: min(100% - 36px, 560px); }
  .image-list { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .image-container { width: calc(100% - 32px); }
  .image-intro { padding: 27px 0 42px; }
  .image-back-link { margin-bottom: 23px; }
  .image-lede { margin-bottom: 20px; font-size: 13px; }
  .image-tool-card { padding: 20px 16px; border-radius: 12px; }
  .image-card-heading { margin-bottom: 19px; }
  .image-drop-zone { min-height: 190px; padding: 20px 12px; }
  .image-settings-heading p { max-width: 245px; }
  .image-slider-row { grid-template-columns: 1fr auto; gap: 9px 12px; }
  .image-slider-row input { grid-column: 1 / -1; grid-row: 2; }
  .image-slider-row span:last-child { text-align: right; }
  .image-settings-footer { align-items: flex-start; flex-direction: column; }
  .image-settings-footer > p { max-width: none; }
  .image-main-actions { width: 100%; }
  .image-main-actions .image-button { flex: 1; }
  .image-results-heading { align-items: flex-start; flex-direction: column; }
  .image-results-heading h2 { font-size: 18px; }
  .image-download-note { text-align: left; }
  .image-preview-frame { height: 145px; }
  .image-faq-section { padding: 38px 0 54px; }
  .image-faq-section h2 { font-size: 22px; }
  .image-faq-item summary { font-size: 12px; }
}

@media (max-width: 360px) {
  .image-tool-card { padding: 18px 12px; }
  .image-result-card { padding: 11px; }
  .image-preview-frame { height: 120px; }
  .image-result-actions .image-button { padding: 0 6px; font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .image-button, .image-drop-zone { transition-duration: .01ms; }
}
