.layer-style-editor { box-sizing: border-box; width: min(772px, calc(100vw - 24px)); }
#layerStyle { display: flex; flex-direction: column; max-height: calc(100vh - 40px); }
#layerStyle:not([open]) { display: none; }
#layerStyle form { flex: 1 1 auto; min-height: 0; overflow: hidden; max-height: none; }
#layerStyle .form-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
#layerStyle .form-tabs, #layerStyle .dialog-actions { flex: 0 0 auto; }
.layer-style-editor .form-tabs { overflow-x: auto; flex-wrap: nowrap; }
.layer-style-editor .form-tabs button { flex: 0 0 auto; }
.layer-style-editor textarea { min-height: 180px; font: 12px/1.5 Consolas, monospace; }
.style-color-preview { border: 2px solid; border-radius: 6px; padding: 20px; margin: 8px 0 18px; text-align: center; }
.style-color-input { display: flex; gap: 8px; align-items: center; min-width: 0; }
.style-color-input input[type="color"] { width: 28px; flex: 0 0 28px; min-height: 28px; }
.style-color-input .style-color-hex { width: 100%; min-width: 0; font-family: Consolas, monospace; }
.style-color-input input.color-unset::-webkit-color-swatch { background: repeating-linear-gradient(135deg, #26373e 0 4px, #506168 4px 5px) !important; }
.selection-tool-bar { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); z-index: 35; display: flex; align-items: center; gap: 8px; max-width: calc(100% - 24px); padding: 9px 12px; border: 1px solid #52656d; border-radius: 9px; background: #223038; color: #e5edf0; box-shadow: 0 4px 18px #0004; white-space: nowrap; }
.selection-tool-bar select { width: 128px; }
.selection-tool-bar button { padding: 6px 12px; }
.selection-tool-bar :is(button,select) { border: 1px solid #52656d; background: #2d414b; color: #e5edf0; border-radius: 5px; font: inherit; }
.selection-tool-bar button.primary { background: #315f50; border-color: #60977e; }
.selection-tool-bar .selection-tool-status { min-width: 80px; font-size: 12px; color: #b8c8ce; }
