/* yeux.app landing chat — matte Z.ai-inspired (no glossy gradients) */

#yeux-live-chat-root {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99990;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

#yeux-live-chat-toggle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid #3a3a3a;
    background: #1a1a1a;
    color: #e5e5e5;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: background 0.15s ease, border-color 0.15s ease;
}

#yeux-live-chat-toggle:hover {
    background: #242424;
    border-color: #525252;
}

#yeux-live-chat-panel {
    display: none;
    position: absolute;
    bottom: 60px;
    right: 0;
    width: min(380px, calc(100vw - 32px));
    height: 480px;
    background: #111111;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    flex-direction: column;
    overflow: hidden;
}

#yeux-live-chat-panel.open {
    display: flex;
}

#yeux-live-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #262626;
    background: #111111;
}

#yeux-live-chat-header .title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #f5f5f5;
}

#yeux-live-chat-header .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #737373;
}

#yeux-live-chat-close {
    background: transparent;
    border: none;
    color: #a3a3a3;
    cursor: pointer;
    padding: 4px;
    font-size: 1rem;
}

#yeux-live-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.yeux-lc-msg {
    max-width: 88%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.55;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    box-sizing: border-box;
}

.yeux-lc-msg.user {
    align-self: flex-end;
    background: #262626;
    color: #f5f5f5;
    border: 1px solid #333333;
    border-bottom-right-radius: 4px;
}

.yeux-lc-msg.assistant {
    align-self: flex-start;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    color: #d4d4d4;
    border-bottom-left-radius: 4px;
}

.yeux-lc-msg.system {
    align-self: center;
    font-size: 11px;
    color: #737373;
    background: transparent;
    padding: 4px 8px;
}

.yeux-lc-msg.error {
    align-self: flex-start;
    background: #1f1414;
    border: 1px solid #3f2a2a;
    color: #d4a0a0;
}

#yeux-live-chat-thinking {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 0 16px 8px;
    font-size: 12px;
    color: #737373;
}

#yeux-live-chat-thinking::before {
    content: '';
    width: 3px;
    height: 14px;
    background: #525252;
    border-radius: 2px;
    animation: yeuxLcPulse 1s ease-in-out infinite;
}

@keyframes yeuxLcPulse {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 1; }
}

#yeux-live-chat-form {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid #262626;
    background: #111111;
}

#yeux-live-chat-input {
    flex: 1;
    border: 1px solid #333333;
    border-radius: 10px;
    background: #0c0c0c;
    color: #f5f5f5;
    padding: 10px 12px;
    font-size: 13px;
    outline: none;
    resize: none;
    min-height: 40px;
    max-height: 80px;
    font-family: inherit;
}

#yeux-live-chat-input:focus {
    border-color: #525252;
}

#yeux-live-chat-send {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid #404040;
    background: #262626;
    color: #f5f5f5;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

#yeux-live-chat-send:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.yeux-lc-stream-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: #a3a3a3;
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: yeuxLcBlink 0.9s infinite;
}

@keyframes yeuxLcBlink {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

@media (max-width: 480px) {
    #yeux-live-chat-root {
        bottom: 16px;
        right: 16px;
    }
    #yeux-live-chat-panel {
        height: min(70vh, 520px);
    }
}

/* ── Homepage hero chat (Z.ai layout, matte palette) ── */
.yeux-hero-chat {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    padding: 40px 0 56px;
    background: #0a0a0a;
}

.yeux-hero-chat-inner {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    min-height: min(720px, calc(100vh - 120px));
    overflow: visible;
}

/* ── Chat card frame ─────────────────────────────────────────── */
.yeux-hero-chat-card {
    display: flex;
    flex-direction: column;
    margin-top: 4px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.04) inset,
                0 8px 32px rgba(0,0,0,0.35);
}

.yeux-hero-chat-card:focus-within {
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 0 0 1px rgba(59,130,246,0.08) inset,
                0 8px 40px rgba(0,0,0,0.40),
                0 0 0 3px rgba(59,130,246,0.10);
}

.yeux-hero-chat-head {
    text-align: center;
    margin-bottom: 28px;
}

.yeux-hero-chat-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border-radius: 6px;
    border: 1px solid #2a2a2a;
    background: #141414;
    color: #a3a3a3;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.01em;
    margin-bottom: 20px;
}

