feat: 주식 보유종목 인텔리전스 탭 (액션·이슈·포트건강)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-31 22:32:35 +09:00
parent b15cbbb1b6
commit 597e6504e1
5 changed files with 376 additions and 4 deletions

View File

@@ -3016,3 +3016,213 @@
grid-template-columns: 1fr;
}
}
/* ══════════════════════════════════════════════════════
Holdings Intelligence Tab
══════════════════════════════════════════════════════ */
.hi-panel {
/* reuses stock-panel--wide layout */
}
/* ── 포트 건강 요약 줄 ── */
.hi-health {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 6px 0;
font-size: 13px;
color: #94a3b8;
background: rgba(148, 163, 184, 0.06);
border: 1px solid rgba(148, 163, 184, 0.12);
border-radius: 8px;
padding: 10px 14px;
margin-bottom: 16px;
}
.hi-health__sep {
margin: 0 8px;
color: rgba(148, 163, 184, 0.4);
}
.hi-health__pnl {
font-weight: 700;
font-size: 14px;
}
.hi-health__pnl.is-up { color: #22c55e; }
.hi-health__pnl.is-down { color: #ef4444; }
/* ── 분석 기준일 ── */
.hi-date {
font-size: 11px;
color: #64748b;
margin: 0 0 12px;
}
/* ── 카드 그리드 ── */
.hi-cards {
display: flex;
flex-direction: column;
gap: 10px;
margin-bottom: 16px;
}
/* ── 개별 카드 ── */
.hi-card {
background: rgba(255, 255, 255, 0.03);
border: 1px solid rgba(148, 163, 184, 0.12);
border-radius: 10px;
padding: 14px 16px;
display: flex;
flex-direction: column;
gap: 8px;
}
.hi-card__head {
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
}
.hi-action-badge {
display: inline-block;
font-size: 11px;
font-weight: 700;
padding: 2px 8px;
border-radius: 999px;
letter-spacing: 0.02em;
flex-shrink: 0;
}
.hi-card__name {
font-size: 14px;
font-weight: 700;
color: #e2e8f0;
}
.hi-card__ticker {
font-size: 11px;
color: #64748b;
font-family: monospace;
}
.hi-card__pnl {
margin-left: auto;
font-size: 13px;
font-weight: 700;
}
.hi-card__pnl.is-up { color: #22c55e; }
.hi-card__pnl.is-down { color: #ef4444; }
.hi-card__reasons {
font-size: 12px;
color: #94a3b8;
line-height: 1.5;
}
/* ── 기술강도 미니 바 ── */
.hi-card__score {
display: flex;
align-items: center;
gap: 8px;
font-size: 11px;
color: #64748b;
}
.hi-card__score strong {
color: #93c5fd;
font-size: 12px;
}
.hi-score-bar {
flex: 1;
height: 4px;
background: rgba(148, 163, 184, 0.15);
border-radius: 2px;
position: relative;
overflow: hidden;
max-width: 120px;
}
.hi-score-bar::after {
content: '';
position: absolute;
left: 0; top: 0; bottom: 0;
width: var(--score, 0%);
background: #93c5fd;
border-radius: 2px;
transition: width 0.4s ease;
}
/* ── 이슈 목록 ── */
.hi-card__issues {
display: flex;
flex-direction: column;
gap: 4px;
}
.hi-issue {
display: flex;
align-items: flex-start;
gap: 6px;
font-size: 11px;
line-height: 1.5;
}
.hi-issue__dot {
width: 6px;
height: 6px;
border-radius: 50%;
flex-shrink: 0;
margin-top: 4px;
}
/* ── 빈 상태 ── */
.hi-empty {
text-align: center;
padding: 48px 16px;
color: #64748b;
}
.hi-empty__icon {
font-size: 36px;
display: block;
margin-bottom: 12px;
}
.hi-empty__sub {
font-size: 12px;
margin-top: 6px;
color: #475569;
}
/* ── 면책 고지 ── */
.hi-disclaimer {
font-size: 11px;
color: #475569;
margin-top: 4px;
padding-top: 12px;
border-top: 1px solid rgba(148, 163, 184, 0.08);
}
/* ── 탭 버튼 (holdings intel) ── */
.stock-main-tab--holdings-intel {
/* reuses stock-main-tab base styles */
}
@media (max-width: 640px) {
.hi-card__head {
gap: 6px;
}
.hi-health {
font-size: 12px;
}
.hi-score-bar {
display: none;
}
}