/* ============================================================
   ZEO RADAR - Zeo Design System temalı arayüz
   Kaynak token'lar: design-system/zeo-tokens.css
   Font: Gilroy (başlık) + Akagi Pro (gövde) + mono rakamlar.
   ============================================================ */

@font-face { font-family: "Gilroy"; src: url("fonts/Gilroy-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Gilroy"; src: url("fonts/Gilroy-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Gilroy"; src: url("fonts/Gilroy-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Gilroy"; src: url("fonts/Gilroy-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Akagi Pro"; src: url("fonts/AkagiPro-Book.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Akagi Pro"; src: url("fonts/AkagiPro-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Akagi Pro"; src: url("fonts/AkagiPro-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --bg: #ffffff;
  --bg-side: #fff7f8;          /* Zeo pink-50 */
  --panel: #ffffff;
  --border: #e8ecf2;           /* Zeo hairline */
  --border-soft: #eef1f6;
  --ink: #012535;              /* Zeo koyu / başlık */
  --ink-2: #273041;            /* gövde metni */
  --ink-3: #5a6678;            /* ikincil */
  --ink-4: #afb8ca;            /* çok ikincil */
  --accent: #cc0a4d;           /* Zeo marka kırmızısı */
  --accent-dark: #a30046;
  --pink-100: #fde7ee;
  --pink-200: #ffcfdf;
  --green: #1a8f5a;
  --red: #cc0a4d;
  --chip-bg: #f5f8fc;
  --radius: 12px;
  --font: "Akagi Pro", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  --font-head: "Gilroy", "Akagi Pro", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --shadow-pop: 0 8px 30px rgba(1, 37, 53, .13), 0 2px 8px rgba(1, 37, 53, .06);
}

h1, h2, h3, .sec-head h2, .modal h2, .hero h2, .designer-head h1, .home-head h1 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--ink);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; font-size: inherit; background: none; border: none; cursor: pointer; color: inherit; }
input { font-family: inherit; }
.mono { font-family: var(--mono); }

/* ---------- Uygulama iskeleti ---------- */
#app { display: flex; min-height: 100vh; }

.sidebar {
  width: 218px; min-width: 218px;
  background: var(--bg-side);
  border-right: 1px solid var(--border-soft);
  display: flex; flex-direction: column;
  padding: 14px 10px 12px;
  position: sticky; top: 0; height: 100vh;
  overflow-y: auto;
}
.side-asset {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 9px; border-radius: 9px; cursor: pointer;
  font-weight: 600; font-size: 14px; color: var(--ink);
  margin-bottom: 14px; position: relative;
}
.side-asset:hover { background: var(--side-hover); }
.side-asset .chev { margin-left: 2px; color: var(--ink-4); display: flex; flex-direction: column; line-height: 6px; font-size: 9px; }
.side-asset img.mark { width: 22px; height: 20px; }

.side-label {
  font-size: 11.5px; color: var(--ink-4); font-weight: 500;
  padding: 12px 9px 5px; display: flex; align-items: center; gap: 4px;
}
.side-item {
  display: flex; align-items: center; gap: 9px;
  padding: 6.5px 9px; border-radius: 8px; cursor: pointer;
  color: var(--ink-2); font-size: 13.5px; font-weight: 500;
  margin: 1px 0;
}
.side-item svg { width: 15px; height: 15px; opacity: .75; }
.side-item:hover { background: var(--side-hover); }
.side-item.active { background: var(--pink-100); color: var(--ink); font-weight: 600; }
.side-item.active svg { opacity: 1; color: var(--accent); }
.side-foot { margin-top: auto; display: flex; gap: 14px; padding: 10px 9px 2px; color: var(--ink-3); }
.side-foot svg { width: 15px; height: 15px; }

/* Varlık değiştirici açılır menü */
.asset-pop {
  position: absolute; top: 42px; left: 0; z-index: 60;
  width: 250px; background: var(--panel); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--shadow-pop); overflow: hidden;
}
.asset-pop .search {
  display: flex; align-items: center; gap: 8px; padding: 12px 14px;
  border-bottom: 1px solid var(--border-soft); color: var(--ink-4);
}
.asset-pop .search input { border: none; outline: none; font-size: 14.5px; width: 100%; }
.asset-pop .group { padding: 8px 0; }
.asset-pop .group-label { font-size: 11.5px; color: var(--ink-4); padding: 6px 14px; }
.asset-pop .row {
  display: flex; align-items: center; gap: 10px; padding: 8px 14px;
  cursor: pointer; font-weight: 500; font-size: 14px;
}
.asset-pop .row:hover { background: var(--hover); }
.asset-pop .row img { width: 20px; height: 20px; border-radius: 5px; }
.asset-pop .row .check { margin-left: auto; color: var(--accent); }
.asset-pop .all {
  border-top: 1px solid var(--border-soft); padding: 10px 14px;
  display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer;
}
.asset-pop .all:hover { background: var(--hover); }

/* ---------- İçerik ---------- */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 26px 0;
}
.topbar .brand { display: flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 700; }
.topbar .brand img { width: 22px; height: 22px; border-radius: 5px; }
.topbar .spacer { flex: 1; }
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--border); background: var(--panel);
  border-radius: 9px; padding: 7px 13px; font-weight: 600; font-size: 13px;
  color: var(--ink); white-space: nowrap;
}
.btn:hover { background: var(--hover); border-color: var(--pink-200); }
.btn.black { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn.black:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn.small { padding: 5px 10px; font-size: 12.5px; }
.btn svg { width: 14px; height: 14px; }
.btn:disabled { opacity: .45; cursor: default; }

.tabs {
  display: flex; align-items: center; gap: 22px;
  padding: 14px 26px 0; border-bottom: 1px solid var(--border-soft);
}
.tab {
  padding: 6px 1px 11px; font-size: 13.5px; font-weight: 500; color: var(--ink-3);
  border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap;
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent); }
.tabs .spacer { flex: 1; }
.tabs .side-links { display: flex; gap: 16px; align-items: center; padding-bottom: 8px; }
.tabs .side-links .lnk { color: var(--ink-3); font-size: 13.5px; font-weight: 500; cursor: pointer; }
.tabs .side-links .lnk:hover { color: var(--ink); }

/* Filtre çubuğu */
.filterbar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 12px 26px;
}
.fchip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--border); border-radius: 9px;
  background: var(--panel); padding: 6px 11px; font-size: 12.5px; font-weight: 600;
  color: var(--ink-2); cursor: pointer; position: relative; white-space: nowrap;
}
.fchip:hover { background: var(--hover); }
.fchip.dashed { border-style: dashed; }
.fchip svg { width: 13px; height: 13px; opacity: .7; }
.fchip .cnt { background: var(--accent); color: #fff; border-radius: 99px; font-size: 10.5px; padding: 1px 6px; font-family: var(--mono); }
.fchip .x { color: var(--ink-4); font-size: 13px; padding-left: 2px; }
.fchip .x:hover { color: var(--ink); }
.freset { color: var(--ink-2); font-weight: 600; font-size: 12.5px; padding: 6px 8px; cursor: pointer; border-radius: 8px; }
.freset { color: var(--accent); }
.freset:hover { background: var(--pink-100); }
.filterbar .divider { width: 1px; height: 20px; background: var(--border); margin: 0 2px; }
.filterbar .spacer { flex: 1; }
.icon-btn {
  border: 1px solid var(--border); background: var(--panel); border-radius: 8px;
  width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-2); cursor: pointer;
}
.icon-btn:hover { background: var(--hover); }
.icon-btn svg { width: 14px; height: 14px; }

/* Filtre açılır menüsü */
.fpop {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 55;
  min-width: 225px; background: var(--panel); border: 1px solid var(--border);
  border-radius: 13px; box-shadow: var(--shadow-pop); overflow: hidden;
  font-weight: 500; cursor: default;
}
.fpop .search { display: flex; align-items: center; gap: 8px; padding: 10px 13px; border-bottom: 1px solid var(--border-soft); color: var(--ink-4); }
.fpop .search input { border: none; outline: none; width: 100%; font-size: 13.5px; }
.fpop .opts { max-height: 260px; overflow-y: auto; padding: 5px; }
.fpop .opt {
  display: flex; align-items: center; gap: 9px; padding: 8px 9px;
  border-radius: 8px; cursor: pointer; font-size: 13.5px; color: var(--ink);
}
.fpop .opt:hover { background: var(--hover); }
.fpop .opt .cb {
  width: 15px; height: 15px; border-radius: 4px; border: 1.4px solid var(--pink-200);
  display: inline-flex; align-items: center; justify-content: center; background: var(--panel);
}
.fpop .opt.on .cb { background: var(--accent); border-color: var(--accent); color: #fff; }
.fpop .opt .cb svg { width: 9px; height: 9px; }
.fpop .foot {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--border-soft); padding: 9px 13px; font-size: 12.5px; color: var(--ink-3);
}
.fpop .foot .clear { cursor: pointer; font-weight: 600; color: var(--ink-2); }
.fpop .foot .clear:hover { color: var(--ink); }

/* ---------- Sayfa gövdesi ---------- */
.page { padding: 6px 26px 60px; }
.section { margin-top: 26px; }
.sec-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.sec-head h2 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.sec-head .sub { color: var(--ink-3); font-size: 13px; margin-top: 3px; }
.sec-head .spacer { flex: 1; }

.card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius);
}
.duo { display: grid; grid-template-columns: 1fr 1fr; }
.duo > .half { padding: 18px 20px 16px; min-width: 0; }
.duo > .half + .half { border-left: 1px solid var(--border-soft); }

.metric-label { font-size: 12.5px; color: var(--ink-3); font-weight: 500; border-bottom: 1px dashed var(--pink-200); display: inline-block; padding-bottom: 1px; }
.big-num { font-family: var(--mono); font-size: 27px; font-weight: 700; color: var(--ink); margin-top: 8px; letter-spacing: -.02em; display: flex; align-items: baseline; gap: 8px; }
.big-num .delta { font-size: 13px; color: var(--ink-4); font-weight: 500; }
.delta.up { color: var(--green); }
.delta.down { color: var(--red); }

/* Grafikler */
.chart-wrap { margin-top: 6px; position: relative; }
.chart-dl { position: absolute; right: 0; top: -34px; }
svg.chart text { font-family: var(--mono); font-size: 10.5px; fill: var(--ink-4); }
.axis-icons { display: flex; justify-content: space-around; margin-top: 6px; }
.axis-icons img, .axis-icons .avatar, .axis-icons svg { width: 18px; height: 18px; border-radius: 5px; }

