.may-scale-stack{display:flex;flex-direction:column;align-items:flex-start;gap:8px;width:max-content;padding-top:8px;pointer-events:none}
.may-scale-stack[hidden]{display:none}
.may-scale-stack__level{display:flex;flex-direction:column;align-items:flex-start;gap:3px;flex:none}
.may-scale-stack__label{font:11px/1.2 sans-serif;color:#aaa}
.may-scale-stack__canvas{display:block;flex:none;max-width:none;margin:0;padding:0;border:0;image-rendering:pixelated}

.may-scale-stack--window{position:relative;pointer-events:auto;gap:8px;flex:none;overflow:visible}
.may-scale-stack__controls{display:flex;align-self:stretch;width:100%;align-items:center;justify-content:center;gap:6px;height:24px;white-space:nowrap;font:11px/1.2 sans-serif;color:#b7cadf}
.may-scale-stack__controls input{box-sizing:border-box;width:72px;height:24px;background:#1b2430;color:#dfe6f5;border:1px solid #40516b}
.may-scale-stack__list{width:100%}
.may-scale-stack--window .may-scale-stack__level{position:relative;display:block;box-sizing:border-box;width:100%;padding-top:24px}
.may-scale-stack--window .may-scale-stack__label{position:absolute;top:4px;left:50%;width:max-content;max-width:none;transform:translateX(-50%);text-align:center;white-space:nowrap;pointer-events:none}
.may-scale-stack--window .may-scale-stack__canvas{width:100%;height:auto}

.may-scale-stack__controls select{height:24px;max-width:120px;background:#1b2430;color:#dfe6f5;border:1px solid #40516b;font:inherit}

.may-scale-stack__controls{position:relative;z-index:7}.may-scale-stack__controls button{flex:none;height:24px;font:inherit}

.may-scale-stack__axis{position:absolute;top:24px;width:0;border-left:1px dashed #b48cff;z-index:2;pointer-events:none}.may-scale-stack__digits{position:absolute;z-index:3;pointer-events:none;max-width:none}.may-scale-stack__digits[hidden]{display:none}

.may-scale-stack__warning{color:#ff5b5b;pointer-events:auto}.may-scale-stack__warning[hidden]{display:none}

.may-scale-stack__controls{flex-wrap:nowrap;align-self:flex-start;width:max-content;min-width:0;height:24px;min-height:24px;gap:4px}.may-scale-stack__controls select[aria-label="Высота нижних построений"]{max-width:150px}

.may-scale-stack__axis-band{position:absolute;pointer-events:none;z-index:1;background:color-mix(in srgb,var(--may-axis-primary,#b48cff) 22%,transparent)}

/* Glyphs cover the raster transparently; only-digits hides the raster in JS. */
.may-scale-stack__digits{background:transparent}
.may-scale-stack__controls>.may-standard{flex:0 0 120px;--c:#7cbcff}
.may-scale-stack__controls .may-scale-stack__field[hidden]{display:none!important}
.may-scale-stack__controls .may-scale-stack__field>select{appearance:auto;box-sizing:border-box;width:100%;min-width:0;max-width:none;height:24px;margin:0;padding:0;border:0;border-radius:0;background:transparent;color:inherit;font:11px/1.2 sans-serif;cursor:pointer}
.may-scale-stack__controls .may-scale-stack__field>select:focus{outline:0}
.may-scale-stack__controls .may-scale-stack__field:focus-within{--may-outline:var(--c,#7cbcff)}
.may-scale-stack__controls .may-scale-stack__field input{flex:1;min-width:0;width:40px;height:22px;margin:0;padding:0;border:0;border-radius:0;background:transparent;font:inherit;color:inherit;text-align:center}
.may-scale-stack__controls .may-scale-stack__field .gz-nm{font:10px/1.2 sans-serif;flex:none}
.may-scale-stack__controls>.may-standard{justify-content:center}
.may-scale-stack__controls select option{background:#1b2430;color:#dfe6f5}

/* All residue classes of one integer factor, in a horizontal strip. */
.may-scale-stack__phase-note{font:12px/1.4 sans-serif;color:#b7cadf;margin:4px 0;max-width:100%;white-space:normal}
.may-scale-stack--phases .may-scale-stack__controls{width:100%;height:auto;flex-wrap:wrap}
.may-scale-stack--phases .may-scale-stack__list{display:flex;flex-flow:row nowrap;align-items:flex-start;gap:8px;overflow-x:auto;overflow-y:hidden;max-width:100%;padding-bottom:8px;overscroll-behavior-x:contain}
.may-scale-stack--phases .may-scale-stack__level{display:flex!important;flex-direction:column;align-items:center;gap:4px;flex:none;position:relative;min-width:140px;padding:0!important}
.may-scale-stack--phases .may-scale-stack__label{position:static;transform:none;white-space:normal;width:100%;max-width:100%;min-height:36px;text-align:center}
.may-scale-stack--phases .may-scale-stack__canvas{max-width:none;image-rendering:pixelated;flex:none}

.may-scale-stack__overlay{position:fixed;z-index:1;pointer-events:none;overflow:hidden}
.may-scale-stack__overlay[hidden],body.may-fold-active .may-scale-stack__overlay,body.may-cells-collapsed .may-scale-stack__overlay{display:none}
.may-scale-stack__overlay canvas{position:absolute;max-width:none;margin:0;background:transparent;image-rendering:pixelated}
.may-scale-stack--phases .may-scale-stack__mix-controls{justify-content:flex-start}

.may-scale-stack__paint-controls[hidden]{display:none}
.may-scale-stack__paint-palette>.gz-half{gap:4px;cursor:pointer}
.may-scale-stack__paint-palette input[type=color]{flex:0 0 18px;width:18px;min-width:18px;height:16px;margin:0;padding:0;border:0;background:transparent;cursor:pointer}
.may-scale-stack__paint-palette input[type=color]::-webkit-color-swatch-wrapper{padding:1px}

.may-scale-stack__outline-button[hidden],.may-scale-stack__overlay-outline[hidden]{display:none!important}
.may-scale-stack__overlay-outline{z-index:1}
@media(max-width:400px){
 .may-scale-stack__operation-controls:has(.may-scale-stack__outline-button:not([hidden])){width:244px;height:auto;flex-wrap:wrap}
}
