/*
 * FGENIO_JOURNAL_SETTINGS_MODAL_V2
 */

.journal-owner-profile-settings-host
[data-ai-chart-journal-settings-layer] {
    position: fixed;
    inset: 0;
    z-index: 1085;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.journal-owner-profile-settings-host
[data-ai-chart-journal-settings-layer].is-open {
    display: flex;
}

.journal-owner-profile-settings-host
.fgenio-journal-settings-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 13, 28, .54);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.journal-owner-profile-settings-host
.fgenio-journal-settings-panel {
    position: relative;
    z-index: 1;
    width: min(680px, calc(100vw - 48px));
    max-height: min(720px, calc(100vh - 48px));
    display: flex;
    flex-direction: column;
    overflow: hidden;

    border:
        1px solid
        var(--vz-border-color);

    border-radius: 16px;

    background:
        var(--vz-body-bg);

    box-shadow:
        0 24px 70px
        rgba(0, 0, 0, .32);
}


/* =========================
   Header
   ========================= */

.journal-owner-profile-settings-host
.fgenio-journal-settings-header {
    min-height: 60px;
    padding: 12px 16px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;

    flex: 0 0 auto;

    border-bottom:
        1px solid
        var(--vz-border-color);
}

.journal-owner-profile-settings-host
.fgenio-journal-settings-title {
    min-width: 0;

    display: flex;
    align-items: center;
    gap: 10px;
}

.journal-owner-profile-settings-host
.fgenio-journal-settings-title-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        rgba(
            var(--vz-warning-rgb),
            .10
        );

    color: #d4af37;
}

.journal-owner-profile-settings-host
.fgenio-journal-settings-title-icon i {
    font-size: 20px;
    line-height: 1;
}

.journal-owner-profile-settings-host
.fgenio-journal-settings-title h5 {
    margin: 0 !important;

    font-size: 15px !important;
    line-height: 1.35 !important;
    font-weight: 600 !important;
}

.journal-owner-profile-settings-host
.fgenio-journal-settings-title .small {
    margin-top: 2px;

    font-size: 11px !important;
    line-height: 1.35 !important;
}

.journal-owner-profile-settings-host
.fgenio-journal-settings-close {
    width: 34px;
    height: 34px;
    min-width: 34px;

    padding: 0;
    border-radius: 50%;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border:
        1px solid
        var(--vz-border-color);

    background:
        var(--vz-secondary-bg);

    color:
        var(--vz-body-color);
}

.journal-owner-profile-settings-host
.fgenio-journal-settings-close i {
    font-size: 19px;
    line-height: 1;
}


/* =========================
   Body
   ========================= */

.journal-owner-profile-settings-host
.fgenio-journal-settings-body {
    flex: 1 1 auto;
    min-height: 0;

    overflow-y: auto;

    padding: 14px;
}

.journal-owner-profile-settings-host
.fgenio-journal-settings-accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


/* =========================
   Cards
   ========================= */

.journal-owner-profile-settings-host
.fgenio-journal-settings-card {
    margin: 0;

    overflow: hidden;

    border:
        1px solid
        var(--vz-border-color)
        !important;

    border-radius:
        12px
        !important;

    background:
        var(--vz-card-bg);

    box-shadow: none;
}

.journal-owner-profile-settings-host
.fgenio-journal-settings-card
.accordion-header {
    margin: 0;
    padding: 0;
}

.journal-owner-profile-settings-host
.fgenio-journal-settings-card-button {
    width: 100%;
    min-height: 54px;

    margin: 0;
    padding: 11px 13px;

    border: 0;
    outline: 0;

    background: transparent;

    color:
        var(--vz-body-color);

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    text-align: start;
}

.journal-owner-profile-settings-host
.fgenio-journal-settings-card-button:hover {
    background:
        rgba(
            var(--vz-primary-rgb),
            .035
        );
}

.journal-owner-profile-settings-host
.fgenio-journal-settings-card-heading {
    min-width: 0;

    display: flex;
    align-items: center;
    gap: 10px;
}

.journal-owner-profile-settings-host
.fgenio-journal-settings-card-heading-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background:
        rgba(
            var(--vz-primary-rgb),
            .08
        );

    color:
        var(--vz-primary);
}

.journal-owner-profile-settings-host
.fgenio-journal-settings-card-heading-icon i {
    font-size: 17px;
    line-height: 1;
}

.journal-owner-profile-settings-host
.fgenio-journal-settings-card-heading
.fw-semibold {
    font-size: 13px !important;
    line-height: 1.35 !important;
    font-weight: 600 !important;
}

.journal-owner-profile-settings-host
.fgenio-journal-settings-card-heading
.small {
    font-size: 11px !important;
    line-height: 1.3 !important;
}

.journal-owner-profile-settings-host
.fgenio-journal-settings-card-chevron {
    flex: 0 0 auto;

    font-size: 18px;
    line-height: 1;

    color:
        var(--vz-secondary-color);

    transition:
        transform .2s ease;
}

.journal-owner-profile-settings-host
.fgenio-journal-settings-card-button[aria-expanded="true"]
.fgenio-journal-settings-card-chevron {
    transform: rotate(180deg);
}