.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; }
.legend .li { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.legend .sw { width: 14px; height: 14px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.legend .sw svg { width: 9px; height: 9px; }
.legend .li.off .sw { background: var(--panel) !important; border: 1.4px solid var(--pink-200); }
.legend .li.off { color: var(--ink-4); }

/* Sıralama listeleri */
.rank-title { font-size: 12.5px; color: var(--ink-3); font-weight: 500; border-bottom: 1px dashed var(--pink-200); display: inline-block; padding-bottom: 1px; }
.rank-big { font-family: var(--mono); font-size: 27px; font-weight: 700; color: var(--ink); margin-top: 8px; }
.rank-cols { display: flex; justify-content: space-between; color: var(--ink-3); font-size: 12.5px; margin: 14px 0 4px; }
.rank-list .rrow {
  display: flex; align-items: center; gap: 10px;
  padding: 9.5px 0; border-bottom: 1px solid var(--border-soft);
}
.rank-list .rrow:last-child { border-bottom: none; }
.rank-list .num { font-family: var(--mono); color: var(--ink-4); width: 22px; font-size: 12.5px; }
.rank-list img.fav, .avatar { width: 20px; height: 20px; border-radius: 5px; object-fit: contain; }
.rank-list .nm { font-weight: 600; font-size: 13.5px; display: flex; align-items: center; gap: 7px; min-width: 0; }
.rank-list .nm .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge {
  background: var(--chip-bg); color: var(--ink-2); font-size: 10.5px; font-weight: 600;
  border-radius: 6px; padding: 2px 6px; white-space: nowrap;
}
.rank-list .val { margin-left: auto; font-family: var(--mono); font-weight: 700; font-size: 13px; display: flex; gap: 10px; align-items: baseline; }
.rank-list .val .delta { font-size: 12px; font-weight: 500; color: var(--ink-4); }
.expand-row { display: flex; justify-content: flex-end; margin-top: 10px; }

.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: #fff; text-transform: uppercase;
  font-family: var(--mono);
}

/* Tablolar */
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th {
  text-align: left; color: var(--ink-3); font-weight: 500; font-size: 12.5px;
  padding: 10px 14px; border-bottom: 1px solid var(--border-soft); background: var(--hover);
  white-space: nowrap;
}
.tbl th:first-child { border-top-left-radius: var(--radius); }
.tbl th:last-child { border-top-right-radius: var(--radius); }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: none; }
.tbl td.num, .tbl th.num { font-family: var(--mono); }
.tbl .rankcell { color: var(--ink-4); font-family: var(--mono); font-size: 12.5px; width: 40px; }
.tbl .domain { display: flex; align-items: center; gap: 9px; font-weight: 600; }
.tbl .delta { font-family: var(--mono); font-size: 12.5px; }
.tbl-foot { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; color: var(--ink-3); font-size: 12.5px; }
.tbl-foot b { color: var(--ink); font-weight: 600; }
.tbl tr.clickable { cursor: pointer; }
.tbl tr.clickable:hover td { background: var(--hover); }

