:root {
  --bg: #0e1117;
  --bg-2: #161b22;
  --bg-3: #1c2330;
  --line: #30363d;
  --text: #e6edf3;
  --muted: #8b949e;
  --gold: #c9a227;
  --gold-dim: #8a7018;
  --up: #3fb950;
  --down: #f85149;
  --warn: #d29922;
  --info: #58a6ff;
  --radius: 10px;
  --sidebar: 248px;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  letter-spacing: 0.01em;
}

.app {
  display: grid;
  grid-template-columns: var(--sidebar) 1fr;
  min-height: 100%;
}

.sidebar {
  background: var(--bg-2);
  border-right: 1px solid var(--line);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin: 0 0 4px;
}
.brand-title {
  font-family: "IBM Plex Serif", Georgia, serif;
  font-size: 20px;
  margin: 0;
  line-height: 1.25;
}
.brand-sub { color: var(--muted); font-size: 12px; margin-top: 6px; }

.nav { display: flex; flex-direction: column; gap: 4px; }
.nav button {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--muted);
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
}
.nav button.active, .nav button:hover {
  background: var(--bg-3);
  color: var(--text);
}
.nav button.active { box-shadow: inset 3px 0 0 var(--gold); }

.sidebar-meta {
  margin-top: auto;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.sidebar-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-footer .sidebar-meta {
  margin-top: 0;
}

.sidebar-user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}

a.btn.sidebar-logout {
  text-decoration: none;
  padding: 6px 10px;
  font-size: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
}

a.btn.sidebar-logout:hover {
  color: var(--text);
  border-color: var(--gold-dim);
}

.main { padding: 22px 28px 48px; min-width: 0; }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}
.topbar h1 {
  font-family: "IBM Plex Serif", Georgia, serif;
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 4px;
}
.topbar p { margin: 0; color: var(--muted); font-size: 13px; }

.job-chip {
  min-width: 260px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  font-size: 12px;
}
.job-chip .row { display: flex; justify-content: space-between; gap: 8px; }
.bar {
  height: 5px;
  background: #21262d;
  border-radius: 99px;
  margin-top: 8px;
  overflow: hidden;
}
.bar > span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gold);
}

