/* ==========================================================================
   AUTONOMOUS REVENUE ENGINE (STANDALONE COMING SOON VISUALIZER)
   Color Palette: Deep Navy (#0C0C27), Royal Blue (#0372E2), Ice Blue (#ADE3FF), Pure White (#FFFFFF)
   ========================================================================== */

:root {
    --color-navy: #0C0C27;
    --color-primary: #0372E2;
    --color-ice: #ADE3FF;
    --color-border: #E2ECF7;
    --color-bg-tint: #F0F8FF;
    --color-white: #FFFFFF;
    --text-main: #0C0C27;
    --text-muted: #64748B;
    --text-body: #526077;
    --ease-out: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #FAFCFE;
    background-image: 
        radial-gradient(circle at 50% 35%, rgba(173, 227, 255, 0.3) 0%, transparent 60%),
        radial-gradient(circle at 10% 15%, rgba(3, 114, 226, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 90% 85%, rgba(173, 227, 255, 0.2) 0%, transparent 45%);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.pipeline-page-wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.pipeline-container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0;
}

/* ==========================================================================
   SECTION HEADER & COMING SOON BADGE
   ========================================================================== */
.omni-pipeline-section {
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    position: relative;
}

.pipeline-header {
    text-align: center;
    max-width: 840px;
    margin: 0 auto 52px;
}

.section-tag,
.caveat-tag {
    font-family: 'Caveat', cursive, sans-serif !important;
    display: inline-block;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.pipeline-section-heading {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 44px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--color-navy);
    margin: 0;
}

.pipeline-heading-highlight {
    color: var(--color-primary);
    position: relative;
    display: inline-block;
}

/* ==========================================================================
   DIAGRAM STAGE (1160px x 520px PRECISION COORDINATE SYSTEM)
   ========================================================================== */
.pipeline-diagram-wrapper {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    position: relative;
    user-select: none;
}

.pipeline-stage {
    position: relative;
    width: 1160px;
    height: 520px;
    margin: 0 auto;
    transform-origin: top center;
}

/* Layer 1: Background SVG Bezier Connectors */
.pipeline-connector-svg {
    position: absolute;
    inset: 0;
    width: 1160px;
    height: 520px;
    pointer-events: none;
    z-index: 1;
    overflow: visible;
}

.flow-trace-bg {
    stroke: #D2E6F7;
    stroke-width: 2.2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.flow-trace-pulse {
    stroke-width: 4px;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dashoffset: 100;
    animation: pipelineFlowAnim 2.6s linear infinite;
}

.pulse-wa    { stroke: #25D366; stroke-dasharray: 26 74; animation-delay: 0s;   filter: drop-shadow(0 0 5px rgba(37, 211, 102, 0.8)); }
.pulse-ig    { stroke: #E1306C; stroke-dasharray: 32 68; animation-delay: 0.5s; filter: drop-shadow(0 0 5px rgba(225, 48, 108, 0.8)); }
.pulse-fb    { stroke: #0084FF; stroke-dasharray: 44 56; animation-delay: 1.0s; filter: drop-shadow(0 0 5px rgba(0, 132, 255, 0.8)); }
.pulse-web   { stroke: #0284C7; stroke-dasharray: 32 68; animation-delay: 1.5s; filter: drop-shadow(0 0 5px rgba(2, 132, 199, 0.8)); }
.pulse-email { stroke: #FF6B4A; stroke-dasharray: 26 74; animation-delay: 2.0s; filter: drop-shadow(0 0 5px rgba(255, 107, 74, 0.8)); }

.pulse-out-1 { stroke: #0372E2; stroke-dasharray: 26 74; animation-delay: 0.3s; filter: drop-shadow(0 0 5px rgba(3, 114, 226, 0.8)); }
.pulse-out-2 { stroke: #0372E2; stroke-dasharray: 33 67; animation-delay: 0.8s; filter: drop-shadow(0 0 5px rgba(3, 114, 226, 0.8)); }
.pulse-out-3 { stroke: #0372E2; stroke-dasharray: 33 67; animation-delay: 1.3s; filter: drop-shadow(0 0 5px rgba(3, 114, 226, 0.8)); }
.pulse-out-4 { stroke: #0372E2; stroke-dasharray: 26 74; animation-delay: 1.8s; filter: drop-shadow(0 0 5px rgba(3, 114, 226, 0.8)); }

@keyframes pipelineFlowAnim {
    0% {
        stroke-dashoffset: 100;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        stroke-dashoffset: 0;
        opacity: 0;
    }
}

.flow-port-dot,
.flow-hub-dot {
    transition: all 0.3s ease;
    animation: flowDotPulse 3s ease-in-out infinite;
}

.dot-wa    { fill: #25D366; color: #25D366; animation-delay: 0s; }
.dot-ig    { fill: #E1306C; color: #E1306C; animation-delay: 0.5s; }
.dot-fb    { fill: #0084FF; color: #0084FF; animation-delay: 1.0s; }
.dot-web   { fill: #0284C7; color: #0284C7; animation-delay: 1.5s; }
.dot-email { fill: #FF6B4A; color: #FF6B4A; animation-delay: 2.0s; }
.dot-out   { fill: #0372E2; color: #0372E2; animation-delay: 0.5s; }

@keyframes flowDotPulse {
    0%, 100% {
        r: 4;
        opacity: 0.65;
    }
    50% {
        r: 6;
        opacity: 1;
        filter: drop-shadow(0 0 6px currentColor);
    }
}

/* ==========================================================================
   LAYER 2: LEFT COLUMN (5 INBOUND CHANNELS)
   ========================================================================== */
.p-col-left {
    position: absolute;
    left: 0;
    top: 10px;
    width: 330px;
    height: 484px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 2;
}

.p-channel-card {
    position: relative;
    width: 330px;
    height: 68px;
    border-radius: 16px;
    background: var(--color-white);
    border: 1.5px solid var(--color-border);
    box-shadow: 0 2px 4px rgba(12, 12, 39, 0.02), 0 8px 22px -4px rgba(12, 12, 39, 0.06);
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-sizing: border-box;
    cursor: pointer;
    transition: var(--ease-out);
}

.p-channel-card:hover {
    transform: translateX(-4px);
}

.card-wa:hover    { border-color: #25D366; box-shadow: 0 12px 26px -6px rgba(37, 211, 102, 0.25); }
.card-ig:hover    { border-color: #E1306C; box-shadow: 0 12px 26px -6px rgba(225, 48, 108, 0.25); }
.card-fb:hover    { border-color: #1877F2; box-shadow: 0 12px 26px -6px rgba(24, 119, 242, 0.25); }
.card-web:hover   { border-color: #0284C7; box-shadow: 0 12px 26px -6px rgba(2, 132, 199, 0.25); }
.card-email:hover { border-color: #FF6B4A; box-shadow: 0 12px 26px -6px rgba(255, 107, 74, 0.25); }

.p-channel-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.p-channel-card:hover .p-channel-icon-wrap {
    transform: scale(1.08);
}

.bg-wa-icon    { background: #25D366; box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35); }
.bg-ig-icon    { background: linear-gradient(135deg, #F58529 0%, #DD2A7B 50%, #8134AF 100%); box-shadow: 0 4px 12px rgba(221, 42, 123, 0.35); }
.bg-fb-icon    { background: #1877F2; box-shadow: 0 4px 12px rgba(24, 119, 242, 0.35); }
.bg-web-icon   { background: #0284C7; box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35); }
.bg-email-icon { background: #FF6B4A; box-shadow: 0 4px 12px rgba(255, 107, 74, 0.35); }

.p-channel-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.p-channel-title {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-navy);
    line-height: 1.25;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.p-channel-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.35;
    white-space: nowrap;
}

.p-card-dock {
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-white);
    border: 2.5px solid #CBD5E1;
    box-shadow: 0 0 6px rgba(0,0,0,0.1);
    z-index: 3;
    transition: all 0.3s ease;
}

.dock-wa    { border-color: #25D366; }
.dock-ig    { border-color: #E1306C; }
.dock-fb    { border-color: #1877F2; }
.dock-web   { border-color: #0284C7; }
.dock-email { border-color: #FF6B4A; }

.p-channel-card:hover .p-card-dock {
    transform: translateY(-50%) scale(1.3);
    filter: drop-shadow(0 0 6px currentColor);
}

/* ==========================================================================
   LAYER 3: CENTER COLUMN (AUTONOMOUS AI CORE)
   ========================================================================== */
.p-col-center {
    position: absolute;
    left: 506px;
    top: 178px;
    width: 148px;
    height: 148px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.p-hub-radar {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px dashed rgba(3, 114, 226, 0.35);
    pointer-events: none;
    animation: hubRadarPulse 4.5s cubic-bezier(0.2, 0.8, 0.4, 1) infinite;
}

.radar-1 { animation-delay: 0s; }
.radar-2 { animation-delay: 1.5s; }
.radar-3 { animation-delay: 3s; }

@keyframes hubRadarPulse {
    0% {
        transform: scale(0.95);
        opacity: 0.85;
        border-color: rgba(3, 114, 226, 0.55);
    }
    70% {
        opacity: 0.25;
        border-color: rgba(3, 114, 226, 0.25);
    }
    100% {
        transform: scale(2.15);
        opacity: 0;
        border-color: rgba(3, 114, 226, 0);
    }
}

.p-hub-top-pill {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-white);
    border: 1.5px solid #C4E0FA;
    border-radius: 999px;
    padding: 5px 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--color-primary);
    white-space: nowrap;
    box-shadow: 0 6px 18px rgba(3, 114, 226, 0.12);
    z-index: 4;
}

.p-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #16A34A;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.25);
    animation: liveDotBlink 2s ease-in-out infinite;
}

@keyframes liveDotBlink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(0.85); }
}

.p-hub-orb {
    width: 148px;
    height: 148px;
    border-radius: 50%;
    background: linear-gradient(145deg, #FFFFFF 0%, #EFF7FF 100%);
    border: 2px solid #C4E0FA;
    box-shadow:
        0 20px 48px -10px rgba(3, 114, 226, 0.22),
        0 0 0 12px rgba(226, 243, 255, 0.6),
        inset 0 2px 8px rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 3;
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.p-hub-orb:hover {
    transform: scale(1.05);
    box-shadow:
        0 26px 56px -8px rgba(3, 114, 226, 0.32),
        0 0 0 14px rgba(173, 227, 255, 0.7);
}

.p-hub-inner-ring {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 35%, #FFFFFF 0%, #E3F2FF 100%);
    border: 1.5px solid #B4DBFA;
    display: flex;
    align-items: center;
    justify-content: center;
}

.p-hub-logo-box {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    background: linear-gradient(135deg, #0C0C27 0%, #0372E2 100%);
    box-shadow: 0 10px 24px rgba(3, 114, 226, 0.42);
    display: flex;
    align-items: center;
    justify-content: center;
}

.p-hub-bottom-pill {
    position: absolute;
    bottom: -42px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-navy);
    color: var(--color-white);
    border-radius: 999px;
    padding: 5px 15px;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.03em;
    white-space: nowrap;
    box-shadow: 0 8px 22px rgba(12, 12, 39, 0.2);
    z-index: 4;
    border: 1px solid rgba(255,255,255,0.12);
}

/* ==========================================================================
   LAYER 4: RIGHT COLUMN (4 BUSINESS OUTCOMES)
   ========================================================================== */
.p-col-right {
    position: absolute;
    left: 830px;
    top: 10px;
    width: 330px;
    height: 484px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 2;
}

.p-outcome-card {
    position: relative;
    width: 330px;
    height: 82px;
    border-radius: 16px;
    background: var(--color-white);
    border: 1.5px solid var(--color-border);
    box-shadow: 0 2px 4px rgba(12, 12, 39, 0.02), 0 8px 22px -4px rgba(12, 12, 39, 0.06);
    padding: 0 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
    cursor: pointer;
    transition: var(--ease-out);
}

.p-outcome-card:hover {
    transform: translateX(4px);
}

.card-out-lead:hover    { border-color: #25D366; box-shadow: 0 14px 32px -8px rgba(22, 163, 74, 0.18); }
.card-out-meeting:hover { border-color: #0284C7; box-shadow: 0 14px 32px -8px rgba(2, 132, 199, 0.18); }
.card-out-deal:hover    { border-color: #9333EA; box-shadow: 0 14px 32px -8px rgba(147, 51, 234, 0.18); }
.card-out-revenue:hover { border-color: #EA580C; box-shadow: 0 14px 32px -8px rgba(234, 88, 12, 0.18); }

.p-card-dock-left {
    position: absolute;
    left: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-white);
    border: 2.5px solid var(--color-primary);
    box-shadow: 0 0 6px rgba(3, 114, 226, 0.2);
    z-index: 3;
    transition: all 0.3s ease;
}

.p-outcome-card:hover .p-card-dock-left {
    transform: translateY(-50%) scale(1.3);
    filter: drop-shadow(0 0 6px var(--color-primary));
}

.p-outcome-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tile-green  { background: #DCFCE7; border: 1px solid #BBF7D0; }
.tile-blue   { background: #E0F2FE; border: 1px solid #BAE6FD; }
.tile-purple { background: #F3E8FF; border: 1px solid #E9D5FF; }
.tile-amber  { background: #FFEDD5; border: 1px solid #FED7AA; }

.p-outcome-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.p-outcome-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.p-outcome-title {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--color-navy);
    letter-spacing: -0.015em;
    line-height: 1.25;
    white-space: nowrap;
}

.p-outcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 9.5px;
    font-weight: 600;
    padding: 2.5px 7px;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.01em;
}

.badge-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.badge-green  { background: #DCFCE7; color: #15803D; }
.badge-blue   { background: #E0F2FE; color: #0369A1; }
.badge-purple { background: #F3E8FF; color: #7E22CE; }
.badge-amber  { background: #FFEDD5; color: #C2410C; }

.p-outcome-desc {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-body);
    line-height: 1.35;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.desktop-svg {
    display: block;
}

.mobile-svg {
    display: none;
}

.mobile-pipeline-legend {
    display: none;
}

/* ==========================================================================
   RESPONSIVE LAYOUT (< 1200px and <= 768px)
   ========================================================================== */
@media (max-width: 1200px) and (min-width: 769px) {
    .pipeline-diagram-wrapper {
        overflow: visible;
        display: flex;
        justify-content: center;
        width: 100%;
        padding: 0;
    }
    .pipeline-stage {
        transform-origin: top center;
        transform: scale(calc((100vw - 40px) / 1160));
        margin-bottom: calc(520px * (calc((100vw - 40px) / 1160) - 1));
    }
}

@media (max-width: 768px) {
    body {
        padding: 30px 12px;
    }

    .omni-pipeline-section {
        padding: 0;
        border-radius: 0;
    }

    .pipeline-header {
        margin-bottom: 28px;
    }

    .pipeline-section-heading {
        font-size: 28px;
        line-height: 1.25;
    }

    .pipeline-diagram-wrapper {
        max-width: 100%;
        padding: 0;
        overflow-x: visible;
    }

    /* Switch SVG Connector Layers */
    .desktop-svg {
        display: none !important;
    }

    .mobile-svg {
        display: block !important;
        position: absolute;
        inset: 0;
        width: 100%;
        height: 380px;
        pointer-events: none;
        z-index: 1;
    }

    /* Mobile Stage Coordinate Container */
    .pipeline-stage {
        width: 100%;
        max-width: 360px;
        height: 380px;
        margin: 0 auto;
        position: relative;
    }

    /* Left Column: 5 Compact Channel Icons */
    .p-col-left {
        position: absolute;
        left: 10px;
        top: 10px;
        width: 44px;
        height: 360px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        z-index: 2;
    }

    .p-channel-card {
        width: 44px;
        height: 44px;
        padding: 0;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1.5px solid var(--color-border);
        box-shadow: 0 4px 14px rgba(12, 12, 39, 0.08);
    }

    .p-channel-card:hover {
        transform: scale(1.08);
    }

    .p-channel-icon-wrap {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

    .p-channel-info,
    .p-card-dock {
        display: none !important;
    }

    /* Center AI Engine Hub - Compact Mobile Orb */
    .p-col-center {
        position: absolute;
        left: 140px;
        top: 150px;
        width: 80px;
        height: 80px;
        z-index: 3;
    }

    .p-hub-orb {
        width: 80px;
        height: 80px;
        box-shadow:
            0 12px 28px -4px rgba(3, 114, 226, 0.28),
            0 0 0 6px rgba(226, 243, 255, 0.65),
            inset 0 1px 4px rgba(255, 255, 255, 0.95);
    }

    .p-hub-inner-ring {
        width: 60px;
        height: 60px;
    }

    .p-hub-logo-box {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .p-hub-logo-box svg {
        width: 22px;
        height: 22px;
    }

    .p-hub-top-pill {
        top: -28px;
        padding: 3px 9px;
        font-size: 8.5px;
        gap: 4px;
    }

    .p-live-dot {
        width: 5px;
        height: 5px;
    }

    .p-hub-bottom-pill {
        bottom: -28px;
        padding: 3px 9px;
        font-size: 8px;
        letter-spacing: 0.03em;
    }

    /* Right Column: 4 Compact Outcome Icons */
    .p-col-right {
        position: absolute;
        left: auto;
        right: 10px;
        top: 10px;
        width: 44px;
        height: 360px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        z-index: 2;
    }

    .p-outcome-card {
        width: 44px;
        height: 44px;
        padding: 0;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1.5px solid var(--color-border);
        box-shadow: 0 4px 14px rgba(12, 12, 39, 0.08);
    }

    .p-outcome-card:hover {
        transform: scale(1.08);
    }

    .p-outcome-icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

    .p-outcome-body,
    .p-card-dock-left {
        display: none !important;
    }

    /* Mobile Outcome Step Cards (Full-Width Clean Sequence) */
    .mobile-pipeline-legend {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        max-width: 360px;
        margin: 28px auto 0;
        padding: 0 4px;
        box-sizing: border-box;
    }

    .m-legend-card {
        background: var(--color-white);
        border: 1.5px solid var(--color-border);
        border-radius: 14px;
        padding: 10px 14px;
        display: flex;
        align-items: center;
        gap: 12px;
        box-shadow: 0 2px 8px rgba(12, 12, 39, 0.04);
        box-sizing: border-box;
        transition: transform 0.2s ease, border-color 0.2s ease;
    }

    .m-legend-card:hover {
        transform: translateY(-2px);
        border-color: #CBD5E1;
    }

    .m-legend-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .m-legend-text {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-width: 0;
        gap: 2px;
    }

    .m-legend-title {
        font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
        font-size: 13px;
        font-weight: 600;
        color: var(--color-navy);
        line-height: 1.25;
        letter-spacing: -0.01em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .m-legend-sub {
        font-family: 'Inter', sans-serif;
        font-size: 11px;
        color: var(--text-muted);
        line-height: 1.3;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .m-legend-badge {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
        font-size: 9.5px;
        font-weight: 600;
        padding: 2.5px 7px;
        border-radius: 999px;
        white-space: nowrap;
        flex-shrink: 0;
    }
}
