/* ===== Theme tokens ===== */
:root,
[data-theme="dark"] {
    --bg: #0f172a;
    --surface: #1e293b;
    --surface-hover: #2d3a4e;
    --border: #334155;
    --track: #334155;
    --chip: #334155;
    --text: #e2e8f0;
    --text-strong: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --text-faint: #475569;
    --shadow: rgba(0, 0, 0, 0.3);
    --modal-overlay: rgba(0, 0, 0, 0.8);
    --hero-grad-a: #a5f3fc;
    --hero-grad-b: #818cf8;
    --header-glow: rgba(99, 102, 241, 0.12);
    --header-border: rgba(99, 102, 241, 0.25);
}

[data-theme="light"] {
    --bg: #e8edf4;
    --surface: #ffffff;
    --surface-hover: #f1f5f9;
    --border: #dbe3ec;
    --track: #e2e8f0;
    --chip: #e2e8f0;
    --text: #1e293b;
    --text-strong: #0f172a;
    --text-muted: #56657a;
    --text-dim: #64748b;
    --text-faint: #94a3b8;
    --shadow: rgba(15, 23, 42, 0.12);
    --modal-overlay: rgba(15, 23, 42, 0.5);
    --hero-grad-a: #0891b2;
    --hero-grad-b: #4f46e5;
    --header-glow: rgba(79, 70, 229, 0.08);
    --header-border: rgba(79, 70, 229, 0.2);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); padding: 20px 16px; line-height: 1.4; transition: background 0.25s ease, color 0.25s ease; }
.container { max-width: 1400px; margin: 0 auto; }
.dashboard-header {
    margin-bottom: 22px;
    padding: 18px 20px 14px;
    border-radius: 20px;
    border: 1px solid var(--header-border);
    background:
        linear-gradient(135deg, var(--header-glow) 0%, transparent 55%),
        var(--surface);
    box-shadow: 0 4px 24px var(--shadow);
}
.dashboard-header-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.dashboard-brand {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
    flex: 1;
}
.brand-mark {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(145deg, var(--hero-grad-a), var(--hero-grad-b));
    display: grid;
    place-items: center;
    position: relative;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}
