/* ===================== Borsa (/borsa, /en/exchange) — exchange.js ile birlikte =====================
   4. surum: lacivert/antrasit yuzeyler, mor arayuz vurgusu, ayri paneller (sol filtre, orta tarayici + sinyal gunlugu,
   sag market detayi ve grafik). Tum siniflar "xt-" onekli (app.css ile cakismasin). Renkler yalnizca tokenlardan okunur.
   Anlam: MOR arayuz secimi ve odak; YESIL olumlu (fiyat artisi, hacim, buro farki); KIRMIZI olumsuz (fiyat dususu);
   grafikte MAVI back oran cizgisi, YESIL eslesen hacim. Renk tek basina anlam tasimaz: ok, isaret ve etiket birlikte.
   Duzen siniflari (JS verir): .is-side (filtre paneli acik), .is-det (sag panel acik), .is-mid (< 1800 px),
   .is-narrow (< 1000 px: liste + tam ekran detay), .is-xs (< 560 px). */
#viewEx { min-height: 0; }
.xt {
  --xt-bg: var(--bg); --xt-surface: var(--panel); --xt-elev: var(--sunk); --xt-raise: var(--raised); --xt-border: var(--line); --xt-grid: var(--line-soft);
  --xt-hover: var(--ghost-h, var(--hover)); --xt-track: color-mix(in srgb, var(--ink) 6%, transparent);
  --xt-acc: var(--action); --xt-acc-t: var(--focus); --xt-acc-bg: var(--action-tint); --xt-sel: color-mix(in srgb, var(--action) 9%, transparent); --xt-on-acc: var(--action-ink);
  --xt-pos: var(--profit); --xt-neg: var(--loss); --xt-warn: var(--warm); --xt-live: var(--loss);
  --xt-pos-bg: var(--profit-tint); --xt-neg-bg: var(--loss-tint);
  --xt-line: var(--action); --xt-vol: var(--profit);
  --xt-text: var(--ink); --xt-text2: var(--ink-2); --xt-muted: var(--ink-3);
  --xt-sans: var(--font);
  --xt-r: var(--r-lg); --xt-r-md: var(--r-md); --xt-r-sm: var(--r-sm); --xt-gap: 10px; --xt-h: 32px;
  --xt-sidew: 224px; --xt-detw: 560px; --xt-logh: 220px;
  height: 100%; display: grid; gap: var(--xt-gap); min-width: 0;
  grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr) var(--xt-logh);
  grid-template-areas: "top" "tool" "scan" "log";
  font: 400 13px/1.4 var(--xt-sans); font-variant-numeric: tabular-nums; color: var(--xt-text);
}
.xt.is-side { grid-template-columns: var(--xt-sidew) minmax(0, 1fr); grid-template-areas: "top top" "tool tool" "nav scan" "nav log"; }
.xt.is-det { grid-template-columns: minmax(0, 1fr) var(--xt-detw); grid-template-areas: "top top" "tool tool" "scan det" "log det"; }
.xt.is-side.is-det { grid-template-columns: var(--xt-sidew) minmax(0, 1fr) var(--xt-detw); grid-template-areas: "top top top" "tool tool tool" "nav scan det" "nav log det"; }
.xt.is-mid { --xt-sidew: 204px; }
.xt:not(.is-narrow):not(.is-side) .xt-nav, .xt:not(.is-narrow):not(.is-det) .xt-det { display: none; }
.xt.xt-dragging { user-select: none; cursor: col-resize; }
.xt.xt-dragging * { pointer-events: none; }

/* ---- temel ---- */
.xt button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; }
.xt button:disabled { cursor: default; }
.xt input, .xt select { font: inherit; color: var(--xt-text); }
.xt :focus-visible { outline: 2px solid var(--xt-acc); outline-offset: -2px; border-radius: var(--xt-r-sm); }
.xt svg { stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.xt-m { font-variant-numeric: tabular-nums; }
.xt-up { color: var(--xt-pos); } .xt-dn { color: var(--xt-neg); } .xt-am { color: var(--xt-warn); } .xt-mu { color: var(--xt-muted); }
.xt-ref { color: var(--xt-text2); }
.xt-vh { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.xt-pane { background: var(--xt-surface); border: 1px solid var(--xt-border); border-radius: var(--xt-r); box-shadow: var(--shadow); min-width: 0; min-height: 0;
  display: flex; flex-direction: column; overflow: hidden; position: relative; }
.xt-ph { height: 44px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid var(--xt-border);
  font-size: 14px; font-weight: 600; color: var(--xt-text); white-space: nowrap; }
.xt-ph .xt-r { margin-left: auto; display: flex; gap: 12px; align-items: center; font-weight: 400; font-size: 12px; }
.xt-scroll { flex: 1; min-height: 0; overflow: auto; scrollbar-width: thin; scrollbar-color: var(--xt-border) transparent; overscroll-behavior: contain; }
.xt-empty { padding: 32px 14px; color: var(--xt-muted); text-align: center; font-size: 13px; }
.xt-note { margin: 0; padding: 8px 14px 10px; color: var(--xt-muted); font-size: 11.5px; line-height: 1.45; }
.xt-hint { margin: 2px 14px 6px; color: var(--xt-muted); font-size: 11.5px; line-height: 1.4; }
.xt-lnk { color: var(--xt-text2); font-size: 12px; }
.xt-lnk:hover:not(:disabled) { color: var(--xt-text); }
.xt-lnk:disabled { opacity: .35; }
.xt-tag { display: inline-block; font-size: 10.5px; font-weight: 500; padding: 0 6px; line-height: 17px; border: 1px solid currentColor; border-radius: 5px; margin-left: 6px; vertical-align: 1px; }
.xt-exb { display: inline-grid; place-items: center; min-width: 26px; height: 18px; padding: 0 4px; border-radius: 5px; background: var(--xt-acc-bg); color: var(--xt-acc-t);
  font-size: 10px; font-weight: 600; font-style: normal; margin-right: 6px; }
.xt-exl { width: 18px; height: 18px; border-radius: 5px; object-fit: cover; flex: none; vertical-align: -4px; margin-right: 7px; background: var(--xt-raise); }
.xt-exl-lg { width: 28px; height: 28px; border-radius: 7px; margin: 0; }
.xt-xs { display: inline-flex; gap: 3px; align-items: center; flex-wrap: nowrap; }
.xt-xs .xt-exl { margin: 0; }
.xt-xs b { font-size: 10px; font-weight: 600; line-height: 18px; padding: 0 5px; border-radius: 5px; background: var(--xt-acc-bg); color: var(--xt-acc-t); }
.xt-xs b.xt-xmore { background: transparent; color: var(--xt-text2); box-shadow: inset 0 0 0 1px var(--xt-border); }
/* canli rozeti: kirmizi zemin, beyaz yazi; yaninda dakika ve skor */
/* canli: sitenin .livedot dili (yanip sonen kucuk nokta + metin), dolu kirmizi kutu yok */
.xt-livb { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--xt-live); flex: none; }
.xt-livb::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: blink 1.6s ease-in-out infinite; }
.xt-mn { color: var(--xt-text2); font-size: 12px; margin-left: 6px; }
.xt-scb { margin-left: 6px; font-weight: 600; font-size: 12px; color: var(--xt-text); }
.xt-ldot { width: 7px; height: 7px; border-radius: 50%; background: var(--xt-live); }

