/* Hero */
.journey-hero {
    padding: 20px 24px 8px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(6, 182, 212, 0.05));
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.journey-hero h1 {
    font-size: 1.35rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--purple-light), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.journey-hero p {
    font-size: 0.85rem;
    color: var(--text2);
}

/* Featured landing */
.featured-section {
    padding: 16px 24px 32px;
    flex: none;
}

.featured-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.featured-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.featured-title i {
    color: var(--yellow);
}

.featured-hint {
    font-size: 0.75rem;
    color: var(--text3);
    margin-bottom: 12px;
}

.featured-tabs {
    display: flex;
    gap: 6px;
}

.featured-tab {
    border: 1px solid var(--border);
    background: var(--surface-card-soft);
    color: var(--text2);
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s;
}

.featured-tab:hover {
    border-color: var(--border-glow, rgba(124, 58, 237, 0.3));
    color: var(--text);
}

.featured-tab.active {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.22), rgba(6, 182, 212, 0.12));
    border-color: rgba(124, 58, 237, 0.35);
    color: var(--purple-light);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

.featured-card {
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 14px 12px;
    text-align: left;
    cursor: pointer;
    transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
    font-family: inherit;
    color: inherit;
}

.featured-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-glow, rgba(124, 58, 237, 0.3));
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.15);
}

.featured-card--celebrity {
    border-color: rgba(245, 158, 11, 0.35);
    background: linear-gradient(160deg, rgba(245, 158, 11, 0.08), var(--surface-card));
    box-shadow: 0 4px 18px rgba(245, 158, 11, 0.08);
}

.featured-card--celebrity .featured-badge {
    color: var(--yellow);
}

.featured-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
    margin-bottom: 4px;
}

.featured-badge {
    font-size: 0.68rem;
    color: var(--purple-light);
    margin-bottom: 4px;
}

.featured-card--skeleton {
    pointer-events: none;
    cursor: default;
}

.featured-card--skeleton:hover {
    transform: none;
    box-shadow: none;
}

.skeleton-block {
    border-radius: 6px;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.04) 25%,
            rgba(255, 255, 255, 0.1) 50%,
            rgba(255, 255, 255, 0.04) 75%);
    background-size: 200% 100%;
    animation: journey-skeleton-shimmer 1.2s ease-in-out infinite;
}

.featured-card--skeleton .featured-name.skeleton-block {
    height: 14px;
    width: 72%;
    margin-bottom: 8px;
}

.featured-card--skeleton .featured-badge.skeleton-block,
.featured-card--skeleton .featured-meta.skeleton-block {
    height: 10px;
    margin-bottom: 6px;
}

.skeleton-block--short {
    width: 55%;
}

@keyframes journey-skeleton-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.featured-highlight {
    font-size: 0.68rem;
    color: var(--text2);
    line-height: 1.35;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-highlight i {
    color: var(--cyan);
    margin-right: 4px;
    font-size: 0.62rem;
}

.featured-meta {
    font-size: 0.7rem;
    color: var(--text3);
}

.featured-meta-muted {
    color: var(--text-faint, rgba(255, 255, 255, 0.25));
}

/* Search autocomplete */
.journey-search-wrap {
    position: relative;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: var(--surface-panel-strong, var(--card));
    border: 1px solid var(--border);
    border-radius: 8px;
    z-index: 50;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.suggestion-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 14px;
    border: none;
    background: transparent;
    color: var(--text);
    font-family: inherit;
    font-size: 0.88rem;
    cursor: pointer;
    text-align: left;
}

.suggestion-item:hover {
    background: var(--surface-hover);
}

.suggestion-meta {
    font-size: 0.72rem;
    color: var(--text3);
}

.magic-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Icon sidebar — same pattern as briefing / dividend pages */
body.journey-active .icon-sidebar {
    width: var(--sidebar-w, 60px);
    flex-shrink: 0;
    background: var(--surface-sidebar, rgba(7, 7, 26, 0.95));
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
    gap: 4px;
    min-height: calc(100vh - var(--nav-h, 52px));
}

body.journey-active .icon-sidebar .sb-btn {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    border: none;
    background: transparent;
    color: var(--text-muted, var(--text3));
    font-size: 0.9375rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    position: relative;
}

body.journey-active .icon-sidebar .sb-btn:hover,
body.journey-active .icon-sidebar .sb-btn.active {
    background: rgba(124, 58, 237, 0.15);
    color: var(--purple-light);
}

body.journey-active .icon-sidebar .sb-btn .tt {
    position: absolute;
    left: calc(100% + 8px);
    background: var(--surface-tooltip, #1e1e3f);
    border: 1px solid var(--border);
    color: var(--text-primary, var(--text));
    font-size: 0.6875rem;
    padding: 3px 8px;
    border-radius: 5px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
    z-index: 999;
}

body.journey-active .icon-sidebar .sb-btn:hover .tt {
    opacity: 1;
}

body.journey-active .icon-sidebar .sb-div {
    width: 30px;
    height: 1px;
    background: var(--border);
    margin: 5px 0;
}

body.journey-active .icon-sidebar .sb-sp {
    flex: 1;
}

#journeySectionRoot {
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    flex: 1;
    min-width: 0;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 900px) {
    body.journey-active .main-container {
        padding-top: var(--nav-h, 52px);
    }

    body.journey-active #journeySectionRoot {
        width: 100%;
    }
}

/* Immersive Journey Layout */
.journey-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.journey-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    background: var(--surface-panel);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 20;
}

.journey-search {
    display: flex;
    align-items: center;
    background: var(--surface-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 12px;
    width: 350px;
}

.journey-search i {
    color: var(--text2);
    margin-right: 8px;
}

.journey-search input {
    background: transparent;
    border: none;
    color: var(--text);
    outline: none;
    flex: 1;
    font-size: 0.95rem;
}

.back-btn {
    border: 1px solid var(--border);
    background: var(--surface-card-soft);
    color: var(--text2);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s;
}

.back-btn:hover {
    border-color: var(--border-glow, rgba(124, 58, 237, 0.3));
    color: var(--text);
    background: var(--surface-hover);
}

.stock-link {
    color: var(--cyan);
    font-weight: 700;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(6, 182, 212, 0.35);
    text-underline-offset: 2px;
}

.stock-link:hover {
    color: var(--purple-light);
}

.chart-symbol-label.stock-link {
    font-size: 0.95rem;
    margin-left: 8px;
    text-decoration: none;
    padding: 2px 8px;
    background: rgba(6, 182, 212, 0.08);
}

.primary-btn {
    background: var(--purple);
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
    margin-left: 8px;
}

.primary-btn:hover {
    background: var(--purple-light);
}

.magic-btn {
    background: linear-gradient(135deg, var(--purple), var(--cyan));
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.magic-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.5);
}

/* Person detail layout */
.journey-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px 16px 32px;
    flex: none;
}

.journey-chart-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    min-width: 0;
}

.journey-chart-row .chart-card {
    min-height: 420px;
}

.journey-chart-row .chart-container {
    min-height: 360px;
    height: 360px;
}

.journey-chart-row .graph-card {
    width: 100%;
    min-height: 0;
    flex: 1 1 auto;
}

.journey-chart-row .graph-container,
.journey-chart-row #networkGraph {
    flex: 1 1 auto;
    width: 100%;
    min-height: clamp(420px, 48vh, 680px);
    height: clamp(420px, 48vh, 680px);
}

.journey-body-grid {
    display: grid;
    grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    min-width: 0;
}

.journey-body-grid--single {
    grid-template-columns: minmax(0, 1fr);
}

.journey-main-col,
.journey-left-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.journey-right-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    overflow: visible;
}

.journey-right-col>.journey-card,
.journey-main-col>.journey-card {
    min-width: 0;
    width: 100%;
}

@media (max-width: 960px) {
    .journey-body-grid {
        grid-template-columns: 1fr;
    }
}

/* Cards */
.journey-card {
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    width: 100%;
}

.card-title i {
    color: var(--cyan);
}

/* Profile Hero */
.journey-profile-hero {
    position: relative;
    width: 100%;
    padding: 24px 28px;
    border-radius: 16px;
    border: 1px solid rgba(124, 58, 237, 0.22);
    background:
        radial-gradient(ellipse 80% 120% at 0% 0%, rgba(124, 58, 237, 0.18), transparent 55%),
        radial-gradient(ellipse 60% 80% at 100% 100%, rgba(6, 182, 212, 0.12), transparent 50%),
        linear-gradient(135deg, rgba(14, 14, 42, 0.95), rgba(9, 9, 33, 0.98));
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
    overflow: hidden;
}

.journey-profile-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(6, 182, 212, 0.06), transparent 40%, rgba(124, 58, 237, 0.08));
    pointer-events: none;
}

.profile-hero-main {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.profile-hero-identity {
    flex: 1 1 280px;
    min-width: 0;
}

.profile-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cyan);
}

.profile-hero-identity h2,
.profile-info h2 {
    font-size: clamp(1.6rem, 3vw, 2.35rem);
    font-weight: 900;
    line-height: 2.15;
    margin: 0 0 10px 0;
    background: linear-gradient(135deg, #fff 0%, var(--purple-light) 55%, var(--cyan) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.profile-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.profile-hero-stats {
    display: flex;
    gap: 12px;
    flex: 0 0 auto;
}

.profile-hero-stats .stat-box {
    min-width: 132px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
}

.profile-hero-stats .stat-val {
    font-size: 1.55rem;
}

.profile-hero-details {
    position: relative;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-hero-details .profile-detail-list {
    margin-top: 0;
}

.profile-hero-details .company-summary-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
    gap: 10px;
    min-width: 0;
    max-width: 100%;
}

.profile-hero-details .detail-label {
    margin-bottom: 10px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text2);
}

.profile-social-section {
    position: relative;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-social-label i {
    color: var(--purple-light);
}

.profile-social-gauges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.profile-social-gauge-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 8px 8px 4px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    min-width: 0;
    overflow: hidden;
}

.profile-social-apex-title {
    width: 100%;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--text2);
    margin-bottom: -6px;
}

.profile-social-apex-chart {
    width: 100%;
    max-width: 220px;
    min-height: 168px;
    margin: 0 auto;
    overflow: hidden;
}

.profile-social-apex-chart .apexcharts-canvas,
.profile-social-apex-chart .apexcharts-svg {
    margin: 0 auto;
}

