/* Rapor Ajanı — claude.ai esinli sade, beyaz sohbet deneyimi (vanilla) */
:root {
  --sidebar: #f5f4ef;       /* sıcak krem sidebar */
  --main: #ffffff;          /* beyaz sohbet */
  --ink: #20201d;
  --muted: #6e6c66;
  --faint: #9d9b93;
  --line: #ebe9e2;
  --line-soft: #f1efe9;
  --accent: #0022a0;        /* marka lacivert */
  --accent-soft: #e9edfb;
  --accent-border: #cdd6f4;
  --user-bubble: #f0eee7;
  --green: #4a8a5c;
  --green-soft: #e7f1e9;
  --amber: #b07a18;
  --red: #b3492e;
  --radius: 16px;
  --radius-sm: 11px;
  --shadow: 0 1px 2px rgba(40, 36, 30, .04);
  --shadow-card: 0 1px 3px rgba(40, 36, 30, .06), 0 8px 24px rgba(40, 36, 30, .05);
  --serif: "Tiempos Text", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--main); color: var(--ink); font-family: var(--sans); font-size: 14.5px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
/* ince, sade scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: transparent; border-radius: 99px; }
:hover::-webkit-scrollbar-thumb { background: #dcdad2; }

.app { display: grid; grid-template-columns: 260px minmax(0, 1fr) 300px; grid-template-rows: minmax(0, 1fr); height: 100vh; overflow: hidden; }

/* ===== SOL SIDEBAR (krem, sade) ===== */
.side { background: var(--sidebar); display: flex; flex-direction: column; padding: 14px 12px; min-width: 0; min-height: 0; overflow: hidden; border-right: 1px solid var(--line); }
.side .logo { display: flex; align-items: center; gap: 10px; padding: 6px 8px 4px; }
.side .logo .mark { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: var(--serif); font-size: 13px; flex: 0 0 auto; }
.side .logo .nm { color: var(--ink); font-weight: 600; font-size: 14px; line-height: 1.15; }
.side .logo .ds { font-size: 11px; color: var(--faint); }
.new-btn { margin: 14px 6px 8px; display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--main); color: var(--ink); font-weight: 600; font-size: 13.5px; box-shadow: var(--shadow); transition: background .12s; }
.new-btn:hover { background: #fbfbf9; }
.new-btn svg { color: var(--accent); }
.side .lbl { font-size: 11px; letter-spacing: .02em; color: var(--faint); padding: 14px 12px 4px; font-weight: 600; }
.convs { flex: 1 1 auto; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; min-height: 0; padding-right: 2px; }
.conv { position: relative; flex: 0 0 auto; display: block; padding: 9px 12px; border-radius: 8px; color: var(--muted); cursor: pointer; font-size: 13.5px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv:hover { background: rgba(0,0,0,.04); color: var(--ink); }
.conv.active { background: rgba(0,0,0,.06); color: var(--ink); font-weight: 500; }
.conv .ci, .conv .ct .s { display: none; }            /* sade: ikon ve tarih gizli */
.conv .ct, .conv .ct .t { display: inline; }
.conv-del { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); display: none; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 4px; border-radius: 6px; }
.conv:hover .conv-del { display: inline-flex; }
.conv-del:hover { background: rgba(209,31,45,.12); color: #d11f2d; }
.side .foot { padding-top: 10px; margin-top: 6px; border-top: 1px solid var(--line); }
.side .foot a { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 8px; color: var(--muted); font-size: 13.5px; }
.side .foot a:hover { background: rgba(0,0,0,.04); color: var(--ink); }
.side .foot .build { padding: 4px 12px 0; font-size: 10.5px; color: var(--faint); letter-spacing: .02em; }

/* ===== ORTA: SOHBET (beyaz) ===== */
.chat { display: flex; flex-direction: column; background: var(--main); min-width: 0; min-height: 0; }
.chat-top { height: 58px; flex: 0 0 58px; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; border-bottom: 1px solid var(--line-soft); }
.chat-top .ttl { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-top .ttl small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 400; }
.chat-top .mdl { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.chat-top .mdl .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

.thread { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 28px 28px 8px; display: flex; flex-direction: column; gap: 26px; }
.thread > * { width: 100%; max-width: 760px; margin: 0 auto; }

/* Karşılama */
.welcome { margin: auto; text-align: center; max-width: 480px; color: var(--muted); }
.welcome .orb { width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 18px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.welcome .orb svg { width: 28px; height: 28px; }
.welcome h2 { font-family: var(--serif); font-size: 24px; color: var(--ink); margin: 0 0 10px; font-weight: 500; }
.welcome p { margin: 0 0 3px; font-size: 14.5px; }

/* Mesajlar — claude tarzı: ajan düz metin, kullanıcı hafif balon */
.msg { display: flex; gap: 13px; }
.msg.user { flex-direction: row-reverse; }
.msg .ava { width: 28px; height: 28px; border-radius: 7px; flex: 0 0 auto; display: grid; place-items: center; font-weight: 700; font-size: 11px; margin-top: 2px; }
.msg.agent .ava { background: var(--accent); color: #fff; font-family: var(--serif); }
.msg.user .ava { display: none; }
.msg .bubble { min-width: 0; }
.msg.agent .bubble { flex: 1; }
.msg.user .bubble { background: var(--user-bubble); border-radius: 18px; padding: 11px 16px; max-width: 78%; font-size: 14.5px; }
.msg .who { font-size: 12.5px; font-weight: 600; color: var(--ink); margin-bottom: 7px; display: flex; align-items: center; gap: 8px; }
.msg.user .who { display: none; }
.msg .who .tag { font-weight: 500; font-size: 11px; color: var(--muted); }

/* İlerleme + ETA */
.prog { margin: 2px 0 12px; }
.proghead { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.proghead .pl { font-weight: 600; color: var(--ink); }
.proghead .pr { font-variant-numeric: tabular-nums; }
.pbar { height: 5px; background: var(--line-soft); border-radius: 999px; overflow: hidden; }
.pbar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .18s linear; }

/* Reasoning — sade satırlar */
.reason { display: flex; flex-direction: column; gap: 9px; margin: 2px 0 4px; }
.rstep { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--faint); }
.rtext { min-width: 0; }
.rstep .rt { line-height: 1.4; }
.rstep .rd { font-size: 12px; color: var(--faint); margin-top: 1px; display: none; }
.rstep.active .rd { display: block; }
.rstep .ic { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line); flex: 0 0 auto; display: grid; place-items: center; position: relative; margin-top: 1px; }
.rstep .ic svg { width: 10px; height: 10px; opacity: 0; }
.rstep .ic .spin { position: absolute; width: 11px; height: 11px; border: 1.5px solid var(--accent); border-top-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; opacity: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.rstep.active { color: var(--ink); font-weight: 500; }
.rstep.active .ic { border-color: var(--accent); }
.rstep.active .ic .spin { opacity: 1; }
.rstep.done { color: var(--muted); }
.rstep.done .ic { background: var(--green); border-color: var(--green); }
.rstep.done .ic svg { opacity: 1; color: #fff; }
.toolchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.tchip { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; background: var(--line-soft); border-radius: 999px; padding: 3px 10px; color: var(--muted); }
.tchip svg { width: 11px; height: 11px; color: var(--green); }
.agent-txt p { margin: 0 0 9px; } .agent-txt p:last-child { margin-bottom: 0; }
.agent-txt h4 { margin: 12px 0 5px; font-size: 14px; } .agent-txt strong { color: var(--ink); }

/* ===== RAPOR ARTIFACT (sade beyaz kart) ===== */
.artifact { margin-top: 14px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); background: var(--main); }
.art-head { background: var(--sidebar); padding: 16px 18px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.art-head .at { font-family: var(--serif); font-size: 17px; font-weight: 500; }
.art-head .al { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.art-head .stp { display: inline-flex; align-items: center; gap: 6px; background: var(--green-soft); color: var(--green); padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.art-head .stp .d { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.art-body { padding: 18px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.kpi { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; }
.kpi .k { font-size: 11px; color: var(--muted); font-weight: 600; }
.kpi .v { font-size: 18px; font-weight: 600; font-family: var(--serif); margin-top: 4px; }
.kpi .v.good { color: var(--green); } .kpi .v.mid { color: var(--amber); } .kpi .v.bad { color: var(--red); }
.accordion { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; margin-top: 4px; }
.acc-item + .acc-item { border-top: 1px solid var(--line); }
.acc-head { width: 100%; display: flex; align-items: center; gap: 10px; padding: 13px 14px; background: var(--main); border: none; text-align: left; font-size: 14px; font-weight: 600; color: var(--ink); }
.acc-head:hover { background: #fbfbf9; }
.acc-head .num { width: 22px; height: 22px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 11px; font-weight: 700; flex: 0 0 auto; }
.acc-head .chev { margin-left: auto; transition: transform .2s; color: var(--faint); }
.acc-item.open .acc-head .chev { transform: rotate(180deg); }
.acc-body { display: none; padding: 2px 16px 16px; font-size: 13.5px; line-height: 1.7; }
.acc-item.open .acc-body { display: block; }
.acc-body p { margin: 0 0 9px; } .acc-body h4 { margin: 12px 0 5px; font-size: 13.5px; } .acc-body strong { color: var(--ink); }
.art-body ul, .art-body ol { margin: 9px 0; padding-left: 22px; } .art-body li { margin: 5px 0; line-height: 1.55; }
table.mdtbl { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 12.5px; }
table.mdtbl th { text-align: left; background: var(--line-soft); color: var(--muted); font-weight: 700; padding: 9px 12px; font-size: 11px; text-transform: uppercase; letter-spacing: .03em; }
table.mdtbl td { padding: 9px 12px; border-bottom: 1px solid var(--line-soft); line-height: 1.5; vertical-align: top; overflow-wrap: break-word; word-break: break-word; }
table.mdtbl tr:last-child td { border-bottom: none; }
.flag { background: var(--accent-soft); border-left: 3px solid var(--accent); color: #8a4226; padding: 8px 12px; border-radius: 6px; margin: 8px 0; font-size: 12.5px; }
table.kv { width: 100%; border-collapse: collapse; margin: 11px 0; font-size: 13px; }
table.kv td { padding: 9px 12px; border-bottom: 1px solid var(--line-soft); line-height: 1.5; vertical-align: top; overflow-wrap: break-word; word-break: break-word; }
table.kv .k { color: var(--muted); width: 42%; padding-right: 16px; } table.kv .v { font-weight: 600; }
.minibar { display: grid; gap: 6px; margin: 10px 0; }
.minibar .b { display: grid; grid-template-columns: 88px 1fr auto; align-items: center; gap: 8px; font-size: 12px; }
.minibar .b .track { height: 13px; background: var(--line-soft); border-radius: 4px; overflow: hidden; }
.minibar .b .track i { display: block; height: 100%; background: var(--accent); opacity: .8; }
.minibar .b .val { font-weight: 600; }
.dgroup { margin: 14px 0; } .dgroup h5 { margin: 0 0 7px; font-size: 12px; color: var(--accent); letter-spacing: .02em; }
table.dt { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.dt th { text-align: left; background: var(--line-soft); color: var(--muted); font-weight: 700; padding: 9px 12px; font-size: 11px; letter-spacing: .03em; text-transform: uppercase; }
table.dt th:last-child, table.dt td:last-child { text-align: right; }
table.dt td { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); line-height: 1.5; vertical-align: middle; overflow-wrap: break-word; word-break: break-word; }
table.dt td:first-child { color: var(--ink); font-weight: 500; }
.srcchip { display: inline-block; font-size: 10.5px; padding: 2px 9px; border-radius: 999px; background: var(--accent-soft); color: #8a4226; white-space: nowrap; }
.verdict-note { margin: 0 0 16px; padding: 11px 14px; border-radius: var(--radius-sm); font-size: 13px; line-height: 1.55; background: #f6f7fb; border-left: 4px solid var(--faint); color: var(--ink); }
.verdict-note.v-good { background: #eef8f0; border-left-color: var(--green); }
.verdict-note.v-mid { background: #fcf6ec; border-left-color: var(--amber); }
.verdict-note.v-bad { background: #fbeeee; border-left-color: var(--red); }
.verdict-note.v-na { background: var(--line-soft); border-left-color: var(--faint); color: var(--ink); }
.art-actions { display: flex; gap: 9px; padding: 0 18px 18px; flex-wrap: wrap; }
.act { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--main); font-size: 12.5px; font-weight: 600; color: var(--ink); }
.act:hover { background: #fbfbf9; border-color: var(--accent-border); }
.act svg { width: 14px; height: 14px; color: var(--accent); }

/* ===== ALT COMPOSER (rapor formu — altta sabit, thread içeride kayar) ===== */
.composer { flex: 0 0 auto; padding: 12px 28px 20px; border-top: 1px solid var(--line-soft); background: var(--main); }
.composer .comp-card { max-width: 760px; margin: 0 auto; border: 1px solid var(--line); border-radius: 22px; padding: 14px 16px; background: var(--main); box-shadow: var(--shadow-card); }
.comp-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; align-items: end; }
.cf { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cf label { font-size: 10.5px; color: var(--muted); font-weight: 600; }
.cf input, .cf select { width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; font-size: 13px; background: #fbfbf9; color: var(--ink); outline: none; }
.cf input:focus, .cf select:focus { border-color: var(--accent-border); background: #fff; box-shadow: 0 0 0 3px var(--accent-soft); }
.send { display: flex; align-items: center; gap: 8px; padding: 9px 18px; border: none; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; font-size: 13.5px; white-space: nowrap; transition: filter .12s; }
.send:hover { filter: brightness(1.05); } .send:disabled { opacity: .5; cursor: not-allowed; }
.comp-hint { font-size: 11.5px; color: var(--faint); margin: 10px auto 0; text-align: center; max-width: 760px; }
/* Belge ekleme */
.comp-bottom { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.comp-bottom .send { margin-left: auto; }
.doc-add { display: flex; align-items: center; gap: 7px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fbfbf9; color: var(--muted); font-weight: 600; font-size: 13px; transition: background .12s, color .12s, border-color .12s; }
.doc-add:hover { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-border); }
.doc-add svg { width: 15px; height: 15px; color: var(--accent); }
.doc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.doc-chips:empty { display: none; }
.doc-chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 6px 5px 10px; border: 1px solid var(--accent-border); border-radius: 10px; background: var(--accent-soft); font-size: 12px; max-width: 320px; }
.doc-chip svg { width: 15px; height: 15px; color: var(--accent); flex: 0 0 auto; }
.doc-chip .dn { color: var(--ink); font-weight: 500; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-chip .dt { border: 1px solid var(--accent-border); border-radius: 7px; background: #fff; color: var(--accent); font-size: 11.5px; font-weight: 600; padding: 3px 5px; outline: none; cursor: pointer; }
.doc-chip .dx { width: 20px; height: 20px; border: none; border-radius: 50%; background: transparent; color: var(--muted); font-size: 16px; line-height: 1; cursor: pointer; flex: 0 0 auto; }
.doc-chip .dx:hover { background: rgba(0,0,0,.08); color: var(--ink); }

/* ===== SAĞ: CANLI BAĞLAM (beyaz, sade) ===== */
.ctx { background: var(--main); border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; overflow-y: auto; }
.ctx .blk { padding: 18px; border-bottom: 1px solid var(--line-soft); }
.ctx h3 { margin: 0 0 13px; font-size: 12.5px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.ctx h3 .lv { margin-left: auto; font-size: 10px; font-weight: 600; color: var(--green); background: var(--green-soft); padding: 2px 8px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px; }
.ctx h3 .lv .d { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.ctxgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ctxm { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; }
.ctxm .k { font-size: 11px; color: var(--muted); } .ctxm .v { font-size: 18px; font-weight: 600; font-family: var(--serif); margin-top: 4px; }
.toolrow { display: flex; align-items: center; gap: 9px; padding: 7px 0; font-size: 13.5px; }
.toolrow .tk { width: 17px; height: 17px; border-radius: 50%; background: var(--green); display: grid; place-items: center; flex: 0 0 auto; }
.toolrow .tk svg { width: 10px; height: 10px; color: #fff; }
.toolrow.off { color: var(--faint); } .toolrow.off .tk { background: #d8d6cd; }
.timeline { position: relative; padding-left: 17px; }
.timeline::before { content: ""; position: absolute; left: 4px; top: 4px; bottom: 4px; width: 1.5px; background: var(--line); }
.tl { position: relative; padding-bottom: 14px; } .tl:last-child { padding-bottom: 0; }
.tl::before { content: ""; position: absolute; left: -15px; top: 4px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.tl .w { font-size: 12.5px; font-weight: 600; } .tl .w small { display: block; color: var(--muted); font-weight: 400; font-size: 11px; }
.tl .when { font-size: 11px; color: var(--faint); margin-top: 1px; }
.muted { color: var(--muted); font-size: 12.5px; }
.tips { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.tips li { position: relative; padding-left: 18px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.tips li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.tips li b { color: var(--ink); font-weight: 600; }
.tips li code { background: var(--accent-soft); color: var(--accent); padding: 1px 6px; border-radius: 5px; font-size: 11.5px; }

/* Responsive */
@media (max-width: 1180px) { .app { grid-template-columns: 240px minmax(0,1fr); } .ctx { display: none; } }
@media (max-width: 800px) { .app { grid-template-columns: 1fr; } .side { display: none; } .comp-row { grid-template-columns: 1fr 1fr; } }

/* ====== Rapor grafikleri (uygulama-içi — /view ile aynı görsel dil) ====== */
.chartf { margin: 14px 0; background: #faf9f5; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.chartf figcaption { font-size: 13px; color: var(--accent); font-weight: 600; margin-bottom: 8px; }
.chartf figcaption .u { color: var(--muted); font-weight: 400; }
.chartf svg { display: block; width: 100%; height: auto; }
/* width niteliği olan SVG'leri (donut 170) 100%'e zorlama → ölçek bozulmasın */
.chartf .donut-wrap svg { width: 170px; flex: 0 0 auto; }
.lc-grid { stroke: #e6e4dc; stroke-width: 1; }
.lc-yl { font-size: 10.5px; fill: var(--muted); text-anchor: end; paint-order: stroke; stroke: #faf9f5; stroke-width: 3px; stroke-linejoin: round; }
.lc-xl { font-size: 11px; fill: var(--muted); text-anchor: middle; font-weight: 600; paint-order: stroke; stroke: #faf9f5; stroke-width: 3px; stroke-linejoin: round; }
.lc-pt { font-size: 11px; font-weight: 700; paint-order: stroke; stroke: #faf9f5; stroke-width: 3.5px; stroke-linejoin: round; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; justify-content: center; }
.chart-legend.col { flex-direction: column; gap: 7px; align-items: flex-start; justify-content: center; }
.chart-legend .lg { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink); }
.chart-legend .lg i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; flex: 0 0 auto; }
.chart-legend .lg b { color: var(--accent); }

/* Konum / uydu / sokak görünümü figürleri (uygulama-içi) */
.geo { margin: 14px 0; background: #faf9f5; border: 1px solid var(--line); border-radius: 12px; padding: 10px; overflow: hidden; }
.geo img { display: block; width: 100%; height: auto; border-radius: 8px; }
.geo figcaption { font-size: 12.5px; color: var(--accent); font-weight: 600; margin-top: 8px; }
.geo figcaption a { color: var(--accent); }
.geo-linkonly { padding: 12px 14px; }
.geo-linkonly img { display: none; }

/* Metrik şeridi */
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(116px, 1fr)); gap: 10px; margin: 14px 0; }
.metric { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 11px; padding: 12px 13px; text-align: center; box-shadow: var(--shadow); }
.metric.m-t-good { border-top-color: var(--green); } .metric.m-t-mid { border-top-color: var(--amber); } .metric.m-t-bad { border-top-color: var(--red); }
.metric .m-l { font-size: 11px; color: var(--muted); font-weight: 600; line-height: 1.3; }
.metric .m-v { font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--accent); margin: 5px 0 3px; line-height: 1.1; }
.metric .m-d { font-size: 11px; font-weight: 700; }
.m-up { color: var(--green); } .m-down { color: var(--red); } .m-flat { color: var(--muted); }

/* Donut */
.chartf .donut-wrap { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: center; }

/* Gauge */
.gauges .gauge { margin: 10px 0; }
.gauges .g-top { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 5px; }
.gauges .g-l { color: var(--ink); font-weight: 600; } .gauges .g-v { color: var(--accent); font-weight: 800; }
.gauges .g-track { height: 11px; background: #ece9e0; border-radius: 99px; overflow: hidden; }
.gauges .g-track i { display: block; height: 100%; border-radius: 99px; }

/* Radar */
.rd-grid { fill: none; stroke: #e6e4dc; stroke-width: 1; }
.rd-spoke { stroke: #ece9e0; stroke-width: 1; }
.rd-lbl { font-size: 10.5px; fill: var(--muted); font-weight: 600; }
.rd-data { fill: rgba(0,34,160,.15); stroke: var(--accent); stroke-width: 2; }

/* Yakınlık halkaları */
.px-ring { fill: none; stroke: #d6d3c8; stroke-width: 1; stroke-dasharray: 4 4; }
.px-rl { font-size: 10px; fill: var(--faint); text-anchor: middle; paint-order: stroke; stroke: #faf9f5; stroke-width: 3px; stroke-linejoin: round; }
.px-link { stroke: #e6e4dc; stroke-width: 1; }
.px-center { fill: var(--accent); }
.px-center-ring { fill: none; stroke: var(--accent); stroke-width: 1.5; opacity: .42; }
.px-num { font-size: 10px; font-weight: 700; fill: #fff; text-anchor: middle; }
.px-hint { font-size: 10.5px; color: var(--muted); text-align: center; margin: 8px 0 2px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.px-bull { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(0,34,160,.18); display: inline-block; flex: 0 0 auto; }
.px-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px 20px; }
.px-li { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--ink); min-width: 0; }
.px-b { flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%; color: #fff; font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.px-n { font-weight: 600; flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.px-d { color: var(--accent); font-weight: 700; flex: 0 0 auto; }
.px-c { color: var(--muted); font-size: 10px; flex: 0 0 auto; }
@media (max-width: 700px) { .px-list { grid-template-columns: 1fr; } }

/* Zaman çizelgesi */
.timeline { position: relative; margin: 4px 0 2px; padding-left: 4px; }
.tl-item { position: relative; display: grid; grid-template-columns: 58px 18px 1fr; align-items: start; gap: 6px; padding: 7px 0; }
.tl-item::before { content: ""; position: absolute; left: 65px; top: 18px; bottom: -7px; width: 2px; background: #e6e4dc; }
.tl-item:last-child::before { display: none; }
.tl-when { font-size: 12px; font-weight: 800; color: var(--accent); text-align: right; padding-top: 1px; }
.tl-dot { width: 13px; height: 13px; border-radius: 50%; background: var(--accent); border: 2.5px solid #fff; box-shadow: 0 0 0 1.5px var(--accent); margin-top: 3px; z-index: 1; }
.tl-good .tl-dot { background: var(--green); box-shadow: 0 0 0 1.5px var(--green); }
.tl-mid .tl-dot { background: var(--amber); box-shadow: 0 0 0 1.5px var(--amber); }
.tl-bad .tl-dot { background: var(--red); box-shadow: 0 0 0 1.5px var(--red); }
.tl-t { font-weight: 700; color: var(--ink); font-size: 13px; }
.tl-x { font-size: 12px; color: var(--muted); line-height: 1.5; margin-top: 1px; }

/* Mimari kütle + vaziyet şeması (şematik çizim) */
.archfig svg { display: block; width: 100%; height: auto; max-width: 680px; margin: 0 auto; }
.arch-note { font-size: 12.5px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; line-height: 1.6; }
.arch-divider { stroke: #e6e4dc; stroke-width: 1; stroke-dasharray: 3 4; }
.arch-ptitle { font-size: 12px; font-weight: 700; fill: var(--accent); }
.arch-parcel { fill: #eef3ec; stroke: #2f7d52; stroke-width: 1.6; }
.arch-setback { fill: none; stroke: #b6bccb; stroke-width: 1; stroke-dasharray: 4 3; }
.arch-foot { stroke: #ec7a1c; stroke-width: 1.4; }
.arch-footlbl { font-size: 10px; font-weight: 700; fill: #b3590a; letter-spacing: .5px; }
.arch-north path { fill: var(--accent); }
.arch-k { font-size: 9px; fill: var(--accent); font-weight: 700; }
.arch-ground { stroke: #b6bccb; stroke-width: 2; }
.arch-floor { fill: #27407e; stroke: #fff; stroke-width: 0.8; }
.arch-floor.g { fill: #162a5e; }
.arch-dim { stroke: #8a93a8; stroke-width: 1; }
.arch-dimlbl { font-size: 10px; fill: #5b667f; font-weight: 600; }
.arch-tree circle { fill: #2f7d52; }
.arch-tree .arch-trunk { stroke: #7a5a30; stroke-width: 2; }
.arch-lbl { font-size: 11px; fill: var(--ink); }
.arch-lbl .b { font-weight: 700; fill: var(--accent); }
.arch-sub { font-size: 9.5px; fill: var(--muted); }
/* ---- Blueprint ön cephe görünüşü + vaziyet planı ---- */
.bpfig svg { display: block; width: 100%; height: auto; max-width: 760px; margin: 2px auto; background: #fff; }
.bpfig-site svg { max-width: 430px; }
.bp-cap2 { font-size: 10px; color: var(--muted); text-align: center; margin-top: 2px; font-style: italic; }
.bp-grid { stroke: #e7edf8; stroke-width: .6; }
.bp-wall { fill: #fbfcff; stroke: #16306e; stroke-width: 1.7; }
.bp-roof { fill: #e6ecf8; stroke: #16306e; stroke-width: 1.4; }
.bp-cornice { stroke: #16306e; stroke-width: 1.5; }
.bp-floorline { stroke: #39518c; stroke-width: 1; }
.bp-win { fill: #eaf1fc; stroke: #16306e; stroke-width: 1.1; }
.bp-mullion { stroke: #16306e; stroke-width: .75; }
.bp-sill { stroke: #16306e; stroke-width: 1.5; }
.bp-door { fill: #dbe4f6; stroke: #16306e; stroke-width: 1.3; }
.bp-doorarch { fill: none; stroke: #16306e; stroke-width: 1.2; }
.bp-step { stroke: #16306e; stroke-width: 1.3; }
.bp-shop { fill: #dcebfc; stroke: #16306e; stroke-width: 1.3; }
.bp-awn { fill: #c8d6ef; stroke: #16306e; stroke-width: .8; }
.bp-rail { stroke: #39518c; stroke-width: 1; }
.bp-railv { stroke: #5a6f9f; stroke-width: .7; }
.bp-ground { stroke: #16306e; stroke-width: 2.6; }
.bp-hatch { stroke: #9fb0d0; stroke-width: .9; }
.bp-axis { stroke: #9fb0d0; stroke-width: .8; stroke-dasharray: 5 4; }
.bp-axiscirc { fill: #fff; stroke: #16306e; stroke-width: 1.2; }
.bp-axislbl { font-size: 10px; font-weight: 700; fill: #16306e; }
.bp-dim { stroke: #5d6e9c; stroke-width: .9; }
.bp-dimext { stroke: #aab6d2; stroke-width: .7; }
.bp-arrow { fill: #5d6e9c; }
.bp-dimlbl { font-size: 10.5px; font-weight: 600; fill: #3c4a72; paint-order: stroke; stroke: #fff; stroke-width: 2.4px; stroke-linejoin: round; }
.bp-title { fill: #f4f7fd; stroke: #16306e; stroke-width: 1; }
.bp-titleline { stroke: #16306e; stroke-width: .8; }
.bp-titlet { font-size: 10px; font-weight: 700; fill: #16306e; letter-spacing: .4px; }
.bp-titles { font-size: 8.5px; fill: #5d6e9c; }
.bp-parcel { fill: #f4f8ff; stroke: #16306e; stroke-width: 1.6; }
.bp-setback { fill: none; stroke: #9fb0d0; stroke-width: 1; stroke-dasharray: 5 3; }
.bp-foot { stroke: #16306e; stroke-width: 1.4; }
.bp-footlbl { font-size: 10px; font-weight: 700; fill: #16306e; letter-spacing: .5px; }
.bp-hatchln { stroke: #7d92c4; stroke-width: 1.6; }
.bp-north path { fill: #16306e; } .bp-northk { font-size: 10px; font-weight: 700; fill: #16306e; }
.bp-slbl { font-size: 11px; fill: var(--ink); } .bp-slbl .b { font-weight: 700; fill: var(--accent); }
.bp-ssub { font-size: 9px; fill: var(--muted); }
/* ---- "Bu Arsada Ne Yapılabilir?" senaryo blueprint'leri ---- */
.scn-wrap { margin-top: 10px; }
.scn-sech { font-size: 15px; font-weight: 800; color: var(--accent); margin: 16px 0 4px; }
.scn-sub { font-size: 11.5px; color: var(--muted); margin: 0 0 8px; line-height: 1.5; }
.scn-bp { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px 10px; margin: 12px 0; background: #fff; }
.scn-bp.scn-good { border-left: 4px solid #2f7d52; } .scn-bp.scn-mid { border-left: 4px solid #ec7a1c; } .scn-bp.scn-bad { border-left: 4px solid #d11f2d; }
.scn-bp-h { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; text-align: left; }
.scn-bp-n { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.scn-bp-t { font-weight: 700; color: var(--accent); font-size: 14px; }
.scn-bp .scn-badge { margin-left: auto; }
.scn-bp-note { text-align: left; font-style: normal; margin-top: 4px; color: var(--ink); }
.scn-bp .scn-ic { max-width: 210px; margin: 8px auto; }
.bp-trunk { stroke: #7a5a30; stroke-width: 2.4; }
.bp-leaf { fill: #dfeede; stroke: #2f7d52; stroke-width: 1.4; }
.bp-path { fill: none; stroke: #cbb68a; stroke-width: 4; stroke-dasharray: 2 6; stroke-linecap: round; }
.bp-bench line { stroke: #16306e; stroke-width: 1.8; }
.scn-bp-d { margin-top: 8px; }
.scn-bp-dl { font-size: 10.5px; font-weight: 700; color: #5d6e9c; letter-spacing: .3px; margin: 6px 0 2px; text-align: left; }
/* ---- Kat planı (floor plan) ---- */
.fp-grid { stroke: #e7edf8; stroke-width: .6; fill: none; }
.fp-room { fill: #f7faff; }
.fp-wall { stroke: #16306e; stroke-width: 2.2; fill: none; }
.fp-wall2 { stroke: #16306e; stroke-width: 1.3; fill: none; }
.fp-door { stroke: #16306e; stroke-width: 1.2; fill: none; }
.fp-door.fp-gap { stroke: #f7faff; stroke-width: 5; }
.fp-win { stroke: #16306e; stroke-width: 2.4; }
.fp-sill { stroke: #9fb0d0; stroke-width: 1; }
.fp-label { font-size: 11px; font-weight: 700; fill: #16306e; }
.fp-area { font-size: 9.5px; fill: #5d6e9c; }
.fp-furn { stroke: #6b7aa0; stroke-width: 1.1; fill: none; }
.fp-stair { stroke: #16306e; stroke-width: 1; }
.fp-stairarrow { stroke: #16306e; stroke-width: 1.3; fill: #16306e; }
.fp-north circle, .fp-north path { fill: none; stroke: #16306e; stroke-width: 1.5; }
.fp-title rect { fill: #f7faff; stroke: #16306e; stroke-width: 1; }
.fp-title line { stroke: #16306e; stroke-width: .8; }
.fp-titlet { font-size: 10px; font-weight: 700; fill: #16306e; }
.fp-titles { font-size: 8.5px; fill: #5d6e9c; }
/* ---- Sağlayıcı (yapay zeka) kredi/erişim uyarısı ---- */
.prov-warn { margin-top: 10px; border: 1px solid #f0c2c2; border-left: 4px solid #d11f2d; background: #fdf3f3; border-radius: 12px; padding: 14px 16px; }
.prov-warn .pw-h { font-weight: 800; color: #b3261e; font-size: 15px; margin-bottom: 6px; }
.prov-warn p { margin: 6px 0; color: var(--ink); line-height: 1.55; font-size: 13.5px; }
.prov-warn .pw-list { margin: 8px 0; padding-left: 20px; }
.prov-warn .pw-list li { margin: 3px 0; color: var(--ink); font-size: 13.5px; }
.prov-warn .pw-fix { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.prov-warn .pw-link { display: inline-block; margin-top: 8px; font-weight: 700; color: var(--accent); text-decoration: none; font-size: 13px; }
.prov-warn .pw-link:hover { text-decoration: underline; }
.scn-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 6px; }
.scn-card { border: 1px solid var(--line); border-top: 3px solid #9aa6bf; border-radius: 12px; padding: 10px; background: #fff; }
.scn-good { border-top-color: #2f7d52; } .scn-mid { border-top-color: #ec7a1c; } .scn-bad { border-top-color: #d11f2d; }
.scn-ic { display: block; width: 100%; height: auto; background: #f5f7fb; border-radius: 8px; }
.scn-h { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 8px; }
.scn-t { font-weight: 700; font-size: 12.5px; color: var(--accent); }
.scn-badge { font-size: 9.5px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: #eef2f7; color: #5b667f; white-space: nowrap; }
.scn-good .scn-badge { background: #e6f3ec; color: #2f7d52; } .scn-mid .scn-badge { background: #fdeede; color: #b3590a; } .scn-bad .scn-badge { background: #fde8e8; color: #b3261e; }
.scn-n { font-size: 11px; color: var(--muted); margin-top: 5px; line-height: 1.45; }
.scn-ground { stroke: #c9cfdd; stroke-width: 2; }
.scn-bld { fill: #dbe2f2; stroke: #27407e; stroke-width: 1.4; }
.scn-roof { fill: #27407e; }
.scn-win { fill: #9fb3da; }
.scn-door { fill: #27407e; }
.scn-glass { fill: #bcd0ef; stroke: #27407e; stroke-width: 1; }
.scn-awn { fill: #ec7a1c; } .scn-awn2 { fill: #fff; opacity: .45; }
.scn-floorline { stroke: #9fb3da; stroke-width: 1; }
.scn-tree circle { fill: #2f7d52; } .scn-trunk { stroke: #7a5a30; stroke-width: 3; }
.scn-path { fill: none; stroke: #cbb68a; stroke-width: 5; }
.scn-sun { fill: #f1b418; }
.scn-sign { fill: #d11f2d; } .scn-signt { fill: #fff; font-size: 10px; font-weight: 800; }

/* Değer kartları + chip ızgarası (uygulama-içi) */
.vcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 14px 0; }
.vc { border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 11px; padding: 13px; text-align: center; background: #fff; }
.vc-good { border-top-color: var(--green); } .vc-bad { border-top-color: var(--red); }
.vc-l { font-size: 11.5px; color: var(--muted); } .vc-v { font-family: var(--serif); font-size: 18px; color: var(--accent); margin: 5px 0 3px; } .vc-s { font-size: 11px; color: var(--muted); }
.chipgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 14px 0; }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.chip-l { background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 11.5px; padding: 7px 11px; }
.chip-v { padding: 9px 11px; font-weight: 600; color: var(--ink); font-size: 13.5px; }