.journal-owner-profile-settings-host
.fgenio-journal-settings-card-body {
    padding: 4px 13px 13px !important;

    font-size: 12px;
}


/* =========================
   Existing Trading Profile
   ========================= */

.journal-owner-profile-settings-host
[data-ai-chart-trading-profile] {
    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;

    background: transparent !important;
}

.journal-owner-profile-settings-host
[data-ai-chart-trading-profile]
.form-label {
    font-size: 11px !important;
    margin-bottom: 4px !important;
}

.journal-owner-profile-settings-host
[data-ai-chart-trading-profile]
.form-control,
.journal-owner-profile-settings-host
[data-ai-chart-trading-profile]
.form-select,
.journal-owner-profile-settings-host
[data-ai-chart-trading-profile]
.input-group-text {
    min-height: 34px;

    font-size: 12px !important;
}

.journal-owner-profile-settings-host
[data-ai-chart-trading-profile]
.btn-sm {
    font-size: 11px !important;
}

.journal-owner-profile-settings-host
[data-ai-chart-trading-profile]
.small {
    font-size: 11px !important;
}


/* =========================
   Mobile fullscreen
   ========================= */

@media (max-width: 767.98px) {

    .journal-owner-profile-settings-host
    [data-ai-chart-journal-settings-layer] {
        padding: 0;
        align-items: stretch;
    }

    .journal-owner-profile-settings-host
    .fgenio-journal-settings-panel {
        width: 100vw;
        max-width: none;

        height: 100dvh;
        max-height: 100dvh;

        border: 0;
        border-radius: 0;
    }

    .journal-owner-profile-settings-host
    .fgenio-journal-settings-header {
        min-height: 58px;

        padding:
            calc(
                10px
                + env(safe-area-inset-top)
            )
            14px
            10px;
    }

    .journal-owner-profile-settings-host
    .fgenio-journal-settings-body {
        padding:
            12px
            12px
            calc(
                12px
                + env(safe-area-inset-bottom)
            );
    }

    .journal-owner-profile-settings-host
    .fgenio-journal-settings-card {
        border-radius:
            11px
            !important;
    }
}

/* FGENIO_JOURNAL_SYMBOL_PROFILE_CARDS_V1 */

.fgenio-journal-profile-selection {
    display: block;
}

.fgenio-journal-profile-selection .form-select {
    min-height: 42px;
    border-radius: 10px;
}

.fgenio-journal-profile-selection
[data-journal-profile-status] {
    min-height: 18px;
}

.fgenio-journal-settings-card
.fgenio-journal-settings-card-heading-icon {
    flex: 0 0 auto;
}



/*
 * FGENIO_JOURNAL_PROFILE_SETTINGS_SCOPE_V4
 *
 * Canonical Live Chart Profile Settings visuals,
 * hosted inside the Journal right rail.
 */

.journal-owner-profile-settings-host {
    position: absolute;
    inset: 0;
    z-index: 95;

    width: 100%;
    height: 100%;

    pointer-events: none;
}


/*
 * Closed means completely absent visually and interactively.
 */
.journal-owner-profile-settings-host
[data-ai-chart-journal-settings-layer] {
    display: none !important;

    position: absolute !important;
    inset: 0 !important;

    width: 100% !important;
    height: 100% !important;

    padding: 0 !important;

    pointer-events: none !important;
}


/*
 * Explicitly opened by Journal bridge.
 */
.journal-owner-profile-settings-host
[data-ai-chart-journal-settings-layer].is-open {
    display: flex !important;

    align-items: stretch !important;
    justify-content: stretch !important;

    pointer-events: auto !important;
}


/*
 * Panel fills the right Journal column exactly.
 */
.journal-owner-profile-settings-host
.fgenio-journal-settings-panel {
    position: relative !important;
    z-index: 1;

    width: 100% !important;
    max-width: none !important;

    height: 100% !important;
    max-height: none !important;

    margin: 0 !important;

    border-radius: 0 !important;

    display: flex !important;
    flex-direction: column !important;

    overflow: hidden !important;
}


/*
 * Keep modal backdrop constrained to Journal right rail.
 */
.journal-owner-profile-settings-host
.fgenio-journal-settings-backdrop {
    position: absolute !important;
    inset: 0 !important;
}


/*
 * Fixed header + internal scroll body.
 */
.journal-owner-profile-settings-host
.fgenio-journal-settings-header {
    flex: 0 0 auto !important;
}

.journal-owner-profile-settings-host
.fgenio-journal-settings-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
}


/*
 * Header text trigger.
 */
.journal-owner-profile-setting-trigger {
    font-size: .76rem;
    font-weight: 400;
    line-height: 1.2;
    white-space: nowrap;
}

.journal-owner-profile-setting-trigger:hover,
.journal-owner-profile-setting-trigger:focus {
    color: var(--vz-body-color) !important;
}


/*
 * Host itself receives interaction only while opened.
 */
.journal-owner-profile-settings-host.is-open-host {
    pointer-events: auto;
}

