/* =============================================
   찌라시 탐지봇 / 금융 뉴스 시그널 센터
   Bloomberg-style Dark Theme
   ============================================= */

/* ══════════════════════════════════════════
   페이지 루트 — 오버플로우 완전 차단
══════════════════════════════════════════ */
#page-jjirasi {
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}
/* canvas 등 고정크기 제외하고 box-sizing만 통일 */
#page-jjirasi *:not(canvas),
#page-jjirasi *::before,
#page-jjirasi *::after {
    box-sizing: border-box;
}

/* ══════════════════════════════════════════
   ZONE 1: 헤더 바
══════════════════════════════════════════ */
.jj-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 18px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
    min-width: 0;
}
.jj-header-left {
    display: flex; align-items: center; gap: 10px;
    min-width: 0; flex: 1;
}
.jj-live-dot {
    width: 10px; height: 10px; flex-shrink: 0;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 8px var(--red);
    animation: jjLivePulse 1.2s ease-in-out infinite;
}
@keyframes jjLivePulse {
    0%,100% { opacity:1; transform:scale(1); }
    50%      { opacity:0.5; transform:scale(1.3); }
}
.jj-header-title {
    font-size: 15px; font-weight: 800;
    color: var(--text-primary);
    white-space: nowrap;
}
.jj-header-sub {
    font-size: 11px; color: var(--text-secondary);
    font-style: italic;
    display: none; white-space: nowrap;
}
@media (min-width: 900px) { .jj-header-sub { display: inline; } }
.jj-header-right {
    display: flex; align-items: center; gap: 10px;
    flex-shrink: 0;
}
.jj-update-time { font-size: 11px; color: var(--text-secondary); white-space: nowrap; }
.jj-refresh-btn {
    width: 32px; height: 32px; border-radius: 7px; flex-shrink: 0;
    background: var(--bg-card-hover); border: 1px solid var(--border);
    color: var(--text-secondary); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; transition: var(--transition);
}
.jj-refresh-btn:hover { border-color: var(--accent); color: var(--accent); }
.jj-refresh-btn.spinning i { animation: pfSpin 0.7s linear infinite; }
.jj-auto-label { font-size: 11px; color: var(--text-secondary); white-space: nowrap; }
.jj-auto-label em { font-style: normal; color: var(--accent); font-weight: 700; }

/* ══════════════════════════════════════════
   뉴스 티커
══════════════════════════════════════════ */
.jj-ticker-wrap {
    display: flex; align-items: center;
    background: rgba(239,68,68,0.08);
    border: 1px solid rgba(239,68,68,0.2);
    border-radius: var(--radius-sm);
    height: 34px; overflow: hidden;
    margin-bottom: 14px;
    width: 100%; min-width: 0;
}
.jj-ticker-label {
    flex-shrink: 0;
    background: var(--red);
    color: #fff;
    font-size: 11px; font-weight: 800;
    padding: 0 12px; height: 100%;
    display: flex; align-items: center; gap: 5px;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.jj-ticker-track {
    flex: 1; min-width: 0;
    overflow: hidden; position: relative; height: 100%;
}
.jj-ticker-inner {
    display: flex; align-items: center;
    white-space: nowrap;
    height: 100%;
    padding-left: 20px;
    gap: 40px;
    will-change: transform;
    /* 속도는 JS RAF로만 제어 — CSS animation 없음 */
}
.jj-ticker-item {
    font-size: 12px; font-weight: 500;
    color: var(--text-primary); cursor: pointer;
    display: inline-flex; align-items: center; gap: 8px;
    transition: color 0.15s;
    flex-shrink: 0;
}
.jj-ticker-item:hover { color: var(--accent); }
.jj-ticker-item .jj-ti-src { font-size: 10px; color: var(--text-secondary); }
.jj-ticker-item .jj-ti-badge {
    font-size: 10px; padding: 1px 6px; border-radius: 3px; font-weight: 700;
}
.jj-ti-badge.pos { background: rgba(16,185,129,0.2); color: var(--green); }
.jj-ti-badge.neg { background: rgba(239,68,68,0.2);  color: var(--red); }
.jj-ti-badge.neu { background: rgba(148,163,184,0.15); color: var(--text-secondary); }
.jj-ticker-loading { font-size: 12px; color: var(--text-secondary); padding: 0 20px; }

/* ══════════════════════════════════════════
   공통 카드
══════════════════════════════════════════ */
.jj-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
    display: flex; flex-direction: column; gap: 12px;
    min-width: 0; overflow: hidden;
}
.jj-card-title {
    font-size: 13px; font-weight: 700;
    color: var(--text-secondary);
    display: flex; align-items: center; gap: 8px;
    flex-wrap: wrap; min-width: 0;
}
.jj-card-title i { color: var(--accent); flex-shrink: 0; }
.jj-loading {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; color: var(--text-secondary); font-size: 13px;
    padding: 28px 0;
}

