/* =========================================================
   DESIGN DREAMS CLIENT PORTAL
   Base UI
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    background: #f5f6f8;
    color: #17191c;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
    -webkit-font-smoothing: antialiased;
}


/* =========================================================
   TOP BAR
   ========================================================= */

.topbar {
    height: 76px;
    padding: 0 48px;

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

    background: #111315;
    color: #ffffff;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-name {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.portal-label {
    padding-left: 14px;
    border-left: 1px solid #44484d;

    color: #aeb3b9;
    font-size: 14px;
}

.client {
    color: #d9dcdf;
    font-size: 14px;
    font-weight: 500;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.navigation {
    height: 58px;
    padding: 0 48px;

    display: flex;
    align-items: center;
    gap: 34px;

    background: #ffffff;
    border-bottom: 1px solid #e3e5e8;
}

.navigation a {
    height: 58px;

    display: flex;
    align-items: center;

    color: #747980;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;

    border-bottom: 2px solid transparent;

    transition:
        color 0.2s ease,
        border-color 0.2s ease;
}

.navigation a:hover {
    color: #17191c;
}

.navigation a.active {
    color: #17191c;
    border-bottom-color: #17191c;
}


/* =========================================================
   MAIN DASHBOARD
   ========================================================= */

.dashboard {
    width: min(1440px, calc(100% - 96px));
    margin: 0 auto;
    padding: 52px 0 80px;
}


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

.page-header {
    margin-bottom: 38px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
}

.eyebrow {
    margin: 0 0 10px;

    color: #8a9097;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.page-header h1 {
    margin: 0;

    color: #15171a;
    font-size: 34px;
    line-height: 1.15;
    font-weight: 650;
    letter-spacing: -0.03em;
}

.subtitle {
    margin: 10px 0 0;

    color: #777d84;
    font-size: 15px;
}

.date-selector {
    min-width: 145px;
    padding: 11px 16px;

    background: #ffffff;
    border: 1px solid #dfe2e5;
    border-radius: 8px;

    color: #44494f;
    font-size: 13px;
    font-weight: 500;

    text-align: center;
}


/* =========================================================
   KPI CARDS
   ========================================================= */

.kpi-grid {
    margin-bottom: 26px;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.kpi-card {
    min-height: 154px;
    padding: 25px 26px;

    display: flex;
    flex-direction: column;

    background: #ffffff;
    border: 1px solid #e3e5e8;
    border-radius: 12px;
}

.kpi-label {
    margin-bottom: 18px;

    color: #858b92;
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.09em;
}

.kpi-card strong {
    margin-bottom: 8px;

    color: #17191c;
    font-size: 32px;
    line-height: 1;
    font-weight: 650;
    letter-spacing: -0.035em;
}

.kpi-description {
    margin-top: auto;

    color: #9a9fa5;
    font-size: 12px;
}


/* =========================================================
   CONTENT PANELS
   ========================================================= */

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(300px, 0.8fr);
    gap: 16px;
}

.panel {
    min-width: 0;

    background: #ffffff;
    border: 1px solid #e3e5e8;
    border-radius: 12px;

    overflow: hidden;
}

.panel-header {
    min-height: 88px;
    padding: 23px 26px;

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

    border-bottom: 1px solid #eceef0;
}

.panel-header h2 {
    margin: 0 0 5px;

    color: #202327;
    font-size: 16px;
    font-weight: 650;
    letter-spacing: -0.01em;
}

.panel-header p {
    margin: 0;

    color: #969ba1;
    font-size: 12px;
}


/* =========================================================
   CHART PLACEHOLDER
   ========================================================= */

.chart-placeholder {
    min-height: 370px;

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

    color: #a4a9ae;
    font-size: 13px;

    background:
        linear-gradient(
            to bottom,
            transparent 24%,
            #f0f1f3 25%,
            transparent 26%,
            transparent 49%,
            #f0f1f3 50%,
            transparent 51%,
            transparent 74%,
            #f0f1f3 75%,
            transparent 76%
        );
}


/* =========================================================
   TRAFFIC CHANNELS
   ========================================================= */

.channel-list {
    padding: 5px 26px 16px;
}

.channel-row {
    min-height: 47px;

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

    border-bottom: 1px solid #f0f1f2;

    color: #575c62;
    font-size: 13px;
}

.channel-row:last-child {
    border-bottom: 0;
}

.channel-row strong {
    color: #202327;
    font-size: 13px;
    font-weight: 650;
}


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

@media (max-width: 1000px) {

    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 700px) {

    .topbar {
        height: auto;
        min-height: 72px;
        padding: 18px 20px;

        align-items: flex-start;
        gap: 16px;
    }

    .brand {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .portal-label {
        padding-left: 0;
        border-left: 0;
    }

    .client {
        max-width: 45%;
        text-align: right;
    }

    .navigation {
        padding: 0 20px;
        gap: 25px;

        overflow-x: auto;
    }

    .navigation a {
        flex-shrink: 0;
    }

    .dashboard {
        width: calc(100% - 40px);
        padding-top: 34px;
    }

    .page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .page-header h1 {
        font-size: 29px;
    }

    .kpi-grid {
        grid-template-columns: 1fr;
    }

    .date-selector {
        width: 100%;
    }
}
/* =========================================================
   TRAFFIC CHART
   ========================================================= */

.chart-container {
    position: relative;
    height: 370px;
    padding: 28px 26px 22px 18px;
}
/* =========================================================
   PERIOD SELECTOR
   ========================================================= */

.period-selector {
    display: flex;
    align-items: center;

    padding: 4px;

    background: #ffffff;
    border: 1px solid #dfe2e5;
    border-radius: 9px;
}

.period-selector a {
    padding: 8px 13px;

    color: #8a9097;
    text-decoration: none;

    font-size: 12px;
    font-weight: 500;

    border-radius: 6px;

    transition:
        background 0.15s ease,
        color 0.15s ease;
}

.period-selector a:hover {
    color: #202327;
}

.period-selector a.active {
    background: #17191c;
    color: #ffffff;
}

/* =========================================================
   WEBSITE EXTRA PANELS
   ========================================================= */

.website-extra-grid {
    margin-top: 16px;

    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.8fr);
    gap: 16px;
}

.data-list {
    padding: 5px 26px 16px;
}

.data-row {
    min-height: 49px;

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

    border-bottom: 1px solid #f0f1f2;

    color: #575c62;
    font-size: 13px;
}

.data-row:last-child {
    border-bottom: 0;
}

.data-row strong {
    flex-shrink: 0;

    color: #202327;
    font-size: 13px;
    font-weight: 650;
}

.data-name {
    min-width: 0;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 1000px) {

    .website-extra-grid {
        grid-template-columns: 1fr;
    }
}
/* ---------------------------------------------------------
   INTELLIGENCE
--------------------------------------------------------- */

.intelligence-signals {
    display: grid;
    gap: 18px;
    margin-top: 28px;
}

.intelligence-signal {
    display: flex;
    align-items: flex-start;
    gap: 18px;

    padding: 24px;

    background: #ffffff;
    border: 1px solid #e1e4e8;
    border-radius: 16px;
}

.intelligence-signal-marker {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 42px;
    width: 42px;
    height: 42px;

    border-radius: 50%;

    font-size: 22px;
    font-weight: 700;

    background: #f0f2f4;
    color: #202428;
}

.intelligence-signal-content {
    flex: 1;
}

.intelligence-signal-label {
    margin: 0 0 7px;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 0.08em;
    text-transform: uppercase;

    color: #8a939c;
}

.intelligence-signal-content h3 {
    margin: 0 0 8px;

    font-size: 21px;
    line-height: 1.25;

    color: #111418;
}

.intelligence-signal-content p:last-child {
    margin: 0;

    font-size: 16px;
    line-height: 1.55;

    color: #6f7881;
}


/* Positive signal */

.intelligence-signal-positive {
    border-left: 4px solid #4f7d65;
}

.intelligence-signal-positive .intelligence-signal-marker {
    background: #edf5f0;
    color: #4f7d65;
}


/* Attention signal */

.intelligence-signal-attention {
    border-left: 4px solid #b98238;
}

.intelligence-signal-attention .intelligence-signal-marker {
    background: #faf2e8;
    color: #b98238;
}


/* Stable signal */

.intelligence-signal-stable {
    border-left: 4px solid #8a939c;
}

.intelligence-signal-stable .intelligence-signal-marker {
    background: #f0f2f4;
    color: #6f7881;
}


/* Information signal */

.intelligence-signal-info {
    border-left: 4px solid #637b96;
}

.intelligence-signal-info .intelligence-signal-marker {
    background: #edf2f7;
    color: #637b96;
}


/* Empty state */

.intelligence-empty {
    margin-top: 28px;
    padding: 26px;

    border: 1px dashed #d5d9dd;
    border-radius: 14px;

    background: #fafbfc;
}

.intelligence-empty h3 {
    margin: 0 0 8px;
}

.intelligence-empty p {
    margin: 0;

    color: #7a838c;
}


/* Mobile */

@media (max-width: 700px) {

    .intelligence-signal {
        padding: 20px;
        gap: 14px;
    }

    .intelligence-signal-marker {
        flex-basis: 36px;
        width: 36px;
        height: 36px;

        font-size: 19px;
    }

    .intelligence-signal-content h3 {
        font-size: 19px;
    }
}
/* ---------------------------------------------------------
   INTELLIGENCE SIGNAL STRENGTH
--------------------------------------------------------- */

/* Minimal change */

.intelligence-signal-minimal {
    border-left: 4px solid #9aa3ab;
}

.intelligence-signal-minimal .intelligence-signal-marker {
    background: #f0f2f4;
    color: #7d8790;
}


/* Mild change */

.intelligence-signal-mild {
    border-left: 4px solid #7890a8;
}

.intelligence-signal-mild .intelligence-signal-marker {
    background: #eef3f7;
    color: #657f98;
}


/* Noticeable change */

.intelligence-signal-noticeable {
    border-left: 4px solid #c18a42;
}

.intelligence-signal-noticeable .intelligence-signal-marker {
    background: #faf3e9;
    color: #b27a32;
}


/* Strong change */

.intelligence-signal-strong {
    border-left: 4px solid #9a6a45;
}

.intelligence-signal-strong .intelligence-signal-marker {
    background: #f6eee8;
    color: #8d5f3c;
}


/* Limited / informational */

.intelligence-signal-info {
    border-left: 4px solid #8b96a1;
}

.intelligence-signal-info .intelligence-signal-marker {
    background: #f0f2f4;
    color: #77828c;
}

/* =========================================================
   BEACON INTELLIGENCE BRIEF
   Stage 8 — Attention Hierarchy
   ========================================================= */


/* ---------------------------------------------------------
   SHARED SECTION HEADINGS
   --------------------------------------------------------- */

.intelligence-brief-heading {
    margin-bottom: 24px;
}

.intelligence-brief-heading .eyebrow {
    margin-bottom: 12px;
}

.intelligence-brief-heading h2,
.intelligence-section-heading h2 {
    margin: 0;

    color: #17191c;
    font-weight: 650;
    letter-spacing: -0.025em;
}

.intelligence-brief-heading h2 {
    font-size: 25px;
}

.intelligence-section-heading h2 {
    font-size: 19px;
}

.intelligence-brief-heading > p:last-child,
.intelligence-section-heading > p {
    margin: 8px 0 0;

    color: #858b92;
    font-size: 13px;
    line-height: 1.5;
}


/* =========================================================
   PRIMARY
   Main intelligence stories
   ========================================================= */

.intelligence-brief-primary {
    margin-bottom: 44px;
}

.intelligence-primary-list {
    display: grid;
    gap: 14px;
}

.intelligence-primary-story {
    position: relative;

    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 20px;

    padding: 28px 30px;

    background: #ffffff;
    border-top: 1px solid #e1e4e8;
    border-right: 1px solid #e1e4e8;
    border-bottom: 1px solid #e1e4e8;
    border-radius: 12px;

    overflow: hidden;
}

.intelligence-primary-marker {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 46px;
    height: 46px;

    border-radius: 50%;

    background: #f1f3f5;
    color: #59626b;

    font-size: 22px;
    font-weight: 650;
}

.intelligence-primary-meta {
    margin-bottom: 9px;

    display: flex;
    align-items: center;
    gap: 8px;

    color: #9299a0;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.intelligence-primary-meta span + span::before {
    content: "·";
    margin-right: 8px;
}

.intelligence-primary-content h3 {
    margin: 0 0 9px;

    max-width: 900px;

    color: #15171a;

    font-size: 22px;
    line-height: 1.25;
    font-weight: 650;
    letter-spacing: -0.02em;
}

.intelligence-primary-content > p {
    margin: 0;

    max-width: 1050px;

    color: #697179;

    font-size: 14px;
    line-height: 1.6;
}


/* Primary marker follows strength */

.intelligence-primary-story.intelligence-signal-minimal
.intelligence-primary-marker {
    background: #f0f2f4;
    color: #7d8790;
}

.intelligence-primary-story.intelligence-signal-mild
.intelligence-primary-marker {
    background: #eef3f7;
    color: #657f98;
}

.intelligence-primary-story.intelligence-signal-noticeable
.intelligence-primary-marker {
    background: #faf3e9;
    color: #b27a32;
}

.intelligence-primary-story.intelligence-signal-strong
.intelligence-primary-marker {
    background: #f6eee8;
    color: #8d5f3c;
}

.intelligence-primary-story.intelligence-signal-info
.intelligence-primary-marker {
    background: #f0f2f4;
    color: #77828c;
}


/* =========================================================
   SECONDARY
   Relevant developments
   ========================================================= */

.intelligence-brief-secondary {
    margin-bottom: 44px;
}

.intelligence-section-heading {
    margin-bottom: 18px;
}

.intelligence-secondary-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.intelligence-secondary-item {
    min-width: 0;

    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 14px;

    padding: 20px 22px;

    background: #ffffff;

    border-top: 1px solid #e4e6e9;
    border-right: 1px solid #e4e6e9;
    border-bottom: 1px solid #e4e6e9;

    border-radius: 10px;
}

.intelligence-secondary-marker {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    border-radius: 50%;

    background: #f1f3f5;
    color: #68717a;

    font-size: 17px;
    font-weight: 650;
}

.intelligence-secondary-label {
    margin: 0 0 6px;

    color: #959ca3;

    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.intelligence-secondary-content h3 {
    margin: 0 0 7px;

    color: #202327;

    font-size: 16px;
    line-height: 1.3;
    font-weight: 650;
    letter-spacing: -0.01em;
}

.intelligence-secondary-content > p:last-child {
    margin: 0;

    color: #747c84;

    font-size: 12px;
    line-height: 1.55;
}


/* Secondary marker follows strength */

.intelligence-secondary-item.intelligence-signal-minimal
.intelligence-secondary-marker {
    background: #f0f2f4;
    color: #7d8790;
}

.intelligence-secondary-item.intelligence-signal-mild
.intelligence-secondary-marker {
    background: #eef3f7;
    color: #657f98;
}

.intelligence-secondary-item.intelligence-signal-noticeable
.intelligence-secondary-marker {
    background: #faf3e9;
    color: #b27a32;
}

.intelligence-secondary-item.intelligence-signal-strong
.intelligence-secondary-marker {
    background: #f6eee8;
    color: #8d5f3c;
}

.intelligence-secondary-item.intelligence-signal-info
.intelligence-secondary-marker {
    background: #f0f2f4;
    color: #77828c;
}


/* =========================================================
   DETAIL
   Supporting intelligence feed
   ========================================================= */

.intelligence-brief-detail {
    padding-top: 4px;
}

.intelligence-detail-list {
    background: #ffffff;

    border: 1px solid #e3e5e8;
    border-radius: 10px;

    overflow: hidden;
}

.intelligence-detail-item {
    min-height: 76px;

    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 13px;

    padding: 17px 20px;

    border-bottom: 1px solid #eceef0;
}

.intelligence-detail-item:last-child {
    border-bottom: 0;
}

.intelligence-detail-marker {
    padding-top: 1px;

    color: #90979e;

    font-size: 15px;
    font-weight: 650;
}

.intelligence-detail-label {
    margin: 0 0 3px;

    color: #9a9fa5;

    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.intelligence-detail-content h3 {
    margin: 0;

    color: #30343a;

    font-size: 14px;
    line-height: 1.35;
    font-weight: 650;
}

.intelligence-detail-content > p:last-child {
    margin: 4px 0 0;

    color: #858c93;

    font-size: 11px;
    line-height: 1.5;
}


/* =========================================================
   RESPONSIVE INTELLIGENCE BRIEF
   ========================================================= */

@media (max-width: 900px) {

    .intelligence-secondary-list {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 700px) {

    .intelligence-brief-primary,
    .intelligence-brief-secondary {
        margin-bottom: 36px;
    }

    .intelligence-primary-story {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 14px;

        padding: 22px 20px;
    }

    .intelligence-primary-marker {
        width: 36px;
        height: 36px;

        font-size: 18px;
    }

    .intelligence-primary-content h3 {
        font-size: 19px;
    }

    .intelligence-primary-content > p {
        font-size: 13px;
    }

    .intelligence-secondary-item {
        padding: 18px;
    }

    .intelligence-detail-item {
        padding: 15px 16px;
    }
}

/* =========================================================
   INTELLIGENCE SOURCES / EVIDENCE
   ========================================================= */

.intelligence-sources {
    margin-top: 12px !important;

    color: #9aa1a8 !important;

    font-size: 10px !important;
    line-height: 1.4 !important;

    font-weight: 600 !important;
    letter-spacing: 0.035em;
}

.intelligence-primary-content .intelligence-sources {
    margin-top: 14px !important;
}

.intelligence-secondary-content .intelligence-sources {
    margin-top: 9px !important;

    font-size: 9px !important;
}

.intelligence-detail-content .intelligence-sources {
    margin-top: 5px !important;

    font-size: 9px !important;
}

/* =========================================================
   CONTEXT TIMELINE
   Beacon Internal Analyst Tool
   ========================================================= */


/* ---------------------------------------------------------
   PANELS
   --------------------------------------------------------- */

.context-panel {
    margin-bottom: 18px;
    padding: 28px 30px;

    overflow: visible;
}

.context-section-heading {
    margin-bottom: 26px;
}

.context-section-heading .eyebrow {
    margin-bottom: 9px;
}

.context-section-heading h2 {
    margin: 0;

    color: #17191c;

    font-size: 20px;
    line-height: 1.25;
    font-weight: 650;
    letter-spacing: -0.02em;
}

.context-section-heading > p:last-child {
    max-width: 680px;
    margin: 8px 0 0;

    color: #858b92;

    font-size: 13px;
    line-height: 1.55;
}


/* ---------------------------------------------------------
   FORM
   --------------------------------------------------------- */

.context-form {
    max-width: 900px;
}

.context-form-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;

    margin-bottom: 18px;
}

.context-field {
    min-width: 0;
}

/* Ask stays a focused Intelligence workspace, without a message transcript. */
.ask-workspace .panel { margin-bottom: 24px; padding: 24px; }
.ask-period, .ask-back { color: #6b777b; font-size: 13px; }
.ask-back { align-self: center; }
.ask-continuation { padding: 12px 16px; border-left: 3px solid #319487; background: #f5f8f7; }
.ask-suggestions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.ask-suggestion { background: #f5f8f7; border: 1px solid #dfe6e5; border-radius: 10px; padding: 10px 14px; color: #243234; font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.ask-submit { background: #172123; color: white; border: 0; border-radius: 10px; padding: 12px 20px; font: inherit; cursor: pointer; }
.ask-suggestion:focus-visible, .ask-submit:focus-visible { outline: 2px solid #319487; outline-offset: 3px; }
.ask-workspace button:disabled { opacity: 0.6; cursor: wait; }
.ask-answer { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 16px; line-height: 1.75; }
.ask-result h2 { font-size: 16px; margin-top: 24px; }
.ask-workspace [hidden] { display: none; }

.context-field-span-2 {
    grid-column: span 2;
}

.context-field-wide {
    margin-bottom: 18px;
}

.context-form-error {
    max-width: 900px;
    margin: 0 0 18px;
    padding: 10px 12px;

    border: 1px solid #ead8d1;
    border-radius: 7px;

    color: #815947;
    background: #fbf6f3;

    font-size: 12px;
    line-height: 1.5;
}

.context-field label {
    display: block;

    margin-bottom: 7px;

    color: #626970;

    font-size: 11px;
    line-height: 1;
    font-weight: 650;
    letter-spacing: 0.035em;
}

.context-field input,
.context-field select,
.context-field textarea {
    width: 100%;

    padding: 10px 12px;

    background: #ffffff;

    border: 1px solid #dfe2e5;
    border-radius: 7px;

    color: #202327;

    font-family: inherit;
    font-size: 13px;
    line-height: 1.4;

    outline: none;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.context-field input,
.context-field select {
    min-height: 40px;
}

.context-field textarea {
    min-height: 100px;

    resize: vertical;
}

.context-field input::placeholder,
.context-field textarea::placeholder {
    color: #a3a8ad;
}

.context-field input:focus,
.context-field select:focus,
.context-field textarea:focus {
    border-color: #9ca3aa;

    box-shadow:
        0 0 0 3px rgba(23, 25, 28, 0.05);
}


/* ---------------------------------------------------------
   FORM ACTION
   --------------------------------------------------------- */

.context-form-actions {
    display: flex;
    align-items: center;

    margin-top: 4px;
}

.context-primary-button {
    padding: 10px 17px;

    background: #17191c;
    color: #ffffff;

    border: 1px solid #17191c;
    border-radius: 7px;

    font-family: inherit;
    font-size: 12px;
    font-weight: 650;

    cursor: pointer;

    transition:
        background 0.15s ease,
        border-color 0.15s ease;
}

.context-primary-button:hover {
    background: #30343a;
    border-color: #30343a;
}


/* ---------------------------------------------------------
   TIMELINE
   --------------------------------------------------------- */

.context-timeline {
    position: relative;

    max-width: 920px;
}

.context-timeline::before {
    content: "";

    position: absolute;
    top: 7px;
    bottom: 7px;
    left: 5px;

    width: 1px;

    background: #e1e4e7;
}

.context-timeline-item {
    position: relative;

    display: grid;
    grid-template-columns: 12px minmax(0, 1fr);
    gap: 18px;

    padding-bottom: 28px;
}

.context-timeline-item:last-child {
    padding-bottom: 0;
}

.context-timeline-marker {
    position: relative;
    z-index: 1;

    width: 11px;
    height: 11px;

    margin-top: 5px;

    background: #ffffff;

    border: 2px solid #7e878f;
    border-radius: 50%;
}

.context-timeline-content {
    min-width: 0;

    padding-bottom: 2px;
}

.context-timeline-meta {
    margin-bottom: 8px;

    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;

    color: #969ca2;

    font-size: 9px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

.context-timeline-meta span + span::before {
    content: "·";

    margin-right: 7px;

    color: #c0c4c8;
}

.context-timeline-meta .context-date {
    color: #666e76;
}

.context-timeline-content h3 {
    max-width: 760px;

    margin: 0;

    color: #202327;

    font-size: 16px;
    line-height: 1.45;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.context-timeline-change {
    margin: 10px 0 0;

    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;

    color: #626970;

    font-size: 11px;
    line-height: 1.45;
}

.context-timeline-details {
    margin-top: 9px;

    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;

    color: #8b9299;

    font-size: 10px;
    line-height: 1.45;
}

.context-timeline-details span + span::before {
    content: "·";

    margin-right: 8px;

    color: #c3c7ca;
}

.context-timeline-objective {
    max-width: 760px;
    margin: 10px 0 0;

    color: #737b83;

    font-size: 11px;
    line-height: 1.55;
}

.context-timeline-objective strong {
    color: #596169;
    font-weight: 650;
}


/* ---------------------------------------------------------
   DELETE
   --------------------------------------------------------- */

.context-delete-form {
    margin-top: 11px;
}

.context-delete-button {
    padding: 5px 9px;

    background: transparent;
    color: #92989e;

    border: 1px solid #dfe2e5;
    border-radius: 6px;

    font-family: inherit;
    font-size: 10px;
    font-weight: 600;

    cursor: pointer;

    transition:
        color 0.15s ease,
        border-color 0.15s ease,
        background 0.15s ease;
}

.context-delete-button:hover {
    background: #f5f6f8;
    color: #3f454b;
    border-color: #cfd3d7;
}


/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 1000px) {

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


@media (max-width: 700px) {

    .context-panel {
        padding: 22px 20px;
    }

    .context-form-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .context-field-span-2 {
        grid-column: span 1;
    }

    .context-field-wide {
        margin-bottom: 14px;
    }

    .context-primary-button {
        width: 100%;
    }

    .context-timeline-item {
        gap: 14px;
    }

    .context-timeline-content h3 {
        font-size: 15px;
    }
}

/* =========================================================
   BEACON BUSINESS STORIES
   Editorial Intelligence Layer
   ========================================================= */

.business-stories {
    margin: 8px 0 52px;
}

.business-stories-heading {
    margin-bottom: 22px;
}

.business-stories-heading .eyebrow {
    margin-bottom: 12px;
}

.business-stories-heading h2 {
    margin: 0;

    color: #17191c;

    font-size: 25px;
    line-height: 1.25;
    font-weight: 650;
    letter-spacing: -0.025em;
}

.business-stories-heading > p:last-child {
    margin: 8px 0 0;

    color: #858b92;

    font-size: 13px;
    line-height: 1.5;
}


/* ---------------------------------------------------------
   STORY
   --------------------------------------------------------- */

.business-story-list {
    display: grid;
    gap: 22px;
}

.business-story {
    position: relative;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid #dedfe1;
    border-radius: 16px;
}


/* Quiet Beacon accent */

.business-story::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;

    width: 4px;
    height: 100%;

    background: #9a6a45;
}


/* ---------------------------------------------------------
   STORY HEADER / INTERPRETATION
   --------------------------------------------------------- */

.business-story-header {
    padding: 32px 36px 30px;
}

.business-story-labels {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;

    margin-bottom: 16px;
}

.business-story-theme,
.business-story-pattern {
    font-size: 10px;
    line-height: 1;
    font-weight: 700;

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

.business-story-theme {
    color: #7d858d;
}

.business-story-pattern {
    padding-left: 9px;

    border-left: 1px solid #d9dcdf;

    color: #9a6a45;
}

.business-story-title {
    max-width: 900px;

    margin: 0 0 14px;

    color: #111418;

    font-size: 29px;
    line-height: 1.2;
    font-weight: 650;

    letter-spacing: -0.03em;
}

.business-story-message {
    max-width: 1050px;

    margin: 0;

    color: #626b73;

    font-size: 15px;
    line-height: 1.65;
}


/* ---------------------------------------------------------
   EVIDENCE
   --------------------------------------------------------- */

.business-story-evidence {
    padding: 24px 36px 27px;

    border-top: 1px solid #eceef0;

    background: #fafafa;
}

.business-story-section-label {
    margin: 0 0 15px;

    color: #9299a0;

    font-size: 9px;
    line-height: 1;
    font-weight: 700;

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

.business-story-metrics {
    display: grid;

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

    gap: 0;
}

.business-story-metric {
    min-width: 0;

    padding: 2px 24px 2px 0;
}

.business-story-metric
+ .business-story-metric {
    padding-left: 24px;

    border-left: 1px solid #e1e4e7;
}

.business-story-metric-label {
    display: block;

    margin-bottom: 7px;

    color: #7b838b;

    font-size: 11px;
    line-height: 1.35;
    font-weight: 600;
}

.business-story-metric strong {
    display: block;

    color: #17191c;

    font-size: 23px;
    line-height: 1;
    font-weight: 650;

    letter-spacing: -0.025em;
}


/* ---------------------------------------------------------
   CONTEXT
   Context is evidence, not causality
   --------------------------------------------------------- */

.business-story-context {
    padding: 23px 36px 25px;

    border-top: 1px solid #eceef0;
}

.business-story-context-event {
    max-width: 1000px;
}

.business-story-context-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;

    margin-bottom: 7px;

    color: #9299a0;

    font-size: 10px;
    line-height: 1.3;
    font-weight: 650;
}

.business-story-context-meta
span + span::before {
    content: "·";

    margin-right: 8px;
}

.business-story-context-event p {
    margin: 0;

    color: #4f565d;

    font-size: 13px;
    line-height: 1.55;
}

.business-story-context-note {
    margin: 14px 0 0;

    color: #9a9fa5;

    font-size: 10px;
    line-height: 1.5;
}


/* =========================================================
   RESPONSIVE BUSINESS STORIES
   ========================================================= */

@media (max-width: 800px) {

    .business-stories {
        margin-bottom: 40px;
    }

    .business-story-header {
        padding: 26px 24px 24px;
    }

    .business-story-title {
        font-size: 24px;
    }

    .business-story-message {
        font-size: 14px;
    }

    .business-story-evidence,
    .business-story-context {
        padding-left: 24px;
        padding-right: 24px;
    }

    .business-story-metrics {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .business-story-metric {
        padding: 0;
    }

    .business-story-metric
    + .business-story-metric {
        padding: 16px 0 0;

        border-left: 0;
        border-top: 1px solid #e1e4e7;
    }
}


@media (max-width: 500px) {

    .business-story-header {
        padding: 23px 20px 22px;
    }

    .business-story-title {
        font-size: 21px;
    }

    .business-story-evidence,
    .business-story-context {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* =========================================================
   BUSINESS PULSE
   Persistent business snapshot
   ========================================================= */

.business-pulse {
    margin: 0 0 48px;
}

.business-pulse > .eyebrow {
    margin-bottom: 12px;
}

.business-pulse-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));

    gap: 1px;

    background: #e3e5e8;
    border: 1px solid #e3e5e8;
    border-radius: 14px;

    overflow: hidden;
}

.business-pulse-item {
    min-width: 0;
    min-height: 122px;

    padding: 22px 24px;

    display: flex;
    flex-direction: column;

    background: #ffffff;
}

.business-pulse-label {
    margin-bottom: 18px;

    color: #7d858d;

    font-size: 10px;
    line-height: 1.3;
    font-weight: 700;

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

.business-pulse-value {
    display: block;

    color: #17191c;

    font-size: 29px;
    line-height: 1;
    font-weight: 650;

    letter-spacing: -0.035em;
}

.business-pulse-change {
    margin-top: auto;
    padding-top: 13px;

    color: #59626b;

    font-size: 11px;
    line-height: 1.3;
    font-weight: 650;
}

.business-pulse-change span {
    margin-left: 4px;

    color: #9aa0a6;
    font-weight: 500;
}

.business-pulse-item-unavailable .business-pulse-label {
    color: #a1a6ab;
}

.business-pulse-item-unavailable .business-pulse-value {
    color: #c0c4c8;
}


/* =========================================================
   INTELLIGENCE OWNER BRIEF
   ========================================================= */

.intelligence-situation,
.intelligence-attention {
    margin-bottom: 48px;
}

.intelligence-situation .intelligence-brief-heading {
    margin-bottom: 16px;
}

.intelligence-situation-card .business-story-title {
    font-size: 27px;
}

.intelligence-attention-item .business-story-title {
    font-size: 23px;
}

.intelligence-measurement-note {
    padding: 16px 36px;

    border-top: 1px solid #eceef0;

    color: #7d858d;
    background: #fafafa;

    font-size: 11px;
    line-height: 1.55;
}

.intelligence-other-signals {
    margin-bottom: 24px;
}

.intelligence-signal-disclosure {
    overflow: hidden;

    background: #ffffff;
    border: 1px solid #e3e5e8;
    border-radius: 12px;
}

.intelligence-signal-disclosure summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 20px 22px;

    color: #30343a;

    cursor: pointer;
    list-style: none;
}

.intelligence-signal-disclosure summary::-webkit-details-marker {
    display: none;
}

.intelligence-signal-disclosure summary > span:first-child {
    display: grid;
    gap: 4px;
}

.intelligence-signal-disclosure summary strong {
    font-size: 15px;
    font-weight: 650;
}

.intelligence-signal-disclosure summary small {
    color: #858c93;
    font-size: 11px;
    line-height: 1.4;
}

.intelligence-signal-count {
    min-width: 28px;
    padding: 5px 8px;

    border-radius: 999px;

    color: #7d858d;
    background: #f1f3f5;

    font-size: 10px;
    font-weight: 700;
    text-align: center;
}

.intelligence-signal-disclosure[open] summary {
    border-bottom: 1px solid #e3e5e8;
}

.intelligence-signal-disclosure .intelligence-detail-list {
    border: 0;
    border-radius: 0;
}


@media (max-width: 700px) {

    .intelligence-situation,
    .intelligence-attention {
        margin-bottom: 38px;
    }

    .intelligence-situation-card .business-story-title,
    .intelligence-attention-item .business-story-title {
        font-size: 21px;
    }

    .intelligence-measurement-note {
        padding: 15px 20px;
    }
}


/* ---------------------------------------------------------
   BUSINESS PULSE — TABLET
   --------------------------------------------------------- */

@media (max-width: 1000px) {

    .business-pulse-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}


/* ---------------------------------------------------------
   BUSINESS PULSE — PHONE
   Fast scan, minimal vertical space
   --------------------------------------------------------- */

@media (max-width: 700px) {

    .business-pulse {
        margin-bottom: 38px;
    }

    .business-pulse-grid {
        grid-template-columns: 1fr;
        border-radius: 12px;
    }

    .business-pulse-item {
        min-height: 0;

        padding: 16px 18px;

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

        column-gap: 18px;
        row-gap: 4px;
    }

    .business-pulse-label {
        grid-column: 1;
        grid-row: 1 / 3;

        align-self: center;

        margin: 0;

        font-size: 10px;
    }

    .business-pulse-value {
        grid-column: 2;
        grid-row: 1;

        text-align: right;

        font-size: 23px;
    }

    .business-pulse-change {
        grid-column: 2;
        grid-row: 2;

        margin: 0;
        padding: 0;

        text-align: right;

        font-size: 10px;
    }

    .business-pulse-change span {
        display: none;
    }

    .business-pulse-item-unavailable
    .business-pulse-value {
        grid-row: 1 / 3;

        align-self: center;
    }

}
