/* FinVisio Terminal — v2
   Graphite workspace, one accent: FinVisio's brushed-metal red. Geist with tabular figures. */
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/geist-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/geist-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #0E1117; --panel: #131820; --raised: #1A202A; --hover: #1F2631; --line: #222934; --line-2: #2C3441;
  --text: #E7EBF0; --muted: #8A94A4; --faint: #5A6474;
  --up: #26C281; --up-bg: rgba(38, 194, 129, .12);
  --down: #F25C6B; --down-bg: rgba(242, 92, 107, .12);
  --amber: #E8B33F; --amber-bg: rgba(232, 179, 63, .13);
  --blue: #6E9BFF; --gold: #D4A93D;
  --red: #E4283A;
  --metal: linear-gradient(180deg, #F3505F 0%, #DD2A3D 46%, #B51C2E 54%, #9C1526 100%);
  --metal-soft: linear-gradient(180deg, rgba(243,80,95,.22), rgba(156,21,38,.18));
  --metal-edge: inset 0 1px 0 rgba(255,255,255,.30), inset 0 -1px 0 rgba(0,0,0,.25), 0 1px 2px rgba(0,0,0,.35);
  --shadow-pop: 0 18px 48px rgba(0,0,0,.45), 0 2px 8px rgba(0,0,0,.3);
  --r-lg: 14px; --r: 10px; --r-sm: 7px;
  --f: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #F3F4F6; --panel: #FFFFFF; --raised: #F3F5F8; --hover: #EEF1F5; --line: #E4E7EC; --line-2: #D5DAE1;
  --text: #11151B; --muted: #5D6672; --faint: #98A0AB;
  --up: #0E9F65; --up-bg: rgba(14,159,101,.10); --down: #D9384A; --down-bg: rgba(217,56,74,.09);
  --amber: #B7811A; --amber-bg: rgba(183,129,26,.11); --blue: #3767E0;
  --shadow-pop: 0 18px 48px rgba(17,21,27,.16), 0 2px 8px rgba(17,21,27,.08);
  --metal-edge: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -1px 0 rgba(0,0,0,.18), 0 1px 2px rgba(17,21,27,.18);
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --bg: #F3F4F6; --panel: #FFFFFF; --raised: #F3F5F8; --hover: #EEF1F5; --line: #E4E7EC; --line-2: #D5DAE1;
    --text: #11151B; --muted: #5D6672; --faint: #98A0AB;
    --up: #0E9F65; --up-bg: rgba(14,159,101,.10); --down: #D9384A; --down-bg: rgba(217,56,74,.09);
    --amber: #B7811A; --amber-bg: rgba(183,129,26,.11); --blue: #3767E0;
    --shadow-pop: 0 18px 48px rgba(17,21,27,.16), 0 2px 8px rgba(17,21,27,.08); color-scheme: light;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 450 13px/1.45 var(--f); font-feature-settings: "tnum" 1, "ss01" 1;
  -webkit-font-smoothing: antialiased; overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; border-radius: 4px; }
::selection { background: rgba(228, 40, 58, .35); }
.up { color: var(--up); } .down { color: var(--down); } .amber { color: var(--amber); }
.muted { color: var(--muted); } .faint { color: var(--faint); }
.hidden { display: none !important; }
svg.i { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

/* ============================================================== shell */
.shell { display: grid; grid-template-columns: 56px 1fr; grid-template-rows: 52px 1fr 26px; height: 100vh; }
.rail { grid-row: 1 / 4; background: var(--panel); border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; padding: 10px 0; gap: 4px; }
.rail .mark { width: 34px; height: 34px; border-radius: 9px; margin-bottom: 10px; box-shadow: var(--metal-edge); }
.rail a { position: relative; width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; color: var(--muted); text-decoration: none; }
.rail a:hover { background: var(--hover); color: var(--text); }
.rail a.on { color: #fff; background: var(--metal); box-shadow: var(--metal-edge); }
.rail a svg.i { width: 18px; height: 18px; }
.rail a::after { content: attr(data-tip); position: absolute; left: 46px; white-space: nowrap; background: var(--raised); border: 1px solid var(--line-2);
  color: var(--text); padding: 4px 8px; border-radius: 6px; font-size: 12px; opacity: 0; pointer-events: none; transform: translateX(-4px); transition: .12s; z-index: 30; }
.rail a:hover::after { opacity: 1; transform: none; }
.rail .grow { flex: 1; }

.top { display: flex; align-items: center; gap: 14px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--panel); min-width: 0; }
.brand { display: flex; align-items: baseline; gap: 8px; font-weight: 700; font-size: 15px; letter-spacing: -.01em; white-space: nowrap; }
.brand small { font-weight: 500; font-size: 12px; color: var(--muted); }
.cmdk { flex: 0 1 380px; display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; border-radius: 8px; background: var(--raised);
  border: 1px solid var(--line); color: var(--muted); cursor: text; min-width: 160px; }
.cmdk:hover { border-color: var(--line-2); }
.cmdk kbd { margin-left: auto; font: 600 11px var(--f); color: var(--faint); border: 1px solid var(--line-2); border-radius: 5px; padding: 0 5px; }
.mkt { display: flex; align-items: center; gap: 10px; padding: 0 12px; height: 32px; border-left: 1px solid var(--line); white-space: nowrap; }
.mkt b { font-weight: 650; }
.livepill { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--raised); border: 1px solid var(--line);
  font-size: 12px; color: var(--muted); white-space: nowrap; cursor: pointer; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); flex: none; }
