.dynamic-legend{--legend-width: 300px;--legend-bar-height: 14px;--label-font-size: 12px;--title-font-size: 16px;--stagger-offset: 16px;--tick-color: #999;--tick-width: 1px;-webkit-user-select:none;user-select:none;display:flex;flex-direction:column}.dynamic-legend__header{margin-bottom:6px;text-align:center}.dynamic-legend__title{font-size:var(--title-font-size);font-weight:700;color:#333;text-align:center;white-space:pre;cursor:default;display:block}.dynamic-legend__title--wrap{max-width:var(--legend-width);white-space:pre-line;overflow-wrap:anywhere;line-height:1.15}.dynamic-legend__title--editable{cursor:text;transition:color .15s}.dynamic-legend__title--editable:hover{color:#2563eb}.dynamic-legend__title-input{font-size:var(--title-font-size);font-weight:700;color:#333;background:#fff;padding:2px 6px;border:2px solid #3b82f6;border-radius:4px;outline:none;min-width:200px}.legend-bar{display:flex;flex-wrap:nowrap;width:var(--legend-width);height:var(--legend-bar-height);border-radius:0;overflow:hidden;box-shadow:inset 0 0 0 1px #00000014;transition:opacity .2s ease}.legend-bar--continuous{border-radius:0;box-shadow:inset 0 0 0 1px #00000014;transition:opacity .2s ease}.legend-bar__step{flex:none}.legend-labels{position:relative;width:var(--legend-width);height:20px;margin-top:5px}.legend-labels--vertical{height:80px}.legend-items{display:flex;flex-wrap:wrap;gap:6px 10px;margin-top:6px;width:var(--legend-width)}.legend-item{display:inline-flex;align-items:center;gap:6px}.legend-item__swatch{width:12px;height:12px;border:1px solid rgba(0,0,0,.2);flex:none}.legend-item__label{font-size:var(--label-font-size);color:#333;font-weight:450;white-space:nowrap}.legend-labels__tick{position:absolute;top:0;width:var(--tick-width);height:4px;background:var(--tick-color);transform:translate(-50%);pointer-events:none}.smart-label{position:absolute;top:2px;transform:translate(-50%);font-size:var(--label-font-size);line-height:1;white-space:nowrap;color:#333;font-weight:450}.smart-label--vertical{top:2px;transform:translate(-50%);transform-origin:center top;white-space:nowrap;display:block}.smart-label__inner{writing-mode:vertical-rl;display:inline-block;transform:rotate(180deg)}
