/* =========================================================
   THE SPEK — Arayüz
   ========================================================= */

:root,
:root[data-theme="dark"] {
  --bg: #0a0e15;
  --bg-2: #0d121b;
  --surface: #111824;
  --surface-2: #151e2c;
  --surface-3: #1b2638;
  --border: #243044;
  --border-soft: #1a2434;
  --text: #e7edf6;
  --text-2: #a9b5c7;
  --muted: #718096;
  --accent: #4f8cff;
  --accent-2: #86adff;
  --accent-soft: rgba(79, 140, 255, .14);
  --up: #1fc16b;
  --up-soft: rgba(31, 193, 107, .13);
  --down: #f2475d;
  --down-soft: rgba(242, 71, 93, .13);
  --warn: #f4b740;
  --warn-soft: rgba(244, 183, 64, .13);
  --violet: #a58bff;
  --violet-soft: rgba(165, 139, 255, .14);
  --cyan: #2cc9e0;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --ring: 0 0 0 3px rgba(79, 140, 255, .28);
  --grid-line: rgba(255, 255, 255, .06);
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f3f5f9;
  --bg-2: #eef1f6;
  --surface: #ffffff;
  --surface-2: #f6f8fb;
  --surface-3: #edf1f7;
  --border: #dce3ec;
  --border-soft: #e7ecf2;
  --text: #0f172a;
  --text-2: #475569;
  --muted: #7a8699;
  --accent: #2563eb;
  --accent-2: #1d4ed8;
  --accent-soft: rgba(37, 99, 235, .1);
  --up: #0f9d58;
  --up-soft: rgba(15, 157, 88, .1);
  --down: #dc2646;
  --down-soft: rgba(220, 38, 70, .09);
  --warn: #c77c02;
  --warn-soft: rgba(217, 119, 6, .12);
  --violet: #7c3aed;
  --violet-soft: rgba(124, 58, 237, .1);
  --cyan: #0891b2;
  --shadow: 0 12px 32px rgba(15, 23, 42, .12);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --ring: 0 0 0 3px rgba(37, 99, 235, .2);
  --grid-line: rgba(15, 23, 42, .07);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.45 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
}

button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); text-decoration: none; }
b, strong { font-weight: 600; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.01em; }
[hidden] { display: none !important; }

.num, .mono, td.num, th.num { font-variant-numeric: tabular-nums; }
.mono { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.up { color: var(--up) !important; }
.down { color: var(--down) !important; }
.warn { color: var(--warn) !important; }
.violet { color: var(--violet) !important; }
.accent { color: var(--accent) !important; }
.mt8 { margin-top: 8px; }
.mt16 { margin-top: 16px; }
.p0 { padding: 0 !important; }

/* ---------- İkonlar ---------- */
i[data-icon] { display: inline-flex; width: 18px; height: 18px; flex: none; }
i[data-icon] svg { width: 100%; height: 100%; }

/* ---------- Uygulama iskeleti ---------- */
.app {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-2);
  border-right: 1px solid var(--border-soft);
  padding: 16px 12px;
  overflow-y: auto;
  z-index: 40;
}

.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 14px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; flex: none; display: block;
  box-shadow: 0 6px 18px rgba(91, 70, 230, .38);
}
.brand-name { font-weight: 800; font-size: 15px; letter-spacing: .06em; display: flex; align-items: baseline; gap: 5px; }
.brand-name .bn-the { font-size: .62em; font-weight: 600; letter-spacing: .22em; color: var(--muted); }
.brand-sub { font-size: 11.5px; color: var(--muted); }

.holding-chip {
  display: grid; gap: 1px; text-align: left;
  width: 100%; margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 11px;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  cursor: pointer;
}
.holding-chip:hover { border-color: var(--border); }
.holding-chip-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.holding-chip-name { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.holding-chip-value { font-variant-numeric: tabular-nums; font-size: 13px; color: var(--up); font-weight: 600; }

.nav { display: flex; flex-direction: column; gap: 1px; }
.nav-group {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em;
  color: var(--muted); padding: 12px 10px 5px; font-weight: 600;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 8px;
  color: var(--text-2); font-weight: 500; font-size: 13.5px;
  position: relative;
}
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.active { background: var(--accent-soft); color: var(--text); }
.nav-item.active::before {
  content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px;
  width: 3px; border-radius: 0 3px 3px 0; background: var(--accent);
}
.nav-item.active i { color: var(--accent); }
.nav-count, .nav-live {
  margin-left: auto; font-size: 11px; font-weight: 600;
  color: var(--muted); background: var(--surface-2);
  border-radius: 999px; padding: 1px 7px; min-width: 20px; text-align: center;
}
.nav-count:empty, .nav-live:empty { display: none; }
.nav-live { color: var(--up); background: var(--up-soft); }
.nav-live.closed { color: var(--muted); background: var(--surface-2); }

.sidebar-foot { margin-top: auto; padding: 14px 8px 2px; display: grid; gap: 8px; }
.save-state { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-2); }
.save-state .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--up); }
.save-state.saving .dot { background: var(--warn); }
.save-state.error .dot { background: var(--down); }

.scrim { display: none; }

.main { min-width: 0; display: flex; flex-direction: column; }

