:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f1f3f6;
  --border: #e3e6eb;
  --border-strong: #cfd4dc;
  --text: #111827;
  --text-2: #4b5563;
  --text-3: #8a93a1;
  --accent: #2563eb;
  --accent-soft: #e8efff;
  --up: #0f9d58;
  --up-soft: #e3f5ec;
  --down: #d93636;
  --down-soft: #fdeaea;
  --warn: #b7791f;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05);
  --radius: 10px;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1117;
    --surface: #151b23;
    --surface-2: #1c232d;
    --border: #262f3b;
    --border-strong: #35404e;
    --text: #e6e9ee;
    --text-2: #a6afbb;
    --text-3: #6f7a88;
    --accent: #4c8dff;
    --accent-soft: #1a2740;
    --up: #2ebd74;
    --up-soft: #12291e;
    --down: #f05252;
    --down-soft: #2f1719;
    --warn: #e0a43a;
    --shadow: none;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0d1117;
  --surface: #151b23;
  --surface-2: #1c232d;
  --border: #262f3b;
  --border-strong: #35404e;
  --text: #e6e9ee;
  --text-2: #a6afbb;
  --text-3: #6f7a88;
  --accent: #4c8dff;
  --accent-soft: #1a2740;
  --up: #2ebd74;
  --up-soft: #12291e;
  --down: #f05252;
  --down-soft: #2f1719;
  --warn: #e0a43a;
  --shadow: none;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; }
.num, td.n, th.n { font-variant-numeric: tabular-nums; }
.container { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 20px; }
main.container { flex: 1; padding-top: 20px; padding-bottom: 28px; }

