/* ============================================================
   BUSINESS SITE INTELLIGENCE
   FRONTEND STYLES
   Version 0.7
   ============================================================ */


:root {

    --bg:
        #f4f6f8;

    --card:
        #ffffff;

    --text:
        #1f2933;

    --muted:
        #6b7280;

    --border:
        #d9dee5;

    --accent:
        #1f5f8b;

    --accent-dark:
        #174a6c;

    --success:
        #2f855a;

    --warning:
        #b7791f;

    --danger:
        #b83232;

    --unknown:
        #7b8794;

    --specialized-bg:
        #edf8f2;

    --specialized-border:
        #a8d5bc;

    --general-bg:
        #fff8e8;

    --general-border:
        #e4c67a;

    --extended-bg:
        #eef6fb;

    --extended-border:
        #b8d8ea;

    --shadow:
        0 8px 24px rgba(
            0,
            0,
            0,
            0.08
        );
}


/* ============================================================
   BASIC PAGE
   ============================================================ */


* {
    box-sizing:
        border-box;
}


body {

    margin:
        0;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background:
        var(--bg);

    color:
        var(--text);
}


main {

    width:
        min(
            1100px,
            calc(
                100% - 32px
            )
        );

    margin:
        0 auto;

    padding:
        40px 0 60px 0;
}


/* ============================================================
   HEADER
   ============================================================ */


header {

    margin-bottom:
        28px;
}


header h1 {

    margin:
        0 0 8px 0;

    font-size:
        36px;

    line-height:
        1.1;

    color:
        var(--accent-dark);
}


header p {

    margin:
        0;

    max-width:
        760px;

    color:
        var(--muted);

    font-size:
        17px;

    line-height:
        1.5;
}


/* ============================================================
   SECTIONS / CARDS
   ============================================================ */


section {

    background:
        var(--card);

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

    border-radius:
        14px;

    box-shadow:
        var(--shadow);

    padding:
        26px;

    margin-bottom:
        24px;
}


section h2 {

    margin:
        0 0 22px 0;

    font-size:
        24px;

    color:
        var(--text);
}


section h3 {

    margin:
        0 0 12px 0;

    font-size:
        18px;

    color:
        var(--accent-dark);
}


/* ============================================================
   FORM
   ============================================================ */


form {

    display:
        grid;

    grid-template-columns:
        repeat(
            2,
            minmax(
                0,
                1fr
            )
        );

    gap:
        18px;
}


form > div {

    display:
        flex;

    flex-direction:
        column;

    gap:
        7px;
}


label {

    font-weight:
        600;

    font-size:
        14px;

    color:
        var(--text);
}


input,
select {

    width:
        100%;

    min-height:
        46px;

    padding:
        10px 12px;

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

    border-radius:
        8px;

    background:
        #ffffff;

    color:
        var(--text);

    font-size:
        15px;

    outline:
        none;
}


input:focus,
select:focus {

    border-color:
        var(--accent);

    box-shadow:
        0 0 0 3px
        rgba(
            31,
            95,
            139,
            0.12
        );
}


button {

    grid-column:
        1 / -1;

    min-height:
        50px;

    border:
        none;

    border-radius:
        9px;

    background:
        var(--accent);

    color:
        white;

    font-size:
        16px;

    font-weight:
        700;

    cursor:
        pointer;

    transition:
        background 0.2s ease,
        transform 0.1s ease;
}


button:hover {

    background:
        var(--accent-dark);
}


button:active {

    transform:
        translateY(
            1px
        );
}


button:disabled {

    opacity:
        0.65;

    cursor:
        wait;
}


/* ============================================================
   PROFILE STATUS
   ============================================================ */


.profile-status {

    display:
        flex;

    align-items:
        flex-start;

    gap:
        10px;

    margin-top:
        3px;

    padding:
        10px 12px;

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

    border-radius:
        8px;

    background:
        #f8fafc;
}


.profile-status.specialized {

    background:
        var(--specialized-bg);

    border-color:
        var(--specialized-border);
}


.profile-status.general {

    background:
        var(--general-bg);

    border-color:
        var(--general-border);
}


.profile-status-badge {

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    flex:
        0 0 auto;

    min-width:
        28px;

    height:
        28px;

    padding:
        0 8px;

    border-radius:
        999px;

    font-size:
        12px;

    font-weight:
        800;

    background:
        var(--unknown);

    color:
        white;
}


.profile-status.specialized
.profile-status-badge {

    background:
        var(--success);
}


.profile-status.general
.profile-status-badge {

    background:
        var(--warning);
}


.profile-status-title {

    font-size:
        13px;

    font-weight:
        800;
}


.profile-status-message {

    margin-top:
        2px;

    font-size:
        12px;

    line-height:
        1.4;

    color:
        var(--muted);
}


.result-profile-status {

    display:
        inline-block;

    margin-top:
        8px;

    padding:
        6px 9px;

    border-radius:
        999px;

    font-size:
        11px;

    font-weight:
        800;

    text-transform:
        uppercase;

    letter-spacing:
        0.02em;
}


.result-profile-status.specialized {

    background:
        var(--specialized-bg);

    color:
        var(--success);

    border:
        1px solid
        var(--specialized-border);
}


.result-profile-status.general {

    background:
        var(--general-bg);

    color:
        #8a6411;

    border:
        1px solid
        var(--general-border);
}


/* ============================================================
   PROGRESS
   ============================================================ */


#loading-section {

    border-left:
        6px solid
        var(--accent);
}


.progress-header {

    display:
        flex;

    align-items:
        flex-start;

    justify-content:
        space-between;

    gap:
        20px;
}


.progress-header h2 {

    margin-bottom:
        8px;
}


#progress-stage {

    margin:
        0;

    color:
        var(--muted);
}


#progress-percent {

    min-width:
        84px;

    text-align:
        right;

    font-size:
        30px;

    font-weight:
        800;

    color:
        var(--accent-dark);

    transform-origin:
        center;

    transition:
        color 0.25s ease;
}


/* ============================================================
   PULSING PERCENTAGE
   ============================================================ */


