:root {
    color-scheme: dark;
    --constructor-bg: #101014;
    --constructor-surface: #17171d;
    --constructor-surface-2: #1d1c24;
    --constructor-border: rgba(255, 255, 255, .11);
    --constructor-border-strong: rgba(186, 160, 255, .68);
    --constructor-text: #f2eff7;
    --constructor-muted: #aaa5b4;
    --constructor-soft: #777282;
    --constructor-accent: #bba4ff;
    --constructor-accent-strong: #9c7eff;
    --constructor-warm: #d8ccbf;
    --constructor-radius: 18px;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-width: 320px;
    min-height: 100%;
    margin: 0;
    background: var(--constructor-bg);
    color: var(--constructor-text);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    overflow-x: hidden;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    font: inherit;
}

.hidden {
    display: none !important;
}

.constructor-app {
    min-height: 100dvh;
    background:
        radial-gradient(circle at 17% 0%, rgba(106, 86, 153, .13), transparent 32rem),
        var(--constructor-bg);
}

.constructor-header {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 24px;
    height: 72px;
    padding: 0 28px;
    border-bottom: 1px solid var(--constructor-border);
    background: rgba(16, 16, 20, .86);
    backdrop-filter: blur(18px);
}

.constructor-logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    width: 136px;
}

.constructor-logo img {
    display: block;
    width: 100%;
    height: auto;
}

.constructor-header-title {
    display: grid;
    gap: 2px;
    min-width: 0;
    padding-left: 24px;
    border-left: 1px solid var(--constructor-border);
}

.constructor-kicker,
.constructor-step,
.constructor-section-label {
    color: var(--constructor-accent);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .16em;
    line-height: 1.3;
    text-transform: uppercase;
}

.constructor-header-title strong {
    overflow: hidden;
    color: var(--constructor-text);
    font-size: 15px;
    font-weight: 650;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.constructor-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

.constructor-back-link,
.constructor-text-button {
    color: var(--constructor-muted);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: color .18s ease;
}

.constructor-back-link:hover,
.constructor-back-link:focus-visible,
.constructor-text-button:hover,
.constructor-text-button:focus-visible {
    color: var(--constructor-text);
}

.constructor-text-button {
    padding: 5px 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.constructor-credit {
    display: inline-flex;
    align-items: center;
    min-width: 34px;
    height: 28px;
    padding: 0 9px;
    border: 1px solid var(--constructor-border);
    border-radius: 999px;
    color: var(--constructor-warm);
    font-size: 12px;
    font-weight: 700;
    justify-content: center;
}

.constructor-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    min-height: calc(100dvh - 72px);
}

.constructor-canvas-panel {
    display: flex;
    min-width: 0;
    min-height: calc(100dvh - 72px);
    flex-direction: column;
    padding: 28px 32px 22px;
}

.constructor-canvas-topline,
.constructor-canvas-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.constructor-canvas-topline {
    flex: 0 0 auto;
    margin: 0 auto 18px;
    width: min(100%, 1120px);
}

.constructor-canvas-topline h1,
.constructor-drawer-head h2,
.constructor-help-card h2 {
    margin: 4px 0 0;
    color: var(--constructor-text);
    font-size: clamp(20px, 2vw, 28px);
    font-weight: 680;
    letter-spacing: -.03em;
    line-height: 1.08;
}

.constructor-help {
    display: inline-flex;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--constructor-border-strong);
    border-radius: 50%;
    background: rgba(55, 43, 79, .48);
    color: var(--constructor-accent);
    cursor: pointer;
    transition: background-color .18s ease, transform .18s ease;
}

.constructor-help:hover,
.constructor-help:focus-visible {
    background: rgba(91, 68, 132, .64);
    transform: translateY(-1px);
}

.constructor-help svg,
.constructor-lock-note svg,
.constructor-role-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.constructor-stage {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    align-items: flex-start;
    justify-content: center;
}

.constructor-stage-frame {
    position: relative;
    width: min(100%, 1160px);
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 20px;
    background: #25242a;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .32);
}