/* Üst çubuk */
.topbar { position: sticky; top: 0; z-index: 30; background: var(--surface); border-bottom: 1px solid var(--border); }
.topbar-inner { max-width: 1440px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; color: var(--text); letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand svg { fill: var(--accent); }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--text-2); padding: 6px 10px; border-radius: 7px; font-weight: 500; }
.nav a:hover { background: var(--surface-2); text-decoration: none; color: var(--text); }
.nav a.active { color: var(--text); background: var(--surface-2); }
.search { position: relative; flex: 1; max-width: 420px; margin-left: auto; }
.search input {
  width: 100%; height: 36px; padding: 0 34px 0 12px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: inherit; outline: none;
}
.search input:focus { border-color: var(--accent); background: var(--surface); }
.search kbd { position: absolute; right: 9px; top: 8px; font: 11px var(--mono); color: var(--text-3); border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; }
.search-results {
  position: absolute; top: 42px; left: 0; right: 0; margin: 0; padding: 4px; list-style: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.15);
  max-height: 380px; overflow: auto;
}
.search-results li { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: center; padding: 7px 9px; border-radius: 7px; cursor: pointer; }
.search-results li[aria-selected="true"], .search-results li:hover { background: var(--surface-2); }
.search-results .sym { font-weight: 600; }
.search-results .nm { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status { display: flex; align-items: center; gap: 6px; color: var(--text-3); font-size: 12px; white-space: nowrap; }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
.status.ok .dot { background: var(--up); }
.status.err .dot { background: var(--down); }
.status.wait .dot { background: var(--warn); }
.icon-btn { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; }
.icon-btn svg { fill: var(--text-2); }
.icon-btn:hover { background: var(--surface-2); }

.ticker { display: flex; gap: 0; overflow-x: auto; border-top: 1px solid var(--border); scrollbar-width: none; max-width: 1440px; margin: 0 auto; padding: 0 12px; }
.ticker::-webkit-scrollbar { display: none; }
.tick { display: flex; align-items: baseline; gap: 8px; padding: 7px 10px; white-space: nowrap; font-size: 13px; border-right: 1px solid var(--border); }
.tick:last-child { border-right: 0; }
.tick .lbl { color: var(--text-2); font-weight: 500; }
.tick .val { font-weight: 600; font-variant-numeric: tabular-nums; }

/* Genel bileşenler */
.up { color: var(--up); }
.down { color: var(--down); }
.muted { color: var(--text-3); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.card-h h2, .card-h h3 { margin: 0; font-size: 14px; font-weight: 600; }
.card-b { padding: 14px 16px; }
.grid { display: grid; gap: 16px; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pill.up { background: var(--up-soft); }
.pill.down { background: var(--down-soft); }
.pill.neu { background: var(--surface-2); color: var(--text-2); }
.badge { display: inline-block; padding: 1px 7px; border-radius: 5px; font-size: 11px; font-weight: 600; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }
.badge.warn { color: var(--warn); }
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 2px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 4px 10px; border-radius: 6px; cursor: pointer; color: var(--text-2); font-size: 13px; font-weight: 500; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.chip { border: 1px solid var(--border); background: var(--surface); color: var(--text-2); padding: 3px 9px; border-radius: 999px; font-size: 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.chip.on { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
.chip i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
select, .input {
  height: 32px; border: 1px solid var(--border); background: var(--surface); color: var(--text);
  border-radius: 7px; padding: 0 8px; font: inherit; font-size: 13px; outline: none;
}
select:focus, .input:focus { border-color: var(--accent); }
.empty { padding: 28px; text-align: center; color: var(--text-3); }
.error { padding: 14px 16px; color: var(--down); }
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--border), var(--surface-2)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 6px; min-height: 14px; }
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.source { font-size: 12px; color: var(--text-3); }
.star { border: 0; background: none; cursor: pointer; padding: 2px; line-height: 0; }
.star svg { width: 16px; height: 16px; fill: none; stroke: var(--text-3); stroke-width: 1.6; }
.star.on svg { fill: #f5b301; stroke: #f5b301; }
.star:hover svg { stroke: #f5b301; }

/* Piyasa özeti */
.page-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 14px; flex-wrap: wrap; }
.page-title h1 { margin: 0; font-size: 20px; letter-spacing: -.01em; }
.overview { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 16px; }
.breadth { display: flex; flex-direction: column; gap: 12px; }
.breadth .bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--surface-2); }
.breadth .bar span { display: block; height: 100%; }
.kv { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 3px 0; }
.kv .k { color: var(--text-2); }
.kv .v { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.leaders { list-style: none; margin: 0; padding: 0; }
.leaders li { display: grid; grid-template-columns: 70px 1fr auto; gap: 8px; align-items: center; padding: 5px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.leaders li:last-child { border-bottom: 0; }
.leaders .s { font-weight: 600; color: var(--text); }
.leaders .p { color: var(--text-2); text-align: right; font-variant-numeric: tabular-nums; }
.big { font-size: 22px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }

.sectors { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.sector-tile { border-radius: 8px; padding: 9px 11px; cursor: pointer; border: 1px solid transparent; color: var(--text); text-align: left; background: var(--surface-2); }
.sector-tile:hover { border-color: var(--border-strong); }
.sector-tile.on { border-color: var(--accent); }
.sector-tile .t { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sector-tile .c { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sector-tile .m { font-size: 11px; color: var(--text-2); }

/* Tablo */
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.toolbar .grow { flex: 1; }
.table-wrap { overflow: auto; max-height: calc(100vh - 210px); }
table.data { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
table.data th, table.data td { padding: 7px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; text-align: left; }
table.data th { position: sticky; top: 0; background: var(--surface); z-index: 2; color: var(--text-2); font-weight: 600; font-size: 12px; cursor: pointer; user-select: none; }
table.data th:hover { color: var(--text); }
table.data th.sorted { color: var(--accent); }
table.data th .arr { font-size: 10px; margin-left: 3px; }
table.data th.n, table.data td.n { text-align: right; }
table.data tbody tr { cursor: pointer; }
table.data tbody tr:hover td { background: var(--surface-2); }
table.data td.sym { font-weight: 600; }
table.data td.name { max-width: 260px; overflow: hidden; text-overflow: ellipsis; color: var(--text-2); }
table.data .sticky-col { position: sticky; left: 0; background: var(--surface); z-index: 1; }
table.data th.sticky-col { z-index: 3; }
table.data tbody tr:hover td.sticky-col { background: var(--surface-2); }
.range52 { display: inline-block; position: relative; width: 70px; height: 4px; background: var(--surface-2); border-radius: 2px; vertical-align: middle; }
.range52 i { position: absolute; top: -3px; width: 3px; height: 10px; background: var(--text-2); border-radius: 1px; }
.table-foot { display: flex; justify-content: space-between; gap: 10px; padding: 10px 16px; color: var(--text-3); font-size: 12px; flex-wrap: wrap; }

/* Hisse sayfası */
.crumbs { font-size: 13px; color: var(--text-3); margin-bottom: 10px; }
.crumbs a { color: var(--text-2); }
.stock-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; }
.stock-head h1 { margin: 0; font-size: 24px; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.stock-head .sub { color: var(--text-2); margin-top: 3px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.price-block { text-align: right; }
.price-block .px { font-size: 30px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.price-block .chg { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.price-block .when { font-size: 12px; color: var(--text-3); }
.stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; margin-bottom: 16px; }
.stat { padding: 11px 14px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stat .k { font-size: 12px; color: var(--text-3); }
.stat .v { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 2px; }
.stat:nth-child(6n) { border-right: 0; }
.stat:nth-last-child(-n+6) { border-bottom: 0; }
.chart-card { margin-bottom: 16px; }
.chart-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.chart-box { height: 560px; position: relative; }
.chart-legend { position: absolute; left: 12px; top: 8px; z-index: 5; font-size: 12px; color: var(--text-2); pointer-events: none; display: flex; gap: 12px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.chart-legend b { color: var(--text); font-weight: 600; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); padding: 0 10px; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 12px 12px 10px; cursor: pointer; color: var(--text-2); font-weight: 500; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button:hover { color: var(--text); }
.tabs button.on { color: var(--text); border-bottom-color: var(--accent); }
.cols-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.section-title { font-size: 12px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; margin: 0 0 8px; }
.desc { color: var(--text-2); line-height: 1.6; margin: 0; }
.ind-table td .state { color: var(--text-2); }
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 11px 16px; border-bottom: 1px solid var(--border); display: flex; gap: 14px; align-items: flex-start; }
.list li:last-child { border-bottom: 0; }
.list .date { color: var(--text-3); font-size: 12px; min-width: 112px; font-variant-numeric: tabular-nums; padding-top: 1px; }
.list .title { color: var(--text); font-weight: 500; }
.list .meta { color: var(--text-3); font-size: 12px; margin-top: 2px; }
.fin-table td.item { white-space: normal; min-width: 260px; }
.fin-table td.item.ind { padding-left: 24px; color: var(--text-2); }
.fin-table tr.head td { font-weight: 700; background: var(--surface-2); }
.fin-table tbody tr { cursor: default; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.metric-grid .stat:nth-child(4n) { border-right: 0; }
.metric-grid .stat { border-bottom: 1px solid var(--border); }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 140px; padding: 6px 4px 0; }
.bars .b { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; min-width: 0; }
.bars .b span { width: 100%; max-width: 38px; border-radius: 4px 4px 0 0; background: var(--accent); min-height: 2px; }
.bars .b span.neg { background: var(--down); }
.bars .b small { font-size: 10px; color: var(--text-3); white-space: nowrap; }
.bars .b em { font-style: normal; font-size: 10px; color: var(--text-2); white-space: nowrap; }
.footer { color: var(--text-3); font-size: 12px; padding-bottom: 24px; }
.footer p { margin: 0; max-width: 980px; }
.financial-warning { grid-column: 1 / -1; padding: 10px 14px; font-size: 12px; color: var(--warn); }
.note-input { display: block; width: 100%; min-height: 200px; padding: 12px; resize: vertical; }
.wrap-cell { white-space: normal !important; min-width: 180px; }
#toasts { position: fixed; right: 16px; bottom: 16px; z-index: 80; display: grid; gap: 8px; max-width: min(420px, calc(100vw - 32px)); }
.toast { padding: 12px 16px; border-radius: 10px; background: var(--surface); color: var(--text); border: 1px solid var(--accent); box-shadow: 0 5px 25px rgba(0,0,0,.2); font-size: 13px; overflow-wrap: anywhere; }
.toast.error { border-color: var(--down); color: var(--down); }
.drawing-tools { flex-direction: column; align-items: flex-start; }
.chart-tools label, .toolbar label { font-size: 12px; color: var(--text-2); }
.toolbar input[type=url] { max-width: min(320px, 100%); }
.topbar-inner .nav { font-size: 12px; gap: 0; }
.topbar-inner .nav a { padding: 6px 7px; }
.advanced { border-bottom: 1px solid var(--border); padding: 12px 16px; }
.advanced summary { cursor: pointer; color: var(--text-2); font-size: 13px; }
.filter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; padding-top: 14px; }
.filter-grid label { display: grid; gap: 5px; font-size: 12px; color: var(--text-2); }
.filter-grid label span { display: flex; gap: 6px; }
.filter-grid .input { min-width: 0; width: 50%; }
.filter-grid .chip { align-self: end; justify-content: center; height: 32px; }
.indicator-readout { display: flex; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--border); padding: 10px 14px; font: 12px var(--mono); }
.macd-settings { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.macd-settings label { font-size: 12px; color: var(--text-2); }
.macd-settings input { width: 58px; }
.chip:disabled { cursor: default; opacity: .85; }
.as-of { text-transform: none; letter-spacing: 0; font-weight: 400; margin-left: 8px; }
.holder-bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; margin: 6px 0 10px; background: var(--surface-2); }
.holder-bar span { display: block; height: 100%; }
table.data tr.total td { font-weight: 600; border-top: 2px solid var(--border); }
.study-tools { justify-content: flex-start; }
.study-chip { padding: 0; gap: 0; }
.study-chip button { background: none; border: 0; color: inherit; font: inherit; padding: 3px 8px; cursor: pointer; }
.study-chip button + button { padding-left: 2px; font-weight: 700; }
.study-panel { flex-basis: 100%; border: 1px solid var(--border); border-radius: 8px; padding: 10px; background: var(--surface-2); min-width: 0; }
.study-head { display: flex; gap: 8px; align-items: center; }
.study-head .input { flex: 1; min-width: 0; }
.study-list { max-height: 340px; overflow: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 2px 12px; margin: 6px 0; }
.study-list .section-title { grid-column: 1 / -1; margin: 8px 0 2px; }
.study-item { display: flex; justify-content: space-between; gap: 8px; text-align: left; background: none; border: 1px solid transparent; border-radius: 6px; padding: 5px 8px; color: var(--text); font: inherit; font-size: 13px; cursor: pointer; }
.study-item:hover, .study-item:focus-visible { border-color: var(--border); background: var(--surface); }
.study-item .source { white-space: nowrap; }
.workspace-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.workspace-grid .chart-tools { gap: 6px; }
.workspace-grid .seg button { padding: 4px 7px; }
.comparison-chart { height: 300px; position: relative; }
.symbol-cloud { display: flex; gap: 6px; flex-wrap: wrap; max-height: 300px; overflow: auto; }
.nav { flex-wrap: wrap; }
.topbar-inner { flex-wrap: wrap; gap: 12px; }
.grid > *, .workspace-grid > *, .card { min-width: 0; }
@media (max-width: 1100px) { .workspace-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .nav { order: 4; flex-basis: 100%; margin: 0; font-size: 12px; }
  .nav a { padding: 4px 8px; }
  .stock-head .when { overflow-wrap: anywhere; }
  .ind-table td { white-space: normal; }
  .toolbar label { max-width: 100%; }
  .toolbar label .input { max-width: 100%; }
  .chart-legend { gap: 5px; font-size: 10px; max-width: calc(100% - 70px); }
}

@media (max-width: 1100px) {
  .overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat:nth-child(6n) { border-right: 1px solid var(--border); }
  .stat:nth-child(3n) { border-right: 0; }
  .stat:nth-last-child(-n+6) { border-bottom: 1px solid var(--border); }
  .stat:nth-last-child(-n+3) { border-bottom: 0; }
  .cols-3 { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-grid .stat:nth-child(2n) { border-right: 0; }
}
@media (max-width: 760px) {
  .container { padding: 0 16px; }
  .topbar-inner { flex-wrap: wrap; padding: 10px 16px; gap: 10px; }
  .search { order: 5; max-width: none; flex-basis: 100%; }
  .status .status-text { display: none; }
  .nav { margin-left: auto; }
  .overview, .cols-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3n) { border-right: 1px solid var(--border); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-last-child(-n+3) { border-bottom: 1px solid var(--border); }
  .stat:nth-last-child(-n+2) { border-bottom: 0; }
  .price-block { text-align: left; }
  .chart-box { height: 440px; }
  .list li { flex-direction: column; gap: 3px; }
  .table-wrap { max-height: none; }
}

/* ------------------------------------------------------------------ */
/* Sinyaller (dip dönüş taraması) — telefon öncelikli kartlar           */
/* ------------------------------------------------------------------ */
.sig-controls { display: grid; gap: 10px; margin-bottom: 14px; }
.sig-mode { width: max-content; max-width: 100%; }
.sig-mode button { min-width: 84px; padding: 7px 14px; }
.sig-filters { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.sig-filters::-webkit-scrollbar { display: none; }
.sig-filters .chip { white-space: nowrap; padding: 6px 11px; font-size: 13px; }
.sig-filters .chip b { font-weight: 600; margin-left: 2px; }
.sig-filters .chip.warn-chip.on { border-color: var(--down); background: var(--down-soft); }
.sig-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sig-row .input { flex: 1; min-width: 160px; max-width: 320px; height: 36px; }
.sig-watch { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--text-2); }
.linkish { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font: inherit; }
.linkish:disabled { color: var(--text-3); cursor: default; }
.sig-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr)); gap: 12px; }
.sig-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; display: grid; gap: 8px; min-width: 0; }
.sig-card header { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 8px; }
.sig-sym { font-weight: 700; font-size: 16px; color: var(--text); }
.sig-name { color: var(--text-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.sig-px { font-variant-numeric: tabular-nums; font-size: 13px; white-space: nowrap; }
.sig-badges { display: flex; flex-wrap: wrap; gap: 5px; }
.sig-badges:empty { display: none; }
.sig-badge { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); }
.sig-badge.new { background: var(--up); color: #fff; font-weight: 600; }
.sig-badge.on, .sig-badge.plus, .sig-badge.both { background: var(--up-soft); color: var(--up); }
.sig-badge.both { font-weight: 600; }
.sig-badge.near { background: var(--accent-soft); color: var(--accent); }
.sig-grid-wrap { overflow-x: auto; }
.sig-grid { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 7px 10px; align-items: start; border-top: 1px solid var(--border); padding-top: 9px; }
.sig-grid.both { grid-template-columns: 76px minmax(0, 1fr) minmax(0, 1fr); }
.sig-grid.multi { grid-template-columns: 72px repeat(4, minmax(110px, 1fr)); }
.sig-grid small { display: block; color: var(--text-3); font-size: 11.5px; margin-top: 2px; overflow-wrap: anywhere; }
.sig-lab { color: var(--text-2); font-size: 13px; font-weight: 500; padding-top: 2px; }
.sig-col { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; }
.pill { display: inline-block; font-size: 12.5px; padding: 2px 9px; border-radius: 999px; font-weight: 500; }
.pill.up { background: var(--up-soft); color: var(--up); }
.pill.down { background: var(--down-soft); color: var(--down); }
.pill.neu { background: var(--surface-2); color: var(--text-2); }
.pill.warn { background: var(--surface-2); color: var(--warn); }
.sig-card footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 8px; }
.sig-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.sig-actions .chip { padding: 5px 9px; font-size: 12px; }
.sig-help { margin-top: 14px; }
.sig-help > summary { cursor: pointer; padding: 12px 16px; font-weight: 600; list-style-position: inside; }
.sig-help .rules { padding-left: 20px; display: grid; gap: 6px; margin: 0 0 10px; }
.sig-help h3 { font-size: 14px; margin: 14px 0 6px; }
.param-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 8px 14px; margin-bottom: 10px; }
.param-grid label { display: grid; gap: 3px; font-size: 12px; color: var(--text-2); }
.param-grid .input { height: 34px; }

/* Gösterge listesi ve grafik açıklaması */
.study-group { grid-column: 1 / -1; }
.study-group .source { margin: 0 0 4px; }
.study-text { display: grid; gap: 2px; min-width: 0; }
.study-text small { color: var(--text-3); font-size: 11.5px; line-height: 1.35; }
.study-item { align-items: flex-start; }
.ind-guide { border-top: 1px solid var(--border); padding: 0 14px; }
.ind-guide > summary { cursor: pointer; padding: 10px 0; font-size: 13px; font-weight: 600; color: var(--text-2); }
.guide-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 10px 18px; margin: 0 0 12px; }
.guide-list dt { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; }
.guide-list dd { margin: 3px 0 0; color: var(--text-2); font-size: 12.5px; line-height: 1.45; }
.guide-lines { display: inline-flex; flex-wrap: wrap; gap: 4px 10px; }
.guide-line { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-2); }
.sw { display: inline-block; width: 14px; height: 4px; border-radius: 2px; }
.sw-hist { height: 10px; width: 10px; border-radius: 2px; background: linear-gradient(90deg, var(--up) 50%, var(--down) 50%); }
.guide-events { margin: 4px 0 10px; padding-left: 18px; font-size: 12.5px; display: grid; gap: 3px; }
.guide-events span { color: var(--text-3); font-variant-numeric: tabular-nums; margin-right: 4px; }

/* Telefon alt menüsü */
.bottom-nav { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }
  .bottom-nav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: var(--surface); border-top: 1px solid var(--border);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
  }
  .bottom-nav a, .bottom-nav button {
    flex: 1; display: grid; justify-items: center; gap: 2px; padding: 4px 0; min-height: 48px;
    font-size: 11px; color: var(--text-2); background: none; border: 0; cursor: pointer; text-decoration: none;
  }
  .bottom-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
  .bottom-nav a.active { color: var(--accent); }
  .topbar .nav { display: none; }
  body.menu-open .topbar .nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; order: 4; flex-basis: 100%; padding: 6px 0 2px; }
  body.menu-open .topbar .nav a { padding: 10px 12px; font-size: 14px; background: var(--surface-2); }
  .topbar { position: static; }
  .sig-mode { width: 100%; }
  .sig-mode button { flex: 1; min-width: 0; padding: 7px 6px; font-size: 12px; }
  .sig-card { padding: 12px; }
  .sig-actions { width: 100%; }
  .sig-actions .chip { flex: 1 1 calc(50% - 4px); justify-content: center; padding: 8px 8px; font-size: 12.5px; }
  .page-title { flex-wrap: wrap; }
  .footer { padding-bottom: 8px; }
}
.bt-verdict { background: var(--surface-2); border-radius: 8px; padding: 8px 12px; margin: 4px 0 8px; font-size: 13px; }
.sig-sens { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sig-sens-l { font-size: 13px; color: var(--text-2); font-weight: 500; }
.sig-sens .seg button { padding: 6px 12px; }
@media (max-width: 760px) { .sig-sens .seg { flex: 1; } .sig-sens .seg button { flex: 1; } }
.sig-badge.warn { background: var(--down-soft); color: var(--down); }