#progress-percent.analysis-running {

    animation:
        progressPercentPulse
        1.65s
        ease-in-out
        infinite;
}


@keyframes progressPercentPulse {

    0% {

        opacity:
            1;

        transform:
            scale(
                1
            );
    }


    50% {

        opacity:
            0.45;

        transform:
            scale(
                1.06
            );
    }


    100% {

        opacity:
            1;

        transform:
            scale(
                1
            );
    }
}


.progress-track {

    width:
        100%;

    height:
        18px;

    margin-top:
        20px;

    overflow:
        hidden;

    position:
        relative;

    border-radius:
        999px;

    background:
        #e6ebf0;

    border:
        1px solid
        var(--border);
}


.progress-bar {

    height:
        100%;

    width:
        0%;

    position:
        relative;

    overflow:
        hidden;

    border-radius:
        inherit;

    background:
        var(--accent);

    transition:
        width 0.55s ease;
}


/* ============================================================
   MOVING LIGHT INSIDE PROGRESS BAR
   Gives continued visual activity even at 95%.
   ============================================================ */


.progress-bar.analysis-running::after {

    content:
        "";

    position:
        absolute;

    top:
        0;

    bottom:
        0;

    width:
        90px;

    background:
        linear-gradient(
            90deg,
            rgba(
                255,
                255,
                255,
                0
            ),
            rgba(
                255,
                255,
                255,
                0.45
            ),
            rgba(
                255,
                255,
                255,
                0
            )
        );

    animation:
        progressShimmer
        1.8s
        linear
        infinite;
}


@keyframes progressShimmer {

    from {

        left:
            -100px;
    }


    to {

        left:
            calc(
                100% + 100px
            );
    }
}


/* ============================================================
   ACTIVE ANALYSIS STATUS
   ============================================================ */


.analysis-active-status {

    display:
        flex;

    align-items:
        center;

    gap:
        8px;

    margin-top:
        14px;

    color:
        var(--accent-dark);

    font-size:
        13px;

    font-weight:
        700;
}


.analysis-active-dot {

    width:
        10px;

    height:
        10px;

    flex:
        0 0 auto;

    border-radius:
        50%;

    background:
        var(--accent);

    animation:
        activeDotPulse
        1.25s
        ease-in-out
        infinite;
}


@keyframes activeDotPulse {

    0%,
    100% {

        opacity:
            1;

        transform:
            scale(
                1
            );
    }


    50% {

        opacity:
            0.35;

        transform:
            scale(
                0.72
            );
    }
}


.analysis-ellipsis {

    display:
        inline-flex;

    width:
        26px;
}


.analysis-ellipsis span {

    opacity:
        0.25;

    animation:
        analysisDotSequence
        1.4s
        infinite;
}


.analysis-ellipsis span:nth-child(
    2
) {

    animation-delay:
        0.2s;
}


.analysis-ellipsis span:nth-child(
    3
) {

    animation-delay:
        0.4s;
}


@keyframes analysisDotSequence {

    0%,
    60%,
    100% {

        opacity:
            0.25;
    }


    30% {

        opacity:
            1;
    }
}


/* ============================================================
   EXTENDED ANALYSIS MESSAGE
   ============================================================ */


.extended-analysis-message {

    display:
        flex;

    align-items:
        flex-start;

    gap:
        12px;

    margin-top:
        16px;

    padding:
        14px 15px;

    border:
        1px solid
        var(--extended-border);

    border-radius:
        10px;

    background:
        var(--extended-bg);

    color:
        var(--text);

    animation:
        extendedMessageReveal
        0.4s
        ease-out;
}


@keyframes extendedMessageReveal {

    from {

        opacity:
            0;

        transform:
            translateY(
                -4px
            );
    }


    to {

        opacity:
            1;

        transform:
            translateY(
                0
            );
    }
}


.extended-analysis-icon {

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    flex:
        0 0 auto;

    width:
        28px;

    height:
        28px;

    border-radius:
        50%;

    background:
        var(--accent);

    color:
        white;

    font-size:
        14px;

    font-weight:
        800;
}


.extended-analysis-message strong {

    display:
        block;

    color:
        var(--accent-dark);

    font-size:
        14px;

    line-height:
        1.35;
}


.extended-analysis-message p {

    margin:
        4px 0 0 0;

    color:
        var(--muted);

    font-size:
        13px;

    line-height:
        1.45;
}


.progress-note {

    margin:
        12px 0 0 0;

    color:
        var(--muted);

    font-size:
        13px;

    line-height:
        1.45;
}


/* ============================================================
   RESULTS
   ============================================================ */


#results-section {

    display:
        grid;

    grid-template-columns:
        repeat(
            2,
            minmax(
                0,
                1fr
            )
        );

    gap:
        18px;
}


#results-section > h2 {

    grid-column:
        1 / -1;
}


#results-section > div {

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

    border-radius:
        10px;

    padding:
        18px;

    background:
        #fbfcfd;
}


.full-width-card {

    grid-column:
        1 / -1;
}


/* ============================================================
   OVERALL SCORE
   ============================================================ */


#overall-score {

    margin:
        0;

    font-size:
        54px;

    font-weight:
        800;

    color:
        var(--accent-dark);
}


#overall-rating {

    margin:
        6px 0 0 0;

    font-size:
        22px;

    font-weight:
        700;
}


#display-rating {

    margin:
        6px 0 0 0;

    color:
        var(--muted);

    font-size:
        14px;
}


/* ============================================================
   SITE FACTORS
   ============================================================ */


#site-factors {

    display:
        grid;

    grid-template-columns:
        repeat(
            2,
            minmax(
                0,
                1fr
            )
        );

    gap:
        10px 16px;
}


.factor-row {

    display:
        grid;

    grid-template-columns:
        minmax(
            0,
            1fr
        )
        auto;

    align-items:
        center;

    gap:
        14px;

    min-height:
        54px;

    padding:
        10px 12px;

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

    border-radius:
        8px;

    background:
        white;
}


.factor-name {

    font-weight:
        600;

    line-height:
        1.3;
}


.factor-result {

    text-align:
        right;
}


