/* style.css — 태민 주식 리포트 (Taemin Institutional Equity Research Terminal)
   Modern 2026 Institutional Fintech Aesthetic (Koyfin / Bloomberg Web / TradingView / Quartr) */

:root {
  --bg-deep: #06090f;
  --bg-primary: #0a0e17;
  --bg-secondary: #0f1523;
  --bg-card: #121929;
  --bg-card-elevated: #172034;
  --bg-card-hover: #1c273f;

  --border-subtle: rgba(148, 163, 184, 0.11);
  --border-medium: rgba(148, 163, 184, 0.18);
  --border-gold: rgba(212, 175, 55, 0.42);
  --border-blue: rgba(59, 130, 246, 0.45);

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #7c8ba1;

  --accent-gold: #e5b84b;
  --accent-gold-light: #f6d379;
  --accent-gold-dim: rgba(229, 184, 75, 0.14);

  --accent-blue: #3b82f6;
  --accent-cyan: #06b6d4;
  --accent-purple: #a855f7;

  --up-green: #10b981;
  --up-green-bg: rgba(16, 185, 129, 0.13);
  --down-red: #f43f5e;
  --down-red-bg: rgba(244, 63, 94, 0.13);

  --font-serif: 'Playfair Display', 'Noto Sans KR', 'Noto Sans JP', serif;
  --font-sans: 'Inter', 'Noto Sans KR', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* =========================================
   0. 최상단 실시간 글로벌 매크로 티커 스트립
   ========================================= */
.macro-ticker-strip {
  height: 36px;
  background: #04060b;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  font-size: 0.75rem;
  z-index: 120;
}

.macro-live-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.7rem;
  color: var(--up-green);
  letter-spacing: 0.08em;
  padding-right: 16px;
  border-right: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--up-green);
  box-shadow: 0 0 8px var(--up-green);
  animation: livePulse 1.8s infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.macro-items-scroll {
  display: flex;
  align-items: center;
  gap: 18px;
  overflow-x: auto;
  flex: 1;
  padding: 0 16px;
  scrollbar-width: none;
}
.macro-items-scroll::-webkit-scrollbar {
  display: none;
}

.macro-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.macro-chip-label {
  color: var(--text-muted);
  font-weight: 600;
}

.macro-chip-val {
  color: var(--text-primary);
  font-weight: 700;
}

.macro-chip-chg {
  font-weight: 600;
  font-size: 0.7rem;
  padding: 1px 5px;
  border-radius: 3px;
}

.macro-chip-chg.up {
  color: var(--up-green);
  background: var(--up-green-bg);
}

.macro-chip-chg.down {
  color: var(--down-red);
  background: var(--down-red-bg);
}

.macro-sync-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  padding-left: 12px;
  border-left: 1px solid var(--border-subtle);
}

.sync-timestamp {
  font-family: var(--font-mono);
  font-size: 0.71rem;
  color: var(--text-muted);
}

.btn-refresh-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(59, 130, 246, 0.14);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.35);
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-refresh-live:hover {
  background: rgba(59, 130, 246, 0.26);
  color: #fff;
}

.btn-refresh-live.spinning .refresh-icon {
  display: inline-block;
  animation: spin 0.8s linear infinite;
}

/* =========================================
   1. 상단 헤더 (Top Institutional Header)
   ========================================= */