.profile-social-tags-title {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--text2);
    margin-bottom: 8px;
}

.profile-social-tag-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
    gap: 8px;
}

.profile-social-tag {
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.profile-social-tag--pos {
    border-color: rgba(16, 185, 129, 0.28);
}

.profile-social-tag--neg {
    border-color: rgba(239, 68, 68, 0.28);
}

.profile-social-tag--neu {
    border-color: rgba(6, 182, 212, 0.22);
}

.profile-social-tag-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.profile-social-tag-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text);
}

.profile-social-tag-count {
    font-size: 0.68rem;
    color: var(--text2);
}

.profile-social-tag-recent {
    font-size: 0.62rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.2);
    color: var(--purple-light);
}

.profile-social-tag-track {
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.profile-social-tag-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--cyan), var(--purple-light));
}

.profile-social-tag--pos .profile-social-tag-fill {
    background: linear-gradient(90deg, #059669, #34d399);
}

.profile-social-tag--neg .profile-social-tag-fill {
    background: linear-gradient(90deg, #dc2626, #f87171);
}

.profile-max-depth-section {
    margin-top: 14px;
    padding: 12px 12px 10px;
    border-radius: 16px;
    border: 1px solid rgba(124, 58, 237, 0.35);
    background:
        linear-gradient(145deg, rgba(124, 58, 237, 0.14), rgba(6, 182, 212, 0.08)),
        rgba(255, 255, 255, 0.02);
    box-shadow: 0 8px 28px rgba(124, 58, 237, 0.14);
}

.profile-max-depth-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.profile-max-depth-eyebrow {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text2);
}

.profile-max-depth-eyebrow i {
    margin-right: 6px;
    color: #67e8f9;
}

.profile-max-depth-badge {
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    color: #052e16;
    background: linear-gradient(135deg, #facc15, #34d399);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 14px rgba(250, 204, 21, 0.35);
}

.profile-social-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
}

.profile-social-meta {
    flex: 1 1 220px;
    min-width: 0;
    font-size: 0.72rem;
    color: var(--text2);
}

.profile-social-meta-depth {
    display: inline-block;
    margin-bottom: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.64rem;
    font-weight: 800;
    color: var(--text2);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-social-meta-depth.is-max {
    color: #fef08a;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.28), rgba(6, 182, 212, 0.22));
    border-color: rgba(250, 204, 21, 0.45);
    box-shadow: 0 0 14px rgba(124, 58, 237, 0.22);
}

.profile-social-meta-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
}

.profile-social-meta-grid span strong {
    color: var(--text);
    font-weight: 800;
}

.profile-social-meta-scan {
    margin-bottom: 6px;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text2);
    line-height: 1.4;
}

.profile-social-meta-scan strong {
    color: var(--text);
    font-weight: 800;
}

.profile-social-meta-hint {
    margin-top: 6px;
    font-size: 0.66rem;
    color: var(--text3, var(--text2));
    opacity: 0.85;
}

.profile-social-max-btn {
    position: relative;
    overflow: hidden;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 14px 12px;
    border-radius: 14px;
    border: 1px solid rgba(124, 58, 237, 0.42);
    background:
        linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(6, 182, 212, 0.1)),
        rgba(255, 255, 255, 0.03);
    color: var(--text);
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
    box-shadow: 0 4px 18px rgba(124, 58, 237, 0.12);
}

.profile-social-max-btn-glow {
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(
        120deg,
        transparent 20%,
        rgba(250, 204, 21, 0.22) 45%,
        rgba(103, 232, 249, 0.28) 55%,
        transparent 80%
    );
    transform: translateX(-120%);
}

.profile-social-max-btn.is-available .profile-social-max-btn-glow {
    opacity: 1;
    animation: profile-max-shimmer 2.8s ease-in-out infinite;
}

.profile-social-max-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: rgba(167, 139, 250, 0.65);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.22);
}

.profile-social-max-btn.active {
    border-color: rgba(250, 204, 21, 0.55);
    background:
        linear-gradient(135deg, rgba(124, 58, 237, 0.34), rgba(6, 182, 212, 0.24)),
        rgba(255, 255, 255, 0.04);
    box-shadow:
        0 0 0 1px rgba(250, 204, 21, 0.18),
        0 10px 28px rgba(6, 182, 212, 0.2),
        0 0 24px rgba(250, 204, 21, 0.12);
}

.profile-social-max-btn.is-locked {
    border-style: dashed;
    border-color: rgba(148, 163, 184, 0.35);
    background: rgba(255, 255, 255, 0.02);
    box-shadow: none;
}

.profile-social-max-btn.is-loading {
    cursor: wait;
    opacity: 0.92;
}

.profile-social-max-btn:disabled {
    pointer-events: none;
}

.profile-social-max-btn-icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    color: #fef08a;
    background: linear-gradient(145deg, rgba(124, 58, 237, 0.55), rgba(6, 182, 212, 0.35));
    border: 1px solid rgba(250, 204, 21, 0.35);
    box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.08);
}

.profile-social-max-btn.active .profile-social-max-btn-icon {
    animation: profile-max-pulse 1.6s ease-in-out infinite;
}

.profile-social-max-btn-copy {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.profile-social-max-btn-title {
    font-size: 0.88rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    color: var(--text);
}

.profile-social-max-btn.active .profile-social-max-btn-title {
    background: linear-gradient(135deg, #fef08a, #67e8f9);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.profile-social-max-btn-sub {
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text2);
}

.profile-social-max-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.profile-social-max-spec {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--text2);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-social-max-spec strong {
    font-size: 0.82rem;
    font-weight: 900;
    color: #fef08a;
}

.profile-social-max-spec em {
    font-style: normal;
    opacity: 0.9;
}

.profile-social-max-btn.active .profile-social-max-spec {
    background: rgba(250, 204, 21, 0.12);
    border-color: rgba(250, 204, 21, 0.28);
}

.profile-social-max-compare {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 0.64rem;
    font-weight: 700;
}

.profile-social-max-compare .is-std {
    padding: 2px 8px;
    border-radius: 999px;
    color: var(--text2);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-social-max-compare .is-max {
    padding: 2px 8px;
    border-radius: 999px;
    color: #fef08a;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.45), rgba(6, 182, 212, 0.3));
    border: 1px solid rgba(250, 204, 21, 0.4);
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.25);
}

.profile-social-max-compare.is-active .is-max {
    color: #052e16;
    background: linear-gradient(135deg, #facc15, #34d399);
    border-color: rgba(255, 255, 255, 0.35);
}

.profile-social-max-compare.is-active .is-max i {
    margin-right: 4px;
}

.profile-social-max-compare > i.fa-arrow-right {
    font-size: 0.55rem;
    color: var(--text3, var(--text2));
    opacity: 0.7;
}

.profile-social-max-btn-chip {
    flex: 0 0 auto;
    min-width: 44px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-align: center;
    color: #fef08a;
    background: rgba(124, 58, 237, 0.35);
    border: 1px solid rgba(250, 204, 21, 0.4);
}

.profile-social-max-btn-chip.is-on {
    color: #052e16;
    background: linear-gradient(135deg, #facc15, #34d399);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 12px rgba(52, 211, 153, 0.45);
}

.profile-social-max-btn-chip.is-on i {
    font-size: 0.45rem;
    margin-right: 4px;
    vertical-align: middle;
    animation: profile-max-blink 1.2s ease-in-out infinite;
}

.profile-social-max-btn-chip.is-lock {
    color: var(--text2);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    letter-spacing: 0;
    min-width: 36px;
}

.profile-social-max-btn-chip.is-busy {
    min-width: 40px;
    color: #fef08a;
}

@keyframes profile-max-shimmer {
    0% { transform: translateX(-120%); }
    55%, 100% { transform: translateX(120%); }
}

@keyframes profile-max-pulse {
    0%, 100% {
        box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.08), 0 0 0 0 rgba(250, 204, 21, 0.35);
    }
    50% {
        box-shadow: inset 0 0 16px rgba(255, 255, 255, 0.14), 0 0 14px 2px rgba(250, 204, 21, 0.28);
    }
}

@keyframes profile-max-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.journey-auth-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(3, 7, 18, 0.72);
    backdrop-filter: blur(6px);
}

.journey-auth-modal-panel {
    position: relative;
    width: min(100%, 380px);
    padding: 24px 22px 20px;
    border-radius: 16px;
    border: 1px solid rgba(124, 58, 237, 0.28);
    background: linear-gradient(160deg, rgba(14, 14, 42, 0.98), rgba(9, 9, 33, 0.98));
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    text-align: center;
}

.journey-auth-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: transparent;
    color: var(--text2);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.journey-auth-modal-icon {
    font-size: 1.6rem;
    color: var(--purple-light);
    margin-bottom: 8px;
}

.journey-auth-modal-panel h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    color: var(--text);
}

.journey-auth-modal-panel p {
    margin: 0 0 16px;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--text2);
}

.journey-auth-modal-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.journey-auth-modal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    padding: 9px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.journey-auth-modal-btn.primary {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.9), rgba(6, 182, 212, 0.75));
    border-color: transparent;
    color: #fff;
}

.profile-news-section {
    position: relative;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-news-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.profile-news-label i {
    color: var(--cyan);
}

.profile-news-count {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text2);
    text-transform: none;
    letter-spacing: 0;
}

.profile-news-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 280px;
    overflow-y: auto;
}

.profile-news-item {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.profile-news-date {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text2);
    white-space: nowrap;
}

.profile-news-main {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
}

.profile-news-stock {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(124, 58, 237, 0.18);
    border: 1px solid rgba(124, 58, 237, 0.35);
}

.profile-news-title {
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--text);
    text-decoration: none;
    min-width: 0;
    word-break: break-word;
    width: 100%;
}

.profile-news-snippet {
    display: block;
    width: 100%;
    margin-top: 3px;
    font-size: 0.74rem;
    line-height: 1.45;
    color: var(--text2);
}

.profile-news-match {
    display: block;
    width: 100%;
    margin-top: 2px;
    font-size: 0.66rem;
    font-weight: 700;
    color: var(--cyan);
}

a.profile-news-title:hover {
    color: var(--cyan);
    text-decoration: underline;
}

.profile-news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    width: 100%;
    margin-top: 2px;
}

