.configuration-assistant-dialog-wrapper .rz-dialog,
.configuration-assistant-dialog.rz-dialog,
.configuration-assistant-dialog {
    width: min(1250px, calc(100vw - 32px)) !important;
    max-width: min(1250px, calc(100vw - 32px)) !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.24), 0 4px 14px rgba(15, 23, 42, 0.10) !important;
}

.configuration-assistant-dialog-wrapper .rz-dialog {
    margin: auto !important;
}

.rz-dialog-wrapper.configuration-assistant-dialog-wrapper,
.configuration-assistant-dialog-wrapper .rz-dialog-wrapper {
    padding: 16px !important;
}

.configuration-assistant-dialog-wrapper .rz-dialog-titlebar,
.configuration-assistant-dialog .rz-dialog-titlebar {
    display: none !important;
}

.configuration-assistant-dialog-content,
.configuration-assistant-dialog-wrapper .rz-dialog-content,
.configuration-assistant-dialog .rz-dialog-content {
    padding: 0 !important;
    overflow: hidden !important;
    background: #ffffff !important;
}

.assistant-shell {
    --assistant-navy: #080b50;
    --assistant-primary: #25b99a;
    --assistant-border: #e4e7ec;
    --assistant-text: #101828;
    --assistant-muted: #344054;

    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
    color: var(--assistant-text);
}

.assistant-header {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    background: var(--assistant-navy) !important;
    color: #ffffff !important;
}

.assistant-header-title {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #ffffff !important;
    font-size: 18px !important;
    font-weight: 700;
}

.assistant-header-icon {
    margin: 0;
    color: #ffffff !important;
    font-size: 20px !important;
}

.assistant-close-button.rz-button {
    width: 36px;
    height: 36px;
    min-width: 36px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

.assistant-close-button.rz-button:hover {
    background: rgba(255, 255, 255, 0.12);
}

.assistant-content {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 34px 40px 8px;
    background: #ffffff;
}

.assistant-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 30px;
    align-items: center;
    margin-bottom: 28px;
}

.assistant-hero-content h1 {
    margin: 0 0 8px;
    color: var(--assistant-navy) !important;
    font-size: 30px !important;
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: 0;
}

.assistant-hero-content > p {
    margin: 0;
    color: var(--assistant-muted) !important;
    font-size: 15px !important;
    line-height: 1.5;
}

.assistant-progress {
    max-width: 835px;
    margin-top: 28px;
}

.assistant-progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 8px;
    color: var(--assistant-navy);
    font-size: 14px;
    font-weight: 600;
}

.assistant-progress-header > div {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}

.assistant-progress-header strong {
    color: var(--assistant-primary);
    font-size: 18px;
    font-weight: 800;
}

.assistant-progress-percentage {
    font-weight: 700;
}

.assistant-progress-bar.rz-progressbar {
    width: 100%;
    height: 10px;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    background: #eef2f6;
}

.assistant-progress-bar .rz-progressbar-value {
    border-radius: 999px;
    background: linear-gradient(90deg, var(--assistant-primary), #2dd4bf);
}

.assistant-progress-bar .rz-progressbar-label {
    display: none;
}

.assistant-hero-illustration {
    display: flex;
    align-items: center;
    justify-content: center;
}

.assistant-hero-image {
    width: 250px !important;
    max-width: 100% !important;
    height: 145px !important;
    max-height: 145px !important;
    object-fit: contain !important;
}

.assistant-hero-image img {
    width: 250px !important;
    max-width: 100% !important;
    height: 145px !important;
    max-height: 145px !important;
    object-fit: contain !important;
}

.assistant-section {
    padding: 20px 24px;
    border: 1px solid var(--assistant-border);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03), 0 4px 12px rgba(16, 24, 40, 0.04);
}

.assistant-section + .assistant-section {
    margin-top: 12px;
}

.assistant-section-secondary {
    border-color: #d7e8ff;
    background: linear-gradient(180deg, rgba(238, 245, 255, 0.18), #ffffff 72px);
}

.assistant-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.assistant-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.assistant-section-title h2 {
    margin: 0;
    color: var(--assistant-navy) !important;
    font-size: 17px !important;
    font-weight: 800;
    line-height: 1.3;
}

.assistant-section-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--assistant-primary);
}

.assistant-section-secondary .assistant-section-dot {
    background: #2f80ed;
}

.assistant-section-heading p {
    margin: 5px 0 0 19px;
    color: var(--assistant-muted) !important;
    font-size: 13px;
    line-height: 1.45;
}

.assistant-section-counter {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 13px;
    border-radius: 999px;
    background: #eaf9f1;
    color: #15945f;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.assistant-section-secondary .assistant-section-counter {
    background: #eef5ff;
    color: #155eef;
}

.assistant-grid {
    display: grid;
    gap: 14px;
}

.assistant-grid-essential {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.assistant-grid-secondary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.assistant-permanent-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.assistant-help-card {
    min-width: 0;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 24px;
    border: 1px solid #cfe1ff;
    border-radius: 12px;
    background: linear-gradient(135deg, #f7fbff, #eef5ff);
}

.assistant-help-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ffffff;
    color: var(--assistant-navy);
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.07);
}

.assistant-help-card h3 {
    margin: 2px 0 7px;
    color: var(--assistant-navy) !important;
    font-size: 16px;
    font-weight: 800;
}

.assistant-help-card p {
    margin: 0 0 15px;
    color: var(--assistant-muted) !important;
    font-size: 13px;
    line-height: 1.45;
}

.assistant-help-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #155eef !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.assistant-theme-card {
    border-color: #b8e8dd;
    background: linear-gradient(135deg, #f6fffc, #eaf9f5);
}

.assistant-theme-icon {
    color: #08745f;
}

.assistant-theme-link {
    color: #08745f !important;
}

.assistant-footer {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 40px;
    border-top: 1px solid var(--assistant-border);
    background: #ffffff;
}

.assistant-footer-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.assistant-footer-close.rz-button,
.assistant-footer-primary {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.assistant-footer-close.rz-button {
    border: 0;
    background: transparent;
    color: var(--assistant-navy) !important;
}

.assistant-footer-primary {
    min-width: 230px;
    border: 1px solid var(--assistant-navy);
    background: var(--assistant-navy);
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(8, 11, 80, 0.18);
}

@media (max-width: 1100px) {
    .assistant-content {
        padding: 26px 24px 22px;
    }

    .assistant-grid-essential,
    .assistant-grid-secondary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 820px) {
    .assistant-hero {
        grid-template-columns: 1fr;
    }

    .assistant-hero-illustration {
        display: none;
    }

    .assistant-section-header {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 640px) {
    .assistant-header {
        padding: 0 14px;
    }

    .assistant-content {
        padding: 20px 12px 16px;
    }

    .assistant-hero-content h1 {
        font-size: 22px;
    }

    .assistant-section {
        padding: 14px;
    }

    .assistant-grid-essential,
    .assistant-grid-secondary,
    .assistant-permanent-actions {
        grid-template-columns: 1fr;
    }

    .assistant-footer {
        flex-direction: column;
        align-items: stretch;
        min-height: auto;
        padding: 12px;
    }

    .assistant-footer-spacer {
        display: none;
    }

    .assistant-footer-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .assistant-footer-close.rz-button,
    .assistant-footer-primary {
        width: 100%;
    }
}
