.builder-page {
    padding: 42px 0 72px;
}

.builder-page .container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.builder-intro {
    max-width: 760px;
    margin-bottom: 28px;
}

.builder-intro h1 {
    margin: 8px 0 14px;
    font-size: clamp(40px, 7vw, 72px);
    line-height: .98;
    letter-spacing: -.045em;
}

.builder-intro p {
    margin: 0;
    max-width: 680px;
    color: #667085;
    font-size: 18px;
    line-height: 1.65;
}

.builder-toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin: 26px 0 18px;
    padding: 15px 16px;
    border: 1px solid #e4e7ec;
    border-radius: 16px;
    background: #f8faff;
}

.team-progress {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.team-progress strong {
    font-size: 24px;
    color: #101828;
}

.team-progress span {
    color: #667085;
    font-size: 14px;
}

.builder-toolbar button {
    appearance: none;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    background: #fff;
    padding: 10px 14px;
    color: #344054;
    font-weight: 750;
}

.builder-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, .9fr);
    gap: 22px;
    align-items: start;
}

.builder-slot-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.builder-slot {
    border: 1px solid #e4e7ec;
    border-radius: 18px;
    padding: 16px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(16, 24, 40, .04);
}

.builder-slot[data-active="true"] {
    border-color: #9db8ff;
    box-shadow: 0 0 0 3px rgba(47, 111, 237, .08);
}

.builder-slot-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.slot-number,
.slot-status,
.editor-autosave {
    color: #98a2b3;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.slot-select {
    width: 100%;
    min-height: 96px;
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    text-align: left;
    cursor: pointer;
}

.slot-select strong {
    display: block;
    color: #101828;
    font-size: 22px;
    line-height: 1.15;
}

.slot-select span {
    display: block;
    margin-top: 9px;
    color: #667085;
    font-size: 14px;
}

.slot-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.slot-actions button {
    min-width: 40px;
    appearance: none;
    border: 1px solid #e4e7ec;
    border-radius: 9px;
    background: #f9fafb;
    padding: 8px 10px;
    color: #475467;
    font-weight: 750;
}

.slot-actions button:last-child {
    margin-left: auto;
}

.slot-actions button:disabled {
    opacity: .38;
}

.builder-editor {
    position: sticky;
    top: 18px;
    border: 1px solid #e4e7ec;
    border-radius: 20px;
    background: #fff;
    padding: 22px;
    box-shadow: 0 18px 46px rgba(16, 24, 40, .06);
}

.editor-heading {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.editor-heading h2 {
    margin: 5px 0 0;
    color: #101828;
    font-size: 28px;
    line-height: 1.1;
}

.builder-form-grid {
    display: grid;
    gap: 15px;
}

.builder-form-grid label {
    display: grid;
    gap: 7px;
}

.builder-form-grid label > span {
    color: #344054;
    font-size: 13px;
    font-weight: 800;
}

.builder-form-grid input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d0d5dd;
    border-radius: 11px;
    background: #fff;
    padding: 12px 13px;
    color: #101828;
    font: inherit;
    outline: none;
}

.builder-form-grid input:focus {
    border-color: #6f93f4;
    box-shadow: 0 0 0 3px rgba(47, 111, 237, .10);
}

.builder-editor-note {
    margin: 20px 0 0;
    padding-top: 16px;
    border-top: 1px solid #eef1f5;
    color: #7b8494;
    font-size: 13px;
    line-height: 1.6;
}

.builder-save-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    color: #667085;
    font-size: 13px;
}

@media (max-width: 760px) {
    .builder-page {
        padding-top: 30px;
    }

    .builder-page .container {
        width: min(100% - 24px, 680px);
    }

    .builder-intro h1 {
        font-size: 44px;
    }

    .builder-intro p {
        font-size: 16px;
    }

    .builder-layout {
        grid-template-columns: 1fr;
    }

    .builder-slot-list {
        grid-template-columns: 1fr 1fr;
    }

    .builder-editor {
        position: static;
    }
}

@media (max-width: 470px) {
    .builder-slot-list {
        grid-template-columns: 1fr;
    }

    .builder-toolbar {
        align-items: flex-start;
    }
}

/* M1.1 order UX repair */
.slot-actions .move-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 76px;
}

.slot-actions .move-button span:first-child {
    font-size: 17px;
    line-height: 1;
}

.slot-actions .move-button span:last-child {
    font-size: 12px;
    font-weight: 800;
}

@media (max-width: 470px) {
    .slot-actions {
        display: grid;
        grid-template-columns: auto auto 1fr;
        align-items: center;
    }

    .slot-actions .move-button {
        min-width: 82px;
        min-height: 44px;
    }

    .slot-actions button:last-child {
        margin-left: 0;
        justify-self: end;
    }
}