.profile-news-tag {
    font-size: 0.62rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
    border: 1px solid transparent;
}

.profile-news-tag--pos {
    color: #34d399;
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.25);
}

.profile-news-tag--neg {
    color: #f87171;
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.25);
}

.profile-news-tag--neu {
    color: #67e8f9;
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.22);
}

.profile-header {
    margin-bottom: 16px;
}

.profile-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(16, 185, 129, 0.15);
    color: var(--green);
}

.profile-status.inactive {
    background: rgba(100, 116, 139, 0.2);
    color: var(--text3);
}

.profile-status.active {
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
}

.profile-activity-badge {
    margin-top: 0;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--purple-light);
}

.profile-activity-highlight {
    margin-top: 4px;
    font-size: 0.72rem;
    color: var(--text2);
    line-height: 1.4;
}

.name-variants {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}

.variant-chip {
    font-size: 0.68rem;
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface-card-soft);
    color: var(--text2);
    cursor: pointer;
    font-family: inherit;
}

.variant-chip:hover {
    border-color: var(--cyan);
    color: var(--text);
}

.profile-detail-list {
    margin-top: 12px;
    font-size: 0.8rem;
}

.company-summary-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
}

.company-summary-card {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface-card-soft, rgba(255, 255, 255, 0.03));
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.company-summary-card--holding-only {
    border-color: rgba(6, 182, 212, 0.2);
}

.company-stock-name {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--cyan);
    background: none;
    border: none;
    padding: 0;
    margin: 0 0 6px;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 0.02em;
}

.company-stock-name:hover {
    color: var(--purple-light);
}

.company-roles {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.role-tenure-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.76rem;
    line-height: 1.35;
}

.role-tenure-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    flex: 1;
    min-width: 0;
}

.role-position-chip {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text);
    background: rgba(124, 58, 237, 0.14);
    border: 1px solid rgba(124, 58, 237, 0.22);
    line-height: 1.25;
}

.role-tenure-years {
    color: var(--text2);
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
    padding: 1px 7px;
    border-radius: 8px;
    background: rgba(124, 58, 237, 0.12);
    color: var(--purple-light);
}

.company-holding-row {
    margin-top: 6px;
    font-size: 0.92rem;
    color: var(--text2);
}

.company-holding-row strong {
    color: var(--green);
    font-weight: 800;
}

.company-holding-row i {
    color: var(--cyan);
    margin-right: 4px;
}

.company-historical-row {
    color: var(--text3, var(--text2));
    font-size: 0.82rem;
}

.company-historical-row i {
    color: #f59e0b;
}

.company-summary-more {
    margin-top: 8px;
    font-size: 0.7rem;
    color: var(--text3);
    text-align: center;
}

.highlight-stock-link {
    font-size: inherit;
    font-weight: 700;
    vertical-align: baseline;
}

.profile-activity-highlight i {
    margin-right: 5px;
    color: var(--cyan);
    font-size: 0.68rem;
}

.detail-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text2);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    width: 100%;
    background: none;
    border-left: none;
    border-right: none;
    border-top: none;
    font-family: inherit;
    font-size: inherit;
    cursor: default;
    text-align: left;
}

.holding-link {
    cursor: pointer;
}

.holding-link:hover span:first-child {
    color: var(--cyan);
}

.profile-stats,
.profile-hero-stats {
    display: flex;
    gap: 12px;
}

@media (max-width: 768px) {
    .journey-profile-hero {
        padding: 14px 14px 16px;
    }

    .profile-hero-main {
        flex-direction: column;
        gap: 10px;
    }

    .profile-hero-identity {
        flex: 0 0 auto;
        width: 100%;
    }

    .profile-hero-eyebrow {
        margin-bottom: 4px;
        font-size: 0.65rem;
    }

    .profile-hero-identity h2,
    .profile-info h2 {
        font-size: clamp(1.2rem, 5.6vw, 1.55rem);
        margin-bottom: 6px;
        line-height: 1.2;
    }

    .profile-hero-meta {
        gap: 6px;
    }

    .profile-activity-highlight {
        margin-top: 2px;
        font-size: 0.68rem;
        line-height: 1.35;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .profile-hero-identity .name-variants {
        margin-top: 4px;
        gap: 4px;
    }

    .profile-hero-identity .variant-chip {
        font-size: 0.64rem;
        padding: 2px 7px;
    }

    .profile-hero-stats {
        width: 100%;
    }

    .profile-hero-stats .stat-box {
        flex: 1;
        min-width: 0;
        padding: 10px 12px;
    }

    .profile-hero-stats .stat-val {
        font-size: 2rem;
    }

    .profile-hero-stats .stat-lbl {
        font-size: 0.68rem;
    }

    .profile-hero-details {
        margin-top: 12px;
        padding-top: 12px;
        min-width: 0;
        overflow-x: hidden;
    }

    .profile-hero-details .profile-detail-list,
    #rolesSummary {
        min-width: 0;
        max-width: 100%;
        overflow-x: hidden;
    }

    .profile-hero-details .company-summary-list {
        display: flex;
        flex-direction: column;
        gap: 8px;
        overflow-x: hidden;
    }

    .profile-hero-details .company-summary-card {
        width: 100%;
    }

    .profile-hero-details .role-tenure-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .profile-hero-details .role-tenure-years {
        white-space: normal;
        align-self: flex-start;
    }

    .profile-news-item {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .profile-social-gauges {
        grid-template-columns: 1fr 1fr;
    }
}

.stat-box {
    flex: 1;
    background: var(--surface-card-soft);
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border);
}

.stat-val {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--purple-light);
}

.stat-lbl {
    font-size: 0.75rem;
    color: var(--text2);
    margin-top: 4px;
}

/* Timeline — horizontal 3:4 cards (scroll: sp-pulse-journey-container) */
.journey-card.timeline-card {
    flex: none;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
}

#timelineScrollWrap.timeline-scroll-wrap {
    display: block;
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex: 0 0 auto;
    margin-top: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 0 14px;
    scroll-snap-type: none;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: none;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
    scrollbar-width: auto;
    scrollbar-color: rgba(167, 139, 250, 0.85) rgba(255, 255, 255, 0.12);
    touch-action: pan-x pan-y;
    cursor: grab;
}

#timelineScrollWrap.timeline-scroll-wrap:active,
#timelineScrollWrap.timeline-scroll-wrap.active-dragging {
    cursor: grabbing;
    user-select: none;
}

#timelineScrollWrap.timeline-scroll-wrap.is-scrollable {
    background:
        linear-gradient(90deg, var(--surface-card) 0%, transparent 28px) left center / 28px 100% no-repeat,
        linear-gradient(270deg, var(--surface-card) 0%, transparent 36px) right center / 36px 100% no-repeat;
}

#timelineScrollWrap.timeline-scroll-wrap::-webkit-scrollbar {
    height: 12px;
}

#timelineScrollWrap.timeline-scroll-wrap::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin: 0 6px;
}

#timelineScrollWrap.timeline-scroll-wrap::-webkit-scrollbar-thumb {
    background: rgba(167, 139, 250, 0.75);
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.08);
}

#timelineScrollWrap.timeline-scroll-wrap::-webkit-scrollbar-thumb:hover {
    background: rgba(167, 139, 250, 1);
}

.timeline-track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 12px;
    width: max-content;
    min-width: max-content;
    padding: 2px 12px 4px;
}

#timelineScrollWrap .empty-state {
    position: static;
    transform: none;
    width: 100%;
    padding: 24px 12px;
}

.timeline-item {
    flex: 0 0 auto;
    width: 156px;
    aspect-ratio: 3 / 4;
    scroll-snap-align: none;
}

.timeline-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--surface-card-soft);
    padding: 10px 10px 8px;
    border-radius: 10px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.timeline-item--news .timeline-content {
    border-top: 3px solid var(--yellow);
}

.timeline-item--tenure .timeline-content {
    border-top: 3px solid var(--purple-light);
}

.timeline-item--trade .timeline-content {
    border-top: 3px solid var(--green);
}

.timeline-card-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-shrink: 0;
}

.timeline-type-badge {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    flex-shrink: 0;
    background: var(--card);
    border: 2px solid var(--cyan);
    color: var(--cyan);
}

.timeline-type-badge.news {
    border-color: var(--yellow);
    color: var(--yellow);
}

.timeline-type-badge.tenure {
    border-color: var(--purple-light);
    color: var(--purple-light);
}

.timeline-type-badge.trade {
    border-color: var(--green);
    color: var(--green);
}

.timeline-date {
    font-size: 0.68rem;
    color: var(--text2);
    font-weight: 700;
    line-height: 1.2;
    min-width: 0;
}

.timeline-stock-row {
    margin-bottom: 6px;
    flex-shrink: 0;
}

.timeline-stock {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(6, 182, 212, 0.25);
    background: rgba(6, 182, 212, 0.08);
}

.timeline-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
    margin-bottom: 6px;
    flex-shrink: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.timeline-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 2px;
}

.timeline-body .timeline-desc {
    margin-top: 0;
}

.timeline-body .timeline-desc+.timeline-desc,
.timeline-body .timeline-sec-link-row {
    margin-top: 6px;
}

.journey-sec-link,
.timeline-sec-link,
.chart-sec-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--cyan);
    text-decoration: none;
}

.journey-sec-link:hover,
.timeline-sec-link:hover,
.chart-sec-link:hover {
    color: var(--purple-light);
    text-decoration: underline;
}

.timeline-sec-link-row,
.chart-marker-sec-link {
    margin-top: 6px;
}

.timeline-desc {
    font-size: 0.7rem;
    color: var(--text2);
    line-height: 1.35;
    margin-top: 4px;
}

.analysis-skeleton .sk-line {
    height: 12px;
    background: linear-gradient(90deg, var(--surface-card-soft), var(--surface-hover), var(--surface-card-soft));
    background-size: 200% 100%;
    animation: shimmer 1.2s infinite;
    border-radius: 4px;
    margin-bottom: 8px;
}

.analysis-skeleton .sk-line.short {
    width: 60%;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Analysis */
.analysis-card.analysis-card--revealed {
    animation: analysisRevealPulse 1.8s ease;
}

@keyframes analysisRevealPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.45);
        border-color: rgba(6, 182, 212, 0.45);
    }

    35% {
        box-shadow: 0 0 0 6px rgba(6, 182, 212, 0.12);
        border-color: rgba(6, 182, 212, 0.55);
    }

    100% {
        box-shadow: none;
        border-color: var(--border);
    }
}

