.lbl-editor { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.lbl-toolbar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.lbl-zoom { margin-left: auto; display: flex; gap: 4px; align-items: center; font-size: 12px; color: #666; }
.lbl-btn { border: 1px solid #c9c9c9; background: #fff; border-radius: 4px; padding: 4px 10px; cursor: pointer; font-size: 13px; }
.lbl-btn:hover { background: #f3f3f3; }
.lbl-btn:disabled { opacity: .5; cursor: default; }
.lbl-btn-sm { padding: 2px 8px; font-size: 12px; }
.lbl-btn-danger { color: #b00020; border-color: #b00020; }
.lbl-body { display: flex; gap: 16px; align-items: flex-start; }
.lbl-canvas-wrap { overflow: auto; max-height: 70vh; min-height: 300px; padding: 16px; background: #e9e9e9; border-radius: 6px; flex: 1 1 auto; display: flex; }
.lbl-canvas { flex: 0 0 auto; margin: auto; }
.lbl-canvas { position: relative; background: #fff; box-shadow: 0 0 0 1px #999; outline: none;
    background-image: linear-gradient(to right, #f0f0f0 1px, transparent 1px), linear-gradient(to bottom, #f0f0f0 1px, transparent 1px); }
.lbl-el { position: absolute; box-sizing: border-box; cursor: move; user-select: none; overflow: hidden; outline: 1px dashed #9aa; }
.lbl-el:hover { outline-color: #1976d2; }
.lbl-selected { outline: 2px solid #1976d2 !important; z-index: 2; }
.lbl-text { font-family: "Arial Narrow", "Helvetica Neue", Arial, sans-serif; line-height: 1.0; white-space: pre-wrap; word-break: break-word; width: 100%; height: auto; max-height: 100%; color: #000; }
.lbl-inverse { background: #000; }
.lbl-inverse .lbl-text { color: #fff; }
.lbl-qr { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; text-align: center; white-space: pre; font-size: 11px;
    background: repeating-linear-gradient(45deg, #ddd 0 4px, #fff 4px 8px); color: #333; }
.lbl-barcode { width: 100%; height: 100%; display: flex; align-items: flex-end; justify-content: center; font-size: 11px; color: #333;
    background: repeating-linear-gradient(90deg, #333 0 2px, #fff 2px 5px, #333 5px 6px, #fff 6px 10px); background-size: 100% 70%; background-repeat: no-repeat; }
.lbl-handle { position: absolute; right: 0; bottom: 0; width: 10px; height: 10px; background: #1976d2; cursor: nwse-resize; }
.lbl-props { width: 300px; flex: 0 0 300px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; max-height: 70vh; overflow: auto; padding-right: 4px; }
.lbl-props-title { font-weight: 600; color: #444; }
.lbl-row { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 6px; }
.lbl-row-label { color: #555; }
.lbl-input { width: 100%; box-sizing: border-box; border: 1px solid #c9c9c9; border-radius: 4px; padding: 3px 6px; font-size: 13px; }
.lbl-actions { display: flex; gap: 6px; margin-top: 8px; }
.lbl-hint { color: #666; font-size: 12px; }
.lbl-list { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.lbl-list-item { text-align: left; }
.lbl-preview { max-width: 100%; border: 1px solid #999; background: #fff; }
.lbl-marquee { position: absolute; border: 1px dashed #1976d2; background: rgba(25, 118, 210, .08); pointer-events: none; z-index: 3; }
.lbl-sep { width: 1px; height: 22px; background: #ccc; margin: 0 6px; }
.lbl-guide { position: absolute; background: #e91e63; pointer-events: none; z-index: 4; }
.lbl-guide-v { width: 1px; top: 0; bottom: 0; }
.lbl-guide-h { height: 1px; left: 0; right: 0; }
.lbl-zoom-value { min-width: 44px; text-align: center; font-variant-numeric: tabular-nums; }
