/* =====================================================================
   Hisse Analiz — tasarım sistemi (mobil-öncelikli, koyu/açık/otomatik)
   Katmanlar: tokenlar → sıfırlama → kabuk → bileşenler → ekranlar → masaüstü
   ===================================================================== */
:root {
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --r-s: 8px; --r-m: 12px; --r-l: 16px; --r-xl: 22px;
  --tap: 44px;
  --nav-h: 58px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --accent: #4c8dff; --accent-2: #2f6df0; --accent-fill: #2f6df0; --accent-ink: #fff; --accent-soft: rgba(76, 141, 255, .15);
}
:root, :root[data-theme="dark"] {
  --bg: #0b0e14; --surface: #12161f; --raised: #1a1f2b; --hover: #1e2433; --line: #232a3a; --line-2: #313a50;
  --text: #e8ebf2; --text-2: #b6bdd0; --muted: #8b94aa; --faint: #5f6880;
  --pos: #2dd4a0; --neg: #ff6b81; --warn: #f5b13d; --pos-bg: rgba(45, 212, 160, .14); --neg-bg: rgba(255, 107, 129, .14); --warn-bg: rgba(245, 177, 61, .14);
  --sc-s: 72%; --sc-l: 58%; --sc-t: 70%;               /* skor halkası/yazı doygunluk-parlaklık */
  --overlay: rgba(3, 5, 9, .66); --shadow: 0 12px 40px rgba(0, 0, 0, .5);
  --glass: rgba(11, 14, 20, .86);
}
:root[data-theme="light"] {
  --bg: #f2f4f9; --surface: #ffffff; --raised: #f5f7fb; --hover: #eef1f8; --line: #e2e7f0; --line-2: #cfd6e4;
  --text: #0e1526; --text-2: #3b455c; --muted: #5d6783; --faint: #7a849c;
  --accent: #1d4ed8; --accent-2: #1e40af; --accent-fill: #2563eb; --accent-soft: rgba(37, 99, 235, .1);
  --pos: #056a4a; --neg: #b8243f; --warn: #8f5a10; --pos-bg: rgba(5, 106, 74, .1); --neg-bg: rgba(184, 36, 63, .09); --warn-bg: rgba(143, 90, 16, .12);
  --sc-s: 68%; --sc-l: 44%; --sc-t: 26%;
  --overlay: rgba(14, 21, 38, .42); --shadow: 0 12px 40px rgba(20, 30, 60, .18);
  --glass: rgba(242, 244, 249, .88);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { height: 100%; margin: 0; overscroll-behavior: none; }
body {
  background: var(--bg); color: var(--text); font: 15px/1.4 var(--font);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent; font-variant-numeric: tabular-nums;
}
button, input, select, textarea { font: inherit; color: inherit; margin: 0; }
button { cursor: pointer; background: none; border: 0; padding: 0; touch-action: manipulation; }
a { color: var(--accent); text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { flex: none; display: block; }
.muted { color: var(--muted); } .pos { color: var(--pos); } .neg { color: var(--neg); } .warn { color: var(--warn); }
.num { font-variant-numeric: tabular-nums; }
.trunc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* ---------------- kabuk ---------------- */
#app { position: fixed; inset: 0; display: flex; flex-direction: column; background: var(--bg); overflow: hidden; }
.main { position: relative; flex: 1; min-height: 0; }
.stack { position: absolute; inset: 0; }
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; min-height: 0; }
.screen.off { visibility: hidden; pointer-events: none; }
.scroller { position: relative; flex: 1; min-height: 0; overflow-y: auto; overflow-anchor: none; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; scrollbar-width: thin; }
.scroller.hide-bar { scrollbar-width: none; } .scroller.hide-bar::-webkit-scrollbar { display: none; }

/* ---------------- alt gezinme (mobil) ---------------- */
.bnav {
  flex: none; display: flex; background: var(--glass); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border-top: 1px solid var(--line); padding: 0 calc(6px + var(--safe-r)) var(--safe-b) calc(6px + var(--safe-l)); z-index: 20;
}
.bnav button { flex: 1; height: var(--nav-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 11px; font-weight: 600; position: relative; transition: color .15s; }
.bnav button[aria-current="page"] { color: var(--accent); }
.bnav button[aria-current="page"]::before { content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 4px 4px; background: var(--accent); }
.bnav .bdg { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--accent-fill); color: var(--accent-ink); font-size: 10px; display: grid; place-items: center; }

/* ---------------- düğmeler / girdiler ---------------- */
.ibtn { position: relative; width: var(--tap); height: var(--tap); border-radius: 14px; display: grid; place-items: center; color: var(--text-2); background: var(--raised); border: 1px solid var(--line); flex: none; transition: background .15s, color .15s; }
.ibtn:active { background: var(--hover); }
.ibtn.on { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.ibtn.plain { background: none; border-color: transparent; }
.ibtn .bdg { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--accent-fill); color: var(--accent-ink); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.btn { height: var(--tap); padding: 0 18px; border-radius: 14px; font-weight: 650; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--raised); border: 1px solid var(--line); color: var(--text); transition: background .15s, opacity .15s; white-space: nowrap; }
.btn:active { background: var(--hover); }
.btn.primary { background: var(--accent-fill); border-color: transparent; color: var(--accent-ink); }
.btn.primary:active { background: var(--accent-2); }
.btn.danger { color: var(--neg); }
.btn.ghost { background: none; border-color: transparent; color: var(--accent); }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.input, .select {
  width: 100%; height: var(--tap); border-radius: 12px; border: 1px solid var(--line-2); background: var(--raised); color: var(--text);
  padding: 0 14px; font-size: 16px;               /* 16px: iOS odaklanınca yakınlaştırmaz */
  appearance: none; -webkit-appearance: none;
}
.input:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238b94aa' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 34px; }
.seg { display: flex; background: var(--raised); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 2px; }
.seg button { flex: 1; height: 44px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--muted); }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }

/* ---------------- çipler ---------------- */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 5px 12px; scroll-padding: 0 12px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip { position: relative; flex: none; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); font-weight: 600; font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; scroll-snap-align: start; transition: background .15s, color .15s, border-color .15s; }
.chip[aria-pressed="true"], .chip.on { background: var(--accent-fill); border-color: transparent; color: var(--accent-ink); }
.chip::after, .lmeta button::after { content: ""; position: absolute; inset: -5px -3px; }   /* görsel boyut küçük, dokunma alanı ≥ 44px (kenarlık 1px dahil) */
.chip.tag { height: 36px; background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.chip.tag .ic { opacity: .8; }
.pill { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: var(--raised); color: var(--text-2); white-space: nowrap; }
.pill.pos { background: var(--pos-bg); color: var(--pos); } .pill.neg { background: var(--neg-bg); color: var(--neg); } .pill.warn { background: var(--warn-bg); color: var(--warn); } .pill.acc { background: var(--accent-soft); color: var(--accent); }

/* ---------------- logo + skor halkası ---------------- */
.logo { position: relative; flex: none; width: 40px; height: 40px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; color: #fff; font-weight: 750; font-size: 14px; letter-spacing: .02em; text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 4px; border-radius: inherit; opacity: 0; transition: opacity .2s; }
.logo img.ok { opacity: 1; }
.logo.lg { width: 56px; height: 56px; border-radius: 16px; font-size: 19px; }
.ring { --h: 60; position: relative; flex: none; width: 46px; height: 46px; display: grid; place-items: center; }
.ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring .trk { stroke: var(--line); }
.ring .val { stroke: hsl(var(--h) var(--sc-s) var(--sc-l)); transition: stroke-dashoffset .5s var(--ease); }
.ring b.t3 { font-size: 12.5px; letter-spacing: -.04em; }
.ring b { font-size: 15px; font-weight: 750; color: hsl(var(--h) var(--sc-s) var(--sc-t)); letter-spacing: -.01em; }
.ring .g { position: absolute; right: -4px; bottom: -3px; min-width: 17px; height: 17px; padding: 0 3px; border-radius: 6px; font-size: 10.5px; font-weight: 800; display: grid; place-items: center; background: hsl(var(--h) var(--sc-s) var(--sc-l)); color: #fff; box-shadow: 0 0 0 2px var(--surface); }
.ring.na b { color: var(--faint); font-weight: 600; }
.ring.lg { width: 92px; height: 92px; } .ring.lg b { font-size: 30px; } .ring.lg .g { min-width: 26px; height: 26px; font-size: 14px; border-radius: 9px; right: -2px; bottom: 0; }
.ring.sm { width: 34px; height: 34px; } .ring.sm b { font-size: 12.5px; } .ring.sm .g { display: none; }

/* ---------------- iskelet / yükleniyor ---------------- */
.skel { background: linear-gradient(90deg, var(--raised) 25%, var(--hover) 37%, var(--raised) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--accent); animation: rot .8s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
.empty { display: grid; place-items: center; text-align: center; gap: 8px; padding: 48px 24px; color: var(--muted); }
.empty h3 { margin: 0; color: var(--text); font-size: 17px; }
.empty .ic { color: var(--faint); }

/* ---------------- toast ---------------- */
.toasts { position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + var(--safe-b) + 14px); z-index: 90; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { pointer-events: auto; max-width: 440px; background: var(--text); color: var(--bg); padding: 11px 16px; border-radius: 14px; font-weight: 600; font-size: 14px; box-shadow: var(--shadow); display: flex; gap: 14px; align-items: center; animation: toastIn .28s var(--ease); }
.toast button { color: var(--accent-2); font-weight: 750; }
:root[data-theme="dark"] .toast button { color: #2f6df0; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(.96); } }

/* ---------------- sheet / diyalog ---------------- */
.ov { position: fixed; inset: 0; z-index: 60; background: var(--overlay); display: flex; flex-direction: column; justify-content: flex-end; animation: fade .2s ease; }
.ov.center { justify-content: center; align-items: center; padding: 20px; }
@keyframes fade { from { opacity: 0; } }
.sheet { background: var(--surface); border-radius: var(--r-xl) var(--r-xl) 0 0; max-height: 92vh; max-height: min(92dvh, 100% - var(--safe-t) - 12px); display: flex; flex-direction: column; box-shadow: var(--shadow); animation: sheetUp .3s var(--ease); padding-bottom: var(--safe-b); will-change: transform; width: 100%; }
.sheet.tall { height: 92vh; height: min(92dvh, 100% - var(--safe-t) - 12px); }
@keyframes sheetUp { from { transform: translateY(100%); } }
.sheet .grab { flex: none; padding: 9px 0 3px; touch-action: none; cursor: grab; }
.sheet .grab::after { content: ""; display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 0 auto; }
.sheet-h { flex: none; display: flex; align-items: center; gap: 8px; padding: 6px 8px 8px 20px; touch-action: none; }
.sheet-h h2 { flex: 1; margin: 0; font-size: 18px; font-weight: 750; letter-spacing: -.01em; }
.sheet-b { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 20px 18px; -webkit-overflow-scrolling: touch; }
.sheet-f { flex: none; display: flex; gap: 10px; padding: 12px 20px 14px; border-top: 1px solid var(--line); }
.sheet-f .btn { flex: 1; }
.dialog { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; width: min(420px, 100%); padding: 22px; box-shadow: var(--shadow); animation: pop .22s var(--ease); }
@keyframes pop { from { opacity: 0; transform: scale(.94); } }
.dialog h2 { margin: 0 0 6px; font-size: 18px; } .dialog p { margin: 0 0 16px; color: var(--text-2); white-space: pre-line; }
.dialog .row { display: flex; gap: 10px; margin-top: 18px; } .dialog .row .btn { flex: 1; }

/* satır listesi (sheet içi seçim listeleri) */
.list { display: flex; flex-direction: column; }
.list > .it { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 4px; border-bottom: 1px solid var(--line); text-align: left; width: 100%; }
.list > .it:last-child { border-bottom: 0; }
.list > .it .grow { flex: 1; min-width: 0; }
.list > .it small { display: block; color: var(--muted); font-size: 12px; }
.list > .it[aria-checked="true"] { color: var(--accent); font-weight: 650; }
.grp-h { position: sticky; top: 0; z-index: 1; background: var(--surface); padding: 14px 4px 6px; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 750; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ---------------- hisse kartı ---------------- */
.card { height: 124px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 12px 14px; display: flex; flex-direction: column; justify-content: space-between; cursor: pointer; contain: layout paint style; transition: background .12s, border-color .12s; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.card:active { background: var(--hover); }
.card-hit { position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.card-hit:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: inherit; }
.card-top { display: flex; align-items: center; gap: 12px; }
.card-id { flex: 1; min-width: 0; }
.sym { font-weight: 750; font-size: 16px; letter-spacing: -.01em; display: flex; align-items: center; gap: 5px; }
.fav-i { color: var(--warn); }
.name { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.card-px { text-align: right; flex: none; min-width: 66px; }
.px { font-weight: 650; font-size: 15px; }
.chg { font-size: 12.5px; font-weight: 600; margin-top: 1px; }
.card-metrics { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 6px; padding-top: 9px; border-top: 1px solid var(--line); }
.m { min-width: 0; }
.m-l { font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.m-v { font-size: 14px; font-weight: 650; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-v .pill { height: 20px; font-size: 11px; padding: 0 7px; }
.faint { color: var(--faint); }

/* ---------------- liste ekranı ---------------- */
.lhead { position: sticky; top: 0; z-index: 8; background: var(--glass); backdrop-filter: saturate(1.5) blur(16px); -webkit-backdrop-filter: saturate(1.5) blur(16px); padding: calc(10px + var(--safe-t)) 0 8px; transition: transform .28s var(--ease); border-bottom: 1px solid transparent; }
.lhead.hide { transform: translateY(-100%); }
.lhead.shadow { border-bottom-color: var(--line); }
.sbar { display: flex; gap: 8px; padding: 0 12px 8px; }
.search { position: relative; flex: 1; min-width: 0; }
.search .ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input { width: 100%; height: var(--tap); border-radius: 14px; border: 1px solid var(--line); background: var(--raised); padding: 0 12px 0 40px; font-size: 16px; color: var(--text); -webkit-appearance: none; appearance: none; }
.search input::placeholder { color: var(--muted); }
.search input:not(:placeholder-shown) { padding-right: 42px; }   /* yazı varken temizle düğmesine yer aç */
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search .clr { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; color: var(--muted); }
.lmeta { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 14px 2px; font-size: 12px; color: var(--muted); }
.lmeta button { position: relative; color: var(--accent); font-weight: 650; font-size: 12px; min-height: 32px; padding: 0 4px; }
.lmeta button::after { inset: -6px -4px; }
.vlist { position: relative; padding: 4px 12px 16px; }
.vinner { position: relative; }
.vgrid { display: grid; gap: 0 var(--gap, 8px); }
.vrow { height: 132px; }
.vrow > .card { height: 124px; }
.sk-list { padding: 8px 12px; display: grid; gap: 8px; } .sk-card { height: 124px; border-radius: 16px; }
.count-pill { font-variant-numeric: tabular-nums; }

/* ---------------- filtre sayfası ---------------- */
.fstack { display: flex; flex-direction: column; gap: 14px; }
.toggle-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; border-radius: 14px; background: var(--raised); border: 1px solid var(--line); }
.toggle-row .grow { flex: 1; } .toggle-row small { display: block; color: var(--muted); }
.sw { width: 46px; height: 28px; border-radius: 14px; background: var(--line-2); position: relative; transition: background .2s; flex: none; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.sw.on { background: var(--accent); } .sw.on::after { transform: translateX(18px); }
.nrow { border: 1px solid var(--line); background: var(--raised); border-radius: 14px; padding: 10px 12px 12px; }
.nrow-h { display: flex; align-items: center; gap: 8px; } .nrow-h b { flex: 1; font-size: 14px; }
.nrow-i { display: flex; align-items: center; gap: 10px; margin-top: 6px; } .nrow-i .input { height: 42px; background: var(--surface); }

/* ---------------- detay sayfası ---------------- */
.page { position: fixed; inset: 0; z-index: 40; background: var(--bg); display: flex; flex-direction: column; animation: pageIn .3s var(--ease); }
@keyframes pageIn { from { transform: translateX(28px); opacity: 0; } }
.phead { flex: none; display: flex; align-items: center; gap: 2px; padding: calc(6px + var(--safe-t)) 8px 6px calc(6px + var(--safe-l)); background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.ptitle { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 0 6px; line-height: 1.2; } .ptitle b { font-size: 17px; } .ptitle small { color: var(--muted); font-size: 12px; }
.ibtn.plain[disabled] { opacity: .3; pointer-events: none; }
.ibtn.on-star { color: var(--warn); }
.nav-ar { width: 38px; }
.ptabs { flex: none; padding-top: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line); background: var(--bg); }
.ptabs .chip { height: 30px; font-size: 13px; }
.pbody { padding-bottom: calc(24px + var(--safe-b)); }
.hero { padding: 16px 16px 8px; }
.hero-id { display: flex; align-items: center; gap: 14px; } .hero-id .grow { min-width: 0; flex: 1; }
.hero h1 { margin: 0; font-size: 21px; line-height: 1.2; letter-spacing: -.02em; }
.hero-sub { color: var(--text-2); font-weight: 600; font-size: 13.5px; margin-top: 2px; } .hero-sub2 { color: var(--muted); font-size: 12.5px; }
.hero-px { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 14px; }
.hero-px .big { font-size: 30px; font-weight: 750; letter-spacing: -.02em; } .chg-big { font-size: 15px; font-weight: 700; }
.tagrow { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.scorebox { display: flex; gap: 16px; align-items: center; margin-top: 16px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); }
.sb-ring { position: relative; flex: none; } .sb-ring .nr { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; color: var(--faint); font-size: 20px; }
.sb-t { font-weight: 750; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); } .sb-d { margin-top: 4px; font-size: 14px; color: var(--text-2); } .sb-d b { color: var(--text); }
.sb-m { margin-top: 6px; font-size: 12px; color: var(--muted); }
.bars { margin-top: 14px; display: flex; flex-direction: column; gap: 9px; padding: 0 2px; }
.bar-row { display: grid; grid-template-columns: 88px 1fr 28px 40px; align-items: center; gap: 10px; font-size: 13.5px; }
.bar-row .bl { color: var(--text-2); font-weight: 550; } .bt { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; } .bf { display: block; height: 100%; border-radius: 4px; }
.bar-row b { text-align: right; font-weight: 750; } .bd { font-size: 12px; text-align: right; font-weight: 650; }
.drivers { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 12px; font-size: 12.5px; }
.note { display: flex; gap: 10px; margin-top: 12px; padding: 12px 14px; border-radius: 14px; font-size: 13.5px; } .note ul { margin: 0; padding-left: 16px; } .note .ic { margin-top: 1px; }
.note.neg-n { background: var(--neg-bg); color: var(--neg); } .note.warn-n { background: var(--warn-bg); color: var(--text-2); } .note.warn-n .ic { color: var(--warn); }
.dsec { padding: 18px 16px 6px; } .dsec-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; } .dsec-h h2 { margin: 0; font-size: 15.5px; letter-spacing: -.01em; } .dsec-h small { color: var(--muted); font-size: 12px; }
.hl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.hl { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; min-width: 0; } .hl-l { font-size: 11.5px; color: var(--muted); } .hl-v { font-size: 17px; font-weight: 700; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hl-v.pos { color: var(--pos); } .hl-v.neg { color: var(--neg); }
.tbl-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); -webkit-overflow-scrolling: touch; }
table.fwd { width: 100%; border-collapse: collapse; font-size: 13.5px; } table.fwd th, table.fwd td { padding: 9px 12px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line); } table.fwd tr:last-child th, table.fwd tr:last-child td { border-bottom: 0; }
table.fwd thead th { color: var(--muted); font-weight: 600; font-size: 12px; } table.fwd tbody th { text-align: left; color: var(--text-2); font-weight: 600; position: sticky; left: 0; background: var(--surface); }
.fine { font-size: 12px; margin: 8px 2px 0; } .disclaimer { padding: 8px 20px 0; text-align: center; }
/* Mali yıl (FY) bloğu + tablo/karşılaştırma işaretleri: A/E sade; T (türetilmiş, analist verisi değil) italik + kesikli çizgi + "T"; ? (belirsiz) uyarı rengi. Renge ek olarak metin/işaret var (renk körlüğü). */
table.fwd.fy thead th { vertical-align: bottom; } .fy-y { display: block; color: var(--text-2); font-weight: 650; }
.fy-b { display: inline-block; margin-top: 3px; padding: 1px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 700; background: var(--raised); color: var(--text-2); }
.fy-b.fy-e { background: var(--accent-soft); color: var(--accent); } .fy-b.fy-t { background: transparent; color: var(--warn); border: 1px dashed var(--warn); }
.fy-b.fy-u { background: var(--warn-bg); color: var(--warn); } .fy-b.fy-n { opacity: .65; }
td.fy-t, .cv.fy-t { font-style: italic; text-decoration: underline dashed; text-decoration-color: var(--warn); text-underline-offset: 3px; }
td.fy-u, .cv.fy-u { color: var(--warn); } td.fy-na { color: var(--faint); }
.fy-m { margin-left: 2px; font-size: 9.5px; font-weight: 800; font-style: normal; color: var(--warn); } .fy-warn { color: var(--warn); }
.eng { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-bottom: 12px; } .eng-i { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.expl { margin-top: 12px; font-size: 13px; color: var(--text-2); } .expl p { margin: 4px 0 12px; line-height: 1.5; }
.acc { border: 1px solid var(--line); background: var(--surface); border-radius: 14px; margin-bottom: 8px; overflow: hidden; }
.acc-h { width: 100%; display: flex; align-items: center; gap: 8px; padding: 13px 14px; font-weight: 650; font-size: 14.5px; text-align: left; } .acc-h span { flex: 1; } .acc-h small { color: var(--muted); font-weight: 500; }
.acc-b { padding: 0 14px 6px; }
.mrow { display: grid; grid-template-columns: minmax(0, 1fr) 70px auto; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; cursor: pointer; }
.mrow .ml { color: var(--text-2); } .mrow .mv { font-weight: 650; text-align: right; } .mrow .mv.pos { color: var(--pos); } .mrow .mv.neg { color: var(--neg); }
.mp { position: relative; height: 4px; border-radius: 2px; background: var(--line); } .mp span { position: absolute; top: -3px; width: 10px; height: 10px; margin-left: -3px; border-radius: 50%; background: var(--accent); }
.mtip { grid-column: 1 / -1; font-size: 12px; color: var(--muted); line-height: 1.45; }
.actions { display: flex; gap: 10px; padding: 16px 16px 0; flex-wrap: wrap; } .actions .btn { flex: 1; min-width: 150px; }

/* ---------------- tarama / daha ---------------- */
.phdr { padding: calc(18px + var(--safe-t)) 16px 8px; } .phdr h1 { margin: 0; font-size: 28px; letter-spacing: -.03em; } .phdr p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.phdr.sm { padding: 18px 16px 8px; } .phdr h2 { margin: 0; font-size: 14px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.presets { display: flex; flex-direction: column; gap: 8px; padding: 8px 12px; }
.preset { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; transition: background .12s; }
.preset:active { background: var(--hover); } .preset[disabled] { opacity: .5; pointer-events: none; }
.preset .pi { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.preset .pt { flex: 1; min-width: 0; } .preset .pt b { display: block; font-size: 15.5px; } .preset .pt small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; line-height: 1.35; }
.preset .pn { flex: none; text-align: right; } .preset .pn b { display: block; font-size: 18px; } .preset .pn small { color: var(--muted); font-size: 11.5px; }
.chips.wrap { flex-wrap: wrap; overflow: visible; padding: 0 12px; } .chip small { color: var(--muted); font-weight: 500; } .chip[aria-pressed="true"] small, .chip.on small { color: inherit; opacity: .92; }
.sgrp { margin-top: 14px; } .sgrp h2 { margin: 0; padding: 8px 16px; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.srow { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--line); color: var(--text); min-height: 60px; }
.sgrp > .srow:first-of-type, .sgrp > h2 + .srow { border-top: 1px solid var(--line); }
.srow:active { background: var(--hover); } .srow .si { flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--raised); color: var(--text-2); }
.srow .grow { flex: 1; min-width: 0; } .srow b { display: block; font-weight: 650; font-size: 15px; } .srow small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 1px; } .srow.danger b { color: var(--neg); }
.srow > .ic:last-child { color: var(--faint); }
.fresh { padding: 8px 16px 12px; display: flex; flex-direction: column; gap: 8px; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14px; }
.fresh > div { display: flex; align-items: center; gap: 8px; color: var(--text-2); } .fresh .ic { color: var(--pos); } .fresh .warn, .fresh .warn .ic { color: var(--warn); }
.desk-only { display: none; }

/* ---------------- portföy ---------------- */
.phdr.row { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; }
.psum { margin: 12px; padding: 18px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.psum-main small { color: var(--muted); font-size: 12.5px; } .psum-main b { display: block; font-size: 34px; letter-spacing: -.03em; font-weight: 780; margin-top: 2px; }
.psum-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.psum-grid small { display: block; font-size: 11.5px; color: var(--muted); } .psum-grid b { display: block; font-size: 15.5px; margin: 2px 0; }
.sbar2 { margin-top: 16px; } .sb-line { display: flex; height: 8px; border-radius: 4px; overflow: hidden; gap: 2px; } .sb-line span { min-width: 3px; }
.sb-leg { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font-size: 11.5px; color: var(--text-2); } .sb-leg i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.pf-actions { display: flex; gap: 10px; padding: 0 12px 10px; } .pf-actions .btn { flex: 1; }
.poslist { display: flex; flex-direction: column; gap: 8px; padding: 8px 12px; }
.hold { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; cursor: pointer; content-visibility: auto; contain-intrinsic-size: auto 132px; }
.hold-hit { position: absolute; inset: 0; border-radius: inherit; z-index: 0; } .hold-top .ibtn { position: relative; z-index: 1; width: 44px; height: 44px; margin: -6px -10px -6px 0; }
.hold:active { background: var(--hover); } .hold-top { display: flex; align-items: center; gap: 12px; } .hold-top .grow { flex: 1; min-width: 0; }
.pos-val { text-align: right; } .pos-val b { display: block; font-size: 16px; } .pos-val small { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.pos-bar { height: 4px; border-radius: 2px; background: var(--line); margin: 10px 0 8px; overflow: hidden; } .pos-bar span { display: block; height: 100%; background: var(--accent); border-radius: 2px; }
.hold-m { display: grid; grid-template-columns: 1fr 1.25fr 1.1fr 40px; gap: 6px; align-items: start; } .hold-m small { display: block; font-size: 10.5px; color: var(--muted); } .hold-m b { display: block; font-size: 13.5px; margin-top: 1px; white-space: nowrap; } .hold-m .hm-s { display: grid; place-items: center; align-self: center; }
.sugg { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-top: 6px; }
.sugg button { display: flex; gap: 10px; align-items: baseline; padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); background: var(--surface); } .sugg button:last-child { border-bottom: 0; } .sugg button span { flex: 1; min-width: 0; font-size: 13px; }
.prose { font-size: 14.5px; line-height: 1.55; color: var(--text-2); } .prose h3 { margin: 18px 0 6px; font-size: 14px; color: var(--text); } .prose p { margin: 8px 0; } .prose ul { margin: 6px 0; padding-left: 20px; } .prose li { margin: 5px 0; } .prose b { color: var(--text); } .prose code { background: var(--raised); padding: 1px 5px; border-radius: 5px; font-size: 12.5px; }

/* ---------------- karşılaştırma ---------------- */
.cmp-wrap { overflow-x: auto; overflow-y: auto; }
.cmp { padding-bottom: calc(24px + var(--safe-b)); }
.cmp-head, .cmp-r { display: grid; grid-template-columns: var(--cols); align-items: center; }
.cmp-head { position: sticky; top: 0; z-index: 4; background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.ch { position: relative; padding: 10px 6px; text-align: center; } .chb { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; } .chb b { font-size: 14px; } .chb small { max-width: 100%; color: var(--muted); font-size: 11px; }
.chx { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); background: var(--raised); }
.cmp-g { position: sticky; left: 0; width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; font-weight: 700; font-size: 13px; background: var(--raised); border-bottom: 1px solid var(--line); color: var(--text-2); letter-spacing: .02em; }
.cmp-r { border-bottom: 1px solid var(--line); min-height: 44px; font-size: 13.5px; }
.cl { position: sticky; left: 0; z-index: 2; padding: 10px 14px; color: var(--text-2); background: var(--bg); font-size: 12.5px; border-right: 1px solid var(--line); height: 100%; display: flex; align-items: center; }
.cv { padding: 10px 6px; text-align: center; font-weight: 650; } .cv.pos { color: var(--pos); } .cv.neg { color: var(--neg); }
.cbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + var(--safe-b) + 12px); z-index: 30; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; background: var(--text); color: var(--bg); border-radius: 18px; box-shadow: var(--shadow); font-size: 14px; white-space: nowrap; animation: toastIn .25s var(--ease); }
.cbar .btn { background: var(--bg); color: var(--text); border: 0; } .cbar .btn.primary { background: var(--accent); color: #fff; }
.note-line { display: flex; gap: 6px; align-items: flex-start; padding: 0 16px; } .note-line .ic { margin-top: 2px; }

/* =====================================================================
   MASAÜSTÜ / TABLET-YATAY (≥ 900px): üst çubuk, tablo, çekmece detay, ortalanmış diyaloglar
   ===================================================================== */
.topbar { flex: none; height: 58px; display: flex; align-items: center; gap: 22px; padding: 0 20px; background: var(--surface); border-bottom: 1px solid var(--line); z-index: 30; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; font-size: 16px; }
.brand-mark { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 800; background: linear-gradient(135deg, var(--accent), #1d4ed8); box-shadow: 0 4px 14px rgba(37, 99, 235, .4); }
.tnav { display: flex; gap: 4px; }
.tnav button { height: 36px; padding: 0 14px; border-radius: 10px; font-weight: 650; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.tnav button:hover { background: var(--hover); color: var(--text); } .tnav button[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.tsearch { position: relative; flex: 0 1 380px; margin-left: auto; } .tsearch .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.tsearch input { width: 100%; height: 38px; border-radius: 11px; border: 1px solid var(--line); background: var(--raised); padding: 0 34px 0 38px; font-size: 14px; color: var(--text); }
.tsearch input::-webkit-search-cancel-button, .search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }   /* yerel ✕ <kbd> ile çakışıyordu; kendi düğmemiz var */
.tsearch .clr { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; display: grid; place-items: center; color: var(--muted); border-radius: 8px; }
.tsearch .clr:hover { color: var(--text); background: var(--raised-2, var(--line)); }
.tsearch input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); } .tsearch kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font: 11px var(--mono); color: var(--muted); border: 1px solid var(--line-2); border-radius: 5px; padding: 1px 6px; }
.tright { display: flex; gap: 6px; } .tright .ibtn { width: 38px; height: 38px; border-radius: 11px; }

.tscreen { background: var(--bg); }
.tbar { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 20px 8px; }
.tbar .grow { flex: 1; }
.tsel { height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); padding: 0 28px 0 12px; font-size: 13.5px; font-weight: 600; max-width: 220px; appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238b94aa' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; }
.tsel.strong { color: var(--text); font-weight: 700; } .tsel.on { color: var(--accent); border-color: var(--accent); background-color: var(--accent-soft); } .tsel:hover { border-color: var(--line-2); }
.tbtn { height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); font-size: 13.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 7px; }
.tbtn:hover { background: var(--hover); color: var(--text); } .tbtn.on, .tbtn[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.tbtn .cnt { background: var(--accent); color: #fff; border-radius: 9px; min-width: 18px; height: 18px; font-size: 11px; display: inline-grid; place-items: center; padding: 0 5px; }
.vmenu-w { position: relative; } .vmenu { position: absolute; top: 42px; left: 0; z-index: 40; min-width: 240px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow); padding: 6px; }
.vm-it { display: flex; align-items: center; } .vm-it .grow { flex: 1; text-align: left; padding: 9px 10px; border-radius: 9px; font-weight: 600; } .vm-it .grow:hover { background: var(--hover); }
.vm-empty { padding: 10px; color: var(--muted); font-size: 13px; } .vm-add { width: 100%; text-align: left; padding: 10px; border-top: 1px solid var(--line); margin-top: 4px; color: var(--accent); font-weight: 650; }
.kpis { flex: none; display: flex; gap: 0; padding: 0 20px 10px; overflow-x: auto; scrollbar-width: none; }
.kpi { padding: 4px 22px 4px 0; margin-right: 22px; border-right: 1px solid var(--line); white-space: nowrap; } .kpi:last-child { border-right: 0; }
.kpi small { display: block; color: var(--muted); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; font-weight: 650; } .kpi b { font-size: 19px; letter-spacing: -.01em; }
.tchips { flex: none; display: flex; gap: 6px; padding: 0 20px 8px; flex-wrap: wrap; }
.tbody-wrap { flex: 1; min-height: 0; display: flex; position: relative; border-top: 1px solid var(--line); }
.tscroll { flex: 1; min-width: 0; overflow: auto; position: relative; overscroll-behavior: contain; scrollbar-width: thin; }

table.grid { border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
table.grid th, table.grid td { padding: 0 12px; border-bottom: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
table.grid thead th { position: sticky; z-index: 3; background: var(--surface); }
table.grid .grp-row th { top: 0; height: 28px; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 750; text-align: left; border-bottom: 2px solid var(--line-2); }
table.grid .col-row th { top: 28px; height: 42px; padding: 0; text-align: right; font-weight: 650; color: var(--text-2); }
table.grid .col-row th.l { text-align: left; } table.grid .col-row th.sorted { color: var(--accent); }
.th-b { position: relative; width: 100%; height: 100%; padding: 0 14px 0 12px; display: flex; align-items: center; justify-content: flex-end; gap: 4px; font-weight: inherit; color: inherit; text-align: right; }
th.l .th-b { justify-content: flex-start; } .srt { font-style: normal; font-size: 9px; opacity: .9; flex: none; }
.rz { position: absolute; right: 0; top: 0; bottom: 0; width: 8px; cursor: col-resize; z-index: 2; } .rz:hover { background: linear-gradient(90deg, transparent 3px, var(--accent) 3px, var(--accent) 5px, transparent 5px); }
table.grid .frz, table.grid td.c-sym { position: sticky; left: 0; z-index: 2; background: var(--bg); } table.grid thead .frz { z-index: 5; background: var(--surface); }
table.grid td.c-sym { padding: 0 8px 0 10px; border-right: 1px solid var(--line); display: table-cell; } table.grid td.c-sym > * { vertical-align: middle; }
table.grid tbody tr { cursor: pointer; } table.grid tbody tr:hover td { background: var(--hover); } table.grid tbody tr:hover td.c-sym { background: var(--hover); }
table.grid tbody tr.sel td { background: var(--accent-soft); } table.grid tbody tr.cur td { background: var(--accent-soft); } table.grid tbody tr:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
table.grid td.num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 550; } table.grid td.pos { color: var(--pos); } table.grid td.neg { color: var(--neg); }
table.grid td.heat { background-image: linear-gradient(transparent, transparent); } table.grid td.txt { color: var(--text-2); } table.grid td.c-na { text-align: right; color: var(--faint); } table.grid td.c-na.l { text-align: left; } table.grid td.c-sc { text-align: right; }
table.grid tr.pad td { padding: 0; border: 0; height: inherit; }
.c-sym { display: flex; align-items: center; } .c-sym .logo { width: 30px; height: 30px; border-radius: 9px; font-size: 11px; margin: 0 10px 0 4px; display: inline-grid; } .c-sym .sy { display: inline-flex; flex-direction: column; line-height: 1.15; min-width: 0; vertical-align: middle; } .c-sym .sy b { font-size: 13.5px; } .c-sym .sy small { color: var(--muted); font-size: 11px; max-width: 110px; }
.chk { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line-2); vertical-align: middle; opacity: 0; transition: opacity .1s; cursor: pointer; color: #fff; }
tr:hover .chk, .chk.on { opacity: 1; } .chk.on { background: var(--accent); border-color: var(--accent); }
.sbadge { --h: 60; display: inline-grid; place-items: center; min-width: 34px; height: 24px; padding: 0 8px; border-radius: 8px; font-weight: 750; background: hsl(var(--h) 70% 50% / .2); color: hsl(var(--h) var(--sc-s) var(--sc-t)); }
:root[data-density="compact"] table.grid { font-size: 12.5px; } :root[data-density="compact"] .c-sym .sy small { display: none; } :root[data-density="compact"] .c-sym .logo { width: 22px; height: 22px; font-size: 9px; }

.cpanel { width: 360px; flex: none; border-left: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; z-index: 6; }
.cp-h { display: flex; align-items: center; gap: 10px; padding: 12px 8px 12px 16px; border-bottom: 1px solid var(--line); } .cp-h b { flex: 1; font-size: 15px; }
.cp-b { flex: 1; overflow-y: auto; padding: 8px 12px; } .cp-f { padding: 10px 16px; border-top: 1px solid var(--line); }
.cp-it { display: flex; align-items: center; gap: 8px; padding: 6px 4px; border-bottom: 1px solid var(--line); font-size: 13.5px; } .cp-it .grow { flex: 1; min-width: 0; } .cp-it small { display: block; color: var(--muted); font-size: 11px; }
.ibtn.sm { width: 28px; height: 28px; border-radius: 8px; }
.cp-g { margin: 12px 0 4px; font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cp-add { width: 100%; display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; text-align: left; font-size: 13.5px; color: var(--text-2); } .cp-add:hover { background: var(--hover); color: var(--text); }

@media (min-width: 900px) {
  :root { --nav-h: 0px; }
  .bnav { display: none; }
  .desk-only { display: flex; }
  /* sheet -> ortalanmış diyalog */
  .ov { justify-content: center; align-items: center; padding: 24px; }
  .sheet { border-radius: 22px; width: min(560px, 100%); max-height: min(86vh, 760px); animation: pop .22s var(--ease); padding-bottom: 0; }
  .sheet.tall { height: auto; max-height: min(86vh, 760px); }
  .sheet .grab { display: none; } .sheet-h { padding-top: 14px; }
  /* detay: sağdan çekmece */
  .page { top: 58px; left: auto; width: min(600px, 100vw); border-left: 1px solid var(--line); box-shadow: -18px 0 50px rgba(0, 0, 0, .35); animation: drawerIn .28s var(--ease); }
  @keyframes drawerIn { from { transform: translateX(40px); opacity: 0; } }
  .page.wide { width: min(1180px, calc(100vw - 40px)); }
  .phead { padding-top: 6px; }
  .toasts { bottom: 24px; } .cbar { bottom: 24px; }
  /* ekranlar */
  .presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); padding: 8px 20px; gap: 12px; }
  .phdr, .phdr.sm { padding-left: 20px; padding-right: 20px; padding-top: 22px; } .chips.wrap, .chips { padding-left: 20px; padding-right: 20px; }
  .poslist { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); padding: 8px 20px; gap: 12px; }
  .psum { margin: 12px 20px; } .pf-actions { padding: 0 20px 12px; max-width: 520px; } .note-line { padding: 0 20px; }
  .daha-s .scroller > * { max-width: 680px; margin-left: auto; margin-right: auto; }
  .tarama-s .phdr { max-width: none; }
  .vlist { padding-left: 20px; padding-right: 20px; }
  .hl-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1400px) { .poslist { grid-template-columns: repeat(3, 1fr); } }

/* ---------------- portföy analizi (js/pa/core.mjs çıktısı) ---------------- */
.pa-scroll { padding-bottom: calc(30px + var(--safe-b)); }
.pa-nav { position: sticky; top: 0; z-index: 5; display: flex; gap: 8px; overflow-x: auto; padding: 10px 12px; background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); scrollbar-width: none; }
.pa-nav::-webkit-scrollbar { display: none; }
.pa-nav-b { flex: none; height: 32px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); font-size: 13px; font-weight: 600; }
.pa-sec-box { padding: 20px 16px; border-bottom: 1px solid var(--line); scroll-margin-top: 60px; }
.pa-h { margin: 0 0 6px; font-size: 17px; letter-spacing: -.01em; } .pa-h4 { margin: 18px 0 8px; font-size: 13px; color: var(--text); }
.pa-crit { margin: 0 0 12px; font-size: 12.5px; line-height: 1.6; color: var(--muted); } .pa-crit b, .pa-note b, .pa-warn b, .pa-caveat b { color: var(--text-2); }
.pa-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(138px, 1fr)); gap: 8px; margin-bottom: 10px; }
.pa-kv { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.pa-kv-l { display: block; font-size: 10.5px; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; font-weight: 650; } .pa-kv-v { display: block; font-size: 18px; margin-top: 2px; } .pa-kv-v b { font-weight: 750; } .pa-kv-n { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; line-height: 1.35; }
.pa-note { font-size: 13px; line-height: 1.6; color: var(--text-2); margin: 10px 0 0; } .pa-caveat { color: var(--muted); font-size: 12.5px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.pa-warn { font-size: 13px; line-height: 1.6; color: var(--text-2); margin: 12px 0 0; padding: 10px 12px; background: var(--warn-bg); border-radius: 12px; }
.pa-tbl { display: block; overflow-x: auto; max-width: 100%; border-collapse: collapse; font-size: 12.5px; margin-top: 6px; -webkit-overflow-scrolling: touch; }
.pa-tbl th { text-align: left; font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 7px 10px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.pa-tbl td { padding: 8px 10px; border-bottom: 1px solid var(--line); color: var(--text-2); white-space: nowrap; } .pa-tbl td.n, .pa-tbl th.n { text-align: right; } .pa-tbl td b { color: var(--text); }
.pa-td-note { font-size: 11px; color: var(--muted); white-space: normal; max-width: 280px; }
.pa-chip { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 6px; } .pa-chip-na { background: var(--raised); color: var(--faint); } .pa-flag { font-size: 11px; color: var(--warn); font-weight: 700; }
.pa-cov { display: inline-block; font-size: 10.5px; padding: 2px 7px; border-radius: 6px; white-space: nowrap; } .pa-cov-ok { background: var(--pos-bg); color: var(--pos); } .pa-cov-mid { background: var(--warn-bg); color: var(--warn); } .pa-cov-low { background: var(--neg-bg); color: var(--neg); }
.pa-cards { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.pa-card { display: block; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; } .pa-card:active { background: var(--hover); }
.pa-card-r1 { display: flex; align-items: center; gap: 8px; } .pa-sym { font-size: 14px; } .pa-name { flex: 1; min-width: 0; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pa-card-r2 { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 12px; flex-wrap: wrap; } .pa-sec { color: var(--muted); flex: 1; min-width: 120px; } .pa-bar { display: inline-block; width: 64px; height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; } .pa-bar i { display: block; height: 100%; background: var(--accent); }
.pa-card-r3 { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; } .pa-why { font-size: 11.5px; color: var(--text-2); background: var(--raised); border-radius: 8px; padding: 3px 8px; line-height: 1.4; }
.pa-up { color: var(--pos); } .pa-dn { color: var(--neg); }
.pa-clocks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; } .pa-clock { font-size: 11.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 8px; padding: 3px 9px; } .pa-clock.pa-stale { color: var(--warn); border-color: var(--warn); }
.pa-written { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; } .pa-prose { font-size: 14px; line-height: 1.7; color: var(--text-2); } .pa-prose p { margin: 0 0 10px; } .pa-prose b { color: var(--text); } .pa-prose ul { padding-left: 20px; }
.pa-foot { font-size: 12px; line-height: 1.6; color: var(--muted); padding: 18px 16px 0; margin: 0; }
@media (min-width: 900px) { .pa-sec-box { padding: 24px 28px; } .pa-nav { padding: 10px 28px; } .pa-foot { padding: 18px 28px 0; } }
.lazy-fb { flex: 1; display: grid; place-items: center; min-height: 40vh; }

/* Portföy panosu — verilen görselin yerleşimi; diğer ekranlardan yalıtılmış renkler. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/InterVariable.woff2") format("woff2"); }
.portfolio-shell {
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-family: var(--font);
  --bg: #08121c; --surface: #0d1925; --raised: #111f2e; --hover: #16283a;
  --line: #213244; --line-2: #30445e; --text: #e5edff; --text-2: #becfed;
  --muted: #9db4d5; --faint: #8198b8; --accent: #8997ff; --accent-fill: #4e5eff;
  --accent-soft: #1d2e53; --pos: #59f2cb; --neg: #ff6c87;
  --pos-bg: #123133; --neg-bg: #38202c; --glass: #0b1723ed;
  background: radial-gradient(ellipse at 85% 30%, #101c2b33, transparent 60%), var(--bg);
}
.portfolio-shell .topbar { height: 51px; padding: 0 24px 0 41px; gap: 20px; background: linear-gradient(110deg, #0d1b29, #0b1621); }
.portfolio-shell .brand { gap: 13px; letter-spacing: -.35px; white-space: nowrap; margin-right: 14px; }
.portfolio-shell .brand-mark { width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(135deg, #6672ff, #3449ef); box-shadow: inset 0 1px 3px #c1c7ff4d, 0 3px 14px #101f554d; }
.portfolio-shell .tnav { align-self: stretch; gap: 10px; }
.portfolio-shell .tnav button { height: 100%; border-radius: 0; padding: 0 12px; gap: 11px; font-size: 13.5px; font-weight: 550; border-bottom: 3px solid transparent; padding-top: 3px; }
.portfolio-shell .tnav button[aria-current="page"] { color: #b3c2ff; background: transparent; border-bottom-color: #636dff; font-weight: 700; }
.portfolio-shell .tnav button:hover { background: #ffffff05; }
.portfolio-shell .tsearch { flex-basis: 293px; }
.portfolio-shell .tsearch input { height: 35px; border-radius: 11px; background: #0a1622; font-size: 13px; padding-left: 41px; }
.portfolio-shell .tsearch kbd { display: none; }
.portfolio-shell .tright { gap: 20px; align-items: center; }
.portfolio-shell .pf-bell { background: none; border: none; width: 30px; height: 38px; color: var(--text); }
.pf-avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #3f5dba, #293d70); border: 1px solid #5b75b844; color: #e4ebff; font-size: 13px; font-weight: 650; }
.pf-notifications { position: relative; }
.pf-notification-menu { right: -25px; top: 45px; width: 260px; padding: 18px !important; font-size: 13px; }
.pf-notification-menu p { color: var(--muted); margin: 14px 0; }
.pf-notification-menu button { padding: 6px 0; color: var(--accent); }
.pf-scroller { scrollbar-width: thin; scrollbar-color: #2b3e55 transparent; }
.pf-dashboard { padding: 20px 27px 16px; max-width: 1920px; margin: 0 auto; }
.pf-page-head { display: flex; justify-content: space-between; align-items: center; padding: 0 14px; gap: 20px; }
.pf-breadcrumb { display: flex; gap: 12px; color: var(--muted); font-size: 13px; line-height: 18px; margin-bottom: 2px; }
.pf-breadcrumb span:last-child { color: var(--text); }
.pf-page-title h1 { margin: 0; font-size: 31px; line-height: 35px; letter-spacing: -.9px; font-weight: 750; }
.pf-page-title p { margin: 1px 0 0; font-size: 16px; color: var(--muted); line-height: 23px; }
.pf-page-actions { display: flex; gap: 10px; align-items: center; align-self: flex-start; margin-top: 10px; }
.pf-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 41px; padding: 0 17px; font-size: 13px; font-weight: 550; white-space: nowrap; border: 1px solid var(--line); background: linear-gradient(135deg, #152333, #101b29); border-radius: 11px; box-shadow: inset 0 1px 1px #ffffff03; transition: border-color .15s, background .15s; }
.pf-button:hover { border-color: #4b6080; background: var(--hover); }
.pf-button:disabled { opacity: .45; cursor: default; }
.pf-primary { color: #fff; background: linear-gradient(115deg, #475dff, #4e60ff); border-color: #536aff; box-shadow: inset 0 1px 3px #b1b5ff33, 0 3px 14px #1d36e91a; font-weight: 650; }
.pf-primary:hover { background: #5d6cff; border-color: #8090ff; }
.pf-currency { min-width: 85px; }
.pf-currency-wrap, .pf-filter-wrap { position: relative; }
.pf-popover { position: absolute; z-index: 25; padding: 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 12px 36px #0006; }
.pf-currency-menu { right: 0; top: 48px; width: 240px; }
.pf-currency-menu button { width: 100%; padding: 10px 5px; display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.pf-currency-menu small { display: block; color: var(--muted); font-size: 12px; padding: 5px; line-height: 1.5; }
.pf-tabs-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 9px 5px 9px 14px; min-height: 33px; }
.pf-tabs { display: flex; gap: 10px; align-items: center; min-width: 0; flex-wrap: wrap; }
.pf-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 33px; padding: 0 18px; border: 1px solid var(--line); border-radius: 18px; font-size: 13px; font-weight: 500; background: #0d1925; color: var(--text-2); white-space: nowrap; }
.pf-tabs button[aria-pressed="true"] { color: #fff; background: linear-gradient(115deg, #5268ff, #4c5cff); border-color: #5a6bff; box-shadow: inset 0 1px 2px #b6c5ff44; }
.pf-tabs .pf-new { border-radius: 12px; background: linear-gradient(135deg, #152436, #0f1b2a); padding: 0 14px; }
.pf-source { display: flex; align-items: center; gap: 9px; padding: 6px 13px; border-radius: 30px; border: 1px solid var(--line); font-size: 12px; white-space: nowrap; color: var(--text-2); }
.pf-source i, .pf-page-foot i { display: inline-block; width: 8px; height: 8px; background: #2fcd79; border-radius: 50%; }
.pf-panel, .pf-summary { background: linear-gradient(115deg, #0c1925, #0c1824); border: 1px solid var(--line); border-radius: 15px; }
.pf-summary-wrap { position: relative; }
.pf-coverage { display: inline-flex; align-items: center; height: 18px; padding: 0 4px; border-radius: 4px; font-size: 10px; color: var(--muted); background: var(--raised); margin-left: 3px; }
.pf-summary-notes { right: 24%; top: 75px; max-width: 350px; font-size: 12px; color: var(--text-2); line-height: 1.6; }
.pf-summary-notes p { margin: 3px 5px 8px; }
.pf-summary-notes button { padding: 6px; color: var(--accent); }
.pf-summary.psum { display: grid; grid-template-columns: 1fr 1.04fr 1.03fr .99fr; margin: 0; padding: 16px 0; min-height: 99px; box-shadow: none; }
.pf-stat { min-width: 0; padding: 0 40px; border-right: 1px solid var(--line); }
.pf-stat:first-child { padding-left: 21px; }
.pf-stat:last-child { border-right: 0; }
.pf-stat:last-child .pf-stat-label { margin-bottom: 2px; }
.pf-stat:last-child strong { display: block; line-height: 29px; }
.pf-stat:last-child small { line-height: 16px; }
.pf-stat-label { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--text-2); line-height: 18px; margin-bottom: 5px; white-space: nowrap; }
.pf-eye { display: inline-grid; place-items: center; margin-left: 7px; width: 25px; height: 21px; color: var(--text-2); border-radius: 5px; }
.pf-stat strong { font-size: 25px; letter-spacing: -.7px; font-weight: 700; white-space: nowrap; line-height: 32px; }
.pf-stat-total strong { font-size: 33px; line-height: 38px; font-weight: 750; }
.pf-stat-value { display: flex; align-items: center; gap: 15px; min-height: 37px; flex-wrap: wrap; }
.pf-stat small { display: block; font-size: 13px; line-height: 17px; color: var(--text-2); }
.pf-gain { border-radius: 20px; padding: 4px 10px; font-size: 12px; font-weight: 650; line-height: 17px; background: var(--pos-bg); border: 1px solid #295a554d; white-space: nowrap; }
.pf-gain.neg { background: var(--neg-bg); border-color: #71334766; }
.pf-data-note { display: flex; gap: 6px; align-items: flex-start; margin: 6px 5px 0; font-size: 11px; line-height: 16px; color: var(--muted); }
.pf-data-note .ic { margin-top: 1px; }
.pf-charts { display: grid; grid-template-columns: minmax(0, 1.725fr) minmax(0, 1fr); gap: 11px; margin-top: 10px; }
.pf-panel h2 { margin: 0; letter-spacing: -.45px; font-size: 19px; line-height: 25px; font-weight: 700; }
.pf-performance { min-width: 0; height: 320px; padding: 17px 20px 14px; display: flex; flex-direction: column; }
.pf-chart-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; }
.pf-chart-head h2 { font-size: 21px; line-height: 27px; }
.pf-chart-head p { display: flex; align-items: center; gap: 7px; margin: 1px 0 0; font-size: 13px; color: var(--text-2); }
.pf-history-hint { color: var(--muted); cursor: help; }
.pf-periods { display: inline-flex; border: 1px solid var(--line); border-radius: 12px; height: 34px; margin-top: 0; padding: 0 1px; flex-shrink: 0; }
.pf-periods button { min-width: 45px; padding: 0 11px; border-radius: 10px; color: var(--text-2); font-size: 12px; }
.pf-periods button[aria-pressed="true"] { background: linear-gradient(135deg, #4a61ff, #4d5dff); box-shadow: inset 0 1px 3px #ffffff20; color: #fff; font-weight: 650; }
.pf-chart-area { flex: 1; min-height: 0; position: relative; margin: 7px -15px 0 -9px; }
.pf-line-chart { width: 100%; height: 100%; display: block; overflow: visible; }
.pf-gridline { stroke: #26384c; stroke-width: .8; stroke-dasharray: 2 2; }
.pf-gridline.vertical { opacity: .6; }
.pf-chart-baseline { stroke: #53647b; stroke-width: .8; }
.pf-axis-label { fill: var(--muted); font-size: 12px; }
.pf-chart-line { fill: none; stroke: #626aff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pf-chart-tooltip { fill: #354b9e; }
.pf-chart-tooltip-text { fill: #fff; font-size: 11px; font-weight: 650; }
.pf-chart-wait { position: absolute; inset: 27px 15px 42px 65px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; text-align: center; pointer-events: none; }
.pf-chart-wait-icon { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 13px; background: #192a4d; color: #9aa8ff; border: 1px solid #334471; }
.pf-chart-wait b { font-size: 15px; font-weight: 600; color: var(--text); }
.pf-chart-wait span:not(.pf-chart-wait-icon) { font-size: 12px; color: var(--text-2); }
.pf-chart-wait small { font-size: 11px; color: var(--muted); }
.pf-chart-foot { display: flex; justify-content: space-between; gap: 10px; color: var(--text-2); font-size: 12px; margin-top: 5px; }
.pf-chart-foot b { font-weight: 600; }
.pf-allocation { min-width: 0; height: 320px; padding: 17px 20px 14px; display: flex; flex-direction: column; }
.pf-allocation-head { display: flex; align-items: center; gap: 9px; }
.pf-allocation-head h2 { flex: 1; white-space: nowrap; }
.pf-distribution-tabs { display: flex; border: 1px solid var(--line); border-radius: 22px; height: 34px; background: #14213066; }
.pf-distribution-tabs button { font-size: 12px; padding: 0 13px; color: var(--text-2); border-radius: 22px; }
.pf-distribution-tabs button[aria-pressed="true"] { background: linear-gradient(135deg, #4d63ff, #4859f5); color: #fff; font-weight: 600; }
.pf-icon { display: grid; place-items: center; width: 20px; height: 30px; color: var(--muted); }
.pf-allocation-head .pf-icon .ic { transform: rotate(90deg); }
.pf-allocation-body { display: flex; align-items: center; justify-content: space-between; flex: 1; gap: 22px; min-height: 0; }
.pf-donut { position: relative; flex: 0 1 210px; width: 210px; min-width: 160px; aspect-ratio: 1; margin-left: 18px; }
.pf-donut svg { width: 100%; height: 100%; display: block; transform: rotate(0deg); }
.pf-donut-track { fill: none; stroke: #203149; stroke-width: 42px; }
.pf-donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; pointer-events: none; }
.pf-donut-center strong { font-size: 29px; line-height: 32px; letter-spacing: -.7px; }
.pf-donut-center span { font-size: 14px; color: var(--muted); }
.pf-allocation-legend { flex: 0 1 213px; min-width: 0; margin-right: 18px; }
.pf-legend-item { width: 100%; display: flex; align-items: center; gap: 15px; text-align: left; font-size: 13px; min-height: 29px; border-bottom: 1px solid #26374980; }
.pf-legend-item:last-child { border-bottom: none; }
.pf-legend-item i { width: 11px; height: 11px; border-radius: 50%; flex: none; box-shadow: inset 0 0 2px #ffffff40; }
.pf-legend-item span { flex: 1; }
.pf-legend-item b { font-weight: 500; }
.pf-legend-item:disabled { cursor: default; opacity: 1; color: var(--text-2); }
.pf-legend-item:hover:not(:disabled) { color: var(--accent); }
.pf-largest { margin-top: 7px; color: var(--text-2); font-size: 12px; }
.pf-largest b { font-weight: 500; }
.pf-largest > div:first-child { display: flex; gap: 10px; }
.pf-largest-track { display: flex; align-items: center; gap: 12px; margin-top: 5px; }
.pf-largest-track > span { flex: 1; height: 10px; border-radius: 10px; background: #1f2c42; overflow: hidden; }
.pf-largest-track i { display: block; height: 100%; border-radius: 10px; background: linear-gradient(90deg, #4d59ff, #6561ff); }
.pf-largest-track b { min-width: 36px; color: var(--text); }
.pf-assets { margin-top: 11px; overflow: visible; }
.pf-assets-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 11px 0 12px; height: 54px; border-bottom: 1px solid var(--line); }
.pf-asset-tabs { display: flex; align-self: stretch; gap: 9px; }
.pf-asset-tabs > button { display: flex; position: relative; align-items: center; gap: 12px; padding: 0 13px; white-space: nowrap; color: var(--muted); font-size: 15px; font-weight: 550; }
.pf-asset-tabs > button[aria-pressed="true"] { color: var(--text); font-size: 17px; font-weight: 650; }
.pf-asset-tabs > button[aria-pressed="true"]::after { content: ""; height: 3px; position: absolute; left: 0; right: 0; bottom: 0; background: #6566ff; border-radius: 4px 4px 0 0; }
.pf-asset-tabs > button > span { font-size: 12px; font-weight: 650; padding: 3px 8px; border-radius: 6px; background: linear-gradient(135deg, #4b67ff, #4851ee); box-shadow: inset 0 1px 2px #b0baff44; color: #fff; }
.pf-table-tools { display: flex; align-items: center; gap: 18px; }
.pf-search { display: flex; align-items: center; gap: 13px; width: 253px; height: 35px; padding: 0 13px; border: 1px solid #2a3d53; border-radius: 10px; background: #0c1824; color: var(--muted); }
.pf-search:focus-within { border-color: var(--accent); }
.pf-search input { width: 100%; min-width: 0; background: transparent; border: 0; outline: 0; font-size: 13px; height: 100%; }
.pf-search input::placeholder { color: var(--muted); }
.pf-search input::-webkit-search-cancel-button { appearance: none; }
.pf-search > button { display: grid; place-items: center; width: 20px; height: 26px; flex: none; }
.pf-filter-button { height: 35px; padding: 0 14px; border-radius: 10px; gap: 10px; }
.pf-filter-button.selected { border-color: var(--accent); }
.pf-filter-button i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.pf-filter-popover { width: 240px; right: 0; top: 42px; }
.pf-filter-popover label { display: grid; gap: 6px; font-size: 12px; margin: 5px 3px 13px; color: var(--text-2); }
.pf-filter-popover select { width: 100%; height: 36px; border: 1px solid var(--line-2); border-radius: 7px; padding: 0 7px; background: var(--raised); font-size: 13px; }
.pf-filter-popover > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pf-filter-popover > div button { height: 36px; padding: 0 10px; border-radius: 7px; font-size: 12px; }
.pf-filter-popover > div button:last-child { background: #4859ed; color: #fff; }
.pf-view-toggle { display: flex; border: 1px solid var(--line); border-radius: 10px; height: 35px; overflow: hidden; }
.pf-view-toggle button { display: grid; place-items: center; width: 47px; color: var(--muted); border-radius: 9px; }
.pf-view-toggle button[aria-pressed="true"] { color: #d5dfff; background: linear-gradient(110deg, #243c6b, #202e58); }
.pf-active-filters { display: flex; gap: 8px; padding: 10px 20px; border-bottom: 1px solid var(--line); }
.pf-active-filters button { display: inline-flex; gap: 8px; align-items: center; color: var(--text-2); background: var(--accent-soft); padding: 5px 8px; border-radius: 5px; font-size: 12px; }
.pf-table-scroll { overflow-x: auto; scrollbar-width: thin; }
.pf-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14px; }
.pf-table th, .pf-table td { border-bottom: 1px solid var(--line); text-align: right; padding: 0 18px; }
.pf-table th { height: 30px; font-size: 11.5px; color: var(--text-2); font-weight: 500; background: #101e2b66; }
.pf-table th:first-child, .pf-table td:first-child { width: 21.6%; text-align: left; border-right: 1px solid #1d3041; padding-left: 21px; }
.pf-table th:nth-child(2) { width: 11%; }
.pf-table th:nth-child(3) { width: 10.5%; }
.pf-table th:nth-child(4) { width: 14.5%; }
.pf-table th:nth-child(5) { width: 20.6%; text-align: left; padding-left: 77px; }
.pf-table th:nth-child(6) { width: 10.4%; }
.pf-table th:last-child, .pf-table td:last-child { width: 11.4%; padding: 0 40px 0 0; }
.pf-table th > button { display: inline-flex; align-items: center; gap: 5px; height: 29px; font-size: inherit; color: inherit; }
.pf-table th > .sorted { color: #91a0ff; font-weight: 650; position: relative; }
.pf-table th > .sorted::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: #6671ff; }
.pf-table th:last-child .ic { display: inline-block; vertical-align: middle; }
.pf-table td { height: 38px; }
.pf-table tbody tr:nth-child(even) { background: #10203130; }
.pf-table tbody tr:hover { background: #17283d80; }
.pf-asset { display: flex; width: 100%; align-items: center; gap: 23px; text-align: left; height: 37px; min-width: 0; }
.pf-asset .logo { width: 28px; height: 28px; border-radius: 7px; font-size: 10px; flex: none; background: transparent !important; color: var(--text); }
.pf-asset .logo img { border-radius: 5px; object-fit: contain; background: var(--surface); padding: 1px; }
.pf-asset .logo:has(img.ok) { color: transparent; text-shadow: none; }
.pf-asset[data-symbol="AMZN"] .logo img { filter: invert(1) hue-rotate(180deg); background: transparent; }
.pf-asset[data-symbol="AMD"] .logo img, .pf-asset[data-symbol="MU"] .logo img { background: #fff; padding: 3px; }
:root[data-theme="light"] .pf-asset[data-symbol="AMZN"] .logo img { filter: none; }
.pf-asset > b { font-size: 14px; min-width: 35px; font-weight: 700; letter-spacing: -.15px; }
.pf-asset > span:last-child { color: var(--muted); font-size: 12px; margin-left: -6px; }
.pf-daily { font-weight: 700; }
.pf-weight { display: flex; align-items: center; gap: 16px; justify-content: flex-end; }
.pf-weight > span:first-child { min-width: 48px; }
.pf-weight-track { display: block; height: 8px; border-radius: 2px; background: #1a293c; overflow: hidden; }
.pf-weight .pf-weight-track { width: 156px; }
.pf-weight-track i { display: block; height: 100%; border-radius: 2px; min-width: 1px; box-shadow: inset 0 1px 1px #ffffff33; }
.pf-pnl { display: flex; flex-direction: column; align-items: flex-end; gap: 0; line-height: 16px; white-space: nowrap; }
.pf-pnl b { font-weight: 700; }
.pf-pnl small { font-size: 11px; line-height: 13px; color: var(--text-2); }
.pf-row-menu { display: inline-grid; place-items: center; height: 33px; width: 32px; color: var(--muted); border-radius: 7px; }
.pf-row-menu:hover { background: var(--hover); color: var(--text); }
.pf-table-footer { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 12px 14px 9px 21px; min-height: 53px; font-size: 12px; color: var(--muted); }
.pf-asset-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 16px; }
.pf-asset-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #10203155; min-width: 0; }
.pf-asset-card-head { display: flex; align-items: center; }
.pf-asset-card .pf-asset { gap: 10px; }
.pf-asset-card .pf-asset > span:last-child { margin-left: 0; }
.pf-asset-card-value { display: flex; justify-content: space-between; align-items: center; margin: 15px 0 10px; gap: 10px; }
.pf-asset-card-value strong { font-size: 23px; letter-spacing: -.5px; }
.pf-asset-card-value span { font-size: 13px; font-weight: 600; }
.pf-asset-card-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 11px; color: var(--muted); margin-bottom: 10px; }
.pf-asset-card-meta .pf-pnl { font-size: 13px; }
.pf-transactions-empty, .pf-no-results { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 45px 20px; text-align: center; color: var(--muted); min-height: 220px; }
.pf-transactions-empty h3, .pf-no-results h3 { margin: 4px 0; font-size: 17px; color: var(--text); }
.pf-transactions-empty p, .pf-no-results p { margin: 0; font-size: 13px; }
.pf-transactions-empty small { font-size: 12px; }
.pf-page-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 8px 0; color: var(--muted); font-size: 11px; }
.pf-page-foot > span { display: flex; align-items: center; gap: 7px; }
.pf-page-foot i { width: 5px; height: 5px; flex-shrink: 0; }
.pf-page-foot button { display: inline-flex; gap: 7px; align-items: center; padding: 6px 10px; border: 1px solid var(--line); border-radius: 7px; font-size: 12px; color: var(--text-2); }
:root[data-theme="light"] .portfolio-shell { --bg: #f1f5fb; --surface: #fff; --raised: #f2f5fc; --hover: #e5ecf8; --line: #d8e2ef; --line-2: #c2cfe2; --text: #172640; --text-2: #435b7c; --muted: #50698b; --accent: #4350c5; --pos: #006c51; --neg: #b62747; --pos-bg: #e1f5ee; --neg-bg: #ffebf0; --glass: #f1f5fbed; }
:root[data-theme="light"] .portfolio-shell .topbar, :root[data-theme="light"] .pf-panel, :root[data-theme="light"] .pf-summary { background: var(--surface); }
:root[data-theme="light"] .portfolio-shell .tnav button[aria-current="page"] { color: #4753c4; }
:root[data-theme="light"] .portfolio-shell .tsearch input, :root[data-theme="light"] .pf-button:not(.pf-primary), :root[data-theme="light"] .pf-tabs button:not([aria-pressed="true"]), :root[data-theme="light"] .pf-search { background: var(--raised); }
:root[data-theme="light"] .pf-gridline { stroke: #c4d1e3; }
:root[data-theme="light"] .pf-chart-wait-icon { background: #edf0ff; color: #4c58ca; border-color: #c8cff1; }
:root[data-theme="light"] .pf-table th { background: #f2f6fc; }
:root[data-theme="light"] .pf-table th > .sorted { color: #4c57c5; }
:root[data-theme="light"] .pf-table tbody tr:nth-child(even), :root[data-theme="light"] .pf-asset-card { background: #f3f6fb; }
:root[data-theme="light"] .pf-table tbody tr:hover { background: #e8eef9; }
:root[data-theme="light"] .pf-weight-track, :root[data-theme="light"] .pf-largest-track > span { background: #e1e8f3; }
:root[data-theme="light"] .pf-legend-item { border-color: var(--line); }
:root[data-theme="light"] .pf-distribution-tabs { background: var(--raised); }
:root[data-theme="light"] .pf-view-toggle button[aria-pressed="true"] { background: #e1e7ff; color: #3e4db4; }
@media (min-width: 900px) and (max-width: 1280px) {
  .portfolio-shell .topbar { padding-left: 24px; gap: 16px; }
  .portfolio-shell .tnav { gap: 0; }
  .portfolio-shell .tnav button { padding: 0 10px; gap: 7px; }
  .portfolio-shell .tright { gap: 10px; }
  .pf-dashboard { padding-left: 20px; padding-right: 20px; }
  .pf-stat { padding: 0 20px; }
  .pf-stat strong { font-size: 21px; }
  .pf-stat-total strong { font-size: 27px; }
  .pf-stat-value { gap: 7px; }
  .pf-gain { padding: 3px 6px; font-size: 10px; }
  .pf-charts { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .pf-allocation { padding-left: 14px; padding-right: 14px; }
  .pf-allocation-body { gap: 12px; }
  .pf-donut { min-width: 140px; margin-left: 0; }
  .pf-allocation-legend { margin-right: 0; }
  .pf-legend-item { gap: 8px; font-size: 11px; }
  .pf-allocation-head h2 { font-size: 16px; }
  .pf-distribution-tabs button { padding: 0 9px; font-size: 11px; }
  .pf-chart-head { flex-wrap: wrap; gap: 7px; }
  .pf-chart-head h2 { font-size: 19px; }
  .pf-table-tools { gap: 9px; }
  .pf-search { width: 210px; }
  .pf-table th, .pf-table td { padding-left: 12px; padding-right: 12px; }
  .pf-table th:nth-child(5) { padding-left: 28px; }
  .pf-asset { gap: 12px; }
  .pf-asset > span:last-child { display: none; }
  .pf-weight { gap: 9px; }
}
@media (max-width: 899px) {
  .pf-dashboard { padding: 20px 14px 16px; }
  .pf-page-head { align-items: flex-start; flex-direction: column; gap: 16px; padding: 0 4px; }
  .pf-page-title h1 { font-size: 29px; }
  .pf-page-title p { font-size: 14px; }
  .pf-page-actions { width: 100%; gap: 8px; margin: 0; }
  .pf-button { min-height: 44px; padding: 0 12px; font-size: 12px; border-radius: 10px; }
  .pf-page-actions .pf-primary { flex: 1; gap: 6px; padding: 0 10px; }
  .pf-currency { min-width: 64px; }
  .pf-tabs-line { margin: 15px 0 12px; align-items: flex-start; }
  .pf-tabs { flex-wrap: nowrap; overflow-x: auto; padding: 0 2px; scrollbar-width: none; gap: 8px; }
  .pf-tabs button { min-height: 44px; flex-shrink: 0; padding: 0 14px; font-size: 12px; }
  .pf-source { display: none; }
  .pf-summary.psum { grid-template-columns: 1fr 1fr; padding: 0; min-height: 190px; }
  .pf-stat, .pf-stat:first-child { padding: 14px; min-height: 90px; }
  .pf-stat:nth-child(2) { border-right: 0; }
  .pf-stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .pf-stat-label { font-size: 11px; white-space: normal; min-height: 21px; margin-bottom: 5px; }
  .pf-eye { width: 40px; height: 44px; flex: none; margin: -10px 0 -10px 0; }
  .pf-coverage { height: 44px; min-width: 40px; flex: none; margin: -10px 0; }
  .pf-summary-notes { left: 10px; right: 10px; top: 150px; }
  .pf-summary-notes button { min-height: 44px; min-width: 44px; }
  .pf-stat strong, .pf-stat-total strong { font-size: 21px; line-height: 28px; letter-spacing: -.6px; }
  .pf-stat-value { gap: 4px; min-height: 28px; }
  .pf-stat small { font-size: 11px; }
  .pf-gain { font-size: 10px; padding: 2px 6px; line-height: 14px; }
  .pf-data-note { font-size: 10px; line-height: 15px; margin-top: 7px; }
  .pf-charts { grid-template-columns: 1fr; gap: 12px; margin-top: 12px; }
  .pf-performance { height: 320px; padding: 15px 14px 12px; }
  .pf-chart-head { flex-wrap: wrap; gap: 12px; }
  .pf-chart-head h2 { font-size: 18px; line-height: 24px; }
  .pf-chart-head p { font-size: 12px; }
  .pf-periods { min-height: 46px; width: 100%; }
  .pf-periods button { min-width: 40px; min-height: 44px; flex: 1; font-size: 12px; padding: 0 7px; }
  .pf-chart-area { margin-top: 8px; margin-left: -14px; margin-right: -10px; }
  .pf-line-chart { min-height: 0; }
  .pf-axis-label { font-size: 10px; }
  .pf-chart-tooltip-text { font-size: 11px; }
  .pf-chart-wait { inset: 2px 0 14px 36px; gap: 5px; }
  .pf-chart-wait-icon { height: 32px; width: 32px; border-radius: 10px; }
  .pf-chart-wait-icon .ic { width: 19px; height: 19px; }
  .pf-chart-wait b { font-size: 13px; }
  .pf-chart-wait span:not(.pf-chart-wait-icon) { font-size: 10px; }
  .pf-chart-wait small { font-size: 10px; }
  .pf-chart-foot { font-size: 10px; gap: 5px; }
  .pf-allocation { height: 385px; padding: 14px; }
  .pf-allocation-head { gap: 4px; }
  .pf-allocation-head h2 { font-size: 17px; }
  .pf-distribution-tabs { min-height: 44px; }
  .pf-distribution-tabs button { min-width: 58px; padding: 0 10px; font-size: 11px; }
  .pf-icon { width: 40px; height: 44px; }
  .pf-allocation-body { gap: 15px; }
  .pf-donut { width: 165px; flex-basis: 165px; min-width: 125px; margin-left: 0; }
  .pf-donut-center strong { font-size: 25px; }
  .pf-donut-center span { font-size: 12px; }
  .pf-allocation-legend { flex-basis: 158px; margin-right: 0; }
  .pf-legend-item { min-height: 44px; height: 44px; position: relative; font-size: 11px; gap: 8px; }
  .pf-legend-item i { width: 8px; height: 8px; }
  .pf-largest { font-size: 11px; margin-top: 9px; }
  .pf-assets { margin-top: 12px; }
  .pf-assets-toolbar { height: auto; min-height: 115px; flex-direction: column; align-items: stretch; gap: 10px; padding: 0 10px 10px; }
  .pf-asset-tabs { height: 49px; gap: 0; }
  .pf-asset-tabs > button { font-size: 13px; padding: 0 10px; gap: 8px; min-height: 44px; }
  .pf-asset-tabs > button[aria-pressed="true"] { font-size: 14px; }
  .pf-table-tools { gap: 7px; }
  .pf-search { flex: 1; min-width: 0; width: auto; min-height: 44px; gap: 7px; padding: 0 9px; }
  .pf-search input { font-size: 12px; }
  .pf-search > button { min-width: 40px; min-height: 44px; margin-right: -9px; }
  .pf-filter-button { min-height: 44px; padding: 0 10px; gap: 5px; }
  .pf-view-toggle { min-height: 44px; }
  .pf-view-toggle button { width: 40px; }
  .pf-filter-popover { right: -75px; }
  .pf-filter-popover select, .pf-filter-popover > div button { min-height: 44px; }
  .pf-table { min-width: 820px; }
  .pf-table th, .pf-table td { padding: 0 12px; }
  .pf-table th { height: 44px; }
  .pf-table th > button { min-height: 44px; min-width: 40px; }
  .pf-table td { height: 54px; }
  .pf-table th:first-child, .pf-table td:first-child { width: 160px; padding-left: 12px; }
  .pf-table th:first-child { position: sticky; left: 0; z-index: 3; background: var(--surface); }
  .pf-table td:first-child { position: sticky; left: 0; z-index: 2; background: var(--surface); }
  .pf-table th:nth-child(2) { width: 100px; }
  .pf-table th:nth-child(3) { width: 90px; }
  .pf-table th:nth-child(4) { width: 120px; }
  .pf-table th:nth-child(5) { width: 150px; padding-left: 20px; }
  .pf-table th:nth-child(6) { width: 130px; }
  .pf-table th:last-child, .pf-table td:last-child { width: 50px; padding: 0 5px; }
  .pf-asset { min-height: 44px; height: auto; gap: 10px; }
  .pf-asset > span:last-child { display: none; }
  .pf-asset > b { font-size: 12px; }
  .pf-row-menu { min-height: 44px; min-width: 40px; }
  .pf-table-footer { flex-direction: column; gap: 10px; align-items: flex-start; padding: 13px 12px; font-size: 11px; }
  .pf-asset-grid { grid-template-columns: 1fr; padding: 10px; gap: 10px; }
  .pf-asset-card .pf-asset > span:last-child { display: block; }
  .pf-page-foot { align-items: flex-start; padding: 10px 0 0; line-height: 16px; }
  .pf-page-foot > span { align-items: baseline; }
  .pf-page-foot button { min-height: 44px; flex-shrink: 0; }
  .pf-active-filters button { min-height: 44px; }
}

/* Hisse detay panosu — referansın geniş sayfa, mavi/mint ve kompakt panel düzeni. */
.stock-shell {
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #0b1217; --surface: #101a21; --raised: #17232c; --hover: #1b2a35;
  --line: #26343e; --line-2: #3a4b58; --text: #f0f3f7; --text-2: #c0cedb; --muted: #99aabc;
  --accent: #71baff; --accent-fill: #087cf4; --accent-soft: #087cf41c; --pos: #63edc7; --neg: #ff8092; --warn: #ffd052;
  --glass: #0b1217f2; font-family: var(--font);
}
.stock-shell .topbar { height: 54px; padding: 0 30px; background: var(--bg); gap: 28px; }
.stock-shell .brand { font-size: 21px; white-space: nowrap; gap: 15px; margin-right: 75px; }
.stock-shell .brand-mark { background: none; box-shadow: none; border-radius: 0; font-size: 42px; width: 29px; height: 34px; color: #159cff; font-weight: 900; line-height: 1; }
.stock-shell .tnav { align-self: stretch; gap: 8px; }
.stock-shell .tnav button { height: 100%; padding: 0 13px; border-bottom: 3px solid transparent; padding-top: 3px; border-radius: 0; color: var(--text); font-size: 14px; font-weight: 500; white-space: nowrap; }
.stock-shell .tnav button .ic { display: none; }
.stock-shell .tnav button[aria-current="page"] { color: var(--accent); border-bottom-color: #0986ff; background: none; font-weight: 650; }
.stock-shell .tsearch { flex-basis: 288px; }
.stock-shell .tsearch input { height: 36px; border-radius: 7px; font-size: 12px; }
.stock-shell .tsearch kbd { display: none; }
.stock-detail.page { inset: 54px 0 0; width: 100%; border: 0; box-shadow: none; animation: none; }
.stock-detail .pbody { padding: 0; }
.sd-dashboard { padding: 0 20px 20px; max-width: 1900px; margin: 0 auto; }
.sd-breadcrumb { display: flex; gap: 12px; align-items: center; min-height: 49px; padding: 7px 14px 3px; font-size: 13px; color: var(--muted); }
.sd-breadcrumb > span:last-of-type { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40%; }
.sd-breadcrumb button { display: inline-flex; align-items: center; gap: 4px; min-height: 30px; color: var(--text-2); white-space: nowrap; }
.sd-breadcrumb button:disabled { opacity: .3; cursor: default; }
.sd-breadcrumb .grow { flex: 1; }
.sd-hero { display: flex; align-items: center; gap: 36px; min-height: 84px; padding: 5px 14px 4px; }
.sd-identity { display: flex; align-items: center; gap: 24px; min-width: 0; flex: 0 1 438px; }
.sd-identity .logo { height: 71px; width: 71px; border-radius: 10px; flex-shrink: 0; font-size: 24px; color: var(--text); }
.sd-identity .logo:has(img.ok) { color: transparent; }
.sd-identity .ptitle { padding: 0; }
.sd-identity h1 { margin: 0 0 6px; font-size: clamp(26px, 2.65vw, 40px); font-weight: 750; letter-spacing: -1.1px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-identity .ptitle small { font-size: 14px; line-height: 1.5; color: var(--text-2); overflow-wrap: anywhere; }
.sd-quote { display: flex; align-items: center; gap: 18px; white-space: nowrap; }
.sd-quote > strong { font-size: clamp(26px, 2.65vw, 40px); font-weight: 730; letter-spacing: -1px; }
.sd-quote > div { display: flex; flex-direction: column; gap: 3px; }
.sd-quote b { font-size: 18px; font-weight: 650; }
.sd-quote small { color: var(--muted); font-size: 12px; }
.sd-hero-actions { display: flex; gap: 12px; margin-left: auto; }
.sd-button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; height: 44px; border: 1px solid var(--line-2); border-radius: 7px; padding: 0 18px; font-size: 14px; font-weight: 500; white-space: nowrap; color: var(--text); background: transparent; }
.sd-button:hover { background: var(--hover); }
.sd-button.sd-primary { background: #006cda; color: #fff; border-color: #1689ff; }
.sd-button.sd-primary:hover { background: #006de1; }
.sd-tabs.ptabs { position: sticky; top: 0; z-index: 5; display: flex; gap: 18px; padding: 0 8px; margin-top: 4px; height: 46px; align-items: stretch; background: var(--bg); }
.sd-tabs.ptabs .chip { display: inline-flex; align-items: center; height: 100%; padding: 0 14px; border: 0; border-bottom: 3px solid transparent; border-radius: 0; color: var(--text-2); background: none; font-size: 14px; font-weight: 450; }
.sd-tabs.ptabs .chip[aria-pressed="true"] { border-bottom-color: #0986ff; color: #99d6ff; font-weight: 650; }
.sd-summary { min-height: 78px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: center; border: 1px solid var(--line); border-radius: 9px; background: linear-gradient(110deg, #111c24, #10181f); margin-bottom: 14px; }
.sd-summary > div { padding: 0 22px; border-right: 1px solid var(--line-2); }
.sd-summary > div:last-child { border-right: 0; }
.sd-summary span { display: block; color: var(--muted); font-size: 13px; margin-bottom: 3px; white-space: nowrap; }
.sd-summary strong { display: block; font-size: 21px; letter-spacing: -.3px; }
.sd-main-grid { display: grid; grid-template-columns: minmax(0, 1.84fr) minmax(0, 1fr); gap: 14px; margin-bottom: 15px; }
.sd-second-grid { display: grid; grid-template-columns: minmax(0, 1.71fr) minmax(0, 1fr); gap: 14px; margin-bottom: 15px; }
.sd-panel { min-width: 0; border: 1px solid var(--line); border-radius: 9px; background: linear-gradient(110deg, #111b23, #10181f); padding: 16px 20px; }
.sd-panel h2 { margin: 0; font-size: 21px; font-weight: 680; letter-spacing: -.4px; line-height: 1.3; }
.sd-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.sd-segment { display: inline-flex; border: 1px solid var(--line); border-radius: 7px; flex-shrink: 0; overflow: hidden; }
.sd-segment button, .sd-segment > span { display: inline-flex; justify-content: center; align-items: center; min-height: 32px; padding: 0 15px; font-size: 12px; color: var(--text-2); }
.sd-segment .selected { background: #006cda; border-radius: 6px; color: #fff; }
.sd-segment button:disabled { cursor: not-allowed; opacity: .65; }
.sd-segment button.selected:disabled { opacity: .7; }
.sd-price { display: flex; flex-direction: column; min-height: 406px; }
.sd-price-chart { position: relative; flex: 1; display: grid; align-items: stretch; min-height: 260px; }
.sd-price-chart > svg { width: 100%; height: 100%; min-height: 280px; }
.sd-price-chart svg text, .sd-bars-chart text { fill: var(--text-2); font-family: var(--font); font-size: 11px; }
.sd-gridline { stroke: var(--line-2); stroke-width: .8; stroke-dasharray: 3 3; opacity: .65; }
.sd-axis { stroke: var(--line-2); stroke-width: 1; }
.sd-current-point circle, .sd-current-point rect { fill: var(--pos); }
.sd-current-point text { fill: #07291e !important; font-weight: 700; }
.sd-chart-empty { position: absolute; top: 48%; left: 50%; transform: translate(-50%, -50%); width: 78%; max-width: 400px; text-align: center; background: radial-gradient(ellipse, #101a21 45%, #101a21d9 65%, transparent 72%); padding: 22px 10px; }
.sd-chart-empty > span { width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: var(--accent); background: var(--raised); margin-bottom: 13px; }
.sd-chart-empty b { display: block; font-size: 16px; font-weight: 600; }
.sd-chart-empty p { color: var(--muted); font-size: 12px; line-height: 1.7; margin: 7px 0 0; }
.sd-price-foot { display: flex; gap: 22px; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 11px; color: var(--muted); font-size: 12px; }
.sd-price-foot b { color: var(--text-2); margin-left: 7px; font-weight: 550; }
.sd-price-foot small { display: block; font-size: 10px; }
.sd-price-foot a { display: inline-flex; align-items: center; gap: 5px; color: var(--accent); white-space: nowrap; text-decoration: none; }
.sd-profile { display: flex; flex-direction: column; min-height: 406px; }
.sd-profile-rows { margin-top: 4px; }
.sd-profile-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(60px, .95fr) 77px; align-items: center; gap: 12px; min-height: 54px; border-bottom: 1px solid var(--line); }
.sd-profile-row:last-child { border-bottom: 0; }
.sd-profile-row b { font-size: 13px; font-weight: 650; }
.sd-profile-row small { display: block; font-size: 11px; line-height: 1.45; color: var(--muted); margin-top: 1px; }
.sd-profile-row strong { text-align: right; font-size: 12px; white-space: nowrap; }
.sd-profile-track { height: 12px; border-radius: 4px; background: #23323e; overflow: hidden; }
.sd-profile-track i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(180deg, #54a6ff, #3888ed); }
.sd-profile-track.mint i { background: linear-gradient(180deg, #7cf9d8, #41d6b0); }
.sd-profile-track.gold i { background: linear-gradient(180deg, #ffdc71, #f2b832); }
.sd-gold { color: var(--warn); }
.sd-analysis { margin-top: 12px; border-top: 1px solid var(--line-2); padding-top: 12px; }
.sd-analysis h3 { font-size: 15px; margin: 0 0 7px; }
.sd-analysis p { font-size: 13px; line-height: 1.6; margin: 0; color: var(--text-2); }
.sd-profile-foot { display: flex; flex-wrap: wrap; justify-content: space-between; margin-top: auto; padding-top: 8px; gap: 3px 10px; }
.sd-profile-foot button { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); min-height: 25px; font-size: 11px; }
.sd-financial-plot { margin-top: 8px; }
.sd-bars-chart { width: 100%; height: 180px; display: block; }
.sd-bars-chart .sd-bar-label { fill: var(--text); font-size: 11px; }
.sd-revenue { fill: #338bff; background: #338bff; }
.sd-income { fill: #59e6bf; background: #59e6bf; }
.sd-derived { stroke: var(--text-2); stroke-width: 1; stroke-dasharray: 3 3; fill-opacity: .8; }
.sd-legend { display: flex; flex-wrap: wrap; gap: 20px; font-size: 11px; color: var(--text-2); margin: 9px 0 0; }
.sd-legend span { display: inline-flex; align-items: center; gap: 7px; }
.sd-legend i { height: 12px; width: 12px; display: inline-block; border-radius: 50%; }
.sd-footnote { font-size: 10.5px; color: var(--muted); margin: 8px 0 0; line-height: 1.6; }
.sd-data-empty { min-height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; color: var(--muted); font-size: 13px; }
.sd-data-empty p { margin: 0; }
.sd-forecast.dsec { padding: 12px 17px 13px; }
.sd-forecast .sd-panel-head { margin-bottom: 8px; gap: 8px; flex-wrap: wrap; }
.sd-forecast-controls { display: flex; align-items: center; gap: 10px; }
.sd-forecast-controls select, .sd-currency { background: var(--raised); border: 1px solid var(--line-2); border-radius: 6px; color: var(--text-2); min-height: 32px; font-size: 11px; padding: 0 9px; }
.sd-currency { display: inline-flex; align-items: center; }
.sd-panel-sub { font-size: 12px; color: var(--text-2); margin: 0 0 10px; }
.sd-price-target { padding: 13px 14px 10px; margin: 13px 0 16px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--accent-soft); }
.sd-target-values { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.sd-target-values > div { display: flex; flex-direction: column; }
.sd-target-values > div + div { padding-left: 18px; border-left: 1px solid var(--line-2); }
.sd-target-values span { display: block; color: var(--text-2); font-size: 11px; line-height: 1.5; }
.sd-target-values strong { display: block; font-size: clamp(21px, 1.75vw, 27px); font-weight: 700; letter-spacing: -.5px; margin-top: auto; padding-top: 4px; overflow-wrap: anywhere; }
.sd-target-reference { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; font-size: 11px; color: var(--muted); margin-top: 10px; }
.sd-target-reference b { color: var(--text-2); font-weight: 550; margin-left: 5px; }
.sd-target-note { border-top: 1px solid var(--line); padding-top: 7px; margin: 8px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.sd-financials { display: flex; flex-direction: column; }
.sd-financials .sd-financial-plot { flex: 1; display: flex; align-items: center; }
.sd-forecast .tbl-scroll { border-radius: 9px; background: transparent; }
.sd-forecast-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.sd-forecast-table th, .sd-forecast-table td { padding: 9px 8px; white-space: nowrap; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; font-weight: 450; }
.sd-forecast-table th:last-child, .sd-forecast-table td:last-child { border-right: 0; }
.sd-forecast-table tr:last-child th, .sd-forecast-table tr:last-child td { border-bottom: 0; }
.sd-forecast-table thead { color: var(--text-2); background: var(--raised); }
.sd-forecast-table tbody th { text-align: left; }
.sd-forecast-table .sd-derived-value { text-decoration: underline dashed var(--muted); text-underline-offset: 5px; }
.sd-forecast-table sup { font-size: 8px; margin-left: 1px; }
.sd-estimate-meta { display: flex; gap: 20px; justify-content: space-between; color: var(--muted); font-size: 10.5px; margin-top: 13px; }
.sd-estimate-meta b { display: block; color: var(--text-2); font-weight: 550; margin-top: 3px; }
.sd-notice { display: flex; align-items: center; gap: 10px; min-height: 42px; width: 100%; padding: 9px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--raised); color: var(--text-2); font-size: 12px; text-align: left; margin-bottom: 15px; }
.sd-notice > .ic:first-child { color: var(--warn); flex-shrink: 0; }
.sd-notice > .ic:last-child { margin-left: auto; flex-shrink: 0; }
.sd-notice-critical { border-color: var(--neg); }
.sd-notice-critical > .ic:first-child { color: var(--neg); }
.sd-source-notes { padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; color: var(--text-2); margin-bottom: 15px; background: var(--surface); }
.sd-source-notes summary { cursor: pointer; }
.sd-source-notes p { line-height: 1.8; overflow-wrap: anywhere; margin: 12px 0 0; }
.sd-dashboard > .dsec { border: 1px solid var(--line); background: var(--surface); border-radius: 9px; padding: 18px 20px; margin-bottom: 15px; }
.sd-dashboard > .dsec h2 { font-size: 20px; }
.sd-dashboard > .dsec .hl-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.sd-dashboard .hl { background: var(--raised); border-color: var(--line); border-radius: 7px; }
.sd-score-details { margin-bottom: 15px; }
.sd-score-details .scorebox { margin-top: 14px; background: var(--raised); border-radius: 9px; }
.sd-score-details .bars { max-width: 780px; }
.sd-score-details .bar-row { grid-template-columns: 110px 1fr 35px 40px; }
.sd-mini-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-top: 20px; }
.sd-mini-metrics span { display: block; font-size: 12px; color: var(--muted); }
.sd-mini-metrics b { display: block; font-size: 22px; margin-top: 4px; }
.sd-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; padding: 18px 0 0; }
.sd-footer i { display: inline-block; height: 5px; width: 5px; background: var(--pos); border-radius: 50%; margin-right: 7px; }
.sd-footer button { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); }
.sd-missing-back { margin: 20px; }
:root[data-theme="light"] .stock-shell { --bg: #f1f5f8; --surface: #fff; --raised: #edf3f8; --hover: #e1ecf6; --line: #d3dfe8; --line-2: #bacbd9; --text: #142936; --text-2: #3e586d; --muted: #4f687c; --accent: #1261b2; --pos: #006e50; --neg: #b62943; --warn: #8a5a00; --glass: #f1f5f8f2; }
:root[data-theme="light"] .sd-panel, :root[data-theme="light"] .sd-summary { background: var(--surface); }
:root[data-theme="light"] .sd-tabs.ptabs .chip[aria-pressed="true"] { color: #1261b2; }
:root[data-theme="light"] .sd-chart-empty { background: radial-gradient(ellipse, #fff 45%, #ffffffeb 65%, transparent 72%); }
:root[data-theme="light"] .sd-profile-track { background: #d8e4ed; }
:root[data-theme="light"] .sd-current-point rect, :root[data-theme="light"] .sd-current-point circle { fill: #63edc7; }
@media (min-width: 900px) { .sd-main-grid { min-height: 406px; } .sd-price-chart { height: 280px; flex: 0 0 280px; } .sd-price-foot { margin-top: auto; } }
@media (min-width: 1700px) { .sd-price, .sd-profile { min-height: 440px; } .sd-price-chart { flex: 1; } }
@media (max-width: 1350px) {
  .stock-shell .brand { margin-right: 25px; font-size: 19px; }
  .stock-shell .topbar { gap: 18px; padding: 0 22px; }
  .stock-shell .tnav { gap: 0; }
  .stock-shell .tnav button { padding: 0 10px; font-size: 13px; }
  .sd-hero { gap: 22px; }
  .sd-identity { flex-basis: 340px; gap: 18px; }
  .sd-quote { gap: 10px; flex-wrap: wrap; }
  .sd-quote b { font-size: 15px; }
  .sd-hero-actions { gap: 8px; }
  .sd-button { font-size: 12px; padding: 0 13px; }
  .sd-summary > div { padding: 0 16px; }
  .sd-summary span { font-size: 11px; }
  .sd-panel { padding: 16px; }
  .sd-panel h2 { font-size: 19px; }
  .sd-profile-row { gap: 8px; grid-template-columns: minmax(0, 1.2fr) minmax(50px, .8fr) 66px; }
  .sd-profile-row strong { font-size: 11px; }
  .sd-segment button { padding: 0 11px; }
}
@media (min-width: 900px) and (max-width: 1100px) {
  .stock-shell .brand { margin-right: 0; font-size: 17px; gap: 8px; }
  .stock-shell .tnav button { padding: 0 8px; font-size: 12px; }
  .sd-hero { flex-wrap: wrap; gap: 14px 25px; }
  .sd-identity { flex: 1; }
  .sd-quote { flex-wrap: nowrap; }
  .sd-hero-actions { margin-left: 94px; }
  .sd-main-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .sd-second-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
  .sd-profile-row { grid-template-columns: minmax(0, 1fr) 62px; }
  .sd-profile-track { display: none; }
  .sd-dashboard > .dsec .hl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .stock-detail.page { inset: 0; }
  .sd-dashboard { padding: 0 14px calc(20px + var(--safe-b)); }
  .sd-breadcrumb { padding: calc(6px + var(--safe-t)) 0 4px; gap: 8px; font-size: 12px; }
  .sd-breadcrumb button { min-height: 44px; min-width: 44px; }
  .sd-hero { padding: 12px 0 18px; gap: 18px 22px; flex-wrap: wrap; }
  .sd-identity { flex: 1 1 50%; min-width: 240px; gap: 16px; }
  .sd-identity h1 { font-size: 30px; }
  .sd-identity .logo { width: 60px; height: 60px; border-radius: 10px; }
  .sd-identity .ptitle small { font-size: 12px; }
  .sd-quote { flex: 1; flex-wrap: nowrap; }
  .sd-quote > strong { font-size: 32px; }
  .sd-quote b { font-size: 16px; }
  .sd-hero-actions { width: 100%; margin: 0; }
  .sd-hero-actions .sd-button { font-size: 13px; flex: 1; }
  .sd-tabs.ptabs { height: 48px; padding: 0; gap: 4px; margin-top: 0; }
  .sd-tabs.ptabs .chip { padding: 0 12px; font-size: 13px; flex-shrink: 0; }
  .sd-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); min-height: 150px; padding: 4px 0; }
  .sd-summary > div { padding: 9px 14px; }
  .sd-summary > div:nth-child(3) { border-right: 0; }
  .sd-summary strong { font-size: 21px; }
  .sd-main-grid, .sd-second-grid { grid-template-columns: 1fr; }
  .sd-price, .sd-profile { min-height: 360px; }
  .sd-profile { min-height: 350px; }
  .sd-profile-row { grid-template-columns: minmax(0, 1.3fr) minmax(80px, 1fr) 70px; min-height: 57px; }
  .sd-profile-row strong { font-size: 12px; }
  .sd-profile-row b { font-size: 14px; }
  .sd-profile-row small { font-size: 12px; }
  .sd-analysis p { font-size: 14px; }
  .sd-profile-foot button { min-height: 44px; font-size: 12px; }
  .sd-panel-head { flex-wrap: wrap; }
  .sd-panel h2, .sd-dashboard > .dsec h2 { font-size: 20px; }
  .sd-segment button, .sd-segment > span { min-height: 36px; }
  .sd-price-foot { gap: 10px; font-size: 11px; flex-wrap: wrap; }
  .sd-price-foot a { min-height: 44px; }
  .sd-price-chart > svg { min-height: 230px; }
  .sd-financial-plot { margin-top: 12px; }
  .sd-forecast-controls select { min-height: 44px; font-size: 12px; }
  .sd-forecast-table { font-size: 13px; }
  .sd-forecast-table td, .sd-forecast-table th { padding: 11px 10px; }
  .sd-footnote { font-size: 11px; }
  .sd-dashboard > .dsec { padding: 16px; }
  .sd-dashboard > .dsec .hl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sd-mini-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sd-footer { flex-wrap: wrap; line-height: 1.6; }
  .sd-footer button { min-height: 44px; }
  .sd-notice { min-height: 44px; }
  .sd-missing-back { min-height: 44px; }
  .sd-source-notes summary { min-height: 44px; display: list-item; padding-top: 12px; }
}
@media (max-width: 520px) {
  .sd-dashboard { padding-left: 12px; padding-right: 12px; }
  .sd-hero { gap: 15px; }
  .sd-identity { flex-basis: 100%; }
  .sd-quote { gap: 16px; flex-wrap: wrap; min-width: 0; }
  .sd-identity h1 { font-size: 29px; }
  .sd-quote > strong { font-size: 34px; }
  .sd-quote b { font-size: 15px; }
  .sd-button { gap: 7px; padding: 0 9px; }
  .sd-summary > div { padding: 10px; }
  .sd-summary strong { font-size: 18px; }
  .sd-summary span { font-size: 10px; white-space: normal; min-height: 24px; }
  .sd-panel, .sd-forecast.dsec { padding: 15px 12px; }
  .sd-panel h2 { font-size: 18px; }
  .sd-periods { width: 100%; justify-content: space-between; }
  .sd-periods button { flex: 1; }
  .sd-price-chart { height: 260px; min-height: 260px; flex: 0 0 260px; display: block; }
  .sd-price-chart > svg { height: 260px; min-height: 0; }
  .sd-chart-empty { width: 65%; }
  .sd-chart-empty b { font-size: 13px; }
  .sd-chart-empty p { font-size: 10px; }
  .sd-chart-empty br { display: none; }
  .sd-profile-row { grid-template-columns: minmax(0, 1.2fr) minmax(45px, .7fr) 65px; gap: 8px; }
  .sd-profile-row b { font-size: 13px; }
  .sd-profile-row small { font-size: 10px; }
  .sd-profile-row strong { font-size: 11px; }
  .sd-profile-track { height: 10px; }
  .sd-profile-foot { justify-content: flex-start; }
  .sd-dashboard > .dsec .hl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sd-score-details .bar-row { grid-template-columns: 92px 1fr 28px 34px; gap: 6px; font-size: 12px; }
  .sd-score-details .scorebox { padding: 12px; gap: 12px; }
  .sd-breadcrumb > span:last-of-type { max-width: 35%; }
  .sd-bars-chart { height: 180px; }
  .sd-bars-chart text { font-size: 9px; }
  .sd-forecast-table { font-size: 11px; }
  .sd-forecast-table td, .sd-forecast-table th { padding: 11px 5px; }
}

/* Tarama panosu — referansın iki sütunlu düzeni, gerçek veri ve erişilebilir kontroller. */
.screener-shell { --accent-fill: #006cda; }
.screener-shell .topbar { height: 60px; gap: 24px; padding: 0 32px; }
.screener-shell .brand { margin-right: 18px; }
.screener-shell .tsearch { max-width: 325px; flex-basis: 325px; margin-left: auto; }
.sc-screen { background: var(--bg); }
.sc-dashboard { max-width: 1900px; margin: 0 auto; padding: 23px 32px 18px; }
.sc-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.sc-heading h1 { font-size: clamp(34px, 3.2vw, 48px); font-weight: 780; line-height: 1.2; letter-spacing: -1.1px; margin: 0 0 2px; }
.sc-heading p { font-size: clamp(16px, 1.5vw, 22px); color: var(--muted); margin: 0; line-height: 1.5; }
.sc-heading-actions { display: flex; align-items: center; flex: none; gap: 12px; }
.sc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 39px; border: 1px solid var(--line-2); border-radius: 7px; padding: 8px 16px; color: var(--text); background: linear-gradient(130deg, var(--raised), var(--surface)); font-size: 13px; font-weight: 550; white-space: nowrap; transition: background .15s, border-color .15s; }
.sc-btn:hover:not(:disabled) { background: var(--hover); border-color: var(--accent); }
.sc-btn.primary { color: #fff; border-color: #0878f5; background: linear-gradient(130deg, #0068cd, #006bdd); }
.sc-btn.primary:hover:not(:disabled) { background: #005fc1; }
.sc-btn:disabled { opacity: .45; cursor: default; }
.sc-heading-actions .sc-btn { min-height: 46px; font-size: 14px; padding: 10px 22px; }
.sc-heading-actions small { border-radius: 4px; background: var(--hover); padding: 1px 5px; }
.sc-preset-row { display: flex; align-items: stretch; gap: 12px; margin-bottom: 18px; }
.sc-presets { display: flex; gap: 9px; flex-wrap: wrap; }
.sc-preset { display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 46px; padding: 11px 21px; min-width: 168px; border: 1px solid var(--line-2); border-radius: 8px; background: linear-gradient(115deg, var(--surface), var(--raised)); font-size: 14px; font-weight: 550; white-space: nowrap; }
.sc-preset.active { background: linear-gradient(130deg, #0068cd, #006bdd); color: #fff; border-color: #1087ff; }
.sc-preset:hover:not(.active) { border-color: var(--accent); background: var(--hover); }
.sc-more-presets { margin-left: auto; display: flex; min-width: 0; }
.sc-screen select { min-height: 39px; color: var(--text-2); background-color: var(--surface); border: 1px solid var(--line-2); border-radius: 6px; padding: 8px 27px 8px 12px; font-size: 13px; max-width: 100%; }
.sc-more-presets select { width: 168px; color: var(--muted); font-size: 12px; }
.sc-workspace { display: grid; grid-template-columns: 318px minmax(0, 1fr); gap: 18px; align-items: start; }
.sc-filters, .sc-results { border: 1px solid var(--line); border-radius: 11px; background: linear-gradient(115deg, var(--surface), var(--bg)); min-width: 0; }
.sc-filters { padding: 17px 18px 14px; }
.sc-filter-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.sc-filter-heading h2 { margin: 0; font-size: 21px; line-height: 1.6; font-weight: 700; }
.sc-filter-heading > button { display: flex; align-items: center; gap: 7px; min-height: 32px; color: var(--accent); font-size: 13px; }
.sc-field { margin: 0 0 18px; min-width: 0; }
.sc-field-label { display: flex; gap: 7px; align-items: center; margin-bottom: 6px; font-size: 13px; font-weight: 500; }
.sc-field-label label { min-width: 0; }
.sc-field-label small { font-size: 11px; color: var(--muted); }
.sc-info { color: var(--muted); display: inline-flex; flex: none; }
.sc-field > select { width: 100%; }
.sc-field input[type="text"], .sc-index-add select { min-height: 38px; width: 100%; min-width: 0; background: linear-gradient(120deg, var(--raised), var(--surface)); border: 1px solid var(--line-2); border-radius: 6px; padding: 8px 10px; font-size: 13px; color: var(--text-2); outline-offset: 1px; }
.sc-field input::placeholder { color: var(--muted); opacity: 1; }
.sc-bounds { display: flex; align-items: center; gap: 8px; }
.sc-bounds > span { color: var(--muted); }
.sc-slider-row { display: grid; grid-template-columns: 132px minmax(0, 1fr); align-items: center; gap: 11px; }
.sc-threshold { display: flex; align-items: center; padding-left: 10px; border: 1px solid var(--line-2); background: var(--raised); border-radius: 6px; font-size: 12px; color: var(--text-2); overflow: hidden; }
.sc-threshold > span { white-space: nowrap; }
.sc-threshold input[type="text"] { border: 0; background: transparent; padding: 8px 5px; flex: 1; width: 56px; text-align: left; }
.sc-range { accent-color: #1487ff; width: 100%; min-width: 0; height: 30px; cursor: pointer; }
.sc-debt-floor { display: flex; align-items: center; gap: 10px; margin-top: 5px; font-size: 11px; color: var(--muted); }
.sc-debt-floor input[type="text"] { min-height: 27px; padding: 3px 8px; width: 64px; font-size: 11px; }
.sc-remove { margin-left: auto; color: var(--muted); padding: 4px; }
.sc-field.has-error input[type="text"], .sc-field.has-error .sc-threshold { border-color: var(--neg); }
.sc-error { display: block; margin-top: 5px; color: var(--neg); font-size: 11px; }
.sc-add-filter { width: 100%; color: var(--accent); }
.sc-auto { display: block; color: var(--muted); margin-top: 9px; font-size: 11px; }
.sc-results { overflow: hidden; }
.sc-results-heading { display: flex; gap: 14px; justify-content: space-between; align-items: center; padding: 18px 18px 11px; }
.sc-count { display: flex; align-items: baseline; gap: 16px; white-space: nowrap; }
.sc-count h2 { margin: 0; font-size: 28px; font-weight: 750; letter-spacing: -.6px; }
.sc-count > span { font-size: 12px; color: var(--muted); }
.sc-result-actions { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sc-result-actions .sc-btn { padding: 8px 13px; }
.sc-result-search { display: flex; align-items: center; gap: 9px; background: var(--raised); border: 1px solid var(--line-2); border-radius: 6px; padding: 0 11px; height: 39px; color: var(--muted); width: 244px; min-width: 135px; }
.sc-result-search input { border: 0; background: none; min-width: 0; outline: 0; flex: 1; width: 100%; font-size: 13px; height: 100%; }
.sc-result-search input::placeholder { color: var(--muted); opacity: 1; }
.sc-result-search:focus-within { border-color: var(--accent); outline: 1px solid var(--accent); }
.sc-result-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.sc-result-search button { display: grid; place-items: center; color: var(--muted); width: 20px; height: 30px; }
.sc-active-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 0 18px 13px; min-height: 45px; border-bottom: 1px solid var(--line); }
.sc-chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); background: var(--raised); border-radius: 20px; padding: 6px 11px; font-size: 11px; font-weight: 500; color: var(--text); min-height: 30px; }
.sc-chip .ic { color: var(--muted); }
.sc-chip:hover { border-color: var(--accent); }
.sc-no-filters { font-size: 12px; color: var(--muted); }
.sc-table-scroll { overflow: auto; scrollbar-width: thin; min-height: 300px; }
.sc-table { width: 100%; border-collapse: collapse; white-space: nowrap; font-size: 14px; }
.sc-table th { background: var(--surface); color: var(--muted); height: 41px; font-size: 12px; font-weight: 500; border-bottom: 1px solid var(--line); }
.sc-table th, .sc-table td { text-align: right; padding: 0 14px; }
.sc-table th > button { display: inline-flex; align-items: center; justify-content: flex-end; gap: 5px; min-height: 40px; width: 100%; color: var(--text-2); }
.sc-table th small { font-size: 9px; font-weight: 600; opacity: .9; }
.sc-table th.sc-company-col, .sc-table td:nth-child(2) { text-align: left; padding-left: 0; }
.sc-table th.sc-company-col > button { justify-content: flex-start; }
.sc-table .sc-company-col { width: 23%; }
.sc-table th.sc-select-col, .sc-table td:first-child { padding: 0 11px 0 16px; width: 50px; }
.sc-table .sc-star-col, .sc-table td:last-child { padding: 0 14px 0 6px; width: 50px; }
.sc-star-col > .ic { margin: 0 auto; }
.sc-table tbody tr { border-bottom: 1px solid var(--line); }
.sc-table tbody tr:last-child { border-bottom: 0; }
.sc-table tbody tr:hover { background: var(--hover); }
.sc-table tbody tr.selected { background: linear-gradient(90deg, #087cf423, #087cf413); }
.sc-table tbody tr.selected td { box-shadow: inset 0 1px #087cf41c; }
.sc-company { display: flex; align-items: center; gap: 12px; min-height: 51px; width: 100%; text-align: left; }
.sc-company > span:last-child { display: flex; flex-direction: column; min-width: 0; max-width: 190px; }
.sc-company b { font-size: 14px; font-weight: 650; }
.sc-company small { color: var(--muted); font-size: 13px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.sc-company .logo { width: 32px; height: 32px; min-width: 32px; border-radius: 6px; color: var(--text); font-size: 11px; }
.sc-company .logo:has(img.ok) { color: transparent; }
.sc-company:hover b { color: var(--accent); }
.sc-check { height: 40px; width: 24px; display: inline-flex; position: relative; align-items: center; justify-content: center; cursor: pointer; vertical-align: middle; }
.sc-check input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.sc-check > span { width: 20px; height: 20px; border: 1px solid #7692a6; border-radius: 4px; background: var(--raised); pointer-events: none; }
.sc-check input:checked + span { background: #006cda; border-color: #4eaaff; }
.sc-check input:checked + span::after { content: ""; display: block; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: translate(6px, 2px) rotate(45deg); }
.sc-check input:indeterminate + span::after { content: ""; display: block; height: 2px; width: 10px; background: var(--text); transform: translate(4px, 8px); }
.sc-check input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.sc-check input:disabled + span { opacity: .35; }
.sc-star { display: grid; place-items: center; width: 32px; height: 40px; color: var(--muted); }
.sc-star[aria-pressed="true"] { color: var(--warn); }
.sc-results-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; border-top: 1px solid var(--line); padding: 13px 18px; min-height: 72px; }
.sc-selection { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.sc-selection strong { font-size: 12px; font-weight: 600; }
.sc-selection > small { font-size: 11px; }
.sc-footer-divider { width: 1px; height: 22px; background: var(--line-2); margin: 0 12px 0 8px; }
.sc-selection .sc-btn { min-height: 44px; padding: 9px 20px; }
.sc-clear-selection { width: 22px; height: 30px; display: grid; place-items: center; color: var(--muted); }
.sc-pagination { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.sc-page-size select { padding: 5px 5px 5px 7px; min-height: 33px; font-size: 11px; border-color: var(--line); width: 84px; }
.sc-page-count { color: var(--text-2); font-size: 12px; white-space: nowrap; }
.sc-pagination nav, .sc-page-part { display: flex; align-items: center; gap: 5px; }
.sc-page { display: grid; place-items: center; height: 35px; min-width: 34px; padding: 0 7px; border-radius: 6px; color: var(--text); font-size: 12px; border: 1px solid transparent; }
.sc-page:first-child, .sc-page:last-child { border-color: var(--line); }
.sc-page[aria-current="page"] { color: #fff; background: #006cda; border-color: #1684ff; }
.sc-page:disabled { opacity: .3; cursor: default; background: var(--raised); }
.sc-page:hover:not(:disabled):not([aria-current]) { background: var(--hover); }
.sc-ellipsis { color: var(--muted); padding: 0 3px; }
.sc-footnote { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 8px 18px; color: var(--muted); font-size: 11px; padding: 12px 1px 0; }
.sc-footnote > span:first-child { display: flex; align-items: center; gap: 8px; }
.sc-notice { display: flex; align-items: start; gap: 8px; padding: 11px 16px; font-size: 12px; color: var(--warn); background: var(--warn-bg); border-bottom: 1px solid var(--line); }
.sc-notice > .ic { margin-top: 1px; }
.sc-notice > button { margin-left: auto; color: var(--accent); text-decoration: underline; flex: none; }
.sc-empty { display: flex; align-items: center; flex-direction: column; text-align: center; gap: 10px; padding: 60px 25px; color: var(--muted); }
.sc-empty h3 { color: var(--text); font-size: 17px; margin: 0; }
.sc-empty p { font-size: 13px; max-width: 380px; margin: 0 0 10px; }
.sc-panel { padding: 8px 20px 22px; }
.sc-panel > p { color: var(--muted); font-size: 13px; margin: 0 0 14px; }
.sc-link { color: var(--accent); min-height: 40px; margin-bottom: 8px; text-decoration: underline; }
.sc-options { display: flex; flex-direction: column; }
.sc-options > label { display: flex; gap: 12px; align-items: center; min-height: 51px; border-bottom: 1px solid var(--line); padding: 8px 0; cursor: pointer; }
.sc-options input[type="checkbox"] { width: 20px; height: 20px; accent-color: #006cda; flex: none; }
.sc-options span { min-width: 0; }
.sc-options small { display: block; color: var(--muted); font-size: 11px; line-height: 1.5; margin-top: 3px; }
.sc-index-add { display: flex; flex-direction: column; gap: 6px; padding: 4px 0 12px; }
.sc-index-add label { font-size: 13px; color: var(--text-2); }
.sc-add-option { display: flex; gap: 12px; align-items: center; min-height: 55px; padding: 9px 0; text-align: left; border-bottom: 1px solid var(--line); }
.sc-add-option > .ic { color: var(--accent); }
.sc-saved-item { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.sc-saved-item > button:first-child { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; text-align: left; min-height: 52px; }
.sc-saved-item b { display: block; overflow-wrap: anywhere; font-size: 14px; }
.sc-saved-item small { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; }
.sc-saved-empty { display: flex; flex-direction: column; align-items: center; padding: 30px 12px; text-align: center; color: var(--muted); }
.sc-saved-empty h3 { color: var(--text); font-size: 17px; }
.sc-saved-empty p { font-size: 13px; }
.sc-mobile-tools { display: none; }
@media (max-width: 1370px) {
  .sc-dashboard { padding: 22px 24px 18px; }
  .sc-workspace { grid-template-columns: 278px minmax(0, 1fr); gap: 16px; }
  .sc-heading h1 { font-size: 40px; }
  .sc-heading-actions .sc-btn { padding: 9px 15px; font-size: 12px; }
  .sc-preset { min-width: 145px; padding: 10px 15px; gap: 12px; font-size: 13px; }
  .sc-count { gap: 8px; }
  .sc-count h2 { font-size: 24px; }
  .sc-count > span { font-size: 11px; }
  .sc-result-search { width: 190px; }
  .sc-result-actions { gap: 7px; }
  .sc-result-actions .sc-btn { padding: 8px 10px; font-size: 12px; gap: 6px; }
  .sc-table th, .sc-table td { padding-left: 10px; padding-right: 10px; }
  .sc-company > span:last-child { max-width: 160px; }
  .sc-results-footer { gap: 10px; }
  .sc-pagination { gap: 10px; }
  .sc-selection strong { font-size: 11px; }
  .sc-selection .sc-btn { padding: 9px 14px; }
  .sc-footer-divider { margin: 0 4px; }
}
@media (max-width: 1150px) {
  .screener-shell .topbar { gap: 12px; padding: 0 22px; }
  .screener-shell .brand { margin-right: 0; }
  .screener-shell .tnav button { font-size: 12px; padding: 0 8px; }
  .sc-heading { gap: 15px; align-items: start; }
  .sc-heading h1 { font-size: 35px; }
  .sc-heading p { font-size: 15px; }
  .sc-heading-actions { gap: 7px; }
  .sc-heading-actions .sc-btn { gap: 6px; padding: 8px 10px; }
  .sc-workspace { grid-template-columns: 252px minmax(0, 1fr); }
  .sc-filters { padding: 14px; }
  .sc-slider-row { grid-template-columns: 125px minmax(0, 1fr); gap: 8px; }
  .sc-results-heading { align-items: start; flex-wrap: wrap; }
  .sc-result-actions { width: 100%; }
  .sc-result-search { margin-left: auto; flex: 1; max-width: 300px; }
  .sc-table { min-width: 820px; }
  .sc-preset-row { flex-wrap: wrap; }
  .sc-presets { flex: 1; }
  .sc-preset { flex: 1; min-width: 130px; padding: 9px 12px; font-size: 12px; gap: 8px; }
  .sc-more-presets { margin-left: 0; }
  .sc-more-presets select { width: 150px; }
  .sc-pagination { flex-wrap: wrap; }
}
@media (max-width: 899px) {
  .sc-dashboard { padding: 22px 20px 18px; }
  .sc-heading { flex-wrap: wrap; gap: 18px; }
  .sc-heading h1 { font-size: 36px; margin-bottom: 5px; }
  .sc-heading p { font-size: 16px; }
  .sc-heading-actions { width: 100%; gap: 10px; }
  .sc-heading-actions .sc-btn { font-size: 13px; padding: 10px 16px; min-height: 44px; }
  .sc-preset-row { flex-direction: column; gap: 10px; }
  .sc-presets { flex-wrap: nowrap; overflow-x: auto; padding: 2px 2px 6px; margin: 0 -2px; scrollbar-width: thin; }
  .sc-preset { min-width: auto; flex: none; min-height: 44px; font-size: 13px; padding: 10px 15px; gap: 10px; }
  .sc-more-presets { align-self: flex-start; }
  .sc-more-presets select { min-height: 44px; width: 190px; }
  .sc-mobile-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
  .sc-mobile-tools > span { font-size: 13px; color: var(--muted); }
  .sc-mobile-tools .sc-btn { min-height: 44px; }
  .sc-workspace { display: flex; flex-direction: column; gap: 14px; }
  .sc-filters { display: none; width: 100%; }
  .sc-filters.expanded { display: block; }
  .sc-filters .sc-field { display: inline-block; vertical-align: top; width: calc(50% - 8px); margin: 0 4px 18px; }
  .sc-filters .sc-filter-heading { margin: 0 4px 14px; }
  .sc-filter-heading > button { min-height: 44px; }
  .sc-field input[type="text"], .sc-screen select { min-height: 44px; }
  .sc-filters .sc-add-filter { min-height: 44px; }
  .sc-results { width: 100%; }
  .sc-results-heading { padding: 16px 14px 12px; gap: 12px; }
  .sc-count { gap: 14px; }
  .sc-count h2 { font-size: 25px; }
  .sc-count > span { font-size: 12px; }
  .sc-result-actions { flex-wrap: wrap; gap: 8px; }
  .sc-result-actions .sc-btn { min-height: 44px; padding: 10px 14px; font-size: 13px; }
  .sc-result-search { min-height: 46px; width: auto; flex: 1; max-width: none; }
  .sc-result-search input { font-size: 14px; min-height: 44px; }
  .sc-result-search button { width: 44px; min-height: 44px; }
  .sc-active-filters { padding: 0 14px 12px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
  .sc-chip { min-height: 44px; padding: 8px 12px; flex-shrink: 0; white-space: nowrap; }
  .sc-table { min-width: 930px; }
  .sc-table th, .sc-table td { padding: 0 12px; }
  .sc-table th > button { min-height: 44px; }
  .sc-table .sc-select-col, .sc-table td:first-child { width: 65px; }
  .sc-check { width: 44px; height: 44px; }
  .sc-company { min-height: 61px; }
  .sc-company > span:last-child { max-width: 185px; }
  .sc-company b { font-size: 14px; }
  .sc-star { width: 44px; height: 44px; }
  .sc-results-footer { padding: 14px; gap: 16px; }
  .sc-selection { gap: 8px; }
  .sc-selection strong { font-size: 12px; }
  .sc-clear-selection { width: 44px; height: 44px; }
  .sc-range { min-height: 44px; }
  .sc-remove { min-width: 44px; min-height: 44px; display: grid; place-items: center; }
  .sc-pagination { margin-left: 0; justify-content: space-between; width: 100%; gap: 12px 8px; }
  .sc-page { min-width: 44px; height: 44px; }
  .sc-page-size select { min-height: 44px; width: 90px; font-size: 12px; }
  .sc-pagination nav { margin-left: auto; }
  .sc-footnote { font-size: 11px; line-height: 1.7; }
  .sc-footnote > span:first-child { align-items: start; }
  .sc-footnote .ic { margin-top: 2px; }
  .sc-panel { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 550px) {
  .sc-dashboard { padding: 20px 12px 16px; }
  .sc-heading h1 { font-size: 34px; }
  .sc-heading p { font-size: 14px; }
  .sc-heading-actions { gap: 7px; }
  .sc-heading-actions .sc-btn { flex: 1; font-size: 11px; gap: 7px; padding: 10px 9px; }
  .sc-filters .sc-field { display: block; width: auto; margin: 0 0 18px; }
  .sc-filters .sc-filter-heading { margin-left: 0; margin-right: 0; }
  .sc-slider-row { grid-template-columns: 145px minmax(0, 1fr); gap: 15px; }
  .sc-results-heading { padding: 14px 12px 10px; }
  .sc-result-search { flex: 1 0 100%; order: -1; }
  .sc-result-actions .sc-btn { flex: 1; }
  .sc-active-filters { padding-left: 12px; padding-right: 12px; }
  .sc-chip { font-size: 10px; padding: 8px 10px; gap: 6px; }
  .sc-selection { width: 100%; gap: 6px; justify-content: space-between; }
  .sc-selection strong { max-width: 120px; font-size: 11px; }
  .sc-selection .sc-btn { min-width: 138px; font-size: 12px; }
  .sc-footer-divider { display: none; }
  .sc-page { min-width: 44px; }
  .sc-pagination nav { gap: 3px; flex-wrap: wrap; margin-left: 0; }
  .sc-page-part { gap: 3px; }
  .sc-ellipsis { padding: 0 1px; }
}

/* Ortak uygulama dili: aynı gezinme, tipografi, sayfa hiyerarşisi ve odak davranışı. */
.app-shell { --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-family: var(--font); --accent-fill: #006cda; }
.app-shell:not(.stock-shell):not(.portfolio-shell) { --bg: #0b1217; --surface: #101a21; --raised: #17232c; --hover: #1b2a35; --line: #26343e; --line-2: #3a4b58; --text: #f0f3f7; --text-2: #c0cedb; --muted: #99aabc; --accent: #71baff; --accent-soft: #087cf41c; --pos: #63edc7; --neg: #ff8092; --warn: #ffd052; --glass: #0b1217f2; }
:root[data-theme="light"] .app-shell:not(.stock-shell):not(.portfolio-shell) { --bg: #f1f5f8; --surface: #fff; --raised: #edf3f8; --hover: #e1ecf6; --line: #d3dfe8; --line-2: #bacbd9; --text: #142936; --text-2: #3e586d; --muted: #4f687c; --accent: #1261b2; --pos: #006e50; --neg: #b62943; --warn: #8a5a00; --glass: #f1f5f8f2; }
.app-shell .topbar { height: 60px; padding: 0 28px; gap: 24px; background: var(--bg); }
.app-shell .brand { font-size: 20px; white-space: nowrap; gap: 12px; margin-right: 14px; letter-spacing: -.6px; }
.app-shell .brand-mark { background: linear-gradient(135deg, #0c92ff, #0060cc); box-shadow: none; border-radius: 8px; width: 32px; height: 32px; font-size: 23px; color: #fff; font-weight: 800; display: grid; place-items: center; }
.app-shell .tnav { align-self: stretch; gap: 4px; }
.app-shell .tnav button { height: 100%; padding: 3px 14px 0; border-bottom: 3px solid transparent; border-radius: 0; color: var(--text-2); background: none; font-size: 13px; font-weight: 550; white-space: nowrap; }
.app-shell .tnav button .ic { display: none; }
.app-shell .tnav button[aria-current="page"] { color: var(--accent); border-bottom-color: #1684ff; background: none; }
.app-shell .tsearch { flex: 1 1 280px; max-width: 360px; min-width: 160px; margin-left: auto; }
.app-shell .tsearch input { min-height: 39px; border-radius: 7px; font-size: 12px; background: var(--surface); }
.app-shell .tsearch kbd { display: none; }
.app-shell .tright { display: flex; align-items: center; gap: 14px; }
.header-watchlist { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--text-2); font-size: 12px; white-space: nowrap; }
.header-watchlist:hover { color: var(--accent); }
.app-shell .tright .ibtn { border-radius: 8px; background: var(--surface); }
.page-eyebrow { display: block; color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: 1.7px; margin-bottom: 5px; }
.market-intro { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 22px 24px 15px; }
.market-intro h1 { font-size: 32px; line-height: 1.2; letter-spacing: -.9px; margin: 0 0 5px; }
.market-intro p { font-size: 13px; color: var(--muted); margin: 0; }
.market-intro-note { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.app-shell .tbar { flex-wrap: wrap; gap: 8px; padding: 10px 22px; background: transparent; }
.app-shell .tbar .tsel { max-width: 190px; min-height: 38px; border-radius: 7px; }
.app-shell .tbar .tbtn { border-radius: 7px; min-height: 38px; }
.app-shell .kpis { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 9px; padding: 0; margin: 4px 22px 15px; border: 0; }
.app-shell .kpi { padding: 13px 15px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; min-width: 0; }
.app-shell .kpi small { font-size: 9px; letter-spacing: .5px; white-space: normal; }
.app-shell .kpi b { font-size: 19px; margin-top: 5px; letter-spacing: -.4px; }
.app-shell .tbody-wrap { margin: 0 22px 16px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.app-shell .grid .c-sym .logo { color: var(--text); }
.app-shell .grid .c-sym .logo:has(img.ok) { color: transparent; }
.app-shell .grid .chk { width: 24px; height: 24px; min-width: 24px; }
.app-shell .grid .chk:focus-visible { opacity: 1; outline: 2px solid var(--accent); }
.app-shell .grid tbody tr:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.app-shell .list > .it[aria-selected="true"] { color: var(--accent); font-weight: 650; }
.input-error { display: block; margin-top: 7px; color: var(--neg); font-size: 12px; }
.input[aria-invalid="true"] { border-color: var(--neg); }
.mobile-list-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 15px 12px 10px; }
.mobile-list-title > div:first-child > span { color: var(--muted); font-size: 9px; letter-spacing: 1.6px; font-weight: 650; }
.mobile-list-title h1 { margin: 2px 0 0; font-size: 28px; line-height: 1.2; letter-spacing: -.8px; }
.mobile-list-title > div:last-child { display: flex; gap: 7px; }
.mobile-list-title .ibtn { border-radius: 9px; }
.app-shell .card { background: var(--surface); border-radius: 12px; }
.app-shell .card .logo { color: var(--text); }
.app-shell .card .logo:has(img.ok) { color: transparent; }
.daha-s .phdr h1 { font-size: 34px; line-height: 1.25; }
.daha-s .sgrp { border: 1px solid var(--line); background: var(--surface); border-radius: 14px; overflow: hidden; padding-top: 16px; }
.daha-s .sgrp > h2 { margin: 0; padding: 0 18px 13px; font-size: 10px; letter-spacing: 1.2px; }
.daha-s .srow { background: transparent; }
.daha-s .srow:hover { background: var(--hover); }
.daha-s .fresh { border-top: 0; background: var(--surface); }
.daha-s .si { border-radius: 9px; background: var(--raised); }
.app-shell .full-page { inset: 60px 0 0; width: 100%; border: 0; box-shadow: none; animation: none; }
.review-page-header { display: flex; align-items: center; gap: 16px; padding: 21px 28px 18px; border-bottom: 1px solid var(--line); }
.review-page-header > div { flex: 1; min-width: 0; }
.review-page-header h1 { font-size: 28px; letter-spacing: -.7px; margin: 0 0 4px; line-height: 1.2; }
.review-page-header h1:focus { outline: none; }
.review-page-header p { color: var(--muted); margin: 0; font-size: 12px; }
.review-page-header > .ibtn { background: var(--surface); border: 1px solid var(--line); border-radius: 9px; }
.review-page-header > .sc-btn { min-height: 44px; }
.compare-tools { display: flex; align-items: center; gap: 12px; padding: 14px 28px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.review-search { display: flex; align-items: center; gap: 9px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 8px; padding: 0 12px; min-height: 44px; color: var(--muted); min-width: 0; }
.review-search:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
.review-search input { flex: 1; width: 100%; min-width: 0; border: 0; background: transparent; min-height: 42px; outline: none; font-size: 13px; }
.review-search input::placeholder { color: var(--muted); }
.compare-tools .review-search { flex: 1; max-width: 450px; min-width: 200px; }
.compare-tools .sc-btn { min-height: 44px; }
.compare-diff { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font-size: 12px; color: var(--text-2); cursor: pointer; }
.compare-diff input { accent-color: #006cda; width: 18px; height: 18px; }
.compare-page .cmp-wrap { padding: 0 24px 24px; }
.compare-page .cmp { max-width: 1800px; margin: 0 auto; padding-bottom: 0; border: 1px solid var(--line); border-top: 0; background: var(--surface); }
.compare-page .cmp-head { background: var(--surface); }
.compare-page .cmp-axis { position: sticky; left: 0; align-self: stretch; z-index: 5; background: var(--surface); display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 18px; color: var(--text-2); }
.cmp-axis b { font-size: 13px; }
.cmp-axis small { font-size: 11px; color: var(--muted); }
.compare-page .ch { padding: 19px 12px 15px; border-left: 1px solid var(--line); }
.compare-page .chb { gap: 5px; min-height: 125px; padding-top: 3px; }
.compare-page .chb small { max-width: 230px; width: 100%; }
.compare-page .chx { width: 30px; height: 30px; right: 7px; top: 6px; border-radius: 7px; }
.compare-page .chx:hover { color: var(--neg); background: var(--neg-bg); }
.compare-page .logo { width: 36px; height: 36px; color: var(--text); border-radius: 7px; }
.compare-page .logo:has(img.ok) { color: transparent; }
.compare-page .cl { background: var(--surface); overflow-wrap: anywhere; }
.compare-page .cv { font-weight: 550; overflow-wrap: anywhere; min-width: 0; }
.compare-page .cmp-r:hover .cl, .compare-page .cmp-r:hover .cv { background: var(--hover); }
.compare-page .cmp-g { min-height: 47px; }
.compare-page .cmp-g > span { display: flex; gap: 10px; align-items: center; }
.compare-page .cmp-g small { font-size: 10px; font-weight: 400; color: var(--muted); }
.compare-suggestions { display: flex; flex-direction: column; margin-top: 12px; }
.compare-suggestions > button { display: flex; gap: 12px; align-items: center; min-height: 65px; text-align: left; border-bottom: 1px solid var(--line); }
.compare-suggestions > button > span:last-of-type { flex: 1; min-width: 0; }
.compare-suggestions small { display: block; font-size: 11px; color: var(--muted); }
.review-note { margin: 0; padding: 10px 28px; font-size: 12px; color: var(--warn); background: var(--warn-bg); }
.analysis-page .pa-scroll > div { max-width: 1550px; margin: 0 auto; }
.analysis-page .pa-nav-b { min-height: 40px; border-radius: 7px; }
.analysis-page .pa-sec-box { margin: 0 24px 18px; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.analysis-page .pa-nav { margin-bottom: 20px; }
.analysis-page .pa-sec-box h2 { font-size: 20px; letter-spacing: -.4px; }
.analysis-page .pa-kpi { border-radius: 9px; }
.app-shell .cbar .btn.primary { background: #006cda; color: #fff; }
@media (min-width: 900px) {
  .app-shell .stock-detail.page { inset: 60px 0 0; }
  .daha-s .scroller { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-content: start; gap: 20px; padding: 26px 30px; }
  .daha-s .scroller > * { max-width: 1100px; width: 100%; margin: 0 auto; }
  .daha-s .scroller > .phdr, .daha-s .scroller > .disclaimer { grid-column: 1/-1; max-width: none; padding: 0 0 4px !important; }
}
@media (max-width: 1149px) and (min-width: 900px) {
  .app-shell .topbar { padding: 0 20px; gap: 14px; }
  .app-shell .brand { font-size: 18px; margin-right: 0; gap: 8px; }
  .app-shell .tnav button { padding-left: 9px; padding-right: 9px; font-size: 12px; }
  .header-watchlist { width: 36px; justify-content: center; }
  .header-watchlist span { display: none; }
  .app-shell .kpi { padding: 11px; }
  .app-shell .kpi b { font-size: 16px; }
  .market-intro-note { display: none; }
}
@media (max-width: 899px) {
  .app-shell .full-page { inset: 0; padding-top: var(--safe-t); }
  .app-shell input[type="search"], .app-shell input[type="text"], .app-shell input:not([type]), .app-shell select, .app-shell textarea { font-size: 16px; }
  .app-shell .bnav { background: var(--surface); }
  .review-page-header { gap: 10px; padding: 14px 12px; flex-wrap: wrap; }
  .review-page-header h1 { font-size: 23px; }
  .review-page-header p { font-size: 11px; }
  .review-page-header .page-eyebrow { font-size: 8px; }
  .review-page-header > .sc-btn { margin-left: 54px; font-size: 12px; }
  .compare-tools { gap: 8px; padding: 12px; }
  .compare-tools .review-search { flex: 1 0 100%; max-width: none; }
  .review-search { min-height: 46px; }
  .review-search input { min-height: 44px; }
  .compare-diff { flex: 1 0 100%; }
  .compare-tools .sc-btn { flex: 1; font-size: 12px; }
  .compare-page .cmp-wrap { padding: 0 0 20px; }
  .compare-page .ch { padding-top: 32px; }
  .compare-page .chx { width: 44px; height: 44px; right: 0; top: 0; background: transparent; }
  .compare-page .cmp-axis { padding: 12px; }
  .compare-page .chb small { max-width: 125px; }
  .compare-page .cmp-g { min-height: 48px; }
  .daha-s .scroller { padding: 18px 12px; }
  .daha-s .phdr { padding: 0 4px 16px; }
  .daha-s .phdr h1 { font-size: 29px; }
  .daha-s .sgrp { margin: 0 0 16px; }
  .daha-s .phdr p { font-size: 13px; }
  .analysis-page .pa-sec-box { margin: 0 12px 14px; padding: 16px 13px; }
  .analysis-page .pa-nav-b { min-height: 44px; }
  .analysis-page .pa-nav { margin-bottom: 14px; padding: 9px 12px; }
  .app-shell .nrow-h .ibtn { min-width: 44px; min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .app-shell *, .app-shell *::before, .app-shell *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