.yeux-hero-chat-badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #737373;
}

.yeux-hero-chat-head h1 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 600;
    color: #fafafa;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0 0 10px;
}

.yeux-hero-chat-sub {
    font-size: 15px;
    line-height: 1.6;
    color: #737373;
    max-width: 520px;
    margin: 0 auto;
}

.yeux-hero-chat-messages {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px 16px 8px;
    min-height: 200px;
    max-height: min(52vh, 480px);
    scroll-behavior: smooth;
    /* overscroll handled by JS — scroll passes through to page at boundaries */
    overscroll-behavior-y: none;
    scrollbar-gutter: stable;
    -webkit-overflow-scrolling: touch;
}

.yeux-hero-chat-messages::-webkit-scrollbar {
    width: 5px;
}

.yeux-hero-chat-messages::-webkit-scrollbar-thumb {
    background: #333333;
    border-radius: 999px;
}

.yeux-hero-chat-messages {
    scrollbar-width: thin;
    scrollbar-color: #333333 transparent;
}

.yeux-hero-chat-messages .yeux-lc-msg {
    max-width: 92%;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.65;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.yeux-hero-chat-messages .yeux-lc-msg.user {
    align-self: flex-end;
    background: #262626;
    border: 1px solid #333333;
    color: #f5f5f5;
    border-bottom-right-radius: 4px;
}

.yeux-hero-chat-messages .yeux-lc-msg.assistant {
    align-self: flex-start;
    background: #141414;
    border: 1px solid #2a2a2a;
    color: #d4d4d4;
    border-bottom-left-radius: 4px;
}

.yeux-hero-chat-messages .yeux-lc-msg.system {
    align-self: center;
    font-size: 12px;
    color: #737373;
    background: transparent;
}

.yeux-hero-chat-messages .yeux-lc-msg.error {
    align-self: flex-start;
    background: #1a1212;
    border: 1px solid #3a2a2a;
    color: #c9a0a0;
}

.yeux-hero-chat-messages .yeux-lc-msg.analysis {
    align-self: stretch;
    max-width: 100%;
    width: 100%;
    background: #111111;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 18px 20px 20px;
}

.yeux-lc-report {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.yeux-lc-report-wide {
    width: 100%;
    max-width: 100%;
}

.yeux-lc-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin: 10px 0 14px;
    border: 1px solid #262626;
    border-radius: 10px;
    background: #0a0a0a;
}

.yeux-lc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    line-height: 1.45;
    min-width: 520px;
}

.yeux-lc-table th,
.yeux-lc-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #1f1f1f;
    text-align: left;
    vertical-align: top;
    color: #d4d4d4;
}

.yeux-lc-table th {
    background: #141414;
    color: #f5f5f5;
    font-weight: 600;
    white-space: nowrap;
}

.yeux-lc-table tr:last-child td {
    border-bottom: none;
}

.yeux-lc-mini-chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
    width: 100%;
    margin-top: 16px;
}

.yeux-lc-mini-chart-grid-item {
    min-width: 0;
}

.yeux-lc-mini-chart-grid .yeux-lc-mini-chart {
    margin-top: 0;
}

.yeux-lc-report-sectioned .yeux-lc-section {
    background: #0c0c0c;
    border: 1px solid #262626;
    border-radius: 8px;
    padding: 12px 14px;
    margin-top: 4px;
}

.yeux-lc-section-title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #d4d4d4;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #262626;
}

.yeux-lc-para {
    margin: 0 0 8px;
    line-height: 1.65;
    color: #d4d4d4;
}

.yeux-lc-para:last-child {
    margin-bottom: 0;
}

.yeux-lc-strong {
    color: #f5f5f5;
    font-weight: 600;
}

.yeux-lc-list {
    margin: 6px 0 10px;
    padding-left: 18px;
    color: #a3a3a3;
}

.yeux-lc-list li {
    margin-bottom: 6px;
    line-height: 1.55;
}