.brand-mark-layer {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.92);
}
.brand-mark-layer:nth-child(1) { top: 10px; left: 9px; opacity: 0.95; }
.brand-mark-layer:nth-child(2) { top: 16px; left: 18px; opacity: 0.7; transform: scale(0.85); }
.brand-mark-layer:nth-child(3) { top: 22px; left: 12px; opacity: 0.45; transform: scale(0.7); }
.brand-eyebrow {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 4px;
}
.brand-copy h1 {
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    background: linear-gradient(120deg, var(--hero-grad-a) 0%, var(--hero-grad-b) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}
.brand-desc {
    margin-top: 6px;
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.45;
    max-width: 520px;
}
.dashboard-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.header-meta {
    font-size: 0.65rem;
    color: var(--text-dim);
    white-space: nowrap;
}
.dashboard-hints {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}
.dashboard-hints li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.68rem;
    color: var(--text-muted);
    padding: 5px 10px;
    border-radius: 30px;
    background: var(--bg);
    border: 1px solid var(--border);
}
.hint-icon {
    font-size: 0.72rem;
    color: #818cf8;
    font-weight: 700;
}
.dashboard-hints kbd {
    font-family: inherit;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px;
    background: var(--surface-hover);
    border: 1px solid var(--border);
    color: var(--text-strong);
}
.live-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 30px; font-weight: 700; font-size: 0.65rem; background: rgba(16,185,129,0.15); color: #10b981; border: 1px solid rgba(16,185,129,0.35); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #10b981; animation: pulse 1.4s infinite; }
.live-badge.off { background: rgba(239,68,68,0.12); color: #f87171; border-color: rgba(239,68,68,0.35); }
.live-badge.off .live-dot { background: #f87171; animation: none; }
.theme-toggle { background: var(--surface); border: 1px solid var(--border); color: var(--text); padding: 4px 12px; border-radius: 30px; font-size: 0.68rem; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: 0.15s; }
.theme-toggle:hover { border-color: #6366f1; transform: translateY(-1px); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(16,185,129,0.6); } 70% { box-shadow: 0 0 0 7px rgba(16,185,129,0); } 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); } }
@keyframes flashUp { 0% { background: rgba(16,185,129,0.45); } 100% { background: transparent; } }
@keyframes flashDown { 0% { background: rgba(239,68,68,0.45); } 100% { background: transparent; } }
.flash-up { animation: flashUp 0.9s ease-out; }
.flash-down { animation: flashDown 0.9s ease-out; }
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 24px; }
.stat-card { background: var(--surface); border-radius: 14px; padding: 12px 14px; border: 1px solid var(--border); transition: 0.2s; position: relative; cursor: help; }
.stat-card:hover { border-color: #6366f1; transform: translateY(-2px); z-index: 20; }
.stat-label { font-size: 0.7rem; color: var(--text-muted); margin-bottom: 4px; }
.stat-value { font-size: 1.35rem; font-weight: 800; line-height: 1.2; }
.stat-sub { font-size: 0.65rem; color: var(--text-faint); margin-top: 4px; line-height: 1.35; }
.stat-tip {
    position: absolute; left: 0; right: 0; top: calc(100% + 8px);
    background: var(--bg); border: 1px solid var(--border);
    border-radius: 14px; padding: 12px 14px; box-shadow: 0 12px 32px var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    pointer-events: none; z-index: 30; min-width: 260px;
}
.stat-card:hover .stat-tip { opacity: 1; visibility: visible; transform: translateY(0); }
.stat-tip-title { font-size: 0.78rem; font-weight: 700; color: var(--text-strong); margin-bottom: 6px; }
.stat-tip-desc { font-size: 0.68rem; color: var(--text-muted); line-height: 1.45; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.stat-tip-rows { display: flex; flex-direction: column; gap: 5px; }
.stat-tip-row { display: flex; justify-content: space-between; gap: 10px; font-size: 0.66rem; }
.stat-tip-row span:first-child { color: var(--text-dim); flex-shrink: 0; }
.stat-tip-row span:last-child { color: var(--text); font-weight: 600; text-align: right; }
.tabs { display: flex; gap: 6px; margin-bottom: 20px; background: var(--surface); padding: 4px; border-radius: 40px; width: fit-content; border: 1px solid var(--border); flex-wrap: wrap; }
.tab-btn { padding: 8px 20px; border-radius: 32px; font-size: 0.8rem; font-weight: 600; background: transparent; border: none; color: var(--text-muted); cursor: grab; transition: background 0.2s, color 0.2s, box-shadow 0.2s; user-select: none; }
.tab-btn:active { cursor: grabbing; }
.tab-btn.active { background: #6366f1; color: white; box-shadow: 0 2px 8px rgba(99,102,241,0.3); }
.tab-btn.dragging { opacity: 0.5; cursor: grabbing; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; align-items: center; }
.country-filter-bar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 4px 8px; background: var(--bg); border-radius: 40px; border: 1px solid var(--border); }
.country-label { font-size: 0.65rem; color: var(--text-dim); font-weight: 600; padding: 0 6px; white-space: nowrap; }
.country-btn { padding: 5px 12px; border-radius: 40px; font-size: 0.68rem; font-weight: 500; background: transparent; border: 1px solid transparent; color: var(--text-muted); cursor: pointer; transition: 0.15s; }
.country-btn.active { background: rgba(236,72,153,0.15); border-color: #ec4899; color: #f9a8d4; }
.country-btn:hover { background: var(--surface-hover); }
.country-badge { font-size: 0.58rem; margin-left: 4px; opacity: 0.9; }
.filter-btn { padding: 5px 14px; border-radius: 40px; font-size: 0.7rem; font-weight: 500; background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); cursor: pointer; }
.filter-btn.active { border-width: 2px; background: rgba(99,102,241,0.15); }
.sort-group { margin-left: auto; display: flex; gap: 8px; }
.sort-btn { padding: 5px 12px; border-radius: 40px; font-size: 0.7rem; background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); cursor: pointer; }
.sort-btn.active { background: #fbbf24; color: #0f172a; border-color: #fbbf24; }
.rank-row { transition: transform 0.15s, background 0.15s, box-shadow 0.15s; }
.rank-row:hover { transform: translateY(-2px); background: var(--surface-hover) !important; box-shadow: 0 6px 16px var(--shadow); }
.tier-section { margin-bottom: 28px; }
.tier-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding-bottom: 6px; border-bottom: 2px solid; }
.tier-emoji { font-size: 1.3rem; }
.tier-title { font-weight: 700; font-size: 1rem; }
.tier-desc { font-size: 0.7rem; color: var(--text-faint); margin-left: auto; }
.company-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.company-card {
    background: var(--surface); border-radius: 12px; padding: 12px; border-left: 3px solid;
    position: relative; overflow: hidden; transition: 0.2s; cursor: pointer;
}
.company-card:hover { transform: translateY(-3px); background: var(--surface-hover); box-shadow: 0 8px 20px var(--shadow); }
.sparkline { position: absolute; right: 8px; bottom: 8px; display: flex; gap: 2px; align-items: flex-end; opacity: 0.25; height: 28px; }
.spark-bar { width: 3px; background: currentColor; border-radius: 1px; }
.company-ticker { font-weight: 800; font-size: 0.9rem; }
.company-name { font-size: 0.7rem; color: var(--text-muted); margin-bottom: 6px; }
.company-price { font-size: 1.1rem; font-weight: 700; color: var(--text-strong); border-radius: 6px; padding: 0 2px; display: inline-block; }
.company-growth { font-size: 0.7rem; font-weight: 600; margin-top: 4px; display: inline-block; padding: 2px 6px; border-radius: 20px; background: rgba(0,0,0,0.3); }
.company-note { font-size: 0.65rem; color: var(--text-faint); margin-top: 6px; line-height: 1.3; }
.modal-overlay { position: fixed; top:0; left:0; right:0; bottom:0; background: var(--modal-overlay); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index:1000; opacity:0; visibility:hidden; transition:0.2s; }
.modal-overlay.active { opacity:1; visibility:visible; }
.modal-content { background: var(--surface); border-radius: 28px; max-width: 750px; width: 90%; max-height: 85vh; overflow-y: auto; padding: 24px; border:1px solid var(--border); position:relative; }
.modal-close { position:absolute; top:16px; right:20px; background:var(--chip); border:none; color:var(--text-muted); width:32px; height:32px; border-radius:40px; cursor:pointer; font-size:1.2rem; display:flex; align-items:center; justify-content:center; }
.modal-close:hover { background:#ef4444; color:white; }
.modal-header { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.modal-ticker { font-size: 2rem; font-weight: 800; }
.modal-name { font-size: 1rem; color: var(--text-muted); }
.modal-tier-badge { padding: 4px 10px; border-radius: 40px; font-size: 0.65rem; font-weight: 600; }
.modal-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 16px 0; background: var(--bg); padding: 14px; border-radius: 20px; }
.modal-stat-item { text-align: center; }
.modal-stat-label { font-size: 0.65rem; color: var(--text-dim); }
.modal-stat-value { font-size: 1.2rem; font-weight: 800; }
.modal-note { background: var(--bg); padding: 12px; border-radius: 14px; font-size: 0.75rem; margin: 12px 0; border-left: 3px solid; }
.peer-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.peer-item { background: var(--chip); padding: 4px 8px; border-radius: 20px; font-size: 0.6rem; cursor: pointer; transition: 0.1s; }
.peer-item:hover { background: #6366f1; color: #fff; }
.biz-report { background: var(--bg); border-radius: 16px; padding: 14px 16px; margin: 12px 0; }
.biz-title { font-size: 0.85rem; font-weight: 800; margin-bottom: 10px; }
.biz-item { background: var(--surface); border-radius: 10px; padding: 8px 12px; margin-bottom: 8px; border-left: 3px solid; }
.biz-item:last-child { margin-bottom: 0; }
.biz-label { display: block; font-size: 0.6rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 3px; }
.biz-text { font-size: 0.76rem; line-height: 1.5; color: var(--text); }
.modal-chart-row { display: flex; flex-direction: column; gap: 20px; margin: 16px 0; }
.chart-container { background: var(--bg); border-radius: 16px; padding: 12px; }
.chart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.chart-header h4 { font-size: 0.8rem; font-weight: 600; }
.scale-toggle { background: var(--chip); border: none; color: var(--text-muted); padding: 4px 10px; border-radius: 20px; font-size: 0.65rem; cursor: pointer; transition: 0.1s; }
.scale-toggle.active { background: #6366f1; color: white; }
.modal-chart { height: 200px; }
.charts-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin: 28px 0; }
.chart-card { background: var(--surface); border-radius: 20px; padding: 16px; border: 1px solid var(--border); }
.chart-card h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 4px; }
.chart-sub { font-size: 0.65rem; color: var(--text-dim); margin-bottom: 14px; border-left: 3px solid #6366f1; padding-left: 8px; }
.legend-tiers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.legend-item { background: var(--surface); border-radius: 12px; padding: 10px 14px; flex: 1; min-width: 180px; border-left: 3px solid; }
.legend-header { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 4px; }
.legend-title { font-size: 0.74rem; font-weight: 700; }
.legend-total { font-size: 0.7rem; font-weight: 800; color: #f59e0b; white-space: nowrap; }
.legend-desc { font-size: 0.6rem; color: var(--text-dim); margin-bottom: 7px; line-height: 1.3; }
.legend-companies { display: flex; flex-wrap: wrap; gap: 4px; }
.legend-companies span { font-size: 0.56rem; font-weight: 600; padding: 2px 7px; border-radius: 10px; }
.section-title { font-size: 1.05rem; font-weight: 800; margin: 30px 0 2px; }
.section-sub { font-size: 0.66rem; color: var(--text-dim); margin-bottom: 4px; }
footer { text-align: center; font-size: 0.6rem; color: var(--text-faint); margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--border); }
.loading { text-align: center; padding: 40px; color: var(--text-dim); font-size: 0.85rem; }
.bench-timeline-card { background: var(--surface); border-radius: 20px; padding: 18px; border: 1px solid var(--border); margin-bottom: 22px; }
.bench-timeline-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.bench-canvas-wrap { position: relative; height: 320px; margin-top: 10px; }
.bench-gain-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.bench-gain { font-size: 0.62rem; font-weight: 600; padding: 3px 9px; border-radius: 20px; display: inline-flex; align-items: center; gap: 5px; }
.bench-row { display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: 12px; padding: 9px 12px; margin-bottom: 7px; border-left: 3px solid; }
.bench-medal { font-size: 0.95rem; font-weight: 800; min-width: 32px; text-align: center; }
.bench-main { flex: 1; min-width: 0; }
.bench-name { font-weight: 700; font-size: 0.82rem; }
.bench-org { font-size: 0.64rem; color: var(--text-muted); margin-top: 2px; }
.bench-track { background: var(--bg); border-radius: 8px; height: 7px; overflow: hidden; margin-top: 6px; }
.bench-fill { height: 100%; border-radius: 8px; }
.bench-metrics { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; white-space: nowrap; }
.bench-score { font-size: 0.85rem; font-weight: 800; }
.bench-delta { font-size: 0.58rem; font-weight: 700; padding: 2px 7px; border-radius: 12px; background: rgba(16,185,129,0.15); color: #34d399; }
.bench-delta.flat { background: rgba(148,163,184,0.15); color: var(--text-muted); }
.bench-head { cursor: pointer; user-select: none; transition: 0.15s; }
.bench-head:hover .bench-toggle { text-decoration: underline; }
.bench-toggle { font-size: 0.62rem; font-weight: 700; margin-left: 8px; white-space: nowrap; }
.bench-detail { background: var(--bg); border-radius: 14px; padding: 12px 14px; margin: 4px 0 12px; border: 1px solid var(--border); animation: fadeIn 0.25s ease-out; }
.bench-detail[hidden] { display: none; }
.bench-detail-item { font-size: 0.72rem; line-height: 1.5; color: var(--text-muted); margin-bottom: 6px; }
.bench-detail-item:last-child { margin-bottom: 0; }
.bench-detail-item b { color: var(--text-strong); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.markets-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.markets-panel { background: var(--surface); border-radius: 20px; padding: 20px; min-width: 0; }
.markets-panel h3 { margin-bottom: 8px; font-size: 0.95rem; }
.markets-hint { font-size: 0.65rem; color: var(--text-dim); margin-bottom: 10px; }
.markets-row { margin-bottom: 8px; cursor: pointer; padding: 4px 0; border-radius: 8px; transition: background 0.15s; }
.markets-row:hover { background: var(--surface-hover); }
.markets-row-head { display: flex; justify-content: space-between; font-size: 0.7rem; gap: 8px; }
.markets-bar { background: var(--track); border-radius: 10px; height: 22px; overflow: hidden; margin-top: 4px; }
.markets-bar-cap { height: 26px; border-radius: 12px; }
.markets-bar > div { height: 100%; }
/* ----- Tab Bức tranh AI (ecosystem map) ----- */
.eco-wrap { display: flex; flex-direction: column; gap: 16px; }
.eco-intro {
    font-size: 0.72rem; color: var(--text-muted); line-height: 1.5;
    padding: 12px 14px; background: var(--surface); border-radius: 14px;
    border: 1px solid var(--border); border-left: 3px solid #6366f1;
}
/* Sơ đồ mindmap (SVG) */
.mm-scroll {
    overflow-x: auto; background: var(--surface); border: 1px solid var(--border);
    border-radius: 16px; padding: 8px;
}
.mm-svg { display: block; min-width: 760px; height: auto; width: 100%; }
.mm-edge { fill: none; stroke-width: 1.6; opacity: 0.4; }
.mm-node text { font-family: Inter, sans-serif; font-size: 11px; font-weight: 600; pointer-events: none; }
.mm-node[data-tk], .mm-node[data-pname] { cursor: pointer; }
.mm-node[data-tk] rect, .mm-node[data-pname] rect { transition: 0.15s; }
.mm-node[data-tk]:hover rect, .mm-node[data-pname]:hover rect { filter: brightness(1.15); stroke-width: 2; }
.mm-more text { font-weight: 500; opacity: 0.85; }
.eco-intel {
    background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(236,72,153,0.08));
    border: 1px dashed rgba(99,102,241,0.35); border-radius: 14px; padding: 10px 14px;
}
.eco-intel-title { font-size: 0.75rem; font-weight: 700; color: #a5b4fc; margin-bottom: 6px; }
.eco-intel-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.eco-intel-chip { font-size: 0.6rem; padding: 3px 8px; border-radius: 12px; background: var(--chip); color: var(--text-muted); }
.eco-summary {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px;
}
.eco-stat {
    background: var(--bg); border-radius: 12px; padding: 10px 12px; text-align: center;
    border: 1px solid var(--border);
}
.eco-stat-val { font-size: 1rem; font-weight: 800; color: var(--text-strong); }
.eco-stat-lbl { font-size: 0.6rem; color: var(--text-dim); margin-top: 2px; }
@media (max-width: 900px) { .markets-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
    .dashboard-header-top { flex-direction: column; }
    .dashboard-actions { width: 100%; justify-content: flex-start; }
    .brand-desc { font-size: 0.72rem; }
    .dashboard-hints { flex-direction: column; align-items: stretch; }
    .dashboard-hints li { border-radius: 12px; }
    .company-grid { grid-template-columns: 1fr; }
    .sort-group { margin-left: 0; margin-top: 8px; width: 100%; }
    .filter-bar { flex-direction: column; align-items: stretch; }
}

/* ----------------------------- LIVE LLM PANEL ----------------------------- */
.llm-live-panel { background: linear-gradient(160deg, rgba(239,68,68,0.06), rgba(99,102,241,0.05)); border: 1px solid rgba(239,68,68,0.25); border-radius: 16px; padding: 14px 16px; margin-bottom: 16px; }
.llm-live-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.llm-live-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.04em; color: #ef4444; background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.35); padding: 3px 9px; border-radius: 20px; text-transform: uppercase; }
.llm-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 0 rgba(239,68,68,0.6); animation: llmLivePulse 1.6s infinite; }
@keyframes llmLivePulse { 0% { box-shadow: 0 0 0 0 rgba(239,68,68,0.55); } 70% { box-shadow: 0 0 0 7px rgba(239,68,68,0); } 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); } }
.llm-live-title { font-size: 0.86rem; font-weight: 800; color: var(--text); }
.llm-live-source { font-size: 0.64rem; color: var(--text-muted); margin-top: 6px; }
.llm-live-source a { color: #6366f1; text-decoration: none; }
.llm-live-source a:hover { text-decoration: underline; }
.llm-live-note { font-size: 0.62rem; color: var(--text-dim); margin: 6px 0 10px; line-height: 1.5; }
.llm-live-list { display: flex; flex-direction: column; gap: 6px; max-height: 540px; overflow-y: auto; padding-right: 4px; }
.llm-live-row { display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: 10px; padding: 8px 11px; border-left: 3px solid #ef4444; }
.llm-live-rank { font-size: 0.9rem; font-weight: 800; min-width: 32px; text-align: center; color: #ef4444; }
.llm-live-main { flex: 1; min-width: 0; }
.llm-live-name { font-weight: 700; font-size: 0.8rem; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.llm-live-sub { font-size: 0.62rem; color: var(--text-muted); margin-top: 2px; }
.llm-live-tag { font-size: 0.48rem; padding: 1px 5px; border-radius: 10px; vertical-align: middle; font-weight: 700; background: #10b98120; color: #10b981; }
.llm-live-score { text-align: right; white-space: nowrap; }
.llm-live-elo { font-size: 0.9rem; font-weight: 800; color: #6366f1; }
.llm-live-ci { font-size: 0.55rem; color: var(--text-dim); font-weight: 600; margin-left: 4px; }
.llm-live-votes { font-size: 0.58rem; color: var(--text-muted); margin-top: 1px; }