.analysis-card-sub {
    margin-left: auto;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text2);
}

.analysis-content {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text);
    min-width: 0;
}

.analysis-card {
    position: relative;
    overflow: visible;
}

.analysis-load-progress {
    margin-bottom: 12px;
}

.analysis-card .analysis-content:empty {
    display: none;
}

.analysis-carousel {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.analysis-track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    padding: 10px 36px 12px;
    touch-action: pan-x pan-y;
}

.analysis-track::-webkit-scrollbar {
    display: none;
}

.analysis-slide {
    flex: 0 0 auto;
    width: clamp(188px, 34vw, 248px);
    aspect-ratio: 3 / 4;
    scroll-snap-align: center;
    opacity: 0.48;
    transform: scale(0.92);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease, box-shadow 0.35s ease;
    cursor: pointer;
    user-select: none;
    position: relative;
    z-index: 1;
}

.analysis-slide--active {
    opacity: 1;
    transform: scale(1);
    cursor: default;
    z-index: 2;
}

.analysis-slide:not(.analysis-slide--active) .analysis-slide-inner {
    cursor: pointer;
}

.analysis-slide:focus-visible {
    outline: 2px solid rgba(6, 182, 212, 0.65);
    outline-offset: 3px;
}

.analysis-slide--active .analysis-slide-scroll {
    user-select: text;
    cursor: auto;
}

.analysis-slide-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
    border-radius: 14px;
    border: 1.5px solid var(--border);
    background: var(--surface-card-soft);
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

.analysis-slide--active .analysis-slide-inner {
    border-color: rgba(124, 58, 237, 0.34);
    box-shadow: 0 0 36px rgba(124, 58, 237, 0.14), 0 10px 28px rgba(0, 0, 0, 0.18);
}

.analysis-slide-inner--hook {
    border-color: rgba(124, 58, 237, 0.24);
    background:
        radial-gradient(ellipse 70% 120% at 0% 0%, rgba(124, 58, 237, 0.16), transparent 58%),
        linear-gradient(135deg, rgba(14, 14, 42, 0.92), rgba(9, 9, 33, 0.96));
}

.analysis-slide-inner--max {
    border-color: rgba(245, 158, 11, 0.3);
    background:
        radial-gradient(ellipse 70% 120% at 0% 0%, rgba(245, 158, 11, 0.14), transparent 58%),
        linear-gradient(135deg, rgba(14, 14, 42, 0.92), rgba(9, 9, 33, 0.96));
}

.analysis-slide-inner--takeaways {
    border-color: rgba(124, 58, 237, 0.22);
    background: rgba(124, 58, 237, 0.06);
}

.analysis-slide--chapter.impact-positive .analysis-slide-inner {
    border-top: 3px solid var(--green);
}

.analysis-slide--chapter.impact-negative .analysis-slide-inner {
    border-top: 3px solid var(--red);
}

.analysis-slide--chapter.impact-watch .analysis-slide-inner {
    border-top: 3px solid var(--yellow);
}

.analysis-slide-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px 0;
    flex-shrink: 0;
}

.analysis-slide-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px 12px 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(167, 139, 250, 0.55) transparent;
}

.analysis-slide-inner--hook .analysis-slide-scroll,
.analysis-slide-inner--takeaways .analysis-slide-scroll {
    padding-top: 12px;
}

.analysis-slide-scroll::-webkit-scrollbar {
    width: 5px;
}

.analysis-slide-scroll::-webkit-scrollbar-thumb {
    background: rgba(167, 139, 250, 0.55);
    border-radius: 999px;
}

.analysis-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 2px 0 4px;
}

.analysis-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text3);
    opacity: 0.35;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.analysis-dot.active {
    width: 24px;
    border-radius: 4px;
    opacity: 1;
    background: linear-gradient(90deg, var(--purple-light), var(--cyan));
}

.analysis-nav {
    position: absolute;
    top: calc(50% - 14px);
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2px;
    pointer-events: none;
    z-index: 3;
    height: 0;
    overflow: visible;
}

.analysis-arrow {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(14, 14, 42, 0.82);
    backdrop-filter: blur(8px);
    color: var(--text2);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    pointer-events: all;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.analysis-arrow:hover {
    color: var(--purple-light);
    border-color: rgba(124, 58, 237, 0.35);
    background: rgba(124, 58, 237, 0.12);
}

.analysis-carousel--loading .analysis-nav,
.analysis-carousel--loading .analysis-dots {
    display: none;
}

.analysis-slide--skeleton .analysis-slide-inner {
    align-items: stretch;
    justify-content: center;
}

.analysis-takeaways-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
}

.analysis-takeaways-list li {
    font-size: 0.86rem;
    line-height: 1.45;
    color: var(--text2);
}

.analysis-story {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.analysis-story-hook {
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid rgba(124, 58, 237, 0.22);
    background:
        radial-gradient(ellipse 70% 120% at 0% 0%, rgba(124, 58, 237, 0.16), transparent 58%),
        linear-gradient(135deg, rgba(14, 14, 42, 0.92), rgba(9, 9, 33, 0.96));
}

.analysis-story-hook-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 8px;
}

.analysis-story-headline {
    margin: 0 0 6px;
    font-size: 1.15rem;
    font-weight: 900;
    line-height: 1.3;
    color: var(--text);
}

.analysis-story-subheadline {
    margin: 0;
    font-size: 0.94rem;
    line-height: 1.5;
    color: var(--text2);
}

.analysis-story-signals {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 12px;
}

.analysis-signal {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.analysis-signal-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 182, 212, 0.14);
    color: var(--cyan);
    flex-shrink: 0;
}

.analysis-signal-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text2);
}

.analysis-signal-value {
    display: block;
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.3;
}

.analysis-chapter-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.analysis-chapter-step {
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--purple-light);
}

.analysis-chapter-impact {
    font-size: 0.64rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.14);
    color: var(--purple-light);
}

.analysis-slide--chapter.impact-positive .analysis-chapter-impact {
    background: rgba(16, 185, 129, 0.14);
    color: var(--green);
}

.analysis-slide--chapter.impact-negative .analysis-chapter-impact {
    background: rgba(239, 68, 68, 0.14);
    color: var(--red);
}

.analysis-slide--chapter.impact-watch .analysis-chapter-impact {
    background: rgba(245, 158, 11, 0.14);
    color: var(--yellow);
}

.analysis-chapter-icon {
    font-size: 1rem;
    color: var(--cyan);
    margin-bottom: 6px;
}

.analysis-chapter-title {
    margin: 0 0 6px;
    font-size: 1.11rem;
    font-weight: 700;
    color: var(--text);
}

.analysis-chapter-summary {
    margin: 0 0 6px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text2);
    line-height: 1.5;
    overflow: visible;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.analysis-chapter-narrative {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text2);
    overflow: visible;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.analysis-chapter-evidence {
    margin: 10px 0 0;
    padding-left: 18px;
    font-size: 0.74rem;
    line-height: 1.45;
    color: var(--text3);
}

.analysis-chapter-stocks {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.analysis-stock-chip {
    border: 1px solid rgba(6, 182, 212, 0.28);
    background: rgba(6, 182, 212, 0.08);
    color: var(--cyan);
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 0.72rem;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
}

.analysis-stock-chip:hover {
    color: var(--purple-light);
    border-color: rgba(124, 58, 237, 0.35);
}

.analysis-takeaways-title {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--purple-light);
    margin-bottom: 8px;
}

.analysis-story-disclaimer {
    margin: 0;
    font-size: 0.68rem;
    color: var(--text3);
    font-style: italic;
    line-height: 1.45;
    white-space: normal;
    word-break: break-word;
}

.analysis-story-hook-badge--max {
    color: var(--yellow);
}

.analysis-story-scan-meta {
    margin: 8px 0 0;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--text3);
}

.analysis-story-scan-meta i {
    color: var(--yellow);
    margin-right: 4px;
}

@media (max-width: 768px) {
    .analysis-slide {
        width: clamp(176px, 72vw, 240px);
    }

    .analysis-track {
        padding: 8px 8px 10px;
    }

    .analysis-nav {
        display: none;
    }
}

.graph-legend {
    margin-left: auto;
    display: flex;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text3);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.legend-dot.person {
    background: var(--cyan);
}

.legend-dot.company {
    background: var(--purple);
}

.legend-dot.cross {
    background: var(--yellow);
}

.legend-line {
    display: inline-block;
    height: 0;
    border-top: 2px solid #64748b;
    border-radius: 1px;
}

.legend-line--thin {
    width: 10px;
    border-top-width: 1.5px;
    opacity: 0.65;
}

.legend-line--thick {
    width: 16px;
    border-top-width: 4px;
    opacity: 0.85;
}

.graph-tooltip-pct {
    color: var(--text2);
    font-size: 0.72rem;
}

.graph-tooltip {
    position: absolute;
    padding: 6px 10px;
    background: var(--surface-tooltip, #1e1e3f);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.75rem;
    pointer-events: none;
    z-index: 10;
}

.chart-symbol-label {
    margin-left: auto;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--cyan);
    padding: 2px 8px;

}

.text-red {
    color: var(--red);
}

/* Graph */
.graph-card {
    flex: 1 1 auto;
    min-height: 0;
}

.graph-container,
#networkGraph {
    flex: 1 1 auto;
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-base);
    overflow: hidden;
}

/* Event Chart */
.chart-card {
    width: 100%;
}

.chart-card-subhead {
    margin-top: -4px;
    margin-bottom: 8px;
    min-height: 0;
}

.chart-card-subhead .chart-marker-legend {
    margin-left: 0;
    width: 100%;
}

.chart-stock-picker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    min-height: 0;
}

.chart-stock-chip {
    border: 1px solid var(--border);
    background: var(--surface-card-soft);
    color: var(--text2);
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s;
}

.chart-stock-chip:hover {
    border-color: rgba(6, 182, 212, 0.35);
    color: var(--text);
}

.chart-stock-chip.active {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.18), rgba(124, 58, 237, 0.14));
    border-color: rgba(6, 182, 212, 0.45);
    color: var(--cyan);
}

.chart-stock-pct {
    font-size: 0.64rem;
    font-weight: 600;
    color: var(--text3);
}