.factor-score {

    display:
        block;

    font-size:
        18px;

    font-weight:
        800;

    color:
        var(--accent-dark);
}


.factor-rating {

    display:
        block;

    margin-top:
        2px;

    color:
        var(--muted);

    font-size:
        11px;

    font-weight:
        700;

    text-transform:
        uppercase;
}


/* ============================================================
   RESULT TEXT
   ============================================================ */


#results-section p {

    margin:
        8px 0;

    line-height:
        1.4;
}


#results-section strong {

    color:
        var(--text);
}


/* ============================================================
   LISTS
   ============================================================ */


ul {

    margin:
        0;

    padding-left:
        20px;
}


li {

    margin-bottom:
        8px;

    line-height:
        1.4;
}


/* ============================================================
   ERROR
   ============================================================ */


#error-section {

    border-left:
        6px solid
        var(--danger);
}


#error-section h2 {

    color:
        var(--danger);
}


#error-message {

    color:
        var(--danger);
}


/* ============================================================
   SITE MAP
   ============================================================ */


.map-card {

    overflow:
        hidden;
}


.map-card-header {

    display:
        flex;

    align-items:
        flex-start;

    justify-content:
        space-between;

    gap:
        16px;

    margin-bottom:
        14px;
}


.map-card-header h3 {

    margin-bottom:
        4px;
}


.map-card-header p {

    margin:
        0;

    color:
        var(--muted);

    font-size:
        13px;
}


#map-radius-label {

    flex:
        0 0 auto;

    padding:
        6px 10px;

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

    border-radius:
        999px;

    background:
        white;

    color:
        var(--accent-dark);

    font-size:
        12px;

    font-weight:
        800;
}


#site-map {

    width:
        100%;

    height:
        440px;

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

    border-radius:
        10px;

    overflow:
        hidden;

    background:
        #e9eef2;
}


.map-note {

    margin:
        8px 0 0 0 !important;

    color:
        var(--muted);

    font-size:
        11px;

    text-align:
        right;
}


/* ============================================================
   UTILITY
   ============================================================ */


[hidden] {

    display:
        none !important;
}


/* ============================================================
   ACCESSIBILITY
   Reduce animation for users who request it.
   ============================================================ */


@media (
    prefers-reduced-motion:
    reduce
) {

    #progress-percent.analysis-running,
    .progress-bar.analysis-running::after,
    .analysis-active-dot,
    .analysis-ellipsis span,
    .extended-analysis-message {

        animation:
            none;
    }
}


/* ============================================================
   RESPONSIVE
   ============================================================ */


@media (
    max-width:
    760px
) {

    main {

        width:
            min(
                100% - 20px,
                1100px
            );

        padding-top:
            20px;
    }


    header h1 {

        font-size:
            30px;
    }


    form {

        grid-template-columns:
            1fr;
    }


    #results-section {

        grid-template-columns:
            1fr;
    }


    #site-factors {

        grid-template-columns:
            1fr;
    }


    .full-width-card {

        grid-column:
            auto;
    }


    button {

        grid-column:
            auto;
    }


    .progress-header {

        align-items:
            center;
    }


    #progress-percent {

        font-size:
            26px;

        min-width:
            72px;
    }


    .extended-analysis-message {

        padding:
            12px;
    }


    #site-map {

        height:
            340px;
    }


    .map-card-header {

        flex-direction:
            column;
    }
}


/* PHASE_12F1_SITE_COMPARISON */
/* ============================================================
   TWO-SITE IN-SESSION COMPARISON
   ============================================================ */

.comparison-controls {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid #d6d6d6;
    border-radius: 10px;
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.comparison-status {
    margin-top: 0.35rem;
    margin-bottom: 0;
}

.comparison-control-buttons {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.comparison-control-buttons button {
    cursor: pointer;
}

.comparison-control-buttons button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.site-comparison-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #d6d6d6;
}

.site-comparison-heading {
    margin-bottom: 1rem;
}

.site-comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
}

.comparison-site-card {
    border: 1px solid #d6d6d6;
    border-radius: 12px;
    padding: 1rem;
    min-width: 0;
}

.comparison-site-number {
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.comparison-site-card h4 {
    margin-top: 0;
    margin-bottom: 0.25rem;
}

.comparison-business-type {
    margin-top: 0;
    margin-bottom: 1rem;
}

.comparison-score-block {
    padding: 0.9rem;
    border: 1px solid #d6d6d6;
    border-radius: 10px;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.comparison-score-label {
    font-size: 0.9rem;
}

.comparison-score-value {
    font-size: 1.8rem;
}

.comparison-score-rating {
    font-weight: 600;
}

.comparison-metrics {
    margin-bottom: 1rem;
}

.comparison-metric-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid #e5e5e5;
}

.comparison-metric-row span {
    min-width: 0;
}

.comparison-metric-row strong {
    text-align: right;
}

.comparison-detail-block {
    margin-top: 1rem;
}

.comparison-detail-block h5 {
    margin-bottom: 0.5rem;
}

.comparison-detail-block ul {
    margin-top: 0;
    padding-left: 1.25rem;
}

.comparison-detail-block li {
    margin-bottom: 0.4rem;
}

.comparison-empty {
    font-style: italic;
}

@media (max-width: 850px) {

    .site-comparison-grid {
        grid-template-columns: 1fr;
    }

    .comparison-controls {
        align-items: stretch;
    }

    .comparison-control-buttons {
        width: 100%;
    }
}


/* PHASE_12F1A_COMPARISON_PRESENTATION_POLISH */
/* ============================================================
   COMPARISON PRESENTATION POLISH
   ============================================================ */

.site-comparison-section {
    width: 100%;
}

.site-comparison-heading {
    margin-bottom: 1.25rem;
}

.site-comparison-heading h3 {
    margin-bottom: 0.35rem;
}

.site-comparison-heading p {
    margin-top: 0;
    max-width: 760px;
}

.site-comparison-grid {
    width: 100%;
    gap: 1.25rem;
}

.comparison-site-card {
    padding: 1.2rem;
    overflow-wrap: anywhere;
}

.comparison-site-card h4 {
    line-height: 1.3;
    font-size: 1rem;
}

.comparison-business-type {
    font-weight: 600;
}

.comparison-score-block {
    margin-top: 1rem;
    padding: 1rem;
}

.comparison-score-value {
    line-height: 1;
}

.comparison-metric-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(110px, auto);
    align-items: start;
    gap: 1rem;
    padding: 0.65rem 0;
}