.dot.live { background: var(--up); box-shadow: 0 0 0 3px var(--up-bg); }
.dot.closed { background: var(--amber); }
.dot.err { background: var(--down); }
.dot.busy { background: var(--blue); animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.top .grow { flex: 1; }
.userbtn { display: flex; align-items: center; gap: 8px; border: 0; background: none; cursor: pointer; padding: 4px 6px; border-radius: 8px; }
.userbtn:hover { background: var(--hover); }
.avatar { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 11px; color: #fff; background: var(--metal); box-shadow: var(--metal-edge); }
.userbtn span { text-align: left; line-height: 1.15; }
.userbtn small { display: block; color: var(--muted); font-size: 11px; }

.main { overflow: hidden; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.statusbar { grid-column: 2; display: flex; align-items: center; gap: 16px; padding: 0 14px; border-top: 1px solid var(--line); background: var(--panel);
  font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.statusbar .src { display: inline-flex; align-items: center; gap: 6px; }
.statusbar .grow { flex: 1; }
.demo-flag { color: #fff; background: var(--metal); padding: 1px 8px; border-radius: 4px; font-weight: 650; box-shadow: var(--metal-edge); }

/* ============================================================== controls */
.btn { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px; border-radius: 8px; border: 1px solid var(--line-2);
  background: var(--raised); cursor: pointer; font-weight: 550; font-size: 12.5px; white-space: nowrap; color: var(--text); }
.btn:hover { background: var(--hover); }
.btn.metal { color: #fff; border: 0; background: var(--metal); box-shadow: var(--metal-edge); text-shadow: 0 1px 0 rgba(0,0,0,.25); }
.btn.metal:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--hover); }
.btn.sm { height: 26px; padding: 0 8px; font-size: 12px; border-radius: 7px; }
.btn.icon { width: 30px; padding: 0; justify-content: center; }
.btn.sm.icon { width: 26px; }
.btn:disabled { opacity: .45; cursor: default; filter: none; }
.btn.danger { color: var(--down); }
.in { height: 30px; background: var(--raised); border: 1px solid var(--line-2); border-radius: 8px; padding: 0 9px; outline: none; min-width: 0; }
textarea.in { height: auto; padding: 8px 9px; resize: vertical; width: 100%; }
.in:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(110,155,255,.18); }
select.in { padding-right: 24px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 13px) 13px, calc(100% - 9px) 13px; background-size: 4px 4px; background-repeat: no-repeat; }
.switch { position: relative; width: 32px; height: 18px; flex: none; display: inline-block; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; background: var(--line-2); border-radius: 18px; transition: .15s; }
.switch i::after { content: ""; position: absolute; width: 14px; height: 14px; left: 2px; top: 2px; background: #fff; border-radius: 50%; transition: .15s; }
.switch input:checked + i { background: var(--up); }
.switch input:checked + i::after { transform: translateX(14px); }
.stepper { display: inline-flex; align-items: center; height: 26px; border: 1px solid var(--line-2); border-radius: 7px; background: var(--raised); }
.stepper button { width: 24px; height: 24px; border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 15px; }
.stepper button:hover { color: var(--text); }
.stepper b { min-width: 18px; text-align: center; font-weight: 650; }
.seg { display: inline-flex; background: var(--raised); border: 1px solid var(--line); border-radius: 8px; padding: 2px; }
.seg button { border: 0; background: none; height: 24px; padding: 0 9px; border-radius: 6px; cursor: pointer; color: var(--muted); font-weight: 550; font-size: 12px; }
.seg button.on { background: var(--panel); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.25); }
:root[data-theme="light"] .seg button.on { box-shadow: 0 1px 2px rgba(0,0,0,.1); }

/* ============================================================== command bars (strategy / filters / signals) */
.bars { background: var(--panel); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 8px; padding: 8px 14px; min-height: 46px; }
.bar + .bar { border-top: 1px solid var(--line); }
.bar .lbl { width: 70px; flex: none; font-size: 12px; color: var(--muted); font-weight: 550; }
.bar .scroll { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; align-items: center; }
.bar .scroll::-webkit-scrollbar { display: none; }
.strategy { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.strat-btn { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line-2); background: var(--raised); border-radius: 9px; height: 34px; padding: 0 10px 0 12px;
  cursor: pointer; min-width: 0; max-width: 520px; }
.strat-btn:hover { background: var(--hover); }
.strat-btn b { font-weight: 650; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.strat-btn .tag { font-size: 11px; color: var(--muted); border: 1px solid var(--line-2); border-radius: 5px; padding: 0 5px; }
.strat-desc { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.funnel { display: flex; align-items: center; gap: 8px; white-space: nowrap; padding-left: 10px; }
.funnel span { color: var(--muted); font-size: 12px; }
.funnel b { font-size: 20px; font-weight: 700; letter-spacing: -.02em; background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-theme="light"] .funnel b { color: var(--red); background: none; }
.funnel svg.i { color: var(--faint); width: 14px; }

.fchip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 4px 0 10px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--raised);
  white-space: nowrap; cursor: pointer; font-size: 12.5px; }
.fchip:hover { border-color: var(--faint); }
.fchip .m { color: var(--muted); }
.fchip .v { font-weight: 650; }
.fchip.off { opacity: .45; text-decoration: line-through; }
.fchip.warn { border-color: rgba(232,179,63,.55); }
.fchip .x { width: 20px; height: 20px; border: 0; background: none; border-radius: 5px; display: grid; place-items: center; color: var(--faint); cursor: pointer; }
.fchip .x:hover { background: var(--hover); color: var(--text); }
.fchip .x svg.i { width: 12px; height: 12px; }
.addchip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 8px; border: 1px dashed var(--line-2); background: none; color: var(--muted); cursor: pointer; white-space: nowrap; }
.addchip:hover { color: var(--text); border-color: var(--faint); }
.sig { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent;
  color: var(--muted); cursor: pointer; white-space: nowrap; font-weight: 550; font-size: 12px; }
.sig:hover { color: var(--text); border-color: var(--faint); }
.sig.on { color: #fff; border-color: transparent; background: var(--metal); box-shadow: var(--metal-edge); }
.sig svg.i { width: 13px; height: 13px; }
.minpass { flex: none; display: flex; align-items: center; gap: 8px; white-space: nowrap; color: var(--muted); font-size: 12px; padding-left: 10px; }

/* popovers */
.pop { position: fixed; z-index: 40; background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow-pop); padding: 12px; min-width: 280px;
  animation: popin .12s ease-out; }
@keyframes popin { from { opacity: 0; transform: translateY(-4px); } }
.pop h4 { margin: 0 0 8px; font-size: 13px; font-weight: 650; }
.pop .row { display: flex; gap: 6px; align-items: center; margin-top: 8px; }
.pop .hint { color: var(--muted); font-size: 12px; margin-top: 6px; max-width: 320px; }
.picker { width: 360px; padding: 0; }
.picker input { width: calc(100% - 20px); margin: 10px; }
.picker .list { max-height: 360px; overflow: auto; padding: 0 6px 8px; }
.picker .grp { font-size: 11.5px; color: var(--faint); padding: 8px 8px 4px; font-weight: 600; }
.picker .opt { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 7px 8px; border-radius: 7px; cursor: pointer; }
.picker .opt:hover, .picker .opt.act { background: var(--hover); }
.picker .opt small { display: block; color: var(--muted); font-size: 11.5px; }
.menu { padding: 6px; min-width: 240px; }
.menu .grp { font-size: 11.5px; color: var(--faint); padding: 8px 8px 4px; font-weight: 600; }
.menu button { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; border: 0; background: none; padding: 7px 8px; border-radius: 7px; cursor: pointer; }
.menu button:hover { background: var(--hover); }
.menu button.on { color: var(--red); font-weight: 650; }
.menu button small { margin-left: auto; color: var(--faint); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }

/* ============================================================== workspace split */
.split { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 460px; min-height: 0; }
.split.noinsp { grid-template-columns: minmax(0, 1fr) 0; }
.split.noinsp .insp { display: none; }
.gridwrap { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.gridtools { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-bottom: 1px solid var(--line); }
.gridtools .grow { flex: 1; }
.notice { display: flex; gap: 8px; align-items: flex-start; padding: 8px 14px; font-size: 12.5px; background: var(--amber-bg); color: var(--amber); border-bottom: 1px solid var(--line); }
.notice.err { background: var(--down-bg); color: var(--down); }
.gridscroll { flex: 1; overflow: auto; min-height: 0; }
table.g { border-collapse: separate; border-spacing: 0; width: 100%; }
.g th { position: sticky; top: 0; z-index: 2; background: var(--panel); text-align: right; font-weight: 550; font-size: 11.5px; color: var(--muted);
  padding: 0 10px; height: 32px; border-bottom: 1px solid var(--line); white-space: nowrap; cursor: pointer; user-select: none; }
.g th:hover { color: var(--text); }
.g th.on { color: var(--text); }
.g th.on::after { content: attr(data-dir); color: var(--red); margin-left: 4px; }
.g th.l, .g td.l { text-align: left; }
.g td { height: 40px; padding: 0 10px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; font-size: 12.5px; }
.g tbody tr { cursor: pointer; }
.g tbody tr:hover td { background: var(--hover); }
.g tbody tr.sel td { background: var(--raised); }
.g tbody tr.sel td:first-child { box-shadow: inset 3px 0 0 var(--red); }
.g .sym b { font-weight: 700; font-size: 13px; letter-spacing: .01em; }
.g .sym > span:not(.fon) { display: block; color: var(--muted); font-size: 11.5px; max-width: 200px; overflow: hidden; text-overflow: ellipsis; margin-top: -1px; }
.g .star { color: var(--faint); width: 24px; padding: 0 4px 0 12px; }
.g .star.on { color: var(--gold); }
.g .star button { border: 0; background: none; padding: 4px; cursor: pointer; color: inherit; display: grid; }
.g td.price { font-weight: 600; }
.chg { display: inline-block; min-width: 64px; padding: 2px 6px; border-radius: 5px; font-weight: 600; }
.chg.up { background: var(--up-bg); } .chg.down { background: var(--down-bg); }
.dropbar { display: inline-flex; align-items: center; gap: 8px; justify-content: flex-end; }
.dropbar i { display: block; height: 4px; border-radius: 4px; background: var(--down); opacity: .85; }
.fon { display: inline-block; font-size: 10px; font-weight: 700; padding: 0 5px; border-radius: 4px; background: var(--down-bg); color: var(--down); vertical-align: 1px; margin-left: 6px; }
.chips { display: flex; gap: 4px; }
.chip { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 999px; font-size: 11px; font-weight: 600; background: var(--raised); color: var(--faint); }
.chip.pass { background: var(--up-bg); color: var(--up); }
.chip svg.i { width: 11px; height: 11px; }
.ring { position: relative; flex: none; display: inline-block; vertical-align: middle; }
.ring svg { transform: rotate(-90deg); display: block; }
.ring span { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; }
.empty { display: grid; place-items: center; text-align: center; gap: 8px; padding: 64px 20px; color: var(--muted); }
.empty svg.i { width: 34px; height: 34px; color: var(--faint); }
.empty h3 { color: var(--text); margin: 0; font-size: 15px; }
.empty p { margin: 0; max-width: 460px; }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--red); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================== inspector */
.insp { border-left: 1px solid var(--line); background: var(--panel); min-height: 0; overflow: auto; }
.insp-h { padding: 14px 16px 10px; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--panel); z-index: 3; }
.insp-h h2 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.insp-h .nm { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.insp-h .px { text-align: right; }
.insp-h .px b { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.insp-h .acts { grid-column: 1 / -1; display: flex; gap: 6px; margin-top: 6px; }
.sec { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.sec-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.sec-h h3 { margin: 0; font-size: 13px; font-weight: 650; }
.sec-h small { color: var(--faint); font-size: 11.5px; }
.kgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.kgrid div { background: var(--panel); padding: 8px 10px; }
.kgrid small { display: block; color: var(--muted); font-size: 11px; }
.kgrid b { font-size: 14px; font-weight: 650; }
.mini { height: 210px; }
.warnbox { display: flex; gap: 8px; padding: 10px 12px; border-radius: 9px; background: var(--down-bg); color: var(--down); font-size: 12.5px; }
.sigl { display: grid; grid-template-columns: 18px 1fr 54px; gap: 8px; align-items: center; padding: 6px 0; }
.sigl .ic { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--raised); color: var(--faint); }
.sigl .ic.ok { background: var(--up-bg); color: var(--up); }
.sigl .ic svg.i { width: 11px; height: 11px; }
.sigl b { font-weight: 600; font-size: 12.5px; }
.sigl p { margin: 0; color: var(--muted); font-size: 11.5px; }
.meter { height: 4px; border-radius: 4px; background: var(--raised); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--up); }

/* financial charts (grouped bars) */
.fin-legend { display: flex; gap: 14px; font-size: 11.5px; color: var(--muted); }
.fin-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.gb { display: flex; align-items: stretch; gap: 10px; height: 150px; padding: 6px 0 20px; position: relative; }
.gb-col::before { content: ""; position: absolute; left: -5px; right: -5px; top: var(--z); border-top: 1px solid var(--line-2); }
.gb-col { flex: 1; display: flex; gap: 3px; justify-content: center; position: relative; min-width: 0; }
.gb-col .b { width: 42%; max-width: 22px; position: absolute; border-radius: 3px; }
.gb-col .b.rev { background: var(--line-2); }
:root:not([data-theme="light"]) .gb-col .b.rev { background: #3A4453; }
.gb-col .b.ni { background: var(--up); }
.gb-col .b.ni.neg { background: var(--down); }
.gb-col > span { position: absolute; bottom: -19px; left: -4px; right: -4px; text-align: center; font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.ftab { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 12px; }
.ftab th { text-align: right; font-weight: 550; color: var(--muted); padding: 5px 4px; border-bottom: 1px solid var(--line); font-size: 11px; }
.ftab th:first-child, .ftab td:first-child { text-align: left; }
.ftab td { text-align: right; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.ftab tr:last-child td { border-bottom: 0; }
.ftab .yr td { color: var(--faint); font-size: 11px; padding-top: 10px; border-bottom: 0; }

/* seasonality */
.bc { display: flex; gap: 3px; align-items: stretch; padding-bottom: 18px; }
.bc-col { flex: 1; min-width: 0; display: flex; flex-direction: column; position: relative; }
.bc-pos, .bc-neg { display: flex; flex-direction: column; align-items: center; min-height: 0; }
.bc-pos { justify-content: flex-end; border-bottom: 1px solid var(--line-2); }
.bc-neg { justify-content: flex-start; }
.bc-col i { display: block; width: min(70%, 18px); border-radius: 3px; }
.bc-col > span { position: absolute; bottom: -17px; left: 0; right: 0; text-align: center; font-size: 10px; color: var(--muted); }
.bc-col.hl > span { color: var(--text); font-weight: 700; }

/* ============================================================== pages */
.page { flex: 1; overflow: auto; padding: 22px 26px 40px; }
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.page-h h1 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.page-h p { margin: 4px 0 0; color: var(--muted); max-width: 720px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); }
.card + .card { margin-top: 14px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.card-h h2 { margin: 0; font-size: 14px; font-weight: 650; }
.card-h p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.card-b { padding: 14px 16px; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-bottom: 14px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.stat small { display: block; color: var(--muted); font-size: 11.5px; }
.stat b { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.stat em { display: block; font-style: normal; color: var(--faint); font-size: 11.5px; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-weight: 550; color: var(--muted); font-size: 11.5px; padding: 8px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.r, .tbl th.r { text-align: right; }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--raised); color: var(--muted); white-space: nowrap; }
.badge.ok { background: var(--up-bg); color: var(--up); }
.badge.bad { background: var(--down-bg); color: var(--down); }
.badge.wait { background: var(--amber-bg); color: var(--amber); }
.badge svg.i { width: 12px; height: 12px; }
.form { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 16px; }
.field { display: grid; gap: 5px; align-content: start; }
.field > .btn { height: 30px; }
.field label { font-size: 12px; font-weight: 550; color: var(--muted); }
.field .hint { font-size: 11.5px; color: var(--faint); }
.setrow { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.setrow:last-child { border-bottom: 0; }
.setrow .t b { display: block; font-weight: 600; }
.setrow .t span { color: var(--muted); font-size: 12px; }
.setrow .c { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.srcgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.src-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--panel); display: grid; gap: 10px; align-content: start; }
.src-card h3 { margin: 0; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.src-card p { margin: 0; color: var(--muted); font-size: 12px; }
.caps { display: flex; gap: 4px; flex-wrap: wrap; }
.order { display: grid; gap: 6px; }
.order .it { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--raised); }
.order .it .n { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: var(--panel); color: var(--muted); }
.order .it .grow { flex: 1; }
.order .it.dis { opacity: .5; }
.daygroup h3 { margin: 18px 0 8px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.full-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 14px; align-items: start; }
@media (max-width: 1200px) { .full-grid { grid-template-columns: 1fr; } }
.bigchart { height: 460px; }
.rsichart { height: 110px; }

/* modal / toast */
.modal { position: fixed; inset: 0; background: rgba(5,7,10,.55); display: grid; place-items: center; z-index: 60; padding: 16px; backdrop-filter: blur(2px); }
.modal .box { background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px; padding: 18px; width: min(440px, 100%); display: grid; gap: 12px; box-shadow: var(--shadow-pop); }
.modal h2 { margin: 0; font-size: 16px; }
.modal .acts { display: flex; justify-content: flex-end; gap: 8px; }
.toast { position: fixed; bottom: 40px; left: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 9px 14px; border-radius: 10px; font-weight: 600; z-index: 70; box-shadow: var(--shadow-pop); }
.cmdpal { position: fixed; inset: 0; z-index: 65; background: rgba(5,7,10,.5); display: flex; justify-content: center; padding-top: 12vh; }
.cmdpal .box { width: min(560px, 92vw); background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow-pop); overflow: hidden; height: max-content; }
.cmdpal input { width: 100%; height: 50px; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 0 16px; font-size: 15px; outline: none; }
.cmdpal .list { max-height: 50vh; overflow: auto; padding: 6px; }
.cmdpal .opt { display: grid; grid-template-columns: 70px 1fr auto auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.cmdpal .opt.act, .cmdpal .opt:hover { background: var(--hover); }
.cmdpal .opt b { font-weight: 700; }
.cmdpal .opt span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============================================================== login */
  display: flex; flex-direction: column; justify-content: flex-start; padding: 38px 44px; color: #E7EBF0; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ============================================================== responsive */
@media (max-width: 1280px) { .split { grid-template-columns: minmax(0, 1fr) 400px; } .mkt .sp { display: none; } }
@media (max-width: 1080px) {
  .split { grid-template-columns: 1fr; }
  .split .insp { position: fixed; right: 0; top: 52px; bottom: 26px; width: min(460px, 100vw); z-index: 25; box-shadow: var(--shadow-pop); }
  .split.noinsp .insp { display: none; }
  .strat-desc, .brand small { display: none; }
}
@media (max-width: 760px) {
  body { overflow: auto; }
  .shell { grid-template-columns: 1fr; grid-template-rows: 52px 1fr 56px; height: 100dvh; }
  .rail { grid-row: 3; grid-column: 1; flex-direction: row; justify-content: space-around; border-right: 0; border-top: 1px solid var(--line); padding: 0 6px; order: 3; }
  .rail .mark, .rail .grow, .rail a::after { display: none; }
  .top { grid-column: 1; } .main { grid-column: 1; } .statusbar { display: none; }
  .mkt, .livepill .txt, .userbtn span { display: none; }
  .bar .lbl { display: none; }
  .brand { display: none; }
  .top { gap: 8px; padding: 0 10px; }
  .cmdk { flex: 1; min-width: 0; } .cmdk kbd { display: none; }
  .bars > .bar:first-child { flex-wrap: wrap; row-gap: 6px; }
  .bars > .bar:first-child .strategy { flex-basis: 100%; }
  .strat-btn { max-width: 100%; }
  .funnel { padding-left: 0; margin-right: auto; }
  .split .insp { top: 52px; bottom: 56px; width: 100vw; }
  .page { padding: 16px; }
}
svg.i.on { color: var(--gold); fill: var(--gold); }

/* ------------------------------------------------------------------ Şirket kartı */
.co { flex: 1; min-height: 0; display: grid; grid-template-columns: 264px minmax(0, 1fr); }
.co-side { border-right: 1px solid var(--line); background: var(--panel); overflow: auto; padding: 12px 10px 24px; }
.co-search { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border-radius: 9px; background: var(--raised); border: 1px solid var(--line-2); color: var(--muted); margin-bottom: 6px; }
.co-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(110,155,255,.18); }
.co-search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--text); }
.co-grp { display: flex; align-items: center; gap: 6px; margin: 14px 6px 6px; font-size: 11px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }
.co-grp svg.i { width: 13px; height: 13px; } .co-grp small { margin-left: auto; font-weight: 600; }
.co-note { margin: 2px 8px; color: var(--faint); font-size: 12px; }
.co-it { width: 100%; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 6px 8px; border: 0; border-radius: 9px; background: none; cursor: pointer; text-align: left; }
.co-it:hover { background: var(--hover); }
.co-it.on { background: var(--metal-soft); box-shadow: inset 0 0 0 1px rgba(228,40,58,.35); }
.co-it .mono { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--raised); border: 1px solid var(--line-2); font-size: 10.5px; font-weight: 700; color: var(--muted); }
.co-it.on .mono { background: var(--metal); color: #fff; border: 0; box-shadow: var(--metal-edge); }
.co-it .t { min-width: 0; display: grid; } .co-it .t small, .co-it .p small { font-size: 11px; color: var(--muted); }
.co-it .t small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-it .p { display: grid; text-align: right; } .co-it .p b { font-size: 12px; }
.co-main { overflow: auto; padding: 20px 24px 40px; }
.co-main > .card, .co-main > .co-grid { margin-top: 14px; }
.co-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px 18px; align-items: center; padding: 20px 20px 0;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: radial-gradient(120% 140% at 0% 0%, rgba(228,40,58,.16), transparent 55%), var(--panel); }
.co-logo { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; font-size: 22px; font-weight: 750; letter-spacing: -.02em; color: #fff;
  background: var(--metal); box-shadow: var(--metal-edge), 0 8px 24px rgba(228,40,58,.25); }
.co-code { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; color: var(--muted); letter-spacing: .02em; }
.co-id h1 { margin: 2px 0 6px; font-size: 24px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
.co-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.co-px { text-align: right; display: grid; justify-items: end; gap: 4px; }
.co-px b { font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.co-px small { color: var(--faint); font-size: 11.5px; }
.co-acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.co-acts .grow { flex: 1; }
.co-acts a.btn { text-decoration: none; color: var(--muted); } .co-acts a.btn:hover { color: var(--text); }
.co-range { grid-column: 1 / -1; margin: 12px -20px 0; border-top: 1px solid var(--line); }
.co-range svg { display: block; width: 100%; height: 46px; }
.co-rbar { display: flex; align-items: center; gap: 12px; padding: 8px 20px 12px; font-size: 11.5px; color: var(--muted); }
.co-rbar b { color: var(--text); font-weight: 650; }
.co-rbar .trk { flex: 1; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--down), var(--amber), var(--up)); position: relative; opacity: .85; }
.co-rbar .trk i { position: absolute; top: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--text); border: 2px solid var(--panel); transform: translate(-50%, -50%); box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.co-ret { padding-left: 12px; border-left: 1px solid var(--line); }
.co-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.co-grid > .card + .card { margin-top: 0; }
.co-desc { font-size: 13.5px; line-height: 1.6; color: var(--text); max-height: 9.6em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.co-desc.open { max-height: none; -webkit-mask-image: none; mask-image: none; }
.co-desc.en { color: var(--muted); }
.linkbtn { border: 0; background: none; padding: 4px 0; color: var(--blue); cursor: pointer; font-size: 12px; font-weight: 600; }
.co-en { margin-top: 8px; font-size: 12px; color: var(--muted); } .co-en summary { cursor: pointer; color: var(--faint); }
.co-en p { margin: 6px 0 0; line-height: 1.55; }
.co-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; margin: 14px 0 0; }
.co-facts div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 12.5px; }
.co-facts dt { color: var(--muted); } .co-facts dd { margin: 0; overflow-wrap: anywhere; } .co-facts a { color: var(--blue); text-decoration: none; }
.co-people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.co-people div { display: grid; padding: 8px 10px; border-radius: 9px; background: var(--raised); } .co-people small { color: var(--muted); font-size: 11.5px; }
.co-k { grid-template-columns: repeat(3, 1fr); } .co-k div { padding: 11px 12px; } .co-k b { font-size: 15px; }
.co-k2 { grid-template-columns: repeat(2, 1fr); } .co-k2 div { padding: 11px 12px; } .co-k2 b { font-size: 15px; }
.co-sum { display: flex; gap: 18px; } .co-sum div { display: grid; text-align: right; } .co-sum small { color: var(--muted); font-size: 11px; } .co-sum b { font-size: 15px; font-weight: 650; }
.co-five .gb { height: 190px; gap: 22px; } .co-five .gb-col .b { max-width: 34px; }
.co-ftab td, .co-ftab th { white-space: nowrap; padding-left: 10px; }
.co-q .sec { border-bottom: 0; }
.news { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.nw { display: grid; gap: 4px; align-content: start; padding: 12px 16px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); text-decoration: none; color: var(--text); }
.nw:hover { background: var(--hover); } .nw:hover b { color: #fff; }
:root[data-theme="light"] .nw:hover b { color: var(--text); }
.nw-m { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--faint); } .nw-m .pub { color: var(--muted); font-weight: 600; }
.nw-m .badge { height: 17px; font-size: 10px; padding: 0 5px; }
.nw { min-width: 0; }
.nw b { font-size: 13px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.nw p { margin: 0; color: var(--muted); font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 1180px) { .co-grid { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .co { grid-template-columns: 1fr; } .co-side { display: none; } }
@media (max-width: 760px) {
  .co-main { padding: 14px; }
  .co-hero { grid-template-columns: auto minmax(0, 1fr); padding: 16px 16px 0; }
  .co-px { grid-column: 1 / -1; justify-items: start; text-align: left; grid-auto-flow: column; align-items: baseline; justify-content: start; gap: 10px; }
  .co-logo { width: 48px; height: 48px; font-size: 17px; border-radius: 12px; }
  .co-id h1 { font-size: 19px; }
  .co-range { margin: 12px -16px 0; } .co-rbar { flex-wrap: wrap; padding: 8px 16px 12px; }
  .co-k { grid-template-columns: repeat(2, 1fr); } .co-facts { grid-template-columns: 1fr; }
  .co-sum { gap: 12px; } .card-h:has(.co-sum) { flex-wrap: wrap; }
  .news { grid-template-columns: 1fr; }
}

/* signal legend under charts */
.siglegend { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.siglegend .sl { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--raised); border: 1px solid var(--line); font-size: 11.5px; font-weight: 600; color: var(--muted); }
.siglegend .sl i { width: 8px; height: 8px; border-radius: 50%; }
.siglegend .sl small { color: var(--faint); font-weight: 500; }
.siglegend .sl.on { color: var(--text); border-color: var(--line-2); }
.siglegend .sl svg.i { width: 12px; height: 12px; color: var(--up); }

/* ------------------------------------------------------------------ Tahminler */
.fc-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.fc-kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; display: grid; gap: 3px; align-content: start; }
.fc-kpi small { color: var(--muted); font-size: 11.5px; } .fc-kpi b { font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.fc-kpi span { color: var(--faint); font-size: 11.5px; }
.fc-kpi.win { background: radial-gradient(140% 140% at 0% 0%, rgba(228,40,58,.18), transparent 60%), var(--panel); border-color: rgba(228,40,58,.35); }
.fc-kpi.win b { font-size: 16px; line-height: 1.3; }
.fc-board tr.win td { background: var(--metal-soft); } .fc-board tr.off td { opacity: .6; }
.fc-prog { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; background: var(--amber-bg); color: var(--amber); margin-bottom: 14px; font-size: 12.5px; }
.fc-prog .bar { flex: 0 1 240px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.12); overflow: hidden; } .fc-prog .bar i { display: block; height: 100%; background: var(--amber); }
.amberbox { background: var(--amber-bg); color: var(--amber); margin-bottom: 14px; }
.fc-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 14px; margin-top: 14px; align-items: start; }
.fc-split > .card + .card { margin-top: 0; }
.fc-list .gridscroll { max-height: 640px; overflow: auto; }
.fc-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fc-g td, .fc-g th { white-space: nowrap; }
.fc-g .sym svg.i { width: 11px; height: 11px; margin-left: 4px; vertical-align: -1px; }
.rng { position: relative; display: block; width: 120px; height: 14px; }
.rng .zero { position: absolute; left: 50%; top: 1px; bottom: 1px; width: 1px; background: var(--line-2); }
.rng .band { position: absolute; top: 4px; height: 6px; border-radius: 4px; background: var(--muted); opacity: .35; }
.rng .dot { position: absolute; top: 3px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--muted); }
.rng .dot.up { background: var(--up); } .rng .dot.down { background: var(--down); }
.agree { display: inline-flex; gap: 3px; } .agree i { width: 9px; height: 9px; border-radius: 2px; background: var(--line-2); }
.agree i.up { background: var(--up); } .agree i.down { background: var(--down); }
.fan { width: 100%; height: auto; display: block; overflow: visible; }
.fan .gl { stroke: var(--line); stroke-width: 1; } .fan text { fill: var(--faint); font-size: 10.5px; font-family: var(--f); }
.fan .future { fill: var(--raised); opacity: .6; }
.fc-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-top: 14px; }
.fc-h3 { margin: 0 0 6px; font-size: 12.5px; font-weight: 650; }
.mv { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(60px, 1fr) 58px; align-items: center; gap: 8px; padding: 5px 0; font-size: 12px; border-bottom: 1px solid var(--line); }
.mv span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); } .mv.win span:first-child { color: var(--text); font-weight: 600; }
.mv b { text-align: right; font-weight: 600; }
.mbar { position: relative; height: 10px; } .mbar .zero { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--line-2); }
.mbar .b { position: absolute; top: 2px; height: 6px; border-radius: 3px; } .mbar .b.up { background: var(--up); } .mbar .b.down { background: var(--down); }
@media (max-width: 1280px) { .fc-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .fc-split { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .fc-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fc-two { grid-template-columns: 1fr; } .fc-kpi b { font-size: 17px; } }
.langseg button { min-width: 64px; }

/* Investing.com forum comments */
.cms { display: grid; gap: 0; }
.cm { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.cms > div:first-child > .cm { border-top: 0; }
.cm .av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--raised); border: 1px solid var(--line-2); font-size: 10.5px; font-weight: 700; color: var(--muted); }
.cm-h { display: flex; align-items: center; gap: 7px; font-size: 12px; } .cm-h b { font-weight: 650; } .cm-h > span:last-child { color: var(--faint); font-size: 11.5px; }
.cm-h .badge { height: 16px; font-size: 10px; padding: 0 5px; background: var(--amber-bg); color: var(--amber); }
.cm p { margin: 3px 0 4px; font-size: 13px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.cm-f { display: flex; align-items: center; gap: 12px; font-size: 11.5px; color: var(--faint); }
.cm-f .linkbtn { padding: 0; font-size: 11.5px; }
.cm.reply { grid-template-columns: 22px minmax(0, 1fr); padding: 7px 0 0; border-top: 0; }
.cm.reply .av { width: 22px; height: 22px; font-size: 9px; }
.cm-rep { margin-top: 4px; padding-left: 10px; border-left: 2px solid var(--line-2); }
.cm-img { font-size: 12px; color: var(--blue); text-decoration: none; }
.cm-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.full-comments .sec { border-bottom: 0; }
.full-comments .cms { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); column-gap: 24px; }
.full-comments .cms > div > .cm { border-top: 1px solid var(--line); }

