.label-style-dialog{border:1px solid var(--line);padding:0;border-radius:8px;width:min(650px,calc(100vw - 24px));max-height:calc(100dvh - 40px);background:var(--menu-surface,var(--overlay,#3d4145));color:var(--text,#e4dfd7);box-shadow:var(--shadow);font:12px/1.4 'Microsoft YaHei','Segoe UI',sans-serif;overflow:auto}.label-style-dialog::backdrop{background:#0008}.label-style-dialog *{box-sizing:border-box}.label-style-dialog button,.label-style-dialog input,.label-style-dialog select{font:inherit;color:inherit}.label-style-dialog button{cursor:pointer;border:0;border-radius:4px;background:var(--control,#494f55);padding:3px 7px;min-height:24px}.label-style-dialog button:hover{background:var(--hover,var(--control))}.label-style-dialog button:disabled{opacity:.4}.label-style-dialog :focus-visible{outline:2px solid var(--muted);outline-offset:2px}.label-style-shell>header{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;border-bottom:1px solid var(--line)}.label-style-shell h2{font-size:14px;margin:0}.label-style-close{width:24px;height:24px;font-size:18px!important;padding:0!important}.label-style-content{display:grid;grid-template-columns:150px minmax(0,1fr)}.label-style-library{min-width:0;padding:8px;border-right:1px solid var(--line)}.label-style-cards{display:grid;gap:4px;max-height:480px;overflow:auto}.label-style-card{display:flex;align-items:center;gap:6px;text-align:left}.label-style-card>span:nth-child(2){min-width:0;overflow-wrap:anywhere}.label-style-dialog .label-style-card.is-current,.label-style-dialog .label-style-card.is-current:hover{background:var(--selection,#343943);color:var(--selection-ink,#f2f3f5)}.label-style-swatch{display:grid;place-items:center;width:24px;height:20px;border-radius:3px;font-size:10px;flex:none}.label-style-library-actions{display:flex;gap:4px;margin-top:8px}.label-style-library-actions button{flex:1}.label-style-main{min-width:0;padding:8px 12px}.label-style-preview{height:150px;margin-bottom:8px;display:grid;place-items:center;border-radius:4px;background:var(--canvas,#1e2026);color:var(--text)}.label-style-preview svg{width:100%;height:100%;overflow:hidden}.label-style-fields{display:grid;grid-template-columns:1fr 1fr;gap:6px 8px;border:0;padding:0;margin:0;min-width:0}.label-style-dialog label{display:flex;flex-direction:column;gap:3px;font-size:11px;min-width:0;margin:0}.label-style-dialog input,.label-style-dialog select{width:100%;min-width:0;height:25px;margin:0;background:var(--control,#494f55);border:0;border-radius:3px;padding:3px 5px}.label-style-dialog input[type=color]{padding:2px;cursor:pointer}.label-style-full{grid-column:1/-1}.label-style-save{display:flex;align-items:end;justify-content:end}.label-style-apply{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;align-items:end;margin-top:8px;padding-top:8px;border-top:1px solid var(--line)}.label-style-apply [data-style-action=reset]{grid-column:1/-1;justify-self:end}.label-style-status{font-size:11px;margin:6px 0 0}.label-style-status:empty{display:none}.label-style-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}@media(max-width:550px){.label-style-content{grid-template-columns:minmax(0,1fr)}.label-style-library{border-right:0;border-bottom:1px solid var(--line)}.label-style-cards{display:flex;max-height:none;overflow-x:auto}.label-style-card{flex:0 0 auto;max-width:130px}.label-style-library-actions{justify-content:end}.label-style-library-actions button{flex:none}.label-style-preview{height:140px}}@media(pointer:coarse){.label-style-dialog button,.label-style-dialog input,.label-style-dialog select{min-height:36px}.label-style-close{min-width:36px}}

body .label-style-dialog .label-style-card{background:var(--canvas,#1e2026)}
.label-editor-group{grid-column:1/-1;border-top:1px solid var(--line);padding:5px 0}.label-editor-group summary{cursor:pointer;font-size:12px;line-height:24px}.label-editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:5px 0}.label-editor-grid label{font-size:11px!important;min-width:0}.label-editor-grid input,.label-editor-grid select{min-height:24px!important;height:24px!important;padding:2px 5px!important;font-size:12px!important}.label-style-preview [data-label-element]:hover{stroke:#57c3c2}.label-style-preview svg{touch-action:none}.label-style-fields:has(.label-editor-group){gap:5px}.label-style-dialog:has(.label-editor-group) .label-style-preview{min-height:150px;max-height:150px}.label-style-dialog:has(.label-editor-group) .label-style-preview svg{max-height:150px}

body .label-style-dialog:has(.label-editor-group){background:var(--panel,#24272e);color:var(--text,#f2f3f5)}body .label-style-dialog:has(.label-editor-group) .label-editor-group{margin:0!important;padding:2px 0!important}body .label-style-dialog:has(.label-editor-group) summary{margin:0!important;padding:2px 0!important;min-height:24px!important}body .label-style-dialog:has(.label-editor-group) .label-style-preview{height:150px;min-height:150px;max-height:150px}body .label-style-dialog:has(.label-editor-group) .label-style-preview svg{max-height:150px}body .label-style-dialog:has(.label-editor-group) .label-editor-grid>.label-style-full:has(select){display:grid!important;grid-template-columns:1fr 1fr;align-items:center}body .label-style-dialog:has(.label-editor-group) [data-template-status]{grid-column:1/-1;font-size:10px}body .label-style-dialog:has(.label-editor-group) .label-style-apply{grid-template-columns:minmax(0,1fr) auto auto;margin:6px 0 0;padding:6px 0 0}body .label-style-dialog:has(.label-editor-group) .label-style-apply [data-style-action=reset]{grid-column:auto}body .label-style-dialog:has(.label-editor-group) input,body .label-style-dialog:has(.label-editor-group) select{background:var(--control,#343943)}body .label-style-dialog:has(.label-editor-group) .label-style-save{grid-column:1/-1}

.label-style-dialog textarea{width:100%;min-height:60px;resize:vertical;border:1px solid var(--line,#424650);border-radius:3px;background:var(--control,#343943);color:inherit;font-family:inherit;font-size:12px;line-height:1.4;padding:5px}.label-style-overflow:not([hidden]){display:flex;gap:5px;flex-wrap:wrap;align-items:center;color:#f9d367;font-size:11px;margin:5px 0}.label-style-overflow span{flex-basis:100%}.label-style-dialog [data-note-font]{display:flex;justify-content:end}.label-style-dialog [data-note-font] input{width:76px}

.label-style-dialog [data-note-font]{align-items:center;gap:6px}.label-style-dialog [data-note-font] small{font-size:10px;color:var(--muted,#aab0bd)}

[data-roof-quick] .label-reference-editor{box-sizing:border-box;min-width:0;width:100%;min-height:26px;max-height:70px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;padding:3px 4px;border:1px solid #424650;border-radius:3px;background:#272a32;color:inherit;font:12px/1.4 'Microsoft YaHei','Segoe UI',sans-serif;cursor:text}[data-roof-quick] .label-reference-editor.is-multiline{min-height:46px;max-height:130px}[data-roof-quick] .label-reference-editor:focus{outline:1px solid #8abcd1;outline-offset:1px}.label-reference{display:inline-flex;align-items:flex-start;vertical-align:baseline;max-width:100%;border:1px solid #64717d;border-radius:3px;background:#343c48;color:#e4dfd7;padding:0 2px;gap:3px;cursor:default;white-space:pre-wrap}.label-reference [data-reference-value]{min-width:0;overflow-wrap:anywhere}.label-reference [data-reference-value]:empty::after{content:'—';color:#a4acb4}.label-reference[data-rgb]::before{content:'';width:10px;height:10px;margin-top:3px;flex:none;border:1px solid #89929a;background:var(--reference-rgb)}.label-reference [data-remove-reference]{padding:0;margin:2px 0 0;border:0;background:none;color:#aeb6bf;width:12px;height:12px;min-height:0;flex:none;cursor:pointer;line-height:1}.label-reference [data-remove-reference]:hover{color:#fff;background:#535d68}