.top-header {
  height: 68px;
  background: linear-gradient(180deg, #0f1625 0%, #0b101b 100%);
  border-bottom: 1px solid var(--border-medium);
  position: relative;
  z-index: 100;
  padding: 0 22px;
}

.header-inner {
  max-width: 1920px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-area {
  display: flex;
  align-items: center;
  gap: 13px;
  flex-shrink: 0;
}

.brand-emblem {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  background: linear-gradient(135deg, #f3cc68 0%, #b38320 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #080b12;
  box-shadow: 0 4px 16px rgba(229, 184, 75, 0.28);
  line-height: 1;
}

.emblem-letter {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 1.25rem;
}

.emblem-sub {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.52rem;
  letter-spacing: 0.08em;
}

.brand-title-row {
  display: flex;
  align-items: center;
  gap: 9px;
}

.brand-main {
  font-family: var(--font-serif);
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.terminal-pro-badge {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--accent-gold-dim);
  color: var(--accent-gold-light);
  border: 1px solid var(--border-gold);
  letter-spacing: 0.08em;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 2px;
}

/* 중앙 종목 분석 검색바 */
.search-analyze-bar {
  flex: 1;
  max-width: 650px;
}

.analyze-form {
  display: flex;
  align-items: center;
  background: #070b12;
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  padding: 4px 5px 4px 12px;
  transition: all 0.2s ease;
}

.analyze-form:focus-within {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(229, 184, 75, 0.15);
}

.search-icon-prefix {
  color: var(--text-muted);
  font-size: 1rem;
  margin-right: 8px;
}

.analyze-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.86rem;
  font-family: var(--font-sans);
  padding: 6px 6px;
}

.analyze-input::placeholder {
  color: var(--text-muted);
}

.analyze-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #e5b84b 0%, #bf9028 100%);
  color: #080c14;
  font-weight: 700;
  font-size: 0.81rem;
  border: none;
  border-radius: 6px;
  padding: 8px 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.analyze-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.analyze-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* 우측 최상단 한국어 / 일본어 전환 스위치 */
.header-right-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.lang-switcher {
  display: inline-flex;
  background: #070a11;
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  padding: 3px;
  gap: 4px;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--text-secondary);
  border: none;
  border-radius: 6px;
  padding: 6px 13px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.lang-btn.active {
  background: linear-gradient(135deg, #e5b84b 0%, #bf9028 100%);
  color: #080c14;
  box-shadow: 0 2px 10px rgba(229, 184, 75, 0.3);
}

/* =========================================
   2. 메인 레이아웃 (좌측 워치리스트 + 우측 터미널)
   ========================================= */
.main-layout {
  display: grid;
  grid-template-columns: 330px 1fr;
  height: calc(100vh - 104px);
  max-width: 1920px;
  margin: 0 auto;
}

/* 좌측 워치리스트 사이드바 */
.sidebar {
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.sidebar-header {
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.sidebar-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.sidebar-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-gold);
}

.count-badge {
  background: var(--accent-gold-dim);
  color: var(--accent-gold-light);
  border: 1px solid var(--border-gold);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 999px;
}

.market-filter-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  background: #080c14;
  padding: 3px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
}

.market-filter-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.69rem;
  font-weight: 700;
  padding: 5px 4px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.market-filter-btn:hover {
  color: var(--text-primary);
}

.market-filter-btn.active {
  background: var(--bg-card-elevated);
  color: var(--accent-gold-light);
  border: 1px solid rgba(229, 184, 75, 0.3);
}

.stock-nav-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stock-nav-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  padding: 12px 13px;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: left;
  width: 100%;
  color: var(--text-primary);
}

.stock-nav-item:hover {
  background: var(--bg-card-hover);
  border-color: rgba(229, 184, 75, 0.3);
}

.stock-nav-item.active {
  background: linear-gradient(135deg, rgba(229, 184, 75, 0.14) 0%, rgba(18, 25, 41, 0.96) 100%);
  border-color: var(--accent-gold);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.nav-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.nav-ticker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-gold-light);
  background: rgba(229, 184, 75, 0.11);
  padding: 2px 7px;
  border-radius: 4px;
}

.nav-rating {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}

.rating-buy {
  background: var(--up-green-bg);
  color: var(--up-green);
  border: 1px solid rgba(16, 185, 129, 0.32);
}

.rating-hold {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.32);
}

.nav-company-name {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1px;
}

.nav-company-en {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.nav-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 7px;
  border-top: 1px dashed rgba(255, 255, 255, 0.07);
}

.nav-price {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
}

.nav-change {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
}

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

/* 워치리스트 내 미니 52주 레인지 바 */
.nav-mini-52w {
  margin-top: 7px;
}
.nav-mini-52w-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-muted);
  margin-bottom: 3px;
}
.nav-mini-52w-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  position: relative;
}
.nav-mini-52w-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #e5b84b);
  border-radius: 999px;
}

.sidebar-footer {
  padding: 12px 14px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(6, 9, 15, 0.65);
}

.division-badge {
  background: rgba(229, 184, 75, 0.06);
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  padding: 10px 12px;
}

.division-header-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 4px;
}

.division-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--up-green);
}

.division-badge strong {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--accent-gold-light);
}

.division-badge p {
  font-size: 0.71rem;
  color: var(--text-secondary);
  line-height: 1.42;
}

/* =========================================
   3. 우측 메인 리서치 터미널 워크스페이스
   ========================================= */