.constructor-stage-image,
.constructor-result-image,
.constructor-stage-result {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.constructor-stage-image,
.constructor-result-image {
    object-fit: cover;
    user-select: none;
}

.constructor-position-layer {
    position: absolute;
    z-index: 2;
    inset: 0;
    pointer-events: none;
}

.constructor-position {
    position: absolute;
    display: flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .62);
    border-radius: 12px;
    background: rgba(24, 20, 34, .18);
    box-shadow: inset 0 0 0 1px rgba(20, 15, 26, .12), 0 6px 24px rgba(0, 0, 0, .14);
    color: #fff;
    cursor: pointer;
    opacity: .22;
    outline: none;
    pointer-events: auto;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, opacity .18s ease, transform .18s ease;
}

.constructor-position:hover,
.constructor-position:focus-visible {
    border-color: #fff;
    background: rgba(173, 144, 255, .28);
    box-shadow: 0 0 0 3px rgba(187, 164, 255, .22), 0 10px 30px rgba(0, 0, 0, .24);
    opacity: .82;
}

.constructor-position.is-selected {
    border: 2px solid var(--constructor-accent);
    background: rgba(157, 125, 232, .34);
    box-shadow: 0 0 0 4px rgba(187, 164, 255, .18), inset 0 0 30px rgba(31, 19, 58, .22), 0 12px 30px rgba(0, 0, 0, .24);
    opacity: 1;
}

.constructor-position-number {
    display: inline-flex;
    width: 27px;
    height: 27px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .76);
    border-radius: 50%;
    background: rgba(16, 14, 21, .62);
    color: #fff;
    font-size: 12px;
    font-weight: 750;
}

.constructor-position-name {
    position: absolute;
    top: 7px;
    left: 50%;
    max-width: calc(100% - 14px);
    overflow: hidden;
    padding: 4px 7px;
    border-radius: 5px;
    background: rgba(16, 14, 21, .68);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.15;
    opacity: 0;
    text-overflow: ellipsis;
    transform: translate(-50%, -4px);
    transition: opacity .18s ease, transform .18s ease;
    white-space: nowrap;
}

.constructor-position:hover .constructor-position-name,
.constructor-position:focus-visible .constructor-position-name,
.constructor-position.is-selected .constructor-position-name {
    opacity: 1;
    transform: translate(-50%, 0);
}

.constructor-stage-loader {
    position: absolute;
    z-index: 4;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(16, 16, 20, .7);
    color: var(--constructor-muted);
    font-size: 13px;
}

.constructor-spinner,
.constructor-button-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, .2);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: constructor-spin .7s linear infinite;
}

.constructor-stage-result {
    z-index: 3;
    background: var(--constructor-bg);
}

.constructor-result-back {
    position: absolute;
    right: 18px;
    bottom: 18px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 10px;
    background: rgba(16, 16, 20, .82);
    color: #fff;
    cursor: pointer;
}

.constructor-canvas-footer {
    flex: 0 0 auto;
    width: min(100%, 1120px);
    margin: 16px auto 0;
}

.constructor-canvas-footer p {
    max-width: 690px;
    margin: 0;
    color: var(--constructor-muted);
    font-size: 12px;
    line-height: 1.45;
}

.constructor-selection-summary {
    flex: 0 0 auto;
    color: var(--constructor-warm);
    font-size: 12px;
    font-weight: 650;
    text-align: right;
}

.constructor-drawer {
    display: flex;
    min-width: 0;
    min-height: calc(100dvh - 72px);
    flex-direction: column;
    border-left: 1px solid var(--constructor-border);
    background: rgba(23, 23, 29, .96);
}

.constructor-drawer-head,
.constructor-section,
.constructor-drawer-bottom {
    padding: 24px;
}

.constructor-drawer-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid var(--constructor-border);
}

.constructor-drawer-head h2 {
    font-size: 22px;
}