/* ---- ust cubuk: borsa sekmeleri + baglanti ---- */
.xt-intro { grid-area: top; min-width: 0; }
.xt-ibar { display: flex; align-items: flex-end; gap: 8px; min-width: 0; border-bottom: 1px solid var(--xt-border); }
.xt-exmini { flex: 1; min-width: 0; display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; }
.xt-exm { flex: none; position: relative; display: inline-flex !important; align-items: center; gap: 8px; height: 42px; padding: 0 2px !important;
  font-size: 13.5px; font-weight: 500; color: var(--xt-text2) !important; white-space: nowrap; transition: color .12s; }
.xt-exm::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px 2px 0 0; background: transparent; }
.xt-exm .xt-exl { margin: 0; width: 18px; height: 18px; border-radius: 5px; }
.xt-exm .xt-m { font-size: 11.5px; font-weight: 500; line-height: 18px; padding: 0 6px; border-radius: var(--r-pill); background: var(--xt-track); color: var(--xt-muted); }
.xt-exm:hover { color: var(--xt-text) !important; }
.xt-exm[aria-pressed="true"] { color: var(--xt-text) !important; }
.xt-exm[aria-pressed="true"]::after { background: var(--xt-acc); }
.xt-exm[aria-pressed="true"] .xt-m { color: var(--xt-text2); }
.xt-clock { flex: none; display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 6px; font-size: 12.5px; color: var(--xt-text2); white-space: nowrap; }
.xt-conn { display: inline-flex; align-items: center; gap: 7px; color: var(--xt-text); }
.xt-conn::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--xt-pos); }
.xt-conn.off::before { background: var(--xt-warn); box-shadow: none; }
.xt-ibar > .xt-btn { height: var(--xt-h); margin-bottom: 5px; border: 0 !important; background: none !important; box-shadow: none; color: var(--xt-text2) !important; }
.xt-ibar > .xt-btn:hover, .xt-ibar > .xt-btn[aria-expanded="true"] { background: var(--xt-hover) !important; color: var(--xt-text) !important; }
.xt-itog svg { width: 14px; height: 14px; transition: transform .15s; }
.xt-intro.xt-iopen .xt-itog svg { transform: rotate(180deg); }
.xt-ibody { display: none; margin-top: 10px; padding: 14px; background: var(--xt-surface); border: 1px solid var(--xt-border); border-radius: var(--xt-r); box-shadow: var(--shadow); }
.xt-intro.xt-iopen .xt-ibody { display: block; }
.xt-idesc { margin: 0 0 12px; max-width: 90ch; color: var(--xt-text2); font-size: 13px; line-height: 1.55; }
.xt-help { display: grid; margin-bottom: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 20px; }
.xt-help b { display: block; font-size: 13px; font-weight: 600; color: var(--xt-text); margin-bottom: 3px; }
.xt-help p { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--xt-text2); }
.xt-exstrip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(190px, 1fr); gap: 8px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--xt-border) transparent; }
.xt-exc { display: grid !important; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px !important; text-align: left;
  border: 1px solid var(--xt-border) !important; border-radius: var(--xt-r-md); background: var(--xt-elev) !important; min-width: 0; }