.chart-stock-chip.active .chart-stock-pct {
    color: rgba(6, 182, 212, 0.85);
}

.chart-stock-events {
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.22);
    color: var(--purple-light);
    font-size: 0.6rem;
    font-weight: 800;
    line-height: 16px;
    text-align: center;
}

.chart-stock-more-wrap {
    display: inline-flex;
}

.chart-stock-more {
    border: 1px solid var(--border);
    background: var(--surface-card-soft);
    color: var(--text2);
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 999px;
    cursor: pointer;
}

.chart-stock-more:focus {
    outline: none;
    border-color: rgba(6, 182, 212, 0.45);
}

.chart-container {
    position: relative;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-base);
    overflow: hidden;
}

.chart-marker-legend {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text2);
}

.chart-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.chart-legend-sym {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.chart-legend-sym.buy {
    width: 0;
    height: 0;
    border-radius: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 7px solid var(--green);
}

.chart-legend-sym.sell {
    width: 0;
    height: 0;
    border-radius: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 7px solid var(--red);
}

.chart-legend-sym.news {
    background: var(--yellow);
}

.chart-legend-cluster {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--text3);
}

.chart-legend-bubble {
    display: inline-block;
    border-radius: 50%;
    background: var(--yellow);
    opacity: 0.85;
    flex-shrink: 0;
}

.chart-legend-bubble--sm {
    width: 6px;
    height: 6px;
}

.chart-legend-bubble--md {
    width: 9px;
    height: 9px;
}

.chart-legend-bubble--lg {
    width: 12px;
    height: 12px;
}

.chart-marker-tooltip-cluster {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--purple-light);
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
}

.chart-marker-tooltip {
    position: absolute;
    z-index: 30;
    max-width: 300px;
    max-height: min(260px, 42vh);
    overflow-y: auto;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--border2);
    background: var(--surface-tooltip, #1e1e3f);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    pointer-events: none;
    font-size: 0.75rem;
    line-height: 1.4;
}

.chart-marker-tooltip a {
    pointer-events: auto;
}

.chart-marker-tooltip[hidden] {
    display: none !important;
}

.chart-marker-tooltip-date {
    font-size: 0.68rem;
    color: var(--text2);
    margin-bottom: 4px;
}

.chart-marker-tooltip-title {
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
}

.chart-marker-tooltip-desc {
    color: var(--text2);
    font-size: 0.7rem;
}

.chart-marker-tooltip-item--news .chart-marker-tooltip-date {
    color: var(--yellow);
}

.chart-marker-tooltip-item--trade .chart-marker-tooltip-date {
    color: var(--cyan);
}

.chart-marker-tooltip-item+.chart-marker-tooltip-item {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.empty-state {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text3);
    font-size: 0.9rem;
}

.journey-load-progress {
    margin-bottom: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(124, 58, 237, 0.28);
    background:
        linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(6, 182, 212, 0.06)),
        rgba(255, 255, 255, 0.03);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.1);
}

.journey-load-progress-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.journey-load-progress-icon {
    margin-top: 2px;
    font-size: 1.1rem;
    color: var(--purple-light);
}

.journey-load-progress-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.journey-load-progress-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.35;
}

.journey-load-progress-sub {
    margin-top: 2px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text2);
}

.journey-load-progress-pct {
    flex: 0 0 auto;
    font-size: 0.78rem;
    font-weight: 900;
    color: #fef08a;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.22);
    border: 1px solid rgba(250, 204, 21, 0.28);
}

.journey-load-progress-overall {
    margin-top: 12px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.journey-load-progress-overall-fill {
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--purple), var(--cyan), #34d399);
    transition: width 0.45s ease;
}

.journey-load-progress-steps {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.journey-progress-step {
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0.55;
    transition: opacity 0.25s ease;
}

.journey-progress-step.active {
    opacity: 1;
}

.journey-progress-step.done {
    opacity: 0.92;
}

.journey-progress-step-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text2);
    line-height: 1.35;
}

.journey-progress-step.active .journey-progress-step-head {
    color: var(--purple-light);
}

.journey-progress-step.done .journey-progress-step-head {
    color: #34d399;
}

.journey-progress-step-icon {
    width: 14px;
    text-align: center;
    flex: 0 0 auto;
}

.journey-progress-step-bar {
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.journey-progress-step-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--purple), var(--cyan));
    transition: width 0.4s ease;
}

.journey-progress-step.active .journey-progress-step-bar-fill {
    width: 42%;
    animation: journey-step-indeterminate 1.1s ease-in-out infinite;
}

.journey-progress-step.done .journey-progress-step-bar-fill {
    width: 100%;
    animation: none;
}

@keyframes journey-step-indeterminate {
    0% { width: 12%; margin-left: 0; }
    50% { width: 55%; margin-left: 22%; }
    100% { width: 12%; margin-left: 88%; }
}

.journey-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px 16px;
    min-height: 88px;
    width: 100%;
}

.journey-spinner {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 3px solid rgba(124, 58, 237, 0.18);
    border-top-color: var(--cyan);
    border-right-color: var(--purple-light);
    animation: journey-spin 0.8s linear infinite;
}

.journey-loading-text {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text2);
    letter-spacing: 0.02em;
}

@keyframes journey-spin {
    to {
        transform: rotate(360deg);
    }
}

#personName .journey-loading {
    min-height: 56px;
    padding: 8px 0 0;
}

#personName .journey-spinner {
    width: 28px;
    height: 28px;
}

#journeyContent.is-loading {
    pointer-events: none;
}

#profileCard.is-loading .profile-hero-stats,
#profileCard.is-loading .profile-hero-details,
#profileCard.is-loading .profile-max-depth-section,
#profileCard.is-loading .profile-social-section,
#profileCard.is-loading .profile-news-section {
    opacity: 0.45;
}

#timelineScrollWrap .journey-loading,
#networkGraph .journey-loading,
#eventChart .journey-loading,
.chart-container .journey-loading,
.graph-container .journey-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-height: 0;
}

/* Network graph — Cytoscape */
#networkGraph canvas {
    outline: none;
}

#networkGraph .graph-tooltip {
    z-index: 20;
    pointer-events: none;
}

.graph-cross-links path {
    transition: stroke-opacity 0.15s ease;
}

.graph-cross-links path:hover {
    stroke-opacity: 0.72;
}