/* Educational blocks — finance / crypto deep-dive */
.yeux-lc-report-edu { gap: 12px; }
.yeux-lc-edu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-right: 7px;
    flex-shrink: 0;
    color: inherit;
    font-size: 11px;
}
.yeux-lc-symbol-block {
    border: 1px solid #3f3f46;
    border-left: 3px solid #a3e635;
    border-radius: 10px;
    background: linear-gradient(135deg, #0f0f0f 0%, #141414 100%);
    padding: 14px 16px;
    margin: 8px 0;
}
.yeux-lc-symbol-block-title {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
    color: #a3e635;
    margin-bottom: 10px;
}
.yeux-lc-symbol-block-body { font-size: 13px; line-height: 1.65; color: #d4d4d4; }
.yeux-lc-concept {
    border: 1px solid #27272a;
    border-radius: 10px;
    background: #111827;
    padding: 12px 14px;
    margin: 8px 0;
}
.yeux-lc-concept-title {
    display: flex;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #93c5fd;
    margin-bottom: 8px;
}
.yeux-lc-concept-body { font-size: 13px; line-height: 1.65; color: #e5e7eb; }
.yeux-lc-math {
    border: 1px dashed #404040;
    border-radius: 10px;
    background: #0a0a0a;
    padding: 12px 14px;
    margin: 8px 0;
}
.yeux-lc-math-title {
    display: flex;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #fbbf24;
    margin-bottom: 8px;
}
.yeux-lc-math-body {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
    line-height: 1.7;
    color: #fde68a;
}
.yeux-lc-formula {
    border-radius: 8px;
    background: #171717;
    border: 1px solid #333;
    padding: 10px 12px;
    margin: 8px 0;
}
.yeux-lc-formula-label {
    display: flex;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #a78bfa;
    margin-bottom: 6px;
}
.yeux-lc-formula-body {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 13px;
    color: #e9d5ff;
    line-height: 1.5;
}
.yeux-lc-note {
    border-left: 3px solid #38bdf8;
    border-radius: 0 8px 8px 0;
    background: rgba(56, 189, 248, 0.06);
    padding: 10px 12px;
    margin: 8px 0;
}
.yeux-lc-note-title { display: flex; align-items: center; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: #7dd3fc; margin-bottom: 6px; }
.yeux-lc-note-body { font-size: 13px; line-height: 1.6; color: #bae6fd; }
.yeux-hero-chat-messages .yeux-lc-msg.education,
.yeux-lc-msg.education { border-color: #3f3f46; }

.yeux-hero-token-meter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #2a2a2a;
    background: #141414;
    font-size: 12px;
    color: #a3a3a3;
}

.yeux-hero-token-meter i {
    color: #737373;
    font-size: 12px;
}

.yeux-hero-token-val {
    font-weight: 600;
    color: #e5e5e5;
    font-variant-numeric: tabular-nums;
}

.yeux-hero-token-sep {
    opacity: 0.45;
}

.yeux-hero-token-label {
    color: #737373;
    font-size: 12px;
}

.yeux-hero-token-reset {
    margin-left: 6px;
    padding-left: 10px;
    border-left: 1px solid #2a2a2a;
    font-family: ui-monospace, monospace;
    font-size: 11px;
    color: #525252;
}

.yeux-hero-chat-messages .yeux-lc-msg.analysis-badge {
    align-self: flex-start;
    font-size: 11px;
    padding: 5px 10px;
    background: #1a1a1a;
    border: 1px solid #333333;
    color: #a3a3a3;
    border-radius: 6px;
}

.yeux-hero-chat-thinking {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 12px;
    font-size: 13px;
    color: #737373;
}

.yeux-hero-chat-thinking .pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #525252;
    animation: yeuxLcPulse 1s ease-in-out infinite;
}

.yeux-hero-chat-form {
    margin-top: 0;
    padding: 0;
}

.yeux-hero-chat-input-wrap {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 0;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.025);
    transition: border-color 0.15s ease, background 0.15s ease;
}

.yeux-hero-chat-input-wrap:focus-within {
    border-top-color: rgba(59, 130, 246, 0.35);
    background: rgba(59, 130, 246, 0.04);
}

#yeux-hero-chat-input {
    flex: 1;
    border: none;
    background: transparent;
    color: #f5f5f5;
    font-size: 15px;
    line-height: 1.5;
    outline: none;
    resize: none;
    min-height: 24px;
    max-height: 120px;
    font-family: inherit;
    padding: 4px 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #333333 transparent;
}

#yeux-hero-chat-send {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #404040;
    background: #262626;
    color: #f5f5f5;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s ease;
}

#yeux-hero-chat-send:hover:not(:disabled) {
    background: #333333;
}