.report-viewport {
  height: 100%;
  overflow-y: auto;
  padding: 24px 32px 64px;
  position: relative;
  background:
    radial-gradient(circle at 85% 0%, rgba(59, 130, 246, 0.07) 0%, transparent 45%),
    radial-gradient(circle at 15% 10%, rgba(229, 184, 75, 0.06) 0%, transparent 40%),
    var(--bg-primary);
}

.report-article {
  max-width: 1380px;
  margin: 0 auto;
}

/* 3-1. 기관급 리포트 헤더 & 실시간 프라이스 디스커버리 덱 */
.report-hero {
  background: linear-gradient(180deg, rgba(18, 25, 41, 0.95) 0%, rgba(13, 19, 32, 0.95) 100%);
  border: 1px solid var(--border-medium);
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 22px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.hero-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

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

.badge-exchange {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 700;
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.35);
  padding: 3px 10px;
  border-radius: 5px;
}

.badge-sector {
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  padding: 3px 10px;
  border-radius: 5px;
}

.badge-live-source {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 3px 10px;
  border-radius: 5px;
}

.report-date {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* 히어로 3단 그리드: 기업 타이틀 | 실시간 현재가 & 52주 게이지 | 목표주가 컨센서스 스펙트럼 */
.hero-main-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1.15fr;
  gap: 20px;
  align-items: stretch;
}

.hero-company-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-company-title {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.18;
}

.hero-company-sub {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.hero-conviction-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.verdict-pill-main {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 5px 13px;
  border-radius: 6px;
  background: linear-gradient(135deg, #e5b84b 0%, #b88722 100%);
  color: #070b12;
  letter-spacing: 0.05em;
}

.conviction-score-chip {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

/* 중앙: 실시간 시세 및 52주 레인지 바 박스 */
.hero-quote-card {
  background: #090d16;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 15px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.quote-top-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.69rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.quote-price-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 6px 0 10px;
}

.quote-current-price {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
}

.quote-change-badge {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 5px;
}

.badge-up {
  background: var(--up-green-bg);
  color: var(--up-green);
}

.badge-down {
  background: var(--down-red-bg);
  color: var(--down-red);
}

.range-52w-box {
  margin-top: 4px;
}

.range-52w-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-bottom: 5px;
}

.range-52w-bar {
  height: 7px;
  background: rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  position: relative;
}

.range-52w-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6 0%, #10b981 60%, #e5b84b 100%);
  border-radius: 999px;
}

.range-52w-marker {
  position: absolute;
  top: -4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent-gold);
  transform: translateX(-50%);
  box-shadow: 0 0 8px rgba(229, 184, 75, 0.8);
}

/* 우측: 월가 및 기관 목표주가 컨센서스 박스 */
.hero-target-card {
  background: linear-gradient(135deg, rgba(229, 184, 75, 0.1) 0%, rgba(9, 13, 22, 0.95) 100%);
  border: 1px solid var(--border-gold);
  border-radius: 10px;
  padding: 15px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.target-main-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 6px 0 8px;
}

.target-price-val {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent-gold-light);
}

.target-upside-pill {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--up-green);
  background: var(--up-green-bg);
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.consensus-spectrum {
  margin-top: 4px;
}

.consensus-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-secondary);
}

/* 3-2. 핵심 투자 테제 배너 (Executive Thesis Callout) */
.executive-headline-box {
  background: linear-gradient(90deg, rgba(229, 184, 75, 0.13) 0%, rgba(18, 25, 41, 0.85) 100%);
  border-left: 4px solid var(--accent-gold);
  border-top: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 18px 22px;
  border-radius: 0 10px 10px 0;
  margin-bottom: 24px;
}

.executive-headline-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-gold);
  margin-bottom: 5px;
  text-transform: uppercase;
}

.executive-headline-text {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.5;
}

/* 3-3. 인터랙티브 실시간 캔들스틱·이평선 차트 + 세레나 퀀트 타점 터미널 (2단 벤토 그리드) */
.terminal-bento-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 20px;
  margin-bottom: 26px;
}

.chart-panel-card,
.quant-panel-card {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
}

.panel-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.panel-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-title {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--text-primary);
}

.chart-controls-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tf-btn {
  background: #080c14;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tf-btn:hover {
  color: var(--text-primary);
  border-color: var(--accent-gold);
}

.tf-btn.active {
  background: var(--accent-gold);
  color: #070b12;
  border-color: var(--accent-gold);
}

/* 차트 범례 및 실시간 호버 OHLCV 인스펙터 */
.chart-legend-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  margin-bottom: 8px;
  padding: 6px 10px;
  background: #090d16;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
}

