.tool-wrap { max-width: 800px; padding-top: 48px; padding-bottom: 70px; }
.tool-wrap h1 { font-size: clamp(2rem, 6vw, 3.7rem); line-height: 1; letter-spacing: -.055em; margin: 24px 0 12px; }
.tool-wrap > p { color: #536057; max-width: 59ch; line-height: 1.65; }
.tool-form { margin: 28px 0; padding: clamp(16px, 4vw, 28px); border: 1px solid var(--line); border-radius: 18px; background: white; }
.tool-form label { display: block; font-weight: 650; margin-bottom: 8px; }
.tool-file-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.tool-form .tool-file-button { display: inline-block; margin: 0; padding: 10px 14px; border: 1px solid #bfc7ba; border-radius: 8px; background: var(--paper); cursor: pointer; }
.tool-file-input:focus-visible + .tool-file-button { outline: 3px solid #8ab834; outline-offset: 3px; }
.tool-file-input:disabled + .tool-file-button { opacity: .55; cursor: default; }
.tool-form select, .tool-form button:not(.primary) { font: inherit; border: 1px solid #bfc7ba; background: var(--paper); color: var(--ink); border-radius: 8px; padding: 7px 11px; }
.tool-form button:disabled { opacity: .55; cursor: default; }
.tool-form small { display: block; line-height: 1.55; color: #536057; margin-top: 8px; }
.tool-form ol { padding-left: 24px; margin: 22px 0; }
.tool-form ol:empty { margin: 18px 0; }
.tool-form li { padding: 9px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.tool-form li img { width: 44px; height: 35px; object-fit: contain; vertical-align: middle; margin-right: 8px; background: var(--soft); }
.tool-form li div { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; }
.tool-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.tool-status { min-height: 1.5em; margin-bottom: 0; line-height: 1.5; }
.tool-wrap .tool-related { text-decoration: underline; }
.tool-field { margin-top: 20px; }
.tool-field input { width: min(100%, 12rem); font: inherit; padding: 8px 11px; border: 1px solid #bfc7ba; border-radius: 8px; }
.tool-preview { margin: 20px 0 0; }
.tool-preview img { display: block; max-width: 100%; max-height: 420px; width: auto; height: auto; border: 1px solid var(--line); border-radius: 8px; }
.tool-preview figcaption { color: #536057; margin: 10px 0 14px; }
.crop-settings { min-width: 0; margin: 20px 0 0; padding: 0; border: 0; }
.crop-settings legend { font-weight: 650; }
.crop-settings p { margin: 8px 0 14px; color: #536057; }
.crop-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(105px, 1fr)); gap: 12px; }
.crop-fields input { box-sizing: border-box; width: 100%; font: inherit; padding: 8px 11px; border: 1px solid #bfc7ba; border-radius: 8px; }
.crop-source { display: block; max-width: 100%; height: auto; margin-top: 14px; background: var(--soft); outline: 1px solid var(--line); cursor: crosshair; }