.constructor-drawer-close {
    display: inline-flex;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--constructor-border);
    border-radius: 50%;
    background: transparent;
    color: var(--constructor-muted);
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

.constructor-drawer-close:hover,
.constructor-drawer-close:focus-visible {
    border-color: var(--constructor-border-strong);
    color: var(--constructor-text);
}

.constructor-section {
    border-bottom: 1px solid var(--constructor-border);
}

.constructor-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.constructor-section-head p {
    margin: 4px 0 0;
    color: var(--constructor-muted);
    font-size: 13px;
    line-height: 1.35;
}

.constructor-position-chips {
    display: grid;
    gap: 8px;
    max-height: 178px;
    overflow: auto;
    padding-right: 3px;
}

.constructor-position-chip {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 10px;
    padding: 10px 11px;
    border: 1px solid var(--constructor-border);
    border-radius: 11px;
    background: transparent;
    color: var(--constructor-muted);
    cursor: pointer;
    text-align: left;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.constructor-position-chip:hover,
.constructor-position-chip:focus-visible {
    border-color: rgba(187, 164, 255, .48);
    color: var(--constructor-text);
}

.constructor-position-chip.is-selected {
    border-color: var(--constructor-border-strong);
    background: rgba(119, 88, 174, .22);
    color: var(--constructor-text);
}

.constructor-position-chip.is-active {
    border-color: var(--constructor-accent);
    box-shadow: 0 0 0 1px rgba(187, 164, 255, .18);
}

.constructor-position-chip-mark {
    display: inline-flex;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    align-items: center;
    justify-content: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 750;
}

.constructor-position-chip-name {
    overflow: hidden;
    min-width: 0;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.constructor-position-chip-materials {
    overflow: hidden;
    margin-left: auto;
    color: var(--constructor-soft);
    font-size: 10px;
    line-height: 1.25;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.constructor-empty-state {
    padding: 13px;
    border: 1px dashed var(--constructor-border);
    border-radius: 10px;
    color: var(--constructor-soft);
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
}

.constructor-role-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}

.constructor-active-position {
    margin: -4px 0 14px;
    padding: 9px 11px;
    border: 1px solid rgba(187, 164, 255, .25);
    border-radius: 10px;
    background: rgba(119, 88, 174, .11);
    color: var(--constructor-accent);
    font-size: 11px;
    font-weight: 650;
    line-height: 1.35;
}

.constructor-role-card {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--constructor-border);
    border-radius: 11px;
    background: rgba(255, 255, 255, .02);
    color: var(--constructor-muted);
    cursor: pointer;
    text-align: left;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.constructor-role-card:hover,
.constructor-role-card:focus-visible,
.constructor-role-card.is-active {
    border-color: var(--constructor-border-strong);
    background: rgba(119, 88, 174, .18);
    color: var(--constructor-text);
}

.constructor-role-icon {
    display: inline-flex;
    flex: 0 0 auto;
    color: var(--constructor-accent);
}

.constructor-role-card span:last-child {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.constructor-role-card strong,
.constructor-role-card small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.constructor-role-card strong {
    color: currentColor;
    font-size: 12px;
}

.constructor-role-card small {
    color: var(--constructor-soft);
    font-size: 10px;
}

.constructor-material-browser {
    padding: 14px;
    border: 1px solid var(--constructor-border);
    border-radius: 14px;
    background: rgba(13, 13, 17, .38);
}

.constructor-material-browser-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--constructor-muted);
    font-size: 11px;
    font-weight: 650;
    line-height: 1.25;
}

.constructor-material-tabs {
    display: flex;
    gap: 6px;
    margin: 12px 0 10px;
    overflow-x: auto;
    scrollbar-width: none;
}

.constructor-material-tabs::-webkit-scrollbar {
    display: none;
}

.constructor-material-tab {
    flex: 0 0 auto;
    padding: 6px 9px;
    border: 1px solid var(--constructor-border);
    border-radius: 999px;
    background: transparent;
    color: var(--constructor-soft);
    cursor: pointer;
    font-size: 10px;
    font-weight: 650;
}

.constructor-material-tab.is-active,
.constructor-material-tab:hover,
.constructor-material-tab:focus-visible {
    border-color: var(--constructor-border-strong);
    background: rgba(143, 110, 204, .2);
    color: var(--constructor-text);
}

.constructor-material-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    max-height: 250px;
    overflow: auto;
    padding-right: 3px;
}

