/* =========================================================
   DASHBOARD INTRO
   ========================================================= */

.dashboard-intro {
    position: relative;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 28px;

    margin-bottom: 20px;
    padding: 2px 0 0;
}


/* =========================================================
   INTRO COPY
   ========================================================= */

.dashboard-intro > div:first-child {
    min-width: 0;
    max-width: 760px;
}


.dashboard-intro__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    margin-bottom: 5px;

    color: var(--brand-green);

    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1.2;

    letter-spacing: 0.09em;
    text-transform: uppercase;
}


.dashboard-intro__eyebrow::before {
    content: "";

    width: 6px;
    height: 6px;

    flex: 0 0 6px;

    border-radius: 50%;

    background: var(--brand-green);
}


/* =========================================================
   TITLE
   ========================================================= */

.dashboard-intro__title {
    margin: 0;

    color: var(--text-primary);

    font-size: clamp(
        1.45rem,
        2vw,
        1.85rem
    );

    font-weight: 800;
    line-height: 1.08;

    letter-spacing: -0.035em;
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.dashboard-intro__description {
    max-width: 690px;

    margin-top: 7px;

    color: var(--text-secondary);

    font-size: 0.78rem;
    font-weight: 450;
    line-height: 1.55;
}


/* =========================================================
   CONTEXT BADGE
   ========================================================= */

.dashboard-context-badge {
    flex: 0 0 auto;

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

    gap: 7px;

    min-height: 31px;

    padding: 6px 10px;

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

    color: var(--text-secondary);
    background: var(--surface);

    box-shadow:
        0 1px 2px
        rgba(0, 0, 0, 0.025);

    font-size: 0.61rem;
    font-weight: 700;
    line-height: 1;

    white-space: nowrap;
}


.dashboard-context-badge__dot {
    width: 7px;
    height: 7px;

    flex: 0 0 7px;

    border-radius: 50%;

    background: var(--brand-green);

    box-shadow:
        0 0 0 3px
        var(--brand-green-soft);
}


/* =========================================================
   SHELL PREVIEW / EMPTY PLACEHOLDER
   ========================================================= */

.dashboard-shell-preview {
    position: relative;

    overflow: hidden;

    min-height: 500px;

    display: grid;
    place-items: center;

    border:
        1px dashed
        var(--border-strong);

    border-radius:
        var(--radius-lg);

    color:
        var(--text-muted);

    background:
        linear-gradient(
            180deg,
            color-mix(
                in srgb,
                var(--surface) 88%,
                transparent
            ),
            var(--surface-secondary)
        );
}


/* subtle dashboard-style accent */

.dashboard-shell-preview::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 3px;

    background:
        linear-gradient(
            90deg,
            var(--brand-green),
            transparent 55%
        );

    opacity: 0.75;
}


/* =========================================================
   PREVIEW CONTENT
   ========================================================= */

.dashboard-shell-preview__content {
    position: relative;
    z-index: 1;

    max-width: 480px;

    padding: 32px;

    text-align: center;
}


.dashboard-shell-preview__title {
    margin-bottom: 5px;

    color: var(--text-primary);

    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.25;

    letter-spacing: -0.015em;
}


.dashboard-shell-preview__text {
    margin: 0;

    color: var(--text-secondary);

    font-size: 0.68rem;
    line-height: 1.5;
}


/* =========================================================
   DARK MODE
   ========================================================= */

html[data-theme="dark"]
.dashboard-context-badge {
    box-shadow: none;
}


html[data-theme="dark"]
.dashboard-shell-preview {
    background:
        linear-gradient(
            180deg,
            color-mix(
                in srgb,
                var(--surface) 92%,
                transparent
            ),
            var(--surface-secondary)
        );
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .dashboard-intro {
        gap: 20px;
    }


    .dashboard-intro__title {
        font-size: 1.4rem;
    }


    .dashboard-intro__description {
        font-size: 0.74rem;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .dashboard-intro {
        flex-direction: column;

        align-items: flex-start;

        gap: 11px;

        margin-bottom: 16px;
    }


    .dashboard-context-badge {
        min-height: 29px;

        padding:
            5px
            9px;

        font-size: 0.58rem;
    }


    .dashboard-intro__title {
        font-size: 1.3rem;
    }


    .dashboard-intro__description {
        margin-top: 5px;

        font-size: 0.7rem;
    }


    .dashboard-shell-preview {
        min-height: 360px;
    }


    .dashboard-shell-preview__content {
        padding: 24px 18px;
    }

}