#yeux-hero-chat-send:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.yeux-hero-chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.yeux-hero-suggest {
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #2a2a2a;
    background: #141414;
    color: #a3a3a3;
    font-size: 13px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    text-decoration: none;
}

.yeux-hero-suggest:hover {
    border-color: #404040;
    background: #1a1a1a;
    color: #e5e5e5;
}

.yeux-hero-suggest-primary {
    background: #1a1a1a;
    border-color: #404040;
    color: #e5e5e5;
}

.yeux-hero-suggest-link {
    color: #737373;
}

body.yeux-has-hero-chat #yeux-live-chat-root {
    display: none;
}

@media (max-width: 640px) {
    .yeux-hero-chat {
        min-height: auto;
        padding: 24px 0 32px;
    }
    .yeux-hero-chat-inner {
        min-height: min(640px, calc(100vh - 100px));
    }
    .yeux-hero-chat-card {
        border-radius: 12px;
    }
    .yeux-hero-chat-messages {
        max-height: min(52vh, 480px);
        padding: 12px 12px 8px;
    }
    .yeux-hero-chat-input-wrap {
        padding: 10px 12px;
    }
    .yeux-lc-mini-chart-canvas {
        height: 180px;
        min-height: 180px;
    }
}

.yeux-lc-mini-chart {
    width: 100%;
    margin-top: 20px;
    padding: 18px 20px 16px;
    border-radius: 14px;
    border: 1px solid #262626;
    background: #0a0a0a;
    box-sizing: border-box;
}