.comparison-metric-row span {
    line-height: 1.25;
}

.comparison-metric-row strong {
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.comparison-detail-block {
    margin-top: 1.35rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e5e5;
}

.comparison-detail-block h5 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.comparison-detail-block ul {
    padding-left: 1.15rem;
}

.comparison-detail-block li {
    line-height: 1.4;
    margin-bottom: 0.6rem;
}

.comparison-factor-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.comparison-factor-row {
    padding: 0.7rem 0.75rem;
    border: 1px solid #e3e3e3;
    border-radius: 8px;
}

.comparison-factor-name {
    font-weight: 700;
    line-height: 1.3;
}

.comparison-factor-detail {
    margin-top: 0.3rem;
    font-size: 0.9rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

@media (max-width: 1100px) {

    .comparison-metric-row {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .comparison-metric-row strong {
        text-align: left;
    }
}

@media (max-width: 850px) {

    .comparison-site-card {
        padding: 1rem;
    }

    .comparison-factor-row {
        padding: 0.65rem;
    }
}


/* PHASE_12F1A1_COMPARISON_LAYOUT_REPAIR */
/* ============================================================
   LIVE COMPARISON LAYOUT REPAIR
   ============================================================ */


/*
   The normal results area uses a multi-column layout.

   The comparison section must span ALL results-grid columns.
   Without this rule the entire two-site comparison is squeezed
   into one result column.
*/

.site-comparison-section {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
}


/*
   Allow the comparison grid itself to consume all available
   horizontal room.
*/

.site-comparison-grid {
    width: 100%;
    max-width: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}


/*
   Do NOT permit arbitrary character-by-character word breaking.

   Phase 12F.1A used overflow-wrap:anywhere, which caused labels
   such as "Decision Readiness" to become vertical text when the
   card was constrained.
*/

.comparison-site-card {
    min-width: 0;
    width: 100%;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: none;
}


.comparison-site-card h4,
.comparison-business-type,
.comparison-score-block,
.comparison-metrics,
.comparison-detail-block,
.comparison-factor-row {
    overflow-wrap: break-word;
    word-break: normal;
}


/*
   Main comparison metrics.
*/

.comparison-metric-row {
    display: grid;
    grid-template-columns:
        minmax(145px, 0.9fr)
        minmax(160px, 1.1fr);
    align-items: start;
    gap: 1.25rem;
    width: 100%;
}


.comparison-metric-row span {
    min-width: 0;
    line-height: 1.3;
    overflow-wrap: normal;
    word-break: normal;
}


.comparison-metric-row strong {
    min-width: 0;
    text-align: right;
    line-height: 1.3;
    overflow-wrap: break-word;
    word-break: normal;
}


/*
   Site-factor presentation.
*/

.comparison-factor-list {
    width: 100%;
}


.comparison-factor-row {
    width: 100%;
    padding: 0.8rem 0.9rem;
    overflow-wrap: break-word;
    word-break: normal;
}


.comparison-factor-name {
    display: block;
    width: 100%;
    line-height: 1.3;
    overflow-wrap: normal;
    word-break: normal;
}


.comparison-factor-detail {
    display: block;
    width: 100%;
    margin-top: 0.35rem;
    line-height: 1.4;
    overflow-wrap: break-word;
    word-break: normal;
}


/*
   Strengths and concerns should use the full width of each site
   card rather than behaving like narrow text columns.
*/

.comparison-detail-block {
    width: 100%;
    min-width: 0;
}


.comparison-detail-block ul {
    width: 100%;
    box-sizing: border-box;
}


.comparison-detail-block li {
    width: auto;
    line-height: 1.45;
    overflow-wrap: break-word;
    word-break: normal;
}


/*
   Intermediate desktop/tablet breakpoint.

   Keep two comparison cards side-by-side while there is
   reasonable horizontal room, but allow the metric label/value
   structure itself to stack when required.
*/

@media (max-width: 1000px) {

    .comparison-metric-row {
        grid-template-columns: 1fr;
        gap: 0.3rem;
    }

    .comparison-metric-row strong {
        text-align: left;
    }
}


/*
   True narrow-screen behavior:
   stack Site 1 and Site 2 vertically.
*/

@media (max-width: 850px) {

    .site-comparison-grid {
        grid-template-columns: 1fr;
    }

    .comparison-site-card {
        width: 100%;
    }
}


/* PHASE_12F2B_COMPARISON_SUMMARY_UI */
/* ============================================================
   COMPARATIVE DECISION SUMMARY
   ============================================================ */


.comparison-decision-summary {
    grid-column: 1 / -1;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    border: 1px solid #d6d6d6;
    border-radius: 12px;
}


.comparison-summary-neutral {
    border-left-width: 5px;
}


.comparison-summary-tie {
    border-left-width: 5px;
}


.comparison-summary-recommendation {
    border-left-width: 5px;
}


.comparison-summary-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}


.comparison-summary-header h4 {
    margin-top: 0.25rem;
    margin-bottom: 0;
    font-size: 1.25rem;
}


.comparison-summary-eyebrow {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}


.comparison-summary-classification {
    flex: 0 0 auto;
    padding: 0.4rem 0.65rem;
    border: 1px solid #d6d6d6;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
}


.comparison-summary-score-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    margin-bottom: 1.15rem;
}


.comparison-summary-score-item {
    padding: 0.85rem;
    border: 1px solid #e2e2e2;
    border-radius: 9px;
    min-width: 0;
}


.comparison-summary-score-item span {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.85rem;
    font-weight: 700;
}


.comparison-summary-score-item strong {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 1.35rem;
    line-height: 1.1;
}


.comparison-summary-score-item small {
    display: block;
    line-height: 1.3;
    overflow-wrap: break-word;
    word-break: normal;
}


.comparison-summary-recommendation-text {
    padding: 1rem;
    border: 1px solid #e2e2e2;
    border-radius: 9px;
    margin-bottom: 1.15rem;
}


.comparison-summary-recommendation-text p {
    margin-top: 0;
    line-height: 1.5;
}


.comparison-summary-recommendation-text p:last-child {
    margin-bottom: 0;
}


.comparison-summary-due-diligence {
    font-weight: 600;
}


.comparison-summary-evidence {
    margin-top: 1rem;
}


.comparison-summary-evidence h5 {
    margin-bottom: 0.75rem;
}


.comparison-summary-evidence-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}