/* column picker + header drag */
.colpick .cp-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.colpick .cp-h b { font-size: 13px; } .colpick .cp-h small { color: var(--faint); font-size: 11.5px; text-align: right; }
.cp-sel { display: grid; gap: 4px; max-height: 34vh; overflow: auto; }
.cp-it { display: grid; grid-template-columns: 14px 20px minmax(0, 1fr) auto auto auto; align-items: center; gap: 6px; padding: 3px 4px 3px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--raised); cursor: grab; }
.cp-it .grip { color: var(--faint); font-size: 10px; letter-spacing: -2px; } .cp-it .n { color: var(--faint); font-size: 11px; text-align: right; }
.cp-it .lb { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 550; }
.cp-it.dragging, th.dragging { opacity: .45; }
.cp-it.drop-a { box-shadow: inset 0 2px 0 var(--red); } .cp-it.drop-b { box-shadow: inset 0 -2px 0 var(--red); }
.cp-all { max-height: 32vh; overflow: auto; }
.cp-all .sig svg.i { width: 12px; height: 12px; }
th[data-col] { cursor: grab; }
th.drop-a { box-shadow: inset 2px 0 0 var(--red); } th.drop-b { box-shadow: inset -2px 0 0 var(--red); }

/* global back button */
.backbtn { flex: none; width: 32px; height: 32px; margin-right: -4px; border-radius: 9px; }
.backbtn:disabled { opacity: .35; cursor: default; }
.backbtn:not(:disabled):hover { background: var(--hover); color: var(--text); }
.mt-note { margin-top: 4px; font-size: 11px; color: var(--faint); }
.kgrid .ksub { display: block; font-style: normal; font-size: 11px; color: var(--muted); margin-top: 2px; }
.co-about.loading .card-h p::after { content: " · yükleniyor…"; color: var(--faint); }
:root[lang="en"] .co-about.loading .card-h p::after { content: " · loading…"; }