/* Light theme — Profile Hero */
html[data-mockup-theme-resolved="light"] .journey-profile-hero {
    border-color: rgba(124, 58, 237, 0.14);
    background:
        radial-gradient(ellipse 80% 120% at 0% 0%, rgba(124, 58, 237, 0.07), transparent 55%),
        radial-gradient(ellipse 60% 80% at 100% 100%, rgba(6, 182, 212, 0.06), transparent 50%),
        linear-gradient(135deg, #ffffff 0%, #f8fafc 48%, #eef2ff 100%);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.07);
}

html[data-mockup-theme-resolved="light"] .journey-profile-hero::before {
    background: linear-gradient(90deg, rgba(6, 182, 212, 0.05), transparent 42%, rgba(124, 58, 237, 0.06));
}

html[data-mockup-theme-resolved="light"] .profile-hero-eyebrow {
    color: #0891b2;
}

html[data-mockup-theme-resolved="light"] .profile-hero-identity h2,
html[data-mockup-theme-resolved="light"] .profile-info h2 {
    background: linear-gradient(135deg, #0f172a 0%, #6d28d9 50%, #0891b2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

html[data-mockup-theme-resolved="light"] .profile-hero-stats .stat-box {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(15, 23, 42, 0.1);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

html[data-mockup-theme-resolved="light"] .profile-hero-stats .stat-val {
    color: #6d28d9;
}

html[data-mockup-theme-resolved="light"] .profile-hero-stats .stat-lbl {
    color: var(--text-secondary);
}

html[data-mockup-theme-resolved="light"] .profile-hero-details {
    border-top-color: rgba(15, 23, 42, 0.08);
}

html[data-mockup-theme-resolved="light"] .profile-hero-details .detail-label {
    color: var(--text-muted);
}

html[data-mockup-theme-resolved="light"] .profile-social-section {
    border-top-color: rgba(15, 23, 42, 0.08);
}

html[data-mockup-theme-resolved="light"] .profile-social-gauge-card,
html[data-mockup-theme-resolved="light"] .profile-social-tag {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(15, 23, 42, 0.08);
}

html[data-mockup-theme-resolved="light"] .profile-social-meta {
    color: var(--text-muted);
}

html[data-mockup-theme-resolved="light"] .profile-social-meta-depth {
    color: #64748b;
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.08);
}

html[data-mockup-theme-resolved="light"] .profile-social-meta-depth.is-max {
    color: #7c2d12;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(6, 182, 212, 0.1));
}

html[data-mockup-theme-resolved="light"] .journey-load-progress {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.06), rgba(6, 182, 212, 0.04)), #ffffff;
    border-color: rgba(109, 40, 217, 0.2);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

html[data-mockup-theme-resolved="light"] .journey-load-progress-title {
    color: #0f172a;
}

html[data-mockup-theme-resolved="light"] .journey-load-progress-sub {
    color: #64748b;
}

html[data-mockup-theme-resolved="light"] .journey-load-progress-pct {
    color: #6d28d9;
    background: rgba(124, 58, 237, 0.1);
    border-color: rgba(109, 40, 217, 0.2);
}

html[data-mockup-theme-resolved="light"] .journey-load-progress-overall {
    background: rgba(15, 23, 42, 0.06);
}

html[data-mockup-theme-resolved="light"] .journey-progress-step-bar {
    background: rgba(15, 23, 42, 0.06);
}

html[data-mockup-theme-resolved="light"] .journey-progress-step.active .journey-progress-step-head {
    color: #6d28d9;
}

html[data-mockup-theme-resolved="light"] .profile-max-depth-section {
    background:
        linear-gradient(145deg, rgba(124, 58, 237, 0.09), rgba(6, 182, 212, 0.06)),
        linear-gradient(180deg, #ffffff 0%, #f5f3ff 100%);
    border: 1.5px solid rgba(109, 40, 217, 0.28);
    box-shadow:
        0 4px 16px rgba(109, 40, 217, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

html[data-mockup-theme-resolved="light"] .profile-max-depth-eyebrow {
    color: #475569;
}

html[data-mockup-theme-resolved="light"] .profile-max-depth-eyebrow i {
    color: #0891b2;
}

html[data-mockup-theme-resolved="light"] .profile-max-depth-badge {
    color: #14532d;
    background: linear-gradient(135deg, #fde047, #4ade80);
    border-color: rgba(22, 163, 74, 0.25);
    box-shadow: 0 2px 8px rgba(250, 204, 21, 0.35);
}

html[data-mockup-theme-resolved="light"] .profile-social-max-btn {
    background:
        linear-gradient(135deg, rgba(124, 58, 237, 0.07), rgba(6, 182, 212, 0.05)),
        #ffffff;
    border: 1.5px solid rgba(109, 40, 217, 0.22);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}

html[data-mockup-theme-resolved="light"] .profile-social-max-btn:hover:not(:disabled) {
    border-color: rgba(109, 40, 217, 0.42);
    box-shadow: 0 6px 18px rgba(109, 40, 217, 0.14);
}

html[data-mockup-theme-resolved="light"] .profile-social-max-btn.active {
    border-color: rgba(217, 119, 6, 0.45);
    background:
        linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(6, 182, 212, 0.08)),
        #fffbeb;
    box-shadow:
        0 0 0 1px rgba(250, 204, 21, 0.35),
        0 6px 20px rgba(109, 40, 217, 0.12);
}

html[data-mockup-theme-resolved="light"] .profile-social-max-btn.is-locked {
    border-style: dashed;
    border-color: rgba(100, 116, 139, 0.35);
    background: #f8fafc;
    box-shadow: none;
}

html[data-mockup-theme-resolved="light"] .profile-social-max-btn-glow {
    background: linear-gradient(
        120deg,
        transparent 20%,
        rgba(250, 204, 21, 0.35) 45%,
        rgba(8, 145, 178, 0.22) 55%,
        transparent 80%
    );
}

html[data-mockup-theme-resolved="light"] .profile-social-max-btn-icon {
    color: #6d28d9;
    background: linear-gradient(145deg, rgba(124, 58, 237, 0.14), rgba(6, 182, 212, 0.12));
    border-color: rgba(109, 40, 217, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

html[data-mockup-theme-resolved="light"] .profile-social-max-btn.active .profile-social-max-btn-icon {
    color: #b45309;
    background: linear-gradient(145deg, rgba(250, 204, 21, 0.35), rgba(52, 211, 153, 0.22));
    border-color: rgba(217, 119, 6, 0.35);
}

html[data-mockup-theme-resolved="light"] .profile-social-max-btn-title {
    color: #0f172a;
}

html[data-mockup-theme-resolved="light"] .profile-social-max-btn.active .profile-social-max-btn-title {
    background: linear-gradient(135deg, #7c2d12 0%, #6d28d9 55%, #0891b2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

html[data-mockup-theme-resolved="light"] .profile-social-max-btn-sub {
    color: #64748b;
}

html[data-mockup-theme-resolved="light"] .profile-social-max-spec {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.1);
    color: #64748b;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

html[data-mockup-theme-resolved="light"] .profile-social-max-spec strong {
    color: #6d28d9;
}

html[data-mockup-theme-resolved="light"] .profile-social-max-btn.active .profile-social-max-spec {
    background: #fffbeb;
    border-color: rgba(217, 119, 6, 0.28);
}

html[data-mockup-theme-resolved="light"] .profile-social-max-btn.active .profile-social-max-spec strong {
    color: #b45309;
}

html[data-mockup-theme-resolved="light"] .profile-social-max-compare .is-std {
    color: #64748b;
    background: #f1f5f9;
    border-color: rgba(15, 23, 42, 0.1);
}

html[data-mockup-theme-resolved="light"] .profile-social-max-compare .is-max {
    color: #5b21b6;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.14), rgba(6, 182, 212, 0.1));
    border-color: rgba(109, 40, 217, 0.28);
    box-shadow: 0 2px 8px rgba(109, 40, 217, 0.12);
}

html[data-mockup-theme-resolved="light"] .profile-social-max-compare.is-active .is-max {
    color: #14532d;
    background: linear-gradient(135deg, #fde047, #4ade80);
    border-color: rgba(22, 163, 74, 0.28);
}

html[data-mockup-theme-resolved="light"] .profile-social-max-compare > i.fa-arrow-right {
    color: #94a3b8;
}

html[data-mockup-theme-resolved="light"] .profile-social-max-btn-chip {
    color: #5b21b6;
    background: rgba(124, 58, 237, 0.1);
    border-color: rgba(109, 40, 217, 0.28);
}

html[data-mockup-theme-resolved="light"] .profile-social-max-btn-chip.is-on {
    color: #14532d;
    background: linear-gradient(135deg, #fde047, #4ade80);
    border-color: rgba(22, 163, 74, 0.3);
    box-shadow: 0 2px 8px rgba(74, 222, 128, 0.35);
}

html[data-mockup-theme-resolved="light"] .profile-social-max-btn-chip.is-lock {
    color: #64748b;
    background: #f1f5f9;
    border-color: rgba(15, 23, 42, 0.12);
}

html[data-mockup-theme-resolved="light"] .profile-social-max-btn-chip.is-busy {
    color: #6d28d9;
}

html[data-mockup-theme-resolved="light"] .journey-auth-modal-panel {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.1);
}

html[data-mockup-theme-resolved="light"] .profile-news-section {
    border-top-color: rgba(15, 23, 42, 0.08);
}

html[data-mockup-theme-resolved="light"] .profile-news-item {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(15, 23, 42, 0.08);
}

html[data-mockup-theme-resolved="light"] .profile-news-date {
    color: var(--text-muted);
}

html[data-mockup-theme-resolved="light"] .profile-news-title {
    color: var(--text-primary);
}

html[data-mockup-theme-resolved="light"] a.profile-news-title:hover {
    color: #0891b2;
}

html[data-mockup-theme-resolved="light"] .profile-news-stock {
    background: rgba(109, 40, 217, 0.1);
    border-color: rgba(109, 40, 217, 0.22);
}

html[data-mockup-theme-resolved="light"] .profile-hero-details .company-summary-card {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.09);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

html[data-mockup-theme-resolved="light"] .profile-hero-details .company-summary-card--holding-only {
    border-color: rgba(6, 182, 212, 0.28);
    background: rgba(6, 182, 212, 0.05);
}

html[data-mockup-theme-resolved="light"] .profile-hero-details .company-stock-name {
    color: #0891b2;
}

html[data-mockup-theme-resolved="light"] .profile-hero-details .company-stock-name:hover {
    color: #6d28d9;
}

html[data-mockup-theme-resolved="light"] .profile-status.active {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.18);
}

html[data-mockup-theme-resolved="light"] .profile-status.inactive {
    background: rgba(100, 116, 139, 0.1);
    color: var(--text-muted);
}

html[data-mockup-theme-resolved="light"] .profile-activity-badge {
    color: #6d28d9;
}

html[data-mockup-theme-resolved="light"] .profile-activity-highlight {
    color: var(--text-secondary);
}

html[data-mockup-theme-resolved="light"] .profile-hero-identity .variant-chip {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.1);
    color: var(--text-secondary);
}

html[data-mockup-theme-resolved="light"] .profile-hero-identity .variant-chip:hover {
    border-color: rgba(6, 182, 212, 0.45);
    color: var(--text-primary);
    background: rgba(6, 182, 212, 0.05);
}

html[data-mockup-theme-resolved="light"] .profile-hero-details .company-summary-more {
    color: var(--text-muted);
}

html[data-mockup-theme-resolved="light"] .profile-hero-details .role-position-chip {
    color: #5b21b6;
    background: rgba(124, 58, 237, 0.08);
    border-color: rgba(124, 58, 237, 0.16);
}

html[data-mockup-theme-resolved="light"] .profile-hero-details .role-tenure-years {
    color: #6d28d9;
    background: rgba(124, 58, 237, 0.08);
}

html[data-mockup-theme-resolved="light"] .profile-hero-details .company-holding-row {
    color: var(--text-secondary);
}

html[data-mockup-theme-resolved="light"] .profile-hero-details .company-holding-row strong {
    color: #047857;
}

html[data-mockup-theme-resolved="light"] .analysis-slide-inner {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.09);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

html[data-mockup-theme-resolved="light"] .analysis-slide--active .analysis-slide-inner {
    border-color: rgba(99, 102, 241, 0.28);
    box-shadow: 0 4px 22px rgba(15, 23, 42, 0.08), 0 0 0 1.5px rgba(99, 102, 241, 0.16);
}

html[data-mockup-theme-resolved="light"] .analysis-slide-inner--hook {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 55%, #eef2ff 100%);
}

html[data-mockup-theme-resolved="light"] .analysis-slide-inner--max {
    background: linear-gradient(135deg, #ffffff 0%, #fffbeb 55%, #fef3c7 100%);
    border-color: rgba(245, 158, 11, 0.28);
}

html[data-mockup-theme-resolved="light"] .analysis-slide-inner--takeaways {
    background: rgba(124, 58, 237, 0.05);
}

html[data-mockup-theme-resolved="light"] .analysis-arrow {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(15, 23, 42, 0.1);
    color: #475569;
}

html[data-mockup-theme-resolved="light"] .analysis-signal {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.08);
}

/* Insider 59-2 trade report table */
.journey-card.insider-trade-card {
    background: var(--surface-panel-strong, var(--card));
    border-color: rgba(124, 58, 237, 0.22);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.32),
        0 0 0 1px rgba(6, 182, 212, 0.06);
    gap: 0;
}

.insider-trade-card-head {
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.insider-trade-card-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.insider-trade-card-hint {
    font-size: 0.74rem;
    color: var(--text3);
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.insider-view-switch {
    position: relative;
    display: inline-flex;
    align-items: stretch;
    padding: 3px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface-card-soft, rgba(255, 255, 255, 0.04));
    flex-shrink: 0;
}

.insider-view-switch-btn {
    position: relative;
    z-index: 1;
    border: none;
    background: transparent;
    color: var(--text2);
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: color 0.18s ease;
    white-space: nowrap;
}

.insider-view-switch-btn:hover {
    color: var(--text);
}

.insider-view-switch-btn.active {
    color: var(--text);
}

.insider-view-switch-pill {
    position: absolute;
    top: 3px;
    left: 3px;
    height: calc(100% - 6px);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.38), rgba(6, 182, 212, 0.22));
    border: 1px solid rgba(124, 58, 237, 0.35);
    box-shadow: 0 2px 10px rgba(124, 58, 237, 0.22);
    transition: transform 0.22s ease, width 0.22s ease;
    pointer-events: none;
}

.insider-trade-table-wrap {
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface-card-faint, rgba(0, 0, 0, 0.18));
    overflow: auto;
    max-height: min(420px, 52vh);
    -webkit-overflow-scrolling: touch;
}

.insider-trade-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.8rem;
    min-width: 640px;
}

.insider-trade-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 10px 12px;
    text-align: left;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text2);
    background: var(--surface-panel-stronger, rgba(9, 9, 33, 0.98));
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.insider-trade-table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text);
    vertical-align: top;
}

.insider-trade-table tbody tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.025);
}