.comparison-summary-evidence-grid > div {
    min-width: 0;
    padding: 0.85rem;
    border: 1px solid #e2e2e2;
    border-radius: 9px;
}


.comparison-summary-evidence-grid h6 {
    margin-top: 0;
    margin-bottom: 0.55rem;
    font-size: 0.9rem;
}


.comparison-summary-factor-list {
    margin: 0;
    padding-left: 1.15rem;
}


.comparison-summary-factor-list li {
    margin-bottom: 0.45rem;
    line-height: 1.4;
}


.comparison-summary-empty {
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1.45;
}


.comparison-summary-method-note {
    margin-top: 1rem;
    padding-top: 0.9rem;
    border-top: 1px solid #e2e2e2;
    line-height: 1.45;
    font-size: 0.9rem;
}


@media (max-width: 1000px) {

    .comparison-summary-evidence-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 850px) {

    .comparison-summary-header {
        flex-direction: column;
    }

    .comparison-summary-classification {
        align-self: flex-start;
    }

    .comparison-summary-score-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   PHASE_13C2D_INITIAL_DISCLAIMER_GATE
   Initial disclaimer and acceptance gate
   ========================================================== */

body.bsi-disclaimer-locked {
    overflow: hidden;
}

.bsi-disclaimer-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 24px;
    background:
        rgba(15, 23, 42, 0.74);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.bsi-disclaimer-overlay[hidden] {
    display: none !important;
}

.bsi-disclaimer-card {
    width: min(760px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    box-sizing: border-box;
    padding: 28px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 16px;
    background: #ffffff;
    color: #172033;
    box-shadow:
        0 24px 70px rgba(15, 23, 42, 0.32);
}

.bsi-disclaimer-header {
    margin-bottom: 18px;
}

.bsi-disclaimer-header h2 {
    margin: 0 0 8px;
    color: #123f60;
    font-size: 1.55rem;
    line-height: 1.25;
}

.bsi-disclaimer-intro {
    margin: 0;
    color: #526174;
    line-height: 1.5;
}

.bsi-disclaimer-content {
    margin-top: 20px;
    padding: 18px;
    border: 1px solid #d8e0e8;
    border-radius: 12px;
    background: #f8fafc;
}

.bsi-disclaimer-content p {
    margin: 0 0 14px;
    line-height: 1.58;
}

.bsi-disclaimer-content p:last-child {
    margin-bottom: 0;
}

.bsi-disclaimer-checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 22px;
    padding: 14px;
    border-radius: 10px;
    background: #f3f7fa;
    cursor: pointer;
    line-height: 1.5;
}

.bsi-disclaimer-checkbox-row input {
    width: 19px;
    height: 19px;
    min-width: 19px;
    margin-top: 2px;
    cursor: pointer;
}

.bsi-disclaimer-actions {
    margin-top: 18px;
}

.bsi-disclaimer-accept-button {
    width: 100%;
    padding: 13px 18px;
    border: 0;
    border-radius: 9px;
    background: #236b98;
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition:
        opacity 0.15s ease,
        transform 0.15s ease;
}

.bsi-disclaimer-accept-button:hover:not(:disabled) {
    transform: translateY(-1px);
}

.bsi-disclaimer-accept-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.bsi-disclaimer-storage-note {
    margin: 12px 0 0;
    color: #69788b;
    font-size: 0.84rem;
    line-height: 1.45;
    text-align: center;
}

.bsi-open-disclaimer-button {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 9000;
    padding: 9px 14px;
    border: 1px solid #cbd5df;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #1f526f;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 600;
    box-shadow:
        0 5px 18px rgba(15, 23, 42, 0.14);
    cursor: pointer;
}

.bsi-open-disclaimer-button:hover {
    background: #ffffff;
}

@media (max-width: 640px) {

    .bsi-disclaimer-overlay {
        align-items: flex-start;
        padding: 12px;
        overflow-y: auto;
    }

    .bsi-disclaimer-card {
        max-height: none;
        margin: 8px 0 24px;
        padding: 20px;
        border-radius: 13px;
    }

    .bsi-disclaimer-header h2 {
        font-size: 1.35rem;
    }

    .bsi-disclaimer-content {
        padding: 15px;
    }

    .bsi-open-disclaimer-button {
        right: 12px;
        bottom: 12px;
    }
}

/* END PHASE_13C2D_INITIAL_DISCLAIMER_GATE */


/* ==========================================================
   PHASE_13C3F_BROWSER_AUTH_UI_FOUNDATION
   ========================================================== */

body.bsi-auth-panel-open {
    overflow: hidden;
}


.bsi-auth-launcher {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 110001;
    border: 1px solid #cbd6df;
    border-radius: 9px;
    padding: 10px 14px;
    background: #ffffff;
    color: #123f60;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(20, 45, 70, 0.12);
}


.bsi-auth-launcher:hover {
    transform: translateY(-1px);
}


.bsi-auth-launcher.is-signed-in {
    border-color: #7aa98d;
}


.bsi-auth-overlay {
    position: fixed;
    inset: 0;
    z-index: 110000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 24px;
    background: rgba(10, 24, 38, 0.74);
    backdrop-filter: blur(3px);
}


.bsi-auth-overlay[hidden] {
    display: none !important;
}


.bsi-auth-card {
    width: min(680px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    box-sizing: border-box;
    padding: 28px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 22px 65px rgba(0, 0, 0, 0.28);
}


.bsi-auth-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}


.bsi-auth-header h2 {
    margin: 0 0 8px;
    color: #123f60;
    font-size: 1.65rem;
}


.bsi-auth-header p {
    margin: 0;
    color: #5a6878;
    line-height: 1.45;
}


.bsi-auth-close {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #edf2f5;
    color: #243746;
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
}


.bsi-auth-preview-note {
    margin-top: 18px;
    padding: 11px 13px;
    border: 1px solid #d7e0e8;
    border-radius: 9px;
    background: #f7f9fb;
    color: #536576;
    font-size: 0.88rem;
    line-height: 1.45;
}


.bsi-auth-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
    margin-top: 20px;
    padding: 5px;
    border-radius: 11px;
    background: #edf2f5;
}