/* market switch */
.mktsel { display: inline-flex; align-items: center; gap: 4px; border: 1px solid transparent; background: none; color: var(--muted); font: 500 12px var(--f);
  padding: 3px 6px 3px 8px; border-radius: 7px; cursor: pointer; }
.mktsel:hover { background: var(--hover); border-color: var(--line-2); color: var(--text); }
.mktsel svg.i { width: 13px; height: 13px; }
.mktmenu { min-width: 300px; }
.mktmenu button { display: grid !important; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; height: auto !important; padding: 8px 10px !important; }
.mktmenu .mk-badge { font-size: 10.5px; font-weight: 700; padding: 3px 6px; border-radius: 6px; background: var(--raised); border: 1px solid var(--line-2); }
.mktmenu button.on .mk-badge { background: var(--metal); color: #fff; border: 0; }
.mktmenu .mk-t { display: grid; text-align: left; } .mktmenu .mk-t small { color: var(--muted); font-size: 11.5px; font-weight: 450; }
.statusbar .src.mk { font-weight: 700; color: var(--text); }
.fon { white-space: nowrap; letter-spacing: .02em; }
.fon.aff { background: var(--amber-bg); color: var(--amber); }

/* ---------- Al/Sat alarmları */
.rail a .rb { position: absolute; top: 2px; right: 1px; min-width: 15px; height: 15px; padding: 0 4px; border-radius: 999px; background: var(--red); color: #fff;
  font-size: 9.5px; font-weight: 700; line-height: 15px; text-align: center; box-shadow: 0 0 0 2px var(--bg); }
.badge.act { font-weight: 700; letter-spacing: .03em; min-width: 38px; justify-content: center; }
.badge.act.ok { background: var(--up-bg); color: var(--up); }
.badge.act.bad { background: var(--down-bg); color: var(--down); }
.sbar { position: relative; display: inline-block; width: 92px; height: 8px; border-radius: 4px; background: var(--raised); vertical-align: middle; margin-right: 8px; }
.sbar .v { position: absolute; top: 0; bottom: 0; border-radius: 4px; }
.sbar .v.up { background: var(--up); } .sbar .v.dn { background: var(--down); }
.sbar .zero { position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: var(--line-2); }
.sbar .th { position: absolute; top: -3px; bottom: -3px; width: 1px; background: var(--faint); opacity: .6; }
.rzs { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.rz { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.rz.up { background: var(--up-bg); color: var(--up); } .rz.dn { background: var(--down-bg); color: var(--down); }
.rz.more { background: var(--raised); color: var(--muted); }
.al-g td { vertical-align: middle; }
.al-g .rzs { max-width: 430px; }
.al-how summary { cursor: pointer; padding: 14px 16px; list-style: none; }
.al-how summary::-webkit-details-marker { display: none; }
.al-fx { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 18px; }
.al-fx > div { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.al-head { display: flex; align-items: center; gap: 8px; }
.al-bt { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.al-bt > div { background: var(--raised); border-radius: 9px; padding: 8px 10px; display: grid; gap: 2px; font-size: 12px; }
.al-bt small { font-weight: 700; font-size: 11px; }
.siglegend .altog { cursor: pointer; }
.siglegend .altog input { margin: 0; accent-color: var(--up); }
@media (max-width: 1080px) { .al-bt { grid-template-columns: 1fr; } }
.rzs.one { flex-wrap: nowrap; overflow: hidden; max-width: 440px; }
.g tr.morerow td { text-align: center; padding: 12px; }
.g tr.morerow:hover td { background: none; }

/* ---------- sign-in (always the dark terminal look) */
body:has(> .lg) { overflow: auto; background: #090B10; }   /* the terminal keeps the page fixed; the sign-in page scrolls */
.lg { position: relative; min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(420px, 1fr); background: #090B10; color: #E7EBF0;
  --lg-line: rgba(255,255,255,.07); --lg-muted: #8D97A7; --lg-faint: #5E6878; --lg-panel: rgba(19,24,32,.72); }
.lg-art { position: relative; overflow: clip; display: flex; flex-direction: column; padding: clamp(28px, 4vw, 56px); min-height: 640px;
  background: radial-gradient(90% 70% at 0% 0%, #1A2130 0%, rgba(14,17,23,0) 60%), linear-gradient(180deg, #0D1016 0%, #0A0C11 100%); border-right: 1px solid var(--lg-line); isolation: isolate; }
.lg-glow { position: absolute; z-index: -1; width: 900px; height: 900px; right: -320px; bottom: -420px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(228,40,58,.24), rgba(228,40,58,.07) 45%, transparent 70%); filter: blur(10px); animation: lgPulse 9s ease-in-out infinite alternate; }
.lg-grid { position: absolute; inset: 0; z-index: -1; opacity: .55;
  background-image: linear-gradient(var(--lg-line) 1px, transparent 1px), linear-gradient(90deg, var(--lg-line) 1px, transparent 1px); background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(120% 80% at 30% 40%, #000 30%, transparent 80%); mask-image: radial-gradient(120% 80% at 30% 40%, #000 30%, transparent 80%); }
.lg-tape { position: absolute; z-index: -1; left: 0; right: 0; bottom: 22%; width: 100%; height: 34%; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }
.lg-tape .l1 { stroke-width: 1.8; vector-effect: non-scaling-stroke; stroke-dasharray: 3200; stroke-dashoffset: 3200; animation: draw 2.6s cubic-bezier(.3,.7,.2,1) .15s forwards; filter: drop-shadow(0 0 6px rgba(243,80,95,.55)); }
.lg-tape .l2 { stroke: rgba(110,155,255,.22); stroke-width: 1.2; vector-effect: non-scaling-stroke; stroke-dasharray: 4 5; }
.lg-tape .area { opacity: 0; animation: lgFadeTo 1.4s ease 1.2s forwards; }
@keyframes lgFadeTo { to { opacity: .55; } }
.lg-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lg-brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.lg-brand img { width: 42px; height: 42px; border-radius: 11px; box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 8px 24px rgba(228,40,58,.28); }
.lg-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #C9D0DA;
  border: 1px solid var(--lg-line); background: rgba(255,255,255,.03); backdrop-filter: blur(6px); }
.lg-chip svg.i { width: 13px; height: 13px; color: #F3505F; }
.lg-hero { margin-top: clamp(40px, 10vh, 120px); max-width: 640px; animation: lgUp .7s cubic-bezier(.2,.7,.2,1) both; }
.lg-kicker { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #F3505F; margin-bottom: 16px; }
.lg-hero h1 { margin: 0; font-size: clamp(36px, 4.4vw, 62px); line-height: 1.02; letter-spacing: -.045em; font-weight: 750; }
.lg-hero h1 em { font-style: normal; background: linear-gradient(180deg, #FF8A95 0%, #F3505F 45%, #C21F31 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lg-hero p { margin: 20px 0 0; color: var(--lg-muted); font-size: 15.5px; line-height: 1.6; max-width: 540px; }
.lg-mkts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.lg-mkt { min-width: 220px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 4px 14px; align-items: center; padding: 12px 14px;
  border-radius: 14px; border: 1px solid var(--lg-line); background: var(--lg-panel); backdrop-filter: blur(10px); box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.lg-mkt-h { display: flex; align-items: center; gap: 8px; font-size: 11.5px; }
.lg-ex { font-weight: 800; letter-spacing: .06em; color: #E7EBF0; }
.lg-ix { color: var(--lg-faint); font-weight: 600; }
.lg-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lg-faint); }
.lg-dot.live { background: #26C281; box-shadow: 0 0 0 4px rgba(38,194,129,.15); animation: lgBlink 2s ease-in-out infinite; }
.lg-mkt-b { display: flex; align-items: baseline; gap: 8px; grid-column: 1; }
.lg-mkt-b b { font-size: 20px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.lg-mkt-b .up { color: #26C281; font-weight: 650; font-size: 12.5px; } .lg-mkt-b .down { color: #F25C6B; font-weight: 650; font-size: 12.5px; }
.lg-spark { grid-column: 2; grid-row: 1 / span 2; width: 92px; height: 28px; overflow: visible; }
.lg-spark path { fill: none; stroke-width: 1.6; stroke-linejoin: round; } .lg-spark.up path { stroke: #26C281; } .lg-spark.dn path { stroke: #F25C6B; }
.lg-feats { list-style: none; padding: 0; margin: auto 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-top: 40px; max-width: 820px; }
.lg-feats li { display: flex; gap: 12px; padding: 14px; border-radius: 14px; border: 1px solid var(--lg-line); background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01));
  backdrop-filter: blur(8px); animation: lgUp .7s cubic-bezier(.2,.7,.2,1) both; }
.lg-feats li:nth-child(2) { animation-delay: .06s; } .lg-feats li:nth-child(3) { animation-delay: .12s; } .lg-feats li:nth-child(4) { animation-delay: .18s; }
.lg-fi { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: var(--metal); box-shadow: var(--metal-edge), 0 6px 16px rgba(228,40,58,.25); }
.lg-fi svg.i { width: 17px; height: 17px; }
.lg-feats b { display: block; font-size: 13.5px; font-weight: 650; margin-bottom: 3px; }
.lg-feats li div > span { display: block; font-size: 12px; line-height: 1.5; color: var(--lg-muted); }
.lg-foot { display: flex; align-items: center; gap: 10px; margin-top: 26px; font-size: 11.5px; color: var(--lg-faint); }
.lg-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--lg-faint); }

.lg-side { position: relative; display: grid; place-items: center; padding: 76px 28px 48px; min-height: 100vh; min-height: 100dvh; align-self: start; position: sticky; top: 0;
  background: radial-gradient(70% 50% at 50% 0%, rgba(228,40,58,.07), transparent 70%), #0B0E13; }
.lg-lang { position: absolute; top: 22px; right: 24px; }
.lg-lang .seg { background: rgba(255,255,255,.04); border-color: var(--lg-line); }
.lg-card { width: min(400px, 100%); display: grid; gap: 16px; padding: 32px 30px 26px; border-radius: 20px; border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(26,32,42,.92), rgba(17,21,28,.92)); box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 30px 80px rgba(0,0,0,.45), 0 0 0 1px rgba(0,0,0,.4);
  animation: lgUp .6s cubic-bezier(.2,.7,.2,1) .05s both; }
.lg-card.shake { animation: lgShake .4s cubic-bezier(.36,.07,.19,.97); }
.lg-card-h { display: grid; gap: 6px; margin-bottom: 4px; }
.lg-badge { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 10px; color: #F3505F;
  background: rgba(228,40,58,.10); border: 1px solid rgba(228,40,58,.25); }
.lg-badge svg.i { width: 20px; height: 20px; }
.lg-card h2 { margin: 0; font-size: 24px; letter-spacing: -.025em; font-weight: 700; }
.lg-card p { margin: 0; color: var(--lg-muted); font-size: 13.5px; line-height: 1.5; }
.lg-field { display: grid; gap: 7px; }
.lg-field > span { font-size: 12.5px; font-weight: 600; color: #C3CAD5; }
.lg-in { position: relative; display: flex; align-items: center; height: 46px; border-radius: 12px; border: 1px solid rgba(255,255,255,.09); background: rgba(8,10,14,.6);
  transition: border-color .15s, box-shadow .15s, background .15s; }
.lg-in:hover { border-color: rgba(255,255,255,.16); }
.lg-in:focus-within { border-color: rgba(243,80,95,.75); box-shadow: 0 0 0 4px rgba(228,40,58,.16); background: rgba(8,10,14,.85); }
.lg-in > svg.i { width: 16px; height: 16px; margin: 0 2px 0 14px; color: var(--lg-faint); flex: none; transition: color .15s; }
.lg-in:focus-within > svg.i { color: #F3505F; }
.lg-in input { flex: 1; min-width: 0; height: 100%; padding: 0 12px 0 10px; border: 0; outline: 0; background: none; color: #E7EBF0; font: inherit; font-size: 14.5px; }
.lg-in input::placeholder { color: var(--lg-faint); }
.lg-in input:-webkit-autofill { -webkit-text-fill-color: #E7EBF0; -webkit-box-shadow: 0 0 0 40px #0D1117 inset; caret-color: #E7EBF0; }
.lg-eye { flex: none; width: 40px; height: 40px; margin-right: 3px; display: grid; place-items: center; border: 0; border-radius: 9px; background: none; color: var(--lg-faint); cursor: pointer; }
.lg-eye:hover { color: #E7EBF0; background: rgba(255,255,255,.05); }
.lg-eye svg.i { width: 17px; height: 17px; }
.lg-caps, .lg-hint { display: flex; align-items: center; gap: 6px; font-style: normal; font-size: 11.5px; color: var(--lg-muted); }
.lg-caps { color: #E8B33F; } .lg-caps svg.i { width: 13px; height: 13px; }
.lg-caps[hidden] { display: none; }
.lg-side > #card { width: min(400px, 100%); display: grid; justify-items: center; }
.lg-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.lg-link { border: 0; background: none; padding: 0; font: inherit; font-size: 12.5px; font-weight: 650; color: #F3505F; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.lg-link:hover { color: #FF8A95; text-decoration: underline; text-underline-offset: 3px; }
.lg-link svg.i { width: 14px; height: 14px; }
.lg-alt { text-align: center; font-size: 12.5px; color: var(--lg-muted); }
.lg-ok { padding: 11px 13px; border-radius: 11px; font-size: 12.5px; line-height: 1.5; color: #BFF0D8; background: rgba(38,194,129,.1); border: 1px solid rgba(38,194,129,.3); }
.lg-remember { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: #AEB6C2; cursor: pointer; user-select: none; }
.lg-err { min-height: 18px; color: #F25C6B; font-size: 12.5px; line-height: 1.45; }
.lg-err:empty { min-height: 0; margin-top: -8px; }
.lg-submit { position: relative; height: 48px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 12px; cursor: pointer;
  color: #fff; font: inherit; font-size: 15px; font-weight: 650; letter-spacing: -.005em; background: var(--metal);
  box-shadow: var(--metal-edge), 0 10px 26px rgba(228,40,58,.32); text-shadow: 0 1px 0 rgba(0,0,0,.25); transition: transform .12s, box-shadow .2s, filter .2s; overflow: hidden; }
.lg-submit::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.22) 50%, transparent 70%); transform: translateX(-120%); }
.lg-submit:hover { filter: brightness(1.06); box-shadow: var(--metal-edge), 0 14px 34px rgba(228,40,58,.42); }
.lg-submit:hover::after { transform: translateX(120%); transition: transform .9s ease; }
.lg-submit:active { transform: translateY(1px); }
.lg-submit:disabled { cursor: default; filter: saturate(.85); }
.lg-submit .arr { width: 17px; height: 17px; transition: transform .2s; } .lg-submit:hover .arr { transform: translateX(3px); }
.lg-submit .spin { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .7s linear infinite; }
.lg-submit.busy .spin { display: block; } .lg-submit.busy .arr { display: none; }
.lg-note { display: flex; gap: 8px; align-items: flex-start; padding-top: 14px; margin-top: 2px; border-top: 1px solid var(--lg-line); font-size: 11.5px; line-height: 1.5; color: var(--lg-faint); }
.lg-note svg.i { flex: none; width: 13px; height: 13px; margin-top: 2px; color: #26C281; }
.lg-side-foot { position: absolute; bottom: 20px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #3C4452; font-weight: 700; }
@keyframes lgUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes lgFade { to { opacity: 1; } }
@keyframes lgPulse { from { transform: scale(1); opacity: .85; } to { transform: scale(1.08); opacity: 1; } }
@keyframes lgBlink { 50% { box-shadow: 0 0 0 7px rgba(38,194,129,0); } }
@keyframes lgShake { 10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(2px); } 30%, 50%, 70% { transform: translateX(-4px); } 40%, 60% { transform: translateX(4px); } }
@media (max-width: 1100px) { .lg-feats { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .lg { grid-template-columns: 1fr; }
  .lg-art { min-height: 0; padding-bottom: 30px; border-right: 0; border-bottom: 1px solid var(--lg-line); }
  .lg-hero { margin-top: 36px; } .lg-feats { display: none; } .lg-foot { display: none; }
  .lg-side { padding: 70px 16px 60px; position: relative; min-height: 0; }
}
@media (prefers-reduced-motion: reduce) { .lg *, .lg *::after { animation: none !important; transition: none !important; } .lg-tape .l1 { stroke-dashoffset: 0; } .lg-tape .area { opacity: 1; } }
/* ---------- Al/Sat: Dün → bugün */
.rv-top { padding: 4px 16px 14px; border-bottom: 1px solid var(--line); }
.rv-lead { margin: 2px 0 12px; font-size: 12.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rv-k { margin-bottom: 12px; }
.rv-k .fc-kpi { background: var(--raised); }
.rv-note { display: flex; align-items: center; gap: 6px; font-size: 12px; margin: 0; }
.rv-note svg.i { width: 14px; height: 14px; }
.rv-chart svg { width: 100%; height: 120px; display: block; }
.rv-chart polyline { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.rv-chart polyline.up { stroke: var(--up); } .rv-chart polyline.dn { stroke: var(--down); } .rv-chart polyline.fc { stroke: var(--blue); stroke-dasharray: 4 3; }
.rv-chart line.mid { stroke: var(--line-2); stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.rv-chart text { font-size: 10px; fill: var(--faint); }
.rv-legend { display: flex; gap: 14px; align-items: center; font-size: 11.5px; color: var(--muted); margin-bottom: 4px; flex-wrap: wrap; }
.rv-legend i { display: inline-block; width: 12px; height: 3px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }
.rv-legend i.up { background: var(--up); } .rv-legend i.dn { background: var(--down); } .rv-legend i.fc { background: var(--blue); }
.rv-legend small { color: var(--faint); margin-left: auto; }
.rv-learn { margin-top: 14px; }
.rv-learn .mb { position: relative; display: inline-block; width: 70px; height: 6px; border-radius: 3px; background: var(--raised); vertical-align: middle; margin-right: 6px; }
.rv-learn .mb .zero { position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: var(--line-2); }
.rv-learn .mb .v { position: absolute; top: 0; bottom: 0; border-radius: 3px; } .rv-learn .mb .v.up { background: var(--up); } .rv-learn .mb .v.dn { background: var(--down); }
.rv-axis { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--faint); margin-top: 2px; }
.intra-note { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.intra-note:empty { display: none; }
.seg button.intra { font-weight: 650; }

.is-intra .dleg { display: none }

/* Tahmin vs gerçekleşen */
.fc-tabs { margin: 4px 0 14px; width: max-content; }
.fc-tabs button { padding: 0 16px; }
.fc-rv td small { font-size: 11px; margin-left: 4px; }
.rvbars { position: relative; display: flex; align-items: flex-end; gap: 3px; height: 110px; padding-top: 4px; }
.rvbars .rvb { flex: 1 1 0; height: 100%; display: flex; align-items: flex-end; min-width: 4px; }
.rvbars .rvb i { display: block; width: 100%; border-radius: 3px 3px 1px 1px; background: var(--up); opacity: .85; }
.rvbars .rvb i.down { background: var(--down); }
.rvbars .half { position: absolute; left: 0; right: 0; bottom: 50%; border-top: 1px dashed var(--faint); pointer-events: none; }
@media (max-width: 1000px) { #frev .fc-split { grid-template-columns: 1fr !important; } }

/* sector / oil / war tags and the sector analysis table */
.mtags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.mtag { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 6px;
  background: var(--raised); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.mtag svg.i { width: 11px; height: 11px; }
.mtag.up { color: var(--up); background: var(--up-bg); border-color: transparent; }
.mtag.down { color: var(--down); background: var(--down-bg); border-color: transparent; }
.sec-g td, .sec-g th { white-space: nowrap; }
.sec-g tbody tr:hover td { background: var(--raised); }
.secbar { display: inline-block; width: 46px; height: 5px; border-radius: 3px; background: var(--raised); margin-right: 6px; vertical-align: middle; overflow: hidden; }
.secbar i { display: block; height: 100%; background: var(--red); border-radius: 3px; }
