.image-tool h2 { margin: 0 0 1.25rem; font-size: 1.3rem; }
.upload-zone { border: 2px dashed var(--border); border-radius: var(--radius); background: var(--surface-2); text-align: center; padding: 1.5rem; }
.upload-zone:focus-within, .upload-zone.dragover { border-color: var(--brand); }
.upload-zone__label { display: flex; flex-direction: column; align-items: center; gap: .4rem; margin: 0; cursor: pointer; }
.upload-zone__label span:last-child, .upload-zone p, .image-tool__hint, .image-tool small { color: var(--muted); }
.upload-zone__symbol { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; color: var(--brand); background: var(--surface-strong); font-size: 2rem; }
.upload-zone input[type="file"] { width: min(100%, 420px); margin: 1rem auto 0; }
.upload-zone p { margin: .6rem 0 0; font-size: .9rem; }
.image-tool__preview-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; margin: 1.5rem 0; }
.image-tool__preview { min-width: 0; border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; background: var(--surface-2); }
.image-tool__preview h3 { margin: 0 0 .7rem; }
.image-tool__preview img { display: block; width: 100%; max-height: 320px; object-fit: contain; background: repeating-conic-gradient(#30343d 0% 25%,#22262e 0% 50%) 50% / 20px 20px; border-radius: 8px; }
.image-tool__preview p { margin: .6rem 0 0; color: var(--muted); overflow-wrap: anywhere; }
.image-tool__settings { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 1rem; }
.image-tool__settings .field { min-width: 0; }
.image-tool__settings input[type="range"] { padding: 0; min-height: 36px; accent-color: var(--brand-strong); }
.resize-fields { grid-column: 1 / -1; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem; }
.resize-fields legend { padding: 0 .35rem; font-weight: 700; }
.image-tool__dimensions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.image-tool__check { display: flex; align-items: center; gap: .6rem; font-weight: 500; }
.image-tool__check input { width: auto; min-height: 0; accent-color: var(--brand-strong); }
.image-tool__hint { font-size: .92rem; }
.image-tool__result { margin-top: 1.5rem; padding: 1.2rem; border: 1px solid var(--border); border-radius: var(--radius); }
.image-tool__result h3 { margin: 0 0 .8rem; }
.image-tool__stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .65rem; margin: 0 0 1rem; }
.image-tool__stats > div { padding: .85rem; background: var(--surface-2); border-radius: var(--radius-sm); }
.image-tool__stats dt { color: var(--muted); font-size: .86rem; }
.image-tool__stats dd { margin: .2rem 0 0; font-weight: 750; overflow-wrap: anywhere; }
.image-tool__result .button { display: inline-block; margin-top: .5rem; }
@media (max-width: 650px) {
  .image-tool__preview-grid,.image-tool__settings,.image-tool__dimensions { grid-template-columns: 1fr; }
  .image-tool__stats { grid-template-columns: 1fr; }
}
