.photo-dialog.image-import-dialog{width:min(760px,calc(100vw - 28px));padding:25px;overflow:auto}
.image-import-dialog .dialog-head{margin-bottom:18px}.image-import-dialog .dialog-head h2{font-size:27px}
.image-source-preview,.image-crop-canvas{display:block;max-width:100%;width:auto;height:auto;max-height:46svh;margin:auto;object-fit:contain;background:conic-gradient(#e1e4da 25%,#fafbf7 0 50%,#e1e4da 0 75%,#fafbf7 0) 0 0/16px 16px}
.image-source-preview{image-rendering:pixelated;min-width:160px;max-height:42svh}
.image-crop-canvas{touch-action:none;cursor:crosshair;outline-offset:4px}
.image-mode-action{display:flex;justify-content:flex-end;margin:-9px 0 10px}
.image-import-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:23px}
.image-import-actions .btn{min-height:43px;font-size:13px}.image-import-actions .primary{margin-left:auto}
.image-output-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px 24px;margin:0 0 20px}
.image-size-slider{display:grid;gap:4px;min-width:0;font-size:11px}
.image-size-slider>span{display:flex;align-items:center;justify-content:space-between;gap:8px}
.image-size-slider output{padding:3px 6px;border-radius:5px;background:var(--accent-soft);color:var(--accent-ink);font:10px var(--mono);white-space:nowrap}
.image-size-slider input[type=range]{width:100%;min-width:0}
.image-output-fields .image-aspect{grid-column:1/-1;display:flex;justify-content:center;align-items:center;gap:7px;font-size:11px}
.image-import-dialog input[type=checkbox]{accent-color:var(--accent)}
.image-convert-grid{display:flex;align-items:stretch;gap:24px}
.image-pixel-mat{flex:1;min-width:0;min-height:230px;max-height:42svh;display:grid;place-items:center;padding:16px;border:1px solid var(--line);border-radius:10px;background:#f4f5ee}
.image-pixel-mat canvas{display:block;max-width:100%;max-height:35svh;width:auto;height:auto;image-rendering:pixelated;border:1px solid #cfd5c5}
.image-threshold{width:150px;flex:none;align-self:center;font-size:12px}.image-threshold>label:first-child{display:flex;justify-content:space-between;gap:10px}
.image-threshold output{font:11px var(--mono);color:var(--muted)}.image-threshold input[type=range]{margin:10px 0}.image-threshold>.btn{display:block;margin:0 0 20px;padding-left:0}
.image-invert{display:flex;align-items:center;gap:8px;font-size:11px}
@media(max-width:560px){.photo-dialog.image-import-dialog{padding:21px}.image-output-fields{gap:8px;flex-wrap:wrap}.image-output-fields .image-aspect{margin-left:0}.image-convert-grid{gap:14px;flex-direction:column}.image-threshold{width:100%;display:grid;grid-template-columns:1fr auto;column-gap:15px}.image-threshold>label:first-child,.image-threshold input[type=range]{grid-column:1/-1}.image-threshold>.btn{margin:0}.image-threshold .image-invert{justify-self:end}.image-pixel-mat{min-height:170px}.image-import-actions .btn{padding:0 13px;font-size:12px}.image-source-preview,.image-crop-canvas{max-height:42svh}}