.insider-trade-table tbody tr:hover td {
    background: var(--surface-hover-strong, rgba(255, 255, 255, 0.06));
}

.insider-trade-table tbody tr:last-child td {
    border-bottom: none;
}

.insider-trade-table .num {
    font-variant-numeric: tabular-nums;
    text-align: right;
    white-space: nowrap;
}

.insider-trade-table .insider-stock-btn {
    border: none;
    background: rgba(6, 182, 212, 0.12);
    color: var(--cyan);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.insider-trade-table .insider-stock-btn:hover {
    background: rgba(6, 182, 212, 0.22);
    color: #fff;
}

.insider-action-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
}

.insider-action-badge--buy {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.42);
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.08);
}

.insider-action-badge--sell {
    background: rgba(239, 68, 68, 0.18);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.42);
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.08);
}

.insider-action-badge--other {
    background: rgba(148, 163, 184, 0.12);
    color: var(--text2);
    border: 1px solid var(--border);
}

.insider-net-positive {
    color: #34d399;
    font-weight: 800;
}

.insider-net-negative {
    color: #f87171;
    font-weight: 800;
}

.insider-net-zero {
    color: var(--text2);
}

.insider-trade-remark {
    font-size: 0.72rem;
    color: var(--text3);
    max-width: 220px;
    line-height: 1.35;
}

.insider-trade-sec-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    color: var(--purple-light);
    text-decoration: none;
    margin-top: 4px;
}

.insider-trade-sec-link:hover {
    color: var(--cyan);
    text-decoration: underline;
}

.insider-trade-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.insider-trade-summary-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    border: 1px solid var(--border);
    background: var(--surface-card-soft);
    color: var(--text2);
}

.insider-trade-summary-chip strong {
    color: var(--text);
}

.insider-trade-summary-chip--buy {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.32);
    color: #6ee7b7;
}

.insider-trade-summary-chip--buy strong {
    color: #34d399;
}

.insider-trade-summary-chip--sell {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.32);
    color: #fca5a5;
}

.insider-trade-summary-chip--sell strong {
    color: #f87171;
}

.insider-vol-badge {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    min-width: 72px;
    padding: 4px 8px;
    border-radius: 8px;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
}

.insider-vol-badge-tag {
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    opacity: 0.95;
}

.insider-vol-badge-num {
    font-size: 0.78rem;
}

.insider-vol-badge--buy {
    background: rgba(16, 185, 129, 0.14);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.28);
}

.insider-vol-badge--sell {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.28);
}

.insider-vol-badge--zero {
    color: var(--text3);
    background: transparent;
    border: 1px solid transparent;
    min-width: auto;
    padding: 0;
}

.insider-mini-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 0.64rem;
    font-weight: 800;
    white-space: nowrap;
}

.insider-mini-badge--buy {
    background: rgba(16, 185, 129, 0.16);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.28);
}

.insider-mini-badge--sell {
    background: rgba(239, 68, 68, 0.14);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.28);
}

.insider-mini-badge--neutral {
    background: rgba(148, 163, 184, 0.1);
    color: var(--text3);
    border: 1px solid var(--border);
}

.insider-chip-meta-buysell {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.insider-th-buy {
    color: #6ee7b7 !important;
}

.insider-th-sell {
    color: #fca5a5 !important;
}

.insider-th-buy i,
.insider-th-sell i {
    margin-right: 4px;
    font-size: 0.62rem;
}

.insider-trade-row--buy td:first-child {
    box-shadow: inset 3px 0 0 rgba(16, 185, 129, 0.75);
}

.insider-trade-row--sell td:first-child {
    box-shadow: inset 3px 0 0 rgba(239, 68, 68, 0.75);
}

.insider-cell-buy {
    color: #6ee7b7 !important;
    font-weight: 800;
}

.insider-cell-sell {
    color: #fca5a5 !important;
    font-weight: 800;
}

.landing-insider-stat--buy {
    border-color: rgba(16, 185, 129, 0.28);
    background: rgba(16, 185, 129, 0.08);
}

.landing-insider-stat--buy .landing-insider-stat-val {
    color: #6ee7b7;
}

.landing-insider-stat--sell {
    border-color: rgba(239, 68, 68, 0.28);
    background: rgba(239, 68, 68, 0.08);
}

.landing-insider-stat--sell .landing-insider-stat-val {
    color: #fca5a5;
}

.landing-insider-stat-badge {
    align-self: flex-start;
    margin-bottom: 4px;
    font-size: 0.66rem;
}

@media (max-width: 720px) {
    .insider-trade-card-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .insider-view-switch {
        width: 100%;
        justify-content: stretch;
    }

    .insider-view-switch-btn {
        flex: 1;
        text-align: center;
    }
}

html[data-mockup-theme-resolved="light"] .journey-card.insider-trade-card {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow:
        0 2px 14px rgba(15, 23, 42, 0.08),
        0 0 0 1px rgba(99, 102, 241, 0.08);
}

html[data-mockup-theme-resolved="light"] .insider-view-switch {
    background: #f1f5f9;
    border-color: rgba(15, 23, 42, 0.1);
}

html[data-mockup-theme-resolved="light"] .insider-view-switch-btn {
    color: #64748b;
}

html[data-mockup-theme-resolved="light"] .insider-view-switch-btn.active {
    color: #1e293b;
}

html[data-mockup-theme-resolved="light"] .insider-view-switch-pill {
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.14), rgba(8, 145, 178, 0.12));
    border-color: rgba(109, 40, 217, 0.22);
    box-shadow: 0 1px 6px rgba(15, 23, 42, 0.06);
}

html[data-mockup-theme-resolved="light"] .insider-trade-table-wrap {
    background: #f8fafc;
    border-color: rgba(15, 23, 42, 0.1);
}

html[data-mockup-theme-resolved="light"] .insider-trade-table thead th {
    background: #eef2ff;
    color: #475569;
    border-bottom-color: rgba(15, 23, 42, 0.1);
}

html[data-mockup-theme-resolved="light"] .insider-trade-table tbody td {
    border-bottom-color: rgba(15, 23, 42, 0.06);
    color: #1e293b;
}

html[data-mockup-theme-resolved="light"] .insider-trade-table tbody tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.85);
}

html[data-mockup-theme-resolved="light"] .insider-trade-table tbody tr:hover td {
    background: rgba(99, 102, 241, 0.06);
}

html[data-mockup-theme-resolved="light"] .insider-trade-table .insider-stock-btn {
    background: rgba(8, 145, 178, 0.1);
    color: #0891b2;
}

html[data-mockup-theme-resolved="light"] .insider-trade-table .insider-stock-btn:hover {
    background: rgba(8, 145, 178, 0.18);
    color: #0e7490;
}

html[data-mockup-theme-resolved="light"] .insider-action-badge--buy {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
    border-color: rgba(16, 185, 129, 0.28);
    box-shadow: none;
}

html[data-mockup-theme-resolved="light"] .insider-action-badge--sell {
    background: rgba(239, 68, 68, 0.1);
    color: #b91c1c;
    border-color: rgba(239, 68, 68, 0.26);
    box-shadow: none;
}

html[data-mockup-theme-resolved="light"] .insider-trade-summary-chip--buy {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.24);
    color: #047857;
}

html[data-mockup-theme-resolved="light"] .insider-trade-summary-chip--buy strong {
    color: #047857;
}

html[data-mockup-theme-resolved="light"] .insider-trade-summary-chip--sell {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.22);
    color: #b91c1c;
}

html[data-mockup-theme-resolved="light"] .insider-trade-summary-chip--sell strong {
    color: #b91c1c;
}

html[data-mockup-theme-resolved="light"] .insider-vol-badge--buy {
    background: rgba(16, 185, 129, 0.1);
    color: #047857;
    border-color: rgba(16, 185, 129, 0.22);
}

html[data-mockup-theme-resolved="light"] .insider-vol-badge--sell {
    background: rgba(239, 68, 68, 0.08);
    color: #b91c1c;
    border-color: rgba(239, 68, 68, 0.2);
}

html[data-mockup-theme-resolved="light"] .insider-mini-badge--buy {
    background: rgba(16, 185, 129, 0.1);
    color: #047857;
    border-color: rgba(16, 185, 129, 0.22);
}

html[data-mockup-theme-resolved="light"] .insider-mini-badge--sell {
    background: rgba(239, 68, 68, 0.08);
    color: #b91c1c;
    border-color: rgba(239, 68, 68, 0.2);
}

html[data-mockup-theme-resolved="light"] .insider-th-buy {
    color: #047857 !important;
}

html[data-mockup-theme-resolved="light"] .insider-th-sell {
    color: #b91c1c !important;
}

html[data-mockup-theme-resolved="light"] .insider-cell-buy {
    color: #047857 !important;
}

html[data-mockup-theme-resolved="light"] .insider-cell-sell {
    color: #b91c1c !important;
}

html[data-mockup-theme-resolved="light"] .insider-trade-row--buy td:first-child {
    box-shadow: inset 3px 0 0 rgba(16, 185, 129, 0.55);
}

html[data-mockup-theme-resolved="light"] .insider-trade-row--sell td:first-child {
    box-shadow: inset 3px 0 0 rgba(239, 68, 68, 0.55);
}

html[data-mockup-theme-resolved="light"] .insider-net-positive {
    color: #047857;
}

html[data-mockup-theme-resolved="light"] .insider-net-negative {
    color: #b91c1c;
}

html[data-mockup-theme-resolved="light"] .insider-trade-summary-chip {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.1);
    color: #64748b;
}

