.rebuildPreview {
    padding:
        3px 0
        20px;
}

.rebuildPreviewHead {
    padding:
        4px 8px
        17px;
}

.rebuildPreviewEyebrow {
    color: var(--yellow);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.rebuildPreviewTitle {
    margin: 6px 0 0;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: -.03em;
}

.rebuildPreviewSub {
    margin-top: 7px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.rebuildChoice {
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 10px;
}

.rebuildChoice.recommended {
    border-color:
        rgba(40,199,250,.38);

    background:
        linear-gradient(
            145deg,
            rgba(40,199,250,.075),
            transparent
        ),
        var(--surface);
}

.rebuildChoiceTop {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
}

.rebuildChoiceName {
    font-size: 14px;
    font-weight: 850;
}

.rebuildChoiceDesc {
    color: var(--muted);
    font-size: 11px;
    margin-top: 4px;
}

.rebuildChoicePrice {
    font-size: 19px;
    font-weight: 900;
    white-space: nowrap;
    letter-spacing: -.03em;
}

.rebuildChoiceMeta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 13px;
}

.rebuildChoiceChip {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 9px;
    color: var(--muted);
    font-size: 10px;
}

.rebuildChoiceChip.good {
    color: var(--green);
    border-color:
        rgba(99,230,165,.2);
}

.rebuildChoiceChip.bad {
    color: var(--yellow);
    border-color:
        rgba(255,200,87,.2);
}

.rebuildChanges {
    margin-top: 12px;
    padding-top: 11px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
}

.rebuildChanges strong {
    color: var(--text);
}

.chooseRebuild {
    margin-top: 13px;
    width: 100%;
    border: 0;
    border-radius: 11px;
    padding: 11px 13px;
    font-weight: 850;
    font-size: 12px;
    cursor: pointer;
    color: #061015;
    background: var(--cyan);
}

.rebuildChoice:not(.recommended)
.chooseRebuild {
    color: var(--text);
    background: var(--surface3);
    border: 1px solid var(--line2);
}

.rebuildBack {
    margin-bottom: 12px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--muted);
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 11px;
    cursor: pointer;
}

/* ==========================================================
   V0.4.1 — rebuild component diff
   ========================================================== */

.rebuildChangesTitle {
    color: var(--text);
    font-weight: 800;
    font-size: 11px;
    margin-bottom: 9px;
}

.componentChangeRow {
    display: grid;
    grid-template-columns:
        52px
        minmax(0, 1fr)
        auto;
    gap: 9px;
    align-items: center;
    padding: 8px 0;
    border-top:
        1px solid
        rgba(255,255,255,.045);
}

.componentChangeRow:first-of-type {
    border-top: 0;
}

.componentChangeType {
    color: var(--muted);
    font-size: 9px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.componentChangeNames {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    line-height: 1.35;
}

.componentChangeOld {
    min-width: 0;
    color: #707987;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration:
        line-through;
    text-decoration-color:
        rgba(255,255,255,.18);
}

.componentChangeArrow {
    flex: none;
    color: #4f5966;
}

.componentChangeNew {
    min-width: 0;
    color: #dce4ec;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.componentChangeDelta {
    white-space: nowrap;
    font-size: 10px;
    font-weight: 800;
    color: var(--muted);
}

.componentChangeDelta.good {
    color: var(--green);
}

.componentChangeDelta.bad {
    color: var(--yellow);
}

.componentChangeEmpty {
    color: var(--muted);
    font-size: 10px;
}


@media(max-width: 520px) {

    .componentChangeRow {
        grid-template-columns:
            42px
            minmax(0, 1fr);
    }

    .componentChangeDelta {
        grid-column: 2;
    }

    .componentChangeNames {
        display: grid;
        grid-template-columns:
            minmax(0, 1fr);
        gap: 3px;
    }

    .componentChangeArrow {
        display: none;
    }
}
