/* UI styles (full) */
.sgl-slv-wrapper { border: 1px solid #e3e3e3; padding: 16px; background: #fff; }
.sgl-slv-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.sgl-slv-row { display: flex; flex-direction: column; gap: 6px; }
.sgl-slv-stage { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; align-items: start; }
#sgl-slv-canvas { width: 100%; max-width: 100%; border: 1px dashed #ccc; background: #111; }
.sgl-slv-slides { list-style: none; margin: 0; padding: 0; border: 1px solid #eee; max-height: 60vh; overflow: auto; }
.sgl-slv-slide { display: grid; grid-template-columns: 56px 1fr auto auto; gap: 8px; align-items: center; padding: 8px; border-bottom: 1px solid #f0f0f0; background: #fff; }
.sgl-slv-slide.dragging { opacity: 0.6; }
.sgl-slv-thumb { width: 56px; height: 56px; object-fit: cover; border: 1px solid #ddd; }
.sgl-slv-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sgl-slv-handle { cursor: grab; font-size: 18px; padding: 0 6px; user-select: none; }
.sgl-slv-dur { width: 100px; }
.sgl-slv-dropzone { border: 2px dashed #bbb; padding: 12px; text-align: center; color: #666; background: #fafafa; }
.sgl-slv-dropzone.dragover { border-color: #0073aa; color: #0073aa; background: #f0f8ff; }
.sgl-slv-note { font-size: 12px; color: #666; margin-top: 12px; }
#sgl-slv-stop { display: none; }
.sgl-slv-progress-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: grid; place-items: center; z-index: 999999; }
.sgl-slv-progress-modal[hidden] { display: none; }
.sgl-slv-progress-card { width: min(720px, 92vw); background: #fff; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); padding: 18px; }
.sgl-slv-progress-bar-wrap { width: 100%; height: 14px; background: #f2f2f2; border-radius: 8px; overflow: hidden; margin-bottom: 8px; }
.sgl-slv-progress-bar { height: 100%; width: 0%; background: #0073aa; transition: width .2s; }
.sgl-slv-progress-status { font-size: 14px; color: #333; margin-bottom: 8px; }
.sgl-slv-progress-log { background: #0d1117; color: #9ef; padding: 10px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; max-height: 240px; overflow: auto; border-radius: 6px; }
.sgl-slv-progress-actions { display: flex; justify-content: flex-end; margin-top: 10px; }
.sgl-slv-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: grid; place-items: center; z-index: 99999; }
.sgl-slv-modal[hidden] { display: none; }
.sgl-slv-modal-content { width: min(1000px, 95vw); background: #fff; border-radius: 8px; overflow: hidden; }
.sgl-slv-modal-header, .sgl-slv-modal-footer { padding: 10px 12px; background: #f7f7f7; display: flex; align-items: center; justify-content: space-between; }
.sgl-slv-modal-body { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; padding: 12px; }
.sgl-slv-modal-close { background: transparent; border: none; font-size: 18px; cursor: pointer; }
.sgl-slv-editor { border: 1px solid #eee; background: #111; display: grid; place-items: center; min-height: 400px; }
#sgl-slv-edit-canvas { width: 100%; height: 100%; max-height: 70vh; }
.sgl-slv-editor-controls { display: grid; gap: 8px; align-content: start; }
.sgl-slv-modes { display: grid; gap: 6px; }
.sgl-slv-zoom-wrap { display: flex; gap: 8px; align-items: center; }
.sgl-slv-tip { font-size: 12px; color: #666; }