.bsi-auth-tab {
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    padding: 8px 10px;
    background: transparent;
    color: #435567;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}


.bsi-auth-tab.is-active {
    background: #ffffff;
    color: #123f60;
    box-shadow: 0 2px 8px rgba(30, 55, 78, 0.12);
}


.bsi-auth-account-state {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 18px;
    padding: 12px 14px;
    border: 1px solid #d6e5db;
    border-radius: 9px;
    background: #f2f8f4;
    color: #345545;
}


.bsi-auth-account-state[hidden] {
    display: none !important;
}


.bsi-auth-account-state button {
    border: 1px solid #a7b8ac;
    border-radius: 7px;
    padding: 7px 11px;
    background: #ffffff;
    color: #344d3e;
    font: inherit;
    cursor: pointer;
}


.bsi-auth-message {
    min-height: 22px;
    margin-top: 15px;
    font-size: 0.92rem;
    line-height: 1.45;
}


.bsi-auth-message[data-kind="success"] {
    color: #276443;
}


.bsi-auth-message[data-kind="error"] {
    color: #a12f2f;
}


.bsi-auth-message[data-kind="warning"] {
    color: #835d18;
}


.bsi-auth-message[data-kind="info"] {
    color: #315f7e;
}


.bsi-auth-panel {
    margin-top: 10px;
}


.bsi-auth-panel[hidden] {
    display: none !important;
}


.bsi-auth-panel form {
    display: grid;
    gap: 9px;
}


.bsi-auth-panel label {
    margin-top: 7px;
    color: #293f51;
    font-weight: 700;
}


.bsi-auth-panel input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #bdcad4;
    border-radius: 8px;
    padding: 11px 12px;
    background: #ffffff;
    color: #172a38;
    font: inherit;
}


.bsi-auth-panel input:focus {
    outline: 2px solid rgba(33, 105, 151, 0.18);
    border-color: #397aa4;
}


.bsi-auth-submit-button {
    margin-top: 12px;
    border: 0;
    border-radius: 9px;
    padding: 12px 16px;
    background: #174f73;
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}


.bsi-auth-submit-button:hover:not(:disabled) {
    transform: translateY(-1px);
}


.bsi-auth-submit-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


.bsi-auth-secondary-note,
.bsi-auth-promo-intro {
    color: #657586;
    font-size: 0.87rem;
    line-height: 1.5;
}


.bsi-auth-secondary-note {
    margin: 14px 0 0;
}


.bsi-auth-promo-intro {
    margin: 8px 0 14px;
}


@media (max-width: 640px) {

    .bsi-auth-overlay {
        align-items: flex-start;
        padding: 10px;
        overflow-y: auto;
    }


    .bsi-auth-card {
        max-height: none;
        margin: 8px 0 24px;
        padding: 20px;
        border-radius: 13px;
    }


    .bsi-auth-tabs {
        grid-template-columns: 1fr;
    }


    .bsi-auth-launcher {
        top: 10px;
        right: 10px;
    }


    .bsi-auth-account-state {
        align-items: flex-start;
        flex-direction: column;
    }

}

/* END PHASE_13C3F_BROWSER_AUTH_UI_FOUNDATION */


/* ============================================================
   PHASE_13C4B_COMPETITION_INTENSITY_AND_CLEAR_FIELDS
   ANALYSIS FORM ACTIONS
   ============================================================ */

.analysis-form-actions {

    grid-column:
        1 / -1;

    display:
        grid;

    grid-template-columns:
        minmax(0, 2fr)
        minmax(0, 1fr);

    gap:
        12px;
}


.analysis-form-actions button {

    grid-column:
        auto;

    width:
        100%;
}


.analysis-form-actions .secondary-button {

    background:
        #eef2f5;

    color:
        var(--text);

    border:
        1px solid
        var(--border);
}


.analysis-form-actions .secondary-button:hover {

    background:
        #dde5ea;
}


@media (max-width: 700px) {

    .analysis-form-actions {

        grid-template-columns:
            1fr;
    }
}


/* ==========================================================================
   PHASE 13C.4C-2O2
   MARKET OPPORTUNITY SNAPSHOT
   Presentation-only Market Momentum context
   ========================================================================== */

.market-opportunity-snapshot {
    box-sizing: border-box;
    width: 100%;
    margin: 18px 0;
    padding: 20px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 14px;
    background: rgba(248, 250, 252, 0.96);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.market-opportunity-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 12px;
}

.market-opportunity-eyebrow {
    margin-bottom: 4px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.7;
}

.market-opportunity-title {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.25;
}

.market-momentum-value {
    flex: 0 0 auto;
    font-size: 1.7rem;
    line-height: 1;
    font-weight: 800;
    white-space: nowrap;
}

.market-momentum-positive {
    color: #16794b;
}

.market-momentum-negative {
    color: #a63d40;
}

.market-momentum-neutral {
    color: #475569;
}

.market-momentum-unavailable {
    color: #64748b;
    font-size: 1rem;
}

.market-opportunity-description {
    margin: 0;
    line-height: 1.55;
}

.market-opportunity-periods {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 16px;
}

.market-opportunity-period {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 110px;
}

.market-opportunity-period-label {
    font-size: 0.76rem;
    font-weight: 700;
    opacity: 0.68;
}