/* ══════════════════════════════════════════
   ZONE 2: 온도계 + 모멘텀 (2열 그리드)
══════════════════════════════════════════ */
.jj-zone2-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
    min-width: 0;
}
@media (max-width: 700px) {
    .jj-zone2-grid { grid-template-columns: 1fr; }
}

/* 온도계 */
.jj-thermo-gauge-wrap { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.jj-thermo-labels {
    display: flex; justify-content: space-between;
    font-size: 11px; color: var(--text-secondary);
}
.jj-thermo-track {
    position: relative; height: 14px;
    background: linear-gradient(90deg,
        #3b82f6 0%, #6366f1 25%, #22c55e 50%, #f59e0b 75%, #ef4444 100%);
    border-radius: 99px;
    overflow: visible;
    min-width: 0;
}
.jj-thermo-fill {
    height: 100%; border-radius: 99px;
    transition: width 1s cubic-bezier(0.4,0,0.2,1);
    /* 시각적 용도 없음 — needle이 위치 표시 */
    opacity: 0;
}
.jj-thermo-needle {
    position: absolute; top: 50%;
    transform: translate(-50%, -50%);
    width: 20px; height: 20px;
    background: #fff;
    border-radius: 50%;
    border: 3px solid #1e293b;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    transition: left 1s cubic-bezier(0.4,0,0.2,1);
    z-index: 2;
}
.jj-thermo-scale {
    display: flex; justify-content: space-between;
    font-size: 10px; color: var(--text-muted);
}
.jj-thermo-score-wrap { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.jj-thermo-score {
    font-size: 36px; font-weight: 900;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.5s;
}
.jj-thermo-label { font-size: 13px; font-weight: 700; color: var(--text-secondary); }
.jj-thermo-breakdown { display: flex; flex-direction: column; gap: 8px; }
.jj-breakdown-row {
    display: grid;
    grid-template-columns: 52px minmax(0,1fr) 36px;
    align-items: center; gap: 8px;
    font-size: 12px; color: var(--text-secondary);
}
.jj-breakdown-bar-wrap {
    height: 6px; background: var(--border);
    border-radius: 99px; overflow: hidden; min-width: 0;
}
.jj-breakdown-bar {
    height: 100%; border-radius: 99px;
    transition: width 0.8s cubic-bezier(0.4,0,0.2,1);
}
.jj-breakdown-bar.green { background: var(--green); }
.jj-breakdown-bar.red   { background: var(--red); }
.jj-breakdown-bar.gray  { background: var(--text-muted); }

/* 모멘텀 TOP5 */
.jj-momentum-list { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.jj-momentum-item {
    display: grid;
    grid-template-columns: 18px minmax(0,1fr) minmax(0,2fr) 52px 54px;
    align-items: center; gap: 6px;
    padding: 9px 10px;
    background: var(--bg-primary);
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: var(--transition); cursor: pointer;
    min-width: 0; overflow: hidden;
}
.jj-momentum-item:hover { background: var(--bg-card-hover); }
.jj-momentum-item.buy   { border-left-color: var(--green); }
.jj-momentum-item.sell  { border-left-color: var(--red); }
.jj-momentum-item.watch { border-left-color: var(--orange); }
.jj-mom-rank { font-size: 12px; font-weight: 800; color: var(--text-muted); text-align: center; }
.jj-mom-name {
    font-size: 12px; font-weight: 700; color: var(--text-primary);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.jj-mom-bar-wrap {
    height: 6px; background: var(--border);
    border-radius: 99px; overflow: hidden; min-width: 0;
}
.jj-mom-bar { height: 100%; border-radius: 99px; transition: width 0.8s; }
.jj-mom-bar.pos { background: var(--green); }
.jj-mom-bar.neg { background: var(--red); }
.jj-mom-score {
    font-size: 12px; font-weight: 800;
    font-family: monospace; text-align: right;
    white-space: nowrap;
}
.jj-mom-score.pos { color: var(--green); }
.jj-mom-score.neg { color: var(--red); }
.jj-mom-signal {
    font-size: 10px; font-weight: 700;
    padding: 2px 6px; border-radius: 4px; text-align: center;
    white-space: nowrap;
}
.jj-mom-signal.buy   { background: rgba(16,185,129,0.15); color: var(--green); }
.jj-mom-signal.sell  { background: rgba(239,68,68,0.15);  color: var(--red); }
.jj-mom-signal.watch { background: rgba(245,158,11,0.15); color: var(--orange); }

/* ══════════════════════════════════════════
   ZONE 3: 3단 그리드 (피드 | 레이더 | 클러스터)
══════════════════════════════════════════ */
.jj-zone3-grid {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,240px) minmax(0,200px);
    gap: 14px;
    margin-bottom: 14px;
    align-items: start;
    min-width: 0;
}
@media (max-width: 1080px) {
    .jj-zone3-grid {
        grid-template-columns: minmax(0,1fr) minmax(0,230px);
    }
    .jj-cluster-card { display: none; }
}
@media (max-width: 700px) {
    .jj-zone3-grid { grid-template-columns: 1fr; }
    .jj-radar-card { display: none; }
}

/* 뉴스 피드 */
.jj-feed-card { min-height: 460px; }
.jj-feed-tabs {
    display: flex; gap: 3px; margin-left: auto;
    background: var(--bg-primary);
    border-radius: 6px; padding: 3px;
    flex-shrink: 0;
}
.jj-feed-tab {
    padding: 3px 9px; border-radius: 4px;
    font-size: 11px; font-weight: 600;
    border: none; background: transparent;
    color: var(--text-secondary); cursor: pointer;
    transition: var(--transition); white-space: nowrap;
}
.jj-feed-tab.active { background: var(--bg-card-hover); color: var(--text-primary); }
.jj-feed-tab:hover:not(.active) { color: var(--text-primary); }
.jj-feed-list {
    display: flex; flex-direction: column; gap: 7px;
    max-height: 420px; overflow-y: auto;
    padding-right: 4px; min-width: 0;
}
.jj-feed-list::-webkit-scrollbar { width: 4px; }
.jj-feed-list::-webkit-scrollbar-track { background: transparent; }
.jj-feed-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }

/* ── 뉴스 카드 (2줄 구조) ── */
.jj-news-card {
    padding: 9px 11px;
    background: var(--bg-primary);
    border-radius: 7px;
    border-left: 3px solid var(--border);
    cursor: pointer; transition: var(--transition);
    display: flex; flex-direction: column; gap: 3px;
    animation: jjFadeIn 0.3s ease-out;
    color: inherit; text-decoration: none;
    min-width: 0; overflow: hidden;
}
@keyframes jjFadeIn {
    from { opacity:0; transform:translateY(4px); }
    to   { opacity:1; transform:translateY(0); }
}
.jj-news-card:hover { background: var(--bg-card-hover); transform: translateX(2px); }
.jj-news-card.active-card { border-left-color: var(--accent); background: var(--accent-glow); }
.jj-news-card.pos { border-left-color: var(--green); }
.jj-news-card.neg { border-left-color: var(--red); }
.jj-news-card.neu { border-left-color: var(--border); }

/* 1행 */
.jj-news-card-row1 {
    display: flex; align-items: center; gap: 4px;
    min-width: 0; overflow: hidden;
}
/* 2행 */
.jj-news-row2 {
    display: flex; align-items: baseline;
    gap: 6px; min-width: 0; overflow: hidden;
}
.jj-news-title {
    flex: 1; min-width: 0;
    font-size: 13px; font-weight: 600;
    color: var(--text-primary); line-height: 1.4;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.jj-news-meta {
    flex-shrink: 0;
    display: flex; gap: 5px; font-size: 11px;
    color: var(--text-secondary); align-items: center;
    white-space: nowrap;
}
.jj-news-badge {
    font-size: 10px; font-weight: 700;
    padding: 1px 5px; border-radius: 3px; flex-shrink: 0;
}
.jj-news-badge.breaking   { background: var(--red); color: #fff; animation: jjBlink 1.5s ease-in-out infinite; }
@keyframes jjBlink { 0%,100%{opacity:1} 50%{opacity:0.6} }
.jj-news-badge.analysis   { background: rgba(139,92,246,0.2); color: var(--purple); }
.jj-news-badge.disclosure { background: rgba(245,158,11,0.2);  color: var(--orange); }
.jj-news-badge.general    { background: var(--bg-card-hover);  color: var(--text-secondary); }
.jj-news-sentiment {
    font-size: 10px; font-weight: 700;
    padding: 1px 5px; border-radius: 3px; flex-shrink: 0;
}
.jj-news-sentiment.pos { background: rgba(16,185,129,0.15); color: var(--green); }
.jj-news-sentiment.neg { background: rgba(239,68,68,0.15);  color: var(--red); }
.jj-news-sentiment.neu { background: rgba(148,163,184,0.1); color: var(--text-secondary); }
.jj-news-trust {
    font-size: 10px; color: var(--text-muted);
    display: flex; align-items: center; gap: 2px; flex-shrink: 0;
}
.jj-trust-grade {
    font-size: 10px; font-weight: 800; padding: 0 3px; border-radius: 3px;
}
.jj-trust-grade.A { color: var(--green); }
.jj-trust-grade.B { color: #34d399; }
.jj-trust-grade.C { color: var(--orange); }
.jj-trust-grade.D { color: #f97316; }
.jj-trust-grade.F { color: var(--red); }
.jj-news-ext {
    margin-left: auto; font-size: 10px;
    color: var(--text-muted); flex-shrink: 0;
    transition: color 0.15s;
}
.jj-news-card:hover .jj-news-ext { color: var(--accent); }

/* 찌라시 신뢰도 레이더 */
.jj-radar-card { min-height: 460px; overflow: hidden; }
.jj-radar-hint {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 10px;
    color: var(--text-secondary); font-size: 13px;
    text-align: center; flex: 1; padding: 40px 0; opacity: 0.6;
}
.jj-radar-hint i { font-size: 22px; }
.jj-radar-body { display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.jj-radar-title-wrap {
    display: flex; align-items: flex-start;
    justify-content: space-between; gap: 8px; min-width: 0;
}
.jj-radar-news-title {
    font-size: 12px; color: var(--text-secondary);
    line-height: 1.4; flex: 1; min-width: 0;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.jj-radar-grade {
    flex-shrink: 0;
    font-size: 20px; font-weight: 900;
    padding: 4px 10px; border-radius: 8px;
}
.jj-radar-grade.A { background: rgba(16,185,129,0.2);  color: var(--green); }
.jj-radar-grade.B { background: rgba(59,130,246,0.2);  color: var(--accent); }
.jj-radar-grade.C { background: rgba(245,158,11,0.2);  color: var(--orange); }
.jj-radar-grade.D { background: rgba(239,68,68,0.15);  color: var(--red); }
.jj-radar-grade.F { background: rgba(239,68,68,0.3);   color: #ff6b6b; }
.jj-radar-canvas-wrap {
    display: flex; justify-content: center; overflow: hidden;
}
#jj-radar-chart {
    display: block;
    max-width: 100%;
    height: auto;
}
.jj-radar-metrics { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.jj-metric-row {
    display: grid;
    grid-template-columns: 60px minmax(0,1fr) 30px;
    align-items: center; gap: 6px;
    font-size: 11px; color: var(--text-secondary);
}
.jj-metric-bar-wrap {
    height: 5px; background: var(--border);
    border-radius: 99px; overflow: hidden; min-width: 0;
}
.jj-metric-bar { height: 100%; border-radius: 99px; transition: width 0.7s; }
.jj-radar-verdict {
    padding: 9px 12px; border-radius: 8px;
    font-size: 12px; font-weight: 600; line-height: 1.5;
}
.jj-radar-verdict.safe    { background: rgba(16,185,129,0.1);  color: var(--green);  border: 1px solid rgba(16,185,129,0.3); }
.jj-radar-verdict.caution { background: rgba(245,158,11,0.1);  color: var(--orange); border: 1px solid rgba(245,158,11,0.3); }
.jj-radar-verdict.danger  { background: rgba(239,68,68,0.1);   color: var(--red);    border: 1px solid rgba(239,68,68,0.3); }

/* 이슈 클러스터 */
.jj-cluster-list { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.jj-cluster-group {
    background: var(--bg-primary); border-radius: 8px;
    overflow: hidden; border: 1px solid var(--border);
}
.jj-cluster-header {
    padding: 7px 11px;
    display: flex; align-items: center; justify-content: space-between;
    background: var(--bg-card-hover); gap: 6px;
}
.jj-cluster-topic { font-size: 12px; font-weight: 700; color: var(--text-primary); }
.jj-cluster-count {
    font-size: 10px; font-weight: 700;
    background: var(--accent-glow); color: var(--accent);
    padding: 2px 8px; border-radius: 99px; white-space: nowrap;
}
.jj-cluster-stocks { padding: 9px 11px; display: flex; flex-wrap: wrap; gap: 5px; }
.jj-cluster-stock-tag {
    font-size: 11px; font-weight: 600;
    padding: 3px 9px; border-radius: 5px;
    background: var(--bg-card); border: 1px solid var(--border);
    color: var(--text-secondary); cursor: pointer;
    transition: var(--transition); white-space: nowrap;
}
.jj-cluster-stock-tag:hover { border-color: var(--accent); color: var(--accent); }

/* ══════════════════════════════════════════
   ZONE 4: 괴리 감지기
══════════════════════════════════════════ */
.jj-diverge-card { margin-bottom: 14px; overflow: hidden; }
.jj-diverge-hint {
    font-size: 11px; color: var(--text-secondary);
    margin-left: auto; font-style: italic;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (max-width: 860px) { .jj-diverge-hint { display: none; } }
.jj-diverge-list { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.jj-diverge-row {
    display: grid;
    grid-template-columns: minmax(0, 80px) minmax(0,1fr) minmax(0,1fr) minmax(0, 80px);
    align-items: center; gap: 10px;
    padding: 10px 14px;
    background: var(--bg-primary); border-radius: 8px;
    border-left: 3px solid var(--border);
    transition: var(--transition); min-width: 0; overflow: hidden;
}
.jj-diverge-row.alert { border-left-color: var(--red); }
.jj-diverge-row.ok    { border-left-color: var(--green); }
.jj-diverge-row.watch { border-left-color: var(--orange); }
.jj-diverge-name {
    font-size: 13px; font-weight: 700; color: var(--text-primary);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.jj-diverge-bar-group { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.jj-diverge-bar-label {
    font-size: 10px; color: var(--text-secondary);
    display: flex; justify-content: space-between; min-width: 0;
}
.jj-diverge-bar-wrap  { height: 5px; background: var(--border); border-radius: 99px; overflow: hidden; min-width: 0; }
.jj-diverge-bar       { height: 100%; border-radius: 99px; transition: width 0.8s; }
.jj-diverge-status {
    font-size: 11px; font-weight: 700;
    padding: 3px 8px; border-radius: 6px; text-align: center;
    white-space: nowrap;
}
.jj-diverge-status.alert  { background: rgba(239,68,68,0.15);  color: var(--red); }
.jj-diverge-status.ok     { background: rgba(16,185,129,0.15); color: var(--green); }
.jj-diverge-status.watch  { background: rgba(245,158,11,0.15); color: var(--orange); }

/* ══════════════════════════════════════════
   ZONE 5: 히트맵
══════════════════════════════════════════ */
.jj-heatmap-card { margin-bottom: 14px; overflow: hidden; }
.jj-heatmap-wrap { overflow-x: auto; min-width: 0; }
.jj-heatmap-table {
    width: 100%; border-collapse: collapse;
    font-size: 11px; min-width: 280px;
}
.jj-heatmap-table th {
    padding: 5px 6px; color: var(--text-secondary);
    font-weight: 600; text-align: center;
    font-size: 11px; white-space: nowrap;
}
.jj-heatmap-table td { padding: 3px 4px; text-align: center; }
.jj-heatmap-table .jj-hm-label {
    font-size: 11px; color: var(--text-secondary);
    text-align: right; padding-right: 8px; white-space: nowrap;
}
.jj-hm-cell {
    width: 36px; height: 28px; border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 700;
    transition: var(--transition); cursor: default;
    color: rgba(255,255,255,0.85);
}
.jj-hm-cell.lv0 { background: var(--bg-primary); color: var(--text-muted); }
.jj-hm-cell.lv1 { background: rgba(59,130,246,0.15); }
.jj-hm-cell.lv2 { background: rgba(59,130,246,0.35); }
.jj-hm-cell.lv3 { background: rgba(245,158,11,0.5); }
.jj-hm-cell.lv4 { background: rgba(239,68,68,0.6); }
.jj-hm-cell.lv5 { background: rgba(239,68,68,0.85); }
.jj-hm-cell:hover { transform: scale(1.15); z-index: 2; position: relative; }
.jj-heatmap-legend {
    display: flex; align-items: center; gap: 5px;
    margin-top: 8px; font-size: 11px; color: var(--text-secondary);
    flex-wrap: wrap;
}
.jj-hm-leg-cell { width: 14px; height: 14px; border-radius: 3px; }
.jj-heatmap-insight {
    font-size: 12px; color: var(--orange);
    background: rgba(245,158,11,0.08);
    border: 1px solid rgba(245,158,11,0.2);
    border-radius: 7px; padding: 9px 13px;
    display: none; line-height: 1.6;
}
.jj-heatmap-insight.visible { display: block; }
.jj-heatmap-insight i { margin-right: 6px; }

/* ══════════════════════════════════════════
   ZONE 6: 준비중
══════════════════════════════════════════ */
.jj-coming-card { margin-bottom: 4px; overflow: hidden; }
.jj-coming-inner {
    display: flex; align-items: center; gap: 20px;
    padding: 6px 0; flex-wrap: wrap;
}
.jj-coming-text h3 {
    font-size: 15px; font-weight: 800;
    color: var(--text-primary); margin: 0 0 6px;
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.jj-coming-text p {
    font-size: 12px; color: var(--text-secondary);
    margin: 0; line-height: 1.6;
}

/* ══════════════════════════════════════════
   모바일 반응형 (600px 이하)
══════════════════════════════════════════ */
@media (max-width: 600px) {
    .jj-zone2-grid { grid-template-columns: 1fr; }
    .jj-zone3-grid { grid-template-columns: 1fr; }
    .jj-cluster-card, .jj-radar-card { display: none; }

    .jj-diverge-row {
        grid-template-columns: minmax(0,70px) minmax(0,1fr);
        gap: 6px;
    }
    .jj-diverge-row .jj-diverge-bar-group:last-of-type { grid-column: 1 / -1; }
    .jj-diverge-row .jj-diverge-status { grid-column: 1 / -1; text-align: left; }

    .jj-momentum-item {
        grid-template-columns: 16px minmax(0,1fr) minmax(0,1.5fr) 44px;
    }
    .jj-momentum-item .jj-mom-signal { display: none; }

    .jj-header-bar { padding: 10px 14px; }
    .jj-update-time { display: none; }
}