.analysis-progress {
  margin: 10px 0 4px;
  padding: 12px 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.analysis-progress.running {
  border-color: var(--gold);
}
.analysis-progress-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: 13px;
}
.analysis-progress-row strong { color: var(--gold); letter-spacing: 0.03em; }
#aProgPct {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 16px;
}
.analysis-progress-bar { height: 10px; margin-top: 8px; }
.analysis-progress-bar > span {
  transition: width 0.3s ease;
  background: linear-gradient(90deg, #8b7355, var(--gold));
}
#aProgMsg { margin: 8px 0 0; font-size: 12px; }

.queue-box {
  display: none;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 16px;
}
.queue-box.open { display: block; }
.queue-active { font-size: 13px; margin-bottom: 8px; }
.queue-cap { margin: 0 0 6px; color: var(--muted); font-size: 12px; }
.queue-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.queue-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.q-pos {
  width: 22px;
  height: 22px;
  border-radius: 99px;
  background: var(--bg-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--gold);
}
.q-title { flex: 1; }
.btn.q-x {
  padding: 4px 8px;
  font-size: 12px;
}

.page { display: none; }
.page.active { display: block; }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}
.toolbar label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}
input[type="text"], input[type="number"], input[type="date"], input[type="password"], select {
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
}
.card-actions select { min-width: 108px; }
button.btn {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--bg-3);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font: inherit;
}
button.btn.primary {
  background: var(--gold);
  color: #1a1403;
  border-color: var(--gold);
  font-weight: 600;
}
button.btn.danger { border-color: var(--down); color: var(--down); }
button.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.group { margin-bottom: 28px; }
.group h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin: 0 0 6px;
}
.group .hint { color: var(--muted); font-size: 12px; margin: 0 0 12px; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.card {
  background: transparent;
  border: none;
  border-radius: var(--radius);
  padding: 0;
  min-height: 168px;
  perspective: 1000px;
  cursor: pointer;
}
.card-inner {
  position: relative;
  width: 100%;
  min-height: 168px;
  transform-style: preserve-3d;
  transition: transform 0.45s ease;
}
.card.flipped .card-inner {
  transform: rotateY(180deg);
}
.card-face {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
}
.card-face.front {
  position: relative;
  min-height: 168px;
}
.card-face.back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
  overflow: auto;
  gap: 6px;
}
.card-face.back h3 {
  font-size: 14px;
}
.card-props {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
}
.card-props li {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  border-bottom: 1px dashed rgba(139, 148, 158, 0.25);
  padding: 3px 0;
}
.card-props li span:last-child {
  color: var(--text);
  text-align: right;
  max-width: 62%;
}
.card-flip-hint {
  font-size: 10px;
  color: var(--muted);
  opacity: 0.75;
}
.bundle-card .card-inner {
  min-height: 200px;
}
.bundle-card .card-face.front {
  min-height: 200px;
}
.bundle-scan-list {
  max-height: 220px;
  overflow: auto;
}
.bundle-scan-list li span:first-child {
  flex: 0 0 1.5rem;
  color: var(--muted);
}
.bundle-scan-list li span:last-child {
  max-width: 85%;
  text-align: left;
}
.card-head { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.card .why { font-size: 11px; color: var(--muted); line-height: 1.45; }
.pill.audit-keep { color: var(--up); border-color: var(--up); }
.pill.audit-watch { color: var(--warn); border-color: var(--warn); }
.pill.audit-drop { color: var(--down); border-color: var(--down); }
.card h3 { margin: 0; font-size: 15px; }
.card p { margin: 0; color: var(--muted); font-size: 12px; flex: 1; }
.card-actions { display: flex; gap: 8px; align-items: center; margin-top: auto; }
.card-actions select,
.card-actions button { cursor: pointer; }

.perf-days-label select {
  min-width: 160px;
  min-height: 84px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 0;
}
.results-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 12px;
  align-items: stretch;
  margin-bottom: 18px;
}
.index-panel {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.index-panel-wide {
  margin-bottom: 12px;
}
.index-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.index-panel-head strong {
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
}
button.btn.index-refresh {
  padding: 2px 8px;
  min-width: 0;
  line-height: 1.2;
  font-size: 14px;
}
.index-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.index-cards-wide {
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 8px;
}
.index-card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
}
.index-card .ix-name {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 2px;
}
.index-card .ix-last {
  font-family: "IBM Plex Serif", serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
}
.index-panel-wide .index-card .ix-last {
  font-size: 15px;
}
.index-card .ix-chg {
  font-size: 12px;
  margin-top: 2px;
}
.index-card .ix-flow {
  font-size: 11px;
  margin-top: 6px;
  color: var(--muted);
}
.index-card .ix-flow.alici { color: var(--up); }
.index-card .ix-flow.satici { color: var(--down); }
.index-meta {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
}
.index-meta .live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--up);
  margin-right: 6px;
  vertical-align: middle;
}

.stock-watch-panel {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stock-watch-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}
.stock-watch-actions .btn {
  padding: 2px 10px;
  min-width: 0;
  line-height: 1.2;
  font-size: 16px;
  font-weight: 600;
}
.stock-add-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.stock-add-row.hidden { display: none; }
.stock-add-row input[type="text"] {
  min-width: 160px;
  flex: 1;
  max-width: 240px;
}
.stock-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.stock-cards .index-card {
  flex: 1 1 160px;
  max-width: 220px;
  position: relative;
  min-width: 150px;
}
.stock-card-close {
  position: absolute;
  top: 4px;
  right: 6px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 2px 4px;
}
.stock-card-close:hover { color: var(--down); }
.stock-card .ix-kad {
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.35;
}
.stock-card .ix-kad b { color: var(--text); font-weight: 500; }

@media (max-width: 980px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { height: auto; position: relative; }
  .stats, .charts, .brief-grid { grid-template-columns: 1fr; }
  .results-head { grid-template-columns: 1fr; }
  .stock-cards .index-card { max-width: none; }
}
.index-meta .live-dot {
  box-shadow: 0 0 0 0 rgba(63, 185, 80, 0.5);
  animation: pulse-live 1.6s infinite;
}
@keyframes pulse-live {
  0% { box-shadow: 0 0 0 0 rgba(63, 185, 80, 0.45); }
  70% { box-shadow: 0 0 0 6px rgba(63, 185, 80, 0); }
  100% { box-shadow: 0 0 0 0 rgba(63, 185, 80, 0); }
}
.stat {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}
.stat b { display: block; font-size: 22px; font-family: "IBM Plex Serif", serif; }
.stat span { color: var(--muted); font-size: 12px; }

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
table { width: 100%; border-collapse: collapse; font-size: 13px; table-layout: fixed; }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { color: var(--muted); font-weight: 600; background: var(--bg-2); position: sticky; top: 0; }
th.sortable {
  cursor: pointer;
  user-select: none;
}
th.sortable:hover { color: var(--text); }
th.sortable.sorted { color: var(--gold); }
tr:hover td { background: var(--bg-3); }