.ma-legend-items {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ma-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
}

.ohlcv-hover-readout {
  color: var(--text-secondary);
  font-size: 0.71rem;
}

.chart-canvas-wrapper {
  position: relative;
  width: 100%;
  height: 360px;
  background: #080c14;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
}

#priceChartCanvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
}

/* 세레나 퀀트 타점 & 실시간 이평선 이격 매트릭스 */
.quant-zones-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.quant-zone-box {
  background: #090d16;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 9px 11px;
}

.quant-zone-box.zone-buy {
  border-left: 3px solid var(--accent-cyan);
}
.quant-zone-box.zone-target {
  border-left: 3px solid var(--up-green);
}
.quant-zone-box.zone-stop {
  border-left: 3px solid var(--down-red);
}

.qz-label {
  font-size: 0.69rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 3px;
}

.qz-val {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* 이평선 이격 테이블 */
.ma-table-box {
  background: #090d16;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.ma-table-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-gold);
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}

.ma-rows-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  text-align: center;
}

.ma-cell {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 6px 4px;
}

.ma-cell-name {
  font-family: var(--font-mono);
  font-size: 0.67rem;
  font-weight: 700;
  color: var(--text-muted);
}

.ma-cell-val {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 2px 0;
}

.ma-cell-pct {
  font-family: var(--font-mono);
  font-size: 0.67rem;
  font-weight: 700;
}

/* RSI(14) 비주얼 서모미터 게이지 */
.rsi-gauge-box {
  background: #090d16;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px 12px;
}

.rsi-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  margin-bottom: 6px;
}

.rsi-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #10b981 0%, #3b82f6 35%, #a855f7 65%, #f43f5e 100%);
  position: relative;
}

.rsi-pointer {
  position: absolute;
  top: -4px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #090d16;
  transform: translateX(-50%);
  box-shadow: 0 0 8px #fff;
}

.rsi-scale-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.63rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* 3-4. 8대 핵심 투자 지표 그리드 (Key Valuation Metrics) */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.section-line {
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 14px 16px;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.metric-card:hover {
  border-color: rgba(229, 184, 75, 0.35);
  transform: translateY(-1px);
}

.metric-label {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-bottom: 5px;
  font-weight: 600;
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.metric-note {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

/* 3-5. 5인 전문 비서단 심층 리서치 섹션 (탭 필터 지원) */
.pillar-filter-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pillar-tab-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pillar-tab-btn:hover {
  color: var(--text-primary);
  border-color: var(--accent-gold);
}

.pillar-tab-btn.active {
  background: var(--accent-gold);
  color: #070b12;
  border-color: var(--accent-gold);
}

.assistants-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.assistant-report-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 22px 26px;
  position: relative;
  overflow: hidden;
}

.assistant-report-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
}

.card-christina::before { background: #3b82f6; }
.card-serena::before { background: #10b981; }
.card-violet::before { background: #a855f7; }
.card-lucas::before { background: #f43f5e; }
.card-chloe::before { background: var(--accent-gold); }

.assistant-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.assistant-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.assistant-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.assistant-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text-primary);
}

.assistant-role-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-gold-light);
  background: var(--accent-gold-dim);
  padding: 3px 9px;
  border-radius: 4px;
}

.assistant-body {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.82;
  white-space: pre-line;
}

/* 3-6. Bull vs Bear 시나리오 & 실시간 뉴스 속보 피드 */
.bottom-intelligence-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

.scenarios-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.scenario-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 18px 22px;
}

.scenario-bull {
  border-top: 3px solid var(--up-green);
}

.scenario-bear {
  border-top: 3px solid var(--down-red);
}

.scenario-title {
  font-size: 0.94rem;
  font-weight: 800;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.scenario-bull .scenario-title { color: var(--up-green); }
.scenario-bear .scenario-title { color: var(--down-red); }

.scenario-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scenario-list li {
  font-size: 0.86rem;
  color: var(--text-secondary);
  padding-left: 16px;
  position: relative;
  line-height: 1.55;
}

.scenario-bull .scenario-list li::before {
  content: '▲';
  position: absolute;
  left: 0;
  color: var(--up-green);
  font-size: 0.68rem;
  top: 3px;
}

.scenario-bear .scenario-list li::before {
  content: '▼';
  position: absolute;
  left: 0;
  color: var(--down-red);
  font-size: 0.68rem;
  top: 3px;
}

/* 실시간 속보 및 공시 피드 카드 */
.live-news-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--accent-blue);
  border-radius: 12px;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
}