.constructor-material-card {
    position: relative;
    display: grid;
    min-width: 0;
    gap: 5px;
    padding: 0;
    border: 1px solid var(--constructor-border);
    border-radius: 9px;
    background: var(--constructor-surface-2);
    color: var(--constructor-muted);
    cursor: pointer;
    overflow: hidden;
    text-align: left;
    transition: border-color .18s ease, transform .18s ease;
}

.constructor-material-card:hover,
.constructor-material-card:focus-visible,
.constructor-material-card.is-selected {
    border-color: var(--constructor-border-strong);
    transform: translateY(-1px);
}

.constructor-material-card img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #303039;
}

.constructor-material-card-name {
    display: block;
    min-height: 25px;
    padding: 0 6px 6px;
    overflow: hidden;
    font-size: 9px;
    line-height: 1.25;
    text-overflow: ellipsis;
}

.constructor-material-card-roles {
    position: absolute;
    right: 4px;
    bottom: 30px;
    left: 4px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px;
}

.constructor-material-role {
    min-height: 25px;
    padding: 3px 2px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 5px;
    background: rgba(16, 16, 20, .8);
    color: #fff;
    cursor: pointer;
    font-size: 8px;
    font-weight: 700;
}

.constructor-material-role:hover,
.constructor-material-role:focus-visible,
.constructor-material-role.is-selected {
    border-color: var(--constructor-accent);
    background: rgba(80, 54, 126, .88);
}

.constructor-drawer-bottom {
    display: grid;
    gap: 13px;
    margin-top: auto;
}

.constructor-lock-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--constructor-soft);
    font-size: 11px;
    line-height: 1.4;
}

.constructor-lock-note svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    color: var(--constructor-accent);
}

.constructor-generate-button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: var(--constructor-accent);
    color: #211a2a;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.constructor-generate-button:hover:not(:disabled),
.constructor-generate-button:focus-visible:not(:disabled) {
    background: #c8b5ff;
    box-shadow: 0 12px 28px rgba(131, 93, 211, .22);
    transform: translateY(-1px);
}

.constructor-generate-button:disabled {
    background: #3b3743;
    color: #85808e;
    cursor: not-allowed;
}

.constructor-generate-button.is-loading {
    cursor: wait;
}

.constructor-generate-button.is-loading .constructor-button-label {
    opacity: .72;
}

.constructor-button-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border-color: rgba(33, 26, 42, .28);
    border-top-color: currentColor;
}

.constructor-generate-button.is-loading .constructor-button-spinner {
    display: inline-block;
}

.constructor-error {
    min-height: 16px;
    margin: 0;
    color: #f2a4a4;
    font-size: 11px;
    line-height: 1.4;
}

.constructor-mobile-open {
    display: none;
}

.constructor-help-dialog {
    position: fixed;
    z-index: 20;
    inset: 0;
    display: grid;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.constructor-help-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .68);
    backdrop-filter: blur(5px);
}

.constructor-help-card {
    position: relative;
    width: min(100%, 480px);
    padding: 28px;
    border: 1px solid var(--constructor-border-strong);
    border-radius: 20px;
    background: var(--constructor-surface);
    box-shadow: 0 24px 80px rgba(0, 0, 0, .4);
}

.constructor-help-card > .constructor-drawer-close {
    position: absolute;
    top: 16px;
    right: 16px;
}

.constructor-help-card h2 {
    max-width: 360px;
    margin-top: 12px;
    font-size: 25px;
}

.constructor-help-card ol {
    display: grid;
    gap: 12px;
    margin: 24px 0 0;
    padding-left: 20px;
    color: var(--constructor-muted);
    font-size: 14px;
    line-height: 1.5;
}