/* Sonuçlar + performans hisse tablosu: sürükle-bırak sütun genişliği */
#page-sonuclar #resultTable,
#page-analiz #picksTable {
  width: max-content;
  min-width: 100%;
  table-layout: fixed;
}
#page-sonuclar #resultTable th,
#page-analiz #picksTable th {
  position: relative;
  overflow: hidden;
}
#page-sonuclar #resultTable th .th-label {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 8px;
}
#page-sonuclar #resultTable td.col-clip,
#page-analiz #picksTable td {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#page-sonuclar .col-resizer,
#page-analiz .col-resizer {
  position: absolute;
  top: 0;
  right: 0;
  width: 8px;
  height: 100%;
  cursor: col-resize;
  user-select: none;
  z-index: 2;
}
#page-sonuclar .col-resizer:hover,
#page-sonuclar .col-resizer.active,
#page-analiz .col-resizer:hover,
#page-analiz .col-resizer.active {
  background: rgba(201, 162, 39, 0.45);
}
body.col-resizing {
  cursor: col-resize !important;
  user-select: none !important;
}
body.col-resizing iframe { pointer-events: none; }
.up { color: var(--up); }
.down { color: var(--down); }

.pill {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 99px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.pill.ise_yarar { color: var(--up); border-color: var(--up); }
.pill.zayif { color: var(--down); border-color: var(--down); }
.pill.karisik { color: var(--warn); border-color: var(--warn); }
.pill.yetersiz_ornek, .pill.bekliyor { color: var(--muted); }

.banner {
  background: #3d2a00;
  border: 1px solid var(--gold-dim);
  color: #f0d78c;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 13px;
}
.banner.error { background: #3d1010; border-color: var(--down); color: #ffb1ad; }

.charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0 22px;
}
.chart-box {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  height: 320px;
}
.muted { color: var(--muted); font-size: 12px; }

.insight-box {
  margin: 0 0 16px;
  padding: 12px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.insight-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.insight-tab {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--bg-3);
  color: var(--muted);
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
}
.insight-tab:hover { color: var(--text); border-color: var(--gold-dim); }
.insight-tab.active {
  background: var(--gold);
  color: #1a1403;
  border-color: var(--gold);
  font-weight: 600;
}
.insight-panel {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
  max-height: 220px;
  overflow: auto;
}
.insight-panel.hidden { display: none; }
.insight-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--bg-3);
  cursor: pointer;
}
.insight-card:hover { border-color: var(--gold-dim); }
.insight-card.active {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--gold);
}
.insight-card .ic-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-weight: 600;
  font-size: 13px;
}
.insight-card .ic-rank { color: var(--gold); font-family: "IBM Plex Serif", serif; }
.insight-card .ic-why { color: var(--muted); font-size: 11px; margin-top: 4px; line-height: 1.4; }

.brief-dir {
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
}
.brief-dir.yukselis { border-color: var(--up); }
.brief-dir.dusus { border-color: var(--down); }
.brief-dir.yatay { border-color: var(--warn); }
.brief-dir h3 {
  margin: 0 0 6px;
  font-family: "IBM Plex Serif", serif;
  font-size: 22px;
}
.brief-dir p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.brief-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.brief-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
}
.brief-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 360px;
  overflow: auto;
}
.brief-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.4;
}
.brief-list li:last-child { border-bottom: 0; }
.brief-list a { color: var(--text); text-decoration: none; }
.brief-list a:hover { color: var(--gold); }
.brief-list .meta { color: var(--muted); font-size: 11px; display: block; margin-top: 2px; }
.pill.impact-High { color: var(--down); border-color: var(--down); }
.pill.impact-Medium { color: var(--warn); border-color: var(--warn); }
.pill.impact-News { color: var(--info); border-color: var(--info); }