.yeux-lc-mini-chart-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.yeux-lc-mini-chart-id {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.yeux-lc-mini-chart-avatar {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1a1a1a;
    border: 1px solid #333333;
    color: #e5e5e5;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.02em;
}

.yeux-lc-mini-chart-titles {
    min-width: 0;
}

.yeux-lc-mini-chart-symbol {
    font-size: 16px;
    font-weight: 600;
    color: #f5f5f5;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.yeux-lc-mini-chart-name {
    margin-top: 2px;
    font-size: 12px;
    color: #737373;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 280px;
}

.yeux-lc-mini-chart-brand {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #525252;
    text-transform: uppercase;
}

.yeux-lc-mini-chart-quote {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px 14px;
    margin-bottom: 12px;
}

.yeux-lc-mini-chart-price {
    font-size: clamp(1.5rem, 4vw, 1.75rem);
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.yeux-lc-mini-chart-change {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.yeux-lc-mini-chart-change .arrow {
    font-size: 11px;
    line-height: 1;
}

.yeux-lc-mini-chart-change .abs {
    opacity: 0.85;
}

.yeux-lc-mini-chart-change.up {
    color: #22ab94;
}

.yeux-lc-mini-chart-change.down {
    color: #f23645;
}

.yeux-lc-mini-chart-plot-wrap {
    position: relative;
    width: 100%;
    margin: 0 -4px;
}

.yeux-lc-mini-chart-canvas {
    display: block;
    width: 100%;
    height: 200px;
    min-height: 200px;
}

.yeux-lc-mini-chart-axis {
    position: relative;
    height: 18px;
    margin-top: 4px;
    font-size: 11px;
    color: #525252;
}

.yeux-lc-mini-chart-axis span {
    position: absolute;
    transform: translateX(-50%);
    white-space: nowrap;
}

.yeux-lc-mini-chart-axis span:first-child {
    transform: none;
}

.yeux-lc-mini-chart-axis span:last-child {
    transform: translateX(-100%);
}

.yeux-lc-mini-chart-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #1a1a1a;
    font-size: 11px;
    color: #737373;
}

.yeux-lc-mini-chart-foot span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.yeux-lc-mini-chart-foot i {
    display: inline-block;
    width: 16px;
    height: 0;
    border-top: 2px solid currentColor;
}

.yeux-lc-mini-chart-foot .lg-entry { color: #d4d4d4; }
.yeux-lc-mini-chart-foot .lg-entry i { border-top-style: dashed; }
.yeux-lc-mini-chart-foot .lg-tp { color: #22ab94; }
.yeux-lc-mini-chart-foot .lg-tp i { border-top-style: dashed; }
.yeux-lc-mini-chart-foot .lg-sl { color: #f23645; }
.yeux-lc-mini-chart-foot .lg-sl i { border-top-style: dashed; }
.yeux-lc-mini-chart-foot .lg-rsi { color: #a3e635; }
.yeux-lc-mini-chart-foot .lg-pivot { color: #fbbf24; }
.yeux-lc-mini-chart-foot .lg-nw { color: #737373; }
.yeux-lc-mini-chart-foot .lg-liq { color: #f97316; }
.yeux-lc-mini-chart-foot .lg-pivot i,
.yeux-lc-mini-chart-foot .lg-nw i,
.yeux-lc-mini-chart-foot .lg-liq i {
    display: inline-block;
    width: 14px;
    height: 0;
    border-top: 2px dashed currentColor;
    vertical-align: middle;
    margin-right: 4px;
}

.yeux-lc-mini-chart-foot .lg-tf {
    margin-left: auto;
    color: #525252;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.yeux-lc-draw-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #333333;
    background: #1a1a1a;
    color: #d4d4d4;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.yeux-lc-draw-btn:hover {
    background: #242424;
    border-color: #404040;
}

.yeux-lc-msg.assistant .yeux-lc-draw-btn {
    margin-top: 14px;
}

.yeux-live-chat-disclaimer {
    margin: 0;
    padding: 8px 14px 12px;
    font-size: 10px;
    line-height: 1.45;
    color: #6b7280;
    border-top: 1px solid #1f1f1f;
    background: #0e0e0e;
}

/* ── Light theme overrides for landing chat ──────────────────────── */
html:not(.dark) .yeux-hero-chat { background: var(--lp-bg, #f8f9fa); }
html:not(.dark) .yeux-hero-chat-card {
    border-color: rgba(0, 0, 0, 0.09);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.6) inset,
                0 8px 32px rgba(0,0,0,0.08);
}
html:not(.dark) .yeux-hero-chat-card:focus-within {
    border-color: rgba(59,130,246,0.35);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.6) inset,
                0 8px 40px rgba(0,0,0,0.10),
                0 0 0 3px rgba(59,130,246,0.10);
}
html:not(.dark) .yeux-hero-chat-input-wrap {
    border-top-color: rgba(0, 0, 0, 0.07);
    background: rgba(0, 0, 0, 0.02);
}
html:not(.dark) .yeux-hero-chat-input-wrap:focus-within {
    border-top-color: rgba(59, 130, 246, 0.3);
    background: rgba(59, 130, 246, 0.03);
}
html:not(.dark) #yeux-live-chat-toggle {
    border-color: #d1d5db;
    background: #ffffff;
    color: #374151;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
html:not(.dark) #yeux-live-chat-toggle:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}
html:not(.dark) #yeux-live-chat-panel {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
html:not(.dark) #yeux-live-chat-header {
    background: #f8f9fa;
    border-bottom-color: #e2e8f0;
}
html:not(.dark) #yeux-live-chat-header .title { color: #0f172a; }
html:not(.dark) #yeux-live-chat-header .dot { background: #22c55e; }
html:not(.dark) #yeux-live-chat-close { color: #6b7280; }
html:not(.dark) .yeux-lc-msg.user {
    background: #1e293b;
    border-color: #334155;
    color: #f8fafc;
}
html:not(.dark) .yeux-lc-msg.assistant {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #1e293b;
}
html:not(.dark) .yeux-lc-msg.system { color: #6b7280; }
html:not(.dark) .yeux-lc-msg.error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}
html:not(.dark) #yeux-live-chat-thinking { color: #9ca3af; }
html:not(.dark) #yeux-live-chat-thinking::before { background: #d1d5db; }
html:not(.dark) #yeux-live-chat-form {
    border-top-color: #e2e8f0;
    background: #ffffff;
}
html:not(.dark) #yeux-live-chat-input {
    border-color: #d1d5db;
    background: #f8f9fa;
    color: #0f172a;
}
html:not(.dark) #yeux-live-chat-input:focus { border-color: #3b82f6; }
html:not(.dark) #yeux-live-chat-send {
    border-color: #d1d5db;
    background: #1e293b;
    color: #ffffff;
}
html:not(.dark) .yeux-live-chat-disclaimer {
    border-top-color: #e2e8f0;
    background: #f8f9fa;
    color: #94a3b8;
}

/* Hero chat — light */
html:not(.dark) .yeux-hero-chat-badge {
    border-color: #e2e8f0;
    background: #ffffff;
    color: #64748b;
}
html:not(.dark) .yeux-hero-chat-badge .dot { background: #22c55e; }
html:not(.dark) .yeux-hero-chat-head h1 { color: #0f172a; }
html:not(.dark) .yeux-hero-chat-sub { color: #64748b; }
html:not(.dark) .yeux-hero-chat-messages::-webkit-scrollbar-thumb { background: #cbd5e1; }
html:not(.dark) .yeux-hero-chat-messages { scrollbar-color: #cbd5e1 transparent; }
html:not(.dark) .yeux-hero-chat-messages .yeux-lc-msg.user {
    background: #1e293b; border-color: #334155; color: #f8fafc;
}
html:not(.dark) .yeux-hero-chat-messages .yeux-lc-msg.assistant {
    background: #f1f5f9; border-color: #e2e8f0; color: #1e293b;
}
html:not(.dark) .yeux-hero-chat-messages .yeux-lc-msg.system { color: #94a3b8; }
html:not(.dark) .yeux-hero-chat-messages .yeux-lc-msg.analysis {
    background: #ffffff; border-color: #e2e8f0;
}
html:not(.dark) .yeux-lc-table-wrap {
    border-color: #e2e8f0; background: #ffffff;
}
html:not(.dark) .yeux-lc-table th, html:not(.dark) .yeux-lc-table td {
    border-bottom-color: #f1f5f9; color: #374151;
}
html:not(.dark) .yeux-lc-table th { background: #f8fafc; color: #0f172a; }
html:not(.dark) .yeux-lc-report-sectioned .yeux-lc-section {
    background: #f8fafc; border-color: #e2e8f0;
}
html:not(.dark) .yeux-lc-section-title { color: #1e293b; border-bottom-color: #e2e8f0; }
html:not(.dark) .yeux-lc-para { color: #374151; }
html:not(.dark) .yeux-lc-strong { color: #0f172a; }
html:not(.dark) .yeux-lc-list { color: #64748b; }
html:not(.dark) .yeux-hero-token-meter {
    border-color: #e2e8f0; background: #f8fafc; color: #64748b;
}
html:not(.dark) .yeux-hero-token-val { color: #1e293b; }
html:not(.dark) #yeux-hero-chat-input { color: #0f172a; }
html:not(.dark) #yeux-hero-chat-send {
    border-color: #d1d5db; background: #1e293b; color: #ffffff;
}
html:not(.dark) #yeux-hero-chat-send:hover:not(:disabled) { background: #334155; }
html:not(.dark) .yeux-hero-suggest {
    border-color: #e2e8f0; background: #f8fafc; color: #64748b;
}
html:not(.dark) .yeux-hero-suggest:hover {
    border-color: #94a3b8; background: #f1f5f9; color: #1e293b;
}
html:not(.dark) .yeux-hero-suggest-primary {
    background: #f1f5f9; border-color: #94a3b8; color: #1e293b;
}
html:not(.dark) .yeux-lc-mini-chart {
    border-color: #e2e8f0; background: #ffffff;
}
html:not(.dark) .yeux-lc-mini-chart-avatar {
    background: #f1f5f9; border-color: #e2e8f0; color: #374151;
}
html:not(.dark) .yeux-lc-mini-chart-symbol { color: #0f172a; }
html:not(.dark) .yeux-lc-mini-chart-price { color: #0f172a; }
html:not(.dark) .yeux-lc-mini-chart-foot {
    border-top-color: #f1f5f9; color: #94a3b8;
}
html:not(.dark) .yeux-lc-draw-btn {
    border-color: #e2e8f0; background: #f8fafc; color: #374151;
}
html:not(.dark) .yeux-lc-draw-btn:hover {
    background: #f1f5f9; border-color: #94a3b8;
}
html:not(.dark) .yeux-hero-chat-thinking { color: #94a3b8; }
html:not(.dark) .yeux-hero-chat-thinking .pulse { background: #cbd5e1; }
