/* ================================================================== */
/* TRISK JEOPOLİTİK NABIZ — Dashboard Theme                          */
/* ================================================================== */

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #10101a;
  --bg-tertiary: #16162a;
  --bg-hover: #1c1c34;
  --bg-card: #111119;
  --accent: #0ea5e9;
  --accent-dim: #0284c7;
  --accent-glow: rgba(14, 165, 233, 0.2);
  --accent-glow-strong: rgba(14, 165, 233, 0.4);
  --text-primary: #e2e4e9;
  --text-secondary: #8b8fa3;
  --text-dim: #4b5063;
  --border: #1e1e30;
  --border-active: #2a2a44;
  --severity-critical: #ef4444;
  --severity-high: #f97316;
  --severity-medium: #eab308;
  --severity-low: #4a4f5e;
  --green: #10b981;
  --green-dim: #059669;
  --cyan: #06b6d4;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;
}

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

html {
  scrollbar-width: thin;
  scrollbar-color: #2a2a44 #0a0a0f;
  height: 100%;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.6;
  height: 100%;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: #2a2a44; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-dim); }

/* ================================================================== */
/* SECTION 1: GLOBE HERO                                              */
/* ================================================================== */

#globe-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  background: var(--bg-primary);
  overflow: hidden;
}

#globeViz {
  width: 100%;
  height: 100%;
}

/* Scanline overlay */
.scanline::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 2;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 140, 0, 0.012) 2px,
    rgba(255, 140, 0, 0.012) 4px
  );
}

/* HUD Frame corners */
.hud-frame { position: absolute; inset: 0; z-index: 5; pointer-events: none; }

.hud-corner {
  position: absolute;
  width: 40px;
  height: 40px;
}
.hud-tl { top: 16px; left: 16px; border-top: 2px solid var(--accent); border-left: 2px solid var(--accent); }
.hud-tr { top: 16px; right: 16px; border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); }
.hud-bl { bottom: 80px; left: 16px; border-bottom: 2px solid var(--accent); border-left: 2px solid var(--accent); }
.hud-br { bottom: 80px; right: 16px; border-bottom: 2px solid var(--accent); border-right: 2px solid var(--accent); }

/* Hero overlays */
.hero-overlay {
  position: absolute;
  z-index: 10;
  pointer-events: none;
}

.hero-tl { top: 28px; left: 30px; }
.hero-tr { top: 28px; right: 30px; }
.hero-bottom { top: 80px; left: 0; right: 0; display: flex; justify-content: center; }

.hero-title {
  color: #9ca3af;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 2px;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.06);
}

.hero-sep { color: #6b7280; font-weight: 300; }

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 10px;
  letter-spacing: 1.5px;
  margin-top: 4px;
}

/* Live indicator */
.live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

.live-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 6px;
  box-shadow: 0 0 8px var(--accent-glow-strong);
  animation: blink 2s infinite;
}

.live-pulse {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(0, 255, 65, 0.5);
  animation: pulse-green 2s infinite;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 4px rgba(0,255,65,0.4); }
  50% { box-shadow: 0 0 14px rgba(0,255,65,0.7); }
}

/* Metrics bar */
.metrics-bar {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px 24px;
  pointer-events: auto;
}

.metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 18px;
}

.metric-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  text-shadow: 0 0 12px var(--accent-glow);
  line-height: 1.2;
}

.metric-value.critical { color: var(--severity-critical); text-shadow: 0 0 12px rgba(255,32,32,0.4); }
.metric-value.high { color: var(--severity-high); }

.metric-label {
  font-size: 9px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 1.5px;
  margin-top: 2px;
}

.metric-sep {
  width: 1px;
  height: 32px;
  background: var(--border);
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  text-align: center;
  animation: float 3s ease-in-out infinite;
  cursor: pointer;
  pointer-events: auto;
}

.scroll-text {
  color: var(--text-dim);
  font-size: 9px;
  letter-spacing: 3px;
  margin-bottom: 6px;
}

.scroll-arrow {
  width: 12px; height: 12px;
  border-right: 2px solid var(--accent-dim);
  border-bottom: 2px solid var(--accent-dim);
  transform: rotate(45deg);
  margin: 0 auto;
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ================================================================== */
/* SECTION 2: SITUATION BOARD                                         */
/* ================================================================== */

/* #situation-board replaced by #main-content — see bottom of file */

/* Split layout: tree left, context right */
.sb-split {
  display: flex;
  gap: 0;
  height: 100%;
}
.sb-left {
  flex: 0 0 20%;
  max-width: 20%;
  height: 100%;
  overflow: hidden;  /* scroll iç div'de olur */
  display: flex;
  flex-direction: column;
  padding-right: 0;
  border-right: 1px solid var(--border);
  position: relative;
  transition: none;
}
.sb-left > #ci-company-list {
  flex: 1 1 auto;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #1e1e30 transparent;
}

/* Firma listesi arama kutusu — kart satırı gibi, sabit (üstte), arka plan yok */
.ci-search {
  flex: 0 0 auto;  /* küçülme/büyüme yok, sabit kalır */
  display: block;
  width: 100%;
  margin: 0;
  padding: 14px 16px;
  background: var(--bg-primary);
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  color: #e5e7eb;
  font-size: 14px;
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0.5px;
  outline: none;
  box-sizing: border-box;
  z-index: 10;
}
.ci-search::placeholder { color: #6b7280; font-weight: 400; letter-spacing: 0; }
.ci-search:focus { background: rgba(14,165,233,0.04); }
.sb-left.collapsed {
  flex: 0 0 0%;
  max-width: 0%;
  opacity: 0;
  padding-right: 0;
  border-right: none;
  overflow: hidden;
}
.sb-split {
  position: relative;
}
.sb-toggle-btn {
  position: absolute;
  left: 20%;
  top: 50%;
  transform: translate(0, -50%);
  z-index: 10;
  background: none;
  border: none;
  color: rgba(136,136,136,0.45);
  width: 24px;
  height: 80px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: none;
}
.sb-toggle-btn:hover { color: var(--accent); border-color: var(--accent); }
.sb-left.collapsed ~ .sb-toggle-btn { left: 2px; transform: translate(0, -50%); }

.sb-right {
  flex: 1;
  max-width: 80%;
  position: relative;
  transition: none;
  height: 100%;
  overflow-y: auto;
  padding-left: 25px;
  padding-right: 25px;
}
.sb-left.collapsed ~ .sb-right { flex: 0 0 100%; max-width: 100%; overflow-x: hidden; }

/* Sol panel kapalıyken — büyütülmüş görünüm */
/* min-height 340px'e taşındı aşağıda */
.sb-left.collapsed ~ .sb-right .vc-qp-select { font-size: 14px; padding: 7px 10px; }
.sb-left.collapsed ~ .sb-right .vc-qp-toggle-btn { font-size: 12px; padding: 5px 12px; }
.sb-left.collapsed ~ .sb-right .vc-qp-panel { min-height: 340px; }
.sb-left.collapsed ~ .sb-right .vc-header { padding: 20px 28px 24px; }
.sb-left.collapsed ~ .sb-right .vc-header-grid3 { gap: 28px; }
.sb-left.collapsed ~ .sb-right .vc-title { font-size: 26px; }
.sb-left.collapsed ~ .sb-right .vc-subtitle { font-size: 14px; }
.sb-left.collapsed ~ .sb-right .vc-desc { font-size: 13px; }
.sb-left.collapsed ~ .sb-right .vc-meta-label { font-size: 11px; }
.sb-left.collapsed ~ .sb-right .vc-sub-name { font-size: 13px; }
.sb-left.collapsed ~ .sb-right .vc-sub-pct { font-size: 13px; }
.sb-left.collapsed ~ .sb-right .vc-sub-act { font-size: 10px; }
.sb-left.collapsed ~ .sb-right .vc-sub-item { margin-bottom: 3px; }
.sb-left.collapsed ~ .sb-right .vc-pie-leg { font-size: 13px; gap: 7px; }
.sb-left.collapsed ~ .sb-right .vc-pie-dot { width: 8px; height: 8px; }
.sb-left.collapsed ~ .sb-right .vc-pie-legend { gap: 4px; }
.sb-left.collapsed ~ .sb-right #vc-ownership-pie svg { width: 100px; height: 100px; }
.sb-left.collapsed ~ .sb-right .dp-title { font-size: 15px; }
/* Ticari ilişki haritası — node hover */
.tm-node-group { cursor: pointer; transition: filter 0.2s; }
.tm-node-group:hover rect { fill: rgba(255,255,255,0.08); stroke-opacity: 1; }
.tm-node-group:hover { filter: brightness(1.4) drop-shadow(0 0 6px rgba(96,165,250,0.3)); }

/* Ticari ilişki haritası (sankey) büyütme */
.sb-left.collapsed ~ .sb-right .pf-title { font-size: 13px; }
.sb-left.collapsed ~ .sb-right .pf-row-label { font-size: 11px; }
.sb-left.collapsed ~ .sb-right .pf-row { gap: 10px; }
.sb-left.collapsed ~ .sb-right .pf-node { min-width: 150px; max-width: 280px; padding: 10px 14px; }
.sb-left.collapsed ~ .sb-right .pf-node-title { font-size: 13px; }
.sb-left.collapsed ~ .sb-right .pf-node-sub { font-size: 11px; }
.sb-left.collapsed ~ .sb-right .pf-connector { gap: 12px; padding: 10px 4px; }
.sb-left.collapsed ~ .sb-right .pf-connector-line { width: 36px; }
.sb-left.collapsed ~ .sb-right .pf-edge { font-size: 11px; }
.sb-left.collapsed ~ .sb-right .pf-connector-edges { gap: 6px 14px; }
/* FİNANSAL ANALİZ paneli büyütme */
.sb-left.collapsed ~ .sb-right .fa-tab-btn { font-size: 13px; padding: 9px 16px; }
.sb-left.collapsed ~ .sb-right .fa-tab-content { font-size: 13px; }
.sb-left.collapsed ~ .sb-right .fa-commentary-box { font-size: 13px; padding: 12px 14px; }
.sb-left.collapsed ~ .sb-right .fa-commentary-body { font-size: 13px; }
.sb-left.collapsed ~ .sb-right .fa-commentary-header { font-size: 13px; }
.sb-left.collapsed ~ .sb-right .fa-ratio-group-title { font-size: 11px; }
.sb-left.collapsed ~ .sb-right .fa-ratio-line { font-size: 12.5px; }
.sb-left.collapsed ~ .sb-right .fa-ratio-line-value { font-size: 13px; }
.sb-left.collapsed ~ .sb-right .fa-source { font-size: 11px; }
/* FİRMA DEĞERLENDİRMESİ paneli büyütme */
/* Senaryo Analizi — sol panel kapanınca tüm içerik %10 büyür */
.sb-left.collapsed ~ .sb-right .sm-v2-section { zoom: 1.1; }
/* FİRMA DEĞERLENDİRMESİ paneli büyütme */
.sb-left.collapsed ~ .sb-right .sm-market-interp-text { font-size: 13px; }
.sb-left.collapsed ~ .sb-right .sm-market-interp-text .sm-headline { font-size: 14px; }
.sb-left.collapsed ~ .sb-right .sm-market-interp-text .sm-context-item { font-size: 12px; }
.sb-left.collapsed ~ .sb-right .sm-market-interp-text .sm-action-title { font-size: 13px; }
.sb-left.collapsed ~ .sb-right .sm-market-interp-text .sm-action-text { font-size: 12px; }
/* Yatırım Projeleri tablosu büyütme */
.sb-left.collapsed ~ .sb-right .dp-capex-name { font-size: 13px; }
.sb-left.collapsed ~ .sb-right .dp-capex-meta { font-size: 11px; }
.sb-left.collapsed ~ .sb-right .dp-capex-cap { font-size: 11px; }
.sb-left.collapsed ~ .sb-right .dp-capex-status { font-size: 11px; }
.sb-left.collapsed ~ .sb-right .dp-capex-impact { font-size: 11px; }
.sb-left.collapsed ~ .sb-right .dp-capex-tbl { font-size: 13px; }
.sb-left.collapsed ~ .sb-right .dp-capex-tbl thead th { font-size: 11px; }
.sb-left.collapsed ~ .sb-right .dp-capex-tbl tbody td { font-size: 12px; }
.sb-left.collapsed ~ .sb-right .dp-ctbl-name { font-size: 13px; }
.sb-left.collapsed ~ .sb-right .dp-ctbl-loc { font-size: 11px; }
.sb-left.collapsed ~ .sb-right .dp-ctbl-date { font-size: 12px; }
.sb-left.collapsed ~ .sb-right .dp-ctbl-inv { font-size: 12px; }
.sb-left.collapsed ~ .sb-right .dp-ctbl-cap { font-size: 11px; }
.sb-left.collapsed ~ .sb-right .dp-ctbl-impact { font-size: 11px; max-width: 240px; }
.sb-left.collapsed ~ .sb-right .dp-ctbl-status { font-size: 11px; }
.sb-left.collapsed ~ .sb-right .gca-group-row .gca-group-label { font-size: 13px; }
.sb-left.collapsed ~ .sb-right .gca-group-row .gca-group-intro { font-size: 11px; }
.sb-left.collapsed ~ .sb-right .gca-group-row .gca-group-count { font-size: 11px; }

/* Section header */
.section-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.section-header h2 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 4px;
  white-space: nowrap;
}

.section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border) 0%, transparent 100%);
}

.section-header .section-line:last-child {
  background: linear-gradient(90deg, transparent 0%, var(--border) 100%);
}

/* .section-count removed — tabs show titles only */

/* Loading indicator */
.loading-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 11px;
  letter-spacing: 2px;
  padding: 40px 0;
  justify-content: center;
}

.loading-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent-dim);
  animation: loading-pulse 1.4s infinite;
}
.loading-dot:nth-child(2) { animation-delay: 0.2s; }
.loading-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes loading-pulse {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}

/* ================================================================== */
/* BRANCHING TREE                                                     */
/* ================================================================== */

/* Region node */
.region-node {
  margin-bottom: 4px;
}

.region-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 4px;
  transition: all 0.25s ease;
  user-select: none;
}

.region-header:hover {
  background: var(--bg-hover);
  border-color: var(--border);
}

.region-toggle {
  color: var(--accent);
  font-size: 10px;
  transition: transform 0.3s ease;
  width: 14px;
  text-align: center;
}

.region-node.open > .region-header .region-toggle {
  transform: rotate(90deg);
}

.region-name {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  flex: 1;
}

.region-stats {
  color: var(--text-secondary);
  font-size: 10px;
  letter-spacing: 1px;
}

.region-stats .count {
  color: var(--accent);
  font-weight: 600;
}

/* Region children container */
.region-children {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.4s ease;
  border-left: 2px solid var(--border);
  margin-left: 22px;
  padding-left: 0;
}

.region-node.open > .region-children {
  max-height: 20000px;
  opacity: 1;
}

.region-node.open > .region-header {
  border-color: var(--border-active);
  background: rgba(255, 140, 0, 0.03);
}

.region-node.open > .region-children {
  border-left-color: var(--accent-dim);
  box-shadow: -2px 0 8px rgba(255, 140, 0, 0.06);
}

/* Actor node */
.actor-node {
  margin-left: 0;
}

.actor-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  border-radius: 3px;
}

.actor-header:hover {
  background: var(--bg-hover);
}

.actor-toggle {
  color: var(--text-dim);
  font-size: 9px;
  transition: transform 0.3s ease;
  width: 12px;
  text-align: center;
}

.actor-node.open > .actor-header .actor-toggle {
  transform: rotate(90deg);
}

.actor-flag {
  font-size: 16px;
  line-height: 1;
}

.actor-name {
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  flex: 1;
}

.actor-badge {
  color: var(--text-secondary);
  font-size: 9px;
  letter-spacing: 1px;
  background: var(--bg-tertiary);
  padding: 2px 8px;
  border-radius: 3px;
  border: 1px solid var(--border);
}

/* Actor children */
.actor-children {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.35s ease;
  border-left: 1px solid var(--border);
  margin-left: 36px;
  padding-left: 0;
}

.actor-node.open > .actor-children {
  max-height: 10000px;
  opacity: 1;
}

.actor-node.open > .actor-header {
  background: rgba(255, 140, 0, 0.02);
}

.actor-node.highlight > .actor-header {
  outline: 1px solid var(--accent);
  outline-offset: -1px;
  animation: highlight-fade 1.5s ease forwards;
}

@keyframes highlight-fade {
  0% { outline-color: var(--accent); }
  100% { outline-color: transparent; }
}

.actor-node.open > .actor-children {
  border-left-color: rgba(255, 140, 0, 0.2);
}

/* Storyline node */
.sl-node {
  margin: 2px 0;
}

.sl-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  cursor: pointer;
  transition: all 0.25s ease;
  border-radius: 3px;
  border: 1px solid transparent;
}

.sl-header:hover {
  background: var(--bg-hover);
  border-color: var(--border);
}

.sl-node.selected > .sl-header {
  background: var(--bg-tertiary);
  border-color: var(--accent-dim);
  box-shadow: inset 2px 0 0 var(--accent);
}

/* Severity dot */
.severity-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.severity-dot.critical {
  background: var(--severity-critical);
  box-shadow: 0 0 6px rgba(255, 32, 32, 0.5);
  animation: pulse-critical 2s infinite;
}
.severity-dot.high { background: var(--severity-high); box-shadow: 0 0 4px rgba(255,140,0,0.3); }
.severity-dot.medium { background: var(--severity-medium); }
.severity-dot.low { background: var(--severity-low); }

@keyframes pulse-critical {
  0%, 100% { box-shadow: 0 0 4px rgba(255,32,32,0.4); }
  50% { box-shadow: 0 0 14px rgba(255,32,32,0.7); }
}

.sl-title {
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 400;
  flex: 1;
  line-height: 1.4;
}

.sl-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.sl-clusters {
  color: var(--text-secondary);
  font-size: 10px;
  letter-spacing: 0.5px;
}

.sl-clusters .num { color: var(--text-primary); font-weight: 600; }

.sl-severity-tag {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 2px 6px;
  border-radius: 2px;
  text-transform: uppercase;
}

.sl-severity-tag.critical { color: var(--severity-critical); background: rgba(255,32,32,0.1); border: 1px solid rgba(255,32,32,0.2); }
.sl-severity-tag.high { color: var(--severity-high); background: rgba(255,140,0,0.1); border: 1px solid rgba(255,140,0,0.2); }
.sl-severity-tag.medium { color: var(--severity-medium); background: rgba(230,194,0,0.08); border: 1px solid rgba(230,194,0,0.15); }
.sl-severity-tag.low { color: var(--severity-low); background: rgba(74,74,90,0.15); border: 1px solid rgba(74,74,90,0.2); }

.sl-class-badge {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 2px 5px;
  border-radius: 3px;
  color: #fff;
  text-transform: uppercase;
  white-space: nowrap;
}

.sl-escalation {
  font-size: 12px;
  line-height: 1;
}

/* Storyline node — no inline detail, detail goes to right panel */

/* ================================================================== */
/* CONTEXT PANEL (RIGHT SIDE)                                         */
/* ================================================================== */

.ctx-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 300px;
  color: var(--text-dim);
  text-align: center;
}

.ctx-placeholder-icon {
  font-size: 32px;
  margin-bottom: 12px;
  color: var(--border-active);
  opacity: 0.5;
}

.ctx-placeholder-text {
  font-size: 11px;
  letter-spacing: 1px;
  line-height: 1.8;
}

.ctx-section {
  animation: ctx-fade-in 0.35s ease;
}

@keyframes ctx-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.ctx-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.4;
}

.ctx-subtitle {
  font-size: 10px;
  color: var(--text-secondary);
  letter-spacing: 1px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.ctx-severity-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.ctx-sev-badge {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 3px;
  text-transform: uppercase;
}

.ctx-sev-badge.critical { color: var(--severity-critical); background: rgba(255,32,32,0.1); border: 1px solid rgba(255,32,32,0.25); }
.ctx-sev-badge.high { color: var(--severity-high); background: rgba(255,140,0,0.1); border: 1px solid rgba(255,140,0,0.25); }
.ctx-sev-badge.medium { color: var(--severity-medium); background: rgba(230,194,0,0.08); border: 1px solid rgba(230,194,0,0.15); }
.ctx-sev-badge.low { color: var(--severity-low); background: rgba(74,74,90,0.15); border: 1px solid rgba(74,74,90,0.2); }

.ctx-sev-info {
  font-size: 10px;
  color: var(--text-secondary);
}

/* Context blocks */
.ctx-block {
  margin-bottom: 16px;
}

.ctx-block-title {
  font-size: 9px;
  font-weight: 600;
  color: var(--accent-dim);
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.ctx-block-body {
  font-size: 12px;
  line-height: 1.7;
}
.ctx-split-row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: flex-start;
}
.ctx-split-left, .ctx-split-col, .ctx-split-right {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
  max-height: 280px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #1e1e30 transparent;
}
/* 2x2 Grid (Özet + Kritik | Değişimler + Bölgeler Arası) */
.ctx-grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 0;
}
.ctx-grid-cell {
  min-width: 0;
  height: 225px;
  overflow: hidden;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.ctx-grid-body {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  font-size: 0.82em;
  color: var(--text-primary);
  line-height: 1.5;
  padding-bottom: 8px;
}
.ctx-grid-cell:nth-child(even) {
  border-left: 1px solid var(--border);
}
.ctx-grid-cell:nth-child(n+3) {
  border-bottom: none;
}
.ctx-grid-title {
  font-size: 0.6em;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 2px;
  padding: 10px 0 6px;
  position: sticky;
  top: 0;
  background: var(--bg-primary);
  z-index: 1;
}
/* grid-body styling merged above */
/* Changes column */
.ctx-change-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 1px 0;
  border-bottom: none;
  font-size: 0.82em;
}
.ctx-change-item:last-child { border-bottom: none; }
.ctx-change-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}
.ctx-change-text {
  color: var(--text-primary);
  line-height: 1.4;
}
.ctx-change-detail {
  color: var(--text-secondary);
  font-size: 0.88em;
}
.ctx-change-time {
  color: var(--text-dim);
  font-size: 0.82em;
  margin-top: 2px;
}

.ctx-summary {
  color: var(--text-primary);
  padding: 10px 14px;
  background: var(--bg-secondary);
  border-left: 3px solid var(--accent-dim);
  border-radius: 0 4px 4px 0;
  font-size: 12px;
  line-height: 1.8;
}

/* Actor chips in context panel */
.ctx-actor-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  margin: 3px 4px 3px 0;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 11px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.ctx-actor-chip:hover {
  border-color: var(--accent-dim);
  background: rgba(255, 140, 0, 0.06);
  color: var(--accent);
}

.ctx-actor-chip .chip-flag { font-size: 14px; }
.ctx-actor-chip .chip-code { font-weight: 500; }

/* Cross-reference storyline links */
.ctx-xref-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 1px 10px;
  margin-bottom: 0;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.ctx-xref-item:hover {
  background: var(--bg-hover);
  border-color: var(--border);
}

.ctx-xref-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ctx-xref-title {
  flex: 1;
  font-size: 11px;
  color: var(--text-primary);
  line-height: 1.4;
}

.ctx-xref-meta {
  font-size: 9px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.ctx-xref-region {
  font-size: 9px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
  background: var(--bg-tertiary);
  padding: 1px 6px;
  border-radius: 2px;
}

/* Cluster list in context */
.ctx-event-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(30, 30, 48, 0.4);
  font-size: 11px;
}

.ctx-event-item:last-child { border-bottom: none; }

.ctx-event-time {
  color: var(--text-dim);
  font-size: 10px;
  width: 42px;
  flex-shrink: 0;
}

.ctx-event-label {
  color: var(--text-primary);
  flex: 1;
  line-height: 1.4;
}

.ctx-event-sev {
  width: 5px; height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Storyline reference in live feed cards */
.lf-sl-ref {
  font-size: 10px;
  color: var(--text-dim);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Actions row inside expanded storyline */
.cp-sl-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
  align-items: center;
}

/* Analyst button inside storyline */
.cp-analyst-btn {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: #a855f7;
  cursor: pointer;
  padding: 2px 8px;
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 3px;
  background: rgba(168, 85, 247, 0.08);
  transition: all 0.2s;
}
.cp-analyst-btn:hover {
  background: rgba(168, 85, 247, 0.15);
  border-color: #a855f7;
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.2);
}

/* Navigate link in country panel */
.cp-sl-navigate {
  font-size: 10px;
  color: var(--accent);
  cursor: pointer;
  margin-top: 2px;
  opacity: 0.7;
}
.cp-sl-navigate:hover { opacity: 1; }

/* Summary + Clusters side by side */
/* Info grid */
.ctx-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.ctx-info-item {
  font-size: 10px;
  color: var(--text-secondary);
}

.ctx-info-item span {
  color: var(--text-primary);
  font-weight: 500;
}

/* ================================================================== */
/* ANALYST ASSESSMENT PANEL                                            */
/* ================================================================== */

.analyst-consensus-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-bottom: 12px;
}
.analyst-consensus-score {
  display: flex;
  align-items: baseline;
}
.analyst-consensus-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
}
.analyst-consensus-label {
  font-size: 9px;
  color: var(--text-secondary);
  letter-spacing: 1px;
  margin-left: 6px;
}
.analyst-agreement-badge {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 3px;
}

/* Analyst cards (vertical stack) */
.analyst-cards {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
.analyst-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.analyst-card:hover {
  border-color: var(--border-active);
}
.analyst-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.analyst-card-name {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.5px;
}
.analyst-card-toggle {
  font-size: 8px;
  color: var(--text-dim);
  transition: transform 0.25s;
}
.analyst-card.expanded .analyst-card-toggle {
  transform: rotate(180deg);
}
.analyst-card-scores {
  display: flex;
  gap: 12px;
  margin-bottom: 6px;
}
.analyst-score-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.analyst-score-label {
  font-size: 8px;
  color: var(--text-dim);
  letter-spacing: 1px;
}
.analyst-score-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}
.analyst-card-preview {
  font-size: 10px;
  color: var(--text-secondary);
  line-height: 1.4;
  border-top: 1px solid var(--border);
  padding-top: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.analyst-card.expanded .analyst-card-preview {
  display: none;
}
.analyst-card-expand {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.analyst-card.expanded .analyst-card-expand {
  max-height: 600px;
  border-top: 1px solid var(--border);
  padding-top: 6px;
  margin-top: 3px;
}
.analyst-exp-field {
  margin-bottom: 6px;
}
.analyst-exp-label {
  display: block;
  font-size: 8px;
  font-weight: 600;
  color: var(--accent-dim);
  letter-spacing: 1px;
  margin-bottom: 2px;
}
.analyst-exp-text {
  display: block;
  font-size: 10px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Severity trend chart */
.analyst-trend-section {
  margin-bottom: 12px;
}
.analyst-trend-title {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}
.analyst-trend-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 8px;
  height: 280px;
}

/* Disagreements + Turkey sections */
.analyst-section-title {
  font-size: 9px;
  font-weight: 600;
  color: var(--accent-dim);
  letter-spacing: 1.5px;
  margin-bottom: 4px;
  margin-top: 8px;
}
.analyst-disagreements {
  margin-bottom: 8px;
}
.analyst-disagreement-item {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.6;
  padding: 4px 0 4px 10px;
  border-left: 2px solid var(--severity-medium);
}
.analyst-turkey {
  font-size: 11px;
  color: var(--text-primary);
  padding: 8px 12px;
  background: var(--bg-secondary);
  border-left: 3px solid var(--severity-medium);
  border-radius: 0 4px 4px 0;
  line-height: 1.6;
  margin-bottom: 8px;
}
.analyst-cycle-meta {
  font-size: 9px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
  text-align: right;
  padding-top: 4px;
}

/* ================================================================== */
/* (Old briefing section removed — now in intel-panel) */

/* ================================================================== */
/* FOOTER                                                             */
/* ================================================================== */

.site-footer {
  padding: 30px 40px 40px;
  text-align: center;
}

.footer-line {
  height: 1px;
  background: var(--border);
  margin-bottom: 16px;
}

.footer-text {
  color: var(--text-dim);
  font-size: 9px;
  letter-spacing: 4px;
}

/* ================================================================== */
/* ORBITAL CONNECTION GRAPH                                            */
/* ================================================================== */

.nav-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  cursor: pointer;
  margin-bottom: 8px;
  transition: background 0.2s, border-color 0.2s;
}
.nav-back-btn:hover {
  background: rgba(255,140,0,0.1);
  border-color: var(--accent);
}

#orbital-container,
#actor-orbital-container {
  width: 100%;
  min-height: 100px;
  max-height: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

#actor-orbital-container {
  min-height: 450px;
}

.conn-edge { transition: stroke-opacity 0.2s, stroke-width 0.2s; }

/* Actor class tree */
.atree-section {
  margin-bottom: 2px;
}
.atree-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.15s;
  user-select: none;
}
.atree-header:hover { background: rgba(255,255,255,0.04); }
.atree-cls-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.atree-cls-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  flex: 1;
}
.atree-cls-count {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  background: rgba(255,255,255,0.06);
  padding: 1px 6px;
  border-radius: 8px;
}
.atree-toggle {
  font-size: 10px;
  color: var(--text-dim);
  transition: transform 0.2s;
}
.atree-section.open .atree-toggle {
  transform: rotate(90deg);
}
.atree-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.2s ease;
}
.atree-section.open .atree-body {
  max-height: 2000px;
  opacity: 1;
}
.atree-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px 5px 28px;
  cursor: pointer;
  border-radius: 3px;
  transition: background 0.12s;
}
.atree-item:hover { background: rgba(255,255,255,0.04); }
.atree-sev-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.atree-sev-dot.critical { background: var(--severity-critical); box-shadow: 0 0 5px rgba(239,68,68,0.4); }
.atree-sev-dot.high { background: var(--severity-high); box-shadow: 0 0 3px rgba(249,115,22,0.3); }
.atree-sev-dot.medium { background: var(--severity-medium); }
.atree-sev-dot.low { background: var(--severity-low); }
.atree-item-title {
  font-family: var(--font-sans);
  font-size: 12px;
  color: #c8cad0;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.atree-item-sev {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  color: var(--text-dim);
}

