.tool__body [hidden] { display: none !important; }
@font-face { font-family: 'FU DejaVu'; src: url('/assets/vendor/fonts/DejaVuSans.ttf') format('truetype'); font-display: swap; }
.sg-h { font-size: 1.05rem; margin: 18px 0 10px; }
.sg-h:first-child { margin-top: 0; }
.sg-pad { display: block; width: 100%; height: 200px; background: #fff; border: 1px dashed var(--border); border-radius: 10px; touch-action: none; cursor: crosshair; }
.sg-current { display: flex; align-items: center; gap: 12px; min-height: 56px; margin-top: 10px; }
.sg-current img { max-height: 56px; max-width: 240px; background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 4px; }
.sg-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0; }
.sg-nav { display: flex; align-items: center; gap: 8px; }
.sg-nav span { min-width: 64px; text-align: center; font-weight: 600; }
.sg-small { flex: 0 0 auto !important; }
.sg-small .input { width: 90px; }
.sg-stage { position: relative; margin: 12px auto; width: fit-content; max-width: 100%; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); background: #fff; cursor: copy; user-select: none; }
.sg-stage canvas { display: block; max-width: 100%; }
.sg-el { position: absolute; border: 1px dashed transparent; cursor: move; touch-action: none; }
.sg-el:hover, .sg-el:focus, .sg-el.is-active { border-color: var(--accent); outline: none; }
.sg-el img { display: block; width: 100%; height: 100%; pointer-events: none; }
.sg-el.is-text { white-space: nowrap; line-height: 1; font-family: 'FU DejaVu', sans-serif; color: #111; }
.sg-el .del, .sg-el .rs { position: absolute; width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-contrast); font-size: 12px; line-height: 22px; text-align: center; padding: 0; display: none; }
.sg-el:hover .del, .sg-el:focus .del, .sg-el.is-active .del, .sg-el:hover .rs, .sg-el:focus .rs, .sg-el.is-active .rs { display: block; }
.sg-el .del { top: -11px; right: -11px; cursor: pointer; }
.sg-el .rs { bottom: -11px; right: -11px; cursor: nwse-resize; touch-action: none; }
@media (hover: none) { .sg-el .del, .sg-el .rs { display: block; } }
.sg-el.is-text { padding: 0 2px; }
.sg-el.is-text .del, .sg-el.is-text .rs { right: -26px; }