.constructor-noscript {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background: var(--constructor-bg);
    color: var(--constructor-text);
    text-align: center;
}

@keyframes constructor-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 900px) {
    .constructor-header {
        height: 64px;
        padding: 0 18px;
    }

    .constructor-logo {
        width: 112px;
    }

    .constructor-header-title {
        display: none;
    }

    .constructor-back-link {
        overflow: hidden;
        max-width: 140px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .constructor-layout {
        display: block;
        min-height: calc(100dvh - 64px);
    }

    .constructor-canvas-panel {
        min-height: 0;
        padding: 18px 14px 92px;
    }

    .constructor-canvas-topline {
        margin-bottom: 12px;
    }

    .constructor-canvas-topline h1 {
        font-size: 20px;
    }

    .constructor-stage {
        display: block;
        flex: 0 0 auto;
    }

    .constructor-stage-frame {
        width: 100%;
        border-radius: 14px;
    }

    .constructor-position {
        border-radius: 9px;
        opacity: .35;
    }

    .constructor-position-name {
        display: none;
    }

    .constructor-canvas-footer {
        display: grid;
        gap: 6px;
        margin-top: 12px;
    }

    .constructor-selection-summary {
        text-align: left;
    }

    .constructor-drawer {
        position: fixed;
        z-index: 10;
        right: 0;
        bottom: 0;
        left: 0;
        display: flex;
        max-height: min(76dvh, 650px);
        min-height: 0;
        border-top: 1px solid var(--constructor-border-strong);
        border-left: 0;
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -24px 70px rgba(0, 0, 0, .46);
        transform: translateY(102%);
        transition: transform .24s ease;
    }

    .constructor-drawer.is-open {
        transform: translateY(0);
    }

    .constructor-drawer-head {
        padding: 16px 18px;
    }

    .constructor-drawer-head::before {
        position: absolute;
        top: 7px;
        left: 50%;
        width: 42px;
        height: 4px;
        border-radius: 999px;
        background: rgba(255, 255, 255, .2);
        content: "";
        transform: translateX(-50%);
    }

    .constructor-drawer-head h2 {
        font-size: 19px;
    }

    .constructor-section,
    .constructor-drawer-bottom {
        padding: 17px 18px;
    }

    .constructor-position-chips {
        max-height: 118px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .constructor-position-chip {
        min-height: 44px;
        padding: 8px;
    }

    .constructor-position-chip-materials {
        display: none;
    }

    .constructor-material-grid {
        max-height: 190px;
    }

    .constructor-mobile-open {
        position: fixed;
        z-index: 9;
        right: 14px;
        bottom: max(14px, env(safe-area-inset-bottom));
        left: 14px;
        display: block;
    }

    .constructor-mobile-open-button {
        display: flex;
        width: 100%;
        min-height: 48px;
        align-items: center;
        justify-content: space-between;
        padding: 0 17px;
        border: 1px solid var(--constructor-border-strong);
        border-radius: 13px;
        background: rgba(27, 23, 37, .94);
        box-shadow: 0 12px 32px rgba(0, 0, 0, .3);
        color: var(--constructor-text);
        cursor: pointer;
        font-size: 13px;
        font-weight: 700;
    }
}

@media (max-width: 520px) {
    .constructor-header {
        gap: 10px;
        padding: 0 12px;
    }

    .constructor-logo {
        width: 98px;
    }

    .constructor-header-actions {
        gap: 8px;
    }

    .constructor-back-link {
        max-width: 112px;
        font-size: 11px;
    }

    .constructor-credit {
        min-width: 29px;
        height: 25px;
        padding: 0 7px;
        font-size: 11px;
    }

    .constructor-canvas-panel {
        padding-right: 10px;
        padding-left: 10px;
    }

    .constructor-help {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .constructor-role-grid {
        gap: 6px;
    }

    .constructor-role-card {
        padding: 8px;
    }

    .constructor-material-browser {
        padding: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