.market-opportunity-period strong {
    font-size: 1.05rem;
}

.market-opportunity-arrow {
    font-size: 1.25rem;
    opacity: 0.55;
}

.market-opportunity-note {
    margin: 15px 0 0;
    font-size: 0.78rem;
    line-height: 1.45;
    opacity: 0.72;
}

.market-opportunity-snapshot-unavailable {
    border-style: dashed;
}

@media (max-width: 640px) {

    .market-opportunity-header {
        flex-direction: column;
        gap: 8px;
    }

    .market-opportunity-periods {
        flex-wrap: wrap;
    }

    .market-momentum-value {
        font-size: 1.45rem;
    }
}


/* Phase 13C.4C-2O2A - fixed placement inside Market card */

#market-opportunity-snapshot.market-opportunity-snapshot {
    margin: 16px 0 0;
    padding: 16px;
}

#market-opportunity-snapshot .market-opportunity-header {
    margin-bottom: 10px;
}

#market-opportunity-snapshot .market-momentum-value {
    font-size: 1.45rem;
}

#market-opportunity-snapshot .market-opportunity-periods {
    margin-top: 12px;
}


/* ============================================================
   PHASE_13C7F_PAYMENT_ACCOUNT_UI
   Customer plans, usage, and PayPal checkout
   ============================================================ */

.bsi-payment-account-panel {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #dbe3e9;
}

.bsi-payment-account-panel[hidden] {
    display: none !important;
}

.bsi-payment-account-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.bsi-payment-account-heading h3 {
    margin: 0 0 5px;
    color: #123f60;
    font-size: 1.2rem;
}

.bsi-payment-account-heading p {
    margin: 0;
    color: #657586;
    font-size: 0.9rem;
    line-height: 1.45;
}

.bsi-payment-refresh {
    flex: 0 0 auto;
    border: 1px solid #b9c8d3;
    border-radius: 8px;
    padding: 7px 11px;
    background: #ffffff;
    color: #294a61;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
}

.bsi-payment-refresh:hover:not(:disabled) {
    background: #f4f7f9;
}

.bsi-payment-refresh:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.bsi-payment-message {
    min-height: 20px;
    margin-top: 12px;
    font-size: 0.9rem;
    line-height: 1.45;
}

.bsi-payment-message:empty {
    min-height: 0;
    margin-top: 0;
}

.bsi-payment-message[data-kind="success"] {
    color: #276443;
}

.bsi-payment-message[data-kind="error"] {
    color: #a12f2f;
}

.bsi-payment-message[data-kind="info"] {
    color: #315f7e;
}

.bsi-usage-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
    margin-top: 15px;
}

.bsi-usage-stat {
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid #dce5eb;
    border-radius: 9px;
    background: #f8fafb;
}

.bsi-usage-label {
    display: block;
    margin-bottom: 5px;
    color: #687988;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.bsi-usage-stat strong {
    display: block;
    color: #183c55;
    font-size: 1rem;
    overflow-wrap: anywhere;
}

.bsi-payment-products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px;
    margin-top: 17px;
}

.bsi-payment-product {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 15px;
    min-width: 0;
    padding: 16px;
    border: 1px solid #d7e1e8;
    border-radius: 12px;
    background: #ffffff;
}

.bsi-payment-product.is-featured {
    border-color: #87aabd;
    box-shadow: 0 5px 18px rgba(25, 73, 103, 0.10);
}

.bsi-payment-product-type {
    display: inline-block;
    margin-bottom: 8px;
    color: #53758a;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.bsi-payment-product h4 {
    margin: 0;
    color: #173d56;
    font-size: 1rem;
}

.bsi-payment-price {
    margin-top: 8px;
    color: #123f60;
    font-size: 1.35rem;
    font-weight: 800;
}

.bsi-payment-price small {
    color: #687988;
    font-size: 0.75rem;
    font-weight: 600;
}

.bsi-payment-product p {
    margin: 8px 0 0;
    color: #657586;
    font-size: 0.83rem;
    line-height: 1.45;
}

.bsi-payment-buy {
    width: 100%;
    border: 0;
    border-radius: 9px;
    padding: 10px 12px;
    background: #174f73;
    color: #ffffff;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
}

.bsi-payment-buy:hover:not(:disabled) {
    transform: translateY(-1px);
}

.bsi-payment-buy:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.bsi-payment-security-note {
    margin: 14px 0 0;
    color: #73818d;
    font-size: 0.78rem;
    line-height: 1.45;
    text-align: center;
}

@media (max-width: 760px) {
    .bsi-usage-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bsi-payment-products {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .bsi-payment-account-heading {
        flex-direction: column;
    }

    .bsi-usage-summary {
        grid-template-columns: 1fr;
    }
}

/* END PHASE_13C7F_PAYMENT_ACCOUNT_UI */


/* ==========================================================
   PHASE_13C8E7_PASSWORD_UPDATE_LAYOUT
   Password recovery / update form presentation
   ========================================================== */

/*
 * Keep the password-update controls in one vertical column.
 *
 * This rule is deliberately scoped to the recovery form only.
 * It does not alter the normal sign-in, create-account,
 * promotional-access, payment, disclaimer, or analysis forms.
 */

#bsi-password-update-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
    width: 100%;
    box-sizing: border-box;
}

#bsi-password-update-form > * {
    grid-column: 1 / -1;
    min-width: 0;
}

#bsi-password-update-form label {
    display: block;
    width: 100%;
    margin-top: 7px;
    box-sizing: border-box;
}

#bsi-password-update-form input {
    display: block;
    width: 100%;
    box-sizing: border-box;
}

#bsi-password-update-form .bsi-auth-submit-button {
    display: block;
    width: 100%;
}

/* END PHASE_13C8E7_PASSWORD_UPDATE_LAYOUT */


/* ============================================================
   PHASE_13C8G2_HELP_CONTACT_SUPPORT
   Customer Help / Contact Support
   ============================================================ */


/*
 * The Help launcher remains available even while the normal
 * account/access overlay is visible, allowing signed-out users
 * to reach support.
 */