.regime-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 8px;
}
.regime-col {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
}
.regime-title {
  margin: 0 0 4px;
  font-size: 14px;
  font-family: "IBM Plex Serif", serif;
}
.regime-title.up { color: var(--up); }
.regime-title.down { color: var(--down); }
.pill.regime-iyi { color: var(--up); border-color: var(--up); }
.pill.regime-kotu { color: var(--down); border-color: var(--down); }
.pill.regime-yatay { color: var(--warn); border-color: var(--warn); }
.today-top-scans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 10px 0 14px;
}
.today-scan-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.today-scan-card .rank {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.today-scan-card .name {
  font-family: "IBM Plex Serif", serif;
  font-size: 15px;
  margin: 4px 0 8px;
  line-height: 1.25;
}
.today-scan-card .pct {
  font-size: 22px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.today-scan-card .meta {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}
.extremes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 12px;
}
.extremes-col {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
}
.sym-link { color: var(--accent, #58a6ff); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
tr.sym-click { cursor: pointer; }
tr.sym-click:hover { background: rgba(88, 166, 255, 0.08); }
.sym-lookup {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 8px;
}
@media (max-width: 960px) {
  .regime-grid { grid-template-columns: 1fr; }
  .today-top-scans { grid-template-columns: 1fr; }
  .extremes-grid { grid-template-columns: 1fr; }
}
.learn-table th { font-size: 11px; }
.learn-fit {
  display: inline-block;
  font-weight: 600;
  font-size: 12px;
}
.learn-fit.iyi { color: var(--up); }
.learn-fit.kotu { color: var(--down); }
.learn-fit.notr { color: var(--warn); }
.learn-fit.yetersiz { color: var(--muted); font-weight: 500; }
.learn-actions .btn {
  font-size: 11px;
  padding: 6px 8px;
  line-height: 1.25;
  white-space: normal;
  max-width: 110px;
}
.learn-actions .muted { font-size: 10px; }

.section-title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: 0.02em;
}
.combo-horizon {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin: 10px 0 14px;
  background: var(--panel, transparent);
}
.combo-horizon h4 {
  margin: 0 0 8px;
  font-size: 14px;
}
.combo-horizon .combo-best {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}
.combo-horizon .combo-best .mini {
  font-size: 12px;
  line-height: 1.35;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
}
.combo-horizon .combo-best b { display: block; font-size: 13px; margin-bottom: 2px; }
.combo-horizon .ret-up { color: var(--up); }
.combo-horizon .ret-down { color: var(--down); }
.combo-add-btn {
  margin-top: 6px;
  font-size: 11px;
  padding: 4px 8px;
  line-height: 1.2;
}
.combo-table .combo-add-btn { margin-top: 0; }
.opt-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  max-width: min(420px, 55vw);
}
.opt-filter-chip b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.opt-filter-chip .btn {
  font-size: 11px;
  padding: 2px 6px;
}
.strat-note-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
.strat-note-wrap input {
  font-size: 12px;
}
.combo-horizon details { margin-top: 6px; }
.combo-horizon summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--muted);
  user-select: none;
}
.combo-table { width: 100%; font-size: 12px; margin-top: 6px; }
.combo-table th, .combo-table td { padding: 4px 6px; text-align: left; }
.combo-table th { color: var(--muted); font-weight: 500; }

@media (max-width: 980px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { height: auto; position: relative; }
  .stats, .charts, .brief-grid { grid-template-columns: 1fr; }
  .results-head { grid-template-columns: 1fr; }
}

/* Giriş / kurulum ekranı */
.auth-body {
  min-height: 100%;
  background:
    radial-gradient(900px 420px at 15% -10%, rgba(201, 162, 39, 0.12), transparent 55%),
    radial-gradient(700px 380px at 90% 10%, rgba(88, 166, 255, 0.08), transparent 50%),
    var(--bg);
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}

.auth-panel {
  width: min(400px, 100%);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px 24px 24px;
}

.auth-title {
  font-family: "IBM Plex Serif", Georgia, serif;
  font-size: 26px;
  margin: 4px 0 0;
}

.auth-sub {
  color: var(--muted);
  font-size: 13px;
  margin: 8px 0 18px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.auth-label input {
  width: 100%;
}

.auth-submit {
  margin-top: 6px;
  width: 100%;
}

.auth-panel .banner {
  margin-bottom: 12px;
}