/* Kategori rozetleri */
.cat-badge {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600;
  border-radius: 99px; padding: 3px 9px; white-space: nowrap;
}
.cat-social { background: #f5f0ff; color: #7c3aed; }
.cat-owned { background: #f1f6f4; color: #1a8f5a; }
.cat-earned { background: #eff4ff; color: #2563eb; }
.cat-institution { background: #ecfeff; color: #0e7490; }
.cat-prwire { background: #fff7ed; color: #d97706; }
.cat-competition { background: var(--pink-100); color: var(--accent); }
.cat-other { background: #f5f8fc; color: #5a6678; }

/* Yığılmış kategori çubuğu */
.stackbar { display: flex; height: 30px; border-radius: 7px; overflow: hidden; gap: 3px; }
.stackbar .seg {
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--mono); font-size: 11.5px; font-weight: 700;
  min-width: 4px; border-radius: 4px; transition: flex-basis .2s;
}

/* Anılma rozetleri */
.mention { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 12.5px; }
.mention .dot { width: 15px; height: 15px; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.mention .dot svg { width: 8px; height: 8px; }
.mention.yes .dot { background: var(--green); }
.mention.no .dot { background: var(--accent); }
.mention.unk { color: var(--ink-3); font-weight: 500; }
.mention.unk .dot { background: #d5dbe6; color: #5a6678; }

/* Isı haritası */
.matrix { overflow-x: auto; }
.matrix table { border-collapse: collapse; width: 100%; }
.matrix th {
  font-size: 12.5px; color: var(--ink-2); font-weight: 600; padding: 11px 12px;
  background: var(--hover); border-bottom: 1px solid var(--border-soft); text-align: center; white-space: nowrap;
}
.matrix th:first-child { text-align: left; }
.matrix th .ph { display: inline-flex; align-items: center; gap: 7px; }
.matrix td { padding: 0; border: 1px solid var(--panel); }
.matrix td.brandcell { padding: 10px 12px; background: var(--panel); font-weight: 600; white-space: nowrap; border-bottom: 1px solid var(--border-soft); }
.matrix td.brandcell .bwrap { display: flex; align-items: center; gap: 9px; }
.matrix .cell {
  display: flex; align-items: center; justify-content: center;
  height: 43px; font-family: var(--mono); font-size: 12.5px; font-weight: 600; min-width: 120px;
}

/* Dağılım (scatter) */
.scatter-legend { display: flex; gap: 18px; padding: 13px 16px; border-bottom: 1px solid var(--border-soft); font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.scatter-legend .li { display: flex; gap: 7px; align-items: center; }
.scatter-legend .dot { width: 8px; height: 8px; border-radius: 99px; }
.scatter-legend .n { color: var(--ink-4); font-family: var(--mono); font-weight: 500; }
.scatter-wrap { padding: 10px 16px 16px; }
svg.scatter .qlabel { font-size: 11.5px; fill: #9ca3af; font-family: var(--font); }
svg.scatter .axis-label { font-size: 11.5px; fill: #6b7280; font-family: var(--font); }
.pt-chip { font-size: 11.5px; font-weight: 600; }
.seg-toggle { display: inline-flex; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; }
.seg-toggle button { padding: 6px 13px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); display: inline-flex; gap: 6px; align-items: center; background: var(--panel); }
.seg-toggle button.on { background: var(--pink-100); color: var(--accent); }
.seg-toggle button svg { width: 13px; height: 13px; }

/* Konu satırları (logo ızgaralı) */
.topic-table .trow { border-bottom: 1px solid var(--border-soft); }
.topic-table .trow:last-child { border-bottom: none; }
.topic-head {
  display: grid; grid-template-columns: minmax(240px, 1.1fr) repeat(10, minmax(52px, 1fr));
  align-items: center; padding: 9px 14px; cursor: pointer;
}
.topic-head:hover { background: var(--hover); }
.topic-head .tname { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 13.5px; }
.topic-head .tname .chev { color: var(--ink-4); transition: transform .15s; }
.topic-head.open .tname .chev { transform: rotate(90deg); }
.topic-head .cell-logo { display: flex; justify-content: center; }
.topic-head .cell-logo img, .topic-head .cell-logo .avatar { width: 26px; height: 26px; border-radius: 99px; border: 1px solid var(--border-soft); background: var(--panel); }
.topic-sub { padding: 2px 14px 10px 34px; }
.prompt-line {
  display: grid; grid-template-columns: minmax(240px, 1.1fr) repeat(10, minmax(52px, 1fr));
  align-items: center; padding: 7px 0; cursor: pointer; border-radius: 8px;
}
.prompt-line:hover { background: var(--hover); }
.prompt-line .ptext { font-size: 13px; color: var(--ink-2); padding-right: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prompt-line .cell-logo { display: flex; justify-content: center; }
.prompt-line .cell-logo img, .prompt-line .cell-logo .avatar { width: 22px; height: 22px; border-radius: 99px; border: 1px solid var(--border-soft); background: var(--panel); }
.hdr-line {
  display: grid; grid-template-columns: minmax(240px, 1.1fr) repeat(10, minmax(52px, 1fr));
  padding: 10px 14px; background: var(--hover); color: var(--ink-3); font-size: 12.5px;
  border-bottom: 1px solid var(--border-soft);
  border-top-left-radius: var(--radius); border-top-right-radius: var(--radius);
}
.hdr-line .c { text-align: center; font-family: var(--mono); }
.tag-leader { color: #1a8f5a; background: #f1f6f4; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 99px; }
.tag-needs { color: var(--accent); background: var(--pink-100); font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 99px; }

/* Prompt analiz tablosu */
.pa-row-group > .pa-topic {
  display: grid; grid-template-columns: minmax(280px, 2fr) repeat(5, minmax(110px, 1fr));
  align-items: center; padding: 10px 14px; cursor: pointer; border-bottom: 1px solid var(--border-soft);
}
.pa-topic:hover { background: var(--hover); }
.pa-topic .tname { font-weight: 600; display: flex; gap: 9px; align-items: center; }
.pa-topic .tname .chev { color: var(--ink-4); transition: transform .15s; }
.pa-topic.open .tname .chev { transform: rotate(90deg); }
.pa-topic .tname .sub { display: block; font-weight: 400; color: var(--ink-4); font-size: 11.5px; margin-top: 2px; }
.pa-cell { font-family: var(--mono); font-size: 13px; display: flex; gap: 10px; align-items: baseline; }
.pa-cell .d { color: var(--ink-4); font-size: 11.5px; }
.pa-prompt {
  display: grid; grid-template-columns: minmax(280px, 2fr) repeat(5, minmax(110px, 1fr));
  align-items: center; padding: 9px 14px 9px 36px; cursor: pointer; border-bottom: 1px solid var(--border-soft);
  font-size: 13px; color: var(--ink-2);
}
.pa-prompt:hover { background: var(--hover); }
.pa-prompt .ptext { padding-right: 12px; }
.pa-hdr {
  display: grid; grid-template-columns: minmax(280px, 2fr) repeat(5, minmax(110px, 1fr));
  padding: 10px 14px; background: var(--hover); color: var(--ink-3); font-size: 12.5px;
  border-bottom: 1px solid var(--border-soft);
  border-top-left-radius: var(--radius); border-top-right-radius: var(--radius);
}
.count-pill { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-3); font-family: var(--mono); }
.ring { width: 16px; height: 16px; transform: rotate(-90deg); }
.seg-tabs { display: inline-flex; background: var(--pink-100); border-radius: 9px; padding: 3px; gap: 2px; }
.seg-tabs button { border-radius: 7px; padding: 5px 12px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.seg-tabs button.on { background: var(--panel); color: var(--accent); box-shadow: 0 1px 3px rgba(1,37,53,.1); }
.search-input {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border);
  border-radius: 9px; padding: 6px 11px; background: var(--panel); color: var(--ink-4);
}
.search-input input { border: none; outline: none; font-size: 13px; width: 170px; color: var(--ink); }

/* Fanout */
.banner {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--hover); border: 1px solid var(--pink-200); border-radius: var(--radius);
  padding: 13px 16px; color: var(--ink-2); font-size: 13px;
}
.banner b { display: block; font-size: 13.5px; color: var(--ink); margin-bottom: 2px; }
.banner .x { margin-left: auto; color: var(--ink-4); cursor: pointer; }
.fan-row { border-bottom: 1px solid var(--border-soft); }
.fan-row:last-child { border-bottom: none; }
.fan-head { display: grid; grid-template-columns: 1fr 160px 200px; align-items: center; padding: 11px 16px; cursor: pointer; }
.fan-head:hover { background: var(--hover); }
.fan-head .q { font-weight: 500; font-size: 13.5px; display: flex; gap: 9px; align-items: flex-start; }
.fan-head .q .chev { color: var(--ink-4); margin-top: 2px; transition: transform .15s; }
.fan-head.open .q .chev { transform: rotate(90deg); }
.fan-head .q .sub { display: block; color: var(--ink-4); font-size: 11.5px; font-weight: 400; margin-top: 2px; }
.fan-head .n { font-family: var(--mono); font-size: 13px; }
.fan-subrows { padding: 0 16px 10px 36px; }
.fan-sub { display: grid; grid-template-columns: 1fr 160px 200px; padding: 9px 12px; background: var(--panel); border: 1px solid var(--border-soft); border-radius: 9px; margin-bottom: 6px; font-size: 13px; }
.fan-sub .n { font-family: var(--mono); }
.fan-sub .plus { color: var(--green); font-family: var(--mono); margin-left: 8px; font-size: 12px; }

/* Boş durum / kilitli sayfalar */
.hero {
  border-radius: var(--radius); border: 1px solid var(--border);
  background-color: var(--hover);
  background-image: radial-gradient(#ffcfdf 1px, transparent 1px);
  background-size: 14px 14px;
  padding: 68px 30px; text-align: center;
}
.hero h2 { font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.hero p { color: var(--ink-3); max-width: 420px; margin: 10px auto 0; font-size: 13.5px; line-height: 1.55; }
.hero .actions { margin-top: 22px; display: flex; justify-content: center; gap: 10px; }
.hero .progress { width: 220px; height: 4px; background: var(--pink-200); border-radius: 99px; margin: 22px auto 8px; overflow: hidden; }
.hero .progress i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.hero .pct { font-size: 12px; color: var(--ink-3); }
.hero.big-title h2 { font-size: 26px; }
.locked-input {
  max-width: 440px; margin: 24px auto 0; border: 1px solid var(--pink-200);
  background: var(--panel); border-radius: 12px; padding: 13px 16px; text-align: left;
  color: var(--ink-4);
}
.locked-input .row1 { display: flex; align-items: center; gap: 9px; font-size: 13.5px; }
.locked-input .row2 { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; opacity: .5; font-size: 12px; }

/* Sentiment önizleme kartları */
.quote-rail { display: flex; gap: 14px; overflow-x: auto; padding: 6px 2px 10px; }
.quote-card {
  min-width: 250px; max-width: 250px; background: var(--panel); border: 1px solid var(--border);
  border-radius: 13px; padding: 16px; box-shadow: 0 4px 14px rgba(0,0,0,.04);
  display: flex; flex-direction: column; gap: 14px;
}
.quote-card .qt { font-size: 13.5px; font-weight: 600; line-height: 1.45; }
.quote-card .meta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.quote-card .plat { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-3); font-weight: 500; }
.slabel { font-size: 11.5px; font-weight: 600; border-radius: 7px; padding: 3px 8px; }
.slabel.positive { color: #1a8f5a; background: #f1f6f4; }
.slabel.neutral { color: #5a6678; background: #f5f8fc; }
.slabel.negative { color: var(--accent); background: var(--pink-100); }

/* Bölgeler */
.regions-grid { display: grid; grid-template-columns: 1.6fr 1fr; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.map-pane { background: #eef1f6; position: relative; min-height: 480px; }
.map-pane svg { width: 100%; height: 100%; display: block; }
.map-pane svg path { fill: #ffffff; stroke: #d5dbe6; stroke-width: .4; }
.map-pane svg path.tracked { fill: #cc0a4d; stroke: #a30046; }
.map-pane svg path.neighbor { fill: #ffcfdf; stroke: #f5b3c9; }
.map-zoom { position: absolute; top: 14px; right: 14px; display: flex; flex-direction: column; gap: 6px; }
.map-zoom button { width: 30px; height: 30px; background: var(--panel); border-radius: 8px; border: 1px solid var(--border); font-size: 16px; font-weight: 600; }
.region-pane { border-left: 1px solid var(--border-soft); display: flex; flex-direction: column; }
.region-pane .seg-tabs { margin: 14px 14px 4px; }
.region-row { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--border-soft); font-weight: 600; font-size: 13.5px; }
.region-row .flag { width: 20px; height: 20px; border-radius: 99px; }
.region-row .val { margin-left: auto; font-family: var(--mono); font-weight: 700; display: flex; gap: 8px; align-items: baseline; }
.region-pane .cta { margin: auto 14px 14px; }
.region-cols { display: flex; justify-content: space-between; padding: 10px 16px; color: var(--ink-3); font-size: 12.5px; border-bottom: 1px solid var(--border-soft); }

/* Modallar */
.overlay {
  position: fixed; inset: 0; background: rgba(20, 21, 26, .45); z-index: 90;
  display: flex; align-items: flex-start; justify-content: center; padding: 34px 20px;
  overflow-y: auto;
}
.modal {
  background: var(--panel); border-radius: 16px; width: 100%; max-width: 1280px;
  box-shadow: 0 24px 80px rgba(0,0,0,.28); position: relative;
  padding: 26px 30px 30px; margin-bottom: 40px;
}
.modal .close { position: absolute; top: 16px; right: 18px; color: var(--ink-4); font-size: 17px; width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.modal .close:hover { background: var(--pink-100); color: var(--accent); }
.modal .m-kicker { color: var(--ink-3); font-size: 12.5px; }
.modal h2 { font-size: 21px; letter-spacing: -.01em; margin-top: 5px; }
.modal .m-sub { color: var(--ink-3); font-size: 13px; margin-top: 5px; }
.m-tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--border-soft); margin-top: 18px; }
.m-tabs .tab { padding-bottom: 9px; }
.exec-row { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.exec-head { display: flex; align-items: center; gap: 11px; padding: 12px 15px; cursor: pointer; }
.exec-head:hover { background: var(--hover); }
.exec-head .pname { font-weight: 600; display: flex; align-items: center; gap: 9px; }
.exec-head .model { color: var(--ink-4); font-size: 12px; font-family: var(--mono); }
.exec-head .right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.exec-head .chev { color: var(--ink-4); transition: transform .15s; }
.exec-row.open .exec-head .chev { transform: rotate(90deg); }
.exec-body { border-top: 1px solid var(--border-soft); padding: 16px 18px; font-size: 13.5px; line-height: 1.65; color: var(--ink-2); background: #fffbfc; }
.exec-body h1, .exec-body h2, .exec-body h3 { font-size: 14px; margin: 12px 0 6px; color: var(--ink); }
.exec-body ul, .exec-body ol { padding-left: 20px; margin: 8px 0; }
.exec-body li { margin: 3px 0; }
.exec-body a { color: var(--accent); }
.exec-body p { margin: 8px 0; }
.exec-body strong { color: var(--ink); }
.mini-favs { display: flex; align-items: center; }
.mini-favs img, .mini-favs .avatar { width: 20px; height: 20px; border-radius: 99px; border: 1.6px solid #fff; margin-left: -6px; }
.mini-favs img:first-child, .mini-favs .avatar:first-child { margin-left: 0; }
.mini-favs .more { font-size: 11px; color: var(--ink-3); font-family: var(--mono); margin-left: 5px; }

/* Prompt Designer */
.designer-top { display: flex; align-items: center; padding: 16px 26px 0; color: var(--ink-2); }
.designer-top .save-note { margin-left: auto; color: var(--ink-4); font-size: 12.5px; display: flex; gap: 12px; align-items: center; }
.designer-head { padding: 12px 26px 0; }
.designer-head h1 { font-size: 21px; letter-spacing: -.01em; }
.designer-head .sub { color: var(--ink-3); margin-top: 5px; font-size: 13.5px; }
.designer-tabs { display: flex; gap: 18px; padding: 16px 26px 0; border-bottom: 1px solid var(--border-soft); align-items: center; }
.designer-grid { display: grid; grid-template-columns: 218px 1fr; min-height: 60vh; }
.dg-side { border-right: 1px solid var(--border-soft); padding: 14px 10px; display: flex; flex-direction: column; }
.dg-side .t-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.dg-side .t-row:hover { background: var(--side-hover); }
.dg-side .t-row.on { background: var(--pink-100); color: var(--ink); font-weight: 600; }
.dg-side .t-row .n { color: var(--ink-4); font-family: var(--mono); font-size: 12px; }
.dg-side .addt { margin-top: auto; }
.dg-main { padding: 14px 20px; min-width: 0; }
.dg-toolbar { display: flex; gap: 9px; align-items: center; margin-bottom: 12px; }
.dg-toolbar .spacer { flex: 1; }
.prompt-type-chips { display: flex; gap: 5px; }

/* All Assets ana sayfa */
.home { max-width: 1130px; margin: 0 auto; padding: 46px 30px 80px; }
.home-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.home-head img { width: 34px; height: 31px; }
.home-head h1 { font-size: 24px; letter-spacing: -.02em; }
.home-head .sub { color: var(--ink-3); margin-top: 3px; font-size: 13.5px; }
.home-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px; }
.asset-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 15px;
  padding: 20px; cursor: pointer; transition: box-shadow .15s, transform .15s, border-color .15s;
  display: flex; flex-direction: column; gap: 14px;
}
.asset-card:hover { border-color: var(--accent); background: var(--hover); }
.asset-card .top { display: flex; align-items: center; gap: 11px; }
.asset-card .top img, .asset-card .top .avatar { width: 34px; height: 34px; border-radius: 9px; }
.asset-card .nm { font-weight: 700; font-size: 15.5px; }
.asset-card .dm { color: var(--ink-3); font-size: 12.5px; margin-top: 1px; }
.asset-card .stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.asset-card .stat .k { color: var(--ink-3); font-size: 11px; font-weight: 500; }
.asset-card .stat .v { font-family: var(--mono); font-weight: 700; font-size: 15px; margin-top: 3px; }
.asset-card .foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--ink-3); font-size: 11.5px; border-top: 1px solid var(--border-soft); padding-top: 12px; }
.home-note { margin-top: 34px; color: var(--ink-3); font-size: 12px; text-align: center; }

/* Yardımcılar */
.hidden { display: none !important; }
.mt8 { margin-top: 8px; } .mt14 { margin-top: 14px; } .mt20 { margin-top: 20px; }
.dim { color: var(--ink-3); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
::-webkit-scrollbar { height: 9px; width: 9px; }
::-webkit-scrollbar-thumb { background: #d5dbe6; border-radius: 99px; }
::-webkit-scrollbar-track { background: transparent; }

@media (max-width: 1180px) {
  .duo { grid-template-columns: 1fr; }
  .duo > .half + .half { border-left: none; border-top: 1px solid var(--border-soft); }
  .home-grid { grid-template-columns: repeat(2, 1fr); }
  .regions-grid { grid-template-columns: 1fr; }
}

/* ---------- Alt buton çubuğu / bilgi kutusu / menü kapatma ---------- */
.side-foot .foot-btn {
  cursor: pointer; border-radius: 7px; padding: 4px;
  display: inline-flex; align-items: center; justify-content: center; position: relative;
}
.side-foot .foot-btn:hover { background: var(--side-hover); color: var(--ink); }
.info-pop {
  position: fixed; bottom: 52px; left: 14px; z-index: 80;
  width: 252px; background: var(--panel); border: 1px solid var(--border);
  border-radius: 13px; box-shadow: var(--shadow-pop);
  padding: 13px 15px; text-align: left; cursor: default;
}
.info-pop .t { font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.info-pop .t img { width: 17px; height: 16px; }
.info-pop .line { font-size: 12px; color: var(--ink-3); margin-top: 7px; line-height: 1.5; }
.info-pop .kv { display: flex; justify-content: space-between; font-size: 12px; margin-top: 6px; }
.info-pop .kv .k { color: var(--ink-3); }
.info-pop .kv .v { font-family: var(--mono); font-weight: 600; color: var(--ink); }
.info-pop .foot-link { margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--border-soft); font-size: 11.5px; color: var(--accent); font-weight: 600; }

body.side-collapsed .sidebar { display: none; }
.side-reopen {
  position: fixed; left: 12px; bottom: 12px; z-index: 45;
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--panel); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-2); cursor: pointer; box-shadow: var(--shadow-pop);
}
.side-reopen:hover { background: var(--hover); color: var(--ink); }

input { color: var(--ink); background: transparent; }
input::placeholder { color: var(--ink-4); }

/* ---------- KOYU TEMA (Zeo ink zemin + soft red vurgu) ---------- */
body.dark {
  --bg: #06131c;
  --bg-side: #0a1b26;
  --panel: #0d2130;
  --border: #1d3849;
  --border-soft: #17303f;
  --ink: #eef4f8;
  --ink-2: #c9d6de;
  --ink-3: #8aa2b0;
  --ink-4: #546c7d;
  --accent: #cc0a4d;
  --accent-dark: #e2135c;
  --pink-100: rgba(204, 10, 77, .18);
  --pink-200: #4a2438;
  --chip-bg: #14293a;
  --hover: #102331;
  --side-hover: #13293a;
  --shadow-pop: 0 10px 34px rgba(0, 0, 0, .5), 0 2px 10px rgba(0, 0, 0, .35);
}
body.dark .freset { color: #ff8aae; }
body.dark .seg-tabs button.on { color: #ff8aae; }
body.dark .asset-pop .row .check { color: #ff8aae; }
body.dark .info-pop .foot-link { color: #ff8aae; }
body.dark .btn.black { background: #cc0a4d; border-color: #cc0a4d; color: #fff; }
body.dark .btn.black:hover { background: #e2135c; border-color: #e2135c; }
body.dark .hero {
  background-color: #0b1d2b;
  background-image: radial-gradient(rgba(255, 138, 174, .16) 1px, transparent 1px);
}
body.dark .exec-body { background: #0b1c29; }
body.dark .map-pane { background: #081722; }
body.dark .map-pane svg path { fill: #14283a; stroke: #1f3a4d; }
body.dark .map-pane svg path.tracked { fill: #cc0a4d; stroke: #ff8aae; }
body.dark .mention.unk .dot { background: #33495a; color: #9db3c0; }
body.dark .mini-favs img, body.dark .mini-favs .avatar { border-color: var(--panel); }
body.dark .cat-social { background: rgba(139, 92, 246, .2); color: #c4b5fd; }
body.dark .cat-owned { background: rgba(26, 143, 90, .2); color: #6ee7b7; }
body.dark .cat-earned { background: rgba(59, 130, 246, .2); color: #93c5fd; }
body.dark .cat-institution { background: rgba(6, 182, 212, .18); color: #67e8f9; }
body.dark .cat-prwire { background: rgba(245, 158, 11, .18); color: #fcd34d; }
body.dark .cat-competition { background: rgba(204, 10, 77, .26); color: #ff8aae; }
body.dark .cat-other { background: #17303f; color: #9db3c0; }
body.dark .tag-leader { background: rgba(26, 143, 90, .2); color: #6ee7b7; }
body.dark .tag-needs { background: rgba(204, 10, 77, .26); color: #ff8aae; }
body.dark .slabel.positive { background: rgba(26, 143, 90, .2); color: #6ee7b7; }
body.dark .slabel.neutral { background: #17303f; color: #9db3c0; }
body.dark .slabel.negative { background: rgba(204, 10, 77, .26); color: #ff8aae; }
body.dark .seg-tabs { background: #14293a; }
body.dark .seg-tabs button.on { background: #0d2130; }
body.dark .overlay { background: rgba(2, 10, 16, .66); }
body.dark ::-webkit-scrollbar-thumb { background: #29455a; }
body.dark .topic-head .cell-logo img, body.dark .prompt-line .cell-logo img { border-color: var(--border-soft); }

/* ---------- Toast (pasif özellik bildirimi) ---------- */
.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: var(--bg); padding: 9px 16px; border-radius: 10px;
  font-size: 12.5px; font-weight: 600; z-index: 120; box-shadow: var(--shadow-pop);
  opacity: 0; transition: opacity .18s; pointer-events: none; white-space: nowrap;
}
.toast.show { opacity: 1; }

/* ---------- Dil düğmesi ve ana sayfa alt çubuğu ---------- */
.foot-btn.lang-btn { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .04em; min-width: 26px; }
.home-foot {
  position: fixed; bottom: 12px; left: 14px; z-index: 45;
  background: var(--panel); border: 1px solid var(--border); border-radius: 11px;
  padding: 2px 6px; box-shadow: var(--shadow-pop);
}
.home-foot .side-foot { margin: 0; padding: 4px 2px; gap: 8px; }

/* ---------- Metrik açıklama kutusu (kesik çizgili başlıklarda hover) ---------- */
.metric-label, .rank-title { cursor: help; }
.tipbox {
  position: fixed; z-index: 140; max-width: 290px;
  background: var(--ink); color: var(--bg);
  border-radius: 10px; padding: 10px 13px;
  font-size: 12px; line-height: 1.55; font-weight: 500;
  box-shadow: var(--shadow-pop); pointer-events: none;
  opacity: 0; transition: opacity .12s;
}
.tipbox.show { opacity: 1; }
.tipbox .tb-title { font-weight: 700; font-size: 12.5px; margin-bottom: 3px; display: block; }
.tipbox::after {
  content: ""; position: absolute; top: 100%; left: 18px;
  border: 6px solid transparent; border-top-color: var(--ink);
}

/* ---------- Duygu (sentiment) sekmesi ---------- */
.sent-table .sent-theme {
  display: grid; grid-template-columns: minmax(200px, 1.4fr) minmax(90px, 1fr) 66px 110px 92px;
  align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer;
  border-bottom: 1px solid var(--border-soft);
}
.sent-table .sent-theme:hover { background: var(--hover); }
.sent-theme .tname { font-weight: 600; display: flex; align-items: center; gap: 9px; font-size: 13.5px; }
.sent-theme .tname .chev { color: var(--ink-4); transition: transform .15s; }
.sent-theme.open .tname .chev { transform: rotate(90deg); }
.sbar { display: block; height: 7px; border-radius: 99px; background: var(--pink-100); overflow: hidden; }
.sbar i { display: block; height: 100%; border-radius: 99px; }
.sbar.wide { display: flex; height: 8px; background: transparent; gap: 2px; }
.sbar.wide i { border-radius: 99px 0 0 99px; }
.sbar.wide u { display: block; height: 100%; background: var(--pink-200); border-radius: 0 99px 99px 0; }
.sent-theme .sval { font-family: var(--mono); font-weight: 700; font-size: 13px; text-align: right; }
.sent-theme .scnt { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.sent-theme .spn { display: flex; gap: 8px; font-family: var(--mono); font-size: 12px; justify-content: flex-end; }
.sent-theme .spn .pos { color: var(--green); }
.sent-theme .spn .neg { color: var(--accent); }
.sent-attrs { padding: 4px 16px 14px 38px; border-bottom: 1px solid var(--border-soft); }
.attr-row {
  display: grid; grid-template-columns: 22px 1fr 110px 20px; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 9px; cursor: pointer; font-size: 13px;
}
.attr-row:hover { background: var(--hover); }
.attr-row .apol {
  width: 20px; height: 20px; border-radius: 6px; display: inline-flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: 12px; font-family: var(--mono);
}
.attr-row .apol.positive { background: #f1f6f4; color: var(--green); }
.attr-row .apol.negative { background: var(--pink-100); color: var(--accent); }
.attr-row .aname { font-weight: 600; color: var(--ink-2); }
.attr-row .acnt { font-family: var(--mono); font-size: 12px; color: var(--ink-3); text-align: right; }
.attr-row .achev { color: var(--ink-4); transition: transform .15s; }
.attr-row.open .achev { transform: rotate(90deg); }
.attr-ex { display: flex; flex-direction: column; gap: 8px; padding: 6px 10px 12px 32px; }
.ex-card { background: var(--hover); border: 1px solid var(--border-soft); border-radius: 11px; padding: 12px 14px; }
.ex-card .ex-q { font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.ex-card .ex-meta { display: flex; align-items: center; gap: 12px; margin-top: 9px; flex-wrap: wrap; }
.ex-card .ex-meta .plat { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.ex-card .ex-src { display: flex; gap: 10px; margin-left: auto; }
.ex-card .ex-src a { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--accent); font-weight: 600; }
body.dark .attr-row .apol.positive { background: rgba(26, 143, 90, .2); color: #6ee7b7; }
body.dark .attr-row .apol.negative { background: rgba(204, 10, 77, .26); color: #ff8aae; }
body.dark .sbar { background: #17303f; }
body.dark .sbar.wide u { background: #17303f; }

/* ---------- Personalar ---------- */
.persona-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 14px; }
.persona-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 14px;
  padding: 16px; display: flex; flex-direction: column; gap: 11px;
}
.persona-card.add {
  align-items: center; justify-content: center; text-align: center; cursor: pointer;
  border-style: dashed; color: var(--ink-3); font-weight: 600; font-size: 13px; min-height: 150px;
}
.persona-card.add:hover { background: var(--hover); border-color: var(--accent); color: var(--accent); }
.persona-card .pc-top { display: flex; align-items: center; gap: 11px; }
.p-avatar {
  display: inline-flex; align-items: center; justify-content: center; border-radius: 10px;
  color: #fff; font-weight: 700; font-family: var(--mono); font-size: 12px; flex: none;
}
.persona-card .pc-id { min-width: 0; }
.persona-card .pc-name { font-weight: 700; font-size: 14.5px; font-family: var(--font-head); }
.persona-card .pc-role { color: var(--ink-3); font-size: 12px; margin-top: 1px; }
.persona-card .pc-actions { margin-left: auto; display: flex; gap: 5px; opacity: 0; transition: opacity .15s; }
.persona-card:hover .pc-actions { opacity: 1; }
.persona-card .pc-actions .icon-btn { width: 26px; height: 26px; }
.persona-card .pc-desc { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
.persona-card .pc-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.persona-card .pc-chips .badge { display: inline-flex; align-items: center; gap: 4px; }
.persona-card .pc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; border-top: 1px solid var(--border-soft); padding-top: 11px; margin-top: auto; }
.persona-card .pc-stats .k { color: var(--ink-3); font-size: 10.5px; }
.persona-card .pc-stats .v { font-family: var(--mono); font-weight: 700; font-size: 14px; margin-top: 2px; }
.persona-card .pc-empty { border-top: 1px solid var(--border-soft); padding-top: 11px; margin-top: auto; color: var(--ink-4); font-size: 12px; }

/* Persona editörü */
.persona-modal { max-width: 760px; }
.pe-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pe-field label { display: flex; align-items: baseline; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.pe-field label .hint { font-weight: 400; color: var(--ink-4); font-size: 11.5px; }
.pe-input {
  width: 100%; border: 1px solid var(--border); border-radius: 9px; padding: 9px 11px;
  font-size: 13.5px; background: var(--panel); color: var(--ink); outline: none; resize: vertical;
}
.pe-input:focus { border-color: var(--accent); }
.pe-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pchip {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border);
  border-radius: 8px; padding: 6px 10px; font-size: 12.5px; font-weight: 600; background: var(--panel); color: var(--ink-2);
}
.pchip:hover { background: var(--hover); }
.pchip.on { border-color: var(--accent); background: var(--pink-100); color: var(--accent); }
.cchip { width: 26px; height: 26px; border-radius: 8px; border: 2px solid transparent; }
.cchip.on { border-color: var(--ink); }
.pe-levels { display: flex; flex-direction: column; gap: 5px; max-height: 210px; overflow-y: auto; padding-right: 4px; }
.lvl-row { display: flex; align-items: center; gap: 10px; }
.lvl-name { font-size: 13px; color: var(--ink-2); flex: 1; }
.lvl-btns { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.lvl { padding: 4px 10px; font-size: 11.5px; font-weight: 600; color: var(--ink-3); background: var(--panel); }
.lvl + .lvl { border-left: 1px solid var(--border); }
.lvl:hover { background: var(--hover); }
.lvl.on { background: var(--accent); color: #fff; }
.pe-foot { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border-soft); }

/* Çalıştırma ekranı */
.run-modal { max-width: 460px; padding: 24px 26px 26px; }
.run-head { display: flex; gap: 12px; align-items: flex-start; color: var(--accent); }
.run-head h2 { font-size: 17px; }
.run-steps { display: flex; flex-direction: column; gap: 9px; margin-top: 18px; }
.run-step { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-4); }
.run-step .dotw { width: 9px; height: 9px; border-radius: 99px; background: var(--pink-200); flex: none; }
.run-step.active { color: var(--ink); font-weight: 600; }
.run-step.active .dotw { background: var(--accent); box-shadow: 0 0 0 4px var(--pink-100); }
.run-step.done { color: var(--ink-3); }
.run-step.done .dotw { background: var(--green); }
.run-modal .progress { height: 5px; background: var(--pink-200); border-radius: 99px; overflow: hidden; }
.run-modal .progress i { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .25s; }
body.dark .pchip.on { background: rgba(204,10,77,.22); color: #ff8aae; }
body.dark .cchip.on { border-color: #ff8aae; }
@media (max-width: 900px) { .pe-grid { grid-template-columns: 1fr; } }

/* ---------- Asistan (sohbet) ---------- */
.chat-page { display: flex; flex-direction: column; min-height: calc(100vh - 62px); padding: 0 26px 30px; }
.chat-page.empty { justify-content: center; align-items: center; }
.chat-hero { width: 100%; max-width: 720px; text-align: center; padding: 20px 0 60px; }
.chat-hero .ch-mark { width: 42px; height: 39px; margin-bottom: 16px; }
.chat-hero h1 { font-size: 27px; letter-spacing: -.02em; }
.chat-hero p { color: var(--ink-3); font-size: 13.5px; margin-top: 8px; line-height: 1.55; }
.chat-top { display: flex; align-items: center; gap: 10px; padding: 14px 0 4px; }
.chat-top .brandline { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }

.chat-thread { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 14px 0 6px; display: flex; flex-direction: column; gap: 20px; }
.msg { display: flex; }
.msg.user { justify-content: flex-end; }
.msg.user .bubble {
  background: var(--pink-100); color: var(--ink); border-radius: 16px 16px 4px 16px;
  padding: 11px 15px; font-size: 14px; line-height: 1.55; max-width: 78%; white-space: pre-wrap;
}
.msg.ai { gap: 11px; align-items: flex-start; }
.ai-avatar {
  width: 28px; height: 28px; border-radius: 9px; background: var(--pink-100);
  display: inline-flex; align-items: center; justify-content: center; flex: none; margin-top: 2px;
}
.ai-avatar img { width: 15px; height: 14px; }
.ai-body { min-width: 0; flex: 1; }
.ai-text { font-size: 14px; line-height: 1.68; color: var(--ink-2); }
.ai-text h2, .ai-text h3 { font-family: var(--font-head); font-size: 15px; color: var(--ink); margin: 14px 0 6px; }
.ai-text p { margin: 9px 0; }
.ai-text ul, .ai-text ol { padding-left: 20px; margin: 9px 0; }
.ai-text li { margin: 4px 0; }
.ai-text strong { color: var(--ink); font-weight: 700; }
.ai-text a { color: var(--accent); font-weight: 600; }
.ai-err { margin-top: 8px; font-size: 12.5px; color: var(--accent); background: var(--pink-100); border-radius: 9px; padding: 9px 12px; }
.caret {
  display: inline-block; width: 7px; height: 15px; background: var(--accent);
  margin-left: 2px; border-radius: 1px; vertical-align: -2px; animation: blink 1s steps(2) infinite;
}
@keyframes blink { 0%, 50% { opacity: 1; } 50.1%, 100% { opacity: 0; } }
.typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.typing i { width: 6px; height: 6px; border-radius: 99px; background: var(--ink-4); animation: tdot 1.1s infinite; }
.typing i:nth-child(2) { animation-delay: .16s; }
.typing i:nth-child(3) { animation-delay: .32s; }
@keyframes tdot { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }

/* Takip soruları */
.chat-follow { width: 100%; max-width: 760px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 0 2px; }
.chat-follow .fu-label { width: 100%; font-size: 11.5px; color: var(--ink-4); font-weight: 600; margin-bottom: 2px; }
.fu-chip {
  display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--border);
  border-radius: 99px; padding: 7px 14px; font-size: 12.5px; font-weight: 600;
  color: var(--ink-2); background: var(--panel); text-align: left;
}
.fu-chip:hover { border-color: var(--accent); color: var(--accent); background: var(--hover); }
.fu-chip svg { opacity: .6; }

/* Yazma alanı */
.chat-composer { width: 100%; max-width: 760px; margin: 14px auto 0; position: sticky; bottom: 14px; }
.cc-box {
  background: var(--panel); border: 1px solid var(--border); border-radius: 18px;
  padding: 12px 14px 10px; box-shadow: 0 8px 26px rgba(1,37,53,.09);
}
.cc-box:focus-within { border-color: var(--accent); }
.cc-box textarea {
  width: 100%; border: none; outline: none; resize: none; background: transparent;
  font-family: var(--font); font-size: 14.5px; line-height: 1.55; color: var(--ink); max-height: 190px;
}
.cc-box textarea::placeholder { color: var(--ink-4); }
.cc-actions { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.cc-model { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--ink-3); }
.cc-send {
  margin-left: auto; width: 32px; height: 32px; border-radius: 99px; background: var(--accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.cc-send:hover { background: var(--accent-dark); }
.cc-send.stop { background: var(--ink); }
.cc-send .sq { width: 10px; height: 10px; border-radius: 2px; background: #fff; display: block; }
.cc-note { text-align: center; font-size: 11px; color: var(--ink-4); margin-top: 8px; }
.chat-warn { margin-top: 14px; font-size: 12.5px; color: var(--accent); }

/* Hazır şablonlar */
.preset-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; text-align: left; }
.preset-card {
  display: flex; gap: 11px; align-items: flex-start; border: 1px solid var(--border);
  border-radius: 13px; padding: 13px 15px; cursor: pointer; background: var(--panel);
}
.preset-card:hover { border-color: var(--accent); background: var(--hover); }
.preset-card .pi {
  width: 28px; height: 28px; border-radius: 8px; background: var(--pink-100); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.preset-card .pt { font-weight: 700; font-size: 13.5px; color: var(--ink); }
.preset-card .ps { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
body.dark .msg.user .bubble { background: #14293a; }
body.dark .ai-avatar { background: #14293a; }
body.dark .cc-box { box-shadow: 0 8px 26px rgba(0,0,0,.4); }
@media (max-width: 760px) { .preset-grid { grid-template-columns: 1fr; } }
.ai-text .chat-table {
  width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 13px;
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
}
.ai-text .chat-table th {
  background: var(--hover); color: var(--ink-3); font-weight: 600; font-size: 12px;
  padding: 8px 12px; border-bottom: 1px solid var(--border-soft); white-space: nowrap;
}
.ai-text .chat-table td { padding: 8px 12px; border-bottom: 1px solid var(--border-soft); font-family: var(--mono); font-size: 12.5px; }
.ai-text .chat-table td:first-child { font-family: var(--font); font-weight: 600; color: var(--ink); }
.ai-text .chat-table tr:last-child td { border-bottom: none; }
.ai-text code { background: var(--hover); border-radius: 5px; padding: 1px 5px; font-family: var(--mono); font-size: 12.5px; }
.fnote { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); padding: 6px 4px; }
.fnote b { color: var(--accent); cursor: pointer; font-weight: 600; }
.fnote b:hover { text-decoration: underline; }

/* ---------- Sayfalar (Pages) ---------- */
.pages-wrap { padding-top: 8px; }
.pages-top { display: flex; align-items: center; gap: 10px; padding: 6px 0 2px; }
.pages-top .brandline { display: flex; align-items: center; gap: 9px; font-size: 15px; }
.pages-top .brandline b { font-family: var(--font-head); }
.view-tabs { display: flex; gap: 18px; border-bottom: 1px solid var(--border-soft); margin: 4px 0 14px; }
.view-tabs .vtab {
  padding: 8px 1px 10px; font-size: 13.5px; font-weight: 500; color: var(--ink-3);
  border-bottom: 2px solid transparent; cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
}
.view-tabs .vtab:hover { color: var(--ink); }
.view-tabs .vtab.on { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent); }
.view-tabs .vtab .n { font-family: var(--mono); font-size: 11px; color: var(--ink-3); background: var(--chip-bg); border-radius: 99px; padding: 1px 7px; }
.pages-table th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
.pages-table th.sortable:hover { color: var(--ink); }
.pages-table th.sortable.on { color: var(--accent); }
.pages-table td { font-size: 13px; }
.pages-table .cbx { display: inline-block; width: 14px; height: 14px; border: 1.4px solid var(--pink-200); border-radius: 4px; }
.pages-table .plat-mini { display: inline-flex; gap: 4px; }
.pages-table tr.grouprow td { background: var(--hover); font-weight: 600; }

/* Sayfa detayı */
.pd-kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 18px; }
.pd-kpis .k { border: 1px solid var(--border); border-radius: 11px; padding: 11px 13px; background: var(--panel); }
.pd-kpis .kk { font-size: 11px; color: var(--ink-3); }
.pd-kpis .kv { font-family: var(--mono); font-weight: 700; font-size: 17px; margin-top: 3px; color: var(--ink); }
.pd-factors { display: flex; flex-direction: column; gap: 9px; }
.pf { display: grid; grid-template-columns: minmax(120px, 1fr) 130px 44px; align-items: center; gap: 10px; font-size: 12.5px; }
.pf .pfn { color: var(--ink-2); font-weight: 600; cursor: help; }
.pf .pfv { font-family: var(--mono); text-align: right; color: var(--ink-3); }
.pd-recos { display: flex; flex-direction: column; gap: 9px; }
.pd-recos .reco {
  display: flex; gap: 9px; align-items: flex-start; background: var(--hover);
  border: 1px solid var(--border-soft); border-radius: 11px; padding: 11px 13px; font-size: 13px; line-height: 1.5;
}
.pd-recos .reco svg { color: var(--accent); flex: none; margin-top: 2px; }
@media (max-width: 1100px) { .pd-kpis { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Yapım aşamasında ekranı ---------- */
.hero .soon-mark {
  width: 54px; height: 54px; border-radius: 16px; margin: 0 auto 14px;
  background: var(--pink-100); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.hero .soon-badge {
  display: inline-block; background: var(--accent); color: #fff;
  border-radius: 99px; padding: 4px 12px; font-size: 11.5px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; margin-bottom: 12px;
}
.hero .soon-sub { color: var(--ink-4); font-size: 12.5px; margin-top: 10px; font-weight: 600; }
body.dark .hero .soon-mark { background: rgba(204, 10, 77, .2); color: #ff8aae; }

/* ---------- Panolar (Dashboards) ---------- */
.tmpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 16px; }
.tmpl-card {
  border: 1px solid var(--border); border-radius: 15px; overflow: hidden; background: var(--panel);
  display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s, border-color .15s;
}
.tmpl-card:hover { border-color: var(--accent); background: var(--hover); }
.tc-preview {
  height: 132px; background: var(--hover); border-bottom: 1px solid var(--border-soft);
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; overflow: hidden;
}
.tp-cell { background: var(--panel); border: 1px solid var(--border-soft); border-radius: 8px; padding: 7px 8px; display: flex; flex-direction: column; gap: 6px; }
.tp-label { font-size: 8.5px; color: var(--ink-4); font-weight: 600; white-space: nowrap; overflow: hidden; }
.tp-bars { display: flex; align-items: flex-end; gap: 4px; height: 26px; }
.tp-bars i { flex: 1; background: var(--tc, var(--accent)); border-radius: 2px 2px 0 0; }
.tp-rows { display: flex; flex-direction: column; gap: 4px; }
.tp-rows i { height: 5px; border-radius: 3px; background: var(--pink-200); }
.tp-rows i:nth-child(2) { width: 78%; }
.tp-rows i:nth-child(3) { width: 55%; }
.tc-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tc-top { display: flex; align-items: center; gap: 9px; font-family: var(--font-head); font-size: 14.5px; }
.tc-icon { width: 26px; height: 26px; border-radius: 8px; color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.tc-desc { font-size: 12.5px; color: var(--ink-3); line-height: 1.5; flex: 1; }
.tc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 4px; }

.dash-list { display: flex; flex-direction: column; gap: 8px; }
.dash-row {
  display: flex; align-items: center; gap: 12px; padding: 13px 16px; cursor: pointer;
  border: 1px solid var(--border); border-radius: 12px; background: var(--panel);
}
.dash-row:hover { background: var(--hover); border-color: var(--pink-200); }
.dash-row .dr-icon { width: 30px; height: 30px; border-radius: 9px; background: var(--pink-100); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; }
.dash-row .dr-name { display: flex; flex-direction: column; gap: 2px; flex: 1; font-size: 13.5px; }
.dash-row .icon-btn { opacity: 0; }
.dash-row:hover .icon-btn { opacity: 1; }

.dash-top { display: flex; align-items: center; gap: 9px; padding: 10px 0 4px; }
.dash-title { margin: 10px 0 18px; }
.dt-name, .dt-desc {
  display: block; width: 100%; border: 1px solid transparent; border-radius: 9px;
  padding: 6px 10px; background: transparent; outline: none; color: var(--ink);
}
.dt-name { font-family: var(--font-head); font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.dt-desc { font-size: 13.5px; color: var(--ink-3); margin-top: 2px; }
.dt-name:hover, .dt-desc:hover { background: var(--hover); }
.dt-name:focus, .dt-desc:focus { border-color: var(--accent); background: var(--panel); }
.dt-meta { display: flex; align-items: center; gap: 8px; padding: 6px 10px 0; font-size: 12.5px; }

.viz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.viz-card { border: 1px solid var(--border); border-radius: 13px; background: var(--panel); padding: 16px 18px 18px; min-width: 0; }
.viz-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.viz-head .viz-filters { font-size: 11px; color: var(--ink-4); display: inline-flex; align-items: center; gap: 4px; }
.viz-head .viz-actions { margin-left: auto; display: flex; gap: 5px; opacity: 0; transition: opacity .15s; }
.viz-card:hover .viz-actions { opacity: 1; }
.viz-head .viz-actions .icon-btn { width: 25px; height: 25px; font-size: 12px; }
.viz-card .tbl { font-size: 12.5px; }
.viz-card .tbl th { padding: 7px 10px; }
.viz-card .tbl td { padding: 7px 10px; }
.viz-card .big-num { font-size: 24px; }
.viz-card .legend { font-size: 11.5px; gap: 10px; }

.viz-modal { max-width: 780px; }
.viz-filter-row { display: grid; grid-template-columns: 118px 1fr; gap: 10px; align-items: start; padding: 7px 0; }
.viz-filter-row .vfl { font-size: 12px; color: var(--ink-3); font-weight: 600; display: inline-flex; align-items: center; gap: 5px; padding-top: 6px; }
.viz-preview { margin-top: 18px; padding: 16px 18px 18px; }
.seg-toggle button.off { opacity: .4; cursor: default; }
select.pe-input { appearance: none; background-image: none; cursor: pointer; }

@media (max-width: 1000px) { .viz-grid { grid-template-columns: 1fr; } }

/* PDF çıktısı */
@media print {
  .sidebar, .topbar, .dash-top, .side-reopen, .toast, #modalHolder, .home-foot { display: none !important; }
  body { background: #fff; }
  .viz-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .viz-card { break-inside: avoid; border-color: #ddd; box-shadow: none; }
  .dt-name, .dt-desc { border: none; }
  .page { padding: 0 !important; }
}

/* ---------- Yetenekler (Skills) ---------- */
.skills-page .sec-head { align-items: center; gap: 10px; }
.skills-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.skill-card {
  border: 1px solid var(--border); border-radius: 14px; background: var(--panel);
  cursor: pointer; overflow: hidden; transition: box-shadow .15s, transform .15s, border-color .15s;
}
.skill-card:hover { border-color: var(--accent); background: var(--hover); }
.skill-card.on { border-color: var(--accent); }
.sc-preview {
  padding: 16px 18px 0; height: 118px; overflow: hidden; position: relative;
  display: flex; flex-direction: column; gap: 7px;
  -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 40%, transparent 100%);
}
.sc-preview b { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.sc-preview span { font-size: 11.5px; line-height: 1.6; color: var(--ink-4); }
.sc-foot { display: flex; align-items: center; gap: 8px; padding: 4px 16px 6px; font-family: var(--font-head); font-size: 14px; }
.sc-foot .sk-icon { color: var(--accent); display: inline-flex; }
.sc-foot .icon-btn { opacity: 0; width: 26px; height: 26px; }
.skill-card:hover .sc-foot .icon-btn { opacity: 1; }
.sc-author { display: flex; align-items: center; gap: 6px; padding: 0 16px 14px; font-size: 12px; color: var(--ink-3); }
.badge.sk-on { background: var(--pink-100); color: var(--accent); }

.skills-list { display: flex; flex-direction: column; gap: 8px; }
.skill-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer;
  border: 1px solid var(--border); border-radius: 12px; background: var(--panel);
}
.skill-row:hover { background: var(--hover); border-color: var(--pink-200); }
.skill-row .sk-icon { width: 28px; height: 28px; border-radius: 8px; background: var(--pink-100); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; }
.skill-row .sk-name { display: flex; flex-direction: column; gap: 2px; flex: 1; font-size: 13.5px; min-width: 0; }
.skill-row .sk-author { font-size: 12px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 5px; }

.skill-detail .sd-top { display: flex; align-items: center; gap: 10px; padding: 10px 0 6px; border-bottom: 1px solid var(--border-soft); }
.skill-detail .sd-top b { font-family: var(--font-head); font-size: 14.5px; }
.sd-body { max-width: 760px; margin: 26px auto 60px; }
.sd-body h1 { font-family: var(--font-head); font-size: 27px; letter-spacing: -.02em; }
.sd-desc { color: var(--ink-3); font-size: 13.5px; line-height: 1.7; margin-top: 14px; }
.sd-rule { height: 1px; background: var(--border-soft); margin: 26px 0; }
.sd-content { font-size: 14px; line-height: 1.75; color: var(--ink-2); }
.sd-content h3 { font-family: var(--font-head); font-size: 17px; color: var(--ink); margin: 26px 0 10px; }
.sd-content p { margin: 12px 0; }
.sd-content b { color: var(--ink); }
.sd-content ul { padding-left: 20px; margin: 10px 0; }
.sd-content li { margin: 5px 0; }

.skill-modal { max-width: 720px; }
.skill-body-input { font-family: var(--mono); font-size: 12.5px; line-height: 1.6; }
.cc-skill {
  display: inline-flex; align-items: center; gap: 6px; background: var(--pink-100); color: var(--accent);
  border-radius: 99px; padding: 3px 9px; font-size: 11.5px; font-weight: 700;
}
.cc-skill b { cursor: pointer; opacity: .7; }
.cc-skill b:hover { opacity: 1; }
.hero-skill {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 10px;
  background: var(--pink-100); color: var(--accent); border-radius: 99px;
  padding: 5px 13px; font-size: 12.5px; font-weight: 700;
}
body.dark .cc-skill, body.dark .hero-skill { background: rgba(204,10,77,.2); color: #ff8aae; }
.sd-content ul.sd-cells {
  list-style: none; padding: 0; margin: 12px 0; display: flex; flex-wrap: wrap; gap: 7px;
}
.sd-content ul.sd-cells li {
  background: var(--hover); border: 1px solid var(--border-soft); border-radius: 8px;
  padding: 5px 11px; font-size: 12.5px; margin: 0; color: var(--ink-2);
}

/* ---------- Asistan: sohbet geçmişi çubuğu ---------- */
.chat-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0 6px; width: 100%; max-width: none; margin: 0;
}
.convo-switch {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  border: 1px solid var(--border); border-radius: 9px; padding: 6px 11px;
  background: var(--panel); font-size: 13px; font-weight: 600; color: var(--ink);
  max-width: 320px;
}
.convo-switch:hover { background: var(--hover); border-color: var(--pink-200); }
.convo-switch .cs-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.convo-switch svg { opacity: .6; flex: none; }
.convo-pop { min-width: 300px; max-width: 340px; }
.convo-pop .opts { max-height: 340px; }
.cp-label { font-size: 11px; color: var(--ink-4); font-weight: 600; padding: 8px 12px 4px; }
.cp-row {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 8px;
  cursor: pointer; font-size: 13.5px; color: var(--ink-2);
}
.cp-row:hover { background: var(--hover); }
.cp-row.on { background: var(--pink-100); color: var(--ink); font-weight: 600; }
.cp-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-del { color: var(--ink-4); font-size: 12px; opacity: 0; padding: 0 3px; }
.cp-row:hover .cp-del { opacity: 1; }
.cp-del:hover { color: var(--accent); }
.cp-empty { padding: 16px 12px; font-size: 12.5px; color: var(--ink-4); text-align: center; }
.chat-page.empty { position: relative; }
.chat-bar .spacer { flex: 1; }

/* Boş sohbet ekranı: üst çubuk aynı yerde, karşılama ortada */
.chat-page.empty { justify-content: flex-start; align-items: stretch; }
.chat-page.empty .chat-hero { margin: auto; }

/* ---------- Sohbet: artı menüsü ve ekler ---------- */
.cc-plus {
  width: 30px; height: 30px; border-radius: 99px; border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  color: var(--ink-2); background: var(--panel); flex: none;
}
.cc-plus:hover { background: var(--hover); border-color: var(--accent); color: var(--accent); }
.plus-pop {
  position: absolute; bottom: calc(100% + 10px); left: 0; min-width: 262px;
  top: auto;
}
.plus-pop .opt { gap: 10px; padding: 9px 11px; font-weight: 500; }
.plus-pop .opt svg { color: var(--ink-3); flex: none; }
.plus-pop .opt .cnt-dim { margin-left: auto; font-family: var(--mono); font-size: 11.5px; color: var(--ink-4); }
.plus-pop .opt.has-sub { position: relative; }
.plus-pop .skill-sub {
  /* "Yetenekler" satırının hizasına ortalanır, uzun listede kendi içinde kayar */
  position: absolute; left: calc(100% + 8px); top: 50%; bottom: auto;
  transform: translateY(-50%);
  min-width: 300px; max-height: min(56vh, 400px);
  display: flex; flex-direction: column; cursor: default;
  background: var(--panel); border: 1px solid var(--border); border-radius: 13px;
  box-shadow: var(--shadow-pop); padding: 6px; overflow: hidden;
}
.plus-pop .sk-list { overflow-y: auto; overscroll-behavior: contain; min-height: 0; }
.plus-pop .sk-list::-webkit-scrollbar { width: 8px; }
.plus-pop .sk-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 8px; }
.plus-pop .sk-list::-webkit-scrollbar-thumb:hover { background: var(--ink-4); }
.plus-pop .sk-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 9px 11px; }
.plus-pop .sk-opt.on { background: var(--pink-100); }
.plus-pop .so-name { font-weight: 600; font-size: 13.5px; color: var(--ink); display: flex; align-items: center; gap: 6px; }
.plus-pop .so-desc { font-size: 11.5px; color: var(--ink-4); }
.plus-pop .sk-add { border-top: 1px solid var(--border-soft); margin-top: 4px; padding-top: 11px; font-weight: 600; color: var(--ink-2); flex: none; }
.plus-pop .sk-add .spacer { flex: 1; }

.cc-attach { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 9px; }
.att-chip {
  display: inline-flex; align-items: center; gap: 7px; background: var(--hover);
  border: 1px solid var(--border-soft); border-radius: 9px; padding: 5px 9px;
  font-size: 12px; color: var(--ink-2); max-width: 220px;
}
.att-chip img { width: 26px; height: 26px; border-radius: 6px; object-fit: cover; }
.att-chip .att-ic { color: var(--accent); display: inline-flex; }
.att-chip b { cursor: pointer; color: var(--ink-4); font-size: 11px; margin-left: 2px; }
.att-chip b:hover { color: var(--accent); }
.att-chip.small { padding: 3px 8px; font-size: 11.5px; gap: 5px; }
.bub-imgs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.bub-imgs img { max-width: 180px; max-height: 150px; border-radius: 10px; display: block; }
.bub-files { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.plus-pop { overflow: visible; }

/* ============================================================
   Bilgi Tabanları (Knowledge Bases)
   ============================================================ */
.kb-tabs { display: flex; gap: 4px; margin-top: 18px; border-bottom: 1px solid var(--border); }
.kb-tabs button {
  background: none; border: none; border-bottom: 2px solid transparent; cursor: pointer;
  font-family: var(--font); font-size: 13.5px; font-weight: 600; color: var(--ink-3);
  padding: 9px 14px; margin-bottom: -1px;
}
.kb-tabs button:hover { color: var(--ink); }
.kb-tabs button.on { color: var(--accent); border-bottom-color: var(--accent); }

.kb-bar { display: flex; align-items: center; gap: 10px; }
.kb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.kb-card {
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel);
  padding: 15px 16px; cursor: pointer; transition: box-shadow .13s, transform .13s, border-color .13s;
}
.kb-card:hover { border-color: var(--accent); background: var(--hover); }
.kb-card.on { border-color: var(--accent); }
.kb-card.edit { cursor: default; }
.kb-card.edit:hover { box-shadow: none; border-color: var(--border); transform: none; }
.kbc-top { display: flex; align-items: center; gap: 8px; }
.kbc-top b { font-size: 14.5px; color: var(--ink); font-family: var(--font-head); font-weight: 700; }
.kbc-icon { display: inline-flex; color: var(--accent); }
.kbc-desc { margin-top: 8px; font-size: 12.5px; color: var(--ink-3); line-height: 1.55; min-height: 34px; }
.kbc-meta { margin-top: 12px; display: flex; align-items: center; gap: 14px; font-size: 11.5px; color: var(--ink-4); }
.kbc-meta .btn { margin-left: auto; }

.kb-empty {
  border: 1px dashed var(--border); border-radius: var(--radius); background: var(--bg-side);
  padding: 34px 26px; text-align: center; display: flex; flex-direction: column;
  align-items: center; gap: 8px; color: var(--ink-3);
}
.kb-empty svg { color: var(--accent); }
.kb-empty b { font-family: var(--font-head); font-size: 16px; color: var(--ink); }
.kb-empty span { font-size: 13px; max-width: 460px; line-height: 1.6; }
.kb-empty .btn { margin-top: 8px; }

.kb-sync {
  margin-top: 14px; display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-side); padding: 10px 14px;
}
.kb-sync b { font-size: 13px; color: var(--ink); }
.kb-switch { position: relative; width: 34px; height: 19px; flex: none; }
.kb-switch input { opacity: 0; width: 0; height: 0; }
.kb-switch span {
  position: absolute; inset: 0; background: var(--ink-4); border-radius: 20px; cursor: pointer; transition: background .15s;
}
.kb-switch span::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px;
  background: #fff; border-radius: 50%; transition: transform .15s;
}
.kb-switch input:checked + span { background: var(--accent); }
.kb-switch input:checked + span::after { transform: translateX(15px); }
.kb-sel {
  font-family: var(--font); font-size: 12.5px; color: var(--ink-2); background: var(--panel);
  border: 1px solid var(--border); border-radius: 8px; padding: 5px 9px; margin-left: auto;
}
.fnote-inline { font-size: 11.5px; color: var(--ink-4); }

.kb-body { display: grid; grid-template-columns: 210px 1fr; gap: 20px; align-items: start; }
.kb-side { border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); padding: 8px; }
.kb-side-h {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--ink-4); padding: 6px 8px 8px;
}
.kb-fold {
  display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 8px;
  font-size: 13px; color: var(--ink-2); cursor: pointer;
}
.kb-fold:hover { background: var(--chip-bg); }
.kb-fold.on { background: var(--pink-100); color: var(--accent); font-weight: 600; }
.kb-fold svg { color: var(--ink-4); flex: none; }
.kb-fold.on svg { color: var(--accent); }
.kb-fold span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kb-fold b { font-family: var(--mono); font-size: 11px; color: var(--ink-4); }

.kb-tbl tbody tr { cursor: pointer; }
.kb-fname { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--ink); }
.kb-fname svg { color: var(--ink-4); }
.kb-tag {
  display: inline-block; font-size: 11px; padding: 2px 7px; border-radius: 20px;
  background: var(--chip-bg); color: var(--ink-3); margin-right: 4px;
}
.kb-tag.on { background: var(--pink-100); color: var(--accent); }
.kb-tag b { margin-left: 5px; cursor: pointer; font-weight: 600; }

.kbadd-pop { min-width: 320px; padding: 6px; overflow: visible; }
.kbadd-pop .pp-item { align-items: flex-start; }
.kbadd-pop .pp-item span span { display: block; }

.kb-modal { width: min(680px, 94vw); }
.kb-drop {
  margin-top: 18px; border: 1.5px dashed var(--border); border-radius: var(--radius);
  background: var(--bg-side); padding: 34px; display: flex; flex-direction: column;
  align-items: center; gap: 8px; color: var(--ink-3);
}
.kb-drop.over { border-color: var(--accent); background: var(--pink-100); }
.kb-drop svg { color: var(--accent); }
.kb-drop b { font-family: var(--font-head); color: var(--ink); }
.kb-opt-row {
  display: flex; align-items: center; gap: 14px; padding: 13px 15px; margin-top: 10px;
  border: 1px solid var(--border); border-radius: var(--radius);
}
.kb-opt-row.on { border-color: var(--accent); background: var(--bg-side); }
.kb-opt-row b { display: block; font-size: 13.5px; color: var(--ink); }
.kb-opt-row .dim { display: block; margin-top: 2px; }
.kb-opt-row .badge, .kb-opt-row .btn { margin-left: auto; flex: none; }

.kb-viewer { width: min(860px, 95vw); }
.kb-tagbar { display: flex; align-items: center; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.kb-taginput {
  border: 1px solid var(--border); border-radius: 20px; padding: 3px 10px;
  font-family: var(--font); font-size: 11.5px; width: 150px; background: var(--panel); color: var(--ink-2);
}
.kb-doc {
  margin-top: 14px; max-height: 52vh; overflow: auto; white-space: pre-wrap; word-break: break-word;
  font-family: var(--mono); font-size: 12px; line-height: 1.65; color: var(--ink-2);
  background: var(--bg-side); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px;
}

.kb-fact { width: min(900px, 95vw); }
.kb-fact-meta { display: flex; gap: 22px; font-size: 13px; color: var(--ink-3); }
.kb-fact-meta b { font-family: var(--mono); font-size: 17px; color: var(--ink); margin-right: 4px; }
.kb-fact-meta .v-dogru b { color: var(--green); }
.kb-fact-meta .v-yanlis b { color: var(--accent); }
.kb-fact-busy { display: flex; align-items: center; gap: 12px; padding: 40px 6px; color: var(--ink-3); font-size: 13.5px; }
.spin {
  width: 18px; height: 18px; border-radius: 50%; flex: none;
  border: 2px solid var(--pink-200); border-top-color: var(--accent); animation: kbspin .8s linear infinite;
}
@keyframes kbspin { to { transform: rotate(360deg); } }
.vbadge { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 20px; white-space: nowrap; }
.vbadge.v-dogru { background: rgba(26, 143, 90, .12); color: var(--green); }
.vbadge.v-yanlis { background: var(--pink-100); color: var(--accent); }
.vbadge.v-eksik { background: var(--chip-bg); color: var(--ink-3); }
.block { display: block; }

.bk-body { max-width: 820px; }
.bk-group { margin-top: 22px; border-top: 1px solid var(--border); padding-top: 18px; }
.bk-group h3 { font-family: var(--font-head); font-size: 15px; color: var(--ink); margin-bottom: 12px; }
.bk-group .pe-field { margin-bottom: 14px; }
.bk-group label .dim { display: block; font-weight: 400; margin-top: 2px; }
.cc-skill.kbctx { background: var(--chip-bg); color: var(--ink-2); }

body.dark .kb-card, body.dark .kb-side, body.dark .kb-opt-row { background: var(--panel); }
body.dark .kb-doc, body.dark .kb-drop, body.dark .kb-sync, body.dark .kb-empty { background: rgba(255, 255, 255, .03); }
.kb-card .kbc-top .icon-btn { opacity: 0; transition: opacity .12s; }
.kb-card:hover .kbc-top .icon-btn { opacity: 1; }
.kb-card.edit .kbc-top .icon-btn { opacity: 1; }
.kb-tbl td:last-child { white-space: nowrap; }
.kb-tbl td:last-child .icon-btn { display: inline-flex; margin-left: 4px; opacity: 0; transition: opacity .12s; }
.kb-tbl tbody tr:hover td:last-child .icon-btn { opacity: 1; }
.kb-tbl th:last-child { width: 78px; }
.kb-page .sd-top { display: flex; align-items: center; gap: 10px; padding: 10px 0 6px; border-bottom: 1px solid var(--border-soft); flex-wrap: wrap; }
.kb-page .sd-top b { font-family: var(--font-head); font-size: 14.5px; }
.plus-pop, .plus-pop .opts, .plus-pop .opt.has-sub { overflow: visible; }
.plus-pop .skill-sub { z-index: 5; }
.plus-pop .opts + .opts { border-top: 1px solid var(--border-soft); margin-top: 4px; padding-top: 4px; }
.plus-pop .sk-empty { padding: 12px 11px; font-size: 12.5px; color: var(--ink-4); }
/* Açıklaması olan bölüm başlıkları */
.tip-h { border-bottom: 1px dashed var(--ink-4); cursor: help; display: inline-block; padding-bottom: 1px; }

/* ============================================================
   Grafik ayarı ve alternatif grafik türleri
   ============================================================ */
.chart-cfg { min-width: 320px; padding: 0; overflow: hidden; left: auto; right: 0; }
.ct-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
.ct-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  padding: 16px 8px; background: none; border: none; border-right: 1px solid var(--border-soft);
  cursor: pointer; font-family: var(--font); font-size: 12.5px; color: var(--ink-4);
}
.ct-tile:last-child { border-right: none; }
.ct-tile svg { color: var(--ink-4); }
.ct-tile:hover { background: var(--chip-bg); color: var(--ink-2); }
.ct-tile.on { color: var(--ink); font-weight: 600; background: var(--bg-side); box-shadow: inset 0 0 0 2px var(--ink); border-radius: 10px; }
.ct-tile.on svg { color: var(--accent); }
.ct-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border-top: 1px solid var(--border-soft); cursor: pointer;
  font-size: 13.5px; color: var(--ink); font-weight: 500;
}
.ct-row:hover { background: var(--chip-bg); }
.ct-switch { width: 34px; height: 19px; border-radius: 20px; background: var(--ink-4); position: relative; flex: none; transition: background .15s; }
.ct-switch i { position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: #fff; transition: transform .15s; }
.ct-switch.on { background: var(--accent); }
.ct-switch.on i { transform: translateX(15px); }

.hbar-chart { margin-top: 14px; display: flex; flex-direction: column; gap: 9px; }
.hb-row { display: grid; grid-template-columns: 132px 1fr 58px; align-items: center; gap: 10px; }
.hb-lab { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-2); overflow: hidden; }
.hb-lab span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-track { height: 16px; background: var(--chip-bg); border-radius: 4px; overflow: hidden; }
.hb-fill { display: block; height: 100%; border-radius: 4px; }
.hb-val { font-family: var(--mono); font-size: 12.5px; color: var(--ink); text-align: right; }

.stack-chart { margin-top: 18px; }
.st-bar { display: flex; height: 40px; border-radius: 8px; overflow: hidden; }
.st-seg { display: flex; align-items: center; justify-content: center; color: #fff; font-family: var(--mono); font-size: 11.5px; }
.st-legend { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 14px; }
.st-legend .li { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-3); }
.st-legend .sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

.chart .rd-lab { font-size: 9.5px; fill: var(--ink-4); font-family: var(--font); }
.chart-tbl td, .chart-tbl th { font-size: 12.5px; }
body.dark .hb-track { background: rgba(255, 255, 255, .07); }
/* Bölüm başlığının sağındaki denetim grubu: kendi içinde dikeyde ortalı */
.sec-head .sec-tools { display: flex; align-items: center; gap: 12px; flex: none; }
