.im-import { margin-bottom: 24px; }
.im-import h2,.im-controls h2,.im-preview h2,.im-help h2 { font-size: 1.05rem; margin-top: 0; }
.im-file-label { position: relative; overflow: hidden; cursor: pointer; }
.im-file-label input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.im-file-label:focus-within { outline: 3px solid #b5cf49; outline-offset: 3px; }
.im-workspace { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; align-items: start; margin-bottom: 24px; }
.im-controls fieldset { padding: 0; margin: 0; border: 0; min-width: 0; }
.im-controls .field { display: grid; gap: 8px; margin: 16px 0; font-size: .86rem; }
.im-controls input,.im-controls select { width: 100%; min-height: 42px; box-sizing: border-box; }
.im-controls input[type=color] { max-width: 90px; padding: 3px; }
.im-controls .muted { font-size: .8rem; line-height: 1.7; }
.im-controls button { font-size: .85rem; }
.im-precise { margin-top: 20px; border-top: 1px solid #dce2d8; padding-top: 18px; }
.im-precise summary { cursor: pointer; font-size: .86rem; font-weight: 600; }
.im-coordinates { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.im-coordinates label { font-size: .75rem; }
.im-coordinates input { margin-top: 5px; }
.im-history { margin-top: 22px; gap: 8px; }
.im-export { width: 100%; }
.im-remove { background: none; border: 0; color: #68756d; padding: 16px 0 0; text-decoration: underline; cursor: pointer; }
.im-preview { min-width: 0; }
.im-preview-heading { display: flex; gap: 12px; justify-content: space-between; align-items: start; flex-wrap: wrap; }
.im-badge { font-size: .72rem; padding: 5px 9px; background: #e7eee5; border-radius: 4px; }
.im-empty { min-height: 340px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; background: #edf0e9; color: #657267; border: 1px dashed #becbbd; }
.im-empty span { font-size: 3.5rem; color: #236b51; }
.im-empty h3 { color: #1d2b28; margin-bottom: 0; }
.im-empty p { font-size: .9rem; line-height: 1.8; }
.im-canvas-wrap { overflow: hidden; background-color: #fff; background-image: linear-gradient(45deg,#e3e6e1 25%,transparent 25%),linear-gradient(-45deg,#e3e6e1 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e3e6e1 75%),linear-gradient(-45deg,transparent 75%,#e3e6e1 75%); background-size: 20px 20px; background-position: 0 0,0 10px,10px -10px,-10px 0; border: 1px solid #dce2d8; }
#preview { display: block; width: 100%; height: auto; cursor: crosshair; touch-action: none; }
.im-preview .notice { font-size: .82rem; line-height: 1.8; }
.im-help { margin-bottom: 36px; }
.im-help h3 { font-size: .95rem; }
.im-help p,.im-help li { font-size: .88rem; line-height: 1.9; }
.im-help ol { padding-left: 22px; }
.im-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
[hidden] { display: none !important; }
.im-controls :disabled { cursor: not-allowed; opacity: .55; }
@media(max-width: 820px) { .im-workspace { grid-template-columns: 1fr; } .im-controls { order: 1; } .im-preview { order: 0; } .im-controls fieldset { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; } .im-controls .im-precise,.im-controls #gesture-help,.im-controls #text-options,.im-controls .im-history,.im-controls #mark-count { grid-column: 1/-1; } .im-empty { min-height: 240px; } }
@media(max-width: 420px) { .im-controls fieldset { display: block; } .im-preview-heading { gap: 4px; margin-bottom: 12px; } }