.xt-exc:hover { border-color: var(--xt-muted) !important; }
.xt-exc[aria-pressed="true"] { border-color: var(--xt-acc) !important; background: var(--xt-sel) !important; }
.xt-exc-t { min-width: 0; display: flex; flex-direction: column; }
.xt-exc-t b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xt-exc-t small { font-size: 11.5px; color: var(--xt-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xt-exc-n { text-align: right; font-size: 13px; font-weight: 600; line-height: 1.15; }
.xt-exc-n small { display: block; font-size: 11px; font-weight: 400; color: var(--xt-muted); }

/* ---- arac cubugu: arama, durum/sinyal hapciklari, komisyon, alarmlar ---- */
.xt-tool { grid-area: tool; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.xt-q { position: relative; flex: 0 1 340px; min-width: 160px; }
.xt-q::before { content: ""; position: absolute; left: 13px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border: 1.6px solid var(--xt-muted); border-radius: 50%; pointer-events: none; }
.xt-q::after { content: ""; position: absolute; left: 24px; top: 50%; width: 5px; height: 1.6px; margin-top: 4px; background: var(--xt-muted); transform: rotate(45deg); pointer-events: none; }
.xt-q input { width: 100%; height: var(--xt-h); padding: 0 34px 0 34px; background: var(--xt-elev); border: 1px solid var(--xt-border); border-radius: var(--xt-r-md); outline: none; font-size: 13px; }
.xt-q input::placeholder { color: var(--xt-muted); }
.xt-q input:focus { border-color: var(--xt-acc); box-shadow: 0 0 0 3px var(--xt-acc-bg); }
.xt-q kbd { position: absolute; right: 8px; top: 7px; font: 500 10.5px var(--xt-sans); color: var(--xt-muted); border: 1px solid var(--xt-border); padding: 0 5px; border-radius: 4px; }
/* segment kontrolu: sitenin .seg dili (iz icinde dugmeler, secili olan yukselir) */
.xt-sw, .xt-seg, .xt-ltabs, .xt-exs, .xt-lsz { display: inline-flex; align-items: center; gap: 2px; height: var(--xt-h); padding: 3px; border: 0; border-radius: var(--xt-r-md);
  background: var(--xt-track); flex: none; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.xt-sw button, .xt-seg button, .xt-ltabs button, .xt-exs button, .xt-lsz button { height: 26px; padding: 0 10px !important; border: 0 !important; border-radius: var(--xt-r-sm);
  display: inline-flex !important; align-items: center; justify-content: center; gap: 6px; white-space: nowrap;
  font-size: 12.5px; font-weight: 500; color: var(--xt-text2) !important; background: none !important; transition: color .12s, background-color .12s; }
.xt-sw button:hover, .xt-seg button:hover:not(:disabled), .xt-ltabs button:hover, .xt-exs button:hover, .xt-lsz button:hover { color: var(--xt-text) !important; }
.xt-sw button[aria-pressed="true"], .xt-seg button[aria-pressed="true"], .xt-ltabs button[aria-pressed="true"], .xt-exs button[aria-pressed="true"], .xt-lsz button[aria-pressed="true"] {
  color: var(--xt-text) !important; background: var(--xt-surface) !important; box-shadow: 0 0 0 1px var(--xt-border), 0 1px 2px rgba(0, 0, 0, .25); }
:root[data-theme="light"] .xt :is(.xt-sw, .xt-seg, .xt-ltabs, .xt-exs, .xt-lsz) button[aria-pressed="true"] { background: #e9ebee !important; }   /* gri acik tema: saf beyaz yerine (app.css ile ayni) */
.xt-seg button:disabled { opacity: .4; cursor: default; }
.xt-sw .xt-m, .xt-ltabs .xt-m { font-size: 11.5px; font-weight: 400; color: var(--xt-muted); }
.xt-sw button[aria-pressed="true"] .xt-m, .xt-ltabs button[aria-pressed="true"] .xt-m { color: var(--xt-text2); }
.xt-seg svg, .xt-lsz svg { width: 15px; height: 15px; }
.xt-sp { flex: 1; }
.xt-btn { height: var(--xt-h); padding: 0 11px !important; border: 1px solid var(--xt-border) !important; border-radius: var(--xt-r-md); font-size: 12.5px; font-weight: 500; color: var(--xt-text) !important;
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; background: var(--xt-elev) !important; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.xt-btn:hover { background: var(--xt-raise) !important; }
.xt-btn svg { width: 14px; height: 14px; }
.xt-btn[aria-expanded="true"] { background: var(--xt-raise) !important; }
.xt-cnt { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--xt-acc); color: var(--xt-on-acc); font-size: 11px; font-weight: 600; line-height: 18px; text-align: center; }
.xt-cnt-hot { background: var(--xt-neg); color: #fff; }
.xt-comm { display: inline-flex; align-items: center; gap: 8px; color: var(--xt-text2); font-size: 13px; white-space: nowrap; }
.xt-comm input { width: 52px; height: var(--xt-h); background: var(--xt-elev); border: 1px solid var(--xt-border); border-radius: var(--xt-r-md); text-align: center; padding: 0 6px; outline: none; }
.xt-comm input:focus { border-color: var(--xt-acc); box-shadow: 0 0 0 3px var(--xt-acc-bg); }
.xt-chips { flex: 1 0 100%; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.xt-chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 5px 0 10px !important; border-radius: var(--r-pill); background: var(--xt-track) !important; box-shadow: inset 0 0 0 1px var(--xt-border); color: var(--xt-text) !important; font-size: 12px; }
.xt-chip span { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; color: var(--xt-text2); }
.xt-chip:hover span { background: var(--xt-border); color: var(--xt-text); }

/* ---- sol filtre paneli ---- */
.xt-nav { grid-area: nav; }
.xt-nav > .xt-ph { font-size: 13px; color: var(--xt-text2); font-weight: 500; height: 42px; }
.xt-nav .xt-scroll { padding-bottom: 10px; }
.xt-ng { padding: 6px 0 8px; border-bottom: 1px solid var(--xt-border); }
.xt-ng:last-child { border-bottom: 0; }
.xt-ng h4 { margin: 0; font-size: 14px; font-weight: 600; color: var(--xt-text); padding: 4px 14px 6px; }
.xt-ngh { padding: 0 !important; }
.xt-gt { width: 100%; height: 34px; padding: 0 14px !important; display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 600; color: var(--xt-text) !important; }
.xt-gt svg { width: 14px; height: 14px; color: var(--xt-muted); transition: transform .15s; }
.xt-gt[aria-expanded="false"] svg { transform: rotate(180deg); }
.xt-ngc > :not(h4) { display: none !important; }
.xt-ni { width: calc(100% - 12px); margin: 0 6px; height: 32px; padding: 0 8px !important; border-radius: var(--xt-r-sm); display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--xt-text2) !important; text-align: left; }
.xt-ni:hover { background: var(--xt-hover) !important; color: var(--xt-text) !important; }
.xt-ni[aria-pressed="true"] { color: var(--xt-text) !important; background: var(--xt-raise) !important; }
.xt-ni > span:first-of-type { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xt-ni .xt-m { margin-left: auto; font-size: 12px; color: var(--xt-muted); }
.xt-ni .xt-exl { margin-right: 0; width: 18px; height: 18px; }
.xt-ni[aria-pressed="false"] .xt-exl { opacity: .45; filter: grayscale(1); }
/* borsa ve market listeleri onay kutusu gibi gorunur (coklu secim) */
#xtNEx .xt-ni::before, #xtNFam .xt-ni::before, #xtNSoft .xt-ni::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 4px; border: 1px solid var(--xt-text2); background: var(--xt-elev); box-sizing: border-box; }
#xtNEx .xt-ni[aria-pressed="true"]::before, #xtNFam .xt-ni[aria-pressed="true"]::before, #xtNSoft .xt-ni[aria-pressed="true"]::before {
  border-color: var(--xt-acc); background: var(--xt-acc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
#xtNEx .xt-ni[aria-pressed="true"], #xtNFam .xt-ni[aria-pressed="true"], #xtNSoft .xt-ni[aria-pressed="true"] { background: transparent !important; }
#xtNEx .xt-ni:hover, #xtNFam .xt-ni:hover, #xtNSoft .xt-ni:hover { background: var(--xt-hover) !important; }
#xtNSport .xt-ni[aria-pressed="true"] { color: var(--xt-text) !important; background: var(--xt-raise) !important; }
#xtNSport .xt-ni[aria-pressed="true"] .xt-m { color: var(--xt-text2); }
.xt-ni .logo { width: 16px; height: 16px; }
.xt-nf { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; padding: 4px 14px; font-size: 13px; color: var(--xt-text2); }
.xt-nf select, .xt-nf input[type=text] { height: 28px; width: 84px; background: var(--xt-elev); border: 1px solid var(--xt-border); border-radius: var(--xt-r-sm); font-size: 12.5px; padding: 0 6px; outline: none; }
.xt-nf select:focus, .xt-nf input[type=text]:focus { border-color: var(--xt-acc); }
.xt-rng { display: flex; gap: 4px; }
.xt-rng input { width: 40px !important; }
.xt-nf input[type=checkbox] { accent-color: var(--xt-acc); width: 16px; height: 16px; }
.xt-sofh { display: flex; gap: 14px; padding: 0 14px 6px; }
.xt-sofh .xt-lnk[aria-pressed="true"] { color: var(--xt-acc-t); }
.xt-h4r { display: flex; justify-content: space-between; align-items: center; }
.xt-psave { display: flex; gap: 6px; padding: 2px 14px 8px; }
.xt-psave input { flex: 1; min-width: 0; height: 30px; background: var(--xt-elev); border: 1px solid var(--xt-border); border-radius: var(--xt-r-sm); padding: 0 8px; font-size: 12.5px; outline: none; }
.xt-psave .xt-btn { height: 30px; }
.xt-pr { display: flex; align-items: center; justify-content: space-between; padding: 0 14px; height: 28px; }
.xt-pr .xt-pa { flex: 1; text-align: left; color: var(--xt-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xt-pr .xt-lnk[data-pshare] { font-size: 13px; padding: 0 4px; }
.xt-navx { display: none; }

/* ---- tarayici ---- */
.xt-scan { grid-area: scan; }
.xt-scan .xt-ph .xt-r > .xt-m { color: var(--xt-muted); font-size: 12px; }
.xt-grid { flex: 1; min-height: 0; overflow: auto; position: relative; scrollbar-width: thin; scrollbar-color: var(--xt-border) transparent; outline: none; }
.xt-gh, .xt-sr { display: grid; grid-template-columns: var(--xt-cols); width: max(100%, var(--xt-gridw)); }
.xt-gh { position: sticky; top: 0; z-index: 3; height: 32px; background: var(--xt-surface); border-bottom: 1px solid var(--xt-border); }
.xt-th { display: flex; align-items: center; justify-content: flex-end; padding: 0 10px; font-size: 12px; font-weight: 500; color: var(--xt-text2);
  white-space: nowrap; overflow: hidden; user-select: none; cursor: pointer; }
.xt-th.xt-l { justify-content: flex-start; }
.xt-th:hover { color: var(--xt-text); }
.xt-th[aria-sort] { color: var(--xt-text); }
.xt-th[aria-sort="descending"]::after { content: "▼"; font-size: 7px; margin-left: 5px; color: var(--xt-acc-t); }
.xt-th[aria-sort="ascending"]::after { content: "▲"; font-size: 7px; margin-left: 5px; color: var(--xt-acc-t); }
.xt-gb { position: relative; width: max(100%, var(--xt-gridw)); }
.xt-vr { position: absolute; left: 0; right: 0; top: 0; }
.xt-er { height: 100%; display: flex; align-items: center; gap: 9px; padding: 0 12px 0 8px; background: var(--xt-elev); border-top: 1px solid var(--xt-border); cursor: pointer; white-space: nowrap; overflow: hidden; }
.xt-er:hover { background: var(--xt-hover); }
.xt-er > .xt-m { color: var(--xt-text2); font-size: 12px; }
.xt-car { width: 12px; color: var(--xt-muted); font-size: 10px; text-align: center; flex: none; }
.xt-evn { display: inline-flex; align-items: center; gap: 7px; min-width: 0; font-weight: 600; font-size: 13px; overflow: hidden; white-space: nowrap; }
.xt-evl { color: var(--xt-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.xt-evc { margin-left: auto; flex: none; color: var(--xt-muted); font-size: 11px; padding: 0 7px; border: 1px solid var(--xt-border); border-radius: 9px; line-height: 17px; }
.xt-sr { height: 100%; align-items: center; border-bottom: 1px solid var(--xt-grid); cursor: pointer; }
.xt-sr:hover { background: var(--xt-hover); }
.xt-sr.xt-on { background: var(--xt-sel); box-shadow: inset 2px 0 0 var(--xt-acc); }
.xt-sr.xt-sus { opacity: .58; }
.xt-td { padding: 0 10px; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; position: relative; min-width: 0; }
.xt-td.xt-l { text-align: left; }
.xt-seln { font-weight: 500; }
.xt-last { font-weight: 600; color: var(--xt-text); }
.xt-c-ref { color: var(--xt-text2); }
.xt-c-chg, .xt-c-vol { font-weight: 500; }
.xt-bb { font-size: 12px; }
.xt-bar { position: absolute; right: 10px; bottom: 4px; height: 2px; width: calc((100% - 20px) * var(--w) / 100); background: var(--xt-text2); opacity: .3; border-radius: 1px; }
.xt-bar-up { background: var(--xt-pos); opacity: .45; }
.xt-bar-dn { background: var(--xt-neg); opacity: .45; }
.xt-c-vol .xt-bar, .xt-c-dep .xt-bar { display: none; }
.xt-pw { display: inline-block; width: 34px; height: 6px; border-radius: 3px; background: var(--xt-raise); vertical-align: middle; overflow: hidden; margin-right: 7px; }
.xt-pw i { display: block; height: 100%; border-radius: 3px; background: var(--xt-acc); }
.xt-pw.xt-w i { background: var(--xt-muted); }
.xt-pwn { font-size: 12px; color: var(--xt-text2); display: inline-block; min-width: 18px; }
.xt-fl-up .xt-c-last, .xt-mr.xt-fl-up .xt-mr-px { animation: xt-flu 1.2s ease-out; }
.xt-fl-dn .xt-c-last, .xt-mr.xt-fl-dn .xt-mr-px { animation: xt-fld 1.2s ease-out; }
@keyframes xt-flu { from { background: color-mix(in srgb, var(--xt-pos) 34%, transparent); } }
@keyframes xt-fld { from { background: color-mix(in srgb, var(--xt-neg) 34%, transparent); } }
.xt-cols { position: absolute; right: 10px; top: 46px; z-index: 6; width: 250px; max-height: 70%; overflow: auto; background: var(--xt-elev); border: 1px solid var(--xt-border); border-radius: var(--xt-r-md);
  box-shadow: 0 12px 30px rgb(0 0 0 / .35); padding: 6px 0; }
.xt-colsh { display: flex; justify-content: space-between; align-items: center; padding: 4px 12px 6px; font-size: 12px; color: var(--xt-text2); }
.xt-colr { display: flex; justify-content: space-between; align-items: center; padding: 0 12px; height: 30px; font-size: 13px; }
.xt-colr label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.xt-colr input { accent-color: var(--xt-acc); }
.xt-colr span { display: flex; gap: 8px; }

/* ---- mobil liste ---- */
.xt-mlist { display: none; }
.xt-mev { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 10px 14px 8px; background: var(--xt-elev); border-top: 1px solid var(--xt-border); border-bottom: 1px solid var(--xt-border); font-size: 13.5px; }
.xt-mev b { font-weight: 600; }
.xt-mev small { width: 100%; color: var(--xt-muted); font-size: 12px; }
.xt-mr { display: grid !important; grid-template-columns: minmax(0, 1fr) auto 80px; grid-template-areas: "sel px chg" "meta meta meta"; gap: 4px 10px; align-items: baseline;
  width: 100%; min-height: 56px; padding: 10px 14px !important; text-align: left; border-bottom: 1px solid var(--xt-grid) !important; }
.xt-mr:active { background: var(--xt-hover) !important; }
.xt-mr.xt-on { background: var(--xt-sel) !important; box-shadow: inset 3px 0 0 var(--xt-acc); }
.xt-mr.xt-sus { opacity: .58; }
.xt-mr-sel { grid-area: sel; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xt-mr-sel small { margin-left: 6px; color: var(--xt-muted); font-size: 12px; font-weight: 400; }
.xt-mr-px { grid-area: px; font-size: 17px; font-weight: 600; text-align: right; padding: 0 2px; }
.xt-mr-chg { grid-area: chg; font-size: 12.5px; text-align: right; }
.xt-mr-meta { grid-area: meta; display: flex; align-items: center; gap: 10px; min-width: 0; overflow: hidden; white-space: nowrap; font-size: 12px; color: var(--xt-text2); }

/* ---- sag panel: baslik, oran karti, sekmeler, grafik ---- */
.xt-det { grid-area: det; }
.xt-det:fullscreen { border-radius: 0; border: 0; padding: 8px 12px; }
.xt-det:fullscreen .xt-chart { min-height: 0; flex: 1; }
.xt-dethandle { position: absolute; left: 0; top: 0; bottom: 0; width: 6px; z-index: 5; cursor: col-resize; touch-action: none; }
.xt-dethandle:hover, .xt-dethandle:focus-visible { background: var(--xt-acc); opacity: .5; outline: none; }
.xt-dh { padding: 16px 18px 12px; position: relative; flex: none; }
.xt-dh-ev { font-size: 18px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 36px; }
.xt-dh-ctx { margin-top: 3px; color: var(--xt-text2); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xt-dh-st { margin-top: 10px; display: flex; align-items: center; gap: 8px; }
.xt-dh-st .xt-livb { height: 26px; padding: 0 10px; border-radius: var(--r-pill); font-size: 12.5px; background: var(--xt-neg-bg); }
.xt-dh-st .xt-mn { margin: 0; font-size: 13px; }
.xt-scbig { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border: 1px solid var(--xt-border); border-radius: var(--xt-r-sm); font-size: 16px; font-weight: 600; letter-spacing: .02em; }
.xt-dclose { display: none !important; }
.xt-dcol { position: absolute; right: 12px; top: 14px; width: 30px; height: 30px; display: grid !important; place-items: center; border-radius: var(--xt-r-sm); color: var(--xt-muted) !important; }
.xt-dcol svg { width: 15px; height: 15px; }
.xt-dcol:hover { background: var(--xt-hover) !important; color: var(--xt-text) !important; }
.xt-card { margin: 0 14px 12px; padding: 14px 16px; background: var(--xt-elev); border: 1px solid var(--xt-border); border-radius: var(--xt-r-md); flex: none; }
.xt-card-sel { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.xt-card-sel b { font-size: 17px; font-weight: 600; }
.xt-card-sel .xt-mu { font-size: 12.5px; }
.xt-card-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 8px; flex-wrap: wrap; }
.xt-card-px { display: flex; align-items: center; gap: 12px; }
.xt-big { font-size: 40px; font-weight: 600; line-height: 1; letter-spacing: -.02em; color: var(--xt-text); }
.xt-pill { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 9px; border-radius: var(--xt-r-sm); font-size: 13px; font-weight: 600; background: var(--xt-raise); }
.xt-pill.xt-dn { background: var(--xt-neg-bg); } .xt-pill.xt-up { background: var(--xt-pos-bg); }
.xt-card-kv { display: flex; gap: 22px; margin: 0; }
.xt-card-kv div { min-width: 0; }
.xt-card-kv dt { font-size: 11.5px; color: var(--xt-text2); white-space: nowrap; }
.xt-card-kv dd { margin: 2px 0 0; font-size: 18px; font-weight: 600; white-space: nowrap; }
.xt-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--xt-border); font-size: 12px; color: var(--xt-text2); }
.xt-card-meta b { color: var(--xt-text); font-weight: 600; margin-left: 3px; }
.xt-card-meta b.xt-up { color: var(--xt-pos); }
.xt-card-ex { margin-left: auto; display: inline-flex; gap: 10px; }
.xt-card-ex > span { display: inline-flex; align-items: center; }
.xt-card-ex .xt-exl { width: 16px; height: 16px; margin-right: 5px; }
.xt-sib { display: flex; overflow-x: auto; scrollbar-width: none; flex: none; gap: 6px; padding: 0 14px 12px; }
.xt-sib button { flex: none; height: 26px; padding: 0 10px !important; font-size: 12.5px; color: var(--xt-text2) !important; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--xt-border); }
.xt-sib button:hover { color: var(--xt-text) !important; }
.xt-sib button[aria-pressed="true"] { color: var(--xt-text) !important; background: var(--xt-raise) !important; box-shadow: inset 0 0 0 1px var(--xt-text2); }
.xt-tabs { display: flex; gap: 20px; flex: none; padding: 0 16px; border-bottom: 1px solid var(--xt-border); }
.xt-tabs button { position: relative; height: 40px; padding: 0 2px !important; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; color: var(--xt-text2) !important; }
.xt-tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px 2px 0 0; background: transparent; }
.xt-tabs button svg { width: 15px; height: 15px; }
.xt-tabs button:hover { color: var(--xt-text) !important; }
.xt-tabs button[aria-selected="true"] { color: var(--xt-text) !important; }
.xt-tabs button[aria-selected="true"]::after { background: var(--xt-acc); }
.xt-tbody { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: auto; scrollbar-width: thin; scrollbar-color: var(--xt-border) transparent; }
.xt-ctool { display: flex; align-items: center; gap: 8px; padding: 12px 14px 8px; flex: none; flex-wrap: wrap; }
.xt-ctyp button { width: 32px; padding: 0 !important; }
.xt-spn button { min-width: 40px; }
.xt-ibtn { width: var(--xt-h); height: var(--xt-h); display: grid !important; place-items: center; border-radius: var(--xt-r-md); color: var(--xt-text2) !important; }
.xt-ibtn:hover, .xt-ibtn[aria-pressed="true"] { color: var(--xt-text) !important; background: var(--xt-hover) !important; }
.xt-ibtn svg { width: 16px; height: 16px; }
.xt-exs { margin: 0 14px 8px; align-self: flex-start; }
.xt-exs button .xt-exl { width: 15px; height: 15px; margin-right: 1px; }
.xt-exn { display: inline-flex; align-items: center; font-size: 13px; color: var(--xt-text); white-space: nowrap; }
.xt-leg { display: flex; align-items: center; gap: 6px 18px; flex-wrap: wrap; padding: 2px 16px 4px; font-size: 12.5px; color: var(--xt-text2); flex: none; }
.xt-leg > span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.xt-lg-line { width: 16px; height: 3px; border-radius: 2px; background: var(--xt-line); }
.xt-lg-vol { width: 9px; height: 11px; border-radius: 2px; background: var(--xt-vol); }
.xt-ohlc { flex: 1; min-width: 0; justify-content: flex-end; font-size: 12px; color: var(--xt-muted); overflow: hidden; text-overflow: ellipsis; }
.xt-ohlc b { font-weight: 500; color: var(--xt-text2); }
.xt-chart { position: relative; flex: 1 1 260px; min-height: 240px; margin: 0 6px; }
.xt-tip { position: absolute; z-index: 4; pointer-events: none; min-width: 150px; padding: 8px 10px; background: var(--xt-elev); border: 1px solid var(--xt-border); border-radius: var(--xt-r-sm);
  box-shadow: 0 8px 22px rgb(0 0 0 / .35); font-size: 12px; }
.xt-tip time { display: block; color: var(--xt-text2); margin-bottom: 4px; }
.xt-tip div { display: flex; justify-content: space-between; gap: 14px; }
.xt-tip span { color: var(--xt-muted); }
.xt-tip b { font-weight: 600; }
.xt-kpis { display: flex; flex-wrap: wrap; margin: 10px 14px 0; border-top: 1px solid var(--xt-border); flex: none; }
.xt-kpi { flex: 1 1 0; min-width: 84px; padding: 9px 12px 2px 0; }
.xt-kpi + .xt-kpi { padding-left: 12px; border-left: 1px solid var(--xt-grid); }
.xt-kpi span { display: block; font-size: 11.5px; color: var(--xt-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xt-kpi b { display: block; margin-top: 2px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.xt-lt { width: 100%; border-collapse: collapse; table-layout: fixed; }
.xt-lt th { height: 32px; font-size: 11.5px; font-weight: 500; color: var(--xt-text2); text-align: right; padding: 0 8px;
  position: sticky; top: 0; z-index: 1; background: var(--xt-surface); border-bottom: 1px solid var(--xt-border); white-space: nowrap; }
.xt-lt th:first-child, .xt-lt td:first-child { text-align: left; padding-left: 14px; }
.xt-lt td { height: 32px; padding: 0 8px; text-align: right; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-bottom: 1px solid var(--xt-grid); position: relative; }
.xt-lad td:nth-child(2) { text-align: left; }
.xt-lad td:first-child .logo, .xt-lad td:first-child .xt-exl { width: 16px; height: 16px; vertical-align: -3px; margin-right: 7px; }
.xt-lad td:first-child .logo.txt { font-size: 6.5px; }
.xt-lad tr.xt-val td:not(:first-child):not(:nth-child(2)) { background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--xt-pos) var(--a, 10%), transparent)); }
.xt-lad tr.xt-isex td:first-child { color: var(--xt-text); font-weight: 500; }
.xt-lad tr.xt-stale td:not(:last-child) { opacity: .6; }
.xt-lad tr.xt-mid td { background: var(--xt-acc-bg); color: var(--xt-acc-t); font-weight: 600; border-top: 1px solid var(--xt-acc); border-bottom: 1px solid var(--xt-acc); }
.xt-lad a { color: inherit; text-decoration: none; }
.xt-lad a:hover { text-decoration: underline; }
.xt-ts td .xt-bar { left: 8px; right: auto; bottom: 5px; width: calc((100% - 16px) * var(--w) / 100); }
.xt-ts tr.xt-evt td { background: var(--xt-acc-bg); }
.xt-ts td.xt-sc { color: var(--xt-text2); font-size: 12px; }
.xt-why { margin: 0; padding: 12px 14px 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 12.5px; flex: none; }
.xt-why dt { color: var(--xt-muted); }
.xt-why dd { margin: 0; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xt-flowh { padding: 12px 14px 0; }
.xt-fsum { padding: 10px 14px 6px; flex: none; }
.xt-fsum-h { display: flex; align-items: baseline; gap: 6px; font-size: 12.5px; color: var(--xt-text2); }
.xt-fsum-h b { font-size: 16px; font-weight: 600; color: var(--xt-text); }
.xt-fbar { display: flex; height: 8px; margin: 8px 0; border-radius: 4px; overflow: hidden; background: var(--xt-raise); }
.xt-fbar i { display: block; height: 100%; }
.xt-fin { background: var(--xt-pos); } .xt-fout { background: var(--xt-neg); } .xt-fflat { background: var(--xt-muted); opacity: .6; }
.xt-fleg { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; color: var(--xt-text2); }
.xt-fleg > span { display: inline-flex; align-items: baseline; gap: 5px; white-space: nowrap; }
.xt-dot { width: 8px; height: 8px; border-radius: 2px; display: inline-block; align-self: center; }
.xt-dot-in { background: var(--xt-pos); } .xt-dot-out { background: var(--xt-neg); } .xt-dot-flat { background: var(--xt-muted); }

/* ---- sinyal gunlugu ---- */
.xt-log { grid-area: log; }
.xt-loghandle { position: absolute; left: 0; right: 0; top: 0; height: 8px; z-index: 5; cursor: row-resize; touch-action: none; display: grid; place-items: center; }
.xt-loghandle i { width: 40px; height: 3px; border-radius: 2px; background: var(--xt-border); }
.xt-loghandle:hover i, .xt-loghandle:focus-visible i { background: var(--xt-acc); }
.xt-loghandle:focus-visible { outline: none; }
.xt-ltabs { margin-left: 8px; height: 30px; }
.xt-ltabs button { height: 24px; }
.xt-lsz { height: 30px; }
.xt-lsz button { width: 28px; height: 24px; padding: 0 !important; }
.xt-lhead, .xt-lr { display: grid; grid-template-columns: 70px 78px minmax(150px, 1.5fr) minmax(130px, 1.2fr) 112px 78px 78px 70px minmax(130px, 1fr); gap: 0 10px; align-items: center; padding: 0 14px; }
.xt-lhead { height: 32px; flex: none; border-bottom: 1px solid var(--xt-border); font-size: 12px; font-weight: 500; color: var(--xt-text2); white-space: nowrap; }
.xt-lhead > *, .xt-lr > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xt-lr { height: 34px; border-bottom: 1px solid var(--xt-grid); cursor: pointer; font-size: 12.5px; }
.xt-lr:hover { background: var(--xt-hover); }
.xt-lr.xt-on { background: var(--xt-sel); }
.xt-ty { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; }
.xt-ty::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: currentColor; flex: none; }
.xt-ty-steam { color: var(--xt-pos); } .xt-ty-multi { color: var(--xt-acc-t); } .xt-ty-vol { color: var(--xt-line); } .xt-ty-move { color: var(--xt-warn); } .xt-ty-warn { color: var(--xt-neg); }
.xt-lr .xt-ev { color: var(--xt-text); }
.xt-lr .xt-se { color: var(--xt-text2); }
.xt-lr .xt-xs b { font-size: 10px; }
.xt.is-mid .xt-lhead, .xt.is-mid .xt-lr { grid-template-columns: 66px 74px minmax(130px, 1.5fr) minmax(110px, 1.2fr) 104px 74px 74px 0 0; gap: 0 8px; }
.xt.is-mid .xt-lhead > :nth-child(n+8), .xt.is-mid .xt-lr > :nth-child(n+8) { visibility: hidden; }
.xt.is-logmin .xt-lhead, .xt.is-logmin #xtLog { display: none; }

/* ---- alarmlar ---- */
.xt-alm { position: fixed; top: 110px; right: 18px; z-index: 60; width: min(390px, calc(100vw - 32px)); max-height: calc(100vh - 130px); display: flex; flex-direction: column;
  background: var(--xt-surface); border: 1px solid var(--xt-border); border-radius: var(--xt-r); box-shadow: 0 16px 40px rgb(0 0 0 / .45); color: var(--xt-text); font-family: var(--xt-sans); }
.xt-alm[hidden] { display: none; }
.xt-alm .xt-scroll { overflow: auto; overscroll-behavior: contain; }
.xt-almi { margin: 0; padding: 10px 14px; font-size: 12px; line-height: 1.5; color: var(--xt-text2); }
.xt-alm .xt-ng h4 { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.xt-almr { display: flex; align-items: center; gap: 6px; padding: 4px 14px; font-size: 12.5px; }
.xt-almr label { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; cursor: pointer; }
.xt-almr input { accent-color: var(--xt-acc); width: 15px; height: 15px; flex: none; }
.xt-almr.xt-off span { color: var(--xt-muted); text-decoration: line-through; }
.xt-almr .xt-lnk { font-size: 16px; line-height: 1; padding: 0 4px; }
.xt-nfw { grid-template-columns: 1fr; }
.xt-nfw input[type=text] { width: 100% !important; }
/* Alarm: "Buro geride" icin hangi burolar */
.xt-almbk { border: 0; margin: 0; min-width: 0; }
.xt-almbk[hidden] { display: none; }
.xt-almbk legend { padding: 0; margin-bottom: 6px; float: left; width: 100%; }
.xt-almbkl { clear: both; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 2px 8px; max-height: 168px; overflow-y: auto; overscroll-behavior: contain; }
.xt-almbkl label { display: flex; align-items: center; gap: 6px; min-height: 30px; color: var(--xt-text); cursor: pointer; min-width: 0; }
.xt-almbkl .xt-bkn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xt-almbkl .logo { width: 16px; height: 16px; margin: 0; flex: none; border-radius: 4px; }
.xt-almbk > .xt-mu { font-size: 12px; color: var(--xt-muted); }
.xt-nfb { grid-template-columns: 1fr; justify-items: end; }
.xt-nfb .xt-btn { height: 34px; }
.xt-almh { width: 100%; display: grid; grid-template-columns: 40px 1fr auto; gap: 2px 8px; padding: 8px 14px !important; text-align: left; font-size: 12.5px; border-bottom: 1px solid var(--xt-grid) !important; color: var(--xt-text) !important; }
.xt-almh:hover { background: var(--xt-hover) !important; }
.xt-almh .xt-ev { grid-column: 2 / 4; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xt-almh .xt-se { grid-column: 2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xt-almh > .xt-m:first-child { grid-row: 1 / 3; }
.xt-almh > .xt-m:nth-of-type(3) { grid-column: 2; }

.xt-scrim { position: fixed; inset: 0; z-index: 60; background: rgb(0 0 0 / .55); }

/* ---- orta genislik ---- */
.xt.is-mid .xt-exmini { gap: 16px; }
.xt.is-mid .xt-q { flex-basis: 220px; }
.xt.is-mid .xt-commt { display: none; }
.xt.is-mid .xt-sw button { padding: 0 9px !important; }
.xt.is-mid .xt-big { font-size: 34px; }
@media (max-width: 1400px) { .xt-help { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- dar gorunum (tablet/mobil): liste, soldan filtre cekmecesi, tam ekran detay ---- */
.xt.is-narrow { display: flex; flex-direction: column; gap: 10px; overflow: auto; height: auto; min-height: 100%; }
.xt.is-narrow > * { flex: none; }
.xt.is-narrow .xt-scan { overflow: visible; }
.xt.is-narrow .xt-scan > .xt-ph { position: sticky; top: 0; z-index: 3; background: var(--xt-surface); border-radius: var(--xt-r) var(--xt-r) 0 0; }
.xt.is-narrow .xt-grid, .xt.is-narrow .xt-log, .xt.is-narrow #xtColsT, .xt.is-narrow .xt-cols { display: none; }
.xt.is-narrow .xt-mlist { display: block; }
.xt.is-narrow .xt-sp, .xt.is-narrow .xt-comm, .xt.is-narrow .xt-q kbd { display: none; }
.xt.is-narrow .xt-q { flex: 1 1 120px; }
.xt.is-narrow .xt-sw { flex: 1 1 100%; order: 2; }
.xt.is-narrow .xt-chips { order: 3; }
.xt.is-narrow .xt-sidebtn span:not(.xt-cnt) { display: none; }
.xt.is-narrow .xt-exmini { gap: 16px; }
.xt.is-narrow .xt-clock { display: none; }
.xt.is-narrow .xt-ibar { flex-wrap: wrap; border-bottom: 0; }
.xt.is-narrow .xt-exmini { border-bottom: 1px solid var(--xt-border); }
.xt.is-narrow .xt-exmini { flex: 1 1 100%; order: -1; }
.xt.is-narrow .xt-ibar > .xt-btn { height: 34px; margin: 4px 0 0; }
.xt.is-narrow .xt-help { grid-template-columns: minmax(0, 1fr); }
.xt.is-narrow .xt-exstrip { grid-auto-columns: minmax(160px, 1fr); }
.xt.is-narrow .xt-nav { display: none; position: fixed; inset: 0 auto 0 0; width: min(300px, 88vw); z-index: 61; border-radius: 0; box-shadow: 8px 0 24px rgb(0 0 0 / .45); }
.xt.is-narrow .xt-nav.xt-open { display: flex; }
.xt.is-narrow .xt-navx { display: inline; }
.xt.is-narrow .xt-ni { height: 42px; font-size: 14px; }
.xt.is-narrow .xt-nf { padding: 6px 14px; font-size: 14px; }
.xt.is-narrow .xt-nf select, .xt.is-narrow .xt-nf input[type=text] { height: 36px; }
.xt.is-narrow .xt-det { position: fixed; inset: 0; z-index: 62; display: flex; flex-direction: column; overflow: auto; overscroll-behavior: contain; border-radius: 0; border: 0;
  transform: translateY(100%); visibility: hidden; transition: transform .22s cubic-bezier(.2, .8, .2, 1), visibility 0s .22s; padding-bottom: env(safe-area-inset-bottom, 0px); }
.xt.is-narrow .xt-det.xt-open { transform: none; visibility: visible; transition: transform .22s cubic-bezier(.2, .8, .2, 1); }
.xt.is-narrow .xt-dethandle, .xt.is-narrow .xt-dcol, .xt.is-narrow #xtFull { display: none !important; }
.xt.is-narrow .xt-dh { position: sticky; top: 0; z-index: 3; background: var(--xt-surface); padding-right: 56px; border-bottom: 1px solid var(--xt-border); margin-bottom: 12px; }
.xt.is-narrow .xt-dclose { display: grid !important; place-items: center; position: absolute; right: 12px; top: 12px; width: 38px; height: 38px; border: 1px solid var(--xt-border) !important; border-radius: var(--xt-r-md); color: var(--xt-text2); font-size: 20px; }
.xt.is-narrow .xt-tabs { gap: 0; }
.xt.is-narrow .xt-tabs button { flex: 1; justify-content: center; height: 44px; }
.xt.is-narrow :is(.xt-sw, .xt-seg) { height: 38px; }
.xt.is-narrow :is(.xt-sw, .xt-seg) button { height: 32px; }
.xt.is-narrow .xt-q input, .xt.is-narrow .xt-btn { height: 38px; }
.xt.is-narrow .xt-tbody { flex: none; overflow: visible; }
.xt.is-narrow .xt-chart { height: 280px; flex: none; }
.xt.is-narrow .xt-kpi { flex-basis: 30%; }
.xt-tbody > .xt-lt, .xt-tbody > .xt-why, .xt-tbody > .xt-note, .xt-tbody > .xt-fsum, .xt-tbody > .xt-flowh { flex: none; }
.xt.is-narrow .xt-lt { table-layout: auto; }
.xt.is-narrow .xt-lt td { height: 38px; font-size: 13px; }
.xt.is-narrow .xt-lad td:first-child { max-width: 140px; }
.xt.is-narrow .xt-almbtn span:not(.xt-cnt) { display: none; }
.xt.is-xs .xt-ohlc { display: none; }
.xt.is-xs .xt-big { font-size: 32px; }
.xt.is-xs .xt-card-kv { gap: 16px; }
.xt.is-xs .xt-card-kv dd { font-size: 15px; }

.xt.is-xs .xt-lad th:nth-child(2), .xt.is-xs .xt-lad td:nth-child(2) { display: none; }
.xt.is-xs .xt-exc-t small { display: none; }
.xt.is-xs .xt-exc { grid-template-columns: auto minmax(0, 1fr); }
.xt.is-xs .xt-exc-n { grid-column: 2; text-align: left; }
.xt.is-xs .xt-exc-n small { display: inline; margin-left: 4px; }
@media (max-width: 999px) {
  .xt-alm { inset: 0; top: 0; right: 0; width: 100%; max-height: none; border-radius: 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .xt-alm .xt-ph { height: 48px; }
  .xt-alm .xt-nf { padding: 6px 14px; font-size: 14px; }
  .xt-alm .xt-nf select, .xt-alm .xt-nf input[type=text] { height: 36px; }
  .xt-almh { padding: 10px 14px !important; font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .xt-livb::before { animation: none; }
  .xt-fl-up .xt-c-last, .xt-fl-dn .xt-c-last, .xt-mr.xt-fl-up .xt-mr-px, .xt-mr.xt-fl-dn .xt-mr-px { animation: none; }
  .xt.is-narrow .xt-det { transition: none; }
  .xt-itog svg, .xt-gt svg { transition: none; }
}
.xt.is-mid #xtLogMeta { display: none; }

/* takim armalari (app.js crest/fillTeamLogos): olay satirinda kucuk, detay basliginda buyuk */
.xt-tm { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.xt-tm > span { overflow: hidden; text-overflow: ellipsis; }
.xt-er .crest.xs, .xt-mev .crest.xs { width: 18px; height: 18px; }
.xt-dh-ev { display: flex; align-items: center; gap: 10px; }
.xt-dh-ev .xt-tm { gap: 8px; }
.xt-dh-ev .crest { width: 30px; height: 30px; font-size: 11px; }
@media (max-width: 1500px) { .xt:not(.is-narrow) :is(.xt-almbtn, .xt-sidebtn) span:not(.xt-cnt) { display: none; } }

/* tarayici v5: secim satiri grup basligiyla hizali, bos Saat/Etkinlik kolonu yok */
.xt-th.xt-c-h-sel, .xt-sr .xt-c-sel { padding-left: 30px; }
.xt-sr .xt-c-sel { display: flex; align-items: center; gap: 6px; text-overflow: clip; }
.xt-sr .xt-c-sel .xt-seln { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.xt-sr .xt-c-sel .xt-tag { margin-left: 0; flex: none; }
.xt-sr .xt-c-sel .xt-xs { margin-left: auto; flex: none; padding-left: 8px; }
.xt-sr .xt-c-sel .xt-xs .xt-exl { width: 16px; height: 16px; }
.xt-c-pwr { display: flex; align-items: center; justify-content: flex-end; }
.xt-c-best .xt-bb { color: var(--xt-text2); }
.xt-er { gap: 10px; }
.xt-er .xt-scb { margin-left: 2px; }
.xt-seln { display: inline-flex; align-items: baseline; gap: 5px; min-width: 0; }
.xt-seln-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-bottom: 3px; margin-bottom: -3px; }
.xt-seln-l { flex: none; color: var(--xt-text); font-weight: 600; }
.xt-sr .xt-c-sel .xt-seln { overflow: visible; }
/* oyun akisi: skorla oynayan tek borsa hareketi; satirda sessiz bir alt cizgiyle (ayrintisi ipucunda ve detay kartinda) */
.xt-seln.xt-flow .xt-seln-n { text-decoration: underline dotted var(--xt-muted); text-underline-offset: 3px; }
/* detay basligi: takim adlari kesilmez, gerekirse iki satira iner */
.xt-dh-ev { flex-wrap: wrap; row-gap: 4px; white-space: normal; padding-right: 40px; }
.xt-dh-ev .xt-tm > span { white-space: normal; }
/* borsa sekmeleri tasarsa sag kenarda solar (yarim kesik sekme gorunmesin) */
.xt-exmini.xt-ovf { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); padding-right: 24px; }
/* sinyal gunlugu: panel daraldikca kolonlar sadelesir (tur yalniz renkli kare, kaynak ve buro gizli) */
.xt-log { container-type: inline-size; container-name: xtlog; }
@container xtlog (max-width: 860px) {
  .xt-lhead, .xt-lr { grid-template-columns: 62px 16px minmax(0, 1.3fr) minmax(0, 1fr) 100px 70px 72px 0 0 !important; gap: 0 8px; }
  .xt-lhead > :nth-child(2) { visibility: hidden; }
  .xt-lr .xt-ty { font-size: 0; gap: 0; }
  .xt-lhead > :nth-child(n+8), .xt-lr > :nth-child(n+8) { visibility: hidden; }
}
@container xtlog (max-width: 600px) {
  .xt-lhead, .xt-lr { grid-template-columns: 0 16px minmax(0, 1.2fr) minmax(0, 1fr) 0 70px 70px 0 0 !important; }
  .xt-lhead > :nth-child(1), .xt-lr > :nth-child(1), .xt-lhead > :nth-child(5), .xt-lr > :nth-child(5) { visibility: hidden; }
}
.xt-er .xt-mn-long { display: none; }

/* v6: maç sayfasi baglantisi, kolon sozlugu, tarama penceresi, mobil filtre satiri */
.xt-mlink { margin-left: 10px; color: var(--xt-acc-t); font-size: 12px; text-decoration: none; white-space: nowrap; }
.xt-mlink:hover { text-decoration: underline; text-underline-offset: 3px; }
.xt-colhelp { margin: 0; padding: 10px 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 18px; border-bottom: 1px solid var(--xt-border); background: var(--xt-elev); flex: none; }
.xt-colhelp[hidden] { display: none; }
.xt-colhelp dt { font-size: 12px; font-weight: 600; color: var(--xt-text); }
.xt-colhelp dd { margin: 2px 0 0; font-size: 12px; line-height: 1.45; color: var(--xt-text2); }
.xt-pre { top: 110px; right: 150px; width: min(360px, calc(100vw - 32px)); }
.xt-pre .xt-psave { padding: 12px 14px 8px; }
.xt-pre .xt-pr { height: 34px; }
.xt-swrap { display: contents; }
.xt.is-narrow .xt-swrap { display: flex; gap: 6px; flex: 1 1 100%; order: 2; overflow-x: auto; scrollbar-width: none; }
.xt.is-narrow .xt-swrap .xt-sw { flex: none; order: 0; }
.xt.is-mid .xt-evl { display: none; }
@media (max-width: 1500px) { .xt:not(.is-narrow) .xt-prebtn span { display: none; } }
.xt.is-narrow .xt-prebtn span:not(.xt-cnt) { display: none; }
#xtColHelpT { white-space: nowrap; }
.xt.is-mid #xtColHelpT { display: none; }
.xt-lmode { margin-left: 10px; height: 30px; }
.xt-lmode button { height: 24px; }
/* Betfair emir defteri (Merdiven): back mavi, lay pembe; cubuk = basamak tutari */
.xt-ob { padding: 10px 14px 4px; }
.xt-obh { margin-bottom: 6px; }
.xt-obt { table-layout: fixed; }
.xt-obt th { text-align: center !important; padding: 0 6px !important; }
.xt-obt td { text-align: center; font-weight: 500; }
.xt-obt td.xt-obb, .xt-obt td.xt-obl { color: var(--xt-text2); font-weight: 400; position: relative; }
.xt-obt td.xt-obb i, .xt-obt td.xt-obl i { position: absolute; top: 5px; bottom: 5px; width: var(--w); opacity: .22; border-radius: 3px; }
.xt-obt td.xt-obb i { right: 4px; background: var(--xt-line); }
.xt-obt td.xt-obl i { left: 4px; background: var(--xt-neg); }
.xt-obt td.xt-obpb { background: color-mix(in srgb, var(--xt-line) 14%, transparent); }
.xt-obt td.xt-obpl { background: color-mix(in srgb, var(--xt-neg) 12%, transparent); }
.xt-obh .xt-mu { margin-left: 6px; }
.xt.is-xs .xt-lad th:last-child, .xt.is-xs .xt-lad td:last-child { display: none; }