/* Orbital Map (HTML-based rectangular layout) */
.omap-container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 12px 0;
  position: relative;
}
.omap-row {
  display: grid;
  grid-template-columns: repeat(var(--omap-cols, 4), 1fr);
  gap: 10px;
  width: 100%;
  position: relative;
}
.omap-row-top { align-items: flex-end; }
.omap-row-bot { align-items: flex-start; }
.omap-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  position: relative;
}
/* Horizontal rail through center */
.omap-rail {
  display: flex;
  align-items: center;
}
.omap-rail-line {
  flex: 1;
  height: 1.5px;
  background: var(--accent);
  opacity: 0.25;
}
/* Diamond hub */
.omap-hub {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(15, 15, 25, 0.95);
  border: 1.5px solid var(--accent);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 1px;
  box-shadow: 0 0 10px rgba(255,140,0,0.15);
  flex-shrink: 0;
  margin: 0 4px;
  z-index: 2;
  transform: rotate(45deg);
}
.omap-hub span {
  transform: rotate(-45deg);
}
/* Vertical arm: line + label + line */
.omap-arm {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 42px;
  flex-shrink: 0;
}
.omap-arm-line {
  width: 1.5px;
  flex: 1;
  opacity: 0.3;
}
.omap-arm-label {
  font-family: var(--font-mono);
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 1px 0;
  flex-shrink: 0;
}
.omap-card {
  border: 1px solid;
  border-radius: 5px;
  background: rgba(13, 13, 20, 0.85);
  padding: 4px 0;
  width: 100%;
  min-width: 0;
  height: 180px;
  overflow: hidden;
}
.omap-card-body {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.omap-sl {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  cursor: pointer;
  border-radius: 3px;
  transition: background 0.12s;
}
.omap-sl:hover { background: rgba(255,255,255,0.05); }
.omap-sl-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}
.omap-sl-dot.critical { background: var(--severity-critical); box-shadow: 0 0 4px rgba(239,68,68,0.4); }
.omap-sl-dot.high { background: var(--severity-high); }
.omap-sl-dot.medium { background: var(--severity-medium); }
.omap-sl-dot.low { background: var(--severity-low); }
.omap-sl-title {
  font-family: var(--font-sans);
  font-size: 10.5px;
  color: #b0b4c0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.omap-sev-label {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 3px 8px 1px;
  text-transform: uppercase;
}
.omap-sev-label.critical { color: var(--severity-critical); }
.omap-sev-label.high { color: var(--severity-high); }
.omap-sev-label.medium { color: var(--severity-medium); }
.omap-sev-label.low { color: var(--severity-low); }
.omap-sl-more {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-dim);
  text-align: center;
  padding: 2px;
}

.orbital-svg {
  display: block;
  margin: 0 auto;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.orbital-svg:active {
  cursor: grabbing;
}
.orbital-zoom-controls {
  position: absolute;
  bottom: 6px;
  right: 6px;
  display: flex;
  gap: 3px;
  z-index: 5;
}
.orbital-zoom-btn {
  width: 24px;
  height: 24px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: rgba(10, 10, 15, 0.85);
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: border-color 0.2s, color 0.2s;
}
.orbital-zoom-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.orbital-zoom-reset {
  font-size: 14px;
}

/* Connection lines */
.orbital-link {
  opacity: 0;
  animation: orbital-line-in 0.5s ease forwards;
}

@keyframes orbital-line-in {
  from { opacity: 0; }
  to { opacity: var(--link-opacity, 0.5); }
}

/* Link label */
.orbital-link-label {
  opacity: 0;
  animation: orbital-fade-in 0.4s ease forwards;
  pointer-events: none;
}

/* Node groups */
.orbital-node-group {
  cursor: pointer;
  opacity: 0;
  animation: orbital-node-in 0.45s ease forwards;
}

@keyframes orbital-node-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes orbital-fade-in {
  from { opacity: 0; }
  to { opacity: 0.8; }
}

.orbital-node-group:hover .orbital-node {
  stroke-width: 2.5;
}

.orbital-node-group:hover .orbital-label {
  fill: var(--accent) !important;
}

/* Center hexagon pulse */
.orbital-center {
  animation: orbital-center-pulse 3s ease-in-out infinite;
}

@keyframes orbital-center-pulse {
  0%, 100% { stroke-opacity: 0.7; }
  50% { stroke-opacity: 1; }
}

/* Connection type badge below graph */
.orbital-legend {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  width: 100%;
}

.orbital-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

.orbital-legend-line {
  width: 18px;
  height: 2px;
}

/* ================================================================== */
/* ORBITAL ACTOR BRANCH NODES                                         */
/* ================================================================== */

.orbital-actor-branch {
  opacity: 0;
  animation: orbital-node-in 0.4s ease forwards;
}

/* ================================================================== */
/* CONNECTION LIST (single-SL detail view)                             */
/* ================================================================== */

.conn-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.conn-type-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.conn-type-header {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0 2px 0;
}
.conn-type-line {
  width: 14px;
  height: 2px;
  border-radius: 1px;
  flex-shrink: 0;
}
.conn-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 6px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s;
}
.conn-item:hover {
  background: rgba(255, 255, 255, 0.05);
}
.conn-item-cls {
  width: 3px;
  height: 16px;
  border-radius: 1.5px;
  flex-shrink: 0;
}
.conn-item-sev {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}
.conn-item-title {
  flex: 1;
  font-size: 10px;
  color: var(--text-secondary);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
}
.conn-item-str {
  font-size: 8px;
  font-weight: 600;
  flex-shrink: 0;
  opacity: 0.7;
}

/* ================================================================== */
/* KG INTELLIGENCE SOURCES PANEL                                      */
/* ================================================================== */

.kg-source-section {
  border-bottom: 1px solid rgba(255,140,0,0.1);
}
.kg-source-section:last-child {
  border-bottom: none;
}
.kg-source-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #b0b0b0;
  transition: color 0.2s;
}
.kg-source-header:hover {
  color: #0ea5e9;
}
.kg-source-badge {
  background: rgba(255,140,0,0.15);
  color: #0ea5e9;
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 700;
}
.kg-toggle-arrow {
  margin-left: auto;
  font-size: 8px;
  color: #666;
}
.kg-source-body {
  padding: 2px 4px 8px;
}
.kg-table {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.kg-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  padding: 2px 0;
  color: #b0b0b0;
}
.kg-cell {
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kg-cell.kg-type {
  color: #0ea5e9;
  font-weight: 600;
  min-width: 50px;
}
.kg-cell.kg-detail {
  color: #888;
  flex: 1;
  min-width: 0;
}
.kg-cell.kg-dim {
  color: #666;
  font-size: 9px;
}

/* ================================================================== */
/* SCROLL FADE-IN ANIMATION                                           */
/* ================================================================== */

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================================== */
/* COUNTRY DETAIL PANEL — Cyberpunk slide-in                          */
/* ================================================================== */

.country-panel {
  position: absolute;
  top: 0; left: 0;
  width: 340px;
  height: 100%;
  background: rgba(10, 10, 18, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-right: 1px solid var(--accent);
  z-index: 20;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  pointer-events: auto;
  overflow: hidden;
}
.country-panel.open {
  transform: translateX(0);
}
.country-panel.open ~ .intel-buttons {
  left: 356px;
}

/* Scanline overlay */
.country-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent, transparent 2px,
    rgba(255,140,0,0.015) 2px,
    rgba(255,140,0,0.015) 4px
  );
}

/* Header */
.cp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 8px;
}
.cp-title {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.cp-close {
  background: none;
  border: 1px solid var(--border-active);
  color: var(--text-secondary);
  font-size: 20px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.cp-close:hover {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

/* Subtitle */
.cp-subtitle {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  padding: 0 20px 12px;
  letter-spacing: 0.5px;
}

/* Divider */
.cp-divider {
  height: 1px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--border) 100%);
  margin: 0 20px;
}
.intel-panel .cp-divider {
  background: linear-gradient(90deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.03) 100%);
}

/* Scrollable SL list */
.cp-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
}
.cp-list::-webkit-scrollbar { width: 4px; }
.cp-list::-webkit-scrollbar-track { background: transparent; }
.cp-list::-webkit-scrollbar-thumb { background: var(--border-active); border-radius: 2px; }

/* Cluster item */
.cp-sl-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 4px;
  border-left: 3px solid var(--border);
  transition: all 0.2s;
  position: relative;
}
.cp-sl-item:hover {
  background: rgba(255, 140, 0, 0.10);
  border-left-color: var(--accent);
  box-shadow: inset 0 0 30px rgba(255, 140, 0, 0.08), 0 0 0 1px rgba(255, 140, 0, 0.18);
  transform: translateX(3px);
}
.cp-sl-item:hover .cp-sev-dot {
  width: 10px;
  height: 10px;
  margin-top: 4px;
  filter: brightness(1.5) drop-shadow(0 0 6px);
}
.cp-sl-item:hover .cp-sl-title {
  color: #ffffff !important;
}
.cp-sl-item:hover .cp-sev-label {
  filter: brightness(1.4);
}

/* Severity dot */
.cp-sev-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
  transition: all 0.2s ease;
}

/* SL info text */
.cp-sl-info {
  flex: 1;
  min-width: 0;
}
.cp-sl-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 3px;
  transition: color 0.2s ease;
}
.cp-sl-meta {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.cp-sl-parent {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--text-dim);
  margin-top: 3px;
  font-style: italic;
}

/* Expandable cluster items */
.cp-expandable { cursor: pointer; }
.cp-expand-icon {
  display: inline-block;
  margin-left: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: bold;
  color: var(--accent-dim);
  width: 14px;
  text-align: center;
  vertical-align: middle;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.cp-expandable:hover .cp-expand-icon { opacity: 1; }

/* Cluster summary — collapsed by default */
.cp-cl-summary {
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-top: 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease, padding 0.3s ease;
  border-left: 2px solid transparent;
}
.cp-cl-summary.open {
  max-height: 300px;
  opacity: 1;
  margin-top: 6px;
  padding: 6px 0 4px 8px;
  border-left-color: var(--accent-dim);
}

/* Severity label in country panel */
.cp-sev-label {
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Consensus score badge */
.cp-consensus {
  font-weight: 700;
  font-size: 10px;
  margin-left: 6px;
}

/* Empty state */
.cp-empty {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  text-align: center;
  padding: 40px 20px;
}

/* ================================================================== */
/* INTEL BUTTONS — Top-left floating                                   */
/* ================================================================== */
.intel-buttons {
  position: absolute;
  top: 80px;
  left: 20px;
  z-index: 15;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.intel-btn {
  background: rgba(10, 10, 20, 0.5);
  backdrop-filter: blur(12px);
  border: none;
  color: #8891a5;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.5px;
  padding: 7px 14px;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 0;
}
.intel-btn:hover {
  background: rgba(255, 140, 0, 0.08);
  color: #c8d0e0;
}
.intel-btn.active {
  color: var(--accent);
  background: rgba(255, 140, 0, 0.1);
}

/* ================================================================== */
/* INTEL PANEL — Left slide-in (SitRep / Brief)                        */
/* ================================================================== */
.intel-panel {
  position: absolute;
  top: 0; left: 0;
  width: 485px;
  height: calc(100% - 44px);
  background: rgba(10, 10, 15, 0.45);
  backdrop-filter: blur(16px);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 20;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  pointer-events: auto;
  overflow: hidden;
}
.intel-panel.open {
  transform: translateX(0);
}

.ip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 6px;
  flex-shrink: 0;
}
.ip-title {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: #c8d0e0;
  letter-spacing: 2px;
}
.ip-meta {
  font-family: var(--font-sans);
  font-size: 10px;
  color: var(--text-secondary);
  padding: 0 20px 10px;
  letter-spacing: 0.3px;
}
.ip-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 20px 20px;
  position: relative;
  z-index: 1;
}

/* Intel panel section blocks */
.ip-section {
  margin-bottom: 14px;
}
.ip-section-title {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 600;
  color: #6b7280;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.ip-text {
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.6;
  color: #d1d5db;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Sitrep: executive brief */
.sitrep-brief {
  font-family: var(--font-sans);
  font-size: 0.94em;
  line-height: 1.35;
  color: #6b7080;
  padding: 8px 12px;
}
.sitrep-brief p {
  margin: 0 0 8px 0;
}
.sitrep-brief strong {
  color: #b0b4c0;
  font-weight: 600;
}

/* Sitrep: severity section headers */
.sitrep-sev-section {
  margin-bottom: 4px;
}
.sitrep-sev-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.15s;
  user-select: none;
}
.sitrep-sev-header:hover { background: rgba(255,255,255,0.03); }
.sitrep-sev-header .sitrep-sev-dot { width: 8px; height: 8px; }
.sitrep-sev-title {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  flex: 1;
}
.sitrep-sev-title.critical { color: var(--severity-critical); }
.sitrep-sev-title.high { color: var(--severity-high); }
.sitrep-sev-title.medium { color: var(--severity-medium); }
.sitrep-sev-title.low { color: var(--severity-low); }
.sitrep-sev-count {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-dim);
}
.sitrep-sev-toggle {
  font-size: 10px;
  color: var(--text-dim);
  transition: transform 0.2s;
}
.sitrep-sev-section.open .sitrep-sev-toggle {
  transform: rotate(90deg);
}
.sitrep-sev-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.2s ease;
}
.sitrep-sev-section.open .sitrep-sev-body {
  max-height: 2000px;
  opacity: 1;
  overflow-y: auto;
}
.sitrep-empty {
  font-family: var(--font-sans);
  font-size: 0.94em;
  color: #4a4f5e;
  padding: 8px 20px;
  font-style: italic;
}

/* Sitrep: storyline group list */
.sitrep-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.sitrep-group {
  cursor: pointer;
  padding: 5px 8px 5px 20px;
  border-radius: 4px;
  transition: background 0.15s;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.sitrep-group:hover {
  background: rgba(255,255,255,0.03);
}
.sitrep-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
}
.sitrep-sev-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.sitrep-sev-dot.critical { background: var(--severity-critical); box-shadow: 0 0 6px rgba(239,68,68,0.5); }
.sitrep-sev-dot.high { background: var(--severity-high); box-shadow: 0 0 4px rgba(249,115,22,0.3); }
.sitrep-sev-dot.medium { background: var(--severity-medium); }
.sitrep-sev-dot.low { background: var(--severity-low); }
.sitrep-label {
  font-family: var(--font-sans);
  font-size: 0.92em;
  font-weight: 500;
  color: #c8cad0;
  line-height: 1.4;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sitrep-count {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  background: rgba(255,255,255,0.06);
  padding: 1px 6px;
  border-radius: 8px;
  flex-shrink: 0;
  min-width: 18px;
  text-align: center;
}
.sitrep-tr-flag {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--severity-critical);
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.25);
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.sitrep-detail {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.2s ease;
}
.sitrep-group.open .sitrep-detail {
  max-height: 1000px;
  opacity: 1;
  padding: 6px 0 2px 15px;
  overflow-y: auto;
}
.sitrep-sub-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
}
.sitrep-sub-label {
  font-family: var(--font-sans);
  font-size: 0.85em;
  font-weight: 600;
  color: #c8cad0;
}
.sitrep-sub-summary {
  font-family: var(--font-sans);
  font-size: 0.94em;
  line-height: 1.35;
  color: #6b7080;
  padding: 0 0 6px 11px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  margin-bottom: 2px;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Brief axes — collapsible */
.ip-axis {
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
}
.ip-axis-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: color 0.2s;
}
.ip-axis-header:hover { color: var(--accent); }
.ip-axis-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
}
.ip-axis-risk {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1px;
}
.ip-axis-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
}
.ip-axis-body.open {
  max-height: 80vh;
  overflow-y: auto;
  opacity: 1;
  margin-top: 6px;
}
.ip-axis-text {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Button type accents — unified minimal style */
.intel-btn-mis, .intel-btn-severity, .intel-btn-recent,
.intel-btn-changes, .intel-btn-fis, .intel-btn-conflicts,
.intel-btn-analyst {
  /* inherit base style — no individual colors */
}

/* MIS event cards */
.mis-card {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mis-card:last-child { border-bottom: none; }
.mis-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}
.mis-score {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  min-width: 28px;
}
.mis-actors {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-dim);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.mis-time {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-dim);
}
.mis-headline {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 4px;
}
.mis-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 3px;
}
.mis-tag {
  font-family: var(--font-mono);
  font-size: 8px;
  padding: 1px 5px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 3px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.mis-breakdown {
  display: flex;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--text-dim);
  opacity: 0.6;
}

/* (severity button — unified) */

/* Severity event cards (reuse mis-card layout) */
.sev-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  text-align: center;
  padding: 1px 6px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}
.sev-label-5 { background: rgba(239,68,68,0.2); color: var(--severity-critical); }
.sev-label-4 { background: rgba(249,115,22,0.2); color: var(--severity-high); }
.sev-label-3 { background: rgba(234,179,8,0.2); color: var(--severity-medium); }
.sev-label-2 { background: rgba(156,163,175,0.15); color: var(--text-dim); }
.sev-label-1 { background: rgba(156,163,175,0.1); color: var(--text-dim); }

/* (recent/changes buttons — unified) */
/* Change card styles */
.change-card {
  border: 1px solid #333;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 8px;
}
.change-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.change-icon { font-size: 1.1em; }
.change-label {
  font-size: 0.72em;
  font-weight: 600;
  text-transform: uppercase;
  color: #a78bfa;
  letter-spacing: 0.5px;
}
.change-time {
  margin-left: auto;
  font-size: 0.72em;
  color: #666;
}
.change-title {
  font-size: 0.85em;
  font-weight: 500;
  color: #ccc;
  margin-bottom: 3px;
}
.change-detail {
  font-size: 0.82em;
  color: #999;
}
/* (fis button — unified) */
/* Daily summary (top-center on globe) */
.daily-summary {
  position: absolute;
  top: 14px;
  right: 20px;
  z-index: 100;
  font-family: var(--font-sans);
  font-size: 0.72em;
  color: var(--text-secondary);
  background: rgba(15, 17, 23, 0.8);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 14px;
  backdrop-filter: blur(6px);
  display: flex;
  gap: 16px;
  align-items: center;
}
.ds-stat {
  display: flex;
  align-items: center;
  gap: 5px;
}
.ds-value {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-primary);
}
.ds-label {
  color: var(--text-secondary);
  font-size: 0.9em;
}
.ds-hot {
  color: var(--severity-critical);
  font-weight: 600;
}

/* Critical event pulse on globe */
.globe-pulse {
  pointer-events: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  animation: globe-ripple 2.5s ease-out infinite;
}
@keyframes globe-ripple {
  0% { transform: scale(1); opacity: 0.8; box-shadow: 0 0 4px currentColor; }
  50% { transform: scale(2.2); opacity: 0.3; box-shadow: 0 0 12px currentColor; }
  100% { transform: scale(3); opacity: 0; box-shadow: 0 0 0 currentColor; }
}

