/**
 * Trajectory / Analytics — React v3
 */
body.zl-trajectory-v3 {
    --zl-traj-accent: #7da82a;
    --zl-traj-accent-bright: #c9ff57;
    --zl-traj-health: #ff7eb3;
    --zl-traj-money: #ffd166;
    --zl-traj-canvas: #f4f4f8;
}

body.zl-trajectory-v3 .main-content {
    background: var(--zl-traj-canvas) !important;
}

body.zl-trajectory-v3 .zl-shell-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

body.zl-trajectory-v3 .zl-shell-header .zl-display {
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: #1a1a1f;
}

body.zl-trajectory-v3 .zl-shell-header .zl-display em {
    color: var(--zl-traj-accent);
    font-style: italic;
}

body.zl-trajectory-v3 .zl-native-root {
    min-height: 280px;
}

.zl-traj-demo-badge {
    display: inline-block;
    margin: 0 0 1rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 999px;
    background: rgba(201, 255, 87, 0.2);
    color: #3d5212;
    border: 1px solid rgba(125, 168, 42, 0.25);
}

/* ——— Health hero ——— */
.zl-traj-hero {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1rem;
    border-radius: var(--radius-xl, 22px);
    background: linear-gradient(135deg, rgba(255, 126, 179, 0.12) 0%, rgba(201, 255, 87, 0.08) 55%, #fff 100%);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.zl-traj-hero--money {
    grid-template-columns: 1fr 1fr;
    background: linear-gradient(135deg, rgba(255, 209, 102, 0.14) 0%, rgba(201, 255, 87, 0.06) 50%, #fff 100%);
}

.zl-traj-hero-ring {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: conic-gradient(
        from 200deg,
        var(--zl-traj-health) 0deg,
        var(--zl-traj-accent-bright) 120deg,
        rgba(255, 126, 179, 0.25) 280deg,
        var(--zl-traj-health) 360deg
    );
    box-shadow: 0 0 40px rgba(255, 126, 179, 0.35);
}

.zl-traj-hero-ring::before {
    content: '';
    position: absolute;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: #fff;
}

.zl-traj-hero--health .zl-traj-hero-ring {
    position: relative;
}

.zl-traj-hero-score {
    position: relative;
    z-index: 1;
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 400;
    color: #1a1a1f;
}

.zl-traj-hero-title {
    margin: 0.25rem 0 0.5rem;
    font-family: var(--font-serif);
    font-size: 1.65rem;
    font-weight: 400;
    color: #1a1a1f;
}

.zl-traj-hero-title em {
    font-style: italic;
    color: var(--zl-traj-health);
}

.zl-traj-hero-sub {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.5;
    max-width: 36rem;
}

.zl-traj-hero-big {
    margin: 0.2rem 0 0;
    font-family: var(--font-serif);
    font-size: 2rem;
    color: #1a1a1f;
}

.zl-traj-hero-delta {
    margin: 0.35rem 0 0;
    font-size: 0.88rem;
    color: #3d5212;
    font-weight: 600;
}

.zl-traj-ask-btn {
    margin-top: 0.25rem;
}

/* ——— Metric pills ——— */
.zl-traj-metric-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

@media (max-width: 720px) {
    .zl-traj-metric-row {
        grid-template-columns: 1fr;
    }
    .zl-traj-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .zl-traj-hero--health .zl-traj-hero-ring {
        margin: 0 auto;
    }
    .zl-traj-hero--money {
        grid-template-columns: 1fr;
    }
}

.zl-traj-metric-pill {
    padding: 1rem 1.15rem;
    border-radius: var(--radius-lg, 18px);
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.zl-traj-metric-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 0.35rem;
}

.zl-traj-metric-value {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1a1a1f;
}

/* ——— Cards + sparklines ——— */
.zl-traj-card {
    padding: 1.15rem 1.35rem;
    margin-bottom: 1rem;
    border-radius: var(--radius-lg, 18px);
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.zl-traj-card-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.zl-traj-spark {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 48px;
    min-width: 140px;
}

.zl-traj-spark-bar {
    flex: 1;
    min-width: 8px;
    max-width: 14px;
    border-radius: 4px 4px 2px 2px;
    opacity: 0.9;
}

.zl-traj-sample-list {
    list-style: none;
    padding: 0;
    margin: 0.65rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.zl-traj-sample-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.9rem;
}

.zl-traj-sample-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.zl-traj-sample-list span {
    color: #6b7280;
    text-align: right;
}

.zl-traj-tx-list {
    list-style: none;
    padding: 0;
    margin: 0.65rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.zl-traj-tx-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    font-size: 0.9rem;
}

.zl-traj-tx-list span {
    color: #6b7280;
}

/* ——— Projections ——— */
.zl-traj-proj-main {
    margin-bottom: 1rem;
}

.zl-traj-proj-title {
    font-size: 1.75rem !important;
    margin: 0.35rem 0 !important;
}

.zl-traj-proj-status {
    margin: 1rem 0;
    font-size: 0.85rem;
    color: #6b7280;
    font-family: var(--font-mono, ui-monospace, monospace);
}

.zl-traj-proj-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

@media (max-width: 800px) {
    .zl-traj-proj-cards {
        grid-template-columns: 1fr;
    }
}

.zl-traj-proj-chip {
    padding: 1rem 1.1rem;
    border-radius: var(--radius-lg, 18px);
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.88rem;
    color: #4b5563;
}

.zl-traj-proj-chip--accent {
    border-color: rgba(125, 168, 42, 0.35);
    background: linear-gradient(160deg, rgba(201, 255, 87, 0.15), #fff);
}

.zl-traj-proj-chip-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--zl-traj-accent);
}
