#iw-settings select {
    appearance: none;
    min-height: 46px;
    height: 46px;
    padding-right: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' stroke='%23777' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}
.iw-preview { margin: 20px 0; }
.iw-surface {
    position: relative;
    margin: 12px auto;
    max-width: 100%;
    line-height: 0;
    background: repeating-conic-gradient(#eee 0% 25%, #fff 0% 50%) 0 0 / 20px 20px;
    box-shadow: 0 0 0 1px var(--site-border, #e5e7eb);
}
.iw-surface canvas { display: block; width: 100%; height: auto; }
.iw-mark-box {
    position: absolute;
    border: 2px dashed #2563eb;
    cursor: move;
    touch-action: none;
}
.iw-mark-box:focus { outline: 3px solid #93c5fd; outline-offset: 3px; }
.iw-mark-box > span {
    position: absolute;
    width: 22px;
    height: 22px;
    right: -9px;
    bottom: -9px;
    border: 2px solid white;
    border-radius: 4px;
    background: #2563eb;
    cursor: nwse-resize;
}
.iw-range { display: flex; align-items: center; gap: 12px; padding: 0 12px; }
.iw-range input { flex: 1; min-width: 0; accent-color: #2563eb; }
.iw-range output { width: 4em; text-align: right; font-variant-numeric: tabular-nums; }
.iw-result-row { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--site-border, #e5e7eb); }
.iw-result-copy { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.iw-result-name { font-weight: 600; }
.iw-result-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.iw-result-actions button, .iw-result-actions a { min-height: 40px; padding: 8px 12px; }
#iw-progress-meter { display: block; width: 100%; margin-top: 12px; accent-color: #2563eb; }
#iw-page-actions { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; }
#iw-page-actions.hidden { display: none; }
@media (max-width: 600px) {
    .iw-result-row { align-items: flex-start; flex-wrap: wrap; }
    .iw-result-actions { width: 100%; justify-content: flex-start; }
}