/* Star Wars crawl (right side of globe) */
.crawl-container {
  position: absolute;
  right: 10px;
  top: 60px;
  bottom: 160px;
  width: 300px;
  z-index: 50;
  overflow: visible;
  pointer-events: auto;
}
.crawl-container.collapsed {
  width: 20px !important;
  right: 145px;
  overflow: visible;
}
.crawl-container.collapsed .crawl-track-wrapper {
  display: none;
}
.crawl-container.collapsed .crawl-toggle {
  opacity: 0.5;
  left: -10px;
}
.crawl-container:hover .crawl-track {
  animation-play-state: paused;
}
.crawl-container:hover .crawl-track-wrapper {
  mask-image: none;
  -webkit-mask-image: none;
}
.crawl-container:hover .crawl-card {
  opacity: 0.85;
}
.crawl-toggle {
  position: absolute;
  left: -3px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 51;
  width: 28px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #4b5063;
  cursor: pointer;
  pointer-events: auto;
  border-radius: 4px 0 0 4px;
  background: rgba(10, 10, 15, 0.5);
  border: 1px solid rgba(30, 30, 48, 0.3);
  border-right: none;
  transition: color 0.2s, opacity 0.2s;
}
.crawl-toggle-label {
  display: none;
}
.crawl-container.collapsed .crawl-toggle-label {
  display: inline;
  font-size: 11px;
  letter-spacing: 3px;
  margin-right: 6px;
  color: #8b8fa3;
  font-family: var(--font-sans);
  font-weight: 500;
  white-space: nowrap;
  position: relative;
  top: 2px;
}
.crawl-container.collapsed .crawl-toggle {
  width: auto;
  padding: 0 8px;
  left: -3px;
  right: auto;
  border-radius: 4px 0 0 4px;
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.crawl-toggle:hover {
  color: #e2e4e9;
  background: rgba(10, 10, 15, 0.8);
}
.crawl-track-wrapper {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 30px;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 88%, transparent 100%);
}
.crawl-track {
  display: flex;
  flex-direction: column;
  gap: 6px;
  /* Animation controlled by JS */
}
.crawl-card {
  background: rgba(10, 10, 15, 0.3);
  border: 1px solid rgba(30, 30, 48, 0.3);
  border-radius: 4px;
  padding: 6px 10px;
  opacity: 0.40;
  transition: opacity 0.3s;
  font-family: var(--font-sans);
  height: 190px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.crawl-actors {
  font-size: 0.78em;
  color: #8b8fa3;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}
.crawl-headline-row {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin-bottom: 2px;
}
.crawl-headline {
  font-size: 0.92em;
  color: #c8cad0;
  line-height: 1.4;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.crawl-meta {
  font-size: 0.75em;
  color: #5a5e70;
  margin-top: 4px;
}
.crawl-sev {
  font-weight: 700;
  font-size: 0.85em;
}
.crawl-summary-wrap {
  flex: 1;
  overflow: hidden;
  margin-top: 4px;
}
.crawl-summary {
  font-size: 0.94em;
  color: #6b7080;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.crawl-detail-row {
  text-align: right;
  flex-shrink: 0;
  margin-top: 2px;
}
.crawl-detail-row {
  text-align: right;
  margin-top: 4px;
}
.crawl-detail {
  color: #0ea5e9;
  cursor: pointer;
  font-size: 0.8em;
  white-space: nowrap;
  opacity: 0.7;
  transition: opacity 0.2s;
  flex-shrink: 0;
}
.crawl-detail:hover {
  opacity: 1;
}

/* Globe 3D popup with hologram beam */
.globe-popup {
  position: relative;
  background: rgba(8, 8, 16, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(30, 30, 48, 0.4);
  border-radius: 8px;
  padding: 12px 16px;
  min-width: 220px;
  max-width: 280px;
  pointer-events: auto;
  cursor: default;
  font-family: var(--font-sans);
  animation: globe-popup-in 0.5s ease-out;
  z-index: 2;
}
.globe-popup-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateY(-100%);
}
.globe-beam-svg {
  width: 100%;
  height: 120px;
  pointer-events: none;
  filter: blur(1px);
}
@keyframes beam-dot-pulse {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.5); }
}
@keyframes globe-popup-in {
  from { opacity: 0; transform: translateY(-10px) scale(0.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.globe-popup-title {
  font-size: 11px;
  font-weight: 700;
  color: #e2e4e9;
  margin-bottom: 6px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(40, 40, 60, 0.5);
  letter-spacing: 0.5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.globe-popup-list {
  max-height: 200px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #1e1e30 transparent;
}

/* Globe bottom navigation */
.globe-bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 32px;
  font-family: var(--font-sans);
  border-top: 1px solid var(--border);
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(6px);
}
.globe-bottom-nav-sticky {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-primary);
  backdrop-filter: none;
  border-bottom: 1px solid var(--border);
}
.globe-top-nav {
  position: absolute;
  top: 0;
  bottom: auto;
  border-top: none;
  border-bottom: 1px solid var(--border);
}
.trisk-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding: 2px 32px;
  font-family: var(--font-sans);
  border-bottom: 1px solid var(--border);
  background: var(--bg-primary);
  overflow: visible;
  z-index: 10;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.trisk-nav.nav-hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}
.nav-logo {
  height: 96px;
  margin: -34px 0;
  position: relative;
  top: 0;
  opacity: 0.7;
  transition: opacity 0.2s;
  flex-shrink: 0;
}
.nav-tabs {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: space-evenly;
}
.nav-auth {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.nav-auth-btn {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 0.5px;
}
.nav-auth-btn:hover {
  background: var(--accent-glow);
  color: #fff;
  box-shadow: 0 0 8px var(--accent-glow);
}
/* Sıralama tab'larının altına eklenen disclaimer kutusu */
.ranking-disclaimer {
  font-size: 11px;
  color: #94a3b8;
  background: rgba(148,163,184,0.05);
  border: 1px solid rgba(148,163,184,0.12);
  border-radius: 6px;
  padding: 12px 16px;
  margin: 20px 0 8px;
  line-height: 1.55;
  font-style: italic;
}
.ranking-disclaimer strong {
  color: #cbd5e1;
  font-weight: 600;
  font-style: normal;
}
.nav-user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  position: relative;
}
.nav-user-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
}
.nav-user-name {
  font-size: 11px;
  color: #d4d4d8;
  font-weight: 500;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 6px;
  background: #1a1a2e;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 4px 0;
  min-width: 140px;
  z-index: 100;
  display: none;
}
.nav-user-dropdown.open { display: block; }
.nav-user-dropdown a {
  display: block;
  padding: 6px 14px;
  font-size: 11px;
  color: #9ca3af;
  text-decoration: none;
  cursor: pointer;
}
.nav-user-dropdown a:hover { background: rgba(255,255,255,0.05); color: #e2e4e9; }
.nav-logo:hover {
  opacity: 0.8;
}
.globe-bnav-link {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.4px;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s;
  text-align: center;
  min-width: 112px;
}
.globe-bnav-link:hover {
  color: var(--text-primary);
}
.globe-bnav-link[data-tab].active {
  color: var(--accent);
}
.globe-bnav-center {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.4px;
  cursor: pointer;
  transition: color 0.2s;
  text-align: center;
}
.globe-bnav-center:hover {
  color: var(--text-primary);
}
.globe-bnav-center.globe-bnav-active {
  color: var(--accent);
}
.globe-bnav-link.active {
  color: var(--accent) !important;
}

/* Tension barometer (reused in intel panel) */
.tw-bar {
  flex: 1;
  height: 4px;
  background: #1a1a2e;
  border-radius: 2px;
  overflow: hidden;
}
.tw-bar-fill {
  display: block;
  height: 100%;
  border-radius: 2px;
  transition: width 0.5s ease;
}
.tw-trend {
  text-align: right;
  font-size: 0.85em;
}
/* (tension button — unified) */

/* (weather button — unified, active state uses base .intel-btn.active) */
.weather-dot {
  pointer-events: none;
  animation: weather-pulse 2s ease-in-out infinite;
}
@keyframes weather-pulse {
  0%, 100% { opacity: 0.9; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* (conflicts button — unified) */
/* Conflict panel */
.conflict-group {
  border: 1px solid #333;
  border-radius: 8px;
  margin-bottom: 8px;
  overflow: hidden;
}
.conflict-group[open] { border-color: #555; }
.conflict-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  cursor: pointer;
  list-style: none;
}
.conflict-summary::-webkit-details-marker { display: none; }
.conflict-sev-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.conflict-actors {
  font-size: 0.9em;
  font-weight: 700;
  color: #e5e5e5;
  letter-spacing: 0.5px;
}
.conflict-badge {
  margin-left: auto;
  font-size: 0.7em;
  color: #888;
  white-space: nowrap;
}
.conflict-body { padding: 0 14px 10px; }
.conflict-sl {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  border-top: 1px solid #2a2a2a;
}
.conflict-sl-sev {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.conflict-sl-title {
  font-size: 0.8em;
  color: #ccc;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.conflict-sl-meta {
  font-size: 0.68em;
  color: #666;
  white-space: nowrap;
}

/* Recent event cards */
.recent-card {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.recent-card:last-child { border-bottom: none; }
.recent-card-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}
.recent-sev {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.recent-actors {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-dim);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.recent-time {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-dim);
}
.recent-mis {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  margin-left: 4px;
}
.recent-headline {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 4px;
}
.recent-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.recent-tag {
  font-family: var(--font-mono);
  font-size: 8px;
  padding: 1px 5px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 3px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* (analyst button — unified) */

/* Analyst panel cards */
.an-card {
  padding: 10px;
  margin-bottom: 8px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px;
}
.an-mod {
  border-left: 3px solid var(--accent);
}
.an-analyst {
  border-left: 3px solid #888;
}
.an-card-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 6px;
  text-transform: uppercase;
}
.an-card-text {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.an-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.an-name {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}
.an-stats {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-dim);
}
.an-field {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 4px;
}
.an-field-label {
  color: var(--text-dim);
  font-weight: 600;
}

/* ================================================================== */
/* RESPONSIVE                                                         */
/* ================================================================== */

@media (max-width: 1200px) {
  .sb-left { flex: 0 0 24%; max-width: 24%; }
  .sb-left.collapsed { flex: 0 0 0%; max-width: 0%; }
  .sb-right { flex: 0 0 76%; max-width: 76%; }
  .sb-left.collapsed ~ .sb-right { flex: 0 0 100%; max-width: 100%; }
}

@media (max-width: 900px) {
  #main-content { padding: 16px 16px 0; }
  .intel-panel { width: 300px; }
  .intel-buttons { top: 70px; left: 12px; }
  .metrics-bar { flex-wrap: wrap; gap: 8px; padding: 8px 16px; }
  .metric { padding: 4px 10px; }
  .metric-sep { display: none; }
  .actor-children { margin-left: 20px; }
  .region-children { margin-left: 14px; }
  .sb-split { flex-direction: column; }
  .sb-left { flex: none; max-width: 100%; border-right: none; padding-right: 0; border-bottom: 1px solid var(--border); padding-bottom: 20px; }
  .sb-right { flex: none; max-width: 100%; position: static; height: auto; padding-left: 0; padding-top: 20px; }
  .country-panel { width: 100%; }
  .hero-ticker { bottom: 70px; }
  .event-ticker { width: 95%; }
  .lf-grid { grid-template-columns: 1fr; }
  #tab-lf { padding: 0 16px; }
}

/* ================================================================== */
/* LIVE FEED — Event Ticker (Globe Hero)                              */
/* ================================================================== */

.hero-ticker {
  bottom: 80px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.event-ticker {
  width: 90%;
  max-width: 1200px;
  overflow: hidden;
  background: rgba(10, 10, 15, 0.7);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  border-radius: 3px;
  height: 36px;
  pointer-events: auto;
}

.ticker-track {
  display: flex;
  gap: 40px;
  /* Animation controlled by JS — no CSS animation */
  white-space: nowrap;
  padding: 0 20px;
  align-items: center;
  height: 100%;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.ticker-sev {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ticker-sev.critical { background: var(--severity-critical); box-shadow: 0 0 4px rgba(255,32,32,0.5); }
.ticker-sev.high { background: var(--severity-high); }
.ticker-sev.medium { background: var(--severity-medium); }

.ticker-text {
  color: var(--text-secondary);
  font-size: 13px;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.ticker-time {
  color: var(--text-dim);
  font-size: 11px;
}

/* Ticker interaction — scroll controlled by JS */
.event-ticker { cursor: ns-resize; }

/* MIS score in ticker (small inline badge) */
.ticker-mis {
  color: var(--severity-high);
  font-size: 10px;
  font-weight: 600;
  opacity: 0.7;
}

/* MIS group badge (prefixed label) */
.ticker-mis-badge {
  color: #3b82f6;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  background: rgba(59, 130, 246, 0.15);
  padding: 1px 6px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* ================================================================== */
/* LIVE FEED — Section (between Globe and Situation Board)            */
/* ================================================================== */

/* #live-feed merged into #tab-lf inside #main-content */

.lf-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.lf-select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d4d4d8;
  font-size: 11px;
  font-family: inherit;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  min-width: 120px;
}
.lf-select:focus {
  border-color: rgba(96, 165, 250, 0.5);
  outline: none;
}

.lf-container {
  min-height: 80px;
}

.lf-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.lf-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 10px 14px;
  transition: all 0.2s;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}
.lf-card:hover {
  border-color: rgba(96, 165, 250, 0.4);
  background: rgba(96, 165, 250, 0.04);
}
.lf-expanded {
  border-color: rgba(96, 165, 250, 0.5);
  background: rgba(96, 165, 250, 0.06);
  overflow: visible;
}
/* Expanded: fix tag auto-margin so detail sections align across cards in same grid row */
.lf-expanded .lf-card-tags {
  margin-top: 6px;
  min-height: 28px;
}
.lf-expanded .lf-headline {
  min-height: 46px;
  max-height: 46px;
  overflow: hidden;
}

.lf-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.lf-actors {
  color: #60a5fa;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
}

.lf-mis {
  font-size: 9px;
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.12);
  padding: 1px 6px;
  border-radius: 3px;
  position: absolute;
  top: 10px;
  right: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.lf-sources {
  font-size: 9px;
  color: #9ca3af;
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: auto;
  letter-spacing: 0.3px;
}

.lf-time {
  font-size: 9px;
  color: #6b7280;
  margin-left: 8px;
  font-family: var(--font-mono, monospace);
}

.lf-card-body {
  margin-top: 4px;
}

.lf-action {
  color: #d4d4d8;
  font-size: 10px;
}

.lf-headline {
  color: #f1f5f9;
  font-size: 11.5px;
  line-height: 1.45;
  min-height: 46px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lf-card-tags {
  margin-top: auto;
  padding-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-bottom: 2px;
}

.lf-card-classify {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 3px 0 2px 0;
}

.lf-kw {
  font-size: 9px;
  color: #9ca3af;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1px 6px;
  border-radius: 3px;
  letter-spacing: 0.3px;
}

.lf-domain {
  font-size: 9px;
  color: #9ca3af;
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lf-empty {
  color: var(--text-dim);
  text-align: center;
  padding: 40px;
  font-size: 11px;
  letter-spacing: 2px;
}

/* Source type icons (header badges) */
.lf-src {
  font-size: 10px;
}

/* Expand-on-click detail panel */
.lf-detail {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.lf-detail-section {
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.lf-detail-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.lf-detail-label {
  font-size: 9px;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 4px;
  font-weight: 600;
}
.lf-detail-text {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.lf-detail-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.lf-plover-tag {
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 3px;
  background: rgba(100, 200, 255, 0.1);
  color: #7ec8e3;
  border: 1px solid rgba(100, 200, 255, 0.15);
  letter-spacing: 0.3px;
}
.lf-source-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 4px;
}
.lf-source-icon {
  font-size: 11px;
  flex-shrink: 0;
}
.lf-source-id {
  font-size: 9px;
  color: var(--text-dim);
  font-weight: 600;
  min-width: 80px;
  flex-shrink: 0;
}
.lf-source-text {
  font-size: 10px;
  color: var(--text-dim);
  line-height: 1.3;
  opacity: 0.7;
}

/* ===== PLOVER badge system ===== */
.lf-plv-badge {
  font-size: 8px;
  padding: 1px 5px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  white-space: nowrap;
}

/* Event Type — escalation gradient */
.plv-critical { background: rgba(255, 60, 60, 0.18); color: #ff5252; border: 1px solid rgba(255, 60, 60, 0.25); }
.plv-high { background: rgba(255, 150, 50, 0.15); color: #ffa040; border: 1px solid rgba(255, 150, 50, 0.2); }
.plv-medium { background: rgba(255, 220, 50, 0.12); color: #e0c040; border: 1px solid rgba(255, 220, 50, 0.18); }
.plv-neutral { background: rgba(80, 160, 255, 0.12); color: #60a0ff; border: 1px solid rgba(80, 160, 255, 0.18); }
.plv-positive { background: rgba(60, 200, 120, 0.12); color: #40c870; border: 1px solid rgba(60, 200, 120, 0.18); }
.plv-deesc { background: rgba(160, 100, 220, 0.12); color: #b080e0; border: 1px solid rgba(160, 100, 220, 0.18); }

/* Event Mode */
.plv-mode-force { background: rgba(255, 60, 60, 0.12); color: #ff5252; border: 1px solid rgba(255, 60, 60, 0.18); }
.plv-mode-diplo { background: rgba(80, 160, 255, 0.12); color: #60a0ff; border: 1px solid rgba(80, 160, 255, 0.18); }
.plv-mode-econ { background: rgba(60, 200, 120, 0.12); color: #40c870; border: 1px solid rgba(60, 200, 120, 0.18); }
.plv-mode-legal { background: rgba(160, 100, 220, 0.12); color: #b080e0; border: 1px solid rgba(160, 100, 220, 0.18); }
.plv-mode-info { background: rgba(160, 160, 160, 0.1); color: #a0a0a0; border: 1px solid rgba(160, 160, 160, 0.15); }

/* Event Context */
.plv-ctx-mil { background: rgba(255, 60, 60, 0.1); color: #ff5252; border: 1px solid rgba(255, 60, 60, 0.15); }
.plv-ctx-elec { background: rgba(255, 150, 50, 0.1); color: #ffa040; border: 1px solid rgba(255, 150, 50, 0.15); }
.plv-ctx-hum { background: rgba(60, 200, 120, 0.1); color: #40c870; border: 1px solid rgba(60, 200, 120, 0.15); }
.plv-ctx-terr { background: rgba(160, 120, 80, 0.12); color: #c0a060; border: 1px solid rgba(160, 120, 80, 0.18); }
.plv-ctx-res { background: rgba(220, 180, 50, 0.12); color: #d0b040; border: 1px solid rgba(220, 180, 50, 0.18); }
.plv-ctx-gov { background: rgba(80, 160, 255, 0.1); color: #60a0ff; border: 1px solid rgba(80, 160, 255, 0.15); }
.plv-ctx-terror { background: rgba(200, 50, 50, 0.15); color: #e04040; border: 1px solid rgba(200, 50, 50, 0.2); }
.plv-ctx-internal { background: rgba(180, 140, 200, 0.12); color: #b080d0; border: 1px solid rgba(180, 140, 200, 0.18); }
.plv-ctx-cultural { background: rgba(160, 180, 200, 0.1); color: #90b0c8; border: 1px solid rgba(160, 180, 200, 0.15); }
.plv-ctx-other { background: rgba(120, 120, 120, 0.1); color: #909090; border: 1px solid rgba(120, 120, 120, 0.15); }
.plv-ctx-migration { background: rgba(200, 160, 60, 0.12); color: #c8a040; border: 1px solid rgba(200, 160, 60, 0.18); }

/* Sector badge (S117 — replaces PLOVER badges) */
.lf-sector-badge {
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  white-space: nowrap;
}
.lf-commodity-badge {
  font-size: 8px;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(100,100,100,0.1);
  color: #999;
  border: 1px solid rgba(100,100,100,0.15);
  white-space: nowrap;
  margin-left: 4px;
}

/* Event Tag chips */
.lf-tag {
  font-size: 9px;
  color: #7ec8e3;
  background: rgba(100, 200, 255, 0.08);
  border: 1px solid rgba(100, 200, 255, 0.12);
  padding: 2px 8px;
  border-radius: 3px;
  letter-spacing: 0.3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  width: 100%;
  box-sizing: border-box;
}

/* Storyline tags — same layout as .lf-tag, only color differs */
.sl-tag {
  font-size: 9px;
  padding: 2px 8px;
  border-radius: 3px;
  border: 1px solid;
  letter-spacing: 0.3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  width: 100%;
  box-sizing: border-box;
  cursor: pointer;
  transition: opacity 0.15s;
}
.sl-tag:hover { opacity: 0.8; }
.sl-critical { color: #ff6666; background: rgba(255,50,50,0.08); border-color: rgba(255,50,50,0.1); }
.sl-high     { color: #ffaa44; background: rgba(255,140,0,0.08); border-color: rgba(255,140,0,0.1); }
.sl-medium   { color: #e6d200; background: rgba(230,194,0,0.08); border-color: rgba(230,194,0,0.1); }
.sl-low      { color: #44cc77; background: rgba(0,180,80,0.08); border-color: rgba(0,180,80,0.1); }

/* Source category badges */
.lf-src-cat {
  font-size: 9px;
  color: var(--text-dim);
}

.lf-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  padding: 8px 0;
}
.lf-page-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 6px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 11px;
  font-family: inherit;
  transition: background 0.2s, border-color 0.2s;
}
.lf-page-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-dim);
}
.lf-page-btn:disabled {
  opacity: 0.3;
  cursor: default;
}
.lf-page-info {
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

/* View controls: column selector + expand toggle */
.lf-view-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}
.lf-col-btn {
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #9ca3af;
  border-radius: 3px;
  cursor: pointer;
  font-size: 10px;
  font-family: inherit;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.lf-col-btn:hover {
  background: rgba(96, 165, 250, 0.08);
  border-color: rgba(96, 165, 250, 0.3);
  color: #d4d4d8;
}
.lf-col-btn.lf-col-active {
  background: rgba(96, 165, 250, 0.15);
  border-color: rgba(96, 165, 250, 0.5);
  color: #60a5fa;
}
.lf-expand-btn {
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #9ca3af;
  border-radius: 3px;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
  transition: all 0.15s;
}
.lf-expand-btn:hover {
  background: rgba(96, 165, 250, 0.08);
  border-color: rgba(96, 165, 250, 0.3);
  color: #d4d4d8;
}
.lf-expand-btn.lf-expand-active {
  background: rgba(96, 165, 250, 0.15);
  border-color: rgba(96, 165, 250, 0.5);
  color: #60a5fa;
}

/* Detail panel — PLOVER row + MIS breakdown + sources */
.lf-detail-plover {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.lf-detail-mis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px 8px;
  font-size: 10px;
  color: var(--text-dim);
}
.lf-detail-mis span {
  white-space: nowrap;
}
.lf-detail-src-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}
.lf-detail-src {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  padding: 2px 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 3px;
}
.lf-src-type {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}
.lf-src-country {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 600;
  color: #f59e0b;
  letter-spacing: 0.5px;
}
.lf-src-channel {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-secondary);
}

/* ================================================================== */
/* SCROLL HINT TABS                                                    */
/* ================================================================== */

.scroll-tabs {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.scroll-tab-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: color 0.25s;
}

.scroll-tab-group .scroll-tab {
  color: var(--text-dim);
  font-size: 9px;
  letter-spacing: 3px;
  transition: color 0.25s;
}

.scroll-tab-group .scroll-arrow {
  margin-top: 4px;
  opacity: 0.3;
  transition: opacity 0.25s;
}

.scroll-tab-group:hover .scroll-tab {
  color: var(--accent);
}

.scroll-tab-group:hover .scroll-arrow {
  opacity: 0.7;
}

.scroll-tab-group.scroll-tab-active .scroll-tab {
  color: var(--accent);
}

.scroll-tab-group.scroll-tab-active .scroll-arrow {
  opacity: 1;
}

.scroll-tab-sep {
  color: var(--text-dim);
  font-size: 9px;
  letter-spacing: 2px;
  opacity: 0.4;
  margin-top: 2px;
}

/* ================================================================== */
/* SECTION HEADER TABS                                                 */
/* ================================================================== */

.section-tabs {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  white-space: nowrap;
}

.section-tab {
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 4px;
  cursor: pointer;
  transition: color 0.25s;
  display: flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.section-tab-globe {
  flex-direction: column;
  gap: 2px;
}

.globe-arrow {
  width: 10px; height: 10px;
  border-right: 2px solid var(--accent-dim);
  border-bottom: 2px solid var(--accent-dim);
  transform: rotate(225deg);
  transition: border-color 0.25s;
}

.section-tab-globe:hover .globe-arrow {
  border-color: var(--accent);
}

.section-tab:hover {
  color: var(--accent-dim);
}

.section-tab.section-tab-active {
  color: var(--accent);
}

.section-tab-sep {
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 2px;
  opacity: 0.3;
}

/* Main content section (replaces separate situation-board + live-feed) */
#main-content {
  height: 100vh;
  padding: 0;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* Tab panels */
.main-tab-panel {
  animation: ctx-fade-in 0.3s ease;
  flex: 1;
  min-height: 0;
}
#tab-compare, #tab-rank, #tab-fin, #tab-pp, #tab-models {
  overflow-y: auto;
}

#tab-fin {
  overflow-y: auto;
}

/* News feed tab uses full width */
#tab-lf {
  max-width: 1400px;
  margin: 0 auto;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #1e1e30 transparent;
}

/* ================================================================== */
/* ACTOR SUMMARY IN CONTEXT PANEL                                      */
/* ================================================================== */

.ctx-actor-llm-summary {
  color: var(--text-primary);
  padding: 10px 14px;
  background: var(--bg-secondary);
  border-left: 3px solid var(--accent-dim);
  border-radius: 0 4px 4px 0;
  font-size: 12px;
  line-height: 1.8;
  white-space: pre-line;
}

/* ================================================================== */
/* COLLAPSIBLE CLUSTER ITEMS (SON GELİŞMELER)                         */
/* ================================================================== */

.ctx-cluster-item {
  padding: 5px 0;
  border-bottom: 1px solid rgba(30, 30, 48, 0.4);
}

.ctx-cluster-item:last-child {
  border-bottom: none;
}

.ctx-cluster-header {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ctx-cluster-label {
  flex: 1;
  font-size: 10px;
  color: var(--text-primary);
  line-height: 1.4;
}

.ctx-cluster-time {
  font-size: 9px;
  color: var(--text-dim);
  white-space: nowrap;
  flex-shrink: 0;
}

.ctx-cluster-expand {
  padding: 6px 0;
  font-size: 10px;
  color: var(--accent-dim);
  cursor: pointer;
  text-align: center;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}
.ctx-cluster-expand:hover {
  color: var(--accent);
}

/* Node click pulse */
@keyframes node-pulse {
  0%   { transform: scale(1); box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.4); }
  50%  { transform: scale(1.03); box-shadow: 0 0 6px 2px rgba(234, 179, 8, 0.15); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(234, 179, 8, 0); }
}
.cp-sl-item.cp-expandable:active {
  animation: node-pulse 250ms ease-out;
}

/* World Clocks */
.wc-wrap {
  position: absolute;
  bottom: 88px;
  left: 16px;
  z-index: 10;
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.wc-toggle {
  background: none;
  border: 1px solid #333;
  border-radius: 4px;
  color: #555;
  font-size: 17px;
  padding: 4px 6px;
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 0.2s;
  line-height: 1;
}
.wc-toggle { opacity: 0.6; }
.wc-toggle:hover { opacity: 0.9; }
.world-clocks {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 2px 14px;
  font-family: 'JetBrains Mono', monospace;
  opacity: 0.6;
  transition: opacity 0.3s;
}
.world-clocks.wc-hidden { display: none; }
.wc-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}
.wc-city {
  color: #666;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.wc-time {
  color: #888;
  font-size: 11px;
  font-weight: 400;
}

/* ================================================================== */
/* GLOBE HTML POPUP OVERLAY                                            */
/* ================================================================== */
.gp-wrap {
  position: fixed;
  pointer-events: none;
  z-index: 900;
  will-change: transform, left, top;
  transform-origin: 50% 0%;
}
.gp-panel {
  pointer-events: auto;
  width: 480px;
  margin-left: -240px;
  background: rgba(8, 8, 16, 0.65);
  border: 1.5px solid;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 4px 30px rgba(0,0,0,0.5), 0 0 20px rgba(0,0,0,0.3);
}
.gp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 8px 3px;
}
.gp-name { font-weight: 700; font-size: 9px; color: #e2e4e9; letter-spacing: 0.3px; }
.gp-close {
  font-size: 15px; color: #666; cursor: pointer; pointer-events: auto;
  line-height: 1; padding: 0 2px; transition: color 0.15s;
}
.gp-close:hover { color: #fff; }
.gp-divider { height: 1px; background: #1e1e3040; margin: 0 8px 2px; }

/* KG Profile in popup */
.gp-kg-profile { padding: 6px 12px 4px; }
.gp-kg-row { font-size: 10px; color: #a1a1aa; line-height: 1.7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gp-kg-cat { margin-right: 4px; }
.gp-kg-rank { display: inline-block; background: rgba(14,165,233,0.2); color: #38bdf8; font-size: 9px; font-weight: 700; padding: 0 3px; border-radius: 3px; margin: 0 1px; }
.gp-kg-share { color: #71717a; font-size: 9px; }
.gp-section-title { font-size: 9px; font-weight: 700; letter-spacing: 1px; color: #52525b; text-transform: uppercase; padding: 2px 12px 4px; }
.gp-list-flex {
  padding: 1px 0 3px; max-height: 420px; overflow-y: auto;
  display: flex; gap: 6px;
}
.gp-col {
  flex: 1; min-width: 0;
}
.gp-group-header {
  font-size: 7px;
  font-weight: 600;
  color: #5a5e70;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 8px 1px;
  border-bottom: 1px solid rgba(30,30,48,0.3);
  margin-bottom: 1px;
}
.gp-sl {
  display: flex; align-items: center; gap: 5px;
  padding: 2px 8px; cursor: pointer;
  transition: all 0.15s ease;
  border-left: 2px solid transparent;
}
.gp-sl:hover {
  background: rgba(255, 140, 0, 0.12);
  border-left-color: #0ea5e9;
}
.gp-sl:hover .gp-sl-title { color: #fff; }
.gp-sl:hover .gp-dot {
  transform: scale(1.4);
  filter: brightness(1.5) drop-shadow(0 0 4px);
}
.gp-sl-active {
  background: rgba(255, 140, 0, 0.18) !important;
  border-left-color: #0ea5e9 !important;
}
.gp-sl-active .gp-sl-title { color: #fff !important; }
.gp-dot {
  width: 4px; height: 4px; border-radius: 50%;
  flex-shrink: 0; transition: all 0.15s ease;
}
.gp-sl-title {
  flex: 1; font-size: 8px; color: #c8cad0;
  line-height: 1.25; transition: color 0.15s ease;
}
.gp-sev {
  font-family: 'JetBrains Mono', monospace;
  font-size: 7px; font-weight: 600;
  flex-shrink: 0; letter-spacing: 0.5px;
}
/* YENİ tag — title sonrası küçük italic yazı */
.gp-new-tag, .cp-new-tag {
  font-size: 6px; font-style: normal; font-weight: 600;
  color: #22c55e;
  margin-left: 5px;
  letter-spacing: 0.5px;
  text-shadow: 0 0 6px rgba(34, 197, 94, 0.4);
  animation: new-glow 2.5s ease-in-out infinite;
}
.cp-new-tag { font-size: 9px; font-style: normal; }
@keyframes new-glow {
  0%, 100% { opacity: 0.8; text-shadow: 0 0 6px rgba(34,197,94,0.4); }
  50% { opacity: 1; text-shadow: 0 0 10px rgba(34,197,94,0.7); }
}
/* Detail button — globe popup SL item */
.gp-detail-btn {
  font-size: 9px; color: #4a4a6a; cursor: pointer;
  margin-left: 4px; flex-shrink: 0;
  transition: color 0.15s;
}
.gp-detail-btn:hover { color: #0ea5e9; }
.gp-beam {
  width: 100%; height: 80px; pointer-events: none;
  clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
  background: var(--beam-color, rgba(230,194,0,0.09));
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1), transparent);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1), transparent);
}

/* ================================================================== */
/* SECTOR TREE (Commodity Pivot)                                      */
/* ================================================================== */

/* Toggle buttons */
.sb-view-toggle {
  display: flex; padding: 6px; gap: 4px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sb-view-btn {
  flex: 1; padding: 6px 0; border: none; border-radius: 6px;
  background: transparent; color: #71717a; font-size: 12px; font-weight: 500;
  cursor: pointer; transition: all 0.15s ease; font-family: inherit;
}
.sb-view-btn:hover { color: #a1a1aa; background: rgba(255,255,255,0.04); }
.sb-view-btn.active { color: #e4e4e7; background: rgba(255,255,255,0.08); }

/* Sector/Commodity items */
.sector-item {
  display: flex; align-items: center; padding: 10px 14px;
  cursor: pointer; border-left: 3px solid transparent;
  transition: all 0.15s ease;
}
.sector-item:hover { background: rgba(255,255,255,0.05); }
.sector-item.active {
  background: rgba(255,255,255,0.08);
  border-left-color: var(--sector-color, #888);
}
.sector-item.empty { opacity: 0.3; cursor: default; }
.sector-dot { width: 10px; height: 10px; border-radius: 50%; margin-right: 10px; flex-shrink: 0; }
.sector-dot-lg { display: inline-block; width: 14px; height: 14px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.sector-label { flex: 1; font-size: 13px; color: #d4d4d8; }
.sector-badge {
  background: rgba(255,255,255,0.08); padding: 2px 8px; border-radius: 10px;
  font-size: 11px; color: #a1a1aa; min-width: 20px; text-align: center;
}
.sector-item.active .sector-label { color: #fff; }
.sector-item.active .sector-badge { color: #fff; background: rgba(255,255,255,0.15); }

/* Sector SL list in right panel */
.sector-sl-list { display: flex; flex-direction: column; gap: 8px; }
.sector-sl-item {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px; padding: 10px 12px; cursor: pointer;
  transition: all 0.15s ease;
}
.sector-sl-item:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); }
.sector-sl-header { display: flex; align-items: center; gap: 8px; }
.sector-sl-title { flex: 1; font-size: 13px; color: #e4e4e7; font-weight: 500; }
.sector-sl-meta { font-size: 11px; color: #71717a; margin-top: 4px; padding-left: 18px; }
.sector-sl-meta span { margin-right: 4px; }
.sector-sl-summary { font-size: 11px; color: #a1a1aa; margin-top: 6px; padding-left: 18px; line-height: 1.4; }
.ctx-empty { color: #71717a; font-size: 13px; padding: 20px 0; text-align: center; }

/* ================================================================== */
/* FİRMA ANALİZİ — VALUE CHAIN FLOW                                    */
/* ================================================================== */

.ci-header { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; color: #71717a; padding: 14px 16px 10px; text-transform: uppercase; border-bottom: 1px solid rgba(255,255,255,0.06); }

/* ================================================================== */
/* PIPELINE MONITOR PAGE                                               */
/* ================================================================== */

#tab-pp { overflow-y: auto; }
.pp-page { max-width: 1200px; margin: 0 auto; padding: 24px 32px 80px; }
.pp-header { margin-bottom: 20px; }
.pp-title { font-size: 22px; font-weight: 700; color: #f4f4f5; margin: 0; }
.pp-subtitle { font-size: 12px; color: #71717a; margin-top: 4px; }

/* KPI Row */
.pp-kpi-row { display: flex; gap: 0; margin-bottom: 20px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; overflow: hidden; }
.pp-kpi { flex: 1; text-align: center; padding: 16px 12px; border-right: 1px solid rgba(255,255,255,0.04); }
.pp-kpi:last-child { border-right: none; }
.pp-kpi-val { font-size: 24px; font-weight: 700; color: #e4e4e7; font-family: var(--font-mono, monospace); }
.pp-kpi-lbl { font-size: 10px; color: #71717a; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 4px; }

/* Grid */
.pp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }

/* Cards */
.pp-card { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; overflow: hidden; }
.pp-card.pp-full { grid-column: 1 / -1; }
.pp-card-title { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; color: #71717a; text-transform: uppercase; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.04); }
.pp-card-body { padding: 12px 16px; }
.pp-empty { color: #52525b; font-size: 12px; text-align: center; padding: 20px 0; }

/* Bar Rows */
.pp-bar-row { display: flex; align-items: center; gap: 10px; padding: 5px 0; }
.pp-bar-label { font-size: 11px; color: #a1a1aa; width: 120px; text-align: right; flex-shrink: 0; }
.pp-bar-wrap { flex: 1; height: 18px; background: rgba(255,255,255,0.04); border-radius: 4px; overflow: hidden; }
.pp-bar-fill { height: 100%; border-radius: 4px; transition: width 0.3s; min-width: 4px; }
.pp-bar-count { font-size: 12px; font-weight: 700; color: #e4e4e7; width: 30px; text-align: right; font-family: var(--font-mono, monospace); }

/* Events Table */
.pp-events-tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
.pp-events-tbl thead { border-bottom: 1px solid rgba(255,255,255,0.08); }
.pp-events-tbl th { font-size: 10px; color: #71717a; text-transform: uppercase; letter-spacing: 0.5px; padding: 6px 8px; text-align: left; font-weight: 600; }
.pp-events-tbl td { padding: 7px 8px; border-bottom: 1px solid rgba(255,255,255,0.03); color: #d4d4d8; }
.pp-ev-time { font-size: 10px; color: #71717a; white-space: nowrap; font-family: var(--font-mono, monospace); }
.pp-ev-commodity { background: rgba(255,255,255,0.06); padding: 2px 6px; border-radius: 4px; font-size: 11px; font-weight: 600; }
.pp-ev-src { font-size: 11px; color: #71717a; }
.pp-ev-headline { font-size: 11px; color: #a1a1aa; max-width: 350px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-mag { display: inline-block; padding: 1px 5px; border-radius: 3px; font-size: 9px; font-weight: 700; letter-spacing: 0.3px; }
.pp-mag-major { background: rgba(239,68,68,0.15); color: #ef4444; }
.pp-mag-mod { background: rgba(234,179,8,0.15); color: #eab308; }
.pp-mag-minor { background: rgba(34,197,94,0.15); color: #22c55e; }
.pp-sl-new { display: inline-block; padding: 1px 5px; border-radius: 3px; font-size: 9px; font-weight: 700; background: rgba(14,165,233,0.15); color: #0ea5e9; }
.pp-sl-upd { display: inline-block; padding: 1px 5px; border-radius: 3px; font-size: 9px; font-weight: 700; background: rgba(113,113,122,0.15); color: #a1a1aa; }

/* ================================================================== */
/* WEEKLY REPORT PAGE                                                  */
/* ================================================================== */

.rp-header { padding: 0 0 16px; }
.rp-title { font-size: 24px; font-weight: 700; color: #f4f4f5; margin: 0; }
.rp-period { font-size: 12px; color: #71717a; margin-top: 4px; }

.rp-card { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; margin-bottom: 16px; overflow: hidden; }
.rp-card-title { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; color: #71717a; text-transform: uppercase; padding: 12px 20px; border-bottom: 1px solid rgba(255,255,255,0.04); }
.rp-card-body { padding: 16px 20px; }
.rp-summary { font-size: 14px; color: #d4d4d8; line-height: 1.8; }
.rp-summary p { margin: 0 0 12px; }

.rp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Commodity rows */
.rp-commodity-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,0.03); }
.rp-com-name { font-size: 12px; color: #d4d4d8; font-weight: 600; flex: 1; }
.rp-com-count { font-size: 12px; color: #71717a; font-family: var(--font-mono, monospace); width: 30px; text-align: right; }

/* Company impact rows */
.rp-impact-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.03); }
.rp-imp-ticker { font-size: 13px; font-weight: 700; color: #e4e4e7; font-family: var(--font-mono, monospace); width: 60px; }
.rp-imp-change { font-size: 12px; font-weight: 600; font-family: var(--font-mono, monospace); flex: 1; }
.rp-imp-badge { display: inline-block; padding: 2px 6px; border-radius: 4px; font-size: 9px; font-weight: 700; letter-spacing: 0.3px; }

/* Crop weather cards */
.rp-crop-card { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06); border-radius: 8px; padding: 10px 14px; margin-bottom: 8px; }
.rp-crop-header { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.rp-crop-name { font-size: 13px; font-weight: 700; color: #e4e4e7; flex: 1; }
.rp-crop-country { font-size: 11px; color: #a1a1aa; }
.rp-crop-detail { font-size: 11px; color: #71717a; line-height: 1.5; }
.rp-crop-importers { font-size: 10px; color: #52525b; margin-top: 4px; }

/* Energy weather rows */
.rp-weather-row { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.rp-wx-loc { font-size: 12px; color: #d4d4d8; flex: 1; }
.rp-wx-type { font-size: 11px; color: #a1a1aa; }
.rp-wx-detail { font-size: 10px; color: #52525b; padding: 0 0 6px 68px; line-height: 1.4; }

/* Company Cards (left panel) */
.ci-card { padding: 10px 4px 10px 4px; border-bottom: 1px solid rgba(255,255,255,0.06); cursor: pointer; transition: background 0.15s; border-left: 3px solid transparent; }
.ci-card:hover { background: rgba(255,255,255,0.04); }
.ci-card.active { background: rgba(14,165,233,0.08); border-left-color: var(--accent, #0ea5e9); }
.ci-card-top { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 1px; }
.ci-card-ticker { font-size: 14px; font-weight: 700; color: #e4e4e7; font-family: var(--font-mono, 'JetBrains Mono', monospace); line-height: 1.2; flex-shrink: 0; }
.ci-card-name { font-size: 11px; color: #a1a1aa; line-height: 1.4; padding-top: 2px; }
.ci-card-sector { font-size: 10px; color: #71717a; }
.ci-card-dev { border-left-color: rgba(139,92,246,0.3); background: rgba(139,92,246,0.03); }
.ci-card-dev:hover { background: rgba(139,92,246,0.06); }
.ci-card-dev.active { background: rgba(139,92,246,0.1); border-left-color: #8b5cf6; }
.ci-card-dev .ci-card-ticker { color: #a78bfa; }
.ci-card-dev-badge {
  font-size: 8px; font-weight: 700; color: #8b5cf6;
  background: rgba(139,92,246,0.15); border: 1px solid rgba(139,92,246,0.3);
  padding: 0 5px; border-radius: 3px; letter-spacing: 0.5px;
}

/* Value Chain Header */
.vc-header { padding: 16px 24px 20px; }
.vc-title { font-size: 20px; font-weight: 700; color: #f4f4f5; letter-spacing: -0.3px; }
.vc-subtitle { font-size: 12px; color: #71717a; margin-top: 3px; }
.vc-desc { font-size: 11px; color: #9ca3af; margin-top: 4px; line-height: 1.4; }
.vc-header-grid3 { display: flex; gap: 16px; align-items: start; }
.vc-header-col1 { flex: 1; min-width: 0; }
.vc-header-col-mid { flex: 1; min-width: 0; padding-top: 4px; border-left: 1px solid rgba(255,255,255,0.06); padding-left: 14px; }
.vc-header-col2 { flex: 1.5; min-width: 0; padding-top: 2px; border-left: 1px solid rgba(255,255,255,0.06); padding-left: 14px; }
.vc-meta-line { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.vc-meta-label { font-size: 9px; color: #52525b; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; margin-bottom: 4px; }
.vc-sub-item { display: flex; align-items: baseline; gap: 5px; padding: 3px 0; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: default; }
.vc-sub-item:last-child { border-bottom: none; }
.vc-sub-name { color: #d1d5db; font-weight: 600; flex-shrink: 0; }
.vc-sub-pct { color: #60a5fa; font-size: 10px; font-weight: 700; flex-shrink: 0; }
.vc-sub-act { color: #6b7280; font-size: 8px; font-style: italic; overflow: hidden; text-overflow: ellipsis; }
.vc-sub-rem { color: #9ca3af; font-size: 9px; }

/* ─── Borç Yapısı & Trendler ─── */
.debt-top-row {
  display: flex;
  gap: 6px;
  align-items: stretch;
  margin-bottom: 10px;
}
.debt-cards {
  display: flex;
  gap: 6px;
  flex: 1;
}
.debt-card {
  flex: 1;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 5px;
  padding: 6px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.debt-card-main {
  border-width: 1.5px;
}
.debt-card-label {
  font-size: 9px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 1px;
  font-weight: 600;
}
.debt-card-val {
  font-size: 14px;
  font-weight: 700;
  color: #e5e7eb;
  font-family: var(--font-mono, monospace);
}
.debt-donut-section {
  background: rgba(0,0,0,0.12);
  border-radius: 6px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  flex-shrink: 0;
}
.debt-donut-title {
  font-size: 9px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-weight: 600;
  margin-bottom: 6px;
}
.debt-donut-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.debt-donut-legend { display: flex; flex-direction: column; gap: 3px; }
.debt-chart-wrap {
  height: 200px;
  background: rgba(0,0,0,0.12);
  border-radius: 8px;
  padding: 8px;
}
/* İştirak listesi */
.sub-group-label { font-size: 9px; color: #52525b; text-transform: uppercase; letter-spacing: 0.4px; font-weight: 600; margin-top: 6px; margin-bottom: 3px; }
.sub-group-label:first-child { margin-top: 0; }
.sub-list-item { display: flex; align-items: baseline; gap: 6px; padding: 2px 0; font-size: 10px; border-bottom: 1px solid rgba(255,255,255,0.03); }
.sub-list-item:last-child { border-bottom: none; }
.sub-list-name { color: #d1d5db; font-weight: 600; }
.sub-list-pct { color: #60a5fa; font-weight: 700; font-size: 9px; min-width: 24px; }
.sub-list-act { color: #6b7280; font-size: 9px; font-style: italic; }
.vc-pie-row { display: flex; align-items: center; gap: 10px; }
.vc-pie-legend { display: flex; flex-direction: column; gap: 2px; }
.vc-pie-leg { display: flex; align-items: baseline; gap: 5px; font-size: 10px; }
.vc-pie-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; position: relative; top: -1px; }
.vc-pie-lbl { color: #d1d5db; }
.vc-pie-pct { color: #9ca3af; font-weight: 700; font-family: var(--font-mono, monospace); flex-shrink: 0; white-space: nowrap; }
.vc-own-tag { font-size: 10px; color: #d1d5db; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: 4px; padding: 1px 6px; }
.vc-own-float { color: #60a5fa; border-color: rgba(96,165,250,0.2); background: rgba(96,165,250,0.08); }
.vc-sub-tag { font-size: 10px; color: #a1a1aa; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 4px; padding: 1px 6px; cursor: help; }

/* KPI Strip */
.vc-kpi-strip { display: flex; gap: 0; padding: 0 24px 16px; border-bottom: 1px solid rgba(255,255,255,0.06); overflow: visible; }
.vc-kpi { flex: 1; text-align: center; padding: 10px 8px; border-right: 1px solid rgba(255,255,255,0.04); min-width: 90px; position: relative; }
.vc-kpi:hover { background: rgba(255,255,255,0.03); }
.vc-kpi[data-tip]:hover::after {
  content: attr(data-tip);
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  background: #1a1a2e;
  color: #a1a1aa;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 11px;
  line-height: 1.5;
  white-space: normal;
  width: 220px;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.vc-kpi[data-tip]:hover { cursor: default; }
.vc-kpi:last-child { border-right: none; }
.vc-kpi-val { display: block; font-size: 18px; font-weight: 700; color: #e4e4e7; font-family: var(--font-mono, monospace); }
.vc-kpi-lbl { display: block; font-size: 9px; color: #71717a; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }

/* S119 Part 3: Quarterly metric panels (3-column chart layout) */
.vc-quarterly-panels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0 24px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.vc-qp-panel {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  min-height: 130px;
}
.vc-qp-header {
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.vc-qp-toggle {
  display: flex;
  flex-shrink: 0;
}
.vc-qp-toggle-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #6b7280;
  font-size: 8px;
  font-weight: 700;
  padding: 2px 6px;
  cursor: pointer;
  transition: all 0.15s;
}
.vc-qp-toggle-btn:first-child { border-radius: 4px 0 0 4px; }
.vc-qp-toggle-btn:last-child { border-radius: 0 4px 4px 0; border-left: none; }
.vc-qp-toggle-btn.active {
  background: rgba(96,165,250,0.2);
  color: #60a5fa;
  border-color: rgba(96,165,250,0.4);
}
.vc-qp-select {
  flex: 1;
  min-width: 0;
  background: rgba(0,0,0,0.3);
  color: #e4e4e7;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 3px 6px;
  font-size: 9px;
  font-weight: 600;
  cursor: pointer;
}
.vc-qp-select:hover {
  border-color: rgba(96, 165, 250, 0.5);
}
.vc-qp-select option {
  background: #1a1a2e;
  color: #e4e4e7;
}
.vc-qp-select option:disabled {
  color: #52525b;
  font-style: italic;
}
.vc-qp-chart {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qp-svg {
  width: 100%;
  height: 100%;
}
.qp-bar-val {
  fill: #e4e4e7;
  font-size: 5.8px;
  font-family: var(--font-mono, monospace);
  font-weight: 600;
  text-anchor: middle;
}
.qp-bar-label {
  fill: #9ca3af;
  font-size: 5.8px;
  font-family: var(--font-mono, monospace);
  text-anchor: end;
}
.qp-bar-na {
  fill: #52525b;
  font-size: 12px;
  text-anchor: middle;
}
.vc-qp-footer {
  font-size: 8px;
  color: #52525b;
  text-align: center;
  margin-top: 4px;
  letter-spacing: 0.3px;
}
.vc-qp-loading, .vc-qp-empty {
  color: #71717a;
  font-size: 11px;
  font-style: italic;
  text-align: center;
}

/* Value Chain Flow — SVG Sankey */
.vc-flow { padding: 0; position: relative; margin-bottom: 10px; border: none; }

/* Process Flow — HTML/CSS */
.pf-container { padding: 8px 0; }
.pf-title {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 700;
  color: #71717a;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0 4px 12px;
}
.pf-row-label {
  font-family: var(--font-mono, monospace);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.6;
  padding: 0 4px 4px;
}
.pf-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 4px;
}
.pf-node {
  flex: 1;
  min-width: 120px;
  max-width: 220px;
  background: rgba(255,255,255,0.02);
  border: 1px solid;
  border-radius: 6px;
  padding: 8px 10px;
  transition: background 0.15s;
  cursor: default;
  position: relative;
}
.pf-node:hover { background: rgba(255,255,255,0.05); }
.pf-node[data-tip]:hover::after {
  content: attr(data-tip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  background: #1a1a2e;
  color: #a1a1aa;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 10px;
  line-height: 1.5;
  white-space: pre-line;
  width: max-content;
  max-width: 280px;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  margin-bottom: 4px;
}
.pf-node-title {
  font-size: 11px;
  font-weight: 600;
  color: #d4d4d8;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.3;
}
.pf-node-sub {
  font-size: 9px;
  color: #6b7280;
  margin-top: 2px;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.pf-node-fac {
  font-size: 8px;
  color: #4b5563;
  margin-top: 2px;
}
.pf-badge {
  font-size: 7px;
  font-weight: 600;
  color: #fff;
  padding: 1px 5px;
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
}
.pf-connector {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
}
.pf-connector-line {
  height: 1px;
  opacity: 0.12;
  width: 20px;
  flex-shrink: 0;
}
.pf-connector-edges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  flex: 1;
}
.pf-edge {
  font-size: 9px;
  color: #52525b;
  font-family: var(--font-mono, monospace);
  white-space: nowrap;
}
.vc-svg { width: 100%; display: block; }
.vc-svg text { font-family: var(--font-sans, 'Inter', sans-serif); }
.vc-svg-node { transition: opacity 0.15s; }
.vc-svg-node:hover { opacity: 1; }

/* Scenario Panel */
.vc-scenario { background: rgba(255,255,255,0.02); border-top: 1px solid rgba(255,255,255,0.08); padding: 16px 24px 20px; }
.vc-scenario-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; position: relative; }
.vc-scn-title { font-size: 15px; font-weight: 700; color: #e4e4e7; }
.vc-scn-subtitle { font-size: 12px; color: #71717a; }
.vc-scn-close { position: absolute; right: 0; top: 0; background: none; border: 1px solid rgba(255,255,255,0.1); color: #71717a; width: 28px; height: 28px; border-radius: 6px; cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.vc-scn-close:hover { background: rgba(255,255,255,0.05); color: #e4e4e7; }

/* Slider */
.vc-slider-wrap { margin-bottom: 16px; }
.vc-slider-labels { display: flex; justify-content: space-between; font-size: 10px; color: #52525b; margin-bottom: 6px; }
.vc-slider-val { font-size: 18px; font-weight: 700; color: #a1a1aa; font-family: var(--font-mono, monospace); }
.vc-slider { width: 100%; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 3px; background: linear-gradient(to right, #22c55e, #71717a 50%, #ef4444); outline: none; touch-action: pan-y; }
.vc-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #f4f4f5; border: 2px solid rgba(255,255,255,0.3); cursor: grab; box-shadow: 0 2px 8px rgba(0,0,0,0.4); }
.vc-slider::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #f4f4f5; border: 2px solid rgba(255,255,255,0.3); cursor: grab; }

/* Scenario Results */
.vc-res-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.vc-res-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 8px; padding: 12px; text-align: center; }
.vc-res-card.vc-res-danger { border-color: rgba(239,68,68,0.3); background: rgba(239,68,68,0.05); }
.vc-res-card.vc-res-warn { border-color: rgba(234,179,8,0.3); background: rgba(234,179,8,0.05); }
.vc-res-label { font-size: 9px; color: #71717a; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.vc-res-value { font-size: 14px; font-weight: 700; color: #e4e4e7; font-family: var(--font-mono, monospace); }
.vc-res-delta { font-size: 13px; font-weight: 600; margin-top: 2px; font-family: var(--font-mono, monospace); color: #a1a1aa; }
.vc-res-neg { color: #ef4444 !important; }
.vc-res-pos { color: #22c55e !important; }

/* ================================================================ */
/* Quarter Projection Panel                                         */
/* ================================================================ */
/* ── Tahmin vs Gerçekleşen Kartı ── */
.fc-section {
  padding: 16px 24px 20px;
}
.fc-section-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #a1a1aa;
  text-align: center;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.fc-card {
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-bottom: 0;
}
.fc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.fc-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #0ea5e9;
  text-transform: uppercase;
}
.fc-margin {
  font-size: 11px;
  color: #9ca3af;
  font-family: var(--font-mono, monospace);
}
.fc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.fc-table th {
  padding: 2px 6px;
  font-weight: 600;
}
.fc-table td {
  padding: 5px 6px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  font-size: 12px;
}
.fc-table tbody tr:last-child td { border-bottom: none; }
.fc-select {
  background: rgba(0,0,0,0.3);
  color: #0ea5e9;
  border: 1px solid rgba(14,165,233,0.3);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono, monospace);
  letter-spacing: 0.5px;
  cursor: pointer;
}
.fc-select:hover { border-color: rgba(14,165,233,0.6); }
.fc-note {
  margin-top: 8px;
  font-size: 9px;
  color: #52525b;
  font-style: italic;
}
.fc-card.fc-pending {
  border-color: rgba(14,165,233,0.15);
}
.fc-card.fc-pending .fc-title {
  color: #6b7280;
}

.vc-quarter-proj {
  margin-top: 4px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 16px 20px;
}

/* ── Premium kilit overlay (S125) ─────────────────────────────────── */
.lock-card {
  position: relative;
  margin-top: 8px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 36px 20px;
  min-height: 140px;
  display: flex; align-items: center; justify-content: center;
}
.lock-card-content {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center;
}
.lock-card-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  color: #6b7280;
}
.lock-card-icon svg { width: 26px; height: 26px; }
.lock-card-title {
  font-size: 12px; font-weight: 600; letter-spacing: 0.6px;
  color: #9ca3af; text-transform: uppercase;
}

/* ── S119 Part 5: Storyline Implications ─────────────────────────── */
.vc-storyline-impl { margin-top: 20px; }
.si-section {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 16px 20px;
}
.si-header { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.si-title { font-size: 15px; font-weight: 600; color: #e5e7eb; }
.si-subtitle { font-size: 12px; color: #9ca3af; }
.si-empty { font-size: 13px; color: #9ca3af; padding: 12px 0; }
.si-empty code { background: rgba(0,0,0,0.3); padding: 2px 6px; border-radius: 4px; font-family: ui-monospace, monospace; font-size: 11px; color: #d1d5db; }
.si-cards { display: flex; flex-direction: column; gap: 10px; }
.si-card {
  display: flex;
  gap: 14px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 12px 14px;
  transition: background .15s;
}
.si-card:hover { background: rgba(255,255,255,0.04); }
.si-card-rank {
  font-size: 18px;
  font-weight: 700;
  color: #60a5fa;
  min-width: 32px;
  text-align: center;
  align-self: flex-start;
  padding-top: 2px;
}
.si-card-body { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.si-card-title { font-size: 13px; font-weight: 600; color: #e5e7eb; line-height: 1.4; }
.si-esc-up { font-size: 10px; color: #f97316; padding: 1px 6px; background: rgba(249,115,22,0.12); border-radius: 8px; margin-left: 6px; }
.si-esc-down { font-size: 10px; color: #22c55e; padding: 1px 6px; background: rgba(34,197,94,0.12); border-radius: 8px; margin-left: 6px; }
.si-card-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 11px;
  color: #9ca3af;
}
.si-band-pill { padding: 2px 9px; border-radius: 10px; font-weight: 600; font-size: 11px; }
.si-conf, .si-dur, .si-link { color: #9ca3af; }
.si-card-impact { font-size: 12px; color: #d1d5db; }
.si-pct { font-weight: 600; margin-left: 4px; }
.si-sat-note {
  margin-left: 8px;
  font-size: 10px;
  color: #fbbf24;
  cursor: help;
}
.si-card-reason {
  font-size: 11px;
  color: #9ca3af;
  font-style: italic;
  line-height: 1.45;
  margin-top: 2px;
}
.si-expand { margin-top: 8px; }
.si-expand-btn {
  cursor: pointer;
  font-size: 12px;
  color: #60a5fa;
  padding: 6px 0;
  list-style: none;
}
.si-expand-btn:hover { color: #93c5fd; }
.si-expand-btn::marker { display: none; content: ''; }
.si-expand[open] .si-expand-btn { color: #9ca3af; }
.si-expand .si-cards { margin-top: 8px; }
.si-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 10px;
  color: #6b7280;
}
.qp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  margin-top: 4px;
}
.qp-title {
  font-size: 13px;
  font-weight: 700;
  color: #e4e4e7;
  letter-spacing: 0.5px;
}
.qp-badge {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}
.qp-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 14px;
}
.qp-col-title {
  font-size: 9px;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.qp-row {
  display: grid;
  grid-template-columns: 1fr 100px 85px;
  gap: 8px;
  align-items: center;
  padding: 3px 0;
  font-size: 11px;
}
.qp-price-range {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  color: #6b7280;
  text-align: right;
  white-space: nowrap;
}
.qp-subtitle {
  font-size: 10px;
  color: #52525b;
  margin-bottom: 10px;
  line-height: 1.4;
}
.qp-name {
  color: #a1a1aa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qp-q1q2 {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  color: #6b7280;
  min-width: 140px;
  text-align: right;
}
.qp-pct {
  font-family: var(--font-mono, monospace);
  font-weight: 600;
  font-size: 10px;
  min-width: 60px;
  text-align: right;
}
.qp-impact {
  font-family: var(--font-mono, monospace);
  font-weight: 600;
  font-size: 10px;
  color: #9ca3af;
  min-width: 55px;
  text-align: right;
}
.qp-up { color: #ef4444; }
.qp-down { color: #22c55e; }
.qp-flat { color: #6b7280; }
.qp-row-dim { opacity: 0.4; }
.qp-row-header { border-bottom: 1px solid rgba(255,255,255,0.08); padding-bottom: 4px; margin-bottom: 2px; }
.qp-row-header .qp-name, .qp-row-header .qp-pct, .qp-row-header .qp-impact, .qp-row-header .qp-price-range { font-size: 9px; color: #52525b; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.qp-share { font-size: 9px; color: #52525b; margin-left: 4px; }
.qp-src {
  font-size: 8px;
  font-weight: 600;
  padding: 1px 4px;
  border-radius: 3px;
  margin-left: 4px;
  vertical-align: middle;
  letter-spacing: 0.3px;
}
.qp-src-market { background: rgba(59,130,246,0.15); color: #3b82f6; }
.qp-src-formula { background: rgba(234,179,8,0.15); color: #eab308; cursor: help; }
.qp-src-actual { background: rgba(34,197,94,0.15); color: #22c55e; }
.qp-desc { font-size: 9px; color: #4b5563; font-style: italic; margin-left: 6px; white-space: nowrap; }
.qp-fixed-header { font-size: 9px; color: #52525b; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 10px; padding-top: 8px; border-top: 1px dashed rgba(255,255,255,0.06); }
.qp-row-fixed { opacity: 0.5; }
.qp-row-fixed .qp-pct { font-size: 10px; color: #4b5563; }
.qp-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.qp-sum-item {
  text-align: center;
  padding: 8px;
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.04);
}
.qp-sum-main {
  border-width: 2px;
}
.qp-sum-label {
  font-size: 9px;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 4px;
}
.qp-sum-value {
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-mono, monospace);
  color: #e4e4e7;
}
.qp-empty {
  color: #52525b;
  font-size: 12px;
  text-align: center;
  padding: 12px;
}
/* Stock Estimate */
.qp-stock {
  margin-top: 14px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
}
.qp-stock-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.qp-stock-current, .qp-stock-implied {
  text-align: center;
}
.qp-stock-label {
  display: block;
  font-size: 9px;
  color: #52525b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.qp-stock-price {
  display: block;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-mono, monospace);
  color: #e4e4e7;
}
.qp-stock-highlight {
  font-size: 18px;
}
.qp-stock-date {
  display: block;
  font-size: 9px;
  color: #3f3f46;
  margin-top: 2px;
}
.qp-stock-diff {
  display: block;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono, monospace);
  margin-top: 2px;
}
.qp-stock-arrow {
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-mono, monospace);
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
}
.qp-stock-up { color: #22c55e; }
.qp-stock-down { color: #ef4444; }
.qp-stock-note {
  font-size: 9px;
  color: #3f3f46;
  text-align: center;
  margin-top: 10px;
  line-height: 1.4;
}
.qp-stock-base-info {
  font-size: 10px;
  color: #a1a1aa;
  text-align: center;
  margin-top: 8px;
  font-family: 'JetBrains Mono', monospace;
}
.qp-stock-methodology {
  font-size: 10px;
  color: #71717a;
  text-align: left;
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(113,113,122,0.15);
  border-radius: 6px;
  line-height: 1.6;
}
/* Bridge analysis sections (Brüt → Op → FAVÖK → Net → Hisse) */
.sa-bridge-label {
  font-family: var(--font-mono, monospace);
  font-size: 9px;
  font-weight: 700;
  color: #52525b;
  letter-spacing: 1.2px;
  text-align: left;
  margin: 6px 0 4px;
  text-transform: uppercase;
  padding-top: 0;
}
.sa-result-na {
  opacity: 0.55;
  cursor: help;
}
.sa-na-tag {
  font-size: 10px;
  color: #71717a;
  font-style: italic;
  font-family: var(--font-mono, monospace);
}
.sa-result-constant {
  cursor: help;
}
.sa-const-tag {
  font-size: 10px;
  color: #71717a;
  font-family: var(--font-mono, monospace);
}
.sa-result-dynamic {
  cursor: help;
}
.sa-dyn-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 6px;
  font-size: 9px;
  font-weight: 600;
  color: #60a5fa;
  background: rgba(96,165,250,0.1);
  border: 1px solid rgba(96,165,250,0.25);
  border-radius: 4px;
  font-family: var(--font-mono, monospace);
}
.sa-info-icon {
  display: inline-block;
  margin-left: 4px;
  cursor: help;
  font-size: 12px;
  color: #60a5fa;
  opacity: 0.6;
  transition: opacity 0.15s;
}
.sa-info-icon:hover {
  opacity: 1.0;
}

/* ═══════════════════════════════════════════
   SENARYO ANALİZİ v2 — 2 sütunlu layout preview
   ═══════════════════════════════════════════ */
.sm-v2-section {
  margin-top: 0;
  padding: 14px 0;
}
.sm-v2-header {
  margin-bottom: 10px;
}
.sm-v2-refband {
  margin-top: 0;
}
.sm-v2-refband .sm-refband-compact {
  justify-content: space-between;
  align-items: center;
  gap: 0;
  padding: 5px 10px;
  margin-bottom: 0;
  flex-wrap: nowrap;
}
.sm-v2-refband .qp-badge {
  margin-right: 0;
  font-size: 10px;
  padding: 2px 8px;
  flex-shrink: 0;
}
.sm-v2-refband .sm-rb-item {
  font-size: 10px;
  padding: 0 10px;
  gap: 3px;
  flex-shrink: 0;
}
.sm-v2-refband .sm-rb-label {
  font-size: 8px;
}
.sm-v2-refband .sm-rb-arrow {
  font-size: 10px;
  padding: 0 4px;
  flex-shrink: 0;
}
.sm-v2-refband .sm-rb-divider {
  padding: 0 6px;
  flex-shrink: 0;
}
.sm-v2-refband .sm-reliability {
  font-size: 11px;
  padding: 2px 8px;
  margin-left: 0;
  flex-shrink: 0;
}
.sm-v2-columns {
  display: grid;
  grid-template-columns: 32fr 68fr;
  gap: 12px;
  align-items: start;
}
.sm-v2-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: sticky;
  top: 20px;
}
.sm-v2-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sm-v2-unified {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  overflow: hidden;
}
.sm-v2-section-inner {
  padding: 10px 12px;
}
.sm-v2-section-inner + .sm-v2-section-inner {
  border-top: 1px solid rgba(255,255,255,0.06);
}
.sm-v2-group {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 8px 10px;
}
.sm-v2-group-title {
  font-size: 11px;
  font-weight: 700;
  color: #e5e7eb;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 8px;
  /* Türkçe i→İ uppercase için: html lang="tr" + bu hint Chrome'da uppercase'i locale-aware yapar */
  unicode-bidi: plaintext;
}
.sm-v2-group-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.sm-v2-group-row--full .sm-segment-bar { flex: 1; }
.sm-v2-collapse-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  color: #9ca3af;
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s;
}
.sm-v2-collapse-btn:hover { background: rgba(255,255,255,0.04); color: #e5e7eb; }
.sm-v2-seg-bar {
  display: flex;
  gap: 0;
  flex: 1;
}
.sm-v2-seg-bar .sm-seg-btn,
.sm-v2-seg-bar .sm-macro-btn {
  flex: 1;
}
.sm-v2-seg-bar .sm-seg-btn,
.sm-v2-seg-bar .sm-macro-btn {
  font-size: 9px;
  padding: 3px 8px;
}
.sm-v2-spread-slider-area {
  position: relative;
}
.sm-v2-spread-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 2px;
  /* slider val (~60px) + reset btn (~28px) + gap sağ boşluk */
  margin-right: 90px;
}
.sm-v2-spread-tick {
  font-size: 10px;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
}
.sm-v2-sliders {
  margin-top: 6px;
}
.sm-v2-hint {
  font-size: 10px;
  color: #6b7280;
  margin-top: 4px;
  padding-left: 2px;
}
.sm-v2-disclaimer {
  font-size: 10px;
  color: #4b556380;
  text-align: center;
  margin-top: 8px;
}
.sa-header-summary {
  margin-left: auto;
  flex-shrink: 0;
}
.sm-v2-eval-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  margin-bottom: 6px;
}
.sm-v2-eval-row .sa-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
/* ── Tahmini Sonuçlar tek özet kart (yatay strip layout) ─────────────── */
.sm-output-summary-card {
  flex: 1;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sm-output-summary-title {
  font-size: 11px;
  font-weight: 700;
  color: #9ca3af;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sm-output-summary-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.sm-output-summary-period {
  font-size: 10px;
  font-weight: 600;
  color: #60a5fa;
  letter-spacing: 0.3px;
  text-transform: none;
  margin-left: 8px;
}
.sm-out-model-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 10px;
  color: #a78bfa;
  border: 1px solid rgba(167, 139, 250, 0.4);
  background: rgba(167, 139, 250, 0.1);
  border-radius: 4px;
  letter-spacing: 0.3px;
  text-transform: none;
  cursor: help;
}
.sm-out-model-badge:empty {
  display: none;
}
.sm-out-risk-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: help;
  display: inline-block;
  vertical-align: baseline;
}
.sm-out-risk-badge:empty {
  display: none;
}
.sm-out-prevq-badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-left: 12px;
  color: #9ca3af;
  cursor: help;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.sm-out-prevq-badge:empty {
  display: none;
}
.sm-out-prevq-badge .sm-prevq-label {
  text-transform: uppercase;
  color: #6b7280;
  letter-spacing: 0.4px;
}
.sm-out-prevq-badge .sm-prevq-val {
  font-family: monospace;
  color: #e5e7eb;
  font-weight: 700;
}
.sm-out-prevq-badge .sm-prevq-pct {
  font-family: monospace;
  font-weight: 700;
}
.sm-output-summary-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 6px;
  border-left: 1px solid rgba(255,255,255,0.06);
  text-align: center;
}
.sm-output-summary-stat:first-child {
  border-left: none;
}
.sm-output-summary-stat-label {
  font-size: 10px;
  font-weight: 600;
  color: #9ca3af;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  white-space: nowrap;
}
.sm-output-summary-stat-val {
  font-size: 16px;
  font-weight: 700;
  color: #e5e7eb;
  font-family: var(--font-mono, monospace);
  white-space: nowrap;
  line-height: 1.1;
}
.sm-out-unclamped {
  font-size: 10px;
  color: #9ca3af;
  font-family: var(--font-mono, monospace);
  margin-top: 2px;
  font-style: italic;
}
.sm-output-summary-val--inline {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  justify-content: center;
}
@media (max-width: 1100px) {
  .sm-output-summary-strip {
    grid-template-columns: repeat(3, 1fr);
  }
  .sm-output-summary-stat:nth-child(3n+1) { border-left: none; }
  .sm-output-summary-stat:nth-child(n+4) { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 8px; }
}
@media (max-width: 700px) {
  .sm-output-summary-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .sm-output-summary-stat { border-left: none; border-top: 1px solid rgba(255,255,255,0.06); padding-top: 8px; }
  .sm-output-summary-stat:nth-child(-n+2) { border-top: none; }
  .sm-output-summary-stat:nth-child(odd) { border-left: none; }
}
.sm-v2-spread-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sm-v2-spread-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sm-v2-spread-name {
  font-size: 11px;
  color: #e5e7eb;
  font-weight: 600;
  min-width: 95px;
  max-width: 140px;  /* 2026-05-15: uzun spread isimleri için ellipsis tetikleyici (KRDMD Rebar+Billet, BRSAN Pipe-HRC USD-PPI, ENJSA Elektrik Perakende-Toptan, GUBRF Üre+Amonyum). Hover'da title attribute ile full text. */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: help;  /* hover üzerine geldiğinde tooltip beklentisi */
}
.sm-v2-spread-weight {
  font-size: 9px;
  color: #6b7280;
  min-width: 28px;
  text-align: right;
  font-family: var(--font-mono, monospace);
}
.sm-v2-spread-row .ms-slider-val {
  font-size: 10px;
  color: #9ca3af;
  min-width: 48px;
  text-align: right;
  font-family: var(--font-mono, monospace);
}
.sm-v2-spread-row .ms-slider-wrap {
  /* Slider track'i %25 daha geniş — yan label/value alanları daraltıldı */
  flex: 1 1 auto;
  min-width: 140px;
}
.sm-v2-cards {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: stretch;
}
.sm-v2-cards .sm-output-card {
  flex: 1;
  min-width: 70px;
}
.sm-v2-cards .sm-output-grid-2x2 {
  flex: 3;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 8px;
}
.sm-v2-cards .sm-output-grid-2x2 .sm-output-card {
  flex: none;
  min-width: 0;
}
.sm-v2-cards .sm-scenario-card {
  flex: 1;
  min-width: 130px;
}
.sm-v2-viz-row {
  display: grid;
  grid-template-columns: 3fr 2fr 2fr;
  gap: 6px;
}
.sm-v2-subs-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
.sm-v2-subs-row:empty {
  display: none;
}
.sm-v2-eval {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 8px;
}
.sm-v2-accordions .sa-section {
  margin-bottom: 4px;
}
@media (max-width: 900px) {
  .sm-v2-columns {
    grid-template-columns: 1fr;
  }
  .sm-v2-left {
    position: static;
  }
}
.sa-bridge-warning {
  margin-top: 12px;
  padding: 8px 12px;
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: 6px;
  font-size: 10px;
  color: #f59e0b;
  text-align: center;
  font-family: var(--font-mono, monospace);
}
.sm-clamp-notice {
  margin-top: 14px;
  padding: 10px 14px;
  background: rgba(239,68,68,0.06);
  border: 1px solid rgba(239,68,68,0.22);
  border-left: 3px solid #ef4444;
  border-radius: 6px;
  font-size: 11px;
  line-height: 1.55;
  color: #fca5a5;
  font-family: var(--font-sans, system-ui);
}
.sm-clamp-notice strong {
  color: #ef4444;
  font-weight: 600;
}
.qp-mono {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  color: #d4d4d8;
}
/* Hisse fiyat senaryoları */
.sa-scenarios {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
  padding: 12px;
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
}
.sa-scenario {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.06);
}
.sa-scenario-cons { background: rgba(239,68,68,0.05); border-color: rgba(239,68,68,0.15); }
.sa-scenario-base { background: rgba(96,165,250,0.06); border-color: rgba(96,165,250,0.2); }
.sa-scenario-opt { background: rgba(34,197,94,0.05); border-color: rgba(34,197,94,0.15); }
.sa-scenario {
  padding: 12px 14px;
}
.sa-sc-header {
  text-align: center;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.sa-sc-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: #e4e4e7;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2px;
}
.sa-sc-detail {
  display: block;
  font-size: 9px;
  color: #71717a;
  font-family: var(--font-mono, monospace);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.sa-sc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 6px 0;
  cursor: help;
}
.sa-sc-row-label {
  font-size: 10px;
  color: #71717a;
}
.sa-sc-row-val {
  font-size: 11px;
  color: #d4d4d8;
  font-family: var(--font-mono, monospace);
  font-weight: 600;
}
.sa-sc-row-strong {
  color: #f1f5f9;
  font-size: 12px;
  font-weight: 700;
}
.sa-sc-divider {
  height: 1px;
  background: rgba(255,255,255,0.05);
  margin: 8px 0;
}
.sa-sc-price {
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  font-family: var(--font-mono, monospace);
  color: #f1f5f9;
  padding-top: 4px;
}
/* Market interpretation panel — temiz, kısaltmasız layout */
.sa-market-panel {
  margin-top: 16px;
  padding: 18px 20px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
}
.sa-market-panel.mp-above { border-color: rgba(34,197,94,0.35); background: rgba(34,197,94,0.04); }
.sa-market-panel.mp-mid-high { border-color: rgba(96,165,250,0.35); background: rgba(96,165,250,0.04); }
.sa-market-panel.mp-mid-low { border-color: rgba(245,158,11,0.35); background: rgba(245,158,11,0.04); }
.sa-market-panel.mp-below { border-color: rgba(239,68,68,0.35); background: rgba(239,68,68,0.04); }

.sa-mp-title {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  font-weight: 700;
  color: #a1a1aa;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
  text-align: center;
}
.sa-mp-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.sa-mp-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  text-align: center;
}
.sa-mp-cell-prev {
  background: rgba(168,162,158,0.04);
  border-color: rgba(168,162,158,0.2);
}
.sa-mp-cell-current {
  background: rgba(241,245,249,0.06);
  border-color: rgba(241,245,249,0.2);
  border-width: 2px;
}
.sa-mp-cell-cons { border-color: rgba(239,68,68,0.25); }
.sa-mp-cell-base { border-color: rgba(96,165,250,0.25); }
.sa-mp-cell-opt { border-color: rgba(34,197,94,0.25); }

.sa-mp-cell-label {
  font-size: 10px;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
  font-weight: 600;
}
.sa-mp-cell-price {
  font-size: 22px;
  font-weight: 800;
  font-family: var(--font-mono, monospace);
  color: #f1f5f9;
  line-height: 1.1;
  margin-bottom: 6px;
}
.sa-mp-cell-current .sa-mp-cell-price {
  color: #ffffff;
}
.sa-mp-cell-sublabel {
  font-size: 9px;
  color: #52525b;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
  font-family: var(--font-mono, monospace);
}
.sa-mp-cell-sub {
  font-size: 10px;
  color: #71717a;
  font-family: var(--font-mono, monospace);
}
.sa-mp-cell-sub.mp-up { color: #22c55e; font-weight: 600; }
.sa-mp-cell-sub.mp-down { color: #ef4444; font-weight: 600; }
.sa-mp-cell-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 12px 0 10px;
  width: 100%;
}
.sa-mp-cell-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin: 4px 0;
  cursor: help;
}
.sa-mp-detail-label {
  font-size: 10px;
  color: #71717a;
}
.sa-mp-detail-val {
  font-size: 11px;
  color: #d4d4d8;
  font-family: var(--font-mono, monospace);
  font-weight: 600;
}
.sa-mp-detail-strong {
  color: #f1f5f9;
  font-size: 12px;
  font-weight: 700;
}
.sa-mp-detail-val.mp-up { color: #22c55e; font-weight: 700; }
.sa-mp-detail-val.mp-down { color: #ef4444; font-weight: 700; }

/* Sensitivity matrix */
.sm-reliability {
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 4px;
  background: rgba(34,197,94,0.12); color: #22c55e; border: 1px solid rgba(34,197,94,0.3);
  letter-spacing: 0.3px; cursor: help;
}
.sm-reliability-na {
  background: rgba(107,114,128,0.12); color: #6b7280; border-color: rgba(107,114,128,0.3);
}
.sm-section {
  margin-top: 0;
  padding: 4px 0;
  background: none;
  border: none;
  border-radius: 0;
}

/* ── Sensitivity Slider + Chart (S119 Part 5) ────────────────────── */
/* Segment control */
.sm-segment-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.sm-segment-bar {
  display: flex;
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}
.sm-seg-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 6px 4px;
  background: transparent;
  border: none;
  border-right: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
  color: #6b7280;
  white-space: nowrap;
  min-width: 0;
}
.sm-seg-btn:last-child { border-right: none; }
.sm-seg-btn:hover { background: rgba(255,255,255,0.04); }
.sm-seg-btn.sm-seg-active {
  background: color-mix(in srgb, var(--seg-color) 15%, transparent);
  box-shadow: inset 0 -2px 0 var(--seg-color);
  color: var(--seg-color);
}
.sm-seg-name { font-size: 10px; font-weight: 700; }
.sm-seg-btn.sm-seg-active .sm-seg-name { color: var(--seg-color); }
.sm-seg-range { font-size: 9px; color: #6b7280; }
.sm-seg-btn.sm-seg-active .sm-seg-range { color: #9ca3af; }

.sm-slider-panel { margin: 8px 0 6px; }
.sm-slider-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.sm-slider-label {
  font-size: 10px;
  color: #9ca3af;
  min-width: 130px;
  font-weight: 600;
}
.sm-slider-wrap { flex: 1; position: relative; }
.sm-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: #374151;
  outline: none;
  touch-action: pan-y;
}
.sm-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #60a5fa;
  cursor: pointer;
  border: 2px solid #1e3a5f;
  box-shadow: 0 0 6px rgba(96,165,250,0.4);
}
.sm-slider::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #60a5fa;
  cursor: pointer;
  border: 2px solid #1e3a5f;
}
.sm-slider-band::-webkit-slider-thumb { background: #f59e0b; border-color: #78350f; box-shadow: 0 0 6px rgba(245,158,11,0.4); }
.sm-slider-value {
  font-size: 11px;
  color: #e5e7eb;
  min-width: 180px;
  text-align: right;
  font-weight: 600;
}
.sm-slider-reset {
  background: none; border: 1px solid #374151; color: #9ca3af;
  border-radius: 4px; width: 22px; height: 22px; cursor: pointer;
  font-size: 14px; line-height: 1; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-left: 4px; padding: 0; transition: color 0.15s, border-color 0.15s;
}
.sm-slider-reset:hover { color: #60a5fa; border-color: #60a5fa; }
.sm-slider-ticks {
  display: flex;
  justify-content: space-between;
  position: relative;
  height: 18px;
  margin-top: 2px;
}
.sm-tick {
  font-size: 9px;
  font-weight: 600;
  position: absolute;
  transform: translateX(-50%);
}

.sm-output-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 6px;
  margin-bottom: 4px;
}
.sm-output-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 10px 12px;
  text-align: center;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 58px;
  gap: 4px;
}
/* Senaryo Görselleştirme Panelleri */
.sm-viz-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}
.sm-viz-grid-3 {
  grid-template-columns: 3fr 2fr 2fr;
}
.sm-viz-panel {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 10px 12px;
}
.sm-viz-title {
  font-size: 11px;
  font-weight: 700;
  color: #e5e7eb;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
}
.sm-viz-body { min-height: 60px; }

/* Bridge table */
.wf-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.wf-table td { padding: 3px 4px; vertical-align: middle; }
.wf-tbl-label { color: #d1d5db; font-size: 11px; font-weight: 500; white-space: nowrap; width: 110px; }
.wf-tbl-bar { width: 40%; }
.wf-tbl-bar-inner { height: 12px; border-radius: 2px; transition: width 0.2s; min-width: 2px; }
.wf-tbl-val { text-align: right; font-size: 11px; font-family: monospace; white-space: nowrap; width: 70px; }
.wf-tbl-cum { text-align: right; font-size: 11px; font-family: monospace; color: #9ca3af; white-space: nowrap; width: 50px; }
.wf-total-row td { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 5px; }
.wf-total-row .wf-tbl-label { color: #e5e7eb; font-weight: 700; }
.wf-target-row td { border-top: 1px double rgba(255,255,255,0.15); padding-top: 6px; margin-top: 2px; }

/* Breakdown horizontal bars — finansal panel ortak stil */
.bd-row { display: flex; align-items: center; margin-bottom: 3px; }
.bd-label { width: 90px; font-size: 11px; font-weight: 500; color: #d1d5db; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-bar-wrap { flex: 1; height: 14px; background: rgba(255,255,255,0.04); border-radius: 2px; overflow: hidden; }
.bd-bar { height: 100%; border-radius: 2px; transition: width 0.2s; }
.bd-val { width: 50px; text-align: right; font-size: 11px; font-family: monospace; color: #9ca3af; }

/* (Senaryo karşılaştırma kaldırıldı) */

/* Debt panel */
.dt-layout { display: flex; gap: 12px; align-items: flex-start; }
.dt-donut-col { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.dt-donut { width: 70px; height: 70px; }
.dt-donut-label { font-size: 11px; font-weight: 700; color: #e5e7eb; margin-top: 4px; font-family: monospace; }
.dt-donut-sublabel { font-size: 8px; color: #6b7280; margin-bottom: 2px; }
.dt-legend { display: flex; flex-direction: column; gap: 1px; margin-top: 2px; }
.dt-leg-item { font-size: 8px; color: #9ca3af; display: flex; align-items: center; gap: 3px; white-space: nowrap; }
.dt-leg-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.dt-info-col { flex: 1; min-width: 0; }
.dt-row { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.dt-row-net { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 2px; padding-top: 5px; }
.dt-label { font-size: 11px; font-weight: 500; color: #d1d5db; }
.dt-val { font-size: 11px; font-family: monospace; white-space: nowrap; }
.dt-impact { margin-top: 6px; padding: 6px 8px; background: rgba(255,255,255,0.03); border-radius: 4px; }
.dt-impact-label { font-size: 8px; color: #6b7280; text-transform: uppercase; letter-spacing: 0.3px; }
.dt-impact-val { font-size: 13px; font-family: monospace; margin-top: 2px; white-space: nowrap; }

.sm-disclaimer {
  font-size: 10px;
  color: #6b7280;
  line-height: 1.4;
  padding: 6px 8px;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 4px;
}
.sm-output-label {
  font-size: 10px;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 0;
  line-height: 1.2;
  text-align: center;
}
.sm-output-main {
  font-size: 16px;
  font-weight: 700;
  color: #e5e7eb;
  font-family: var(--font-mono, monospace);
  line-height: 1.1;
}
.sm-output-sub {
  font-size: 9px;
  margin-top: 1px;
  font-weight: 600;
}
.sm-output-inline {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 700;
  color: #e5e7eb;
  font-family: var(--font-mono, monospace);
  white-space: nowrap;
  line-height: 1.1;
}
.sm-output-pct {
  font-size: 12px;
  font-weight: 600;
}
/* ─── Makro Senaryo Kontrolleri ─── */
.sm-macro-row { margin-top: 0; }
.sm-macro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-bottom: 4px; }
.sm-macro-grid > div:first-child { padding-right: 14px; border-right: 1px solid rgba(255,255,255,0.1); }
.sm-macro-grid > div:last-child { padding-left: 14px; }
.sm-macro-grid > div { display: flex; flex-direction: column; }
.sm-macro-grid > div > .ms-sliders-panel { flex: 1; box-sizing: border-box; }
.sm-macro-grid .sm-segment-row { margin-bottom: 0; }
.sm-macro-grid .sm-slider-label { min-width: 50px; flex-shrink: 0; }
.sm-segment-row .sm-slider-label { min-width: auto; flex-shrink: 0; }
.sm-macro-row .sm-segment-bar { border-color: rgba(255,255,255,0.15); }
.sm-macro-btn .sm-seg-name { font-size: 10px; }
.sm-macro-custom { opacity: 0.8; }

.ms-detail-toggle {
  text-align: left;
  margin: 6px 0 4px;
  padding-left: 2px;
}
.ms-toggle-btn {
  background: transparent;
  border: none;
  color: #6b7280;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 0;
  cursor: pointer;
  transition: color 0.15s;
  letter-spacing: 0.3px;
}
.ms-toggle-btn:hover { color: #e5e7eb; }
.ms-toggle-inline { margin-left: 6px; white-space: nowrap; flex-shrink: 0; font-size: 9px; }

.ms-sliders-panel {
  background: rgba(0,0,0,0.12);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 8px 16px;
  margin-top: 6px;
  display: flex;
  flex-direction: column;
}
.ms-sliders-panel .ms-reset-btn { margin-top: auto; }
.ms-slider-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}
.ms-slider-label {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  color: #e5e7eb;
  width: 130px;
  min-width: 130px;
  max-width: 130px;
  flex-shrink: 0;
  font-weight: 700;
  letter-spacing: 0.3px;
  overflow: hidden;
  cursor: help;
}
.ms-slider-label-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.ms-slider-info {
  margin-left: 4px;
  color: #6b7280;
  font-size: 11px;
  cursor: help;
  font-weight: normal;
  transition: color 0.15s;
}
.ms-slider-info:hover { color: #e5e7eb; }
.ms-slider-wrap { flex: 1; }
.ms-slider-val {
  font-size: 11px;
  font-weight: 700;
  color: #e5e7eb;
  min-width: 48px;
  text-align: right;
  font-family: var(--font-mono, monospace);
}
.ms-reset-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #9ca3af;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 6px;
}
.ms-reset-btn:hover { color: #e5e7eb; background: rgba(255,255,255,0.08); }

.ms-mult-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  color: #8b5cf6;
  background: rgba(139,92,246,0.15);
  border-radius: 3px;
  padding: 1px 4px;
  margin-left: 4px;
  vertical-align: middle;
}
/* ─── Divider + Kapasite ─── */
.sm-panel-divider {
  border-top: 1px solid rgba(255,255,255,0.06);
  margin: 6px 0;
}
.sm-cap-info {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 2px;
  padding-left: 130px;
}
.sm-cap-mark {
  font-size: 9px;
  font-weight: 600;
}
.sm-slider-cap::-webkit-slider-thumb {
  background: #a78bfa !important;
  border-color: #4c1d95 !important;
  box-shadow: 0 0 6px rgba(167,139,250,0.4) !important;
}

.sm-chart-wrap {
  background: rgba(0,0,0,0.15);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 16px;
  height: 280px;
}
.sm-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #a1a1aa;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 4px;
}
.sm-subtitle {
  font-size: 10px;
  color: #71717a;
  text-align: left;
  margin-top: 14px;       /* dropdown/badge ile çakışma olmasın diye yer aç */
  margin-bottom: 8px;
  line-height: 1.3;
}
/* Compact referans bandı (S119 Part 4) */
.sm-refband-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  flex-wrap: nowrap;
  margin-bottom: 10px;
  padding: 6px 10px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  font-family: var(--font-mono, monospace);
}
.sm-rb-item {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-size: 11px;
  color: #d4d4d8;
  padding: 0;
  white-space: nowrap;
}
.sm-rb-item:last-child {
  border-right: none;
}
.sm-rb-item b {
  font-weight: 700;
  color: #f1f5f9;
}
.sm-rb-label {
  font-size: 9px;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.sm-rb-current b { color: #ffffff; }
.sm-rb-implied { color: #60a5fa !important; }
.sm-rb-arrow {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}
.sm-rb-up { color: #22c55e; background: rgba(34,197,94,0.08); }
.sm-rb-down { color: #ef4444; background: rgba(239,68,68,0.08); }
.sm-rb-divider {
  display: none;
}
.sm-rb-arrow {
  padding: 1px 5px;
  border-right: 1px solid rgba(255,255,255,0.10);
}

/* Brent kolonu */
.sm-th-brent {
  font-size: 10px;
  font-weight: 700;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 8px 10px;
  text-align: center;
  background: rgba(96,165,250,0.04);
  border-radius: 4px;
}
.sm-td-brent {
  padding: 12px 10px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: #93c5fd;
  background: rgba(96,165,250,0.04);
  border-radius: 4px;
  font-family: var(--font-mono, monospace);
  cursor: help;
}

/* Collapsable metodoloji */
.sm-methodology-collapse {
  margin-top: 14px;
  padding: 0;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
}
.sm-methodology-collapse summary {
  cursor: pointer;
  padding: 12px 16px;
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  font-weight: 700;
  color: #a1a1aa;
  letter-spacing: 1px;
  text-transform: uppercase;
  user-select: none;
  list-style: none;
  display: flex;
  align-items: center;
}
.sm-methodology-collapse summary::before {
  content: '▶';
  font-size: 9px;
  margin-right: 8px;
  color: #71717a;
  transition: transform 0.2s;
}
.sm-methodology-collapse[open] summary::before {
  transform: rotate(90deg);
}
.sm-methodology-collapse summary::-webkit-details-marker {
  display: none;
}
.sm-methodology-body {
  padding: 0 18px 16px;
  font-size: 11px;
  color: #a1a1aa;
  line-height: 1.7;
}
.sm-methodology-body p {
  margin: 8px 0;
}
.sm-methodology-body strong {
  color: #d4d4d8;
}
.sm-methodology-body b {
  color: #e4e4e7;
  font-weight: 700;
}
.sm-implied {
  background: rgba(96,165,250,0.06);
  border: 1px solid rgba(96,165,250,0.25);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.sm-implied-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}
.sm-implied-label {
  color: #a1a1aa;
  font-weight: 600;
}
.sm-implied-value {
  font-size: 14px;
  font-weight: 700;
  color: #60a5fa;
  font-family: var(--font-mono, monospace);
}
.sm-implied-row-sub {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 10px;
  color: #71717a;
  font-family: var(--font-mono, monospace);
}
.sm-implied-row-sub b { color: #d4d4d8; font-weight: 600; }
.sm-implied-assumption {
  margin-top: 10px;
  font-size: 10px;
  color: #52525b;
  font-style: italic;
  font-family: var(--font-mono, monospace);
}
.sm-implied-interp {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255,255,255,0.06);
  font-size: 11px;
  color: #d4d4d8;
  line-height: 1.5;
}
.sm-table-wrap {
  overflow-x: auto;
  margin-bottom: 12px;
}
.sm-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 4px;
  font-family: var(--font-mono, monospace);
}
.sm-table th {
  font-size: 10px;
  font-weight: 700;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 8px 10px;
  text-align: center;
  background: rgba(255,255,255,0.02);
  border-radius: 4px;
}
.sm-th-band { text-align: left !important; }
.sm-td-band {
  padding: 12px;
  background: rgba(255,255,255,0.02);
  border-radius: 4px;
  text-align: left;
}
.sm-band-name {
  font-size: 11px;
  font-weight: 700;
  color: #e4e4e7;
  letter-spacing: 0.5px;
}
.sm-band-range {
  font-size: 10px;
  color: #71717a;
  margin-top: 2px;
}
.sm-td-gp {
  padding: 12px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255,255,255,0.02);
  border-radius: 4px;
}
.sm-gp-pos { color: #22c55e; }
.sm-gp-neg { color: #ef4444; }
.sm-cell {
  padding: 12px 10px;
  text-align: center;
  border-radius: 4px;
  cursor: help;
  background: rgba(255,255,255,0.02);
}
.sm-cell-base {
  font-size: 13px;
  font-weight: 700;
  color: #e4e4e7;
}
.sm-cell-range {
  font-size: 9px;
  color: #71717a;
  margin-top: 4px;
}
.sm-cell-up {
  background: rgba(34,197,94,0.08) !important;
  border: 1px solid rgba(34,197,94,0.25);
}
.sm-cell-up .sm-cell-base { color: #86efac; }
.sm-cell-down {
  background: rgba(239,68,68,0.06) !important;
  border: 1px solid rgba(239,68,68,0.2);
}
.sm-cell-down .sm-cell-base { color: #fca5a5; }
.sm-cell-current-match {
  background: rgba(241,245,249,0.10) !important;
  border: 2px solid rgba(241,245,249,0.4);
}
.sm-cell-current-match .sm-cell-base { color: #ffffff; }
.sm-cell-na {
  opacity: 0.4;
}
.sm-cell-na .sm-cell-base { color: #52525b; }
.sm-legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 14px 0;
  font-size: 10px;
  color: #71717a;
  flex-wrap: wrap;
}
.sm-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sm-legend-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
}
.sm-methodology {
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.02);
  border-left: 2px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  font-size: 10px;
  color: #71717a;
  line-height: 1.6;
}
.sm-methodology strong { color: #a1a1aa; }
.sm-market-interp {
  margin-top: 8px;
  padding: 10px 14px;
  background: rgba(96,165,250,0.05);
  border: 1px solid rgba(96,165,250,0.2);
  border-radius: 8px;
}
.sm-market-interp-title {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  font-weight: 700;
  color: #60a5fa;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 6px;
  text-align: center;
}
.sm-market-interp-text {
  font-size: 12px;
  color: #d4d4d8;
  line-height: 1.5;
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
}

/* S119 Part 4 — 3 katmanlı yatırımcı yorumu */
.sm-market-interp-text .sm-headline {
  font-size: 13px;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.5;
  padding: 8px 12px;
  background: rgba(96,165,250,0.06);
  border-left: 3px solid #60a5fa;
  border-radius: 6px;
  margin-bottom: 8px;
}
.sm-market-interp-text .sm-headline b {
  color: #ffffff;
  font-weight: 800;
}

.sm-market-interp-text .sm-context {
  margin-bottom: 8px;
  padding: 8px 10px;
  background: rgba(0,0,0,0.2);
  border-radius: 6px;
}
.sm-market-interp-text .sm-context-item {
  font-size: 11px;
  color: #d4d4d8;
  line-height: 1.5;
  margin: 3px 0;
}
.sm-market-interp-text .sm-context-item b {
  color: #f1f5f9;
}
.sm-market-interp-text .sm-up { color: #22c55e; font-weight: 700; }
.sm-market-interp-text .sm-down { color: #ef4444; font-weight: 700; }

.sm-market-interp-text .sm-actions {
  margin-top: 6px;
}
.sm-market-interp-text .sm-actions-title {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  font-weight: 700;
  color: #a1a1aa;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sm-market-interp-text .sm-action {
  margin: 4px 0;
  padding: 6px 10px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
}
.sm-market-interp-text .sm-action-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}
.sm-market-interp-text .sm-action-icon {
  font-size: 14px;
}
.sm-market-interp-text .sm-action-title {
  font-size: 12px;
  font-weight: 700;
  color: #f1f5f9;
}
.sm-market-interp-text .sm-action-text {
  font-size: 11px;
  color: #a1a1aa;
  line-height: 1.6;
}
.sm-market-interp-text .sm-action-text b {
  color: #d4d4d8;
}

/* S119 Part 4 — 2 sütunlu alt grid */
/* sm-bottom-grid removed — piyasa yorumu artık full-width */

/* Tıklanabilir hücre */
.sm-cell-clickable {
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.sm-cell-clickable:hover {
  transform: scale(1.02);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.15);
}
.sm-cell-active {
  box-shadow: 0 0 0 2px #f1f5f9 !important;
}

/* Detay kartı */
.sm-detail-card {
  height: 100%;
  padding: 16px 18px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
}
.sm-detail-title {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  font-weight: 700;
  color: #71717a;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sm-detail-empty .sm-detail-placeholder {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 16px;
  gap: 12px;
}
.sm-detail-icon {
  font-size: 32px;
  opacity: 0.5;
}
.sm-detail-msg {
  font-size: 12px;
  color: #a1a1aa;
  font-weight: 600;
}
.sm-detail-msg-sub {
  font-size: 10px;
  color: #71717a;
  line-height: 1.5;
  max-width: 280px;
}

/* Detay içeriği */
.sm-dc-header {
  text-align: center;
  margin-bottom: 14px;
}
.sm-dc-band-name {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.sm-dc-band-meta {
  font-size: 10px;
  color: #71717a;
  font-family: var(--font-mono, monospace);
}
.sm-dc-price-block {
  text-align: center;
  padding: 14px 12px;
  background: rgba(241,245,249,0.04);
  border: 1px solid rgba(241,245,249,0.12);
  border-radius: 8px;
  margin-bottom: 14px;
}
.sm-dc-price-label {
  font-size: 10px;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.sm-dc-price-main {
  font-size: 26px;
  font-weight: 800;
  font-family: var(--font-mono, monospace);
  color: #ffffff;
  margin-bottom: 4px;
}
.sm-dc-price-upside {
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-mono, monospace);
  margin-bottom: 2px;
}
.sm-dc-price-upside.sm-up { color: #22c55e; }
.sm-dc-price-upside.sm-down { color: #ef4444; }
.sm-dc-price-vs {
  font-size: 9px;
  color: #71717a;
  font-family: var(--font-mono, monospace);
}
.sm-dc-section {
  margin-top: 12px;
  padding: 10px 12px;
  background: rgba(0,0,0,0.2);
  border-radius: 6px;
}
.sm-dc-section-title {
  font-size: 9px;
  font-weight: 700;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}
.sm-dc-pe-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}
.sm-dc-pe-cell {
  text-align: center;
  padding: 8px 4px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.06);
}
.sm-dc-pe-low { background: rgba(239,68,68,0.05); border-color: rgba(239,68,68,0.15); }
.sm-dc-pe-base { background: rgba(96,165,250,0.06); border-color: rgba(96,165,250,0.2); }
.sm-dc-pe-high { background: rgba(34,197,94,0.05); border-color: rgba(34,197,94,0.15); }
.sm-dc-pe-label {
  font-size: 9px;
  color: #71717a;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.sm-dc-pe-price {
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-mono, monospace);
  color: #f1f5f9;
}
.sm-dc-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 5px 0;
  font-size: 11px;
}
.sm-dc-label {
  color: #71717a;
}
.sm-dc-val {
  color: #d4d4d8;
  font-family: var(--font-mono, monospace);
  font-weight: 600;
}
.sm-dc-val.sm-up { color: #22c55e; }
.sm-dc-val.sm-down { color: #ef4444; }
.sm-dc-sub {
  font-size: 9px;
  color: #52525b;
  font-style: italic;
  margin: -2px 0 4px;
  padding-left: 4px;
}
.sm-dc-condition {
  background: rgba(96,165,250,0.04);
  border: 1px solid rgba(96,165,250,0.15);
}
.sm-dc-condition-text {
  font-size: 11px;
  color: #93c5fd;
  line-height: 1.6;
  font-style: italic;
}

/* S119 Part 4 — Yatırım Projeleri tek tablo, zaman gruplarına bölünmüş */
.ui-panel-subtitle {
  font-size: 11px;
  color: #71717a;
  margin: 4px 0 12px;
  line-height: 1.5;
  font-style: italic;
}
.gca-table {
  width: 100%;
  border-collapse: collapse;
}
.gca-group-row td {
  padding: 14px 10px 8px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.gca-group-row .gca-group-icon { font-size: 14px; margin-right: 8px; }
.gca-group-row .gca-group-label {
  font-size: 10px;
  font-weight: 700;
  color: #d4d4d8;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-right: 10px;
}
.gca-group-row .gca-group-count {
  font-size: 10px;
  color: #71717a;
  font-family: var(--font-mono, monospace);
  background: rgba(255,255,255,0.06);
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 12px;
}
.gca-group-row .gca-group-intro {
  font-size: 11px;
  color: #a1a1aa;
  font-style: italic;
}
.gca-group-row.gca-now td { background: rgba(34,197,94,0.03); border-left: 2px solid #22c55e; }
.gca-group-row.gca-soon td { background: rgba(234,179,8,0.03); border-left: 2px solid #eab308; }
.gca-group-row.gca-mid td { background: rgba(96,165,250,0.03); border-left: 2px solid #60a5fa; }
.gca-group-row.gca-long td { background: rgba(113,113,122,0.03); border-left: 2px solid #71717a; }

/* Affected line cell */
.gca-affected {
  font-size: 10px;
  font-weight: 600;
  text-align: center;
  padding: 4px 8px;
  white-space: nowrap;
}
.gca-aff-rev { color: #86efac; }
.gca-aff-cost { color: #fcd34d; }
.gca-aff-margin { color: #93c5fd; }
.gca-aff-multi { color: #a1a1aa; }

.sa-mp-position {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px 16px;
  margin: 14px 0;
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
  border-left: 3px solid currentColor;
}
.mp-above .sa-mp-position { color: #22c55e; }
.mp-mid-high .sa-mp-position { color: #60a5fa; }
.mp-mid-low .sa-mp-position { color: #f59e0b; }
.mp-below .sa-mp-position { color: #ef4444; }

.sa-mp-position-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #71717a;
  font-weight: 600;
}
.sa-mp-position-value {
  font-size: 14px;
  font-weight: 700;
  color: currentColor;
}
.sa-mp-signal {
  font-size: 12px;
  color: #d4d4d8;
  line-height: 1.7;
  text-align: justify;
  padding: 4px 6px;
}
@media (max-width: 1200px) {
  .sa-mp-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 800px) {
  .sa-mp-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Refining Margin */
.rm-section {
  margin-bottom: 12px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
}
.rm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.rm-title {
  font-family: var(--font-mono, monospace);
  font-size: 9px;
  font-weight: 700;
  color: #71717a;
  letter-spacing: 1px;
}
.rm-trend { font-size: 11px; font-weight: 700; }
.rm-body { display: flex; flex-direction: column; gap: 4px; }
.rm-row, .rm-avg {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-family: var(--font-mono, monospace);
}
.rm-product { color: #a1a1aa; min-width: 100px; }
.rm-val { color: #9ca3af; }
.rm-arrow { color: #52525b; font-size: 10px; }
.rm-change { font-size: 10px; font-weight: 600; }
.rm-avg { padding-top: 6px; border-top: 1px solid rgba(255,255,255,0.06); margin-top: 4px; }
.rm-note { font-size: 9px; color: #3f3f46; margin-top: 6px; }

/* Key Drivers */
.kd-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.kd-title {
  font-family: var(--font-mono, monospace);
  font-size: 9px;
  font-weight: 700;
  color: #71717a;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.kd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}
.kd-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 10px 12px;
}
.kd-card.kd-qualitative {
  border-style: dashed;
  opacity: 0.6;
}
.kd-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.kd-signal { font-size: 12px; font-weight: 700; }
.kd-name { font-size: 11px; font-weight: 600; color: #d4d4d8; flex: 1; }
.kd-trend { font-size: 9px; font-weight: 600; }
.kd-values {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  margin-bottom: 6px;
}
.kd-prev { color: #6b7280; }
.kd-arrow { color: #52525b; font-size: 10px; }
.kd-cur { font-weight: 600; }
.kd-change { font-size: 10px; }
.kd-pct { font-size: 10px; font-weight: 700; margin-left: 2px; }
.kd-note {
  font-size: 9px;
  color: #52525b;
  line-height: 1.4;
}
.kd-tag {
  font-size: 8px;
  color: #52525b;
  margin-top: 4px;
  font-style: italic;
}

@media (max-width: 768px) {
  .qp-body { grid-template-columns: 1fr; }
  .qp-summary { grid-template-columns: 1fr 1fr; }
  .kd-grid { grid-template-columns: 1fr; }
}

/* ================================================================ */
/* Scenario Panel                                                    */
/* ================================================================ */
.sc-panel {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 16px 20px;
  margin-top: 16px;
}
.sc-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}
.sc-title {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 700;
  color: #a78bfa;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.sc-subtitle { font-size: 10px; color: #52525b; }
.sc-cards { display: flex; flex-direction: column; gap: 12px; }
.sc-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 14px 16px;
}
.sc-sev-crit { border-left: 3px solid #ef4444; }
.sc-sev-high { border-left: 3px solid #f97316; }
.sc-sev-med { border-left: 3px solid #eab308; }
.sc-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.sc-card-sev {
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  cursor: help;
}
/* S119 Part 3: global severity mini badge (firma-spesifik farkı görünür) */
.sc-sev-global {
  font-size: 8px;
  font-weight: 600;
  color: #fff;
  padding: 1px 4px;
  border-radius: 2px;
  opacity: 0.85;
}
.sc-sev-global::before { content: "G:"; opacity: 0.6; margin-right: 2px; }
/* S119 Part 3: link reasons (matched KG entities) */
.sc-link-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  margin: 6px 0 10px 0;
  font-size: 9px;
}
.sc-link-label {
  color: #52525b;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-right: 4px;
}
.sc-link-tag {
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  color: #67e8f9;
  padding: 1px 6px;
  border-radius: 3px;
  font-family: var(--font-mono, monospace);
  font-size: 9px;
  cursor: help;
}
.sc-link-tag:hover {
  background: rgba(0, 212, 255, 0.15);
  border-color: rgba(0, 212, 255, 0.4);
}
/* S119 Part 3: lifecycle timeline toggle button */
.sc-timeline-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  color: #a1a1aa;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 11px;
  cursor: pointer;
  line-height: 1;
}
.sc-timeline-btn:hover {
  background: rgba(0, 212, 255, 0.08);
  border-color: rgba(0, 212, 255, 0.3);
  color: #67e8f9;
}
.sc-timeline-container {
  margin-top: 10px;
  padding: 8px 10px;
  background: rgba(0,0,0,0.2);
  border-left: 2px solid rgba(0, 212, 255, 0.3);
  border-radius: 4px;
}
.sc-timeline-header {
  font-size: 9px;
  font-weight: 700;
  color: #52525b;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.sc-tl-row {
  display: grid;
  grid-template-columns: 20px 90px 1fr 110px;
  gap: 6px;
  align-items: center;
  padding: 3px 0;
  font-size: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.sc-tl-row:last-child { border-bottom: none; }
.sc-tl-icon { text-align: center; }
.sc-tl-label { color: #a1a1aa; font-weight: 600; }
.sc-tl-reason { color: #71717a; font-size: 9px; }
.sc-tl-when { color: #52525b; font-family: var(--font-mono, monospace); text-align: right; font-size: 9px; }
.sc-timeline-loading, .sc-timeline-empty, .sc-timeline-error {
  color: #71717a;
  font-size: 10px;
  font-style: italic;
  padding: 4px 0;
}
.sc-timeline-error { color: #ef4444; }
.sc-card-title {
  font-size: 12px;
  font-weight: 600;
  color: #d4d4d8;
  flex: 1;
}
.sc-card-esc {
  font-size: 9px;
  color: #71717a;
  font-style: italic;
}
.sc-card-summary {
  font-size: 11px;
  color: #71717a;
  line-height: 1.5;
  margin-bottom: 10px;
}
.sc-impact-table {
  background: rgba(0,0,0,0.15);
  border-radius: 6px;
  padding: 6px 8px;
  margin-bottom: 10px;
}
.sc-impact-row {
  display: grid;
  grid-template-columns: 1fr 40px 110px 65px 70px;
  gap: 6px;
  align-items: center;
  padding: 3px 0;
  font-size: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.sc-impact-row:last-child { border-bottom: none; }
.sc-imp-name { color: #a1a1aa; font-weight: 500; }
.sc-imp-dir { color: #52525b; font-size: 9px; text-align: center; }
.sc-imp-price { color: #6b7280; font-family: var(--font-mono, monospace); text-align: right; }
.sc-imp-pct { font-family: var(--font-mono, monospace); font-weight: 600; text-align: right; }
.sc-imp-btl { font-family: var(--font-mono, monospace); font-weight: 600; color: #9ca3af; text-align: right; }
.sc-card-analysis {
  color: #a1a1aa;
  font-size: 12px;
  line-height: 1.6;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.sc-para { margin: 0 0 6px 0; }
.sc-para:last-child { margin-bottom: 0; }
.sc-overview {
  background: rgba(167,139,250,0.05);
  border: 1px solid rgba(167,139,250,0.15);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 14px;
}
.sc-overview-label {
  font-family: var(--font-mono, monospace);
  font-size: 9px;
  font-weight: 700;
  color: #a78bfa;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}
.sc-overview-body {
  color: #d4d4d8;
  font-size: 12px;
  line-height: 1.7;
}
.sc-prev {
  background: rgba(255,255,255,0.02);
  border: 1px dashed rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 14px;
}
.sc-prev-label {
  font-family: var(--font-mono, monospace);
  font-size: 8px;
  font-weight: 700;
  color: #52525b;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}
.sc-prev-overview {
  font-size: 11px;
  color: #6b7280;
  line-height: 1.5;
  margin-bottom: 8px;
}
.sc-prev-changes-label {
  font-size: 8px;
  color: #52525b;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.sc-prev-change {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  padding: 2px 0;
}
.sc-prev-driver { color: #a1a1aa; font-weight: 500; min-width: 140px; }
.sc-prev-no-change { font-size: 9px; color: #3f3f46; font-style: italic; }
.sc-cards-label {
  font-family: var(--font-mono, monospace);
  font-size: 9px;
  font-weight: 700;
  color: #52525b;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}
.sc-footer {
  font-size: 9px;
  color: #3f3f46;
  margin-top: 10px;
  text-align: right;
}

/* ================================================================ */
/* Feed Mode Toggle (Event/Storyline)                                */
/* ================================================================ */
.lf-mode-toggle { display: flex; gap: 0; margin-right: 8px; }
.lf-mode-btn {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  color: #6b7280;
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.lf-mode-btn:first-child { border-radius: 4px 0 0 4px; }
.lf-mode-btn:last-child { border-radius: 0 4px 4px 0; border-left: none; }
.lf-mode-btn.lf-mode-active {
  background: rgba(59,130,246,0.15);
  color: #3b82f6;
  border-color: rgba(59,130,246,0.3);
}
.lf-mode-btn:hover:not(.lf-mode-active) { background: rgba(255,255,255,0.06); color: #a1a1aa; }

/* Storyline toggle button — toolbar sol taraf */
.lf-sl-btn {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  color: #6b7280;
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 5px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}
.lf-sl-btn:hover { background: rgba(59,130,246,0.1); color: #93c5fd; }
.lf-sl-btn.lf-col-active { background: rgba(59,130,246,0.15); color: #3b82f6; border-color: rgba(59,130,246,0.3); }

/* ================================================================ */
/* Storyline Feed — 2 sütun grid + collapsable                       */
.sl-feed-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 900px) { .sl-feed-grid { grid-template-columns: 1fr; } }

/* Storyline Feed Cards                                              */
/* ================================================================ */
.sl-feed-group { margin-bottom: 16px; }
.sl-feed-group-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px; margin-bottom: 8px;
  background: rgba(255,255,255,0.02);
}
.sl-feed-group-name { font-size: 12px; font-weight: 700; color: #e4e4e7; letter-spacing: 0.5px; }
.sl-feed-group-right { display: flex; align-items: center; gap: 8px; }
.sl-feed-group-count { font-size: 10px; color: #6b7280; }
.sl-feed-chevron { font-size: 12px; color: #52525b; transition: transform 0.2s; }
.sl-feed-group-header { cursor: pointer; user-select: none; }
.sl-feed-group-header:hover { background: rgba(255,255,255,0.04); }
.sl-feed-group-body { transition: max-height 0.3s ease; overflow: hidden; }
.sl-collapsed .sl-feed-group-body { max-height: 0 !important; }
.sl-collapsed .sl-feed-chevron { transform: rotate(-90deg); }
.sl-feed-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 6px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.sl-feed-card:hover { border-color: rgba(59,130,246,0.3); }
.sl-feed-card-header { display: flex; align-items: center; gap: 8px; }
.sl-feed-sev { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.sl-feed-title { font-size: 13px; font-weight: 600; color: #e4e4e7; flex: 1; }
.sl-feed-esc { font-size: 14px; color: #6b7280; }
.sl-feed-meta { display: flex; gap: 12px; margin-top: 4px; padding-left: 16px; }
.sl-feed-actors { font-size: 10px; color: #9ca3af; }
.sl-feed-stats { font-size: 10px; color: #52525b; }
.sl-feed-summary { font-size: 11px; color: #6b7280; margin-top: 6px; padding-left: 16px; line-height: 1.5; }
.lf-empty { text-align: center; color: #52525b; padding: 40px; font-size: 13px; }

/* Storyline card expand detail */
.lf-sl-detail { border-top: 1px solid rgba(255,255,255,0.06); margin-top: 8px; padding-top: 8px; }
.lf-sl-clusters { display: flex; flex-direction: column; gap: 4px; }
.lf-sl-cluster { display: flex; gap: 8px; font-size: 10px; padding: 3px 0; }
.lf-sl-cluster-time { color: #52525b; white-space: nowrap; min-width: 70px; }
.lf-sl-cluster-text { color: #9ca3af; line-height: 1.4; }
.lf-card-sl .lf-card-body { font-size: 11px; line-height: 1.5; }
.lf-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.lf-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.lf-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }

/* ================================================================ */
/* Detail Panels (Tesisler, Tedarik, Satış, CAPEX, Regülasyon)      */
/* ================================================================ */
.vc-detail-panels { margin-top: 24px; }
.dp-section { margin-bottom: 20px; margin-top: 20px; }
.dp-title { font-size: 13px; font-weight: 700; color: #a1a1aa; letter-spacing: 1.2px; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.06); }

/* Tesisler grid */
.dp-grid { display: grid; gap: 10px; }
.dp-grid-1 { grid-template-columns: 1fr; }
.dp-grid-2 { grid-template-columns: 1fr 1fr; }
.dp-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.dp-grid-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
.dp-card { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06); border-radius: 8px; padding: 12px; }
.dp-card-name { font-size: 13px; font-weight: 700; color: #e4e4e7; }
.dp-card-loc { font-size: 10px; color: #6b7280; margin-bottom: 4px; }
.dp-card-val { font-size: 14px; font-weight: 700; color: #3b82f6; font-family: var(--font-mono, monospace); }
.dp-card-note { font-size: 10px; color: #52525b; margin-top: 4px; }
.dp-card-extra { font-size: 9px; color: #4b5563; margin-top: 4px; }

/* Tedarik KPI */
.dp-kpi-row { display: flex; gap: 10px; flex-wrap: wrap; }
.dp-kpi { flex: 1; min-width: 100px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06); border-radius: 8px; padding: 10px; text-align: center; }
.dp-kpi-val { display: block; font-size: 16px; font-weight: 700; color: #e4e4e7; font-family: var(--font-mono, monospace); }
.dp-kpi-lbl { display: block; font-size: 9px; color: #6b7280; text-transform: uppercase; letter-spacing: 0.3px; margin-top: 2px; }

/* Satış tablosu */
.dp-sales-tbl { width: 100%; border-collapse: collapse; font-size: 11px; }
.dp-sales-tbl thead th { font-size: 9px; color: #52525b; text-transform: uppercase; letter-spacing: 0.3px; padding: 4px 6px; text-align: right; border-bottom: 1px solid rgba(255,255,255,0.08); font-weight: 600; }
.dp-sales-tbl thead th:first-child { text-align: left; }
.dp-sales-tbl thead th:nth-child(6) { text-align: center; }
.dp-sales-tbl tbody td { padding: 5px 6px; border-bottom: 1px solid rgba(255,255,255,0.03); }
.dp-sales-tbl tfoot td { padding: 6px; border-top: 1px solid rgba(255,255,255,0.08); }
.dp-stbl-name { color: #a1a1aa; font-weight: 500; }
.dp-stbl-num { text-align: right; color: #9ca3af; font-family: var(--font-mono, monospace); font-size: 11px; }
.dp-stbl-slider { display: flex; align-items: center; gap: 4px; min-width: 110px; }
.dp-slider { width: 70px; height: 4px; -webkit-appearance: none; appearance: none; background: #1a1a2e; border-radius: 2px; outline: none; cursor: pointer; }
.dp-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 10px; height: 10px; background: #3b82f6; border-radius: 50%; cursor: pointer; }
.dp-slider-val { font-size: 9px; color: #6b7280; font-family: var(--font-mono, monospace); min-width: 28px; text-align: right; }
.dp-stbl-impact { text-align: right; font-weight: 600; font-family: var(--font-mono, monospace); font-size: 11px; }
.dp-up { color: #22c55e; }
.dp-down { color: #ef4444; }
.dp-cost-save { color: #3b82f6; }

/* Dağıtıcı payları — kompakt chip */
.dp-dist-inline { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.dp-dist-chip { font-size: 10px; color: #9ca3af; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 4px; padding: 2px 8px; }

/* CAPEX projeleri */
.dp-capex-list { display: flex; flex-direction: column; gap: 8px; }
.dp-capex-item { display: flex; align-items: flex-start; gap: 10px; padding: 8px 12px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06); border-radius: 8px; }
.dp-capex-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; }
.dp-capex-info { flex: 1; }
.dp-capex-name { font-size: 12px; font-weight: 600; color: #e4e4e7; }
.dp-capex-meta { font-size: 10px; color: #6b7280; margin-top: 1px; }
.dp-capex-cap { font-size: 10px; color: #3b82f6; margin-top: 1px; }
.dp-capex-status { font-size: 10px; font-weight: 600; white-space: nowrap; }
.dp-capex-impact { font-size: 10px; color: #3b82f6; margin-top: 2px; font-style: italic; }

/* CAPEX tablo formatı */
.dp-capex-tbl { width: 100%; border-collapse: collapse; font-size: 11px; }
.dp-capex-tbl thead th { font-size: 9px; color: #52525b; letter-spacing: 0.3px; padding: 4px 6px; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.08); font-weight: 600; }
.dp-capex-tbl tbody td { padding: 6px; border-bottom: 1px solid rgba(255,255,255,0.03); vertical-align: top; }
.dp-ctbl-name { color: #e4e4e7; font-weight: 600; }
.dp-ctbl-loc { color: #6b7280; font-size: 10px; }
.dp-ctbl-date { color: #9ca3af; font-family: var(--font-mono, monospace); }
.dp-ctbl-inv { color: #9ca3af; font-family: var(--font-mono, monospace); text-align: right; }
.dp-ctbl-cap { color: #3b82f6; font-size: 10px; }
.dp-ctbl-impact { font-size: 10px; max-width: 180px; }
.dp-ctbl-status { font-size: 10px; font-weight: 600; white-space: nowrap; }

/* Rafinaj marjı notu (S117) */
.qp-note { font-size: 11px; color: #6b7280; padding: 8px 0; border-top: 1px solid rgba(255,255,255,0.04); font-family: var(--font-mono, monospace); }

/* Kur etkisi strip (S117) */
.qp-fx-strip { display: flex; gap: 16px; align-items: center; padding: 10px 12px; margin: 8px 0; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06); border-radius: 6px; font-size: 11px; color: #9ca3af; flex-wrap: wrap; }
.qp-fx-strip b { color: #e4e4e7; }
.qp-fx-strip-title { font-size: 9px; font-weight: 700; color: #52525b; letter-spacing: 1px; text-transform: uppercase; }

/* Özet strip (S117) */
.qp-summary-strip { margin: 12px 0; }
.qp-ss-row { display: flex; gap: 20px; padding: 8px 0; font-size: 12px; color: #9ca3af; border-bottom: 1px solid rgba(255,255,255,0.04); }
.qp-ss-item b { font-family: var(--font-mono, monospace); }
.qp-ss-result { display: flex; gap: 24px; padding: 10px 0; font-size: 13px; color: #e4e4e7; border-left: 3px solid; padding-left: 12px; margin-top: 8px; }
.qp-ss-result b { font-family: var(--font-mono, monospace); }

/* Proxy source tag */
.qp-src-proxy { background: rgba(139,92,246,0.15); color: #a78bfa; border-color: rgba(139,92,246,0.25); }

/* Rekabet & Fiyatlama (S117) */
.dp-two-col { display: flex; gap: 24px; }
.dp-col { flex: 1; }
.dp-col-title { font-size: 10px; font-weight: 700; color: #52525b; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; }
.dp-adv-list { list-style: none; padding: 0; margin: 0; }
.dp-adv-list li { font-size: 11px; color: #d4d4d8; padding: 3px 0; padding-left: 12px; position: relative; line-height: 1.4; }
.dp-adv-list li::before { content: '▸'; position: absolute; left: 0; color: #22c55e; }
.dp-pricing-item { font-size: 11px; color: #d4d4d8; margin-bottom: 6px; line-height: 1.4; }
.dp-pricing-label { font-weight: 600; color: #9ca3af; }

@media (max-width: 768px) {
  .dp-two-col { flex-direction: column; }
}

/* Process Flow zoom */
.pf-zoom-controls { display: flex; gap: 4px; justify-content: flex-end; margin-bottom: 8px; }
.pf-zoom-btn { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); color: #9ca3af; width: 28px; height: 28px; border-radius: 6px; font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.pf-zoom-btn:hover { background: rgba(255,255,255,0.12); color: #e4e4e7; }
.pf-zoom-wrap { transform-origin: top center; transition: transform 0.15s ease; overflow: auto; max-height: 80vh; cursor: grab; }

/* ── Finansal Tablolar (S117) ── */
.fin-page { max-width: 1100px; margin: 0 auto; padding: 30px 20px; overflow-y: auto; }
.fin-header { margin-bottom: 20px; display: flex; align-items: center; justify-content: space-between; }
.fin-title { font-size: 22px; font-weight: 700; color: #e4e4e7; margin: 0; }
.fin-controls { display: flex; gap: 10px; align-items: center; }
.fin-company-select { background: #1a1a2e; color: #e4e4e7; border: 1px solid rgba(255,255,255,0.12); padding: 6px 12px; border-radius: 6px; font-size: 13px; font-weight: 600; cursor: pointer; min-width: 160px; }
.fin-company-select:focus { outline: none; border-color: #00d4ff; }
.fin-company-select option { background: #1a1a2e; color: #e4e4e7; }
.fin-tabs { display: flex; gap: 4px; margin-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.08); padding-bottom: 8px; }
.fin-tab-btn { background: none; border: none; color: #6b7280; font-size: 12px; font-weight: 600; padding: 6px 14px; cursor: pointer; border-radius: 4px 4px 0 0; text-transform: uppercase; letter-spacing: 0.5px; }
.fin-tab-btn:hover { color: #d4d4d8; background: rgba(255,255,255,0.04); }
.fin-tab-active { color: #00d4ff; border-bottom: 2px solid #00d4ff; }
.fin-detail-toggle { margin-left: auto; display: flex; gap: 0; border: 1px solid rgba(255,255,255,0.1); border-radius: 4px; overflow: hidden; }
.fin-toggle-btn { background: none; border: none; color: #6b7280; font-size: 11px; font-weight: 600; padding: 4px 12px; cursor: pointer; letter-spacing: 0.3px; transition: all 0.15s; }
.fin-toggle-btn:hover { color: #d4d4d8; background: rgba(255,255,255,0.04); }
.fin-toggle-active { color: #0a0a0f; background: #00d4ff !important; }
.fin-row-detail td { opacity: 0.85; }
.fin-row-detail .fin-td-label { padding-left: 34px; color: #7c8199; font-size: 11px; font-style: italic; }
.fin-row-clickable { cursor: pointer; }
.fin-row-clickable:hover td { background: rgba(0, 212, 255, 0.06); }
.fin-row-selected td { background: rgba(0, 212, 255, 0.10) !important; }
.fin-row-selected .fin-td-label::before { content: '● '; font-size: 8px; vertical-align: middle; }
.fin-commentary-box { margin-top: 14px; background: linear-gradient(135deg, rgba(0,212,255,0.03), rgba(16,16,26,0.8)); border: 1px solid rgba(0,212,255,0.12); border-radius: 8px; padding: 16px 20px; }
.fin-commentary-header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.fin-commentary-badge { font-size: 9px; font-weight: 700; color: #00d4ff; background: rgba(0,212,255,0.12); padding: 2px 8px; border-radius: 3px; text-transform: uppercase; letter-spacing: 0.5px; }
.fin-commentary-date { font-size: 9px; color: #52525b; margin-left: auto; }
.fin-commentary-body { font-size: 12px; line-height: 1.7; color: #b4b8cc; }
.fin-commentary-body strong, .fin-commentary-body b { color: #e4e4e7; font-weight: 600; }
.fin-commentary-body em, .fin-commentary-body i { color: #9ca3af; }
.fin-commentary-body ul { margin: 6px 0; padding-left: 18px; }
.fin-commentary-body li { margin: 3px 0; }
.fin-commentary-body p { margin: 6px 0; }
.fin-commentary-empty { color: #52525b; font-size: 11px; font-style: italic; }
.fin-footnotes-wrap { padding: 8px 0; }
.fin-footnotes-section { margin-bottom: 16px; }
.fin-footnotes-title { font-size: 11px; font-weight: 700; color: #00d4ff; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; border-bottom: 1px solid rgba(0,212,255,0.1); padding-bottom: 4px; }
.fin-chart-area { margin-top: 16px; background: var(--bg-card, #111119); border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; padding: 16px; }
.fin-chart-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.fin-chart-title { color: #9ca3af; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.fin-chart-close { background: none; border: 1px solid rgba(255,255,255,0.1); color: #6b7280; font-size: 10px; padding: 3px 10px; border-radius: 4px; cursor: pointer; }
.fin-chart-close:hover { color: #ef4444; border-color: rgba(239,68,68,0.3); }
.fin-content { min-height: 300px; }
.fin-empty { color: #6b7280; text-align: center; padding: 60px 0; font-size: 14px; }
.fin-loading { color: #9ca3af; text-align: center; padding: 60px 0; }
.fin-section-note { font-size: 10px; color: #52525b; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.5px; }
.fin-table-wrap { overflow-x: auto; max-height: calc(100vh - 200px); overflow-y: auto; }
.fin-tbl { width: 100%; border-collapse: collapse; font-size: 12px; font-family: var(--font-mono, monospace); }
.fin-tbl thead { border-bottom: 2px solid rgba(255,255,255,0.1); }
.fin-tbl thead th { position: sticky; top: 0; background: #0a0a0f; z-index: 2; }
.fin-th-label { text-align: left; padding: 6px 10px; color: #6b7280; font-size: 10px; font-weight: 600; text-transform: uppercase; }
.fin-th-year { text-align: right; padding: 6px 10px; color: #9ca3af; font-size: 11px; font-weight: 700; min-width: 80px; }
.fin-td-label { text-align: left; padding: 5px 10px; color: #d4d4d8; font-family: var(--font-sans, sans-serif); font-size: 12px; white-space: nowrap; position: sticky; left: 0; background: #0a0a0f; z-index: 1; }
.fin-th-label { position: sticky; left: 0; z-index: 3; background: #0a0a0f; }
.fin-td-val { text-align: right; padding: 5px 10px; color: #e4e4e7; }
.fin-row-total td { font-weight: 700; border-top: 1px solid rgba(255,255,255,0.08); }
.fin-row-total .fin-td-label { color: #e4e4e7; }
.fin-row-sub .fin-td-label { padding-left: 24px; color: #9ca3af; font-size: 11px; }
.fin-row-sub .fin-td-val { color: #9ca3af; }
.fin-tbl tbody tr:hover { background: rgba(255,255,255,0.02); }
.fin-tbl tbody tr:hover .fin-td-label { background: #0f0f14; }
.fin-ratio-section { margin-bottom: 24px; }
.fin-ratio-title { font-size: 10px; font-weight: 700; color: #00d4ff; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 8px; padding-bottom: 4px; border-bottom: 1px solid rgba(0,212,255,0.15); }

/* Düzenleyici riskler */
.dp-reg-list { display: flex; flex-direction: column; gap: 6px; }
.dp-reg-item { display: flex; align-items: flex-start; gap: 10px; padding: 8px 12px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06); border-radius: 8px; }
.dp-reg-badge { font-size: 9px; font-weight: 700; color: #fff; padding: 2px 6px; border-radius: 3px; white-space: nowrap; }
.dp-reg-info { flex: 1; }
.dp-reg-name { font-size: 12px; font-weight: 600; color: #e4e4e7; }
.dp-reg-note { font-size: 10px; color: #6b7280; margin-top: 1px; }

/* Spread Analysis (S118) */
.sa-section { margin: 6px 0; background: rgba(0,0,0,0.25); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; overflow: hidden; }
.sa-header { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px; background: rgba(255,255,255,0.03); border-bottom: 1px solid rgba(255,255,255,0.06); cursor: pointer; user-select: none; transition: background 0.15s; }
.sa-header:hover { background: rgba(255,255,255,0.05); }
.sa-title { font-size: 11px; font-weight: 700; color: #d1d5db; letter-spacing: 0.5px; font-family: var(--font-mono, monospace); }
.sa-title::before { content: '▼ '; font-size: 8px; color: #6b7280; margin-right: 4px; }
.sa-section.sa-collapsed .sa-title::before { content: '▶ '; }
.sa-section.sa-collapsed > *:not(.sa-header) { display: none; }
.sa-section.sa-collapsed .sa-header { border-bottom: none; }
.sa-no-collapse .sa-title::before { display: none; }
.sa-no-collapse .sa-header:hover { background: rgba(255,255,255,0.03); }
.sa-trend {
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-sans);  /* monospace yerine Inter/sans-serif — sayı+metin karışımı daha okunabilir */
  letter-spacing: 0.1px;
}
.sa-table { padding: 8px 14px; }
.sa-row { display: grid; grid-template-columns: 1.8fr 0.8fr 0.3fr 0.8fr 1.2fr 0.8fr; align-items: center; gap: 4px; padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,0.03); }
.sa-row-header { font-size: 9px; font-weight: 600; color: #6b7280; text-transform: uppercase; border-bottom: 1px solid rgba(255,255,255,0.08); padding-bottom: 6px; margin-bottom: 2px; }
.sa-row-total { border-top: 1px solid rgba(255,255,255,0.1); border-bottom: none; padding-top: 8px; margin-top: 4px; }
.sa-name { font-size: 12px; color: #e4e4e7; }
.sa-weight { font-size: 9px; color: #6b7280; margin-left: 4px; }
.sa-val { font-size: 12px; color: #d4d4d8; font-family: 'JetBrains Mono', monospace; text-align: right; }
.sa-arrow { font-size: 10px; color: #6b7280; text-align: center; }
.sa-chg { font-size: 11px; font-family: 'JetBrains Mono', monospace; text-align: right; }
.sa-impact { font-size: 12px; font-family: 'JetBrains Mono', monospace; font-weight: 600; text-align: right; }
.sa-extras { padding: 8px 14px; border-top: 1px solid rgba(255,255,255,0.05); }
.sa-extra-row { display: flex; justify-content: space-between; padding: 3px 0; font-size: 12px; color: #a1a1aa; }
.sa-extra-total { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 6px; margin-top: 4px; font-size: 13px; }
.sa-note { padding: 8px 14px; font-size: 10px; color: #6b7280; border-top: 1px solid rgba(255,255,255,0.03); }

/* Spread non-spread section */
.sa-nonspread-body { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: start; }
.sa-nonspread-col { padding: 8px 10px; }
.sa-nonspread-col:first-child { border-right: 1px solid rgba(255,255,255,0.05); }
.sa-nonspread-label { font-size: 9px; font-weight: 700; color: #6b7280; letter-spacing: 0.5px; margin-bottom: 8px; text-transform: uppercase; height: 16px; }
.sa-nonspread-col .qp-row .qp-q1q2 { display: none; }
.sa-nonspread-col .qp-row-header .qp-q1q2 { display: none; }
.sa-nonspread-col .qp-row {
  height: 52px;
  display: flex;
  align-items: center;
  padding: 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  box-sizing: border-box;
  gap: 8px;
}
.sa-nonspread-col .qp-row .qp-name { flex: 1 1 0; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sa-nonspread-col .qp-row .qp-pct  { flex: 0 0 65px; text-align: right; }
.sa-nonspread-col .qp-row .qp-impact { flex: 0 0 75px; text-align: right; white-space: nowrap; }
.sa-nonspread-col .qp-row.qp-row-header {
  height: 36px;
  padding-bottom: 6px;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sa-nonspread-col .qp-row:last-child {
  border-bottom: none;
}
.sa-nonspread-col {
  display: flex;
  flex-direction: column;
}
.sa-nonspread-col .qp-row.qp-row-total {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: auto;
  padding-top: 6px;
  border-bottom: none;
}
.sa-nonspread-col .qp-row.qp-row-total .qp-name {
  white-space: nowrap;
}
.sa-nonspread-col .qp-row + .qp-row-total {
  border-top: 1px solid rgba(255,255,255,0.1);
}
.sa-nonspread-col .qp-row:nth-last-child(2) {
  border-bottom: none;
}

/* Spread result section */
.sa-result-section { }
.sa-result-body { padding: 10px 14px; }
.sa-q1q2-compare { margin-bottom: 14px; border: 1px solid rgba(0,212,255,0.1); border-radius: 6px; padding: 10px 14px; background: rgba(0,212,255,0.02); }
.sa-q1q2-row { display: flex; align-items: center; padding: 4px 0; font-size: 12px; gap: 8px; }
.sa-q1q2-header { border-bottom: 1px solid rgba(255,255,255,0.06); padding-bottom: 6px; margin-bottom: 4px; }
.sa-q1q2-header .sa-q1q2-val { font-size: 10px; color: #6b7280; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; }
.sa-q1q2-label { flex: 0 0 80px; color: #9ca3af; font-weight: 500; }
.sa-q1q2-val { flex: 1 1 0; text-align: right; font-family: var(--font-mono); color: #d4d4d8; }
.sa-q1q2-arrow { flex: 0 0 20px; text-align: center; color: #4b5063; }
.sa-q1q2-delta { flex: 0 0 70px; text-align: right; font-family: var(--font-mono); font-weight: 600; }
.sa-q1q2-total { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 6px; margin-top: 4px; }
.sa-q1q2-total .sa-q1q2-label { font-weight: 700; color: #e4e4e7; }
.sa-result-line { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; font-size: 12px; color: #d4d4d8; }
.sa-result-line > span:first-child { color: #a1a1aa; flex: 1 1 0; min-width: 0; }
.sa-result-q1q2 { display: flex; align-items: center; gap: 4px; font-family: var(--font-mono); font-size: 12px; }
.sa-rq-val { width: 80px; text-align: right; flex-shrink: 0; }
.sa-rq-arrow { width: 16px; text-align: center; color: #4b5063; font-size: 10px; flex-shrink: 0; }
.sa-rq-delta { width: 90px; text-align: right; font-weight: 600; flex-shrink: 0; }
.sa-rq-marj { width: 70px; text-align: right; font-size: 11px; flex-shrink: 0; }
.sa-rq-header { color: #6b7280 !important; font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; }
.sa-result-line-header { padding-bottom: 6px; margin-bottom: 2px; }
.sa-result-subtotal { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 4px; margin-top: 2px; }
.sa-result-subtotal span:first-child { color: #e4e4e7; font-weight: 600; }
.sa-result-total { border-top: 2px solid rgba(255,255,255,0.12); padding-top: 6px; margin-top: 4px; }
.sa-result-total span:first-child { color: #fff; font-weight: 700; font-size: 13px; }

/* ─── FİNANSAL ANALİZ PANELİ (S120) — Piyasa Yorumu ile bütünleşik ─── */
/* Panel dış kabuğu: .dp-section + .sm-market-interp-text kullanılıyor (market interp ile aynı) */
.fa-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.fa-source {
  font-size: 10px;
  color: #6b7280;
  letter-spacing: 0.3px;
  font-style: italic;
}
.fa-loading {
  padding: 30px;
  text-align: center;
  color: #9ca3af;
  font-size: 12px;
}
.fa-tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 12px;
  overflow-x: auto;
}
.fa-tab-btn {
  padding: 8px 14px;
  background: transparent;
  color: #9ca3af;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  font-family: inherit;
}
.fa-tab-btn:hover { color: #f1f5f9; }
.fa-tab-active {
  color: #60a5fa !important;
  border-bottom-color: #60a5fa !important;
}
.fa-tab-content {
  font-size: 12px;
  color: #d4d4d8;
  line-height: 1.5;
}

/* Oranlar — kompakt grup tabanlı grid (3x2) */
.fa-ratio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 10px;
  background: rgba(0,0,0,0.2);
  border-radius: 6px;
}
.fa-ratio-group {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 5px;
  padding: 8px 10px;
}
.fa-ratio-group-title {
  font-size: 10px;
  letter-spacing: 1px;
  color: #60a5fa;
  font-weight: 700;
  text-transform: uppercase;
  padding-bottom: 5px;
  margin-bottom: 5px;
  border-bottom: 1px solid rgba(96,165,250,0.15);
}
.fa-ratio-line {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: baseline;
  padding: 3px 0;
  font-size: 11.5px;
  line-height: 1.4;
}
.fa-ratio-line-label {
  color: #9ca3af;
}
.fa-ratio-line-value {
  color: #f1f5f9;
  font-weight: 700;
  font-family: var(--font-mono, monospace);
  font-size: 12px;
}
.fa-ratio-line-trend {
  font-size: 10px;
  font-weight: 600;
  min-width: 52px;
  text-align: right;
}
.fa-ratio-trend {
  font-weight: 600;
}
.fa-ratio-trend.up { color: #22c55e; }
.fa-ratio-trend.down { color: #ef4444; }
.fa-ratio-trend.flat { color: #6b7280; }

/* SPK Yorumu — Piyasa Yorumu sm-headline tarzında */
.fa-commentary-box {
  padding: 10px 12px;
  background: rgba(96,165,250,0.06);
  border-radius: 6px;
  margin-bottom: 12px;
}
.fa-commentary-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.fa-commentary-period {
  font-size: 11px;
  color: #cbd5e1;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.fa-commentary-badge {
  font-size: 10px;
  color: #60a5fa;
  letter-spacing: 1px;
  font-weight: 700;
  background: rgba(96,165,250,0.1);
  padding: 2px 8px;
  border-radius: 3px;
}
.fa-commentary-date {
  font-size: 10px;
  color: #9ca3af;
}
.fa-commentary-body {
  color: #d4d4d8;
  line-height: 1.5;
  font-size: 12px;
}
.fa-commentary-body strong, .fa-commentary-body b { color: #f1f5f9; font-weight: 700; }
.fa-commentary-body ul {
  padding-left: 18px;
  margin: 6px 0;
  display: block;          /* parent flex/grid override */
  column-count: 2;
  column-gap: 32px;
  column-rule: 1px solid rgba(255,255,255,0.06);
  column-fill: balance;    /* explicit eşit dağıtım */
  -moz-column-fill: balance;
  orphans: 1;
  widows: 1;
}
.fa-commentary-body li {
  display: block;
  margin: 0 0 14px 0;
  break-inside: avoid-column;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  /* İlk madde top margin'ı sıfırla — kolon başında boşluk olmasın */
}
.fa-commentary-body li:first-child { margin-top: 0; }
/* Dar ekranda tek sütuna dön (laptop ve altı) */
@media (max-width: 1280px) {
  .fa-commentary-body ul { column-count: 1; column-rule: none; }
}
.fa-commentary-body h3, .fa-commentary-body h4 { margin: 8px 0 4px; color: #f1f5f9; }
.fa-commentary-empty {
  color: #9ca3af;
  font-size: 12px;
  padding: 16px;
  text-align: center;
  font-style: italic;
}

/* Grafik Oluşturucu — sm-context kutusu tarzında */
.fa-chart-builder {
  padding: 10px;
  background: rgba(0,0,0,0.2);
  border-radius: 6px;
}
.fa-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.fa-chart-title {
  font-size: 11px;
  letter-spacing: 1px;
  color: #9ca3af;
  font-weight: 600;
  text-transform: uppercase;
}
.fa-chart-options {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #9ca3af;
}
.fa-chart-options select {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: #d4d4d8;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  font-family: inherit;
}
.fa-chart-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 10px;
}

/* Kalem sütunu */
.fa-item-column {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  max-height: 380px;
}
.fa-item-column-header {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 10px;
  letter-spacing: 0.8px;
  color: #9ca3af;
  text-transform: uppercase;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.fa-item-count-badge {
  background: rgba(96,165,250,0.15);
  color: #60a5fa;
  padding: 1px 6px;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.fa-item-column-list {
  overflow-y: auto;
  padding: 4px 0;
  flex: 1;
}
.fa-item-column-list::-webkit-scrollbar { width: 6px; }
.fa-item-column-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
.fa-item-column-list::-webkit-scrollbar-track { background: transparent; }

.fa-item-row {
  padding: 6px 12px;
  color: #d4d4d8;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.1s;
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
  border-left: 2px solid transparent;
  line-height: 1.4;
}
.fa-item-row:hover {
  background: rgba(255,255,255,0.04);
  color: #f1f5f9;
}
.fa-item-row.active {
  background: rgba(96,165,250,0.08);
  color: #60a5fa;
  font-weight: 600;
  border-left-color: #60a5fa;
}
.fa-item-row input[type="checkbox"] {
  accent-color: #60a5fa;
  cursor: pointer;
  margin: 0;
  flex-shrink: 0;
}
.fa-item-label { flex: 1; }
.fa-item-group {
  font-size: 9px;
  color: #6b7280;
  text-transform: uppercase;
  flex-shrink: 0;
  letter-spacing: 0.3px;
}

.fa-chart-wrap {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 10px;
  height: 380px;
  position: relative;
  min-width: 0;
  overflow: hidden;
}
.fa-chart-wrap canvas { max-height: 100%; max-width: 100%; }

.fa-disclaimer {
  font-size: 10px;
  color: #6b7280;
  text-align: center;
  margin-top: 8px;
  font-style: italic;
  padding: 4px;
}

@media (max-width: 800px) {
  .fa-chart-layout {
    grid-template-columns: 1fr;
  }
  .fa-item-column {
    max-height: 200px;
  }
}

/* ─── FİRMA HABERLERİ PANELİ (S120) ─────────────────────────────── */
.cn-count {
  background: rgba(96,165,250,0.15);
  color: #60a5fa;
  padding: 1px 7px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  margin-left: 6px;
  vertical-align: middle;
  letter-spacing: 0.3px;
}
.cn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  padding: 10px;
  background: rgba(0,0,0,0.2);
  border-radius: 6px;
}
.cn-group {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 5px;
  padding: 8px 10px;
}
.cn-group-title {
  font-size: 10px;
  letter-spacing: 0.8px;
  color: #60a5fa;
  font-weight: 700;
  text-transform: uppercase;
  padding-bottom: 5px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(96,165,250,0.15);
}
.cn-event {
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.cn-event:last-child { border-bottom: none; }
.cn-event-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.cn-event-time {
  font-size: 10px;
  color: #6b7280;
  font-family: var(--font-mono, monospace);
}
.cn-badge {
  font-size: 9px;
  color: #9ca3af;
  background: rgba(255,255,255,0.05);
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.cn-event-headline {
  font-size: 11.5px;
  color: #d4d4d8;
  line-height: 1.45;
}

/* ================================================================== */
/* SIRALAMA TAB                                                        */
/* ================================================================== */

#tab-sb {
  overflow: hidden;
}
#tab-rank {
  overflow-y: auto;
}
.rank-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 16px;
}
.rank-header {
  margin-bottom: 20px;
}
.rank-title {
  font-size: 18px;
  font-weight: 600;
  color: #f4f4f5;
  margin: 0 0 6px;
}
.rank-subtitle {
  font-size: 12px;
  color: #71717a;
}
.rank-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border-bottom: 1px solid #27272a;
}
.rank-tab-btn {
  padding: 8px 20px;
  background: none;
  border: none;
  color: #71717a;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.rank-tab-btn:hover { color: #d4d4d8; }
.rank-tab-active {
  color: #f4f4f5;
  border-bottom-color: #3b82f6;
}
.rank-empty {
  text-align: center;
  color: #71717a;
  padding: 40px 0;
}
.rank-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.rank-table thead th {
  text-align: left;
  padding: 8px 10px;
  color: #a1a1aa;
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #27272a;
  white-space: nowrap;
}
.rank-th-pos { width: 36px; text-align: center; }
.rank-th-score { width: 54px; text-align: center; }
.rank-th-bar { width: 140px; }
.rank-th-loo, .rank-th-med { width: 70px; text-align: right; }
.rank-th-pairs { width: 60px; text-align: center; }
.rank-th-period { width: 180px; }
.rank-th-model { width: 100px; }

.rank-row {
  cursor: pointer;
  transition: background 0.15s;
}
.rank-row:hover {
  background: #18181b;
}
.rank-row td {
  padding: 10px 10px;
  border-bottom: 1px solid #1a1a1e;
  vertical-align: middle;
}
.rank-pos {
  text-align: center;
  color: #71717a;
  font-weight: 600;
  font-size: 12px;
}
.rank-ticker {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.rank-ticker-code {
  font-weight: 600;
  color: #f4f4f5;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
}
.rank-ticker-name {
  font-size: 11px;
  color: #71717a;
}
.rank-score {
  text-align: center;
  font-size: 15px;
  font-family: 'JetBrains Mono', monospace;
}
.rank-bar-cell {
  padding-right: 16px;
}
.rank-bar-bg {
  width: 100%;
  height: 8px;
  background: #27272a;
  border-radius: 4px;
  overflow: hidden;
}
.rank-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s ease;
}
.rank-loo, .rank-med {
  text-align: right;
  color: #a1a1aa;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}
.rank-pairs {
  text-align: center;
  color: #a1a1aa;
  font-size: 12px;
}
.rank-period {
  color: #71717a;
  font-size: 11px;
  white-space: nowrap;
}
/* Slider category headers — sm-v2-group-title (Rafinaj Marjı vb.) ile aynı tipografi */
.ms-cat-header {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #e5e7eb;
  padding: 8px 0 8px;
  margin-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.ms-cat-header:first-child {
  margin-top: 0;
  border-top: none;
  padding-top: 4px;
}

.sens-cat-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
  border-bottom: 1px solid #27272a;
  flex-wrap: wrap;
}
.sens-cat-btn {
  padding: 7px 16px;
  background: none;
  border: none;
  color: #71717a;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.15s;
  white-space: nowrap;
}
.sens-cat-btn:hover { color: #d4d4d8; }
.sens-cat-active { color: #f4f4f5; font-weight: 600; }
.sens-panel { animation: ctx-fade-in 0.2s ease; }
.sens-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #d4d4d8;
  white-space: nowrap;
}
.sens-gp-pct {
  color: #71717a;
  font-size: 10px;
}
.pot-price, .pot-implied {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #a1a1aa;
  white-space: nowrap;
}
.pot-implied { color: #d4d4d8; }
.pot-change {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  white-space: nowrap;
}
.pot-th { width: 80px; text-align: right; }
.pot-bar { padding-right: 8px; }
.pot-separator {
  text-align: center;
  color: #52525b;
  font-size: 11px;
  padding: 12px 0 6px;
  border-top: 1px dashed #27272a;
  letter-spacing: 0.5px;
}
.rank-model-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  background: #27272a;
  color: #a1a1aa;
  white-space: nowrap;
}

/* ── Auth Modal ── */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-modal {
  background: #13131f;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 28px 32px;
  width: 360px;
  max-width: 90vw;
  position: relative;
}
.auth-close {
  position: absolute;
  top: 10px; right: 14px;
  background: none;
  border: none;
  color: #6b7280;
  font-size: 20px;
  cursor: pointer;
  transition: color 0.15s;
}
.auth-close:hover { color: #e2e4e9; }
.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.auth-tab {
  flex: 1;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: #6b7280;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 0;
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 0.5px;
}
.auth-tab:hover { color: #d4d4d8; }
.auth-tab.active { color: #60a5fa; border-bottom-color: #60a5fa; }
.auth-error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: 4px;
  color: #ef4444;
  font-size: 11px;
  padding: 6px 10px;
  margin-bottom: 12px;
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.auth-input {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 5px;
  color: #e2e4e9;
  font-family: var(--font-sans);
  font-size: 12px;
  padding: 9px 12px;
  outline: none;
  transition: border-color 0.15s;
}
.auth-input:focus { border-color: #60a5fa; }
.auth-input::placeholder { color: #4b5063; }
.auth-submit {
  background: #3b82f6;
  border: none;
  border-radius: 5px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  padding: 9px;
  cursor: pointer;
  transition: background 0.15s;
  margin-top: 4px;
}
.auth-submit:hover { background: #2563eb; }
.auth-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: #4b5063;
  font-size: 10px;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.06);
}
.auth-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 5px;
  color: #d4d4d8;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  padding: 9px;
  cursor: pointer;
  transition: all 0.15s;
}
.auth-google-btn:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); }

/* ── Scenario Action Buttons ── */
.sc-action-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: #9ca3af;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.sc-action-btn:hover { background: rgba(255,255,255,0.08); color: #e2e4e9; }
.sc-compare-btn { border-color: rgba(96,165,250,0.3); color: #60a5fa; }
.sc-compare-btn:hover { background: rgba(96,165,250,0.1); }
.sc-action-btn--mini {
  font-size: 9px;
  padding: 3px 7px;
}
.sc-load-select--mini {
  font-size: 9px !important;
  padding: 3px 6px !important;
  min-width: 110px !important;
  height: auto !important;
}
.sc-scenario-row {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed rgba(255,255,255,0.06);
}
.sc-scenario-row .sc-save-input-row {
  display: flex;
  gap: 4px;
  align-items: center;
}

/* ── Compare Page ── */
.cmp-page { padding: 20px 24px; max-width: 1400px; margin: 0 auto; }
.cmp-header { margin-bottom: 20px; }
.cmp-title { font-size: 16px; font-weight: 700; color: #e2e4e9; margin-bottom: 4px; }
.cmp-subtitle { font-size: 11px; color: #6b7280; }
.cmp-auth-gate {
  display: flex; align-items: center; justify-content: center;
  min-height: 300px;
}
.cmp-auth-msg { text-align: center; }
.cmp-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
@media (max-width: 900px) {
  .cmp-panels { grid-template-columns: 1fr; }
}
.cmp-panel {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  overflow: hidden;
}
.cmp-panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
}
.cmp-panel-label {
  font-size: 11px;
  font-weight: 700;
  color: #60a5fa;
  letter-spacing: 0.5px;
  min-width: 70px;
}
.cmp-firm-select, .cmp-saved-select {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  color: #e2e4e9;
  font-family: var(--font-sans);
  font-size: 11px;
  padding: 4px 8px;
  cursor: pointer;
  flex: 1;
}
.cmp-panel-body {
  padding: 12px;
  min-height: 200px;
}
.cmp-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  color: #4b5063;
  font-size: 12px;
}
.cmp-results {
  background: transparent;
  border: none;
  padding: 0;
  margin-top: 16px;
}
.cmp-results-header {
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
  letter-spacing: 1px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cmp-results-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 1100px) {
  .cmp-results-body { grid-template-columns: 1fr; }
}

/* ── Scenario Card in Output Row ── */
.sm-scenario-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
}
.sm-scenario-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: stretch;
  width: 100%;
}
.sc-save-btn {
  flex-shrink: 0;
}
/* mini variant tek satırda, content-width — sc-scenario-row içinde */
.sc-scenario-row .sc-save-btn { width: auto; }
.sc-scenario-row .sc-load-select { width: auto; flex: none; }
.sc-load-select {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  color: #9ca3af;
  font-family: var(--font-sans);
  font-size: 11px;
  padding: 6px 8px;
  cursor: pointer;
  width: 100%;
  min-width: 0;
}
.sc-load-select:hover { border-color: rgba(255,255,255,0.2); }
/* sm-output-inline now defined at single source above (line ~6024) */

/* ── Save Input Row ── */
.sc-save-input-row {
  display: flex;
  gap: 4px;
  align-items: center;
  margin-top: 4px;
}
.sc-save-name-input {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 3px;
  color: #e2e4e9;
  font-family: var(--font-sans);
  font-size: 10px;
  padding: 3px 6px;
  flex: 1;
  min-width: 0;
  outline: none;
}
.sc-save-name-input:focus { border-color: #60a5fa; }
.sc-save-name-input::placeholder { color: #4b5063; }
.sc-save-confirm {
  background: rgba(34,197,94,0.15) !important;
  border-color: rgba(34,197,94,0.3) !important;
  color: #22c55e !important;
  font-size: 12px !important;
  padding: 3px 8px !important;
}
.sc-save-confirm:hover { background: rgba(34,197,94,0.25) !important; }

/* ── Compare Panel Controls ── */
.cmp-section { padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.cmp-section:last-child { border-bottom: none; }
.cmp-sec-title { font-size: 9px; font-weight: 700; color: #6b7280; letter-spacing: 0.6px; text-transform: uppercase; margin-bottom: 4px; }
.cmp-spread-bar { display: flex; gap: 0; }
.sc-spread-btn {
  flex: 1; background: transparent; border: 1px solid rgba(255,255,255,0.1); border-right: none;
  color: #9ca3af; font-family: var(--font-sans); font-size: 9px; font-weight: 600;
  padding: 5px 2px; cursor: pointer; text-align: center; transition: all 0.15s;
}
.sc-spread-btn:first-child { border-radius: 4px 0 0 4px; }
.sc-spread-btn:last-child { border-radius: 0 4px 4px 0; border-right: 1px solid rgba(255,255,255,0.1); }
.sc-spread-btn:hover { background: rgba(255,255,255,0.04); }
.sc-spread-btn.active { background: rgba(96,165,250,0.15); border-color: rgba(96,165,250,0.3); color: #60a5fa; }
.cmp-slider-row { display: flex; align-items: center; gap: 6px; padding: 2px 0; }
.cmp-s-label { font-size: 10px; color: #9ca3af; min-width: 55px; flex-shrink: 0; }
.cmp-slider { flex: 1; }
.cmp-s-val { font-family: var(--font-mono); font-size: 10px; color: #e2e4e9; min-width: 50px; text-align: right; flex-shrink: 0; }
.cmp-result-cards { display: flex; gap: 4px; margin-top: 8px; }
.cmp-r-card {
  flex: 1; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px; padding: 6px 4px; text-align: center;
}
.cmp-r-label { font-size: 8px; color: #6b7280; font-weight: 600; letter-spacing: 0.3px; margin-bottom: 2px; }
.cmp-r-val { font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: #e2e4e9; }
/* Compare result table */
.cmp-comp-table { width: 100%; }
.cmp-comp-row { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 8px; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.cmp-comp-row:last-child { border-bottom: none; }
.cmp-comp-header { font-size: 10px; font-weight: 700; color: #6b7280; text-transform: uppercase; }
.cmp-comp-metric { font-size: 11px; color: #9ca3af; font-weight: 600; }
.cmp-comp-val { font-family: var(--font-mono); font-size: 12px; color: #e2e4e9; text-align: center; }

/* ── Collapsible sections ── */
.cmp-collapse { margin-bottom: 4px; }
.cmp-collapse-title {
  font-size: 9px; font-weight: 700; color: #6b7280; letter-spacing: 0.6px;
  text-transform: uppercase; cursor: pointer; padding: 4px 0; user-select: none;
  transition: color 0.15s;
}
.cmp-collapse-title:hover { color: #9ca3af; }
.cmp-collapse-arrow {
  display: inline-block; font-size: 7px; margin-right: 4px;
  transition: transform 0.2s;
}
.cmp-collapse.open .cmp-collapse-arrow { transform: rotate(90deg); }
.cmp-collapse-body {
  max-height: 0; overflow: hidden; transition: max-height 0.25s ease;
}
.cmp-collapse.open .cmp-collapse-body { max-height: 600px; }

/* ── Compare viz row ── */
.cmp-viz-row {
  display: grid;
  grid-template-columns: 3fr 2fr 2fr;
  gap: 6px;
  margin-top: 8px;
}
.cmp-viz {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 4px;
  padding: 6px 8px;
  min-height: 80px;
}
@media (max-width: 1200px) {
  .cmp-viz-row { grid-template-columns: 1fr; }
}

/* ── Confidence + Model badge wrapper ── */
.sm-out-badge-wrap {
  position: absolute;
  right: 0;
}
.sm-confidence {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 10px;
  border: 1px solid;
  border-radius: 4px;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.sm-conf-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
/* Mobil: firma picker + badge yan yana sığmaz → alt alta blok */
@media (max-width: 700px) {
  .sm-out-badge-wrap {
    position: static;
    display: block;
    margin-top: 6px;
    text-align: left;
  }
  .sm-firm-picker {
    position: static !important;
    display: inline-flex !important;
    margin-bottom: 4px;
  }
  /* Senaryo başlığı badge ile çakışmasın → block yapısı */
  .sm-title {
    display: block;
    margin-top: 8px;
  }
}
/* Sola yapışık firma seçici — confidence badge'in karşılığı */
.sm-firm-picker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 10px 3px 10px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  background: rgba(255,255,255,0.04);
  letter-spacing: 0.3px;
}
.sm-firm-picker-label {
  color: #9ca3af;
  text-transform: uppercase;
}
.sm-firm-picker-select {
  background: transparent;
  border: none;
  color: #e2e4e9;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  padding: 0 4px;
  /* width hesabı: harf limiti × ~7px + native arrow ~18px tampon */
  max-width: 220px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
.sm-firm-picker-select option {
  background: #1a1a1a;
  color: #e2e4e9;
}
.sm-firm-picker:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.2);
}
/* ↑↓ navigasyon butonları — kolay firma geçişi */
.sm-firm-picker-nav {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 3px;
  color: #9ca3af;
  font-size: 9px;
  cursor: pointer;
  padding: 1px 5px;
  line-height: 1;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  user-select: none;
}
.sm-firm-picker-nav:hover {
  background: rgba(255,255,255,0.12);
  color: #e2e4e9;
  border-color: rgba(255,255,255,0.25);
}
.sm-firm-picker-nav:active {
  background: rgba(255,255,255,0.18);
}

/* ── Subsidiaries scroll ── */
.vc-subs-scroll {
  max-height: 140px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #2a2a44 transparent;
}

/* ── Confidence Ranking ── */
.conf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 0 16px;
  align-items: start;
}
@media (max-width: 900px) { .conf-grid { grid-template-columns: 1fr; } }
.conf-group {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 16px;
}
.conf-group-title {
  font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 8px;
  margin-bottom: 4px;
}
.conf-group-count {
  background: rgba(255,255,255,0.06); border-radius: 10px; padding: 1px 8px;
  font-size: 10px; color: #9ca3af;
}
.conf-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.conf-group-desc { font-size: 10px; color: #4b5063; margin-bottom: 12px; min-height: 30px; }
.conf-cards { display: flex; flex-direction: column; gap: 6px; }
.conf-card {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px; padding: 10px 12px; cursor: pointer; transition: border-color 0.15s;
}
.conf-card:hover { border-color: rgba(96,165,250,0.3); }
.conf-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2px; }
.conf-ticker { font-size: 13px; font-weight: 700; color: #e2e4e9; }
.conf-score { font-size: 14px; font-weight: 700; font-family: var(--font-mono, monospace); }
.conf-card-name { font-size: 10px; color: #6b7280; margin-bottom: 4px; }
.conf-card-detail { display: flex; justify-content: space-between; font-size: 9px; color: #4b5063; }
.conf-empty { font-size: 11px; color: #4b5063; text-align: center; padding: 16px; }

/* ── Potential ranking controls ── */
.pot-controls {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 4px; margin-bottom: 8px; flex-wrap: wrap; gap: 8px;
}
.pot-filter, .pot-sort { display: flex; align-items: center; gap: 4px; }
.pot-filter-btn {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  color: #6b7280; font-family: var(--font-sans); font-size: 10px; font-weight: 600;
  padding: 3px 10px; border-radius: 4px; cursor: pointer; transition: all 0.15s;
}
.pot-filter-btn:hover { color: #9ca3af; border-color: rgba(255,255,255,0.15); }
.pot-filter-btn.pot-f-active { background: rgba(96,165,250,0.12); border-color: rgba(96,165,250,0.3); color: #60a5fa; }
.pot-sort-select {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  color: #9ca3af; font-family: var(--font-sans); font-size: 10px;
  padding: 3px 8px; border-radius: 4px; cursor: pointer;
}

/* ── Sortable table headers ── */
.pot-th-sort { cursor: pointer; user-select: none; transition: color 0.15s; }
.pot-th-sort:hover { color: #60a5fa; }

/* ── Colored filter buttons ── */
.pot-f-high { color: #22c55e; border-color: rgba(34,197,94,0.2); }
.pot-f-high:hover { border-color: rgba(34,197,94,0.4); }
.pot-f-high.pot-f-active { background: rgba(34,197,94,0.12); border-color: rgba(34,197,94,0.4); color: #22c55e; }
.pot-f-mid { color: #f59e0b; border-color: rgba(245,158,11,0.2); }
.pot-f-mid:hover { border-color: rgba(245,158,11,0.4); }
.pot-f-mid.pot-f-active { background: rgba(245,158,11,0.12); border-color: rgba(245,158,11,0.4); color: #f59e0b; }
.pot-f-low { color: #ef4444; border-color: rgba(239,68,68,0.2); }
.pot-f-low:hover { border-color: rgba(239,68,68,0.4); }
.pot-f-low.pot-f-active { background: rgba(239,68,68,0.12); border-color: rgba(239,68,68,0.4); color: #ef4444; }

/* Senaryo süresi (qCount) butonları */
.pot-q-btn { color: #a78bfa; border-color: rgba(167,139,250,0.2); font-weight: 600; min-width: 32px; }
.pot-q-btn:hover { border-color: rgba(167,139,250,0.5); }
.pot-q-active { background: rgba(167,139,250,0.15); border-color: rgba(167,139,250,0.5); color: #a78bfa; }

/* ── Macro sync label ── */
.cmp-sync-label {
  display: flex; align-items: center; gap: 4px;
  font-size: 9px; color: #6b7280; cursor: pointer; user-select: none;
}
.cmp-sync-label span { white-space: nowrap; }

/* ── Compare sync bar ── */
.cmp-sync-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 12px; margin-bottom: 10px;
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
}
.cmp-sync-toggle {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; color: #9ca3af;
  cursor: pointer; user-select: none; white-space: nowrap;
}
.cmp-sync-hint { font-size: 10px; color: #4b5063; }

/* ── Quarterly chart disclaimer ── */
.vc-qp-disclaimer {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 10px;
  color: #4b556380;
  font-style: italic;
  padding: 4px 0 0;
}

/* ── Chart zoom controls ── */
.fa-zoom-controls {
  position: absolute; top: 8px; right: 8px;
  display: flex; gap: 4px;
}
.fa-zoom-btn {
  width: 26px; height: 26px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  color: #9ca3af; font-size: 14px; font-weight: 700;
  border-radius: 4px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.fa-zoom-btn:hover { background: rgba(255,255,255,0.1); color: #e2e4e9; }
.fa-chart-wrap { position: relative; }

/* ── Dual waterfall comparison ── */
.cmp-dual-wf {
  margin-top: 16px; padding: 14px 16px;
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
}
.cmp-dual-wf-title {
  font-size: 10px; font-weight: 700; color: #9ca3af;
  letter-spacing: 0.5px; margin-bottom: 8px;
}
.cmp-dual-wf-legend {
  display: flex; gap: 16px; font-size: 10px; margin-bottom: 10px;
}
.cmp-dual-wf-row {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,0.03);
}
.cmp-dual-wf-row:last-child { border-bottom: none; }
.cmp-dual-wf-total { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 6px; margin-top: 4px; }
.cmp-dual-wf-label {
  font-size: 10px; color: #9ca3af; min-width: 130px; flex-shrink: 0; white-space: nowrap;
}
.cmp-dual-wf-bars { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.cmp-dual-bar-pair {
  display: flex; align-items: center; gap: 6px; height: 12px;
}
.cmp-dual-bar {
  height: 8px; border-radius: 2px; min-width: 2px;
  transition: width 0.3s;
}
.cmp-dual-bar-val {
  font-family: var(--font-mono, monospace); font-size: 9px; white-space: nowrap;
}

/* ── Debt comparison grid ── */
.cmp-debt-grid { margin-top: 4px; }
.cmp-debt-row {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr;
  gap: 8px; padding: 4px 0;
  font-size: 11px; color: #9ca3af;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  font-family: var(--font-mono, monospace);
}
.cmp-debt-row:has(:nth-child(4)) { grid-template-columns: 1.2fr 1fr 1fr 1fr; }
.cmp-debt-row:last-child { border-bottom: none; }
.cmp-debt-header { font-size: 10px; font-weight: 700; color: #6b7280; }
.cmp-debt-total { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 6px; margin-top: 4px; }

/* ── Result card wrapper ── */
.cmp-res-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 12px 14px;
}
.cmp-res-card .cmp-comp-table { margin: 0; }
/* Dual WF already has its own bg — remove when inside results grid */
.cmp-results-body .cmp-dual-wf {
  margin-top: 0;
  background: rgba(255,255,255,0.025);
}

/* ── Büyük ekran ölçeklendirme (1600px+ = 24" monitör vb.) ── */
@media (min-width: 1600px) {
  body { zoom: 1.25; }
  #main-content { height: calc(100vh / 1.25); }
  .fa-chart-builder { min-width: 0; }
  .fa-chart-layout { min-width: 0; }
  .fa-chart-layout > :last-child { min-width: 0; }
  .sb-left.collapsed ~ .sb-right .fa-chart-builder { min-width: 0; }
  .sb-left.collapsed ~ .sb-right .fa-chart-layout { min-width: 0; }
  .sb-left.collapsed ~ .sb-right .fa-chart-layout > :last-child { min-width: 0; }
  .sb-left.collapsed ~ .sb-right { min-width: 0; }
}

.mob-firm-btn { display: none; }
.mob-desktop-hint { display: none; }
.mob-tab-bar { display: none; }

/* ══════════════════════════════════════════════════════════════════ */
/* MOBİL RESPONSIVE (768px ve altı)                                  */
/* ══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* ── Navbar: üst logo + alt tab bar ── */
  .trisk-nav {
    padding: 6px 12px;
    justify-content: center;
  }
  .nav-tabs { display: none !important; }
  .nav-auth { display: none !important; }
  .nav-logo { height: 112px; margin: -38px 0; }
  .trisk-nav.nav-hidden { transform: none; opacity: 1; pointer-events: auto; }

  /* Alt tab bar */
  .mob-tab-bar {
    display: flex !important;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 100;
    background: var(--bg-primary);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 6px 0;
    padding-bottom: max(6px, env(safe-area-inset-bottom));
    justify-content: space-around;
    align-items: center;
  }
  .mob-tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: none;
    border: none;
    color: #6b7280;
    font-size: 9px;
    font-weight: 600;
    font-family: var(--font-sans);
    letter-spacing: 0.3px;
    cursor: pointer;
    padding: 4px 12px;
  }
  .mob-tab-item.active { color: #0ea5e9; }
  .mob-tab-icon { width: 20px; height: 20px; }

  /* İçeriğin alt bar'ın altında kalmaması için padding */
  .sb-right, #tab-rank { padding-bottom: 60px !important; }

  /* ── Layout: scroll-snap kartlar ── */
  #main-content { height: auto !important; min-height: 100vh; overflow: visible !important; }
  html, body { height: auto !important; overflow-y: auto !important; overflow-x: hidden !important; }
  .main-tab-panel { flex: none; min-height: auto; overflow-y: auto; }

  /* ── Sol panel: firma seçim ── */
  .sb-split { flex-direction: column; height: auto; }
  .sb-left {
    flex: none; max-width: 100%; height: auto; max-height: 45vh;
    border-right: none; border-bottom: 1px solid var(--border);
    overflow-y: auto;
  }
  .sb-left.collapsed { max-height: 0; padding: 0; border: none; overflow: hidden; }
  .sb-toggle-btn { display: none; }
  .mob-firm-btn {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    background: none;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: #e4e4e7;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
  }
  .mob-firm-btn:active { opacity: 0.7; }
  .mob-firm-btn .mob-firm-ticker { color: #0ea5e9; }
  .sb-right {
    flex: none; max-width: 100%; height: auto;
    padding: 0; overflow-y: auto;
  }

  /* ── Her bölüm: kart gibi, tam genişlik, aralarında ayırıcı ── */
  .ctx-section > * {
    padding: 4px 14px !important;
    margin: 0 !important;
  }
  .vc-quarter-proj { padding: 4px 14px !important; margin: 0 !important; }
  .vc-detail-panels { padding: 4px 14px !important; margin: 0 !important; }
  #vc-financial-analysis { padding: 4px 14px !important; margin: 0 !important; }
  .dp-section { margin: 0 !important; padding: 0 !important; }

  /* ── Firma Header: 3 sütun → ayrı kartlar ── */
  .vc-header { padding: 10px 14px !important; }
  .vc-header-grid3 {
    flex-direction: column;
    gap: 0;
  }
  .vc-header-col1 { padding-bottom: 4px; }
  .vc-header-col-mid { padding: 4px 0; border-left: none; padding-left: 0; }
  .vc-header-col2 { padding-top: 4px; border-left: none; padding-left: 0; }
  .vc-title { font-size: 18px; }
  .vc-subtitle { font-size: 11px; }
  .vc-desc { font-size: 11px; line-height: 1.5; }

  /* ── Ortaklık ── */
  .vc-pie-wrap { justify-content: center; }
  .vc-pie-legend { justify-content: center; }

  /* ── İştirakler ── */
  .vc-sub-list { max-height: none; overflow-y: visible; }
  .vc-subs-scroll { max-height: 300px; overflow-y: auto; }

  /* ── Çeyreklik Grafikler: mobilde gizle ── */
  .vc-quarterly-panels { display: none !important; }

  /* ── Ticari İlişki Haritası: mobilde gizle ── */
  .vc-flow { display: none !important; }

  /* ── Header: Firma picker üst satıra, title + güven alt satıra ── */
  .sm-v2-header > div:first-child {
    display: grid !important;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 6px 8px;
    width: 100%;
  }
  .sm-firm-picker {
    position: static !important;
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: start;
    max-width: 100%;
  }
  .sm-firm-picker-select { max-width: calc(100vw - 140px); }
  .sm-title {
    grid-column: 1;
    grid-row: 2;
    text-align: left;
    font-size: 13px !important;
  }
  .sm-confidence {
    position: static !important;
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    font-size: 9px !important;
    padding: 1px 6px !important;
    white-space: nowrap;
  }

  /* ── Karşılaştır butonu + karşılaştırma sekmesi: mobilde gizle ── */
  .sc-compare-btn { display: none !important; }
  [data-tab="compare"] { display: none !important; }
  #tab-compare { display: none !important; }

  /* ── Refband ── */
  .sm-v2-refband .sm-refband-compact {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
    align-items: center;
  }
  .sm-refband-compact .sm-rb-current { order: -1; }
  .sm-v2-refband .sm-rb-divider { display: none; }
  .sm-v2-refband .sm-reliability { display: none; }
  .sm-refband-compact .qp-badge { display: none !important; }

  /* ── Refband item'lar ── */
  .sm-v2-refband .sm-rb-item { padding: 0 2px; font-size: 9px !important; }
  .sm-v2-refband .sm-rb-label { font-size: 7px !important; }

  /* ── Senaryo Analizi ── */
  .vc-quarter-proj { padding: 16px 14px !important; }
  .sm-v2-columns { grid-template-columns: 1fr; gap: 12px; }
  .sm-v2-left { position: static; }
  .sm-subtitle { font-size: 11px; }
  .sm-slider-label, .ms-slider-label {
    font-size: 11px;
    width: 95px !important;
    min-width: 95px !important;
    max-width: 95px !important;
  }
  .sm-slider-val, .ms-slider-val {
    font-size: 11px;
    min-width: 54px;
    white-space: nowrap;
    flex-shrink: 0;
    overflow: visible;
    text-align: right;
  }
  /* Mobile slider 2-line layout: label tek satır, slider+value alt satır.
     Tek satırda (label+slider+value) iPhone 390px viewport'ta slider çok daralıyordu;
     bu wrap pattern her zaman sığar + slider büyük + value tam görünür. */
  .ms-slider-row, .sm-slider-row {
    flex-wrap: wrap;
    gap: 4px 8px;
    width: 100%;
    box-sizing: border-box;
    padding-right: 2px;
  }
  .ms-slider-row .ms-slider-label,
  .sm-slider-row .sm-slider-label {
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    flex: 1 1 100%;
  }
  .ms-slider-row .ms-slider-wrap,
  .sm-slider-row .sm-slider-wrap {
    flex: 1 1 auto;
    min-width: 0;
  }
  .ms-slider-row .ms-slider-val,
  .sm-slider-row .sm-slider-val {
    flex: 0 0 auto;
  }
  /* Slider input'un kendisi container genişliğini aşmasın */
  .ms-slider-wrap input[type="range"],
  .sm-slider-wrap input[type="range"] {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  /* Senaryo panel parent container'ı viewport dışına taşmasın */
  .sm-v2-section,
  .sm-v2-section-inner,
  .sm-section,
  .sm-output-summary-card,
  .sa-section {
    overflow-x: hidden;
    max-width: 100%;
    box-sizing: border-box;
  }
  /* Üst refband (Brüt Kâr, Faaliyet Kârı, FAVÖK, Net Kâr) wrap yapsın */
  .sm-refband-compact,
  .sm-context-band {
    flex-wrap: wrap !important;
    max-width: 100%;
    box-sizing: border-box;
  }
  /* sm-v2-cards (TAHMİNİ SONUÇLAR strip) — wrap + sığma */
  .sm-v2-cards,
  .sm-output-summary-strip {
    flex-wrap: wrap !important;
    max-width: 100%;
    box-sizing: border-box;
  }
  /* Spread row mobile: 2-satır layout (name+weight üstte, slider+value altta) */
  .sm-v2-spread-row {
    flex-wrap: wrap !important;
    gap: 4px 8px !important;
    width: 100%;
    box-sizing: border-box;
  }
  .sm-v2-spread-row .sm-v2-spread-name {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 36px);
  }
  .sm-v2-spread-row .sm-v2-spread-weight {
    flex: 0 0 auto;
    margin-left: auto;
  }
  .sm-v2-spread-row .ms-slider-wrap {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    order: 3;
    width: calc(100% - 56px);
  }
  .sm-v2-spread-row .ms-slider-val {
    flex: 0 0 auto !important;
    min-width: 48px !important;
    order: 4;
    white-space: nowrap;
  }
  .sm-v2-spread-row input[type="range"] {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .sm-seg-name { font-size: 10px; }
  .sm-seg-range { font-size: 8px; }
  .sm-seg-btn { padding: 5px 4px; }

  /* ── Slider thumb: orijinal boyut (18px) ── */

  /* ── Slider container padding'i azalt (yatay alan kazan) ── */
  .ms-sliders-panel { padding: 8px 8px !important; }
  .sm-v2-section-inner { padding-left: 4px; padding-right: 4px; }

  /* ── Senaryo sonuç kartları ── */
  .sm-v2-cards { gap: 6px; }
  .sm-v2-cards .sm-output-card { min-width: 70px; padding: 8px 6px; }

  /* ── Köprü / Etki / Borç: 3 → 1 sütun ── */
  .sm-v2-viz-row { grid-template-columns: 1fr; }
  .sm-v2-right { gap: 10px; }

  /* ── Senaryo: sağa swipe ile devam (yatay scroll) ── */
  .sm-v2-right { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* ── Yatırım Projeleri: tablo → kart ── */
  .vc-detail-panels { padding: 16px 14px !important; }
  .gca-table thead { display: none; }
  .gca-table, .gca-table tbody { display: block; width: 100%; }
  .gca-table tr:not(.gca-group-row) {
    display: flex; flex-wrap: wrap; gap: 4px 12px;
    padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .gca-table tr:not(.gca-group-row) td { display: block; border: none; padding: 2px 0; }
  .dp-ctbl-name { width: 100%; font-size: 13px !important; font-weight: 700; color: #e4e4e7; }
  .dp-ctbl-loc { font-size: 10px !important; color: #9ca3af; }
  .dp-ctbl-date { font-size: 10px !important; color: #9ca3af; }
  .dp-ctbl-date::before { content: 'Bitis: '; color: #6b7280; }
  .dp-ctbl-inv { font-size: 11px !important; color: #60a5fa; }
  .dp-ctbl-inv::before { content: 'Yatirim: '; color: #6b7280; }
  .dp-ctbl-cap { font-size: 10px !important; color: #9ca3af; }
  .dp-ctbl-impact { font-size: 10px !important; max-width: none !important; width: 100%; }
  .dp-ctbl-status { font-size: 10px !important; }
  .gca-affected { font-size: 9px !important; }
  .gca-group-row { display: block !important; }
  .gca-group-row td { display: block !important; }
  .gca-group-row .gca-group-intro { display: none; }
  .dp-title { font-size: 13px !important; }

  /* ── Finansal Analiz ── */
  #vc-financial-analysis { padding: 16px 14px !important; }

  /* ── Grafik Oluşturucu: mobilde gizle ── */
  .fa-chart-builder { display: none !important; }

  /* ── Mobilde sb-right padding'i azalt: tüm içerik daha geniş kaplasın ── */
  .sb-right { padding-left: 10px !important; padding-right: 10px !important; }

  /* ── Tahmin vs Gerçekleşen kartı: mobilde küçült + sayfayı kapla ── */
  /* .ctx-section > * 14px padding ile sınırlandırıyor — override et */
  .ctx-section > #vc-forecast-card { padding: 0 !important; }
  .fc-section { padding: 12px 4px 16px; }
  .fc-card { padding: 10px 0; margin-bottom: 6px; font-size: 11px; }
  .fc-header { flex-direction: column; align-items: flex-start; gap: 4px; }
  .fc-title { font-size: 10px; }
  .fc-margin { font-size: 10px; }
  .fc-table { font-size: 11px; }
  .fc-table th { padding: 2px 3px; }
  .fc-table td { padding: 4px 3px; }
  .fc-note { font-size: 8px; }

  /* ── Köprü analizi: mobilde gizle ── */
  .sm-v2-eval { display: none !important; }

  /* ── Finansal Analiz: yarısı görünür, tıklayınca tam açılır ── */
  #vc-financial-analysis .fa-tab-content {
    max-height: 200px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
  }
  #vc-financial-analysis .fa-tab-content::after {
    content: 'Devamını görmek için dokunun';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 60px;
    background: linear-gradient(transparent, var(--bg-primary));
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 6px;
    font-size: 10px;
    color: #6b7280;
  }
  #vc-financial-analysis .fa-tab-content.mob-expanded {
    max-height: none;
    overflow: visible;
  }
  #vc-financial-analysis .fa-tab-content.mob-expanded::after {
    display: none;
  }

  /* ── Oranlar tab'ını gizle ── */
  .fa-tab-btn[data-fa-tab="ratios"] { display: none; }

  /* ── Tab butonları: küçült, tek satır ── */
  .fa-tabs { gap: 2px; flex-wrap: nowrap; overflow-x: auto; }
  .fa-tab-btn { font-size: 9px !important; padding: 4px 6px !important; white-space: nowrap; }

  /* ── Firma Değerlendirmesi: yarısı görünür, tıklayınca açılır ── */
  #vc-market-interp .sm-market-interp-text {
    max-height: 200px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
  }
  #vc-market-interp .sm-market-interp-text::after {
    content: 'Devamını görmek için dokunun';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 60px;
    background: linear-gradient(transparent, var(--bg-primary));
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 6px;
    font-size: 10px;
    color: #6b7280;
  }
  #vc-market-interp .sm-market-interp-text.mob-expanded {
    max-height: none;
    overflow: visible;
  }
  #vc-market-interp .sm-market-interp-text.mob-expanded::after {
    display: none;
  }

  /* ── Mobil bilgi mesajı ── */
  .mob-desktop-hint {
    display: block !important;
    text-align: center;
    padding: 8px 16px;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.6;
  }
  .mob-desktop-hint b { color: #9ca3af; }

  /* ── Genel: collapsed durumunda büyütme kurallarını devre dışı bırak ── */
  .sb-left.collapsed ~ .sb-right .vc-qp-select { font-size: 12px; padding: 6px 8px; }
  .sb-left.collapsed ~ .sb-right .vc-qp-toggle-btn { font-size: 10px; padding: 4px 8px; }
  .sb-left.collapsed ~ .sb-right .vc-qp-panel { min-height: 160px; }
  .sb-left.collapsed ~ .sb-right .vc-header { padding: 16px 14px; }
  .sb-left.collapsed ~ .sb-right .vc-title { font-size: 18px; }
  .sb-left.collapsed ~ .sb-right .vc-subtitle { font-size: 11px; }
  .sb-left.collapsed ~ .sb-right .vc-desc { font-size: 11px; }

  /* ── Sıralama tabloları ── */
  .rank-page { padding: 12px; }
  .pot-table { font-size: 11px; overflow-x: auto; display: block; -webkit-overflow-scrolling: touch; }
  .pot-table th, .pot-table td { padding: 6px 8px; white-space: nowrap; }
  .pot-filters { flex-wrap: wrap; gap: 6px; }
  .pot-f-btn { font-size: 10px; padding: 4px 10px; }

  /* ── Güven kartları: 3 → 1 sütun ── */
  .conf-grid { grid-template-columns: 1fr; }
  .conf-card { padding: 10px 12px; }

  /* ── Duyarlılık tablosu ── */
  .sens-table { font-size: 11px; overflow-x: auto; display: block; -webkit-overflow-scrolling: touch; }
  .sens-table th, .sens-table td { padding: 6px 8px; }
  .sens-cat-btn { font-size: 10px; padding: 6px 8px; }

  /* ── Senaryo Kaydet/Yükle kutusunu mobilde gizle ── */
  .sm-scenario-card { display: none !important; }
}

/* ══════════════════════════════════════════════════════════════════ */
/* TTM-NEGATİF UYARI BANNER'I (Senaryo Analizi başlığı altı)          */
/* ══════════════════════════════════════════════════════════════════ */
.sm-ttm-warning {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-left: 3px solid #ef4444;
  border-radius: 6px;
  padding: 10px 14px;
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.55;
  color: #fca5a5;
}
.sm-ttm-warning strong { color: #fecaca; }
@media (max-width: 768px) {
  .sm-ttm-warning { font-size: 11px; padding: 8px 10px; }
}

/* ══════════════════════════════════════════════════════════════════ */
/* SENARYO REHBERİ KARTI (LLM özeti — ÇEYREK SONU PROJEKSİYONU altı)  */
/* ══════════════════════════════════════════════════════════════════ */
/* Context bant — refband + Senaryo Rehberi birleşik kart (banner üstüne taşındı) */
.sm-context-band {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  margin-bottom: 10px;
  overflow: hidden;
}
.sm-context-band--top {
  margin-top: 12px;
  margin-bottom: 12px;
}
/* İçerideki refband kendi border'ını ve bg'sini kaybeder — container halleder */
.sm-context-band__refband .sm-refband-compact {
  background: transparent;
  border: none;
  border-radius: 0;
  margin-bottom: 0;
  padding: 6px 12px;
}
/* Narrative kısmı — refband ile aralarında ince ayırıcı */
.sm-context-band__narrative {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 10px 12px 12px;
}
/* SENARYO REHBERİ kartı içinde tek tip tipografi:
   bullets + warning + LLM body hepsi 12px / line-height 1.55 / #d1d5db
   sadece warning kutu çevresi farklı (kırmızı). Bold ile vurgu, font-size aynı. */
.sm-fs-intro {
  font-size: 12px;
  line-height: 1.55;
  color: #d1d5db;
  margin: 0 0 10px 0;
  padding: 0;
}
.sm-fs-intro strong {
  color: #e5e7eb;
  font-weight: 600;
}
.sm-fs-footer {
  font-size: 11px;
  line-height: 1.4;
  color: #6b7280;
  margin: 10px 0 0 0;
  padding: 8px 0 0 0;
  border-top: 1px dashed rgba(255,255,255,0.06);
  font-style: italic;
}
.sm-fs-bullets {
  font-size: 12px;
  line-height: 1.55;
  color: #d1d5db;
  margin: 0 0 10px 0;
  padding: 0 0 10px 0;
  list-style: none;
  border-bottom: 1px dashed rgba(255,255,255,0.06);
}
.sm-fs-bullets li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 4px;
}
.sm-fs-bullets li:last-child {
  margin-bottom: 0;
}
.sm-fs-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #6b7280;
}
.sm-fs-bullets strong {
  color: #e5e7eb;
  font-weight: 600;
}
.sm-fs-warning {
  font-size: 12px;
  line-height: 1.55;
  color: #d1d5db;
  background: rgba(239,68,68,0.06);
  border: 1px solid rgba(239,68,68,0.25);
  border-left: 3px solid #ef4444;
  border-radius: 4px;
  padding: 8px 12px;
  margin-bottom: 10px;
}
.sm-fs-warning strong { color: #fecaca; font-weight: 600; }
.sm-fs-warning-hint {
  display: block;
  font-size: 11px;
  color: #fca5a5;
  opacity: 0.85;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed rgba(239,68,68,0.2);
  font-style: italic;
}
.sm-fs-warning-hint strong { color: #fecaca; font-style: normal; }
.sm-context-band__narrative .sm-fs-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.sm-context-band__narrative .sm-fs-title-text {
  font-size: 9px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}
.sm-fs-meta {
  font-size: 10px;
  color: #6b7280;
  font-family: var(--font-mono, monospace);
}
.sm-fs-body {
  font-size: 12.5px;
  line-height: 1.65;
  color: #d1d5db;
  margin-top: 0;
}
.sm-fs-body p {
  margin: 0 0 10px 0;
}
.sm-fs-body p:last-child { margin-bottom: 0; }
/* Key term emphasis — slider/spread/commodity isimleri */
.sm-fs-body strong,
.sm-fs-body .sm-fs-key {
  color: #fbbf24;
  font-weight: 700;
}
/* Italic emphasis — ranking words, conclusion adjectives */
.sm-fs-body em,
.sm-fs-body .sm-fs-em {
  color: #a78bfa;
  font-style: italic;
  font-weight: 500;
}
/* Eski sm-fs-slider (legacy tırnak-içi pattern), backward compat */
.sm-fs-slider {
  display: inline;
  color: #fbbf24;
  font-weight: 700;
  font-family: var(--font-sans, inherit);
}
.sm-fs-slider::before, .sm-fs-slider::after { content: ''; }

/* viz-row içindeki Etki Sıralaması paneli: kompakt ranking */
.sm-viz-body--ranking {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sm-fs-ranking {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sm-fs-rank-row {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  grid-template-rows: auto auto;
  grid-template-areas:
    "num label group"
    "num bar bar";
  gap: 2px 8px;
  align-items: center;
  font-size: 11px;
  padding: 4px 0;
}
.sm-fs-rank-num {
  grid-area: num;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  color: #9ca3af;
  font-weight: 600;
}
.sm-fs-rank-label {
  grid-area: label;
  font-size: 11px;
  color: #d1d5db;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sm-fs-rank-group {
  grid-area: group;
  font-size: 10px;
  color: #6b7280;
  text-transform: lowercase;
  font-family: var(--font-mono, monospace);
}
.sm-fs-rank-bar {
  grid-area: bar;
  height: 4px;
  background: rgba(96, 165, 250, 0.08);
  border-radius: 2px;
  overflow: hidden;
}
.sm-fs-bar {
  display: block;
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s ease;
}
.sm-fs-bar--pos { background: rgba(74, 222, 128, 0.7); }
.sm-fs-bar--neg { background: rgba(248, 113, 113, 0.7); }

@media (max-width: 768px) {
  .sm-firm-summary-band { padding: 10px 12px; }
  .sm-fs-body { font-size: 12px; line-height: 1.55; }
  .sm-fs-rank-row { font-size: 11px; }
}

/* Karşılaştırma görünümü — Etki Sıralaması iki sütun */
.cmp-dual-rank-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 6px;
}
.cmp-dual-rank-col {
  min-width: 0;
}
.cmp-dual-rank-head {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.cmp-rank-empty {
  font-size: 10px;
  color: #4b5563;
  padding: 6px 0;
}

/* ═══ Model Güveni Modal (2026-05-15) ═══════════════════════════════════ */
.mc-modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.75);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.mc-modal {
  background: #0f172a;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  width: 100%; max-width: 920px;
  max-height: 90vh;
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.8);
}
.mc-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}
.mc-modal-title {
  font-size: 16px; font-weight: 700; color: #f3f4f6;
  letter-spacing: 0.2px;
}
.mc-modal-close {
  background: transparent; border: none; color: #9ca3af;
  font-size: 22px; cursor: pointer; padding: 4px 12px;
  line-height: 1;
}
.mc-modal-close:hover { color: #f3f4f6; }
.mc-tabs {
  display: flex; gap: 2px;
  padding: 0 16px; padding-top: 12px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap;
}
.mc-tab {
  background: transparent; border: none;
  color: #9ca3af; font-size: 12px; font-weight: 600;
  padding: 8px 14px; cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.mc-tab:hover { color: #f3f4f6; }
.mc-tab.active {
  color: #60a5fa;
  border-bottom-color: #60a5fa;
}
.mc-modal-body {
  flex: 1; overflow-y: auto; padding: 20px;
  color: #d1d5db; font-size: 13px; line-height: 1.55;
}
.mc-section {
  margin-bottom: 20px; padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mc-section:last-child { border-bottom: none; }
.mc-section-title {
  font-size: 11px; font-weight: 700; color: #60a5fa;
  text-transform: uppercase; letter-spacing: 0.6px;
  margin-bottom: 10px;
}
.mc-kv-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
}
.mc-kv {
  display: flex; justify-content: space-between;
  padding: 6px 10px;
  background: rgba(255,255,255,0.03);
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.05);
}
.mc-kv-label { color: #9ca3af; font-size: 11px; }
.mc-kv-value { color: #f3f4f6; font-weight: 600; font-size: 12px; font-family: var(--font-mono, monospace); }
.mc-table {
  width: 100%; border-collapse: collapse;
  font-size: 11px;
}
.mc-table th, .mc-table td {
  padding: 8px 10px; text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mc-table th {
  font-size: 10px; color: #9ca3af;
  text-transform: uppercase; letter-spacing: 0.4px;
  font-weight: 700;
  background: rgba(255,255,255,0.02);
  position: sticky; top: 0;
}
.mc-table td { color: #e5e7eb; }
.mc-table tr:hover td { background: rgba(96,165,250,0.05); }
.mc-table td.num { text-align: right; font-family: var(--font-mono, monospace); }
.mc-badge {
  display: inline-block; padding: 2px 8px;
  font-size: 10px; font-weight: 700;
  border-radius: 4px; border: 1px solid;
}
.mc-badge.method-ev_ebitda { color: #22c55e; border-color: #22c55e40; background: #22c55e10; }
.mc-badge.method-ev_sales { color: #60a5fa; border-color: #60a5fa40; background: #60a5fa10; }
.mc-badge.method-pb, .mc-badge.method-pb_fallback { color: #a78bfa; border-color: #a78bfa40; background: #a78bfa10; }
.mc-badge.method-eps_pe { color: #f59e0b; border-color: #f59e0b40; background: #f59e0b10; }
.mc-scenario-row {
  display: flex; gap: 8px; align-items: center;
  padding: 8px 12px; margin-bottom: 6px;
  background: rgba(255,255,255,0.03);
  border-radius: 6px;
  border-left: 3px solid;
}
.mc-scenario-row.bear { border-left-color: #ef4444; }
.mc-scenario-row.base { border-left-color: #60a5fa; }
.mc-scenario-row.bull { border-left-color: #22c55e; }
.mc-scenario-label { font-size: 11px; font-weight: 700; color: #9ca3af; min-width: 70px; }
.mc-scenario-mult { font-family: var(--font-mono, monospace); font-size: 11px; color: #d1d5db; min-width: 60px; }
.mc-scenario-price { font-family: var(--font-mono, monospace); font-size: 13px; font-weight: 700; color: #f3f4f6; flex: 1; text-align: right; }
.mc-model-card {
  padding: 12px 14px; margin-bottom: 10px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  border-left: 3px solid;
}
.mc-model-card.ev_ebitda { border-left-color: #22c55e; }
.mc-model-card.ev_sales { border-left-color: #60a5fa; }
.mc-model-card.pb { border-left-color: #a78bfa; }
.mc-model-card.eps_pe { border-left-color: #f59e0b; }
.mc-model-card-title {
  font-size: 13px; font-weight: 700; color: #f3f4f6;
  margin-bottom: 6px;
}
.mc-model-card-formula {
  font-family: var(--font-mono, monospace);
  font-size: 11px; color: #93c5fd;
  background: rgba(0,0,0,0.3); padding: 6px 8px;
  border-radius: 4px; margin: 6px 0;
}
.mc-model-card-desc { font-size: 12px; color: #d1d5db; line-height: 1.5; }
.mc-info-note {
  padding: 10px 12px;
  background: rgba(96,165,250,0.08);
  border-left: 3px solid #60a5fa;
  border-radius: 4px;
  font-size: 12px; color: #bfdbfe;
}
.mc-warning-note {
  padding: 10px 12px;
  background: rgba(245,158,11,0.08);
  border-left: 3px solid #f59e0b;
  border-radius: 4px;
  font-size: 12px; color: #fde68a;
}
@media (max-width: 640px) {
  .mc-modal { max-height: 95vh; }
  .mc-modal-body { padding: 12px; }
  .mc-kv-grid { grid-template-columns: 1fr; }
  .mc-tabs { padding: 6px 8px 0; gap: 1px; }
  .mc-tab { padding: 6px 8px; font-size: 11px; }
  .mc-table { font-size: 10px; }
  .mc-table th, .mc-table td { padding: 6px 5px; }
}

/* ═══ TL/USD Toggle Button (2026-05-15) ═════════════════════════════════ */
.tl-usd-toggle {
  background: rgba(96,165,250,0.12);
  color: #60a5fa;
  border: 1px solid rgba(96,165,250,0.35);
  border-radius: 5px;
  padding: 3px 9px;
  font-size: 10px; font-weight: 700;
  font-family: var(--font-mono, monospace);
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: background 0.15s, border-color 0.15s;
  margin-left: 6px;
  white-space: nowrap;
}
.tl-usd-toggle:hover {
  background: rgba(96,165,250,0.22);
  border-color: rgba(96,165,250,0.55);
}

/* ═══ Models Page (tab-models) — 2026-05-15 ═════════════════════════════ */
.models-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px;
}
.models-header { margin-bottom: 20px; }
.models-title {
  font-size: 22px; font-weight: 700; color: #f3f4f6;
  margin: 0 0 6px 0;
  letter-spacing: 0.2px;
}
.models-subtitle {
  font-size: 13px; color: #9ca3af; line-height: 1.5;
}
.models-firm-selector {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.06);
}
.models-firm-label {
  font-size: 11px; font-weight: 700; color: #9ca3af;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.models-firm-select {
  background: #0f172a; color: #f3f4f6;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px; font-weight: 600;
  cursor: pointer;
  min-width: 280px;
}
.models-firm-select:focus { outline: 2px solid #60a5fa; }
.models-usdtry-badge {
  font-size: 10px; color: #9ca3af;
  font-family: var(--font-mono, monospace);
  padding: 4px 8px;
  background: rgba(255,255,255,0.04);
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.08);
}
#models-page-tabs {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px 8px 0 0;
  padding: 6px 14px 0;
  margin-top: 0;
}
#models-page-body {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-top: none;
  border-radius: 0 0 8px 8px;
  min-height: 400px;
  color: #d1d5db; font-size: 13px; line-height: 1.55;
  /* 2026-05-15 fix: .mc-modal-body class'tan miras overflow-y:auto + flex:1 → internal scroll
     yarattığı için page scroll çalışmıyordu. Override: doğal akış, sayfa scroll'a bırak. */
  overflow: visible !important;
  flex: none !important;
  max-height: none !important;
}
.models-page {
  padding-bottom: 60px;  /* alt boşluk — son satır kesilmesin */
}
@media (max-width: 640px) {
  .models-page { padding: 14px 10px; }
  .models-title { font-size: 18px; }
  .models-firm-select { min-width: 0; width: 100%; }
  .models-firm-selector { flex-direction: column; align-items: flex-start; gap: 6px; }
}

