:root { --nav-width: 242px; }
.topbar { gap: 16px; }
.topbar .brand { min-width: 210px; }
.app-shell { grid-template-columns: var(--nav-width) minmax(0, 1fr); }
.app-sidebar {
  position: sticky; top: 66px; height: calc(100vh - 66px); min-height: 460px;
  display: flex; flex-direction: column; gap: 12px; overflow: auto;
  padding: 22px 14px 16px; background: var(--panel); border-right: 1px solid var(--line);
}
.sidebar-profile { display: grid; gap: 9px; padding: 0 1px 3px; }
.sidebar-profile-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sidebar-profile-name { display: grid; gap: 3px; min-width: 0; }
.sidebar-profile-name b { color: var(--text); font-size: 15px; letter-spacing: .03em; }
.sidebar-profile-name span { color: var(--cyan); font-size: 10px; font-weight: 750; letter-spacing: .14em; }
.sidebar-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5px;
  padding: 5px 11px;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.12) 0%, rgba(0, 255, 157, 0.05) 100%);
  border: 1px solid rgba(0, 240, 255, 0.42);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all .2s ease;
}
.sidebar-date:hover {
  border-color: rgba(0, 255, 157, 0.6);
  box-shadow: 0 0 18px rgba(0, 255, 157, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.sidebar-date .date-val {
  font: 800 13px/1 'IBM Plex Mono', Consolas, monospace;
  color: #00f0ff;
  letter-spacing: 0.04em;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}
.sidebar-date .day-val {
  font: 800 10px/1 'Segoe UI', Arial, sans-serif;
  color: #00ff9d;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(0, 255, 157, 0.5);
}

.instrument-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 6px 0 4px;
}
.inst-pill {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 750;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
  letter-spacing: 0.02em;
  background: rgba(8, 16, 26, 0.85);
  white-space: nowrap;
}
.inst-pill.inst-mkt {
  color: #00f0ff;
  border: 1px solid rgba(0, 240, 255, 0.4);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.15);
}
.inst-pill.inst-sector {
  color: #ffb800;
  border: 1px solid rgba(255, 184, 0, 0.4);
  box-shadow: 0 0 8px rgba(255, 184, 0, 0.15);
}
.inst-pill.inst-role {
  color: #00ff9d;
  border: 1px solid rgba(0, 255, 157, 0.4);
  box-shadow: 0 0 8px rgba(0, 255, 157, 0.15);
}
.inst-pill.inst-strat {
  color: #c040ff;
  border: 1px solid rgba(192, 64, 255, 0.4);
  box-shadow: 0 0 8px rgba(192, 64, 255, 0.15);
}
.inst-pill.inst-session {
  color: #a0c0d8;
  border: 1px solid rgba(160, 192, 216, 0.3);
}
.sidebar-toggle { display: inline-flex; align-items: center; gap: 5px; min-height: 40px; padding: 0 9px; border: 0; border-radius: 10px; background: #00ff9d; color: #02140c; font-size: 10px; font-weight: 850; cursor: pointer; box-shadow: 0 0 16px rgba(0, 255, 157, 0.35); }
.sidebar-toggle:hover { background: #39ffb0; }
.sidebar-toggle-icon { font-size: 15px; line-height: 1; }
.sidebar-clocks { display: grid; gap: 7px; }
.sidebar-clock { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel2); }
.sidebar-flag { display: block; width: 38px; height: 26px; flex: 0 0 38px; border: 1px solid color-mix(in srgb, var(--line) 80%, white); border-radius: 5px; background: #0a1016; overflow: hidden; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.sidebar-flag svg { display: block; width: 100%; height: 100%; object-fit: cover; }
.sidebar-clock-copy { display: grid; gap: 1px; }
.sidebar-clock-copy small { color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .16em; }
.sidebar-clock-copy time { color: var(--text); font: 750 18px/1.1 Consolas, monospace; letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.side-menu { display: grid; gap: 7px; }
.side-link {
  min-height: 48px; display: flex; align-items: center; gap: 12px; padding: 0 13px;
  border: 1px solid transparent; border-radius: 9px; color: var(--soft); font-size: 14px; font-weight: 650;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.side-link:hover { color: var(--text); background: var(--panel2); }
.side-link.active { color: var(--cyan); border-color: color-mix(in srgb, var(--cyan) 30%, var(--line)); background: color-mix(in srgb, var(--cyan) 13%, var(--panel)); box-shadow: inset 3px 0 var(--cyan); }
.side-link b { margin-left: auto; color: var(--text); font: 700 11px Consolas, monospace; }
.side-icon { width: 21px; text-align: center; font-size: 19px; line-height: 1; }
.sidebar-status { margin-top: auto; }
.sidebar-status .data-health { padding: 13px 11px; }
.strategy-link { display: flex; justify-content: space-between; margin: 16px 7px 7px; color: var(--cyan); font-size: 12px; font-weight: 650; }
.sidebar-collapsed { --nav-width: 76px; }
.sidebar-collapsed .app-shell { grid-template-columns: var(--nav-width) minmax(0,1fr); }
.sidebar-collapsed .app-sidebar { align-items: center; padding-right: 8px; padding-left: 8px; }
.sidebar-collapsed .sidebar-profile { width: 100%; }
.sidebar-collapsed .sidebar-profile-name,
.sidebar-collapsed .sidebar-date,
.sidebar-collapsed .sidebar-clocks,
.sidebar-collapsed .sidebar-toggle-label,
.sidebar-collapsed .side-link > span:not(.side-icon),
.sidebar-collapsed .side-link > b,
.sidebar-collapsed .sidebar-status { display: none; }
.sidebar-collapsed .sidebar-profile-heading,
.sidebar-collapsed .side-link { justify-content: center; }
.sidebar-collapsed .sidebar-toggle { min-height: 40px; width: 48px; justify-content: center; }
.sidebar-collapsed .sidebar-toggle-icon { transform: rotate(180deg); }
.sidebar-collapsed .side-menu { width: 100%; }
.sidebar-collapsed .side-link { padding: 0; }
.sidebar-collapsed .side-link .side-icon { width: auto; }
.work-area { min-width: 0; padding: 20px 22px 18px; }
.page-view[hidden] { display: none !important; }
.page-view { min-width: 0; }
.instrument-identity { display: flex; align-items: center; gap: 13px; min-width: 0; }
.instrument-logo { width: 52px; height: 52px; flex: 0 0 52px; border: 1px solid var(--line); border-radius: 13px; object-fit: contain; background: var(--panel2); padding: 4px; }
.instrument-identity h2 { overflow-wrap: anywhere; }
.instrument-search { position: relative; flex: 1 1 228px; min-width: 190px; max-width: 300px; z-index: 8; }
.instrument-search-field { height: 43px; display: flex; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel2); color: var(--muted); }
.instrument-search-field:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cyan) 15%, transparent); }
.instrument-search-field > span { font-size: 20px; }
.instrument-search-field input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 13px; font-weight: 650; }
.instrument-search-field input::placeholder { color: var(--muted); font-size: 11px; font-weight: 550; }
.instrument-search-results { position: absolute; top: calc(100% + 7px); left: 0; right: 0; max-height: min(62vh, 520px); overflow: auto; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); box-shadow: 0 18px 42px #0008; }
.instrument-search-results[hidden] { display: none; }
.instrument-result { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px; border: 0; border-radius: 7px; background: transparent; color: var(--text); text-align: left; cursor: pointer; }
.instrument-result:hover, .instrument-result:focus-visible { outline: 0; background: var(--panel2); }
.result-logo { width: 36px; height: 36px; flex: 0 0 36px; border: 1px solid var(--line); border-radius: 9px; object-fit: contain; background: var(--bg); padding: 2px; }
.instrument-result-copy { min-width: 0; display: grid; gap: 3px; }
.instrument-result-copy b { font-size: 13px; }
.instrument-result-copy small { max-width: 205px; overflow: hidden; color: var(--muted); font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.result-kind { margin-left: auto; color: var(--cyan); font-size: 9px; font-weight: 750; letter-spacing: .06em; }
.instrument-result-empty, .instrument-search-note { padding: 13px 10px; color: var(--muted); font-size: 12px; }
.instrument-search-note { border-top: 1px solid var(--line); color: var(--red); }
#chartAsset[hidden] { display: none !important; }
.chart-toolbar { gap: 8px; }
.chart-toolbar select { height: 43px; min-width: 92px; padding: 0 12px; font-size: 13.5px; }
.toolbar-toggle { height: 41px; gap: 7px; padding: 0 10px; font-size: 12px; }
.toolbar-toggle input { width: 16px; height: 16px; }
.indicator-legend { gap: 8px; }
.indicator-legend > span { padding: 6px 9px; font-size: 11px; }
.signal-table .signal-asset-cell { display: flex; align-items: center; gap: 9px; }
.signal-table tbody tr.signal-click-row { cursor: pointer; transition: background-color 0.14s ease; }
.signal-table tbody tr.signal-click-row:hover { background: rgba(56, 189, 248, 0.09); }
.signal-table tbody tr.signal-click-row:hover td:first-child { box-shadow: inset 3px 0 0 #38bdf8; }
.signal-table tbody tr.signal-click-row:hover .signal-asset { color: #7dd3fc; }
.signal-table tbody tr.signal-click-row.is-active-chart { background: rgba(251, 191, 36, 0.08); }
.signal-table tbody tr.signal-click-row.is-active-chart td:first-child { box-shadow: inset 3px 0 0 #fbbf24; }
.signal-table tbody tr.signal-click-row:focus-visible { outline: 2px solid #fbbf24; outline-offset: -2px; }
.signal-logo { width: 34px; height: 34px; flex: 0 0 34px; border: 1px solid var(--line); border-radius: 9px; object-fit: contain; background: var(--panel2); padding: 2px; }
.signal-asset-cell > span { display: grid; gap: 3px; }
.signal-market { margin: 0 !important; }
.signal-table th:nth-child(1), .signal-table td:nth-child(1) { width: 32%; }
.signal-table th:nth-child(2), .signal-table td:nth-child(2) { width: 17%; }
.signal-table th:nth-child(3), .signal-table td:nth-child(3) { width: 30%; }
.signal-table th:nth-child(4), .signal-table td:nth-child(4) { width: 21%; }
.signal-action-wrap { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.signal-brake-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fbbf24;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.2;
  white-space: normal;
}
.detail-list .signal-item {
  border-radius: 10px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-left-width: 4px;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}
.detail-list .signal-item.event-buy {
  background: linear-gradient(90deg, rgba(0, 255, 157, 0.18), rgba(0, 255, 157, 0.05) 68%, rgba(0, 255, 157, 0.02));
  border-color: rgba(0, 255, 157, 0.45);
  border-left-color: #00ff9d;
  box-shadow: inset 3px 0 14px rgba(0, 255, 157, 0.18);
}
.detail-list .signal-item.event-sell {
  background: linear-gradient(90deg, rgba(255, 34, 86, 0.20), rgba(255, 34, 86, 0.05) 68%, rgba(255, 34, 86, 0.02));
  border-color: rgba(255, 34, 86, 0.48);
  border-left-color: #ff2256;
  box-shadow: inset 3px 0 14px rgba(255, 34, 86, 0.20);
}
.detail-list .signal-item.event-buy .signal-date { color: #00ff9d; text-shadow: 0 0 8px rgba(0, 255, 157, 0.4); }
.detail-list .signal-item.event-sell .signal-date { color: #ff4d79; text-shadow: 0 0 8px rgba(255, 34, 86, 0.4); }
.detail-list .signal-item.event-buy b {
  color: #00ff9d;
  text-shadow: 0 0 12px rgba(0, 255, 157, 0.50);
}
.detail-list .signal-item.event-sell b {
  color: #ff2256;
  text-shadow: 0 0 12px rgba(255, 34, 86, 0.50);
}
.signal-timeframe-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.detail-list .signal-item.event-buy .signal-timeframe-tag {
  background: rgba(0, 255, 136, 0.18);
  border: 1px solid rgba(0, 255, 136, 0.65);
  color: #00ff88;
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
}
.detail-list .signal-item.event-sell .signal-timeframe-tag {
  background: rgba(255, 42, 85, 0.2);
  border: 1px solid rgba(255, 42, 85, 0.68);
  color: #ff4772;
  box-shadow: 0 0 10px rgba(255, 42, 85, 0.22);
}
.asset-symbol-wrap {
  position: relative;
  width: 100%;
}
.asset-symbol-wrap input {
  width: 100%;
}
#assetDialog .trade-dropdown {
  width: min(390px, 78vw);
  z-index: 60;
}
.basket-section { margin: 0; padding: 22px; }
.section-subtitle { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.table-tools { display: flex; align-items: center; gap: 12px; margin: 18px 0 12px; }
.table-search { height: 40px; width: min(360px, 100%); display: flex; align-items: center; gap: 9px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--muted); }
.table-search span { font-size: 19px; }
.table-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 13px; }
.table-result-count { color: var(--muted); font: 11px Consolas, monospace; }
.basket-table { min-width: 1120px; border-collapse: separate; border-spacing: 0; }
.basket-table th { padding: 0; border-bottom: 1px solid var(--line); background: var(--panel2); }
.sort-button { width: 100%; min-height: 43px; display: inline-flex; align-items: center; justify-content: flex-start; gap: 7px; padding: 0 11px; border: 0; background: transparent; color: var(--soft); font-size: 11px; font-weight: 750; letter-spacing: .035em; text-align: left; white-space: nowrap; }
.sort-button:hover, .sort-button.sorted { color: var(--cyan); }
.sort-button span { color: var(--muted); font-size: 12px; }
.basket-table td { height: 64px; padding: 8px 11px; font-size: 12px; }
.table-asset { display: flex; align-items: center; gap: 10px; min-width: 115px; padding: 0; border: 0; background: transparent; color: var(--text); text-align: left; }
.table-asset > span { display: grid; gap: 3px; }
.table-asset b { font-size: 13px; letter-spacing: .02em; }
.table-asset small { color: var(--muted); font-size: 10px; }
.table-logo { width: 38px; height: 38px; flex: 0 0 38px; border: 1px solid var(--line); border-radius: 10px; object-fit: contain; background: var(--panel2); padding: 2px; }
.table-price, .table-date { font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-price { color: var(--text); font-weight: 700; }
.table-change { font-weight: 700; font-variant-numeric: tabular-nums; }
.table-change.positive { color: var(--green); }
.table-change.negative { color: var(--red); }
.weight-divider { color: var(--muted); padding: 0 3px; }
.table-signal { display: inline-grid; min-width: 42px; min-height: 27px; place-items: center; padding: 2px 8px; border: 1px solid currentColor; border-radius: 6px; font-weight: 800; }
.table-signal.buy { color: var(--green); background: color-mix(in srgb, var(--green) 11%, transparent); }
.table-signal.sell { color: var(--red); background: color-mix(in srgb, var(--red) 11%, transparent); }
.table-date { color: var(--soft); }
.basket-table .role-tag { display: inline-block; padding: 5px 8px; }
.basket-table .row-actions { gap: 6px; }
.basket-table .row-actions button { padding: 7px 9px; font-size: 11px; }
.watchlist-view { min-height: calc(100vh - 108px); padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); box-shadow: var(--shadow); }
.watchlist-header-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.watchlist-header-actions button:disabled { opacity: .45; cursor: default; }
.watchlist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 22px; }
.watchlist-card-item { min-width: 0; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: stretch; border: 1px solid var(--line); border-radius: 11px; background: var(--panel2); overflow: hidden; transition: border-color .16s ease, transform .16s ease, background .16s ease; }
.watchlist-card-item:hover { transform: translateY(-2px); border-color: var(--cyan); background: color-mix(in srgb, var(--cyan) 8%, var(--panel2)); }
.watchlist-card-item.selected { border-color: var(--amber); box-shadow: inset 3px 0 var(--amber); }
.watchlist-card { min-width: 0; display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center; gap: 4px 12px; padding: 15px; border: 0; background: transparent; color: var(--text); text-align: left; cursor: pointer; }
.watchlist-remove-btn { display: grid; place-items: center; padding: 0 12px; border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 11px; font-weight: 700; cursor: pointer; transition: color .15s ease, background .15s ease; }
.watchlist-remove-btn:hover { color: var(--red); background: color-mix(in srgb, var(--red) 12%, transparent); }
.danger-button { border-color: color-mix(in srgb, var(--red) 45%, var(--line)); color: var(--red); background: color-mix(in srgb, var(--red) 10%, var(--panel2)); }
.danger-button:hover { border-color: var(--red); color: var(--red); background: color-mix(in srgb, var(--red) 18%, var(--panel2)); }
.asset-logo { width: 46px; height: 46px; grid-row: span 2; border: 1px solid var(--line); border-radius: 12px; object-fit: contain; background: var(--bg); padding: 3px; }
.watchlist-symbol { font-size: 15px; font-weight: 800; letter-spacing: .025em; }
.watchlist-price { font: 700 12px Consolas, monospace; white-space: nowrap; }
.watchlist-detail, .watchlist-date { grid-column: 2 / -1; color: var(--muted); font-size: 11px; }
.watchlist-date { text-align: right; }
.signal-detail-copy { min-width: 0; }
.signal-detail-copy > b { display: flex; align-items: center; gap: 8px; }
.history-logo { width: 27px; height: 27px; flex: 0 0 27px; border: 1px solid var(--line); border-radius: 7px; object-fit: contain; background: var(--panel2); padding: 2px; }
.universe-view { min-height: calc(100vh - 108px); padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); box-shadow: var(--shadow); }
.universe-tools { flex-wrap: wrap; }
.universe-filter { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.universe-filter select { min-width: 135px; height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel2); color: var(--text); }
.universe-categories { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.universe-categories.universe-types { margin-left: 0; }
.universe-type-pill {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #38bdf8;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  vertical-align: middle;
}
.universe-categories button { min-height: 36px; padding: 0 11px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel2); color: var(--soft); font-size: 11px; font-weight: 650; cursor: pointer; }
.universe-categories button:hover, .universe-categories button.selected { border-color: color-mix(in srgb, var(--cyan) 55%, var(--line)); background: color-mix(in srgb, var(--cyan) 13%, var(--panel)); color: var(--cyan); }
.universe-table { min-width: 1120px; }
.universe-table th { padding: 13px 11px; color: var(--soft); font-size: 10px; text-align: left; }
.universe-table td { height: 58px; padding: 8px 11px; font-size: 12px; }
.universe-company { display: flex; align-items: center; gap: 10px; min-width: 190px; }
.universe-company > span { display: grid; gap: 4px; min-width: 0; }
.universe-company b { color: var(--text); font-size: 13px; }
.universe-company small { max-width: 320px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.universe-logo { width: 38px; height: 38px; flex: 0 0 38px; border: 1px solid var(--line); border-radius: 10px; object-fit: contain; background: var(--panel2); padding: 2px; }
.universe-table .table-price { display: grid; gap: 3px; }
.universe-rate-note { color: var(--soft); font: 600 11px Consolas, monospace; white-space: nowrap; }
.universe-add-btn { color: var(--cyan); border-color: color-mix(in srgb, var(--cyan) 35%, var(--line)); }
.universe-data-status { color: var(--muted); white-space: nowrap; }
.universe-data-status.current { color: var(--green); }
.universe-pagination { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.universe-pagination > div { display: flex; align-items: center; gap: 10px; }
.universe-pagination button:disabled { opacity: .45; cursor: default; }
@media(max-width:680px) {
  .universe-view { min-height: calc(100vh - 70px); padding: 12px 10px 8px; border-radius: 8px; }
  .universe-tools { align-items: stretch; gap: 8px; }
  .universe-tools .table-search { width: 100%; }
  .universe-filter { flex: 1; justify-content: space-between; }
  .universe-filter select { flex: 1; min-width: 0; }
  .universe-categories { width: 100%; margin-left: 0; }
  .universe-categories button { flex: 1; padding: 0 6px; font-size: 9px; }
  .universe-table-wrap { margin: 0 -2px; }
  .universe-pagination { font-size: 10px; }
}
@media (max-width: 1250px) {
  :root { --nav-width: 210px; }
  .work-area { padding: 16px; }
  .instrument-search { max-width: 250px; }
  .chart-toolbar select { min-width: 82px; }
}
@media (max-width: 950px) {
  .app-shell { grid-template-columns: 185px minmax(0,1fr); }
  .app-sidebar { padding: 16px 10px; }
  .work-area { padding: 12px; }
  .workspace { grid-template-columns: minmax(0,1fr); }
  .signal-inspector { display: flex; }
  .instrument-search { flex-basis: 230px; }
}
@media (max-width: 680px) {
  .topbar { height: 56px; padding: 0 10px; }
  .topbar .brand { min-width: auto; }
  .app-shell { display: flex; flex-direction: column; min-height: calc(100vh - 56px); }
  .app-sidebar { position: sticky; top: 56px; z-index: 12; width: 100%; height: auto; min-height: 0; overflow: visible; padding: 7px 9px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar-profile { grid-template-columns: minmax(0,1fr) auto; gap: 5px 10px; padding: 0 2px 5px; }
  .sidebar-profile-heading { grid-column: 1 / -1; }
  .sidebar-date { grid-column: 1 / -1; }
  .sidebar-clocks { grid-column: 1 / -1; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .sidebar-clock { min-width: 0; gap: 6px; padding: 5px; }
  .sidebar-flag { width: 29px; height: 23px; flex-basis: 29px; font-size: 19px; }
  .sidebar-clock-copy time { font-size: 15px; }
  .sidebar-status { display: none; }
  .side-menu { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 5px; }
  .side-link { min-height: 42px; justify-content: center; gap: 6px; padding: 0 5px; font-size: 11px; }
  .side-icon { width: auto; font-size: 16px; }
  .side-link b { margin-left: 0; font-size: 9px; }
  .sidebar-collapsed .app-sidebar { align-items: stretch; }
  .sidebar-collapsed .sidebar-profile { display: flex; justify-content: flex-end; }
  .sidebar-collapsed .sidebar-profile-heading { justify-content: flex-end; }
  .sidebar-collapsed .sidebar-toggle { width: auto; }
  .work-area { padding: 9px 8px; }
  .instrument-identity { gap: 8px; }
  .instrument-logo { width: 42px; height: 42px; flex-basis: 42px; }
  .instrument-search { flex: 1 1 100%; max-width: none; }
  .chart-toolbar { gap: 6px; }
  .chart-toolbar select { flex: 1 1 calc(25% - 5px); min-width: 0; height: 42px; padding: 0 7px; font-size: 12px; }
  .instrument-search-field { height: 42px; }
  .instrument-search-field input { font-size: 12px; }
  .toolbar-toggle { height: 39px; padding: 0 8px; font-size: 11px; }
  .toolbar-toggle input { width: 15px; height: 15px; }
  .indicator-legend > span { padding: 5px 7px; font-size: 10px; white-space: normal; }
  .basket-section, .watchlist-view { padding: 14px 10px; }
  .section-subtitle { font-size: 11px; }
  .basket-section .section-title { align-items: flex-start; }
  .basket-section .section-title .primary, .watchlist-view .section-title .primary, .watchlist-view .section-title .secondary { padding: 9px; font-size: 11px; white-space: nowrap; }
  .watchlist-grid { grid-template-columns: minmax(0,1fr); gap: 8px; }
  .watchlist-card { padding: 11px; }
  .watchlist-remove-btn { padding: 0 10px; font-size: 10px; }
  .table-tools { margin: 13px 0 9px; }
  .basket-table { min-width: 1060px; }
  .basket-table td { height: 58px; padding: 7px; font-size: 11px; }
}

/* =====================================================================
   İŞLEMLERİM & PORTFÖY (BKP-FON & STİL 3)
   ===================================================================== */
:root {
  --cyan: #3fe0d0;
  --gold: #ffd36b;
}

.portfolio-view {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 20px 30px;
}

.portfolio-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.portfolio-macro-rates {
  display: flex;
  gap: 10px;
  align-items: center;
}

.macro-pill {
  padding: 5px 12px;
  border-radius: 6px;
  background: rgba(90, 169, 255, 0.08);
  border: 1px solid rgba(90, 169, 255, 0.25);
  font-size: 11.5px;
  color: var(--muted);
  font-family: var(--font-mono);
}
.macro-pill b {
  color: #9ccbff;
  font-weight: 700;
}

/* 1. HIZLI KAYIT BARI */
.port-entry-card {
  background: linear-gradient(180deg, #131c26 0%, #0d141d 100%);
  border: 1.5px solid rgba(90, 169, 255, 0.35);
  border-radius: 12px;
  padding: 12px 18px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.port-entry-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.port-badge-step {
  background: #5aa9ff;
  color: #050b11;
  font-weight: 800;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: .06em;
}

.port-entry-desc {
  font-size: 11px;
  color: var(--muted);
}

.port-entry-grid {
  display: grid;
  grid-template-columns: 1.3fr 1.2fr 1.05fr 1fr 0.9fr 1.2fr auto;
  gap: 10px;
  align-items: end;
}

.port-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.port-field label {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .04em;
  display: flex;
  justify-content: space-between;
}

.curr-badge {
  color: #5aa9ff;
  font-weight: 800;
}

.port-input-wrap, .port-date-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.port-field input {
  width: 100%;
  height: 38px;
  background: #070b10;
  border: 1px solid rgba(140, 165, 190, 0.22);
  border-radius: 7px;
  padding: 0 10px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.port-field input:focus {
  border-color: #5aa9ff;
  outline: none;
  box-shadow: 0 0 0 2px rgba(90, 169, 255, 0.16);
}

.uppercase { text-transform: uppercase; }

.port-cal-btn {
  position: absolute;
  right: 6px;
  background: rgba(90, 169, 255, 0.12);
  border: 1px solid rgba(90, 169, 255, 0.35);
  border-radius: 4px;
  padding: 3px 6px;
  cursor: pointer;
  font-size: 12px;
}

.hidden-date-picker {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.port-side-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 38px;
  background: #070b10;
  border: 1px solid rgba(140, 165, 190, 0.22);
  border-radius: 7px;
  padding: 2px;
  gap: 2px;
}

.port-side-toggle .side-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 5px;
  cursor: pointer;
}

.port-side-toggle .side-btn.buy.selected {
  background: #00ff9d;
  color: #02140c;
  font-weight: 850;
  box-shadow: 0 0 14px rgba(0, 255, 157, 0.40);
}

.port-side-toggle .side-btn.sell.selected {
  background: #ff2256;
  color: #ffffff;
  font-weight: 850;
  box-shadow: 0 0 14px rgba(255, 34, 86, 0.40);
}

.port-side-toggle .side-btn.sell.is-unavailable {
  opacity: 0.4;
  cursor: not-allowed;
}

.trade-validation-banner {
  margin-top: 8px;
  padding: 7px 12px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.trade-validation-banner[hidden] { display: none; }
.trade-validation-banner.error {
  background: rgba(255, 34, 86, 0.16);
  border: 1px solid rgba(255, 34, 86, 0.50);
  color: #ff4d79;
}
.trade-validation-banner.info {
  background: rgba(0, 240, 255, 0.14);
  border: 1px solid rgba(0, 240, 255, 0.45);
  color: #00f0ff;
}

.port-auto-total {
  height: 38px;
  background: rgba(0, 255, 157, 0.08);
  border: 1px dashed rgba(0, 255, 157, 0.55);
  border-radius: 7px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 13.5px;
  font-weight: 700;
}

.port-btn-save {
  height: 38px;
  padding: 0 18px;
  border: none;
  border-radius: 7px;
  background: linear-gradient(135deg, #00ff9d, #00c776);
  color: #02140c;
  font-weight: 850;
  font-size: 12.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: .02em;
  box-shadow: 0 4px 16px rgba(0, 255, 157, 0.35);
}

.port-btn-save:hover { filter: brightness(1.08); }

.port-opt-toggle-row {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-ghost-opt {
  background: transparent;
  border: none;
  color: #9ccbff;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}
.btn-ghost-opt:hover { text-decoration: underline; }

.trade-notes-wrap { flex: 1; }
.trade-notes-wrap input {
  height: 30px;
  background: #080d13;
  border: 1px solid rgba(140, 165, 190, 0.18);
  border-radius: 5px;
  padding: 0 10px;
  color: #fff;
  font-size: 11.5px;
  width: 100%;
}

.trade-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: max(100%, 360px);
  margin-top: 4px;
  background: #0d1520;
  border: 1.5px solid rgba(90, 169, 255, 0.45);
  border-radius: 8px;
  z-index: 1000;
  max-height: 270px;
  overflow-y: auto;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7);
}
.trade-dropdown-item {
  padding: 8px 11px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(140, 165, 190, 0.08);
  transition: background 0.12s ease;
}
.trade-dropdown-item:last-child {
  border-bottom: none;
}
.trade-dropdown-item:hover,
.trade-dropdown-item.active {
  background: rgba(90, 169, 255, 0.16);
}
.trade-item-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.trade-drop-logo {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border: 1px solid rgba(140, 165, 190, 0.2);
  border-radius: 6px;
  object-fit: contain;
  background: #14202e;
  padding: 2px;
}
.trade-item-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.trade-item-symbol {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}
.trade-item-badge {
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(90, 169, 255, 0.15);
  color: #5aa9ff;
}
.trade-item-name {
  font-size: 11px;
  color: #7d93a8;
  max-width: 175px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.trade-item-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-left: 8px;
  flex-shrink: 0;
}
.trade-item-price {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
}
.trade-item-market {
  font-size: 10px;
  color: #7d93a8;
}
.trade-dropdown-empty {
  padding: 12px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

/* 2. TEK ENSTRÜMAN BKP-FON HERO */
.hero-fund-card {
  background: linear-gradient(135deg, #0d1927 0%, #09121d 45%, #061c24 100%);
  border: 1.5px solid rgba(56, 189, 248, 0.45);
  border-radius: 14px;
  padding: 16px 20px;
  display: grid;
  grid-template-columns: 270px minmax(360px, 1.55fr) 310px 215px;
  gap: 16px;
  align-items: center;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
:root[data-theme="light"] .hero-fund-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 60%, #f0f9ff 100%);
  border-color: rgba(14, 116, 144, 0.25);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.fund-card-meta {
  border-right: 1px solid rgba(140,165,190,0.16);
  padding-right: 16px;
}

.fund-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fund-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 5px;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.45);
  color: #38bdf8;
  font-weight: 800;
  font-size: 10px;
  letter-spacing: .08em;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.15);
}

.fund-open-badge {
  font-weight: 800;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.fund-card-val {
  font-size: 28px;
  font-weight: 800;
  margin: 6px 0 4px;
  letter-spacing: -.02em;
  background: linear-gradient(135deg, #ffffff 40%, #7dd3fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(0, 229, 255, 0.25));
}

.fund-card-sub {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.fund-sub-row {
  display: flex;
  justify-content: space-between;
}
.fund-sub-row.dashed-top {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px dashed rgba(140,165,190,0.18);
}
.fund-sub-row strong {
  font-family: var(--font-mono);
  font-size: 11.5px;
}
.fund-gain-box {
  margin-top: 7px;
  padding: 7px 10px 8px;
  border-radius: 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-align: center;
  background: rgba(148, 163, 184, 0.12);
  border: 1.5px solid rgba(148, 163, 184, 0.35);
}
.fund-gain-box.up {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.24) 0%, rgba(0, 245, 160, 0.14) 100%);
  border-color: rgba(0, 245, 160, 0.72);
  box-shadow: 0 0 18px rgba(0, 245, 160, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.fund-gain-box.dn {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.28) 0%, rgba(255, 46, 99, 0.16) 100%);
  border-color: rgba(255, 71, 105, 0.78);
  box-shadow: 0 0 18px rgba(255, 59, 92, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.10);
}
.fund-gain-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.85);
}
.fund-total-gain {
  font-size: 18px !important;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.fund-total-gain.up {
  color: #00ff9d !important;
  text-shadow: 0 0 14px rgba(0, 255, 157, 0.52);
}
.fund-total-gain.dn {
  color: #ff4769 !important;
  text-shadow: 0 0 14px rgba(255, 71, 105, 0.58);
}
:root[data-theme="light"] .fund-gain-label {
  color: #334155;
}
:root[data-theme="light"] .fund-gain-box.up {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(5, 150, 105, 0.55);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}
:root[data-theme="light"] .fund-gain-box.dn {
  background: rgba(244, 63, 94, 0.13);
  border-color: rgba(225, 29, 72, 0.55);
  box-shadow: 0 4px 12px rgba(244, 63, 94, 0.16);
}
:root[data-theme="light"] .fund-total-gain.up {
  color: #047857 !important;
  text-shadow: none;
}
:root[data-theme="light"] .fund-total-gain.dn {
  color: #dc2626 !important;
  text-shadow: none;
}
.gold-color { color: #fbbf24 !important; text-shadow: 0 0 6px rgba(251, 191, 36, 0.3); }

/* BKP-FON RISK & ALLOCATION COCKPIT (SECENEK 1) */
.fund-card-cockpit {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.cockpit-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
}
.cockpit-fx-chip {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 800;
  color: #ffb800;
  background: rgba(255, 184, 0, 0.14);
  border: 1px solid rgba(255, 184, 0, 0.45);
  border-radius: 5px;
  padding: 2px 7px;
  white-space: nowrap;
  text-shadow: 0 0 6px rgba(255, 184, 0, 0.35);
}
.cockpit-fx-chip[hidden] { display: none; }
:root[data-theme="light"] .cockpit-fx-chip {
  color: #b45309;
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(217, 119, 6, 0.35);
}
.cockpit-alloc-box {
  background: #080d13;
  border: 1px solid rgba(140,165,190,0.16);
  border-radius: 8px;
  padding: 7px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
:root[data-theme="light"] .cockpit-alloc-box {
  background: #f8fafc;
  border-color: #cbd5e1;
}
.cockpit-alloc-bar {
  display: flex;
  gap: 2px;
  height: 9px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(30, 41, 59, 0.6);
}
.cockpit-alloc-seg {
  height: 100%;
  min-width: 4px;
  border-radius: 2px;
  transition: filter .15s ease;
}
.cockpit-alloc-seg:hover { filter: brightness(1.16); }
.cockpit-alloc-empty {
  width: 100%;
  height: 100%;
  background: rgba(148, 163, 184, 0.2);
}
.cockpit-alloc-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: center;
  font-size: 10px;
  color: #cbd5e1;
}
:root[data-theme="light"] .cockpit-alloc-legend { color: #334155; }
.ck-leg-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.ck-leg-item i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.ck-leg-item b {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  color: #f8fafc;
}
:root[data-theme="light"] .ck-leg-item b { color: #0f172a; }
.ck-empty-note {
  font-size: 10.5px;
  color: var(--muted);
}

.cockpit-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
@media (max-width: 560px) {
  .cockpit-kpi-grid { grid-template-columns: 1fr; }
}
.cockpit-kpi {
  background: #080d13;
  border: 1px solid rgba(140,165,190,0.16);
  border-radius: 8px;
  padding: 7px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
:root[data-theme="light"] .cockpit-kpi {
  background: #ffffff;
  border-color: #cbd5e1;
}
.ck-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}
.ck-lbl {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .06em;
  color: #8fa6bd;
  white-space: nowrap;
}
:root[data-theme="light"] .ck-lbl { color: #475569; }
.ck-pill {
  font-size: 9px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  white-space: nowrap;
}
.ck-pill.is-neutral {
  background: rgba(148, 163, 184, 0.14);
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: #cbd5e1;
}
.ck-pill.is-high {
  background: rgba(255, 34, 86, 0.16);
  border: 1px solid rgba(255, 34, 86, 0.50);
  color: #ff4d79;
}
.ck-pill.is-med {
  background: rgba(255, 184, 0, 0.15);
  border: 1px solid rgba(255, 184, 0, 0.48);
  color: #ffb800;
}
.ck-pill.is-low {
  background: rgba(0, 255, 157, 0.15);
  border: 1px solid rgba(0, 255, 157, 0.48);
  color: #00ff9d;
}
:root[data-theme="light"] .ck-pill.is-neutral { color: #334155; background: #f1f5f9; border-color: #cbd5e1; }
:root[data-theme="light"] .ck-pill.is-high { color: #be123c; background: #ffe4e6; border-color: #fda4af; }
:root[data-theme="light"] .ck-pill.is-med { color: #b45309; background: #fef3c7; border-color: #fcd34d; }
:root[data-theme="light"] .ck-pill.is-low { color: #047857; background: #d1fae5; border-color: #6ee7b7; }

.ck-val {
  font-size: 14px;
  font-weight: 800;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ck-val small {
  font-size: 10.5px;
  font-weight: 700;
  opacity: 0.85;
}
.ck-val.up { color: #00ff9d; text-shadow: 0 0 8px rgba(0, 255, 157, 0.40); }
.ck-val.dn { color: #ff2256; text-shadow: 0 0 8px rgba(255, 34, 86, 0.40); }
.ck-val.warn { color: #ffb800; text-shadow: 0 0 8px rgba(255, 184, 0, 0.40); }
:root[data-theme="light"] .ck-val { color: #0f172a; }
:root[data-theme="light"] .ck-val.up { color: #047857; }
:root[data-theme="light"] .ck-val.dn { color: #dc2626; }
:root[data-theme="light"] .ck-val.warn { color: #d97706; }

.ck-sub {
  font-size: 10px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ck-sub b { color: #e2e8f0; }
:root[data-theme="light"] .ck-sub { color: #475569; }
:root[data-theme="light"] .ck-sub b { color: #0f172a; }

.ck-attr-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ck-attr-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  color: #cbd5e1;
}
:root[data-theme="light"] .ck-attr-row { color: #334155; }
.ck-attr-row b.up { color: #00ff9d; }
.ck-attr-row b.dn { color: #ff2256; }
:root[data-theme="light"] .ck-attr-row b.up { color: #047857; }
:root[data-theme="light"] .ck-attr-row b.dn { color: #dc2626; }

/* Common subhead caption reused by cockpit */
.fund-chart-title-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.chart-caption {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .06em;
  color: #cbd5e1;
  white-space: nowrap;
}
:root[data-theme="light"] .chart-caption { color: #1e293b; }

.chart-subchip {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 4px;
  padding: 1px 6px;
  white-space: nowrap;
}
:root[data-theme="light"] .chart-subchip {
  color: #0369a1;
  background: rgba(2, 132, 199, 0.08);
  border-color: rgba(2, 132, 199, 0.22);
}

@media (max-width: 1320px) {
  .hero-fund-card {
    grid-template-columns: 1fr 1.45fr;
  }
  .fund-card-bars {
    border-left: 0;
    border-right: 1px solid rgba(140,165,190,0.12);
    padding: 0 14px 0 0;
  }
}
@media (max-width: 899px) {
  .hero-fund-card {
    grid-template-columns: 1fr;
    padding: 14px;
  }
  .fund-card-meta {
    border-right: 0;
    border-bottom: 1px solid rgba(140,165,190,0.16);
    padding-right: 0;
    padding-bottom: 12px;
  }
  .fund-card-bars {
    border-right: 0;
    border-top: 1px solid rgba(140,165,190,0.12);
    border-bottom: 1px solid rgba(140,165,190,0.12);
    padding: 10px 0;
  }
}

/* BKP-FON BARS */
.fund-card-bars {
  border-left: 1px solid rgba(140,165,190,0.12);
  border-right: 1px solid rgba(140,165,190,0.12);
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.fund-bars-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .08em;
  margin-bottom: 2px;
}

.port-bars-grid {
  display: grid;
  grid-template-columns: 92px 1fr 64px;
  row-gap: 4px;
  column-gap: 8px;
  align-items: center;
  font-size: 10px;
}

.port-bars-grid .bn {
  font-weight: 800;
  letter-spacing: .04em;
  font-size: 9.5px;
  white-space: nowrap;
}

.port-bars-grid .btrack {
  position: relative;
  height: 10px;
  background: rgba(6, 12, 18, 0.9);
  border: 1px solid rgba(140, 165, 190, 0.18);
  border-radius: 4px;
  overflow: visible;
}

.port-bars-grid .btrack::after {
  content: "";
  position: absolute;
  left: 25%;
  top: -2px; bottom: -2px;
  width: 2px;
  background: #5aa9ff;
  box-shadow: 0 0 6px rgba(90, 169, 255, 0.6);
  z-index: 2;
  border-radius: 1px;
}

.port-bars-grid .bfill {
  position: absolute;
  top: 1px; bottom: 1px;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.port-bars-grid .bv {
  font-family: var(--font-mono);
  font-weight: 800;
  text-align: right;
  font-size: 11px;
}

/* BKP-FON PULSE */
.fund-card-pulse {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 4px;
}

.pulse-box {
  background: #080d13;
  border: 1px solid rgba(140,165,190,0.15);
  border-radius: 6px;
  padding: 5px 9px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pulse-lb {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--muted);
}
.pulse-val {
  font-size: 11.5px;
  font-weight: 700;
}
.pulse-detail {
  font-size: 10.5px;
  color: #c3d4e6;
  line-height: 1.35;
}

/* 3. AÇIK POZİSYONLAR TABLOSU (STİL 3) */
.port-table-panel {
  background: var(--panel);
  border: 1px solid rgba(140, 165, 190, 0.16);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.port-table-head {
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(56, 189, 248, 0.22);
  background: linear-gradient(90deg, #09121d 0%, #0d1b2a 100%);
}

.port-table-title {
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: .02em;
  color: #f1f5f9;
}

.port-table-legend {
  display: flex;
  gap: 16px;
  font-size: 11px;
  color: var(--muted);
}
.port-table-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.port-table-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.port-table-style3 {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
}

.port-table-style3 th {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .04em;
  color: #a9bed4;
  text-align: left;
  padding: 9px 6px;
  border-bottom: 1.5px solid rgba(56, 189, 248, 0.25);
  background: #08101a;
  white-space: nowrap;
  vertical-align: middle;
}
.port-table-style3 th .th-sub-lbl {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .03em;
  color: #38bdf8;
  margin-top: 2px;
}
.port-table-style3 th:first-child,
.port-table-style3 td:first-child {
  padding-left: 10px;
}
.port-table-style3 th:last-child,
.port-table-style3 td:last-child {
  padding-right: 10px;
}

.port-table-style3 td {
  padding: 10px 6px;
  border-bottom: 1px solid rgba(140, 165, 190, 0.12);
  vertical-align: middle;
}

.port-table-style3 tr:nth-child(even) td {
  background: rgba(13, 24, 36, 0.55);
}

.port-table-style3 tr:hover td {
  background: linear-gradient(90deg, rgba(20, 40, 62, 0.88) 0%, rgba(12, 26, 42, 0.88) 100%) !important;
}
.port-table-style3 tr:hover td:first-child {
  box-shadow: inset 3px 0 0 #38bdf8;
}

.pos-meta {
  min-width: 0;
  max-width: 132px;
}
.pos-head-line {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pos-meta b {
  font-family: var(--font-mono);
  font-size: 14.5px;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: 0.02em;
}
.pos-mkt-pill {
  padding: 1.5px 5px;
  border-radius: 5px;
  font-size: 9.5px;
  font-weight: 700;
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
  white-space: nowrap;
}
.pos-fullname {
  margin-top: 2px;
  font-size: 11px;
  color: #b4c6d9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pos-price-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.pos-price-main {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
}
.pos-day-pill {
  padding: 1.5px 5px;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
}
.pos-day-pill.up {
  color: #00ff9d;
  background: rgba(0, 255, 157, 0.15);
  border: 1px solid rgba(0, 255, 157, 0.45);
  text-shadow: 0 0 6px rgba(0, 255, 157, 0.35);
}
.pos-day-pill.dn {
  color: #ff2256;
  background: rgba(255, 34, 86, 0.16);
  border: 1px solid rgba(255, 34, 86, 0.45);
  text-shadow: 0 0 6px rgba(255, 34, 86, 0.35);
}
.pos-cost-line {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #a9bed4;
}
.pos-cost-line b {
  color: #e2e8f0;
  font-weight: 700;
}

.pos-bench-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(104px, 1fr));
  gap: 4px;
  min-width: 216px;
}
.pos-bench-tile {
  padding: 4px 6px 3px;
  border-radius: 7px;
  background: rgba(8, 15, 24, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.16);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.pos-bench-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px;
}
.pos-bench-lbl {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .03em;
  white-space: nowrap;
}
.pos-bench-val {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.pos-bench-bar {
  height: 3.5px;
  border-radius: 2px;
  background: rgba(148, 163, 184, 0.15);
  overflow: hidden;
}
.pos-bench-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s ease;
}

.pos-val-pnl-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 215px;
}
.pos-val-main {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 800;
  color: #f8fafc;
}
.pos-val-sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #9cb2c9;
  font-weight: 600;
}
.pos-val-cost {
  display: block;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #9cb2c9;
}
.pos-sig-pill {
  padding: 4px 8px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  border-radius: 7px !important;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.signal-portfolio-badge {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 5px;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.3;
  white-space: normal;
  margin-top: 2px;
}
.signal-portfolio-badge.tone-buy-cheaper,
.signal-portfolio-badge.tone-buy-first {
  color: #00ff9d;
  background: rgba(0, 255, 157, 0.16);
  border: 1px solid rgba(0, 255, 157, 0.48);
  text-shadow: 0 0 6px rgba(0, 255, 157, 0.35);
}
.signal-portfolio-badge.tone-buy-pricier {
  color: #ffb800;
  background: rgba(255, 184, 0, 0.16);
  border: 1px solid rgba(255, 184, 0, 0.48);
  text-shadow: 0 0 6px rgba(255, 184, 0, 0.35);
}
.signal-portfolio-badge.tone-sell-profit {
  color: #00f0ff;
  background: rgba(0, 240, 255, 0.16);
  border: 1px solid rgba(0, 240, 255, 0.48);
  text-shadow: 0 0 6px rgba(0, 240, 255, 0.35);
}
.signal-portfolio-badge.tone-sell-loss {
  color: #ff2256;
  background: rgba(255, 34, 86, 0.16);
  border: 1px solid rgba(255, 34, 86, 0.48);
  text-shadow: 0 0 6px rgba(255, 34, 86, 0.35);
}
.signal-portfolio-badge.tone-buy-neutral,
.signal-portfolio-badge.tone-sell-neutral,
.signal-portfolio-badge.tone-neutral {
  color: #cbd5e1;
  background: rgba(148, 163, 184, 0.15);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.pos-pnl-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 102px;
  padding: 6px 11px;
  border-radius: 8px;
  font-family: var(--font-mono);
  gap: 2px;
}
.pos-pnl-chip.up {
  background: rgba(0, 255, 157, 0.16);
  border: 1px solid rgba(0, 255, 157, 0.55);
  box-shadow: 0 0 16px rgba(0, 255, 157, 0.25);
}
.pos-pnl-chip.up .pnl-pct {
  font-size: 16.5px;
  font-weight: 900;
  color: #00ff9d;
  letter-spacing: 0.01em;
  text-shadow: 0 0 12px rgba(0, 255, 157, 0.50);
  line-height: 1.15;
}
.pos-pnl-chip.up .pnl-amount {
  font-size: 11px;
  font-weight: 700;
  color: #00e58d;
  line-height: 1.2;
}

.pos-pnl-chip.dn {
  background: rgba(255, 34, 86, 0.16);
  border: 1px solid rgba(255, 34, 86, 0.55);
  box-shadow: 0 0 16px rgba(255, 34, 86, 0.25);
}
.pos-pnl-chip.dn .pnl-pct {
  font-size: 16.5px;
  font-weight: 900;
  color: #ff2256;
  letter-spacing: 0.01em;
  text-shadow: 0 0 12px rgba(255, 34, 86, 0.50);
  line-height: 1.15;
}
.pos-pnl-chip.dn .pnl-amount {
  font-size: 11px;
  font-weight: 700;
  color: #ff4d79;
  line-height: 1.2;
}

.port-table-style3 tr.port-pos-clickable {
  cursor: pointer;
}
.port-table-style3 tr.port-pos-clickable:hover .pos-meta b {
  color: #38bdf8;
}
.port-table-style3 tr.port-pos-clickable:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: -2px;
}

.port-return-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 9px 14px;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.14) 0%, rgba(15, 23, 42, 0.85) 100%);
  border: 1px solid rgba(56, 189, 248, 0.38);
}
.port-return-bar[hidden] { display: none !important; }
.port-return-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 7px;
  border: 1px solid rgba(56, 189, 248, 0.55);
  background: rgba(56, 189, 248, 0.18);
  color: #e0f2fe;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease;
}
.port-return-btn:hover {
  background: rgba(56, 189, 248, 0.30);
  transform: translateX(-2px);
}
.port-return-btn kbd {
  padding: 1px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #7dd3fc;
}
.port-return-hint {
  font-size: 11.5px;
  color: #94a3b8;
  font-weight: 600;
}
:root[data-theme="light"] .port-return-bar {
  background: linear-gradient(90deg, rgba(2, 132, 199, 0.10) 0%, rgba(248, 250, 252, 0.96) 100%);
  border-color: rgba(2, 132, 199, 0.30);
}
:root[data-theme="light"] .port-return-btn {
  background: #0284c7;
  color: #ffffff;
  border-color: #0369a1;
}
:root[data-theme="light"] .port-return-btn kbd {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
}
:root[data-theme="light"] .port-return-hint {
  color: #475569;
}

.port-pos-cell {
  display: flex;
  gap: 10px;
  align-items: center;
}

.pos-logo {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border: 1px solid rgba(140, 165, 190, 0.24);
  border-radius: 10px;
  object-fit: contain;
  background: #111a24;
  padding: 3px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.30);
}

.ledger-logo {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border: 1px solid rgba(140, 165, 190, 0.2);
  border-radius: 5px;
  object-fit: contain;
  background: #111a24;
  padding: 1.5px;
  vertical-align: middle;
}

.pos-avatar {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
}

.pos-meta b {
  font-family: var(--font-mono);
  font-size: 14.5px;
  font-weight: 800;
  color: #f8fafc;
}

.pos-sub {
  font-size: 10.5px;
  color: #6a7d91;
  margin-top: 1px;
}

.port-ring-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.port-action-btns {
  display: flex;
  gap: 4px;
  justify-content: flex-end;
}

.btn-action-act {
  height: 29px;
  padding: 0 9px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 700;
  background: transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-action-act.buy {
  color: #00ff9d;
  border: 1px solid rgba(0, 255, 157, 0.55);
  background: rgba(0, 255, 157, 0.12);
  text-shadow: 0 0 6px rgba(0, 255, 157, 0.35);
}
.btn-action-act.buy:hover {
  background: rgba(0, 255, 157, 0.28);
  box-shadow: 0 0 14px rgba(0, 255, 157, 0.45);
}
.btn-action-act.sell {
  color: #ff2256;
  border: 1px solid rgba(255, 34, 86, 0.55);
  background: rgba(255, 34, 86, 0.12);
  text-shadow: 0 0 6px rgba(255, 34, 86, 0.35);
}
.btn-action-act.sell:hover {
  background: rgba(255, 34, 86, 0.28);
  box-shadow: 0 0 14px rgba(255, 34, 86, 0.45);
}

.port-table-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 18px;
  background: #080d13;
  border-top: 1px solid rgba(140,165,190,0.12);
  font-size: 11px;
  color: var(--muted);
}

.foot-strong {
  color: #fff;
  font-weight: 700;
}

.btn-ghost-ledger {
  background: transparent;
  border: 1px solid rgba(140,165,190,0.22);
  border-radius: 5px;
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  cursor: pointer;
}
.btn-ghost-ledger:hover {
  background: rgba(255,255,255,0.05);
  border-color: #5aa9ff;
}

/* 4. İŞLEM GEÇMİŞİ DEFTERİ */
.port-ledger-panel {
  background: var(--panel);
  border: 1px solid rgba(140,165,190,0.15);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 10px;
}

.port-ledger-head {
  padding: 10px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(140,165,190,0.12);
  background: #0b1118;
}

.port-ledger-sub {
  font-size: 11px;
  color: var(--muted);
}

.port-ledger-table {
  width: 100%;
  border-collapse: collapse;
}

.port-ledger-table th {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #6a7d91;
  text-align: left;
  padding: 8px 14px;
  background: #090f16;
  border-bottom: 1px solid rgba(140,165,190,0.15);
}

.port-ledger-table td {
  padding: 8px 14px;
  border-bottom: 1px solid rgba(140,165,190,0.08);
  font-size: 12px;
  vertical-align: middle;
}

.port-ctrl-btn {
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid rgba(140,165,190,0.22);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  margin-left: 4px;
}
.port-ctrl-btn.del {
  color: #ff5c6c;
  border-color: rgba(255,92,108,0.35);
}
.port-ctrl-btn:hover { background: rgba(255,255,255,0.06); }

/* Hide duplicate inner sidebar; ABD Hisse & ETF sub-menus live in outer main sidebar */
.app-sidebar {
  display: none !important;
}
.app-shell,
.sidebar-collapsed .app-shell {
  grid-template-columns: minmax(0, 1fr) !important;
}

.confirm-summary-card {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(20, 32, 46, 0.72);
  border: 1px solid rgba(90, 210, 175, 0.25);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.confirm-summary-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.confirm-total-pill {
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(45, 212, 165, 0.14);
  border: 1px solid rgba(45, 212, 165, 0.35);
  color: #4ef2bd;
  font-weight: 700;
  font-size: 13px;
}
.confirm-summary-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11.5px;
  color: #9cb2c9;
}

/* ============================================================================
   WATCHLIST SEÇENEK A+ (QUANT MATRIX ⇄ HEATMAP ⇄ BENTO + SLIDE-OVER RÖNTGEN)
   ============================================================================ */
.wl-shell {
  padding: 14px 16px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: radial-gradient(circle at 82% 0%, rgba(16, 232, 160, 0.07), transparent 52%), #071119;
  color: #e6f1f5;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}
.wl-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.wl-eyebrow {
  margin: 0 0 2px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.13em;
  color: #10e8a0;
}
.wl-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.wl-title-row h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f3fafc;
}
.wl-meta-pill {
  padding: 2px 8px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  color: #b4cad8;
  font-size: 10.5px;
  font-weight: 600;
}
.wl-date-range {
  font-size: 10.5px;
  color: #7d96a8;
}
.wl-head-right {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.wl-view-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(4, 10, 15, 0.86);
  gap: 2px;
}
.wl-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #8aa3b4;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.wl-switch-btn:hover {
  color: #e4f3f8;
  background: rgba(255, 255, 255, 0.04);
}
.wl-switch-btn.active {
  background: linear-gradient(135deg, #00ff9d 0%, #00d680 100%);
  border-color: #00ff9d;
  color: #02140c;
  font-weight: 800;
  box-shadow: 0 0 16px rgba(0, 255, 157, 0.45);
}
.wl-btn-edit {
  height: 34px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #c7dbe6;
  font-size: 11.5px;
  font-weight: 700;
}
.wl-btn-edit:hover {
  border-color: rgba(255, 255, 255, 0.28);
  color: #f4fafc;
}
.wl-btn-add {
  height: 34px;
  padding: 0 14px;
  border-radius: 9px;
  border: 0;
  background: linear-gradient(135deg, #00ff9d, #00c776);
  color: #02140c;
  font-size: 11.5px;
  font-weight: 850;
  box-shadow: 0 4px 16px rgba(0, 255, 157, 0.35);
}
.wl-btn-add:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* 4 Macro KPI Capsules */
.wl-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.wl-kpi-card {
  appearance: none;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(16, 30, 42, 0.85), rgba(9, 18, 26, 0.92));
  padding: 9px 11px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  min-width: 0;
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}
.wl-kpi-card:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 255, 157, 0.45);
}
.wl-kpi-card.active {
  border-color: rgba(0, 255, 157, 0.70);
  box-shadow: 0 0 0 1px rgba(0, 255, 157, 0.35), 0 8px 22px rgba(0, 255, 157, 0.18);
}
.wl-kpi-card.tone-amber.active,
.wl-kpi-card.tone-amber:hover {
  border-color: rgba(255, 184, 0, 0.65);
  box-shadow: 0 0 0 1px rgba(255, 184, 0, 0.35), 0 8px 22px rgba(255, 184, 0, 0.18);
}
.wl-kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.wl-kpi-lbl {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.09em;
  color: #849eae;
  white-space: nowrap;
}
.wl-kpi-tag {
  font-family: 'IBMPlexMono', Consolas, monospace;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 99px;
  white-space: nowrap;
}
.wl-kpi-tag.emerald { background: rgba(0, 255, 157, 0.14); color: #00ff9d; border: 1px solid rgba(0, 255, 157, 0.50); text-shadow: 0 0 8px rgba(0, 255, 157, 0.40); }
.wl-kpi-tag.amber { background: rgba(255, 184, 0, 0.14); color: #ffb800; border: 1px solid rgba(255, 184, 0, 0.50); text-shadow: 0 0 8px rgba(255, 184, 0, 0.40); }
.wl-kpi-tag.slate { background: rgba(255, 255, 255, 0.06); color: #c0d8ea; border: 1px solid rgba(255, 255, 255, 0.15); }
.wl-kpi-main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.wl-kpi-val {
  font-family: 'IBMPlexMono', Consolas, monospace;
  font-size: 20px;
  font-weight: 800;
  color: #f1f9fc;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.wl-kpi-val small {
  font-size: 11px;
  font-weight: 600;
  color: #7d96a8;
  margin-left: 3px;
}
.wl-kpi-sub {
  font-size: 10.5px;
  color: #93acc0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wl-kpi-sub b { color: #dbeaf2; font-weight: 700; }

/* Control & Smart Chip Toolbar */
.wl-control-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 10px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(5, 12, 18, 0.72);
}
.wl-filter-chips {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.wl-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #9bb3c3;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}
.wl-chip:hover {
  border-color: rgba(255, 255, 255, 0.22);
  color: #e9f4f8;
}
.wl-chip .wl-chip-n {
  font-family: 'IBMPlexMono', Consolas, monospace;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  color: #c2d6e3;
}
.wl-chip.active {
  background: rgba(0, 255, 157, 0.16);
  border-color: #00ff9d;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(0, 255, 157, 0.25);
}
.wl-chip.active .wl-chip-n {
  background: #00ff9d;
  color: #02140c;
  font-weight: 800;
}
.wl-chip.tone-amber.active {
  background: rgba(255, 184, 0, 0.16);
  border-color: #ffb800;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(255, 184, 0, 0.25);
}
.wl-chip.tone-amber.active .wl-chip-n { background: #ffb800; color: #1c1202; font-weight: 800; }
.wl-chip.tone-rose.active {
  background: rgba(255, 34, 86, 0.18);
  border-color: #ff2256;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(255, 34, 86, 0.25);
}
.wl-chip.tone-rose.active .wl-chip-n { background: #ff2256; color: #ffffff; font-weight: 800; }
.wl-chip.tone-cyan.active {
  background: rgba(0, 240, 255, 0.16);
  border-color: #00f0ff;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
}
.wl-chip.tone-cyan.active .wl-chip-n { background: #00f0ff; color: #02121e; font-weight: 800; }

.wl-toolbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-left: auto;
}
.wl-select {
  height: 31px;
  padding: 0 9px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: #0a1620;
  color: #d6e7f0;
  font-size: 11px;
  font-weight: 600;
  outline: none;
}
.wl-select:focus { border-color: rgba(16, 232, 160, 0.55); }
.wl-select-sort {
  border-color: rgba(16, 232, 160, 0.34);
  color: #10e8a0;
  background: rgba(16, 232, 160, 0.06);
}
.wl-search-box {
  height: 31px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: #060f16;
  color: #7d97a9;
  min-width: 175px;
}
.wl-search-box input {
  border: 0;
  background: transparent;
  outline: none;
  color: #eef7fa;
  font-size: 11.5px;
  width: 100%;
}
.wl-search-box:focus-within { border-color: rgba(16, 232, 160, 0.5); }

/* Stage Body */
.wl-stage-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ==================== MODE 1: QUANT MATRIX TABLE ==================== */
.wl-matrix-wrap {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(6, 14, 21, 0.85);
  overflow: hidden;
}
.wl-matrix-scroll {
  overflow-x: auto;
}
.wl-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  text-align: left;
}
.wl-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #091620;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 5px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #7691a4;
  white-space: nowrap;
  user-select: none;
}
.wl-table thead th:first-child, .wl-table tbody td:first-child { padding-left: 9px; }
.wl-table thead th:last-child, .wl-table tbody td:last-child { padding-right: 9px; }
.wl-table thead th.sortable { cursor: pointer; }
.wl-table thead th.sortable:hover { color: #d9edf4; }
.wl-table thead th.active-sort { color: #10e8a0; }
.wl-table thead th.num, .wl-table tbody td.num { text-align: right; }
.wl-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  transition: background 0.13s ease;
  cursor: pointer;
}
.wl-table tbody tr:last-child { border-bottom: 0; }
.wl-table tbody tr:hover { background: rgba(16, 232, 160, 0.05); }
.wl-table tbody tr.is-portfolio {
  background: linear-gradient(90deg, rgba(16, 232, 160, 0.085), rgba(16, 232, 160, 0.01) 40%, transparent);
  box-shadow: inset 3px 0 0 #10e8a0;
}
.wl-table tbody tr.is-selected {
  background: rgba(56, 189, 248, 0.08);
  box-shadow: inset 3px 0 0 #38bdf8;
}
.wl-table tbody td {
  padding: 7px 5px;
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
}
.wl-cell-asset {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 150px;
  max-width: 185px;
}
.wl-rank {
  font-family: 'IBMPlexMono', Consolas, monospace;
  font-size: 10px;
  color: #5b7487;
  width: 17px;
  flex: 0 0 17px;
}
.wl-logo {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 7px;
  object-fit: cover;
  background: #0d1d28;
  border: 1px solid rgba(255, 255, 255, 0.10);
}
.wl-asset-txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wl-asset-top { display: flex; align-items: center; gap: 6px; }
.wl-sym { font-size: 13px; font-weight: 800; color: #f2f9fc; letter-spacing: 0.02em; }
.wl-mkt-tag {
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: #93acc0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.wl-pdate { font-family: 'IBMPlexMono', Consolas, monospace; font-size: 9.5px; color: #678092; }
.wl-pdate.fresh { color: #00ff9d; text-shadow: 0 0 6px rgba(0, 255, 157, 0.4); }
.wl-asset-sub {
  font-size: 10.5px;
  color: #849db0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wl-role-pill {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.wl-role-pill.role-lifetime { background: rgba(0, 255, 157, 0.12); color: #00ff9d; border: 1px solid rgba(0, 255, 157, 0.35); text-shadow: 0 0 6px rgba(0, 255, 157, 0.35); }
.wl-role-pill.role-trend { background: rgba(0, 240, 255, 0.12); color: #00f0ff; border: 1px solid rgba(0, 240, 255, 0.35); text-shadow: 0 0 6px rgba(0, 240, 255, 0.35); }
.wl-role-pill.role-periodic { background: rgba(148, 163, 184, 0.12); color: #cbd5e1; border: 1px solid rgba(148, 163, 184, 0.22); }

.wl-price-top { display: flex; align-items: center; justify-content: flex-end; gap: 6px; white-space: nowrap; }
.wl-price-val { font-family: 'IBMPlexMono', Consolas, monospace; font-size: 12.5px; font-weight: 700; color: #f0f8fb; }
.wl-price-curr { font-size: 10px; color: #7e97a8; font-weight: 700; }
.wl-chg-pill {
  font-family: 'IBMPlexMono', Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 5px;
}
.wl-chg-pill.pos { background: rgba(0, 255, 157, 0.14); color: #00ff9d; border: 1px solid rgba(0, 255, 157, 0.40); text-shadow: 0 0 6px rgba(0, 255, 157, 0.35); }
.wl-chg-pill.neg { background: rgba(255, 34, 86, 0.16); color: #ff2256; border: 1px solid rgba(255, 34, 86, 0.45); text-shadow: 0 0 6px rgba(255, 34, 86, 0.35); }
.wl-chg-pill.shock { background: rgba(255, 34, 86, 0.28); color: #ff4d79; border: 1px solid #ff2256; box-shadow: 0 0 10px rgba(255, 34, 86, 0.40); }
.wl-price-sub {
  margin-top: 2px;
  font-family: 'IBMPlexMono', Consolas, monospace;
  font-size: 10px;
  color: #7c96a8;
  white-space: nowrap;
}
.wl-pos { color: #00ff9d !important; text-shadow: 0 0 10px rgba(0, 255, 157, 0.40); }
.wl-neg { color: #ff2256 !important; text-shadow: 0 0 10px rgba(255, 34, 86, 0.40); }
.wl-amber { color: #ffb800 !important; text-shadow: 0 0 10px rgba(255, 184, 0, 0.40); }

/* Calibrated RSI Thermometer inside Matrix */
.wl-rsi-cell { min-width: 116px; max-width: 136px; }
.wl-rsi-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 5px; }
.wl-rsi-num { font-family: 'IBMPlexMono', Consolas, monospace; font-size: 12px; font-weight: 800; }
.wl-rsi-num.deep { color: #00ff9d; text-shadow: 0 0 6px rgba(0, 255, 157, 0.4); }
.wl-rsi-num.buy { color: #00f0ff; text-shadow: 0 0 6px rgba(0, 240, 255, 0.4); }
.wl-rsi-num.near { color: #ffb800; text-shadow: 0 0 6px rgba(255, 184, 0, 0.4); }
.wl-rsi-num.over { color: #ff2256; text-shadow: 0 0 6px rgba(255, 34, 86, 0.4); }
.wl-rsi-num.neutral { color: #cbd5e1; }
.wl-rsi-thr { font-family: 'IBMPlexMono', Consolas, monospace; font-size: 10px; color: #7590a2; }
.wl-rsi-thr.custom { color: #ffb800; font-weight: 700; }
.wl-gap-badge {
  font-family: 'IBMPlexMono', Consolas, monospace;
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
}
.wl-gap-badge.deep { background: rgba(0, 255, 157, 0.16); color: #00ff9d; border: 1px solid rgba(0, 255, 157, 0.45); }
.wl-gap-badge.buy { background: rgba(0, 240, 255, 0.14); color: #00f0ff; border: 1px solid rgba(0, 240, 255, 0.45); }
.wl-gap-badge.near { background: rgba(255, 184, 0, 0.16); color: #ffb800; border: 1px solid rgba(255, 184, 0, 0.45); }
.wl-gap-badge.over { background: rgba(255, 34, 86, 0.18); color: #ff2256; border: 1px solid rgba(255, 34, 86, 0.50); }
.wl-gap-badge.neutral { background: rgba(255, 255, 255, 0.06); color: #9cb3c3; }
.wl-rsi-track {
  position: relative;
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  overflow: visible;
}
.wl-rsi-zone-buy {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 99px 0 0 99px;
  background: rgba(0, 255, 157, 0.20);
}
.wl-rsi-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 99px;
}
.wl-rsi-tick {
  position: absolute;
  top: -2px;
  bottom: -2px;
  width: 1.5px;
  background: rgba(255, 255, 255, 0.45);
}
.wl-rsi-tick.custom { background: #ffb800; box-shadow: 0 0 6px #ffb800; }
.wl-rsi-tick.tp { background: #ff2256; box-shadow: 0 0 6px #ff2256; }
.wl-rsi-dot {
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 1.5px solid #041219;
}

/* 1Y Drawdown Cell */
.wl-dd-val { font-family: 'IBMPlexMono', Consolas, monospace; font-size: 12px; font-weight: 700; color: #ff2256; text-shadow: 0 0 6px rgba(255, 34, 86, 0.35); }
.wl-dd-val.mild { color: #94adb9; }
.wl-dd-sub { font-family: 'IBMPlexMono', Consolas, monospace; font-size: 9.5px; color: #718b9d; margin-top: 2px; }

/* Signal Cell */
.wl-sig-row { display: flex; align-items: center; gap: 5px; flex-wrap: nowrap; }
.wl-sig-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.wl-sig-pill.buy { background: rgba(0, 255, 157, 0.14); color: #00ff9d; border: 1px solid rgba(0, 255, 157, 0.45); text-shadow: 0 0 8px rgba(0, 255, 157, 0.35); }
.wl-sig-pill.tp { background: rgba(255, 34, 86, 0.16); color: #ff2256; border: 1px solid rgba(255, 34, 86, 0.45); text-shadow: 0 0 8px rgba(255, 34, 86, 0.35); }
.wl-sig-pill.none { background: rgba(255, 255, 255, 0.05); color: #8da5b5; border: 1px solid rgba(255, 255, 255, 0.08); }
.wl-rejim-flag {
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 5px;
  background: rgba(255, 184, 0, 0.18);
  color: #ffb800;
  border: 1px solid rgba(255, 184, 0, 0.55);
  box-shadow: 0 0 8px rgba(255, 184, 0, 0.35);
  white-space: nowrap;
}
.wl-sig-date { font-family: 'IBMPlexMono', Consolas, monospace; font-size: 9.5px; color: #738d9f; margin-top: 3px; }
.wl-sig-date.rejim { color: #ffb800; }

/* Portfolio Pill */
.wl-port-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 99px;
  background: rgba(0, 255, 157, 0.14);
  border: 1px solid rgba(0, 255, 157, 0.50);
  color: #00ff9d;
  font-family: 'IBMPlexMono', Consolas, monospace;
  font-size: 10.5px;
  font-weight: 800;
  white-space: nowrap;
  text-shadow: 0 0 8px rgba(0, 255, 157, 0.40);
  box-shadow: 0 0 10px rgba(0, 255, 157, 0.15);
}

/* Row Actions (No 70x Çıkar Spam!) */
.wl-row-acts {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  position: relative;
}
.wl-act-btn {
  height: 25px;
  padding: 0 6px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
  color: #9cb4c4;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}
.wl-act-btn:hover {
  border-color: rgba(16, 232, 160, 0.45);
  color: #10e8a0;
  background: rgba(16, 232, 160, 0.08);
}
.wl-act-btn.danger:hover {
  border-color: rgba(251, 113, 133, 0.5);
  color: #fb7185;
  background: rgba(251, 113, 133, 0.10);
}

/* Footer / Pagination */
.wl-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(5, 11, 17, 0.8);
  font-size: 11px;
  color: #7f99aa;
}
.wl-foot-legend { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wl-pager { display: flex; align-items: center; gap: 5px; }
.wl-page-btn {
  min-width: 28px;
  height: 27px;
  padding: 0 7px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
  color: #a6bece;
  font-family: 'IBMPlexMono', Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
}
.wl-page-btn:hover:not(:disabled) { border-color: rgba(16, 232, 160, 0.45); color: #10e8a0; }
.wl-page-btn.active { background: #10e8a0; color: #03150e; border-color: #10e8a0; }
.wl-page-btn:disabled { opacity: 0.35; cursor: default; }

/* ==================== MODE 2: 70-ASSET OPPORTUNITY HEATMAP ==================== */
.wl-hm-panel {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(6, 14, 21, 0.88);
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.wl-hm-legend-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 10.5px;
  color: #8aa3b4;
}
.wl-hm-legend-items { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wl-hm-sw { display: inline-flex; align-items: center; gap: 5px; }
.wl-hm-sw i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.wl-hm-grid-top {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 10px;
}
.wl-hm-grid-bot {
  display: grid;
  grid-template-columns: 1.35fr 1.35fr 0.85fr 0.55fr;
  gap: 10px;
}
.wl-hm-cluster {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  background: rgba(4, 10, 15, 0.72);
  padding: 9px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.wl-hm-chead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}
.wl-hm-ctitle { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; color: #e9f5f9; }
.wl-hm-cbuy {
  font-family: 'IBMPlexMono', Consolas, monospace;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(0, 255, 157, 0.14);
  color: #00ff9d;
  border: 1px solid rgba(0, 255, 157, 0.40);
}
.wl-hm-cstats {
  font-family: 'IBMPlexMono', Consolas, monospace;
  font-size: 10px;
  color: #8aa3b4;
}
.wl-hm-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 5px;
}
.wl-hm-tile {
  appearance: none;
  text-align: left;
  position: relative;
  border-radius: 7px;
  padding: 6px 6px 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(20, 34, 46, 0.72);
  color: #ebf6fa;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: transform 0.13s ease, border-color 0.13s ease, box-shadow 0.13s ease;
}
.wl-hm-tile:hover { transform: translateY(-1px); border-color: rgba(255, 255, 255, 0.45); z-index: 2; }
.wl-hm-tile.tier-deep { background: rgba(0, 255, 157, 0.16); border-color: rgba(0, 255, 157, 0.55); box-shadow: inset 0 0 10px rgba(0, 255, 157, 0.12), 0 0 8px rgba(0, 255, 157, 0.18); }
.wl-hm-tile.tier-buy { background: rgba(0, 240, 255, 0.14); border-color: rgba(0, 240, 255, 0.48); box-shadow: inset 0 0 10px rgba(0, 240, 255, 0.12), 0 0 8px rgba(0, 240, 255, 0.16); }
.wl-hm-tile.tier-near { background: rgba(255, 184, 0, 0.16); border-color: rgba(255, 184, 0, 0.55); box-shadow: inset 0 0 10px rgba(255, 184, 0, 0.12), 0 0 8px rgba(255, 184, 0, 0.18); }
.wl-hm-tile.tier-neutral { background: rgba(20, 34, 46, 0.65); border-color: rgba(255, 255, 255, 0.10); }
.wl-hm-tile.tier-over { background: rgba(255, 34, 86, 0.18); border-color: rgba(255, 34, 86, 0.60); box-shadow: inset 0 0 10px rgba(255, 34, 86, 0.12), 0 0 8px rgba(255, 34, 86, 0.20); }
.wl-hm-tile.is-dimmed { opacity: 0.22; }
.wl-hm-tile.is-selected {
  box-shadow: 0 0 0 2px #ffb800, 0 0 22px rgba(255, 184, 0, 0.55);
  border-color: #ffb800;
  z-index: 3;
}
.wl-hm-ttop { display: flex; align-items: center; justify-content: space-between; gap: 3px; }
.wl-hm-tsym { font-size: 11px; font-weight: 800; color: #f4fafc; letter-spacing: 0.01em; }
.wl-hm-tmarks { display: inline-flex; align-items: center; gap: 2px; font-size: 9px; line-height: 1; }
.wl-hm-tmetrics {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 4px;
}
.wl-hm-tmetric {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.wl-hm-lbl {
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #7995a8;
  line-height: 1;
  text-transform: uppercase;
}
.wl-hm-val {
  font-family: 'IBMPlexMono', Consolas, monospace;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1.1;
}
.wl-hm-tvals {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-family: 'IBMPlexMono', Consolas, monospace;
  font-size: 9.5px;
}
.wl-hm-tbar { height: 3px; border-radius: 99px; background: rgba(255, 255, 255, 0.10); overflow: hidden; margin-top: 1px; }
.wl-hm-tbar i { display: block; height: 100%; border-radius: 99px; }

/* Selected Tile Inspection Strip under Heatmap */
.wl-hm-selected-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 184, 0, 0.45);
  background: linear-gradient(90deg, rgba(255, 184, 0, 0.10), rgba(9, 20, 29, 0.94) 24%);
  box-shadow: 0 0 20px rgba(255, 184, 0, 0.15);
}
.wl-hm-sel-id { display: flex; align-items: center; gap: 10px; }
.wl-hm-sel-tag {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 184, 0, 0.18);
  color: #ffb800;
  border: 1px solid rgba(255, 184, 0, 0.50);
  box-shadow: 0 0 10px rgba(255, 184, 0, 0.35);
}
.wl-hm-sel-metrics { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.wl-hm-sel-m small { display: block; font-size: 9px; font-weight: 700; letter-spacing: 0.08em; color: #7893a5; }
.wl-hm-sel-m b { display: block; margin-top: 2px; font-family: 'IBMPlexMono', Consolas, monospace; font-size: 12.5px; color: #eef7fa; }
.wl-hm-sel-acts { display: flex; align-items: center; gap: 7px; }

/* ==================== MODE 3: EMERALD GLASS BENTO CARDS ==================== */
.wl-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.wl-bento-card {
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(165deg, rgba(14, 29, 41, 0.92), rgba(7, 15, 22, 0.96));
  padding: 13px 14px 11px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.wl-bento-card:hover { transform: translateY(-2px); border-color: rgba(0, 255, 157, 0.55); box-shadow: 0 6px 22px rgba(0, 255, 157, 0.18); }
.wl-bento-card.tier-deep {
  border-color: rgba(0, 255, 157, 0.48);
  box-shadow: inset 0 1px 0 rgba(0, 255, 157, 0.35), 0 4px 18px rgba(0, 255, 157, 0.14);
}
.wl-bento-card.is-portfolio {
  border-color: rgba(255, 184, 0, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 184, 0, 0.40), 0 8px 24px rgba(0, 255, 157, 0.14);
}
.wl-bento-card.tier-near { border-color: rgba(255, 184, 0, 0.50); }
.wl-bento-card.tier-over,
.wl-bento-card.is-rejim { border-color: rgba(255, 34, 86, 0.50); }
.wl-bento-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.wl-bento-id { display: flex; align-items: center; gap: 9px; min-width: 0; }
.wl-bento-badges { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: 0 0 auto; }
.wl-bento-mid { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wl-bento-price { font-family: 'IBMPlexMono', Consolas, monospace; font-size: 18px; font-weight: 800; color: #f3fafc; }
.wl-bento-rsi-box {
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(4, 10, 15, 0.65);
  padding: 8px 10px;
}
.wl-bento-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 10.5px;
  color: #849eb0;
}

/* ==================== OPTIONAL SLIDE-OVER HIZLI RÖNTGEN DRAWER ==================== */
.wl-xray-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 7, 12, 0.56);
  backdrop-filter: blur(2px);
  z-index: 55;
}
.wl-xray-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(410px, 94vw);
  z-index: 60;
  background: linear-gradient(180deg, #091722 0%, #050d14 100%);
  border-left: 1px solid rgba(16, 232, 160, 0.28);
  box-shadow: -16px 0 48px rgba(0, 0, 0, 0.58);
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  overflow-y: auto;
  color: #eaf4f8;
}
.wl-xray-drawer[hidden], .wl-xray-backdrop[hidden] { display: none !important; }
.wl-xray-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wl-xray-close {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #b7ccd9;
  font-size: 18px;
  display: grid;
  place-items: center;
}
.wl-xray-close:hover { border-color: #10e8a0; color: #10e8a0; }
.wl-xray-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.wl-xray-hgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}
.wl-xray-hcard {
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 7px;
  text-align: center;
}
.wl-xray-hcard small { display: block; font-size: 9px; font-weight: 700; color: #7e97a8; }
.wl-xray-hcard b { display: block; margin-top: 3px; font-family: 'IBMPlexMono', Consolas, monospace; font-size: 12px; }
.wl-xray-box {
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 11, 17, 0.78);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wl-xray-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #849eae;
}
.wl-xray-thermo {
  position: relative;
  height: 10px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(16, 232, 160, 0.45) 0%, rgba(16, 232, 160, 0.25) 40%, rgba(148, 163, 184, 0.18) 40%, rgba(148, 163, 184, 0.18) 65%, rgba(251, 191, 36, 0.35) 65%, rgba(251, 113, 133, 0.45) 70%, rgba(251, 113, 133, 0.55) 100%);
}
.wl-xray-needle {
  position: absolute;
  top: 50%;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #00ff9d;
  border: 2px solid #04131a;
  box-shadow: 0 0 16px rgba(0, 255, 157, 0.85);
  transform: translate(-50%, -50%);
}
.wl-xray-scale {
  display: flex;
  justify-content: space-between;
  font-family: 'IBMPlexMono', Consolas, monospace;
  font-size: 9.5px;
  color: #7c97a9;
}
.wl-xray-port-box {
  border-radius: 11px;
  border: 1px solid rgba(0, 255, 157, 0.45);
  background: rgba(0, 255, 157, 0.08);
  box-shadow: 0 0 16px rgba(0, 255, 157, 0.12);
  padding: 11px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.wl-xray-port-box.empty {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}
.wl-xray-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 8px;
}
.wl-xray-actions .wl-btn-danger-full {
  grid-column: 1 / -1;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(251, 113, 133, 0.30);
  background: rgba(251, 113, 133, 0.07);
  color: #fda4af;
  font-size: 11px;
  font-weight: 700;
}
.wl-xray-actions .wl-btn-danger-full:hover { background: rgba(251, 113, 133, 0.16); border-color: #fb7185; }

/* ==================== LIGHT THEME SUPPORT ==================== */
:root[data-theme="light"] .wl-shell {
  background: #f6f9fc;
  border-color: #d7e1ea;
  color: #142232;
}
:root[data-theme="light"] .wl-eyebrow { color: #059669; }
:root[data-theme="light"] .wl-title-row h2,
:root[data-theme="light"] .wl-kpi-val,
:root[data-theme="light"] .wl-sym,
:root[data-theme="light"] .wl-price-val,
:root[data-theme="light"] .wl-bento-price,
:root[data-theme="light"] .wl-hm-ctitle,
:root[data-theme="light"] .wl-hm-tsym,
:root[data-theme="light"] .wl-hm-val,
:root[data-theme="light"] .wl-hm-sel-m b { color: #102131; }
:root[data-theme="light"] .wl-hm-lbl { color: #607587; }
:root[data-theme="light"] .wl-view-switch,
:root[data-theme="light"] .wl-control-bar,
:root[data-theme="light"] .wl-hm-cluster,
:root[data-theme="light"] .wl-bento-rsi-box {
  background: #edf3f8;
  border-color: #d4dfe9;
}
:root[data-theme="light"] .wl-kpi-card,
:root[data-theme="light"] .wl-matrix-wrap,
:root[data-theme="light"] .wl-hm-panel,
:root[data-theme="light"] .wl-bento-card,
:root[data-theme="light"] .wl-hm-selected-bar {
  background: #ffffff;
  border-color: #d5e0ea;
}
:root[data-theme="light"] .wl-table thead th,
:root[data-theme="light"] .wl-foot {
  background: #f0f5fa;
  border-color: #d8e2ec;
  color: #516678;
}
:root[data-theme="light"] .wl-table tbody tr { border-bottom-color: #e4ecf3; }
:root[data-theme="light"] .wl-table tbody tr:hover { background: #effbf6; }
:root[data-theme="light"] .wl-select,
:root[data-theme="light"] .wl-search-box,
:root[data-theme="light"] .wl-btn-edit,
:root[data-theme="light"] .wl-chip,
:root[data-theme="light"] .wl-act-btn,
:root[data-theme="light"] .wl-page-btn {
  background: #ffffff;
  border-color: #cfdbe6;
  color: #273c50;
}
:root[data-theme="light"] .wl-search-box input { color: #102131; }
:root[data-theme="light"] .wl-chip.active,
:root[data-theme="light"] .wl-switch-btn.active {
  background: #d1fae5;
  border-color: #10b981;
  color: #065f46;
}
:root[data-theme="light"] .wl-pos,
:root[data-theme="light"] .wl-rsi-num.deep { color: #059669; }
:root[data-theme="light"] .wl-neg,
:root[data-theme="light"] .wl-dd-val,
:root[data-theme="light"] .wl-rsi-num.over { color: #dc2626; }
:root[data-theme="light"] .wl-xray-drawer {
  background: #ffffff;
  color: #122232;
  border-left-color: #cbd8e4;
}
:root[data-theme="light"] .wl-xray-box,
:root[data-theme="light"] .wl-xray-hcard {
  background: #f4f8fb;
  border-color: #d9e3ec;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 920px) {
  .wl-kpi-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wl-hm-grid-top, .wl-hm-grid-bot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wl-bento-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .wl-shell { padding: 12px 10px; }
  .wl-kpi-strip, .wl-hm-grid-top, .wl-hm-grid-bot, .wl-bento-grid { grid-template-columns: 1fr; }
  .wl-toolbar-right { margin-left: 0; width: 100%; }
  .wl-search-box { flex: 1; min-width: 140px; }
}


