:root {
  --navy: #172653; --navy-2: #22346b; --ink: #202638; --gray: #788195; --rule: #D7DCE5; --band: #F1F3F7; --zebra: #F7F8FA;
  --bg: #F4F6FA; --card: #FFFFFF; --red: #C00000; --red-bg: #FDECEC; --green: #1E7B45; --green-bg: #E6F4EC; --amber: #A15C00; --amber-bg: #FFF4DE;
  --blue-bg: #E8EDF8; --radius: 8px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; color: var(--ink); background: var(--bg); display: flex; }
a { color: var(--navy); }
.muted { color: var(--gray); }
.side { width: 236px; flex: none; background: #fff; border-right: 1px solid var(--rule); display: flex; flex-direction: column; height: 100vh; position: sticky; top: 0; overflow-y: auto; }
.brand { display: flex; align-items: flex-end; gap: 10px; padding: 20px 22px 16px; border-bottom: 1px solid var(--rule); text-decoration: none; }
.brand img { width: 92px; display: block; }
.brand span { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gray); padding-bottom: 2px; }
#nav { padding: 10px 10px; display: flex; flex-direction: column; gap: 1px; }
#nav .nav-h { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #a3aabb; padding: 12px 12px 4px; }
#nav a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 7px; text-decoration: none; color: var(--ink); font-weight: 500; }
#nav a[hidden] { display: none; }
#nav a.ai i { color: #6b5bd6; }
#nav a.ai.on { background: linear-gradient(90deg, var(--navy), #3b3f9e); }
#nav a i { font-style: normal; width: 18px; text-align: center; color: var(--gray); }
#nav a:hover { background: var(--band); }
#nav a.on { background: var(--navy); color: #fff; }
#nav a.on i { color: #fff; }
.side-foot { margin-top: auto; padding: 12px 16px 16px; border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
main { flex: 1; min-width: 0; padding: 26px 32px 60px; }
.loading { color: var(--gray); padding: 40px; }

h1 { font-size: 22px; margin: 0; color: var(--navy); }
h2 { font-size: 15px; margin: 0 0 10px; color: var(--navy); }
.head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.head .sp { flex: 1; }
.card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px; }
.grid { display: grid; gap: 16px; }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g2, .g3 { grid-template-columns: 1fr; } }
/* telefon / tablet: üst çubuk + açılır menü */
.topbar, .scrim { display: none; }
@media (max-width: 900px) {
  body { flex-direction: column; }
  .topbar { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--rule); padding: 8px 12px; }
  .topbar img { height: 26px; display: block; } .topbar .sp { flex: 1; } .topbar .icon { font-size: 20px; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; z-index: 60; transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 40px rgba(0,0,0,.15); }
  body.menu-open .side { transform: none; }
  body.menu-open .scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(23,38,83,.35); }
  main { padding: 18px 16px 50px; }
  .form { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form .c3, .form .c4 { grid-column: 1 / -1; }
}
@media (max-width: 640px) { .g4 { grid-template-columns: 1fr; } }
.stat .lbl { color: var(--gray); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.stat .val { font-size: 22px; font-weight: 700; color: var(--navy); margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat .sub { font-size: 12px; color: var(--gray); margin-top: 2px; }
.stat.warn .val { color: var(--red); }

.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--rule); background: #fff; color: var(--ink); padding: 7px 13px; border-radius: 7px; font: inherit; font-weight: 500; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: #b9c1d0; background: var(--zebra); }
.btn.primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn.primary:hover { background: var(--navy-2); }
.btn.danger { color: var(--red); }
.btn.danger:hover { background: var(--red-bg); border-color: #f0b9b9; }
.btn.sm { padding: 4px 9px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: default; }
.link { background: none; border: 0; padding: 0; color: var(--navy); cursor: pointer; font: inherit; text-align: left; }
.link:hover { text-decoration: underline; }
.icon { background: none; border: 0; cursor: pointer; color: var(--gray); font-size: 15px; padding: 3px 6px; border-radius: 5px; }
.icon:hover { background: var(--band); color: var(--ink); }
.icon.del:hover { color: var(--red); background: var(--red-bg); }

input, select, textarea { font: inherit; color: var(--ink); border: 1px solid var(--rule); border-radius: 6px; padding: 7px 9px; background: #fff; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid #c5d0ea; border-color: var(--navy); }
textarea { resize: vertical; min-height: 70px; }
input[type=checkbox] { width: auto; }
input.num { text-align: right; font-variant-numeric: tabular-nums; }
label.f { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--gray); font-weight: 500; }
label.f > span { text-transform: uppercase; letter-spacing: .03em; }
.form { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.form .c2 { grid-column: span 2; } .form .c3 { grid-column: span 3; } .form .c4 { grid-column: 1 / -1; }
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.toolbar input[type=search] { max-width: 300px; }
.toolbar select { width: auto; }
.chk { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink); cursor: pointer; }

table.t { width: 100%; border-collapse: collapse; background: #fff; }
.tw { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); overflow: auto; }
table.t th { text-align: left; font-size: 12px; font-weight: 600; color: #fff; background: var(--navy); padding: 9px 10px; white-space: nowrap; position: sticky; top: 0; }
table.t td { padding: 8px 10px; border-top: 1px solid var(--rule); vertical-align: middle; }
table.t tbody tr:nth-child(even) td { background: var(--zebra); }
table.t tbody tr.click { cursor: pointer; }
table.t tbody tr.click:hover td { background: var(--blue-bg); }
table.t .r, .r { text-align: right; font-variant-numeric: tabular-nums; }
table.t .c { text-align: center; }
table.t td.nw, .nw { white-space: nowrap; }
table.t tr.inactive td { color: var(--gray); }
.empty { padding: 30px; text-align: center; color: var(--gray); }
.small { font-size: 12px; }
b.name { font-weight: 600; }
table.t td.ell { max-width: 120px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.pill { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.s-Taslak { background: var(--band); color: var(--gray); }
.s-Gönderildi { background: var(--blue-bg); color: var(--navy); }
.s-Onaylandı { background: var(--green-bg); color: var(--green); }
.s-Reddedildi, .s-İptal { background: var(--red-bg); color: var(--red); }
.neg { color: var(--red); font-weight: 600; }
.low { color: var(--amber); font-weight: 600; }
.ok { color: var(--green); }
.tag { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 4px; background: var(--band); color: var(--gray); }

/* teklif / alış editörü */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; align-items: start; }
@media (max-width: 1200px) { .editor { grid-template-columns: 1fr; } }
.sticky { position: sticky; top: 20px; }
.sec { border: 1px solid var(--rule); border-radius: var(--radius); background: #fff; margin-bottom: 14px; }
.sec-h { display: flex; gap: 8px; align-items: center; padding: 10px 12px; background: var(--band); border-bottom: 1px solid var(--rule); border-radius: var(--radius) var(--radius) 0 0; }
.sec-h .letter { font-weight: 700; color: var(--navy); width: 22px; }
.sec-h input { font-weight: 600; color: var(--navy); background: #fff; }
.sec-h .tot { font-weight: 700; color: var(--navy); white-space: nowrap; font-variant-numeric: tabular-nums; min-width: 110px; text-align: right; }
table.items { width: 100%; border-collapse: collapse; }
table.items th { font-size: 11px; color: var(--gray); text-transform: uppercase; letter-spacing: .03em; font-weight: 600; text-align: left; padding: 7px 6px 4px; }
table.items td { padding: 4px 6px; vertical-align: top; border-top: 1px solid var(--zebra); }
table.items input { padding: 6px 7px; }
table.items .nm { font-weight: 600; }
table.items .ds { margin-top: 4px; font-size: 13px; color: #3d4559; }
table.items .amt { padding-top: 10px; white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; }
table.items .meta { font-size: 11px; color: var(--gray); margin-top: 3px; }
table.items .acts { white-space: nowrap; padding-top: 6px; }
table.items .acts .icon { padding: 3px 4px; }
/* yalnızca içeride görünen alış / kâr sütunları (PDF'e yazılmaz) */
table.items th.cst { color: var(--amber); background: var(--amber-bg); }
table.items td.cst { background: #FFFAEF; }
table.items td.cst .sub { font-size: 11px; color: var(--gray); margin-top: 3px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.form .f.cst > span { color: var(--amber); }
/* teklif editöründe sağ panelin üstündeki kâr kutusu */
.profit { margin: -4px 0 14px; padding: 11px 12px; border-radius: 8px; background: var(--green-bg); border: 1px solid #cfe8da; }
.profit .lbl { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--green); }
.profit .lbl span { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--gray); }
.profit .val { font-size: 22px; font-weight: 700; color: var(--green); font-variant-numeric: tabular-nums; margin: 2px 0; }
.profit .sub { font-size: 12px; color: var(--ink); font-variant-numeric: tabular-nums; }
.profit .sub span { color: var(--gray); }
.profit .warn { margin-top: 6px; font-size: 12px; color: var(--amber); }
.profit.loss { background: var(--red-bg); border-color: #f3c9c9; }
.profit.loss .lbl, .profit.loss .val { color: var(--red); }
.profit.none { background: var(--zebra); border-color: var(--rule); }
.profit.none .lbl, .profit.none .val { color: var(--gray); }
.profit .warn.neg { color: var(--red); font-weight: 600; }
/* iskonto sonrası zarar / düşük kâr işaretli kalem satırları */
table.items tr.flag-loss > td:first-child { box-shadow: inset 3px 0 0 var(--red); }
table.items tr.flag-low > td:first-child { box-shadow: inset 3px 0 0 #E0A100; }
table.items tr.flag-loss td.cst { background: #FDF0F0; }
/* alış para birimi seçimi */
table.items select.ccur { width: auto; padding: 0 2px; font-size: 11px; height: 18px; border-radius: 4px; vertical-align: middle; margin-right: 3px; }
table.items td.cst .sub { white-space: normal; line-height: 1.35; }
table.items td.cst .sub span { white-space: nowrap; }
.form .f.cst input { background: #FFFAEF; }
.sec-f { padding: 8px 12px 12px; display: flex; gap: 8px; }
.sum-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--zebra); font-variant-numeric: tabular-nums; }
.sum-row.big { font-size: 18px; font-weight: 700; color: var(--navy); border: 0; padding-top: 10px; }
.sum-row.strong { font-weight: 600; }
.internal { margin-top: 14px; padding: 12px; background: var(--amber-bg); border-radius: 7px; font-size: 13px; }
.internal h3 { margin: 0 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--amber); }
.stack { display: flex; flex-direction: column; gap: 8px; }
.list-edit .row { display: flex; gap: 6px; margin-bottom: 6px; align-items: flex-start; }
.list-edit .row textarea { min-height: 38px; }
.list-edit .row input.k { width: 130px; flex: none; font-weight: 600; }
details.more > summary { cursor: pointer; color: var(--navy); font-weight: 600; padding: 4px 0; }
.alert { padding: 10px 12px; border-radius: 7px; background: var(--amber-bg); color: #6b4300; font-size: 13px; margin-bottom: 12px; }
.alert.red { background: var(--red-bg); color: var(--red); }

/* modal & bildirim */
.modal { position: fixed; inset: 0; background: rgba(23, 38, 83, .35); display: flex; align-items: flex-start; justify-content: center; padding: 50px 16px; z-index: 50; overflow: auto; }
.modal[hidden] { display: none; }
.dlg { background: #fff; border-radius: 10px; width: 100%; max-width: 760px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.dlg.wide { max-width: 980px; }
.dlg-h { display: flex; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--rule); }
.dlg-h h2 { margin: 0; flex: 1; }
.dlg-b { padding: 18px 20px; max-height: calc(100vh - 220px); overflow: auto; }
.dlg-f { display: flex; gap: 8px; justify-content: flex-end; padding: 14px 20px; border-top: 1px solid var(--rule); }
.dlg-f .sp { flex: 1; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--rule); margin: -6px 0 14px; }
.tabs button { background: none; border: 0; padding: 8px 12px; font: inherit; color: var(--gray); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.on { color: var(--navy); border-bottom-color: var(--navy); font-weight: 600; }
.toast { position: fixed; right: 24px; bottom: 24px; background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 8px; max-width: 460px; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); z-index: 60; }
.toast.err { background: var(--red); }
.toast[hidden] { display: none; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 4px 12px; font-size: 13px; }
.kv div:nth-child(odd) { color: var(--gray); }
.hint { font-size: 12px; color: var(--gray); }
code { background: var(--band); padding: 1px 5px; border-radius: 4px; font-size: 12px; }

/* v1.1 */
[hidden] { display: none !important; }
.tag.blue { background: var(--blue-bg); color: var(--navy); }
.tag.amber { background: var(--amber-bg); color: var(--amber); }
.ell2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; }
.btn-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn-pair .btn { justify-content: center; }
.stack > .btn { justify-content: center; }
.side-list { margin-top: 16px; border-top: 1px solid var(--rule); padding-top: 12px; font-size: 12px; }
.side-list h3, .side-list > summary { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--gray); font-weight: 600; cursor: pointer; }
.side-list a { display: flex; gap: 6px; align-items: center; padding: 5px 0; text-decoration: none; flex-wrap: wrap; }
.side-list a .muted { margin-left: auto; }
.side-list .hist { padding: 5px 0; border-bottom: 1px solid var(--zebra); line-height: 1.4; }
.page-tabs { margin: 0 0 16px; }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--gray); margin-bottom: 8px; }
.legend .sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.sw.off, .bar i.off { background: #B9C4E2; }
.sw.ap, .bar i.ap { background: var(--navy); }
.bar { position: relative; height: 10px; min-width: 80px; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 0 4px 4px 0; min-width: 2px; }
.bar i.ap[style*="width:0%"] { display: none; }
#rateInfo { line-height: 1.4; }
.closed { margin: auto; max-width: 520px; text-align: center; padding: 40px 20px; }
.closed img { width: 120px; margin-bottom: 18px; }
.closed p { color: var(--gray); }
.sticky { max-height: calc(100vh - 40px); overflow: auto; overscroll-behavior: contain; }
@media (max-width: 1200px) { .sticky { position: static; max-height: none; } }

/* v1.2 — giriş ekranı ve kullanıcı bilgisi */
.auth { position: fixed; inset: 0; z-index: 80; background: var(--bg); display: flex; overflow: auto; }
.auth-brand { flex: 1.1; background: linear-gradient(150deg, var(--navy) 0%, #1d3270 55%, #2b4590 100%); color: #fff; padding: 48px 56px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.auth-brand::after { content: ''; position: absolute; right: -120px; bottom: -120px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(255,255,255,.05); }
.auth-brand .logo { background: #fff; border-radius: 10px; padding: 10px 14px; align-self: flex-start; } .auth-brand .logo img { width: 110px; display: block; }
.auth-brand h2 { color: #fff; font-size: 30px; line-height: 1.2; margin: auto 0 14px; max-width: 440px; font-weight: 700; }
.auth-brand p { color: #c9d2ea; max-width: 430px; margin: 0 0 26px; font-size: 15px; }
.auth-brand ul { list-style: none; padding: 0; margin: 0 0 auto; display: grid; gap: 10px; color: #e3e8f6; }
.auth-brand li::before { content: '✓'; display: inline-block; width: 22px; color: #8fb0ff; font-weight: 700; }
.auth-brand .foot { color: #8f9cc4; font-size: 12px; margin-top: 30px; }
.auth-side { flex: 1; display: flex; align-items: center; justify-content: center; padding: 30px 20px; }
@media (max-width: 860px) { .auth-brand { display: none; } }
.auth-card { width: 100%; max-width: 360px; background: #fff; border: 1px solid var(--rule); border-radius: 12px; padding: 28px 26px; display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 10px 40px rgba(23, 38, 83, .08); }
.auth-card img { width: 110px; margin: 0 auto 4px; }
.auth-card h1 { text-align: center; font-size: 21px; margin-bottom: 0; }
.auth-card .sub { text-align: center; color: var(--gray); margin: -4px 0 6px; font-size: 13px; }
.auth-card .pw { position: relative; display: block; } .auth-card .pw input { width: 100%; padding-right: 64px; }
.auth-card .pw button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 12px; }
.auth-card .meta { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; color: var(--gray); text-align: center; }
.auth-card .btn { justify-content: center; padding: 9px; margin-top: 4px; }
.auth-err { color: var(--red); font-size: 13px; min-height: 16px; }
#userInfo { font-size: 12px; font-weight: 600; color: var(--navy); line-height: 1.5; padding-bottom: 6px; border-bottom: 1px solid var(--rule); margin-bottom: 4px; }
.card > h3 { margin: 0 0 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--gray); font-weight: 600; }

/* v1.8 — görevler, arama */
.tasklist .task { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-bottom: 1px solid var(--zebra); }
.tasklist .task:last-child { border-bottom: 0; }
.tasklist .task input[type=checkbox] { width: 17px; height: 17px; flex: none; }
.tasklist .task .tt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tasklist .task.done .ttl { text-decoration: line-through; color: var(--gray); }
.gsearch { position: relative; padding: 10px 10px 0; }
.gsearch input { width: 100%; padding: 7px 10px; font-size: 13px; }
.gres { position: absolute; left: 10px; right: -260px; top: 44px; z-index: 60; background: #fff; border: 1px solid var(--rule); border-radius: 8px; box-shadow: 0 8px 24px rgba(23,38,83,.15); max-height: 70vh; overflow: auto; }
.gres a { display: block; padding: 7px 10px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--zebra); }
.gres a.on, .gres a:hover { background: var(--band); }
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { color: var(--navy); }

/* kullanıcı kartı (sol alt) */
.ucard { display: flex; align-items: center; gap: 10px; padding: 8px; margin: 0 -6px 6px; border-radius: 9px; background: var(--band); }
.ucard[hidden] { display: none; }
.ucard > div { flex: 1; min-width: 0; line-height: 1.3; } .ucard b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av { width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12.5px; }

/* duyuru */
.announce { display: flex; gap: 12px; align-items: flex-start; background: linear-gradient(90deg, #eef2fd, #f6f3ff); border: 1px solid #d5dcf3; border-radius: var(--radius); padding: 12px 16px; margin-bottom: 16px; }
.announce .ic { font-size: 18px; } .announce p { margin: 0; white-space: pre-wrap; } .announce .muted { font-size: 12px; }

/* yapay zekâ asistanı */
.chat { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; height: calc(100vh - 110px); min-height: 480px; }
.chat-main { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--rule); border-radius: 12px; min-height: 0; }
.chat-log { flex: 1; overflow-y: auto; padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.msg { display: flex; gap: 10px; max-width: 88%; } .msg .bub { padding: 10px 14px; border-radius: 12px; white-space: pre-wrap; word-wrap: break-word; line-height: 1.5; }
.msg.user { align-self: flex-end; flex-direction: row-reverse; } .msg.user .bub { background: var(--navy); color: #fff; border-bottom-right-radius: 4px; }
.msg.bot .bub { background: var(--band); border-bottom-left-radius: 4px; }
.msg .av { width: 28px; height: 28px; font-size: 12px; } .msg.bot .av { background: linear-gradient(135deg, #3b3f9e, #6b5bd6); }
.msg .att { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; } .msg .att a, .msg .att span { font-size: 12.5px; }
.msg.user .att span { background: rgba(255,255,255,.15); color: #fff; padding: 2px 8px; border-radius: 10px; }
.msg .time { font-size: 11px; color: var(--gray); margin-top: 3px; } .msg.user .time { text-align: right; }
.typing span { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #9aa3b8; margin: 0 2px; animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; } .typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.chat-in { border-top: 1px solid var(--rule); padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.chat-in .row { display: flex; gap: 8px; align-items: flex-end; }
.chat-in textarea { flex: 1; resize: none; min-height: 44px; max-height: 200px; padding: 10px 12px; border-radius: 10px; font: inherit; }
.chat-in .files { display: flex; flex-wrap: wrap; gap: 6px; } .chat-in .files:empty { display: none; }
.chip { display: inline-flex; align-items: center; gap: 4px; background: var(--blue-bg); color: var(--navy); border-radius: 12px; padding: 3px 9px; font-size: 12.5px; }
.chip button { background: none; border: 0; cursor: pointer; color: var(--gray); padding: 0 0 0 2px; }
.chat-empty { margin: auto; text-align: center; max-width: 520px; color: var(--gray); }
.chat-empty .big { font-size: 34px; color: #6b5bd6; } .chat-empty h2 { font-size: 18px; margin: 6px 0; }
.sugg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; text-align: left; }
.sugg button { border: 1px solid var(--rule); background: #fff; border-radius: 9px; padding: 10px 12px; cursor: pointer; font: inherit; font-size: 13px; color: var(--ink); text-align: left; }
.sugg button:hover { border-color: #b9c1d0; background: var(--zebra); }
.chat-side .card + .card { margin-top: 12px; } .chat-side ul { padding-left: 18px; margin: 0; line-height: 1.6; font-size: 13px; color: var(--ink); }
@media (max-width: 1100px) { .chat { grid-template-columns: 1fr; height: auto; } .chat-main { height: calc(100vh - 150px); } .chat-side { display: none; } .sugg { grid-template-columns: 1fr; } }

/* yönetim paneli */
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #b9c1d0; margin-right: 6px; vertical-align: middle; } .dot.on { background: #2fb36b; }
.adm-top { display: flex; align-items: center; gap: 14px; background: linear-gradient(120deg, var(--navy), #2b4590); color: #fff; border-radius: 12px; padding: 18px 22px; margin-bottom: 16px; }
.adm-top h1 { color: #fff; } .adm-top .muted { color: #c2cbe6; } .adm-top .sp { flex: 1; } .adm-top .btn { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.25); }
.ok-tag { color: var(--green); font-weight: 600; } .bad-tag { color: var(--red); font-weight: 600; }
.bars { display: grid; gap: 8px; } .bars .b { display: grid; grid-template-columns: 120px 1fr 40px; gap: 8px; align-items: center; font-size: 13px; }
.bars .t { height: 8px; background: var(--band); border-radius: 4px; overflow: hidden; } .bars .t i { display: block; height: 100%; background: var(--navy); border-radius: 4px; }
.tag.red { background: var(--red-bg); color: var(--red); }
.tag.green { background: var(--green-bg); color: var(--green); }