.bsi-help-launcher {

    position:
        fixed;

    right:
        18px;

    bottom:
        66px;

    z-index:
        111000;

    min-height:
        auto;

    width:
        auto;

    padding:
        9px 16px;

    border:
        1px solid #cbd5df;

    border-radius:
        999px;

    background:
        rgba(255, 255, 255, 0.96);

    color:
        #174f73;

    font:
        inherit;

    font-weight:
        700;

    cursor:
        pointer;

    box-shadow:
        0 5px 18px rgba(15, 23, 42, 0.14);
}


.bsi-help-launcher:hover {

    background:
        #ffffff;
}


.bsi-help-overlay {

    position:
        fixed;

    inset:
        0;

    z-index:
        112000;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    box-sizing:
        border-box;

    padding:
        24px;

    background:
        rgba(15, 23, 42, 0.48);

    backdrop-filter:
        blur(4px);

    -webkit-backdrop-filter:
        blur(4px);
}


.bsi-help-overlay[hidden] {

    display:
        none !important;
}


.bsi-help-card {

    width:
        min(560px, 100%);

    max-height:
        calc(100vh - 48px);

    overflow-y:
        auto;

    box-sizing:
        border-box;

    padding:
        26px;

    border:
        1px solid #d7e1e8;

    border-radius:
        14px;

    background:
        #ffffff;

    box-shadow:
        0 24px 70px rgba(15, 23, 42, 0.30);
}


.bsi-help-header {

    display:
        flex;

    align-items:
        flex-start;

    justify-content:
        space-between;

    gap:
        20px;

    margin-bottom:
        20px;
}


.bsi-help-header h2 {

    margin:
        0 0 8px;

    color:
        #123f60;

    font-size:
        1.55rem;

    line-height:
        1.25;
}


.bsi-help-header p {

    margin:
        0;

    color:
        #5a6878;

    line-height:
        1.45;
}


.bsi-help-close {

    flex:
        0 0 auto;

    min-height:
        38px;

    width:
        38px;

    padding:
        0;

    border:
        1px solid #cbd5df;

    border-radius:
        999px;

    background:
        #f7f9fb;

    color:
        #44515d;

    font-size:
        1.45rem;

    line-height:
        1;

    cursor:
        pointer;
}


.bsi-help-close:hover {

    background:
        #eef2f5;
}


.bsi-help-content {

    line-height:
        1.55;

    color:
        #425466;
}


.bsi-help-content > p:first-child {

    margin-top:
        0;
}


.bsi-help-email-label {

    margin:
        22px 0 5px;

    color:
        #657586;

    font-size:
        0.88rem;

    font-weight:
        700;

    text-transform:
        uppercase;

    letter-spacing:
        0.04em;
}


.bsi-help-email-address {

    display:
        inline-block;

    color:
        #174f73;

    font-weight:
        700;

    overflow-wrap:
        anywhere;
}


.bsi-help-email-button {

    display:
        block;

    box-sizing:
        border-box;

    width:
        100%;

    margin-top:
        22px;

    padding:
        13px 18px;

    border:
        0;

    border-radius:
        9px;

    background:
        #174f73;

    color:
        #ffffff;

    font:
        inherit;

    font-weight:
        700;

    text-align:
        center;

    text-decoration:
        none;

    cursor:
        pointer;
}


.bsi-help-email-button:hover {

    background:
        #123f60;
}


.bsi-help-email-note {

    margin:
        10px 0 0;

    color:
        #6b7885;

    font-size:
        0.88rem;

    text-align:
        center;
}


@media (max-width: 640px) {

    .bsi-help-launcher {

        right:
            10px;

        bottom:
            62px;
    }


    .bsi-help-overlay {

        align-items:
            flex-start;

        padding:
            10px;

        overflow-y:
            auto;
    }


    .bsi-help-card {

        max-height:
            none;

        padding:
            20px;

        border-radius:
            12px;
    }


    .bsi-help-header h2 {

        font-size:
            1.35rem;
    }
}


/* END PHASE_13C8G2_HELP_CONTACT_SUPPORT */


/* ==========================================================
   PHASE_13C8J3_SIGNED_IN_PROMO_REDEMPTION
   Signed-in promotional code redemption
   ========================================================== */

.bsi-account-promo-panel {
    margin-top: 16px;
    padding: 14px 15px;
    border: 1px solid #d7e1e8;
    border-radius: 10px;
    background: #f8fafb;
}

.bsi-account-promo-copy h4 {
    margin: 0;
    color: #173d56;
    font-size: 0.95rem;
}

.bsi-account-promo-copy p {
    margin: 5px 0 0;
    color: #657586;
    font-size: 0.82rem;
    line-height: 1.4;
}

.bsi-account-promo-form {
    margin-top: 11px;
}

.bsi-account-promo-form label {
    display: block;
    margin-bottom: 6px;
    color: #314d61;
    font-size: 0.78rem;
    font-weight: 700;
}

.bsi-account-promo-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
    align-items: center;
}

#bsi-account-promo-code {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    border: 1px solid #cbd8e1;
    border-radius: 8px;
    padding: 9px 10px;
    background: #ffffff;
    color: #173d56;
    font: inherit;
    font-size: 0.88rem;
}

#bsi-account-promo-submit {
    border: 0;
    border-radius: 8px;
    padding: 10px 14px;
    background: #174f73;
    color: #ffffff;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

#bsi-account-promo-submit:disabled,
#bsi-account-promo-code:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.bsi-account-promo-message {
    min-height: 1.1em;
    margin-top: 7px;
    font-size: 0.78rem;
    line-height: 1.35;
}

.bsi-account-promo-message[data-kind="success"] {
    color: #276443;
}

.bsi-account-promo-message[data-kind="error"] {
    color: #a12f2f;
}

.bsi-account-promo-message[data-kind="info"] {
    color: #315f7e;
}

@media (max-width: 600px) {

    .bsi-account-promo-controls {
        grid-template-columns: 1fr;
    }

    #bsi-account-promo-submit {
        width: 100%;
    }

}

/* END PHASE_13C8J3_SIGNED_IN_PROMO_REDEMPTION */