/* ---------- Üst bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 12px;
  height: 62px; padding: 0 20px;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.page-title { min-width: 0; margin-right: auto; }
.crumb { font-size: 11.5px; color: var(--muted); }
.page-title h1 { font-size: 17px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.search-btn {
  display: flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 10px 0 12px; width: 280px;
  border: 1px solid var(--border-soft); border-radius: 9px;
  background: var(--surface); color: var(--muted); cursor: pointer;
}
.search-btn span { flex: 1; text-align: left; font-size: 13px; white-space: nowrap; overflow: hidden; }
.search-btn:hover { border-color: var(--border); }

kbd {
  font: 600 10.5px/1 "JetBrains Mono", ui-monospace, monospace;
  padding: 3px 5px; border-radius: 5px;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text-2);
}

.clock {
  display: flex; align-items: center; gap: 10px;
  height: 36px; padding: 0 6px 0 12px;
  border: 1px solid var(--border-soft); border-radius: 9px; background: var(--surface);
}
.clock-main { display: flex; align-items: baseline; gap: 8px; }
.clock-day { font-size: 12px; color: var(--text-2); font-weight: 500; }
.clock-time { font: 600 15px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: -.02em; }
.clock.paused .clock-time { color: var(--warn); }
.market-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 600; padding: 4px 9px; border-radius: 999px;
  background: var(--down-soft); color: var(--down);
}
.market-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.market-pill.open { background: var(--up-soft); color: var(--up); }
.market-pill.open::before { animation: pulse 1.4s ease-in-out infinite; }

.sim-controls { display: flex; align-items: center; gap: 4px; }
.speed-select {
  height: 36px; border-radius: 9px; border: 1px solid var(--border-soft);
  background: var(--surface); padding: 0 6px; font-size: 12.5px; font-weight: 600;
  font-variant-numeric: tabular-nums; cursor: pointer;
}

.icon-btn {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; border-radius: 9px;
  border: 1px solid var(--border-soft); background: var(--surface);
  color: var(--text-2); cursor: pointer; flex: none;
}
.icon-btn:hover:not(:disabled) { color: var(--text); border-color: var(--border); }
.icon-btn:disabled { opacity: .4; cursor: default; }
.only-mobile { display: none; }

/* ---------- Kayan fiyat şeridi ---------- */
.ticker {
  height: 32px; overflow: hidden; position: relative;
  border-bottom: 1px solid var(--border-soft); background: var(--bg-2);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.ticker-track {
  display: inline-flex; gap: 28px; align-items: center; height: 100%;
  white-space: nowrap; padding-left: 100%;
  animation: marquee 60s linear infinite;
  font-size: 12.5px;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track.static { animation: none; padding-left: 20px; }
.tk { display: inline-flex; gap: 7px; align-items: baseline; cursor: pointer; }
.tk b { font-weight: 600; }
.tk .p { font-variant-numeric: tabular-nums; color: var(--text-2); }
.tk .c { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 12px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* ---------- İçerik ---------- */
.content { padding: 20px 22px 60px; width: 100%; max-width: 1680px; margin: 0 auto; }
.page { display: none; animation: fadeIn .18s ease; }
.page.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.grid { display: grid; gap: 16px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-dash { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: 1 / -1; }
.stack { display: grid; gap: 16px; align-content: start; min-width: 0; }
.stack-sm { display: grid; gap: 8px; }

.split {
  display: grid; gap: 16px;
  grid-template-columns: minmax(0, 1fr) 372px;
  align-items: start;
}

/* ---------- Kart ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.card-h {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; min-height: 52px;
  border-bottom: 1px solid var(--border-soft);
}
.card-h.wrap { flex-wrap: wrap; }
.card-h h3 { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.card-sub { font-size: 12px; color: var(--muted); margin-top: 1px; }
.card-b { padding: 16px; }
.h-actions { display: flex; align-items: center; gap: 8px; }
.h-actions.wrap { flex-wrap: wrap; }
.link { font-size: 12.5px; font-weight: 500; cursor: pointer; }
.sub-h { font-size: 13px; font-weight: 600; margin-bottom: 4px; color: var(--text); }

.action-panel { position: sticky; top: 78px; max-height: calc(100vh - 96px); overflow-y: auto; }
.tabs-v { padding: 12px 16px 0; }

/* ---------- KPI ---------- */
.kpis {
  display: grid; gap: 12px; margin-bottom: 16px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.kpi {
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: 12px; padding: 13px 15px; min-width: 0;
  box-shadow: var(--shadow-sm);
}
.kpi-label { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.kpi-label .dotc { width: 7px; height: 7px; border-radius: 2px; }
.kpi-value {
  font-size: 21px; font-weight: 650; letter-spacing: -.02em; margin-top: 4px;
  font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.kpi-foot { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 12px; color: var(--muted); min-height: 18px; }
.delta { font-weight: 600; font-variant-numeric: tabular-nums; font-size: 12px; padding: 1px 6px; border-radius: 6px; }
.delta.up { background: var(--up-soft); }
.delta.down { background: var(--down-soft); }
.delta.flat { background: var(--surface-2); color: var(--muted); }

/* ---------- Tablolar ---------- */
.tbl-wrap { overflow: auto; max-height: 520px; }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.tbl th {
  position: sticky; top: 0; z-index: 1;
  background: var(--surface-2); color: var(--muted);
  font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em;
  text-align: left; padding: 9px 12px; white-space: nowrap;
  border-bottom: 1px solid var(--border-soft);
}
.tbl td { padding: 9px 12px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
.tbl td.num, .tbl th.num { text-align: right; white-space: nowrap; }
.tbl td.wrap { white-space: normal; }
.tbl td.codes { max-width: 130px; line-height: 1.6; }
.tbl tbody tr:hover td { background: var(--surface-2); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl.compact td { padding: 6px 12px; }
.tbl .sub { display: block; font-size: 11.5px; color: var(--muted); }
.tbl td.empty { text-align: center; color: var(--muted); padding: 26px 12px; }
.tbl tr.clickable { cursor: pointer; }
.tbl.kv td:first-child { color: var(--text-2); }
.tbl.kv td:last-child { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.tbl.kv tr:hover td { background: transparent; }
th[data-sort] { cursor: pointer; user-select: none; }
th[data-sort]:hover { color: var(--text); }
th[data-sort].asc::after { content: " ▲"; font-size: 9px; }
th[data-sort].desc::after { content: " ▼"; font-size: 9px; }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--border-soft); font-size: 12.5px; color: var(--muted); }
.pager .btns { display: flex; gap: 6px; }

/* ---------- Form ---------- */
.field { margin-top: 12px; min-width: 0; }
.field:first-child { margin-top: 0; }
form.card-b > .field:first-child, .tab-pane > .card-b > .field:first-child { margin-top: 4px; }
.field label { display: block; font-size: 12px; font-weight: 500; color: var(--text-2); margin-bottom: 5px; }
input[type="text"], input[type="number"], input[type="time"], input[type="email"], input[type="password"], select, textarea, .search {
  width: 100%; height: 38px; padding: 0 11px;
  border: 1px solid var(--border); border-radius: 9px;
  background: var(--surface-2); color: var(--text);
  outline: none; transition: border-color .12s, box-shadow .12s;
  font-size: 13.5px;
}
textarea { height: auto; min-height: 76px; padding: 9px 11px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus, .search:focus { border-color: var(--accent); box-shadow: var(--ring); }
input[type="number"] { font-variant-numeric: tabular-nums; }
input::placeholder, textarea::placeholder { color: var(--muted); }
select { cursor: pointer; padding-right: 26px; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 15px) 16px, calc(100% - 10px) 16px;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.select-sm { height: 32px; font-size: 12.5px; width: auto; max-width: 240px; }
.search { height: 32px; width: 200px; font-size: 12.5px; }
.hint { font-size: 11.5px; color: var(--muted); margin-top: 4px; min-height: 0; font-variant-numeric: tabular-nums; }
.hint:empty { display: none; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.form-grid .field { margin-top: 12px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.form-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.form-foot .callout { flex: 1; min-width: 240px; }

.chips { display: flex; gap: 5px; margin-top: 6px; flex-wrap: wrap; }
.chips button {
  flex: 1; min-width: 0; height: 26px; padding: 0 6px;
  border: 1px solid var(--border-soft); border-radius: 7px;
  background: var(--surface-2); font-size: 11.5px; font-weight: 600; color: var(--text-2); cursor: pointer;
}
.chips button:hover { color: var(--text); border-color: var(--border); }

.stepper { display: flex; }
.stepper input { border-radius: 0; text-align: center; }
.stepper button {
  width: 38px; flex: none; border: 1px solid var(--border); background: var(--surface-3);
  cursor: pointer; font-size: 16px; color: var(--text-2);
}
.stepper button:first-child { border-radius: 9px 0 0 9px; border-right: 0; }
.stepper button:last-child { border-radius: 0 9px 9px 0; border-left: 0; }

.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; color: var(--text-2); user-select: none; }
.switch.small { font-size: 12px; }
.switch input { display: none; }
.switch span {
  width: 30px; height: 17px; border-radius: 999px; background: var(--surface-3);
  border: 1px solid var(--border); position: relative; transition: background .15s; flex: none;
}
.switch span::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 11px; height: 11px;
  border-radius: 50%; background: var(--text-2); transition: transform .15s, background .15s;
}
.switch input:checked + span { background: var(--accent); border-color: var(--accent); }
.switch input:checked + span::after { transform: translateX(13px); background: #fff; }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding: 0 14px; border-radius: 9px;
  border: 1px solid var(--border); background: var(--surface-2);
  font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap;
  transition: filter .12s, background .12s, border-color .12s, transform .05s;
}
.btn:hover { border-color: var(--text-2); }
.btn:active { transform: translateY(1px); }
.btn i[data-icon] { width: 16px; height: 16px; }
.btn-sm { height: 32px; padding: 0 10px; font-size: 12.5px; }
.btn-block { width: 100%; margin-top: 14px; }
.btn-primary { background: var(--accent); border-color: transparent; color: #fff; }
.btn-up { background: var(--up); border-color: transparent; color: #fff; }
.btn-down { background: var(--down); border-color: transparent; color: #fff; }
.btn-primary:hover, .btn-up:hover, .btn-down:hover { filter: brightness(1.08); border-color: transparent; }
.btn-ghost { background: transparent; border-color: var(--border-soft); color: var(--text-2); }
.btn-ghost:hover { color: var(--text); }
.btn-down-ghost { background: var(--down-soft); border-color: transparent; color: var(--down); }
.btn-block + .btn-block { margin-top: 8px; }
.btn.mt8 { margin-top: 8px; }
.file-btn { margin: 0; }
.btn-xs { height: 26px; padding: 0 9px; font-size: 12px; border-radius: 7px; }

/* ---------- Sekmeler ---------- */
.seg {
  display: flex; gap: 2px; padding: 3px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--border-soft);
  overflow-x: auto; scrollbar-width: none;
}
.seg::-webkit-scrollbar { display: none; }
.seg button {
  flex: 1 0 auto; border: 0; background: transparent; color: var(--text-2);
  padding: 6px 11px; border-radius: 7px; font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.seg button:hover { color: var(--text); }
.seg button.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
:root[data-theme="dark"] .seg button.active { background: var(--surface-3); }
.seg-sm button { padding: 4px 9px; font-size: 12px; }
.seg-wrap { flex-wrap: wrap; overflow: visible; }
/* Kart başlıklarındaki filtreler gizli yatay kaydırma yerine alt satıra geçer */
.card-h { flex-wrap: wrap; row-gap: 8px; }
.card-h > div:first-child { min-width: 0; }
.card-h .seg { flex-wrap: wrap; overflow: visible; max-width: 100%; flex-shrink: 0; }
.seg-wrap button { flex: 1 0 auto; }
.seg .count { font-size: 11px; background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 0 6px; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ---------- Rozet / bilgi ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px;
  background: var(--surface-3); color: var(--text-2); white-space: nowrap; vertical-align: middle;
}
.badge.up { background: var(--up-soft); }
.badge.down { background: var(--down-soft); }
.badge.warn { background: var(--warn-soft); }
.badge.violet { background: var(--violet-soft); }
.badge.accent { background: var(--accent-soft); }
td .badge { margin-left: 6px; }

.callout {
  padding: 10px 12px; border-radius: 10px; font-size: 12.5px; line-height: 1.5;
  background: var(--surface-2); border: 1px solid var(--border-soft); color: var(--text-2);
}
.callout:empty { display: none; }
.callout.warn { background: var(--warn-soft); border-color: transparent; color: var(--text); }
.callout.ok { background: var(--up-soft); border-color: transparent; color: var(--text); }
.callout.err { background: var(--down-soft); border-color: transparent; color: var(--text); }

.preview {
  margin-top: 12px; border-radius: 10px; border: 1px dashed var(--border);
  padding: 10px 12px; font-size: 12.5px; display: grid; gap: 5px; color: var(--text-2);
}
.preview:empty { display: none; }
.preview .row { display: flex; justify-content: space-between; gap: 12px; }
.preview .row b { color: var(--text); font-variant-numeric: tabular-nums; text-align: right; }
.preview .title { color: var(--text); font-weight: 600; }
.preview .desc { font-size: 12px; }
.preview .err { color: var(--down); font-weight: 500; }
.preview .ok { color: var(--up); font-weight: 500; }

.bar { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.bar.up > span { background: var(--up); }
.bar.warn > span { background: var(--warn); }
.bar.down > span { background: var(--down); }
.inline-bar { display: inline-block; vertical-align: middle; width: 70px; margin-right: 8px; }

.empty-state {
  text-align: center; padding: 42px 20px; color: var(--muted);
  display: grid; justify-items: center; gap: 10px;
}
.empty-state .ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.empty-state h4 { color: var(--text); font-size: 15px; }
.empty-state p { margin: 0; max-width: 420px; font-size: 13px; }

/* ---------- Kontrol paneli ---------- */
.onboard {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: center;
  padding: 22px; margin-bottom: 16px; border-radius: 16px;
  background:
    radial-gradient(600px 200px at 0% 0%, var(--accent-soft), transparent 70%),
    radial-gradient(500px 220px at 100% 100%, var(--violet-soft), transparent 70%),
    var(--surface);
  border: 1px solid var(--border-soft);
}
.onboard h2 { font-size: 20px; margin-bottom: 6px; }
.onboard p { margin: 0 0 14px; color: var(--text-2); }
.steps { display: grid; gap: 8px; }
.step {
  display: flex; gap: 10px; align-items: center; padding: 10px 12px;
  border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border-soft); cursor: pointer;
}
.step:hover { border-color: var(--border); }
.step .n {
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-3); font-size: 12px; font-weight: 700; flex: none;
}
.step.done .n { background: var(--up); color: #fff; }
.step .t { font-weight: 600; font-size: 13px; }
.step .d { font-size: 12px; color: var(--muted); }

.movers .mv {
  display: grid; grid-template-columns: minmax(0, 1fr) 70px auto; align-items: center; gap: 10px;
  padding: 9px 16px; border-bottom: 1px solid var(--border-soft); cursor: pointer;
}
.movers .mv:last-child { border-bottom: 0; }
.movers .mv:hover { background: var(--surface-2); }
.mv-name { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mv-sub { font-size: 11.5px; color: var(--muted); }
.mv-right { text-align: right; font-variant-numeric: tabular-nums; }
.mv-right b { display: block; font-size: 13px; }

.alerts .al { display: flex; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--border-soft); align-items: flex-start; font-size: 12.5px; }
.alerts .al:last-child { border-bottom: 0; }
.al .ico { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.al .ico i { width: 15px; height: 15px; }
.al.info .ico { background: var(--accent-soft); color: var(--accent); }
.al.warn .ico { background: var(--warn-soft); color: var(--warn); }
.al.err .ico { background: var(--down-soft); color: var(--down); }
.al.ok .ico { background: var(--up-soft); color: var(--up); }
.al .t { font-weight: 600; color: var(--text); font-size: 13px; }
.al .d { color: var(--muted); }

/* Donut */
.donut-wrap { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: center; }
.donut-legend { display: grid; gap: 7px; font-size: 12.5px; }
.lg { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.lg i { width: 10px; height: 10px; border-radius: 3px; display: block; }
.lg span { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg b { font-variant-numeric: tabular-nums; font-size: 12px; }
.lg em { font-style: normal; color: var(--muted); font-size: 11.5px; margin-left: 6px; }

/* Yatay çubuklar */
.hbars { display: grid; gap: 10px; }
.hb { display: grid; gap: 4px; }
.hb-top { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; }
.hb-top span { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-top b { font-variant-numeric: tabular-nums; }

/* ---------- Grafik ---------- */
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart .axis text { fill: var(--muted); font-size: 10.5px; font-variant-numeric: tabular-nums; }
.chart .grid-line { stroke: var(--grid-line); stroke-width: 1; }
.chart-empty { height: 100%; display: grid; place-items: center; color: var(--muted); font-size: 13px; text-align: center; padding: 20px; border: 1px dashed var(--border-soft); border-radius: 10px; }
.chart-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); margin-top: 8px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 10px; height: 3px; border-radius: 2px; display: inline-block; }
.tooltip {
  position: fixed; z-index: 100; pointer-events: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: 9px;
  padding: 8px 10px; font-size: 12px; box-shadow: var(--shadow); min-width: 140px;
}
.tooltip .tt-h { font-weight: 600; margin-bottom: 4px; color: var(--text); }
.tooltip .tt-r { display: flex; justify-content: space-between; gap: 14px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.tooltip .tt-r b { color: var(--text); }

/* ---------- Borsa tahtası ---------- */
.board {
  display: grid; gap: 16px;
  grid-template-columns: 250px minmax(0, 1fr) 320px;
  align-items: start;
}
.board-left, .board-center, .board-right { display: grid; gap: 16px; min-width: 0; align-content: start; }
.board-right { position: sticky; top: 78px; }

.watch { max-height: 360px; overflow-y: auto; }
.watch .w {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px;
  padding: 9px 14px; cursor: pointer; border-bottom: 1px solid var(--border-soft);
}
.watch .w:last-child { border-bottom: 0; }
.watch .w:hover { background: var(--surface-2); }
.watch .w.active { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.watch .w-name { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.watch .w-px { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; font-size: 13px; }
.watch .w-sub { font-size: 11.5px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.watch .w-chg { text-align: right; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.watch svg { display: block; }

.quote { padding: 16px; display: grid; gap: 14px; }
.quote-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.quote-id { min-width: 0; display: grid; gap: 4px; }
.quote-select {
  height: auto; padding: 2px 26px 2px 0; border: 0; background-color: transparent;
  font-size: 19px; font-weight: 650; letter-spacing: -.01em; max-width: 100%;
  background-position: calc(100% - 13px) 13px, calc(100% - 8px) 13px;
}
.quote-select:focus { box-shadow: none; }
.quote-meta { font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.quote-price { text-align: right; }
.qp-value { font: 650 28px/1.1 Inter, sans-serif; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.qp-change { font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 2px; }
.qp-value.flash-up { animation: flashUp .7s ease; }
.qp-value.flash-down { animation: flashDown .7s ease; }
@keyframes flashUp { 0% { color: var(--up); } 100% { color: var(--text); } }
@keyframes flashDown { 0% { color: var(--down); } 100% { color: var(--text); } }

.quote-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.quote-stats div { background: var(--surface-2); border-radius: 9px; padding: 7px 10px; min-width: 0; }
.quote-stats span { display: block; font-size: 11px; color: var(--muted); }
.quote-stats b { font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }

.sentiment { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.sent-bar { position: relative; height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--down), var(--surface-3) 50%, var(--up)); }
.sent-mid { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--border); }
.sent-knob { position: absolute; top: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--text); border: 2px solid var(--surface); transform: translate(-50%, -50%); left: 50%; transition: left .3s ease; box-shadow: var(--shadow-sm); }

.ob-lock { display: none; padding: 10px 12px; border-radius: 10px; font-weight: 600; font-size: 13px; text-align: center; }
.ob-lock.tavan { display: block; background: var(--up-soft); color: var(--up); border: 1px solid var(--up); }
.ob-lock.taban { display: block; background: var(--down-soft); color: var(--down); border: 1px solid var(--down); }

.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--up); display: inline-block; animation: pulse 1.4s ease-in-out infinite; }
.live-dot.off { background: var(--muted); animation: none; }

.ob-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  border: 1px solid var(--border-soft); border-radius: 10px; overflow: hidden;
  background: var(--border-soft); font-variant-numeric: tabular-nums;
}
.ob-col { background: var(--surface); min-width: 0; }
.ob-col-head, .ob-cell { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 6px; align-items: center; padding: 0 10px; }
.ob-col-head { height: 30px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: var(--surface-2); }
.ob-col-head .r, .ob-cell .qty { text-align: right; }
.ob-cell { height: 27px; font-size: 12.5px; cursor: pointer; position: relative; overflow: hidden; }
.ob-cell > span { position: relative; z-index: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ob-cell .fill { position: absolute; top: 2px; bottom: 2px; z-index: 0; border-radius: 3px; opacity: .9; }
.bid-col .ob-cell .fill { right: 0; background: var(--up-soft); }
.ask-col .ob-cell .fill { left: 0; background: var(--down-soft); }
.ob-cell .lvl { color: var(--muted); font-size: 10.5px; font-weight: 600; }
.ob-cell .price { font-weight: 600; }
.bid-col .ob-cell .price { color: var(--up); }
.ask-col .ob-cell .price { color: var(--down); }
.ob-cell .qty { font-weight: 500; color: var(--text-2); }
.ob-cell:hover { background: var(--surface-3); }
.ob-cell.mine { box-shadow: inset 3px 0 0 var(--warn); }
.ob-cell.empty { cursor: default; color: var(--muted); grid-template-columns: 1fr; text-align: center; font-size: 12px; }
.my-mark { font-size: 9.5px; font-weight: 700; color: var(--warn); background: var(--warn-soft); border-radius: 4px; padding: 0 4px; margin-left: 5px; }
.ob-spread { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; text-align: center; font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.ob-spread div { background: var(--surface-2); border-radius: 8px; padding: 6px; }
.ob-spread b { display: block; font-size: 13px; color: var(--text); letter-spacing: 0; text-transform: none; font-variant-numeric: tabular-nums; margin-top: 1px; }
.depth { display: flex; height: 6px; border-radius: 999px; overflow: hidden; margin-top: 10px; background: var(--surface-3); }
.depth span:first-child { background: var(--up); }
.depth span:last-child { background: var(--down); }
.tape { max-height: 404px; }

.side-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 12px; }
.side-toggle button {
  height: 38px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface-2);
  font-weight: 700; letter-spacing: .06em; cursor: pointer; color: var(--text-2);
}
.side-toggle button.buy.active { background: var(--up); border-color: var(--up); color: #fff; }
.side-toggle button.sell.active { background: var(--down); border-color: var(--down); color: #fff; }

/* ---------- İşletme kartları ---------- */
.biz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.biz {
  border: 1px solid var(--border-soft); border-radius: 12px; padding: 14px; background: var(--surface-2);
  display: grid; gap: 10px; cursor: pointer;
}
.biz:hover { border-color: var(--border); }
.biz-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.biz-name { font-weight: 600; font-size: 14px; }
.biz-type { font-size: 12px; color: var(--muted); }
.biz-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; font-size: 12px; }
.biz-stats span { color: var(--muted); display: block; }
.biz-stats b { font-variant-numeric: tabular-nums; font-size: 13px; }
.biz-foot { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); gap: 8px; }

/* ---------- Kısayollar ---------- */
.shortcuts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px 20px; font-size: 13px; }
.shortcuts div { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.shortcuts span { color: var(--text-2); margin-left: 6px; }

/* ---------- Toast ---------- */
.toasts { position: fixed; left: 16px; bottom: 16px; z-index: 200; display: flex; flex-direction: column-reverse; gap: 6px; width: min(320px, calc(100vw - 32px)); pointer-events: none; }
.toast {
  display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: start;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 11px 12px; box-shadow: var(--shadow); font-size: 13px;
  animation: toastIn .2s ease;
}
.toast.out { animation: toastOut .18s ease forwards; }
.toast .ico { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; }
.toast .ico i { width: 16px; height: 16px; }
.toast.success .ico { background: var(--up-soft); color: var(--up); }
.toast.error .ico { background: var(--down-soft); color: var(--down); }
.toast.warn .ico { background: var(--warn-soft); color: var(--warn); }
.toast.info .ico { background: var(--accent-soft); color: var(--accent); }
.toast .t { font-weight: 600; }
.toast .m { color: var(--text-2); white-space: pre-line; font-size: 12.5px; margin-top: 1px; }
.toast .x { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 2px; }
.toast .act { margin-top: 6px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(6px); } }

/* ---------- Modal ---------- */
.modal-root:empty { display: none; }
.modal-backdrop {
  position: fixed; inset: 0; z-index: 150; background: rgba(5, 8, 14, .55);
  display: grid; place-items: center; padding: 18px; animation: fadeIn .15s ease;
  backdrop-filter: blur(2px);
}
.modal {
  width: min(460px, 100%); background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; max-height: calc(100vh - 36px); display: flex; flex-direction: column;
}
.modal.wide { width: min(860px, 100%); }
.modal-h { padding: 16px 18px 6px; display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.modal-h h3 { font-size: 16px; }
.modal-b { padding: 6px 18px 16px; color: var(--text-2); font-size: 13.5px; white-space: pre-line; overflow-y: auto; }
.modal-b.rich { white-space: normal; }
.modal-f { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--border-soft); background: var(--surface-2); }

/* ---------- Komut paleti ---------- */
.palette-root { position: fixed; inset: 0; z-index: 160; background: rgba(5, 8, 14, .5); display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; }
.palette { width: min(620px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; animation: fadeIn .12s ease; }
.palette-input { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid var(--border-soft); color: var(--muted); }
.palette-input input { border: 0; background: transparent; height: 50px; font-size: 15px; box-shadow: none !important; padding: 0; }
.palette-list { max-height: 400px; overflow-y: auto; padding: 6px; }
.pl-group { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 10px 10px 4px; font-weight: 600; }
.pl-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: 13.5px; }
.pl-item i { color: var(--muted); }
.pl-item .hint2 { margin-left: auto; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pl-item.active { background: var(--accent-soft); }
.pl-item.active i { color: var(--accent); }
.pl-empty { padding: 26px; text-align: center; color: var(--muted); }

/* ---------- Scrollbar ---------- */
* { scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }

/* ---------- Duyarlı ---------- */
@media (max-width: 1380px) {
  .board { grid-template-columns: 230px minmax(0, 1fr) 300px; }
  .quote-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .search-btn { width: 200px; }
}

@media (max-width: 1180px) {
  .board { grid-template-columns: minmax(0, 1fr) 300px; }
  .board-left { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; order: 3; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .action-panel { position: static; max-height: none; order: -1; }
  .g-dash { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-dash .span-2 { grid-column: 1 / -1; }
  .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-btn span, .search-btn kbd { display: none; }
  .search-btn { width: 36px; padding: 0; justify-content: center; }
}

@media (max-width: 960px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; width: 264px;
    transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--shadow);
  }
  .app.nav-open .sidebar { transform: none; }
  .app.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 35; }
  .only-mobile { display: inline-grid; }
  .board { grid-template-columns: minmax(0, 1fr); }
  .board-right { position: static; }
  .board-left { grid-template-columns: 1fr; }
  .onboard { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .content { padding: 14px 12px 60px; }
  .topbar { padding: 0 12px; gap: 8px; }
  .hide-sm, .speed-select, #skipOpenBtn, .clock-day { display: none !important; }
  .clock { padding: 0 4px 0 8px; gap: 6px; }
  .g-dash, .g-2, .g-3 { grid-template-columns: minmax(0, 1fr); }
  .span-2, .span-3 { grid-column: auto; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-value { font-size: 17px; }
  .quote-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .donut-wrap { grid-template-columns: 1fr; justify-items: center; }
  .donut-legend { width: 100%; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .search { width: 100%; }
  .card-h { flex-wrap: wrap; }
  .page-title h1 { font-size: 15px; }
}

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

/* ---------- Kulis / Robotlar ---------- */
.nav-count.hot { background: var(--warn-soft); color: var(--warn); }
.offers { display: grid; gap: 10px; }
.offer {
  border: 1px solid var(--border-soft); border-radius: 12px; padding: 13px 14px;
  background: var(--surface-2); display: grid; gap: 8px;
}
.offer.illegal { border-left: 3px solid var(--warn); }
.offer.legal { border-left: 3px solid var(--accent); }
.offer.closed { opacity: .6; }
.offer-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.offer-title { font-weight: 600; font-size: 13.5px; }
.offer-text { font-size: 12.5px; color: var(--text-2); line-height: 1.5; }
.offer-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.offer-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.offer-actions select { width: auto; height: 32px; font-size: 12.5px; max-width: 260px; }
.news { max-height: 560px; overflow-y: auto; overflow-x: hidden; }
.nw-text, .nw-title, .offer-text, .offer-title { overflow-wrap: anywhere; }
.nw { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--border-soft); font-size: 12.5px; }
.nw:last-child { border-bottom: 0; }
.nw-time { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 11.5px; }
.nw-title { font-weight: 600; color: var(--text); font-size: 13px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.nw-text { color: var(--text-2); margin-top: 2px; }
.nw.up .nw-title::before, .nw.down .nw-title::before, .nw.warn .nw-title::before { content: ""; width: 6px; height: 6px; border-radius: 50%; }
.nw.up .nw-title::before { background: var(--up); }
.nw.down .nw-title::before { background: var(--down); }
.nw.warn .nw-title::before { background: var(--warn); }
.nw .code { cursor: pointer; }
/* Piyasa nabzı: sunucudan gelen (herkeste aynı) NPC duyarlılık paylaşımları, şirket haberleri, bilançolar */
.news-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; min-width: 0; }
select.sel-sm { width: auto; height: 30px; font-size: 12px; padding: 0 26px 0 9px; max-width: 170px; background-position: calc(100% - 15px) 12px, calc(100% - 10px) 12px; }
.nw.srv { border-left: 3px solid var(--accent); padding-left: 13px; }
.nw.srv.k-n, .nw.srv.k-e { border-left-color: var(--warn); }
.nw.srv.k-d, .nw.srv.k-m { border-left-color: var(--text-2); }
.nw-src { font-size: 10px; font-weight: 600; padding: 1px 6px; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.nw-sent { font-size: 10px; font-weight: 600; padding: 1px 6px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); white-space: nowrap; }
.nw-sent.up { background: var(--up-soft); color: var(--up); }
.nw-sent.down { background: var(--down-soft); color: var(--down); }
.news.news-mini { max-height: 260px; border: 1px solid var(--border-soft); border-radius: 10px; }
.news.news-mini .nw { padding: 8px 12px; }
.ob-pulse { margin-top: 6px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.ob-pulse::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 6px; vertical-align: middle; background: var(--accent); }
.ob-pulse.up::before { background: var(--up); }
.ob-pulse.down::before { background: var(--down); }
.ob-pulse.warn::before { background: var(--warn); }
.ob-pulse:hover { color: var(--text); }
.npc-prev td:first-child { white-space: nowrap; }
.npc-top { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gauge { display: grid; gap: 6px; }
.gauge-bar { height: 10px; border-radius: 999px; background: linear-gradient(90deg, var(--up), var(--warn) 55%, var(--down)); position: relative; }
.gauge-knob { position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 3px solid var(--text); transform: translate(-50%, -50%); transition: left .3s; }
.gauge-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.gauge-value { font-size: 26px; font-weight: 650; font-variant-numeric: tabular-nums; }
.cp { padding: 10px 16px; border-bottom: 1px solid var(--border-soft); display: grid; gap: 5px; font-size: 12.5px; cursor: pointer; }
.cp:last-child { border-bottom: 0; }
.cp:hover { background: var(--surface-2); }
.cp-top { display: flex; justify-content: space-between; gap: 8px; }
.cp-top b { font-size: 13px; }
.phase { font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 6px; background: var(--surface-3); }
.row-actions { display: flex; gap: 4px; justify-content: flex-end; }
.strat-card { border: 1px solid var(--border-soft); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; font-size: 12.5px; color: var(--text-2); }
.strat-card b { color: var(--text); display: block; margin-bottom: 2px; font-size: 13px; }
.code-tag { font: 600 10.5px/1 "JetBrains Mono", ui-monospace, monospace; padding: 3px 5px; border-radius: 5px; background: var(--surface-3); color: var(--text-2); letter-spacing: .02em; }

/* ---------- Büyük tahta ---------- */
.board { grid-template-columns: 230px minmax(0, 1fr) 330px; }
.book-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.book-card .ob-col-head { height: 34px; font-size: 11.5px; }
.book-card .ob-cell { height: 33px; font-size: 14px; grid-template-columns: 30px minmax(0, 1fr) auto; }
.book-card .ob-cell .price { font-size: 14.5px; font-weight: 650; }
.book-card .ob-cell .qty { font-size: 13.5px; }
.book-card .ob-spread b { font-size: 15px; }
.book-card .depth { height: 8px; }
.tape-card .tape { max-height: 520px; }
@media (max-width: 1500px) {
  .book-grid { grid-template-columns: minmax(0, 1fr); }
  .tape-card .tape { max-height: 300px; }
}

/* ---------- Devralma ---------- */
.takeover-head { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.takeover-head .field { margin-top: 0; }
.takeover-status { margin-top: 14px; display: grid; gap: 10px; }
.to-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.to-grid div { background: var(--surface-2); border-radius: 10px; padding: 9px 11px; }
.to-grid span { display: block; font-size: 11.5px; color: var(--muted); }
.to-grid b { font-size: 15px; font-variant-numeric: tabular-nums; }
.ctl-bar { position: relative; height: 12px; border-radius: 999px; background: var(--surface-3); overflow: hidden; display: flex; }
.ctl-bar .own { background: var(--accent); }
.ctl-bar .pat { background: var(--violet); opacity: .7; }
.ctl-bar .ins { background: var(--cyan); opacity: .6; }
.ctl-line { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 2px; background: var(--warn); }
.ctl-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); }
.ctl-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }
.tk-box { border: 1px solid var(--border-soft); border-radius: 12px; padding: 14px; background: var(--surface-2); }
.tk-box .field input, .tk-box .field select { background: var(--surface); }

/* ---------- Mobil alt gezinme ---------- */
.bottom-nav { display: none; }

@media (max-width: 960px) {
  .bottom-nav {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    background: color-mix(in srgb, var(--bg-2) 94%, transparent);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--border-soft);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .bottom-nav a {
    display: grid; justify-items: center; gap: 2px; padding: 4px 0;
    color: var(--muted); font-size: 10.5px; font-weight: 600; position: relative;
  }
  .bottom-nav a i { width: 21px; height: 21px; }
  .bottom-nav a.active { color: var(--accent); }
  .bottom-nav b { position: absolute; top: 0; left: 56%; background: var(--warn); color: #111; font-size: 9.5px; border-radius: 999px; padding: 0 5px; min-width: 16px; text-align: center; }
  .bottom-nav b:empty { display: none; }
  .content { padding-bottom: 96px; }
  .toasts { bottom: auto; top: 70px; flex-direction: column; }

  /* Tahta: tek sütunda en önemli kartlar üstte */
  .board { display: grid; grid-template-columns: minmax(0, 1fr); }
  .board-left, .board-center, .board-right { display: contents; }
  .board .quote { order: 1; }
  .board .book-grid { order: 2; }
  .board .ticket { order: 3; }
  .board .pos-card { order: 4; }
  .board .chart-card { order: 5; }
  .board .watch-card { order: 6; }
  .board .facts-card { order: 7; }
  .board .watch { max-height: 280px; }
  .takeover-head { grid-template-columns: 1fr; }
  .to-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  body { font-size: 13.5px; }
  .card-h { padding: 11px 14px; min-height: 48px; }
  .card-b { padding: 14px; }
  .kpi { padding: 11px 12px; }
  .kpi-value { font-size: 16.5px; }
  .kpi-foot { font-size: 11px; flex-wrap: wrap; }
  .qp-value { font-size: 23px; }
  .quote-select { font-size: 16px; }
  .book-card .ob-cell { height: 31px; font-size: 13px; padding: 0 7px; grid-template-columns: 22px minmax(0, 1fr) auto; }
  .book-card .ob-cell .price { font-size: 13.5px; }
  .book-card .ob-col-head { padding: 0 7px; grid-template-columns: 22px minmax(0, 1fr) auto; }
  .my-mark { display: none; }
  .tbl { font-size: 12.5px; }
  .tbl th, .tbl td { padding: 8px 10px; }
  .tbl-wrap { max-height: 420px; }
  .h-actions { width: 100%; flex-wrap: wrap; }
  .h-actions .select-sm { flex: 1; max-width: none; }
  .modal-backdrop { align-items: end; padding: 0; }
  .modal, .modal.wide { width: 100%; border-radius: 16px 16px 0 0; max-height: 92vh; }
  .palette-root { padding-top: 6vh; }
  .onboard { padding: 16px; }
  .onboard h2 { font-size: 17px; }
  .clock-time { font-size: 13.5px; }
  .market-pill { font-size: 10.5px; padding: 3px 7px; }
  .icon-btn { width: 34px; height: 34px; }
  .ticker { height: 28px; }
  .biz-grid { grid-template-columns: 1fr; }
  .offer-actions select { max-width: none; flex: 1 1 100%; }
  .nw { grid-template-columns: 52px minmax(0, 1fr); padding: 9px 12px; }
  .nw.srv { padding-left: 9px; }
  .news-tools { width: 100%; justify-content: flex-start; }
  select.sel-sm { flex: 1 1 100%; max-width: none; height: 34px; font-size: 16px; }
  .npc-top { grid-template-columns: minmax(0, 1fr); }
  .pager { flex-direction: column; align-items: stretch; }
  .donut-wrap { grid-template-columns: 1fr; }
  .shortcuts { grid-template-columns: 1fr; }
  #themeBtn, #undoBtn { display: none; }
}

@media (max-width: 380px) {
  .kpis { grid-template-columns: minmax(0, 1fr); }
  .market-pill { display: none; }
}
@media (max-width: 720px) {
  .quote-price { text-align: left; width: 100%; }
  .quote-top { gap: 8px; }
}

/* ---------- Strateji rehberi & AKD ---------- */
.strat-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; align-items: start; }
.sig-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.sig { display: inline-flex; gap: 6px; align-items: center; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface-2); border: 1px solid var(--border-soft); }
.sig.up { background: var(--up-soft); border-color: transparent; }
.sig.down { background: var(--down-soft); border-color: transparent; }
.lv-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; margin-top: 14px; }
.plan { border: 1px solid var(--border-soft); border-radius: 12px; background: var(--surface-2); padding: 14px; display: grid; gap: 10px; }
.plan.up { border-top: 3px solid var(--up); }
.plan.down { border-top: 3px solid var(--down); }
.plan-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.plan-title { font-weight: 650; font-size: 13.5px; }
.ready { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.ready.hi { background: var(--up-soft); color: var(--up); }
.ready.mid { background: var(--warn-soft); color: var(--warn); }
.ready.lo { background: var(--surface-3); color: var(--muted); }
.steps2 { display: grid; gap: 6px; }
.st { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 8px; font-size: 12.5px; align-items: start; }
.st b { font-size: 11.5px; color: var(--accent); text-transform: uppercase; letter-spacing: .03em; padding-top: 1px; }
.st span { color: var(--text-2); line-height: 1.45; }
.plan-cost { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; background: var(--surface); border-radius: 8px; padding: 7px 10px; flex-wrap: wrap; }
.plan-cost b { font-variant-numeric: tabular-nums; }
.plan-exp { font-size: 12px; color: var(--muted); line-height: 1.45; }
.plan-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.akd-top { display: flex; align-items: center; gap: 12px; justify-content: space-between; flex-wrap: wrap; }
.insights { display: grid; gap: 6px; margin-top: 12px; }
.ins { font-size: 12.5px; padding: 8px 11px; border-radius: 9px; background: var(--surface-2); color: var(--text-2); line-height: 1.45; }
.ins.up { background: var(--up-soft); color: var(--text); }
.ins.down { background: var(--down-soft); color: var(--text); }
.ins.warn { background: var(--warn-soft); color: var(--text); }
.tape td .who { display: block; font-size: 10.5px; color: var(--muted); white-space: nowrap; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 960px) {
  .strat-head { grid-template-columns: 1fr; }
  .lv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: 1fr; }
  .st { grid-template-columns: 72px minmax(0, 1fr); }
}

/* ---------- Pazar & endeks ---------- */
.badge.mk-yildiz { background: var(--warn-soft); color: var(--warn); }
.badge.mk-ana { background: var(--accent-soft); color: var(--accent); }
.badge.mk-alt { background: rgba(44, 201, 224, .13); color: var(--cyan); }
.badge.mk-yip { background: var(--down-soft); color: var(--down); }
.badge.mk-gsp { background: var(--violet-soft); color: var(--violet); }
.watch-filter { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--border-soft); }
.watch-filter .select-sm, .watch-filter .search { width: 100%; max-width: none; }
.ixrow { display: grid; grid-template-columns: minmax(0, 1fr) 80px auto; gap: 10px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--border-soft); cursor: pointer; }
.ixrow:last-child { border-bottom: 0; }
.ixrow:hover { background: var(--surface-2); }
.ixrow b { font-size: 13.5px; }
.crit { display: grid; gap: 6px; }
.crit-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 90px; gap: 10px; align-items: center; font-size: 12.5px; }
.crit-row .bar { height: 7px; }
.crit-co { border: 1px solid var(--border-soft); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; background: var(--surface-2); display: grid; gap: 8px; }
.crit-head { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; align-items: center; }
.rv-list { display: grid; gap: 8px; font-size: 12.5px; }
.rv-list .rv { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.tk.ix b { color: var(--warn); }
@media (max-width: 720px) {
  .crit-row { grid-template-columns: 1fr 1fr; }
  .crit-row .bar { grid-column: 1 / -1; }
}
.clock-main, .clock-day, .clock-time { white-space: nowrap; }
@media (max-width: 1100px) { .clock-day { display: none; } }

/* ---------- AKD (terminal tarzı) ---------- */
.akd-sum { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.akd-sum div { background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: 9px; padding: 7px 10px; }
.akd-sum span { display: block; font-size: 11px; color: var(--muted); }
.akd-sum b { font-size: 14px; font-variant-numeric: tabular-nums; }
.akd-panels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.akd-panel { border: 1px solid var(--border-soft); border-radius: 12px; overflow: hidden; background: var(--surface-2); min-width: 0; }
.akd-panel-top { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; padding: 10px 12px; align-items: center; }
.akd-panel-top h5 { margin: 0 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.akd-panel.buy h5 { color: var(--up); }
.akd-panel.sell h5 { color: var(--down); }
.akd-panel.tot h5 { color: var(--accent); }
.akd-kv { display: grid; grid-template-columns: auto 1fr; gap: 1px 8px; font-size: 11.5px; }
.akd-kv span { color: var(--muted); }
.akd-kv b { text-align: right; font-variant-numeric: tabular-nums; font-size: 12.5px; }
.akd-mini { width: 100%; border-collapse: collapse; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.akd-mini th { text-align: left; font-weight: 600; color: #fff; padding: 4px 6px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .03em; }
.akd-panel.buy .akd-mini th { background: color-mix(in srgb, var(--up) 70%, #000); }
.akd-panel.sell .akd-mini th { background: color-mix(in srgb, var(--down) 70%, #000); }
.akd-panel.tot .akd-mini th { background: color-mix(in srgb, var(--accent) 70%, #000); }
.akd-mini td { padding: 4px 6px; border-top: 1px solid var(--border-soft); white-space: nowrap; }
.akd-mini td.n, .akd-mini th.n { text-align: right; }
.akd-mini td.nm { max-width: 130px; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.akd-mini i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }
.akd-mini tr.other td { color: var(--muted); font-weight: 600; }
.akd-detail th.c-buy, .akd-detail td.c-buy { background: color-mix(in srgb, var(--up) 9%, transparent); }
.akd-detail th.c-sell, .akd-detail td.c-sell { background: color-mix(in srgb, var(--down) 9%, transparent); }
.akd-detail th.c-tot, .akd-detail td.c-tot { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.akd-detail tr.top1 td { font-weight: 700; }
@media (max-width: 1100px) { .akd-panels { grid-template-columns: 1fr; } .akd-sum { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .akd-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Daraltılabilir menü ---------- */
.brand { position: relative; }
.brand-text { min-width: 0; }
.collapse-btn {
  margin-left: auto; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  border: 1px solid var(--border-soft); background: var(--surface); color: var(--muted); cursor: pointer; flex: none;
}
.collapse-btn:hover { color: var(--text); border-color: var(--border); }
.collapse-btn i { width: 15px; height: 15px; transition: transform .2s; }
.app { transition: grid-template-columns .2s ease; }
@media (min-width: 961px) {
  .app.nav-collapsed { grid-template-columns: 64px minmax(0, 1fr); }
  .app.nav-collapsed .sidebar { padding: 14px 8px; overflow-x: hidden; }
  .app.nav-collapsed .brand { flex-direction: column; gap: 8px; padding: 4px 0 12px; }
  .app.nav-collapsed .brand-text, .app.nav-collapsed .holding-chip, .app.nav-collapsed .nav-group,
  .app.nav-collapsed .nav-item span, .app.nav-collapsed .sidebar-foot .muted, .app.nav-collapsed .save-state span:last-child { display: none; }
  .app.nav-collapsed .collapse-btn { margin: 0; }
  .app.nav-collapsed .collapse-btn i { transform: rotate(180deg); }
  .app.nav-collapsed .nav { gap: 4px; }
  .app.nav-collapsed .nav-item { justify-content: center; padding: 10px 0; }
  .app.nav-collapsed .nav-item i { width: 20px; height: 20px; }
  .app.nav-collapsed .nav-count, .app.nav-collapsed .nav-live {
    position: absolute; top: 2px; right: 4px; margin: 0; padding: 0 4px; min-width: 14px; font-size: 9px;
  }
  .app.nav-collapsed .nav-live { font-size: 0; width: 8px; height: 8px; min-width: 0; padding: 0; border-radius: 50%; background: var(--up); }
  .app.nav-collapsed .nav-live:empty { display: none; }
  .app.nav-collapsed .nav-item.active::before { left: -8px; }
  .app.nav-collapsed .sidebar-foot { padding: 10px 0; justify-items: center; }
}
.btn-spek { background: linear-gradient(135deg, var(--warn), #ff8a3d); border-color: transparent; color: #1a1205; }
.btn-spek:hover { filter: brightness(1.06); border-color: transparent; }

/* ---------- Tahtacı Modu ---------- */
.content:has(#page-spek.active) { max-width: none; padding-left: 12px; padding-right: 12px; }
.spek {
  display: grid; gap: 10px;
  grid-template-columns: minmax(0, 1fr) 320px;
  grid-template-areas: "main side" "watch watch";
  align-items: start;
}
.spek > * { min-width: 0; }
.sp-main { grid-area: main; display: grid; gap: 10px; min-width: 0; container-type: inline-size; container-name: spmain; }
.sp-side { grid-area: side; display: grid; gap: 10px; align-content: start; min-width: 0; }
.sp-watch { grid-area: watch; }
.sp-cols { display: grid; gap: 10px; align-items: start; grid-template-columns: minmax(0, 1fr); }
.sp-col { display: grid; gap: 10px; min-width: 0; align-content: start; container-type: inline-size; }
.sp-slot { min-width: 0; }
.sp-slot > .card { height: 100%; }

/* Orta alan yeterince genişse: sol (grafik+AKD+takas) | sağ (emir defteri+işlemler) */
@container spmain (min-width: 700px) {
  .sp-cols { grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr); }
}
@container spmain (min-width: 1100px) {
  .sp-cols { grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr); }
}
/* Dar orta alanda emir defteri üstte */
@container spmain (max-width: 699px) {
  .sp-cols .sp-col:last-child { order: -1; }
}

.spek .card-h { min-height: 42px; padding: 8px 12px; }
.spek .card-h h3 { font-size: 13px; }
.spek .card-b { padding: 10px 12px; }
.spek .quote { padding: 12px; gap: 10px; }
.spek .quote-top { flex-wrap: wrap; }
.spek .quote-id { flex: 1 1 260px; }
.spek .quote-price { flex: 0 0 auto; }
.spek .qp-value { font-size: 26px; }
.spek .quote-stats { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
.spek .chart-card .chart { height: 200px !important; }
.spek .book-card .card-b { padding: 10px; }
.spek .book-card .ob-cell, .spek .book-card .ob-col-head { grid-template-columns: 24px minmax(0, 1fr) auto; padding: 0 8px; }
.spek .book-card .ob-cell { height: 27px; font-size: 13px; }
.spek .book-card .ob-cell .price { font-size: 13.5px; }
.spek .my-mark { display: none; }
.spek .tape-card .tape { max-height: 320px; }
.spek .ticket .card-b { padding: 10px 12px; }
.spek .ticket .field { margin-top: 8px; }

.sp-quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.sp-quick-grid .btn { height: auto; min-height: 32px; font-size: 12px; padding: 5px 8px; white-space: normal; line-height: 1.15; }

.sp-akd-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 6px; padding: 8px 12px 0; }
.sp-akd-sum div { background: var(--surface-2); border-radius: 8px; padding: 5px 8px; min-width: 0; }
.sp-akd-sum span { display: block; font-size: 10.5px; color: var(--muted); }
.sp-akd-sum b { font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.sp-akd-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 8px 12px 12px; }
@container (min-width: 620px) { .sp-akd-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.sp-akd-grid .akd-mini { table-layout: fixed; }
.sp-akd-grid .akd-mini th:first-child, .sp-akd-grid .akd-mini td.nm { width: 44%; max-width: none; }
.sp-akd-grid .akd-mini td { overflow: hidden; text-overflow: ellipsis; }
.sp-akd-grid .akd-mini .barcell { position: relative; }
.sp-akd-grid .akd-mini .barcell span { position: absolute; top: 3px; bottom: 3px; right: 0; border-radius: 3px; opacity: .25; }
.sp-akd-grid .akd-panel.buy .barcell span { background: var(--up); }
.sp-akd-grid .akd-panel.sell .barcell span { background: var(--down); }
.sp-akd-grid .akd-mini .barcell b { position: relative; font-weight: 600; }

.sp-trow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 6px 12px; border-bottom: 1px solid var(--border-soft); font-size: 12px; font-variant-numeric: tabular-nums; }
.sp-trow:last-child { border-bottom: 0; }
.sp-trow .n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; min-width: 0; }
.sp-trow > span:not(.n) { white-space: nowrap; }
.sp-sec { padding: 6px 12px 4px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }

/* Alt bölüm: hisse kutucukları */
.sp-watch .h-actions .select-sm { width: auto; }
.sp-watch .h-actions .search { width: 180px; }
.sp-watch-grid {
  display: grid; gap: 6px; padding: 10px 12px 12px;
  grid-template-columns: repeat(auto-fill, minmax(138px, 1fr));
  max-height: 300px; overflow-y: auto;
}
.sp-watch-grid .w {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1px 6px;
  padding: 7px 9px; border-radius: 9px; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--border-soft);
}
.sp-watch-grid .w:hover { border-color: var(--border); }
.sp-watch-grid .w.active { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); }
.sp-watch-grid .w-name { font-weight: 650; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-watch-grid .w-px { text-align: right; font-weight: 600; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.sp-watch-grid .w-sub { font-size: 11px; color: var(--muted); min-width: 0; overflow: hidden; }
.sp-watch-grid .w-sub .badge { margin: 0; padding: 0 5px; font-size: 10px; }
.sp-watch-grid .w-chg { text-align: right; font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }

@media (max-width: 1100px) {
  .spek { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "side" "watch"; }
  .sp-side { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
}
@media (max-width: 720px) {
  .sp-side { grid-template-columns: minmax(0, 1fr); }
  .sp-watch .h-actions .search { width: 100%; }
  .sp-watch-grid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); max-height: 340px; }
}

.market-pill { white-space: nowrap; }


/* ---------- Bildirimler (kompakt, sağ üst) ---------- */
.toast { pointer-events: auto; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 8px; padding: 8px 10px; border-radius: 10px; font-size: 12.5px;
  background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.toast .ico { width: 24px; height: 24px; border-radius: 7px; }
.toast .ico i, .toast .ico svg { width: 14px; height: 14px; }
.toast .t { font-size: 12.5px; }
.toast .m { font-size: 12px; max-height: 3.9em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.toast:hover .m { max-height: none; -webkit-line-clamp: unset; display: block; }
.toast.success { border-left: 3px solid var(--up); }
.toast.error { border-left: 3px solid var(--down); }
.toast.warn { border-left: 3px solid var(--warn); }
.toast.info { border-left: 3px solid var(--accent); }
@keyframes toastIn { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(-12px); } }

.notif-wrap { position: relative; }
.notif-badge { position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px;
  background: var(--down); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; }
.notif-badge:empty { display: none; }
.notif-panel { position: absolute; right: 0; top: 44px; width: min(380px, calc(100vw - 24px)); max-height: 70vh; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); z-index: 210; overflow: hidden; }
.notif-h { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--border-soft); }
.notif-h b { margin-right: auto; font-size: 13px; }
.notif-h .select-sm { height: 28px; font-size: 11.5px; max-width: 150px; }
.notif-list { overflow-y: auto; }
.ntf { display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--border-soft); font-size: 12px; }
.ntf:last-child { border-bottom: 0; }
.ntf i { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; background: var(--accent); }
.ntf.success i { background: var(--up); } .ntf.error i { background: var(--down); } .ntf.warn i { background: var(--warn); }
.ntf b { font-size: 12.5px; }
.ntf .tm { color: var(--muted); font-size: 11px; margin-left: 6px; font-weight: 400; }
.ntf .mm { color: var(--text-2); white-space: pre-line; margin-top: 1px; }
@media (max-width: 720px) {
  .toasts { left: 12px; right: 12px; width: auto; top: 66px; }
  .notif-panel { position: fixed; right: 12px; left: 12px; top: 64px; width: auto; }
}

/* ---------- Üyelik ekranı ---------- */
body.locked .app, body.locked .bottom-nav, body.locked .ticker { visibility: hidden; }
.auth-gate { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; overflow-y: auto; background: var(--bg); }
.auth-bg { position: fixed; inset: 0; pointer-events: none;
  background: radial-gradient(700px 400px at 15% 10%, var(--accent-soft), transparent 70%), radial-gradient(600px 400px at 85% 90%, var(--violet-soft), transparent 70%); }
.auth-card { position: relative; width: min(420px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); padding: 26px 24px 20px; }
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.auth-brand .brand-mark { width: 42px; height: 42px; font-size: 15px; }
.auth-brand .brand-name { font-size: 18px; }
.auth-lead { color: var(--text-2); font-size: 13px; margin: 6px 0 16px; line-height: 1.5; }
.auth-tabs { margin-bottom: 6px; }
.auth-tabs button { flex: 1; }
.auth-msg { margin-top: 10px; font-size: 12.5px; min-height: 0; }
.auth-msg:empty { display: none; }
.auth-msg.err { color: var(--down); }
.auth-msg.ok { color: var(--up); }
.auth-google { background: var(--surface-2); margin-top: 8px !important; }
.auth-forgot { display: block; text-align: center; margin-top: 12px; }
.auth-foot { margin-top: 16px; font-size: 11px; color: var(--muted); text-align: center; line-height: 1.6; }
.auth-foot a, .auth-check a { color: var(--accent-2); }
.auth-check { display: flex; gap: 9px; align-items: flex-start; font-size: 12.5px; line-height: 1.45; color: var(--text-2); margin: 10px 0 2px; cursor: pointer; }
.auth-check input { margin-top: 2px; width: 16px; height: 16px; flex: none; accent-color: var(--accent); }
.auth-legal h3 { margin: 4px 0 6px; font-size: 16px; }
.auth-gate.legal-step .auth-tabs, .auth-gate.legal-step #authForm, .auth-gate.legal-step .auth-lead { display: none; }
.auth-brand .brand-mark { width: 46px; height: 46px; border-radius: 12px; }

/* Çerez bildirimi */
.consent-backdrop { position: fixed; inset: 0; z-index: 400; background: rgba(5, 8, 15, .55); backdrop-filter: blur(2px); display: flex; align-items: flex-end; justify-content: center; padding: 16px; }
.consent-card { width: min(640px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); padding: 18px 18px 16px; }
.consent-card h3 { margin: 0 0 6px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.consent-card p { margin: 0 0 10px; font-size: 12.5px; color: var(--text-2); line-height: 1.55; }
.consent-card a { color: var(--accent-2); }
.consent-cats { display: grid; gap: 8px; margin: 10px 0 12px; }
.consent-cat { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border-soft); border-radius: 10px; font-size: 12.5px; }
.consent-cat input { margin-top: 2px; accent-color: var(--accent); }
.consent-cat b { display: block; margin-bottom: 2px; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
@media (max-width: 520px) { .consent-actions .btn { flex: 1 1 100%; } }
.btn:disabled { opacity: .55; cursor: default; }

/* ---------- Kullanıcı menüsü & bulut durumu ---------- */
.user-wrap { position: relative; }
.user-chip { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--violet)); color: #fff; font-weight: 700; font-size: 12.5px; }
.user-menu { position: absolute; right: 0; top: 44px; width: 240px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); z-index: 210; overflow: hidden; }
.um-head { padding: 10px 12px; border-bottom: 1px solid var(--border-soft); display: grid; gap: 2px; }
.um-head b { font-size: 13px; }
.um-head span { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.user-menu button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 12px; border: 0; background: transparent; cursor: pointer; font-size: 13px; color: var(--text-2); text-align: left; }
.user-menu button:hover { background: var(--surface-2); color: var(--text); }
.user-menu button i { width: 15px; height: 15px; }
.user-menu button.danger { color: var(--down); }
.cloud-state { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-2); }
.cloud-state .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.cloud-state.ok .dot { background: var(--up); }
.cloud-state.pend .dot { background: var(--warn); }
.cloud-state.err .dot { background: var(--down); }
.app.nav-collapsed .cloud-state span:last-child { display: none; }

/* Üst bar: kenar menüsü açıkken orta genişliklerde taşmayı önle (sayfa yatay kaymasın) */
.topbar > *:not(.page-title) { flex-shrink: 0; }
@media (max-width: 1320px) {
  .topbar { gap: 8px; }
  #spekBtn span, #nextDayBtn span { display: none; }
  #spekBtn, #nextDayBtn { padding: 0 10px; }
}
@media (min-width: 961px) and (max-width: 1100px) {
  .topbar { padding: 0 12px; }
  .speed-select { display: none; }
}

/* Görüntülü reklam alanı: dolana kadar yer kaplamaz (düzen kaymaz), dolmazsa hiç görünmez */
.ad-slot { height: 0; overflow: hidden; margin: 0; max-width: 100%; }
.ad-slot:has(ins[data-ad-status="filled"]) { height: auto; overflow: hidden; margin: 18px 0 4px; padding-top: 10px; border-top: 1px dashed var(--border-soft); }
.ad-slot .ad-label { display: block; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.ad-slot ins.adsbygoogle { width: 100%; max-width: 100%; }
@media (max-width: 720px) { .ad-slot:has(ins[data-ad-status="filled"]) { margin-bottom: 8px; } }
.consent-deny { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--down-soft); color: var(--down); font-size: 12.5px; line-height: 1.5; }
/* Yerel geliştirmede reklam yerlerini göstermek için önizleme kutusu */
.ad-slot.ad-preview { height: auto; margin: 18px 0 4px; padding-top: 10px; border-top: 1px dashed var(--border-soft); }
.ad-slot.ad-preview ins[data-ad-status="unfilled"] { display: none !important; }
.ad-ph { display: grid; place-items: center; text-align: center; height: 90px; border: 1px dashed var(--border); border-radius: 10px; color: var(--muted); font-size: 12.5px; background: var(--surface-2); line-height: 1.5; }
.ad-ph small { font-size: 11px; opacity: .8; }
.ad-slot.ad-preview:has(ins[data-ad-status="filled"]) .ad-ph { display: none; }

/* PDK paneli: değiştirilmiş kural vurgusu */
.field.adm-changed input { border-color: var(--warn); box-shadow: 0 0 0 2px var(--warn-soft); }
.field.adm-changed label { color: var(--warn); }

/* Ortak borsa modu: zaman tek ve ortak; gün atlama / hızlandırma yok */
body.shared-mode #nextDayBtn, body.shared-mode #speedSelect, body.shared-mode #pauseBtn, body.shared-mode #skipOpenBtn { display: none !important; }
body.shared-mode #clockBox { position: relative; }
body.shared-mode #clockBox::after { content: "ORTAK"; position: absolute; top: -7px; right: 6px; font-size: 9px; font-weight: 700; letter-spacing: .08em; padding: 1px 5px; border-radius: 6px; background: var(--accent); color: #fff; }

/* Ortak tahta: kademedeki oyuncu emri sayısı (·n), kapalı eğilim göstergesi, emir durum rozetleri */
.ob-cell .ob-n { margin-left: 3px; font-size: 10px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.book-card .ob-cell .ob-n { font-size: 10.5px; }
/* Dar sütunlarda (Tahtacı Modu, telefon) sayı adedin altına iner; fiyat sütunundan genişlik çalmaz */
.spek .ob-cell .qty { line-height: 1.15; }
.spek .book-card .ob-cell .ob-n { display: block; margin: 1px 0 0; font-size: 9px; line-height: 1; }
.sentiment.na .sent-knob { display: none; }
.sentiment.na .sent-bar { opacity: .35; filter: grayscale(1); }
.badge.ord-st { font-size: 10px; padding: 1px 6px; gap: 4px; }
td .badge.ord-st { margin-left: 6px; }
.sp-trow .badge.ord-st { margin-right: 5px; }
.badge.ord-st.pending { background: var(--warn-soft); color: var(--warn); }
.badge.ord-st.pending::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: pulse 1.2s ease-in-out infinite; }
.badge.ord-st.live { background: var(--accent-soft); color: var(--accent); }
.badge.ord-st.offline { background: var(--surface-3); color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .badge.ord-st.pending::before { animation: none; } }
/* Ortak tahta: kademede piyasa yapıcı (NPC) emri ("PY") */
.ob-cell .ob-py { margin-left: 4px; font-size: 9px; font-weight: 700; letter-spacing: .04em; padding: 0 3px; border-radius: 3px; color: var(--accent); background: var(--accent-soft); vertical-align: 1px; }
.spek .book-card .ob-cell .ob-py { display: inline-block; margin: 1px 0 0 2px; font-size: 8.5px; line-height: 1.2; }
@media (max-width: 720px) {
  .ob-cell .qty { line-height: 1.15; }
  .book-card .ob-cell .ob-n { display: block; margin: 1px 0 0; font-size: 9px; line-height: 1; }
  .book-card .ob-cell .ob-py { font-size: 8.5px; margin-left: 2px; }
  .badge.ord-st { font-size: 9.5px; padding: 1px 5px; }
}

/* Sürüm güncellemesi bildirimi */
.update-bar { position: fixed; left: 50%; top: 14px; transform: translateX(-50%); z-index: 500; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 12px; box-shadow: var(--shadow); font-size: 13.5px; max-width: calc(100% - 24px); text-align: center; }

/* PDK başvuruları (halka arz / sermaye artırımı): durum rozetleri, "PDK Başvurularım" kartı, yönetici tablosu */
.badge.pdk-st { font-size: 10.5px; padding: 1px 7px; gap: 4px; }
td .badge.pdk-st:first-child { margin-left: 0; }
.badge.pdk-st.pending { background: var(--warn-soft); color: var(--warn); }
.badge.pdk-st.pending::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: pulse 1.2s ease-in-out infinite; }
.badge.pdk-st.approved, .badge.pdk-st.done { background: var(--up-soft); color: var(--up); }
.badge.pdk-st.auto, .badge.pdk-st.claimed { background: var(--accent-soft); color: var(--accent); }
.badge.pdk-st.failed, .badge.pdk-st.rejected { background: var(--down-soft); color: var(--down); }
.badge.pdk-st.withdrawn { background: var(--surface-3); color: var(--muted); }
.pdk-sub { font-size: 11.5px; color: var(--muted); margin-top: 3px; white-space: normal; max-width: 320px; line-height: 1.4; }
.pdk-fin { font-size: 11.5px; color: var(--text-2); line-height: 1.45; white-space: normal; min-width: 220px; }
.pdk-note { margin-top: 0; }
.pdk-note .btn { justify-self: start; margin-top: 2px; }
.pdk-tbl { min-width: 720px; }                 /* dar ekranda kart içinde yatay kaydırma (sayfa kaymaz) */
.pdk-tbl.pdk-adm-tbl { min-width: 1080px; }
.pdk-tbl.pdk-audit-tbl { min-width: 980px; }
.pdk-tbl td { vertical-align: top; }
.pdk-tbl td:nth-child(2), .pdk-app-tbl td:nth-child(4), .pdk-adm-tbl td:nth-child(3) { min-width: 140px; }
.pdk-audit-tbl td:first-child { min-width: 210px; }
.pdk-tbl .warn { color: var(--warn); font-weight: 600; }
.pdk-adm-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (prefers-reduced-motion: reduce) { .badge.pdk-st.pending::before { animation: none; } }
@media (max-width: 720px) {
  .pdk-fin { min-width: 180px; }
  .pdk-sub { max-width: 220px; }
  .pdk-adm-actions { justify-content: flex-start; }
}

/* ---------- Yeni sezon: giriş kapısı bekleme ekranı, açık sekme katmanı, PDK → Sezon (tehlikeli bölge) ---------- */
.auth-gate.hold-step .auth-tabs, .auth-gate.hold-step #authForm, .auth-gate.hold-step .auth-lead, .auth-gate.hold-step .auth-legal { display: none; }
.season-hold { text-align: center; padding: 6px 0 2px; }
.season-hold h3 { margin: 10px 0 6px; font-size: 20px; letter-spacing: -.01em; }
.season-hold-text { color: var(--text-2); font-size: 13.5px; line-height: 1.55; margin: 0 0 12px; }
.season-hold #seasonHoldAdmin { text-align: left; }
.season-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--accent-soft); color: var(--accent-2); }
.season-wait { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; color: var(--muted); margin: 4px 0 6px; }
.season-spin { display: inline-block; width: 14px; height: 14px; flex: none; border-radius: 50%; border: 2px solid var(--border); border-top-color: var(--accent); animation: seasonSpin .9s linear infinite; vertical-align: -2px; }
.season-spin.sm { width: 11px; height: 11px; border-width: 2px; }
@keyframes seasonSpin { to { transform: rotate(360deg); } }
.season-ok { color: var(--up); font-weight: 700; }
.season-ok.big { font-size: 20px; }

/* Açık sekme: bakım / yeni sezon katmanı (kapatılamaz; güncelleme çubuğunun altında, her şeyin üstünde) */
body.season-locked { overflow: hidden; }
.season-overlay { position: fixed; inset: 0; z-index: 480; display: grid; place-items: center; padding: 16px; overflow-y: auto; background: rgba(5, 8, 14, .72); backdrop-filter: blur(3px); }
.season-overlay-card { width: min(440px, 100%); background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); padding: 24px 22px 20px; text-align: center; outline: none; }
.season-overlay-card h2 { margin: 12px 0 8px; font-size: 21px; letter-spacing: -.01em; }
.season-overlay-card p { margin: 0 0 12px; color: var(--text-2); font-size: 13.5px; line-height: 1.55; }

/* Bakımda yöneticinin sezon paneli (giriş kapısı yerine; onay pencereleri bunun üstünde açılır) */
.season-rescue { position: fixed; inset: 0; z-index: 140; overflow-y: auto; background: var(--bg); padding: 16px; }
.season-rescue-card { width: min(980px, 100%); margin: 0 auto; }
.season-rescue-t { margin: 0; }

/* PDK → Sezon */
.season-admin .kpis { margin-bottom: 4px; }
.season-kpi-date { font-size: 13px; font-weight: 600; }
.season-sec-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.season-sec-h .sub-h { margin: 0; }
.season-row-call { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.season-row-call > span { flex: 1 1 260px; min-width: 0; }
.season-row-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.season-list { margin: 6px 0 0; padding-left: 18px; }
.season-list li { margin: 2px 0; }
.season-danger { border: 1px solid var(--down); border-radius: 14px; overflow: hidden; background: var(--surface); }
.season-danger-h { background: var(--down-soft); border-bottom: 1px solid var(--down); padding: 10px 14px; }
.season-danger-h h3 { margin: 0; font-size: 14px; color: var(--down); }
.season-danger-b { padding: 12px 14px 14px; }
.season-checks { display: grid; gap: 2px; }
.season-check { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--text-2); margin: 6px 0 0; cursor: pointer; }
.season-check input { margin-top: 2px; width: 16px; height: 16px; flex: none; accent-color: var(--down); }
.season-check > span { min-width: 0; overflow-wrap: anywhere; }
.season-note { display: block; margin-top: 2px; }
.season-danger #szPhrase { font-weight: 700; letter-spacing: .04em; }
.season-danger #szStart:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.season-job { border: 1px solid var(--border); border-radius: 14px; padding: 14px; background: var(--surface); }
.season-job.season-done { border-color: var(--up); }
.season-job-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.season-job-h h3 { margin: 0; font-size: 16px; }
.season-steps { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.season-steps > li { position: relative; padding-left: 26px; font-size: 13px; color: var(--text-2); line-height: 1.5; }
.season-steps > li::before { content: ""; position: absolute; left: 2px; top: 3px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--border); box-sizing: border-box; }
.season-steps > li.done { color: var(--text); }
.season-steps > li.done::before { content: "✓"; border: 0; background: var(--up); color: #fff; font-size: 10px; font-weight: 700; line-height: 14px; text-align: center; }
.season-steps > li.run { color: var(--text); font-weight: 600; }
.season-steps > li.run::before { border-color: var(--border); border-top-color: var(--accent); animation: seasonSpin .9s linear infinite; }
.season-tables { margin-top: 6px; max-height: 320px; font-weight: 400; }
.season-tables td:first-child { width: 22px; text-align: center; }
.season-next { margin: 6px 0 0; padding-left: 20px; font-size: 13px; line-height: 1.55; color: var(--text-2); }
.season-next li { margin: 4px 0; }
.season-next code, .season-admin code { overflow-wrap: anywhere; }
.season-admin td code { white-space: nowrap; overflow-wrap: normal; }   /* tablo adları bölünmez; dar ekranda tablo yatay kayar */
@media (prefers-reduced-motion: reduce) { .season-spin, .season-steps > li.run::before { animation: none; } }
@media (max-width: 720px) {
  .season-overlay-card { padding: 20px 16px 16px; }
  .season-danger-b { padding: 10px 12px 12px; }
  .season-job { padding: 12px; }
  .season-rescue { padding: 10px; }
}
@media (max-width: 480px) { .season-admin .season-mb { display: none; } .season-admin td .badge { white-space: normal; } }   /* telefonda boyut sütunu gizlenir: tablo ekrana sığar */

/* Ortak borsa bağlantı rozeti (saatin yanında): bağlanıyor / canlı / gecikmeli (sarı) / kopuk */
.conn-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; padding: 4px 9px; border-radius: 999px;
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--border-soft); white-space: nowrap; }
.conn-chip[hidden] { display: none !important; }
.conn-chip .conn-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.conn-chip.on { background: var(--up-soft); color: var(--up); border-color: transparent; }
.conn-chip.stale { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.conn-chip.off { background: var(--down-soft); color: var(--down); border-color: transparent; }
.conn-chip.connecting .conn-dot { animation: connPulse 1s ease-in-out infinite; }
@keyframes connPulse { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
.conn-chip .conn-retry { font: inherit; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; border: 1px solid currentColor;
  background: transparent; color: inherit; cursor: pointer; min-height: 22px; }
.conn-chip .conn-retry:hover { background: currentColor; }
.conn-chip .conn-retry:hover { color: var(--surface); }
.conn-chip .conn-retry[hidden] { display: none; }
@media (max-width: 720px) { .conn-chip .conn-text { display: none; } .conn-chip { padding: 4px 7px; } }
@media (prefers-reduced-motion: reduce) { .conn-chip.connecting .conn-dot { animation: none; } }

/* Ortak kayıt bağlantısız: gün sabit, ORTAK etiketi sönük */
body.shared-offline #clockBox::after { content: "ORTAK · BAĞLANTI YOK"; background: var(--warn); }

/* Tek yazıcı sekme kilidi: "başka sekmede açık" */
.tab-lock-overlay { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(5, 8, 13, .72); backdrop-filter: blur(3px); }
.tab-lock-box { max-width: 420px; width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px; box-shadow: 0 20px 60px rgba(0,0,0,.45); }
.tab-lock-box h3 { margin: 0 0 8px; font-size: 17px; }
.tab-lock-box p { margin: 0 0 16px; color: var(--muted); line-height: 1.5; }

/* Piyasa yapıcı hisse seçimi (PDK paneli) */
.mm-pick-list { display: flex; flex-wrap: wrap; gap: 6px; max-height: 260px; overflow-y: auto; padding: 4px 0; }
.mm-pick { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border: 1px solid var(--line, rgba(128,128,128,.3)); border-radius: 999px; font-size: 12px; cursor: pointer; user-select: none; }
.mm-pick.on { border-color: var(--accent, #4f7cff); background: color-mix(in srgb, var(--accent, #4f7cff) 14%, transparent); }
.mm-pick input { margin: 0; }
.mm-pick-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mm-pick-bar input[type=search] { max-width: 180px; }