.news-feed-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.news-item-link {
  display: block;
  text-decoration: none;
  background: #090d16;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 11px 14px;
  transition: all 0.18s ease;
}

.news-item-link:hover {
  border-color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.08);
  transform: translateX(2px);
}

.news-item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.news-source-badge {
  color: #60a5fa;
  font-weight: 700;
}

.news-item-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.45;
}

/* 3-7. 로딩 오버레이 */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 9, 15, 0.84);
  backdrop-filter: blur(8px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.loading-overlay.hidden {
  display: none;
}

.loading-card {
  max-width: 540px;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  padding: 34px 30px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
}

.spinner-ring {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(229, 184, 75, 0.2);
  border-top-color: var(--accent-gold);
  border-radius: 50%;
  margin: 0 auto 18px;
  animation: spin 0.9s linear infinite;
}

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

.loading-card h3 {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.loading-card p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.assistant-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
}

.apill {
  font-size: 0.73rem;
  background: rgba(229, 184, 75, 0.12);
  color: var(--accent-gold-light);
  border: 1px solid var(--border-gold);
  padding: 4px 10px;
  border-radius: 999px;
}

/* 스크롤바 스타일링 */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* 반응형 */
@media (max-width: 1280px) {
  .hero-main-grid {
    grid-template-columns: 1fr;
  }
  .terminal-bento-grid {
    grid-template-columns: 1fr;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bottom-intelligence-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   모바일 전용 컴포넌트 기본 정의 (데스크톱에서는 숨김)
   ========================================= */
.mobile-stock-bar {
  display: none;
}

.mobile-drawer-overlay {
  display: none;
}

.mobile-stock-bar {
  background: rgba(11, 16, 28, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  padding: 10px 12px 10px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.mobile-stock-bar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.mobile-stock-bar-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-bar-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-gold);
}

.btn-toggle-drawer {
  background: rgba(229, 184, 75, 0.12);
  border: 1px solid var(--border-gold);
  color: var(--accent-gold-light);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-toggle-drawer:hover {
  background: rgba(229, 184, 75, 0.22);
}

.drawer-arrow-icon {
  font-size: 0.62rem;
  transition: transform 0.2s;
}

/* 가로 스와이프 종목 칩 리스트 */
.mobile-stock-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 2px 2px 6px;
  scrollbar-width: none;
}

.mobile-stock-chips::-webkit-scrollbar {
  display: none;
}

.mobile-stock-chip {
  flex: 0 0 auto;
  min-width: 152px;
  max-width: 175px;
  background: #0d1320;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.mobile-stock-chip:hover {
  border-color: #334155;
  background: #111827;
}

.mobile-stock-chip.active {
  border-color: #e5b84b;
  background: linear-gradient(180deg, #182236 0%, #0d1525 100%);
  box-shadow: 0 0 14px rgba(229, 184, 75, 0.35);
}

.mchip-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.mchip-ticker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mchip-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
}

.mchip-badge.text-up {
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
}

.mchip-badge.text-down {
  color: #fb7185;
  background: rgba(244, 63, 94, 0.15);
}

.mchip-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mchip-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
}

.mchip-price {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--accent-gold-light);
}

.mchip-rating {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* 모바일 전체 종목 모달 바텀 시트 */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.mobile-drawer-overlay.hidden {
  display: none !important;
}

.mobile-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mobile-drawer-sheet {
  position: relative;
  z-index: 2;
  background: #090e18;
  border-top: 2px solid var(--accent-gold);
  border-radius: 20px 20px 0 0;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.8);
  animation: slideUpDrawer 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpDrawer {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.mobile-drawer-header {
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.drawer-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.drawer-title-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer-title-left h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.btn-close-drawer {
  background: #1e293b;
  border: 1px solid #334155;
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
}

.mobile-market-filter-tabs {
  display: flex;
  gap: 6px;
}

.mobile-filter-btn {
  flex: 1;
  background: #0f172a;
  border: 1px solid #1e293b;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 7px 10px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s;
}

.mobile-filter-btn.active {
  background: var(--accent-gold-dim);
  border-color: var(--accent-gold);
  color: var(--accent-gold-light);
}

.mobile-drawer-content {
  padding: 12px 16px 36px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mdrawer-card {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.mdrawer-card:hover {
  border-color: #334155;
  background: #131d33;
}

.mdrawer-card.active {
  border-color: #e5b84b;
  background: linear-gradient(180deg, #18233a 0%, #0f182c 100%);
  box-shadow: 0 0 16px rgba(229, 184, 75, 0.28);
}

.mdrawer-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.mdrawer-ticker-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mdrawer-flag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

.mdrawer-ticker {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-primary);
}

.mdrawer-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.mdrawer-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.mdrawer-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.mdrawer-price {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent-gold-light);
}

.mdrawer-change {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
}

/* =========================================
   미디어 쿼리 반응형 시스템
   ========================================= */
@media (max-width: 1280px) {
  .hero-main-grid {
    grid-template-columns: 1fr;
  }
  .terminal-bento-grid {
    grid-template-columns: 1fr;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bottom-intelligence-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  html, body {
    overflow: auto;
    height: auto;
  }
  .top-header {
    height: auto;
    padding: 10px 14px;
  }
  .header-inner {
    flex-wrap: wrap;
    gap: 8px;
  }
  .brand-area {
    gap: 8px;
  }
  .brand-emblem {
    width: 34px;
    height: 34px;
  }
  .brand-main {
    font-size: 1.25rem;
  }
  .terminal-pro-badge {
    font-size: 0.62rem;
    padding: 2px 6px;
  }
  .brand-sub {
    font-size: 0.68rem;
  }
  .search-analyze-bar {
    order: 3;
    max-width: 100%;
    width: 100%;
    margin-top: 6px;
  }
  .header-right-controls {
    margin-left: auto;
  }
  .main-layout {
    display: block !important;
    grid-template-columns: none !important;
    height: auto !important;
    max-width: 100% !important;
  }
  .sidebar {
    display: none !important;
  }
  .mobile-stock-bar {
    display: block !important;
    position: sticky;
    top: 0;
    z-index: 60;
  }
  .report-viewport {
    height: auto !important;
    min-height: 100vh;
    padding: 10px 12px 60px !important;
  }
  .report-hero {
    padding: 16px 16px 20px !important;
    border-radius: 12px !important;
    margin-bottom: 16px !important;
  }
  .hero-top-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
  }
  .hero-main-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .hero-company-title {
    font-size: 1.65rem !important;
    line-height: 1.2 !important;
  }
  .quote-main-price {
    font-size: 1.85rem !important;
  }
  .terminal-bento-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .chart-panel-card {
    padding: 14px 12px !important;
  }
  .chart-controls-row {
    overflow-x: auto;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .chart-controls-row::-webkit-scrollbar {
    display: none;
  }
  .chart-canvas-wrapper {
    height: 290px !important;
  }
  .quant-zones-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .pillar-filter-bar {
    overflow-x: auto;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    scrollbar-width: none;
  }
  .pillar-filter-bar::-webkit-scrollbar {
    display: none;
  }
  .assistants-grid {
    grid-template-columns: 1fr !important;
  }
  .bottom-intelligence-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 600px) {
  .top-header {
    padding: 8px 10px;
  }
  .brand-main {
    font-size: 1.15rem;
  }
  .brand-sub {
    display: none;
  }
  .lang-btn {
    padding: 4px 7px;
    font-size: 0.72rem;
  }
  .macro-ticker-strip {
    height: 36px;
    font-size: 0.74rem;
    padding: 0 8px;
  }
  .macro-live-indicator {
    padding-right: 8px;
    font-size: 0.68rem;
  }
  .report-viewport {
    padding: 8px 10px 50px !important;
  }
  .report-hero {
    padding: 14px 12px 16px !important;
  }
  .hero-company-title {
    font-size: 1.45rem !important;
  }
  .quote-main-price {
    font-size: 1.65rem !important;
  }
  .hero-quote-card, .hero-target-card {
    padding: 12px 12px !important;
  }
  .quant-zones-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
  }
  .qz-label {
    font-size: 0.66rem !important;
  }
  .qz-val {
    font-size: 0.88rem !important;
  }
  .metrics-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
  }
  .metric-card {
    padding: 9px 10px !important;
  }
  .metric-value {
    font-size: 1.05rem !important;
  }
  .metric-label {
    font-size: 0.68rem !important;
  }
  .chart-canvas-wrapper {
    height: 260px !important;
  }
  .executive-summary-card, .verdict-banner-card, .live-news-card {
    padding: 14px 12px !important;
  }
  .assistant-report-card {
    padding: 14px 12px !important;
  }
}