html[data-mockup-theme-resolved="light"] .insider-trade-summary-chip strong {
    color: #1e293b;
}

/* Landing — market insider hero + table */
/* Insider quick BUY / SELL filters */
.insider-quick-toolbar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}

.insider-quick-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.insider-quick-filters-label {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--text2);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 2px;
}

.insider-quick-filters-label i {
    color: var(--yellow);
}

.insider-quick-filter-btn {
    border: 1px solid var(--border);
    background: var(--surface-card-soft);
    color: var(--text2);
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s;
}

.insider-quick-filter-btn:hover {
    border-color: var(--border-glow, rgba(124, 58, 237, 0.3));
    color: var(--text);
}

.insider-quick-filter-btn.active {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.22), rgba(6, 182, 212, 0.12));
    border-color: rgba(124, 58, 237, 0.35);
    color: var(--purple-light);
}

.insider-quick-filter-btn--buy.active {
    background: rgba(16, 185, 129, 0.18);
    border-color: rgba(16, 185, 129, 0.42);
    color: #6ee7b7;
}

.insider-quick-filter-btn--sell.active {
    background: rgba(239, 68, 68, 0.16);
    border-color: rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

.insider-quick-stocks {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    background: var(--surface-card-faint, rgba(0, 0, 0, 0.15));
}

.insider-quick-stocks--buy {
    border-color: rgba(16, 185, 129, 0.28);
    background: rgba(16, 185, 129, 0.06);
}

.insider-quick-stocks--sell {
    border-color: rgba(239, 68, 68, 0.28);
    background: rgba(239, 68, 68, 0.05);
}

.insider-quick-stocks-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 8px;
}

.insider-quick-stocks-title {
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.insider-quick-stocks--buy .insider-quick-stocks-title {
    color: #6ee7b7;
}

.insider-quick-stocks--sell .insider-quick-stocks-title {
    color: #fca5a5;
}

.insider-quick-stocks-sub {
    font-size: 0.66rem;
    color: var(--text3);
}

.insider-quick-stocks-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-height: 120px;
    overflow: auto;
}

.insider-quick-stock-chip {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text2);
    font-family: inherit;
    font-size: 0.72rem;
    padding: 5px 10px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s;
}

.insider-quick-stocks--buy .insider-quick-stock-chip {
    border-color: rgba(16, 185, 129, 0.28);
    background: rgba(16, 185, 129, 0.1);
}

.insider-quick-stocks--sell .insider-quick-stock-chip {
    border-color: rgba(239, 68, 68, 0.26);
    background: rgba(239, 68, 68, 0.08);
}

.insider-quick-stock-chip:hover {
    transform: translateY(-1px);
}

.insider-quick-stock-chip strong {
    color: var(--cyan);
    font-weight: 900;
}

.insider-quick-stock-chip-meta {
    font-size: 0.64rem;
    color: var(--text3);
}

.insider-quick-stocks-empty {
    font-size: 0.74rem;
    color: var(--text3);
}

.landing-insider-section {
    padding: 0 24px 20px;
    flex: none;
}

.landing-insider-hero {
    position: relative;
    padding: 20px 22px 18px;
    border-radius: 16px;
    border: 1px solid rgba(124, 58, 237, 0.24);
    background:
        radial-gradient(ellipse 70% 100% at 0% 0%, rgba(124, 58, 237, 0.16), transparent 55%),
        radial-gradient(ellipse 55% 80% at 100% 100%, rgba(6, 182, 212, 0.12), transparent 50%),
        linear-gradient(135deg, rgba(14, 14, 42, 0.96), rgba(9, 9, 33, 0.98));
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.28);
    margin-bottom: 14px;
    overflow: hidden;
}

.landing-insider-hero-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.landing-insider-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 6px;
}

.landing-insider-title {
    margin: 0 0 6px 0;
    font-size: clamp(1.15rem, 2.4vw, 1.45rem);
    font-weight: 900;
    line-height: 1.25;
    background: linear-gradient(135deg, #fff 0%, var(--purple-light) 55%, var(--cyan) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.landing-insider-sub {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text2);
    line-height: 1.45;
    max-width: 640px;
}

.landing-insider-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.landing-insider-stat {
    background: var(--surface-card-soft, rgba(255, 255, 255, 0.04));
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.landing-insider-stat-val {
    font-size: 1rem;
    font-weight: 900;
    color: var(--text);
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.landing-insider-stat-lbl {
    font-size: 0.68rem;
    color: var(--text3);
    font-weight: 700;
}

.landing-insider-tops {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.landing-insider-top-label {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--text2);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.landing-insider-top-label i {
    color: var(--purple-light);
}

.landing-insider-top-scope {
    font-size: 0.66rem;
    font-weight: 800;
    color: var(--cyan);
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(6, 182, 212, 0.28);
    background: rgba(6, 182, 212, 0.08);
    margin-left: 4px;
}

.landing-insider-top-note {
    margin: 0 0 8px 0;
    font-size: 0.68rem;
    line-height: 1.4;
    color: var(--text3);
}

.landing-insider-top-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.landing-insider-top-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.72rem;
    color: var(--text2);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
}

.landing-insider-top-chip:hover {
    border-color: rgba(6, 182, 212, 0.4);
    color: var(--text);
    background: rgba(6, 182, 212, 0.08);
}

.landing-insider-top-chip strong {
    color: var(--text);
    font-weight: 800;
}

.landing-insider-top-chip .chip-meta {
    color: var(--text3);
    font-size: 0.66rem;
}

.landing-insider-top-chip--stock {
    background: rgba(6, 182, 212, 0.08);
    border-color: rgba(6, 182, 212, 0.2);
}

.landing-insider-top-empty {
    font-size: 0.74rem;
    color: var(--text3);
}

.journey-card.landing-insider-card {
    margin-top: 0;
}

.insider-person-btn {
    border: none;
    background: rgba(124, 58, 237, 0.12);
    color: var(--purple-light);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    cursor: pointer;
    text-align: left;
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background 0.15s, color 0.15s;
}

.insider-person-btn:hover {
    background: rgba(124, 58, 237, 0.24);
    color: #fff;
}

@media (max-width: 900px) {
    .landing-insider-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .landing-insider-tops {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .landing-insider-section {
        padding: 0 14px 16px;
    }

    .landing-insider-hero {
        padding: 16px 14px;
    }

    .landing-insider-stats {
        grid-template-columns: 1fr 1fr;
    }
}

html[data-mockup-theme-resolved="light"] .landing-insider-hero {
    background:
        radial-gradient(ellipse 70% 100% at 0% 0%, rgba(124, 58, 237, 0.08), transparent 55%),
        radial-gradient(ellipse 55% 80% at 100% 100%, rgba(6, 182, 212, 0.06), transparent 50%),
        linear-gradient(135deg, #ffffff, #f8fafc);
    border-color: rgba(15, 23, 42, 0.1);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.07);
}

html[data-mockup-theme-resolved="light"] .landing-insider-title {
    background: linear-gradient(135deg, #1e293b 0%, #6d28d9 55%, #0891b2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

html[data-mockup-theme-resolved="light"] .landing-insider-sub {
    color: var(--text-secondary);
}

html[data-mockup-theme-resolved="light"] .landing-insider-stat {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.09);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

html[data-mockup-theme-resolved="light"] .landing-insider-stat-val {
    color: var(--text-primary);
}

html[data-mockup-theme-resolved="light"] .landing-insider-stat--buy {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.22);
}

html[data-mockup-theme-resolved="light"] .landing-insider-stat--buy .landing-insider-stat-val {
    color: #047857;
}

html[data-mockup-theme-resolved="light"] .landing-insider-stat--sell {
    background: rgba(239, 68, 68, 0.06);
    border-color: rgba(239, 68, 68, 0.2);
}

html[data-mockup-theme-resolved="light"] .landing-insider-stat--sell .landing-insider-stat-val {
    color: #b91c1c;
}

html[data-mockup-theme-resolved="light"] .landing-insider-top-chip {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.1);
    color: var(--text-secondary);
}

html[data-mockup-theme-resolved="light"] .landing-insider-top-chip--stock {
    background: rgba(8, 145, 178, 0.08);
    border-color: rgba(8, 145, 178, 0.2);
}

html[data-mockup-theme-resolved="light"] .landing-insider-top-scope {
    color: #0891b2;
    border-color: rgba(8, 145, 178, 0.24);
    background: rgba(8, 145, 178, 0.08);
}

html[data-mockup-theme-resolved="light"] .landing-insider-top-note {
    color: var(--text-muted);
}

html[data-mockup-theme-resolved="light"] .insider-person-btn {
    background: rgba(109, 40, 217, 0.08);
    color: #6d28d9;
}

html[data-mockup-theme-resolved="light"] .insider-person-btn:hover {
    background: rgba(109, 40, 217, 0.16);
    color: #5b21b6;
}

html[data-mockup-theme-resolved="light"] .insider-quick-filter-btn {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.1);
    color: var(--text-secondary);
}

html[data-mockup-theme-resolved="light"] .insider-quick-filter-btn--buy.active {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.28);
    color: #047857;
}

html[data-mockup-theme-resolved="light"] .insider-quick-filter-btn--sell.active {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.24);
    color: #b91c1c;
}

html[data-mockup-theme-resolved="light"] .insider-quick-stocks {
    background: #f8fafc;
    border-color: rgba(15, 23, 42, 0.1);
}

html[data-mockup-theme-resolved="light"] .insider-quick-stocks--buy {
    background: rgba(16, 185, 129, 0.06);
    border-color: rgba(16, 185, 129, 0.22);
}

html[data-mockup-theme-resolved="light"] .insider-quick-stocks--sell {
    background: rgba(239, 68, 68, 0.05);
    border-color: rgba(239, 68, 68, 0.2);
}

html[data-mockup-theme-resolved="light"] .insider-quick-stocks--buy .insider-quick-stocks-title {
    color: #047857;
}

html[data-mockup-theme-resolved="light"] .insider-quick-stocks--sell .insider-quick-stocks-title {
    color: #b91c1c;
}

html[data-mockup-theme-resolved="light"] .insider-quick-stock-chip {
    background: #ffffff;
}

html[data-mockup-theme-resolved="light"] .insider-quick-stock-chip strong {
    color: #0891b2;
}

