.setup-guide {
    position: fixed;
    right: 24px;
    bottom: 22px;
    z-index: 1060;
    width: min(390px, calc(100vw - 36px));
    color: #334155;
}

.user-menu-trigger { color: inherit; background: transparent; }
.user-menu-trigger .user-menu-chevron { margin-inline: 2px 3px; color: #94a3b8; font-size: 9px; transition: transform .2s ease; }
.user-menu-trigger[aria-expanded="true"] .user-menu-chevron { transform: rotate(180deg); }
.user-dropdown-menu { min-width: 235px; }
.user-dropdown-menu .dropdown-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; font-size: 11.5px; }
.user-dropdown-menu .dropdown-item > i { width: 18px; color: var(--brand-primary); text-align: center; }
.user-dropdown-menu .dropdown-item > span { display: flex; flex-direction: column; }
.user-dropdown-menu .dropdown-item strong { color: #334155; font-size: 11.5px; }
.user-dropdown-menu .dropdown-item small { color: #94a3b8; font-size: 9px; }
.user-dropdown-menu form { margin: 0; }

.setup-guide-launcher,
.setup-guide-panel {
    overflow: hidden;
    border: 1px solid #dfe5ed;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .16);
}

.setup-guide-launcher { display: flex; align-items: stretch; }
.setup-guide-expand {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 11px;
    min-width: 0;
    padding: 11px 13px;
    color: #334155;
    border: 0;
    background: #fff;
    text-align: left;
}
.setup-guide-expand:hover { background: color-mix(in srgb, var(--brand-primary) 4%, white); }
.setup-guide-expand > span:nth-child(2) { display: flex; flex: 1; min-width: 0; flex-direction: column; }
.setup-guide-expand strong { font-size: 12.5px; font-weight: 750; }
.setup-guide-expand small { color: #8490a2; font-size: 9.5px; }
.setup-guide-expand > .fa-chevron-up { color: var(--brand-primary); font-size: 10px; }
.setup-guide-launcher-icon {
    display: grid;
    flex: 0 0 34px;
    place-items: center;
    width: 34px;
    height: 34px;
    color: var(--brand-primary);
    border-radius: 10px;
    background: color-mix(in srgb, var(--brand-primary) 9%, white);
}
.setup-guide-dismiss,
.setup-guide-collapse,
.setup-guide-tour-close {
    display: grid;
    place-items: center;
    color: #94a3b8;
    border: 0;
    background: transparent;
}
.setup-guide-dismiss { width: 43px; border-left: 1px solid #edf0f4; }
.setup-guide-dismiss:hover,
.setup-guide-collapse:hover,
.setup-guide-tour-close:hover { color: #b42318; background: #fff1f2; }

.setup-guide-panel { max-height: min(650px, calc(100vh - 40px)); }
.setup-guide-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 17px 17px 12px; }
.setup-guide-header h2 { margin: 2px 0 3px; color: #1e293b; font-size: 18px; font-weight: 760; }
.setup-guide-header p { margin: 0; color: #7c899b; font-size: 10.5px; }
.setup-guide-collapse { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 9px; }
.setup-guide-progress-row { padding: 0 17px 13px; color: #718096; font-size: 9.5px; font-weight: 650; }
.setup-guide-progress { height: 5px; margin-top: 7px; overflow: hidden; border-radius: 999px; background: #edf1f5; }
.setup-guide-progress > span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--brand-primary); transition: width .25s ease; }
.setup-guide-sections { display: grid; gap: 7px; max-height: 390px; padding: 11px 13px; overflow-y: auto; border-block: 1px solid #edf0f4; background: #f8fafc; }
.setup-guide-section { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid #e4e9ef; border-radius: 11px; background: #fff; }
.setup-guide-section-icon { display: grid; flex: 0 0 34px; place-items: center; width: 34px; height: 34px; color: var(--brand-primary); border-radius: 9px; background: color-mix(in srgb, var(--brand-primary) 8%, white); }
.setup-guide-section-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; }
.setup-guide-section-copy strong { color: #334155; font-size: 11.5px; }
.setup-guide-section-copy small { color: #8a96a7; font-size: 9px; }
.setup-guide-section.done .setup-guide-section-icon { color: #047857; background: #d1fae5; }
.setup-guide-section .btn { flex: 0 0 auto; padding-inline: 9px; font-size: 9.5px; }
.setup-guide-footer { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 12px 14px; }
.setup-guide-footer .btn-link { color: #7c899b; font-size: 9.5px; text-decoration: none; }
.setup-guide-footer .btn-link:hover { color: #b42318; }

.setup-guide-overlay { position: fixed; inset: 0; z-index: 1070; background: rgba(15, 23, 42, .48); }
.sidebar.setup-guide-layer { z-index: 1075; }
.content-area.setup-guide-interactive-layer { position: relative; z-index: 1075; }
.setup-guide-focus {
    position: relative !important;
    z-index: 1080 !important;
    border-radius: 10px;
    background-color: #fff !important;
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand-primary) 45%, white), 0 12px 35px rgba(15, 23, 42, .3) !important;
}
.setup-guide-popover {
    position: fixed;
    z-index: 1090;
    width: min(350px, calc(100vw - 28px));
    padding: 17px;
    border: 1px solid color-mix(in srgb, var(--brand-primary) 22%, #dfe5ed);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 22px 55px rgba(15, 23, 42, .25);
}
.setup-guide-step-count { color: #94a3b8; font-size: 9px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.setup-guide-tour-close { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 8px; }
.setup-guide-step-section { display: inline-block; margin-top: 13px; color: var(--brand-primary); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.setup-guide-popover h2 { margin: 4px 30px 6px 0; color: #1e293b; font-size: 17px; font-weight: 760; }
.setup-guide-popover p { margin: 0; color: #64748b; font-size: 11.5px; line-height: 1.6; }
.setup-guide-step-hint { margin-top: 10px; padding: 8px 10px; color: #53637b; border-radius: 9px; background: #f1f5f9; font-size: 9.5px; font-weight: 650; }
.setup-guide-choice { display: grid; gap: 8px; margin-top: 13px; }
.setup-guide-choice[hidden] { display: none; }
.setup-guide-choice-option { display: flex; align-items: center; gap: 10px; padding: 10px; color: #334155; border: 1px solid #dfe5ed; border-radius: 10px; background: #fff; text-align: left; }
.setup-guide-choice-option:hover { color: var(--brand-primary); border-color: color-mix(in srgb, var(--brand-primary) 35%, #dfe5ed); background: color-mix(in srgb, var(--brand-primary) 5%, white); }
.setup-guide-choice-option > i { display: grid; flex: 0 0 32px; place-items: center; width: 32px; height: 32px; color: var(--brand-primary); border-radius: 9px; background: color-mix(in srgb, var(--brand-primary) 9%, white); }
.setup-guide-choice-option > span { display: flex; flex-direction: column; }
.setup-guide-choice-option strong { font-size: 11px; }
.setup-guide-choice-option small { margin-top: 2px; color: #8490a2; font-size: 9px; }
.setup-guide-tour-actions { display: flex; justify-content: space-between; gap: 8px; margin-top: 16px; padding-top: 13px; border-top: 1px solid #edf0f4; }

@media (max-width: 575.98px) {
    .setup-guide { right: 14px; bottom: 14px; width: calc(100vw - 28px); }
    .setup-guide-panel { max-height: calc(100vh - 28px); }
    .setup-guide-sections { max-height: calc(100vh - 260px); }
    .setup-guide-popover { right: 14px !important; bottom: 14px !important; left: 14px !important; top: auto !important; width: auto; }
}
