:root {
  --bg: #f4f5f8; --card: #fff; --text: #1b1f29; --muted: #6b7280; --line: #e6e8ee; --soft: #f7f8fa;
  --accent: #f27a1a; --accent-d: #d9690f; --accent-soft: #fff3e8;
  --good: #16a34a; --good-soft: #e8f7ee; --bad: #dc2626; --bad-soft: #fdecec; --info: #2563eb; --info-soft: #e8efff;
  --side: #171b26; --side-2: #232938; --side-text: #e7e9ee; --side-muted: #9099ad;
  --radius: 12px; --shadow: 0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.08);
}
* { box-sizing: border-box }
html, body { margin: 0; height: 100% }
body { font: 14px/1.45 "Segoe UI", system-ui, -apple-system, sans-serif; color: var(--text); background: var(--bg) }
button, input, select, textarea { font: inherit; color: inherit }
button { cursor: pointer }
a { color: var(--info); text-decoration: none }
a:hover { text-decoration: underline }
.num { font-variant-numeric: tabular-nums }
.sub { color: var(--muted); font-size: 13px }
.boot { height: 100vh; display: grid; place-items: center }
.spin { width: 30px; height: 30px; border: 3px solid #e5e7eb; border-top-color: var(--accent); border-radius: 50%; animation: sp .8s linear infinite }
.spin.sm { width: 16px; height: 16px; border-width: 2px; display: inline-block; vertical-align: middle }
@keyframes sp { to { transform: rotate(360deg) } }
.loading { padding: 40px; display: flex; justify-content: center }

/* ---- giriş ---- */
.auth { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(135deg, #171b26, #2b3245); padding: 16px }
.auth .box { background: #fff; border-radius: 16px; padding: 30px; width: 100%; max-width: 380px; box-shadow: 0 20px 50px rgba(0,0,0,.3) }
.auth h1 { margin: 10px 0 4px; font-size: 22px }
.auth label { display: block; font-size: 13px; color: var(--muted); margin: 14px 0 4px }
.auth input { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; outline: none }
.auth input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft) }
.auth .btn { width: 100%; justify-content: center; margin-top: 18px }
.logo { width: 38px; height: 38px; border-radius: 10px; background: var(--accent); display: grid; place-items: center; color: #fff; font-weight: 800 }
.err { color: var(--bad); font-size: 13px; margin-top: 10px; min-height: 18px }

/* ---- iskelet ---- */
.shell { display: grid; grid-template-columns: 232px 1fr; height: 100vh }
.side { background: var(--side); color: var(--side-text); display: flex; flex-direction: column; overflow: auto }
.side .brand { display: flex; align-items: center; gap: 10px; padding: 18px 16px }
.side .brand b { display: block; font-size: 15px }
.side .brand small { color: var(--side-muted); font-size: 12px }
.side nav { padding: 4px 10px; flex: 1 }
.side .grp { color: var(--side-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .07em; margin: 16px 8px 6px }
.side nav a { display: flex; align-items: center; gap: 10px; color: var(--side-text); padding: 9px 10px; border-radius: 9px; font-weight: 500 }
.side nav a:hover { background: var(--side-2); text-decoration: none }
.side nav a.on { background: #2f3648; box-shadow: inset 3px 0 0 var(--accent) }
.side nav a .ic { width: 20px; text-align: center; opacity: .9 }
.side .me { padding: 12px 14px; border-top: 1px solid #2a3040; font-size: 13px }
.side .me b { display: block }
.side .me button { background: none; border: 0; color: var(--side-muted); padding: 2px 0; margin-right: 10px; font-size: 12px }
.side .me button:hover { color: #fff }
.main { display: flex; flex-direction: column; min-width: 0; min-height: 0 }
.top { display: flex; gap: 10px; align-items: center; padding: 12px 22px; background: var(--card); border-bottom: 1px solid var(--line); flex-wrap: wrap }
.top .search { flex: 1; min-width: 220px; position: relative }
.top .search input { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px 9px 34px; background: var(--soft); outline: none }
.top .search input:focus { border-color: var(--accent); background: #fff }
.top .search::before { content: "⌕"; position: absolute; left: 12px; top: 6px; color: var(--muted); font-size: 18px }
.chipsbar { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px 22px; background: var(--card); border-bottom: 1px solid var(--line) }
.chipsbar:empty { display: none }
.fchip { background: var(--accent-soft); color: var(--accent-d); border-radius: 999px; padding: 3px 6px 3px 11px; font-size: 12px; font-weight: 600; display: inline-flex; gap: 6px; align-items: center }
.fchip b { background: none; border: 0; cursor: pointer; font-weight: 700; padding: 0 4px; border-radius: 50% }
.fchip b:hover { background: #fde0c6 }
.content { flex: 1; overflow: auto; padding: 22px }
.wrap { max-width: 1500px; margin: 0 auto }
h2 { margin: 0 0 4px; font-size: 20px }
h3 { margin: 0 0 12px; font-size: 15px }
.ph { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 16px }

/* ---- bileşenler ---- */
.btn { border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 8px 14px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap }
.btn:hover { border-color: #c9cdd6 }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600 }
.btn.primary:hover { background: var(--accent-d) }
.btn.sm { padding: 5px 10px; font-size: 13px }
.btn.ghost { border-color: transparent; background: transparent }
.btn.danger { color: var(--bad) }
.btn:disabled { opacity: .5; cursor: default }
.btn .badge { background: var(--accent); color: #fff; border-radius: 999px; padding: 0 7px; font-size: 11px }
.btn.primary .badge { background: #fff; color: var(--accent-d) }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow) }
.pad { padding: 18px 20px }
.grid { display: grid; gap: 14px }
.g2 { grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)) }
.g3 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 14px }
.kpi { padding: 14px 16px }
.kpi .l { color: var(--muted); font-size: 12px }
.kpi .v { font-size: 22px; font-weight: 700; margin-top: 2px }
.kpi .d { font-size: 12px; color: var(--muted); margin-top: 2px }
.kpi.click { cursor: pointer }
.kpi.click:hover { border-color: var(--accent) }
select, input[type=text], input[type=number], input[type=date], input[type=password], textarea {
  border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; background: #fff; outline: none }
select:focus, input:focus, textarea:focus { border-color: var(--accent) }

/* yatay çubuk grafik */
.bars .r { display: grid; grid-template-columns: minmax(90px, 38%) 1fr auto; gap: 10px; align-items: center; padding: 4px 6px; border-radius: 7px; font-size: 13px }
.bars .r.click { cursor: pointer }
.bars .r.click:hover { background: var(--soft) }
.bars .r .n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.bars .r .b { height: 10px; background: #eef0f4; border-radius: 99px; overflow: hidden }
.bars .r .b i { display: block; height: 100%; background: var(--accent); border-radius: 99px }
.bars .r .c { color: var(--muted); font-size: 12px; min-width: 92px; text-align: right }
.bars.good .r .b i { background: var(--good) }
.bars.info .r .b i { background: var(--info) }
.fill .r .b i { background: var(--bad) }
.fill .r .b i.ok { background: var(--good) }
.fill .r .b i.mid { background: var(--accent) }

/* tablo */
.tscroll { overflow: auto; max-height: calc(100vh - 260px); border-top: 1px solid var(--line) }
table { width: 100%; border-collapse: collapse }
th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 9px 10px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; white-space: nowrap; z-index: 1 }
th.s { cursor: pointer; user-select: none }
th.s:hover { color: var(--text) }
th.on { color: var(--accent-d) }
th.r, td.r { text-align: right }
td { padding: 8px 10px; border-bottom: 1px solid #f0f1f4; vertical-align: top }
tr.click { cursor: pointer }
tr.click:hover td { background: #fafbfc }
td .nm { font-weight: 600 }
td.wrapc { max-width: 280px; white-space: normal; font-size: 12px }
.av { width: 28px; height: 28px; border-radius: 7px; object-fit: contain; background: #fff; border: 1px solid var(--line); vertical-align: middle; margin-right: 8px; flex: none }
.av.t { display: inline-grid; place-items: center; color: #fff; font-size: 11px; font-weight: 700; border: 0 }
.cellname { display: flex; align-items: center; min-width: 200px }
.stt { font-size: 11px; font-weight: 700; border-radius: 999px; padding: 2px 8px; white-space: nowrap }
.stt.aktif { background: var(--good-soft); color: var(--good) }
.stt.pasif { background: #fff4d6; color: #92600a }
.stt.kapalı { background: var(--bad-soft); color: var(--bad) }
.stt.partner { background: #1f3a8a; color: #fff }
.stt.yok { background: #eef0f4; color: #4b5563 }
.pill { display: inline-block; min-width: 44px; text-align: center; font-size: 12px; font-weight: 700; border-radius: 6px; padding: 1px 6px }
.pill.p0, .pill.p1 { background: var(--bad-soft); color: var(--bad) }
.pill.p2, .pill.p3 { background: #fff4d6; color: #92600a }
.pill.p4 { background: var(--info-soft); color: var(--info) }
.pill.p5 { background: var(--good-soft); color: var(--good) }
.pager { display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 10px 14px; flex-wrap: wrap }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 12px 14px }
.toolbar .grow { flex: 1 }

/* filtre çekmecesi */
.shade { position: fixed; inset: 0; background: rgba(15,18,28,.35); z-index: 30; display: none }
.shade.on { display: block }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 460px; max-width: 100vw; background: #fff; z-index: 31; box-shadow: -10px 0 30px rgba(0,0,0,.15);
  transform: translateX(105%); transition: transform .2s; display: flex; flex-direction: column }
.drawer.on { transform: none }
.drawer.wide { width: 760px }
.drawer .dh { padding: 16px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px }
.drawer .db { flex: 1; overflow: auto }
.drawer .df { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: space-between; align-items: center }
details.fs { border-bottom: 1px solid var(--line) }
details.fs > summary { list-style: none; cursor: pointer; padding: 12px 18px; font-weight: 600; display: flex; justify-content: space-between }
details.fs > summary::-webkit-details-marker { display: none }
details.fs > summary::after { content: "▾"; color: var(--muted) }
details.fs[open] > summary::after { content: "▴" }
details.fs > summary .n { background: var(--accent); color: #fff; border-radius: 999px; padding: 0 7px; font-size: 11px; margin-left: auto; margin-right: 8px }
details.fs > summary .n:empty { display: none }
.fb { padding: 0 18px 14px; display: grid; gap: 10px }
.fl { font-size: 12px; color: var(--muted); margin-bottom: 4px; display: block }
.rng { display: grid; grid-template-columns: 1fr 1fr; gap: 6px }
.rng input { width: 100% }
.tg { display: flex; flex-wrap: wrap; gap: 6px }
.tg button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 11px; font-size: 13px }
.tg button.on { background: var(--accent); border-color: var(--accent); color: #fff }
.tri { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; font-size: 13px }
.tri .seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden }
.tri .seg button { border: 0; background: #fff; padding: 4px 10px; font-size: 12px; border-left: 1px solid var(--line) }
.tri .seg button:first-child { border-left: 0 }
.tri .seg button.on { background: var(--text); color: #fff }
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px }
.tags span { background: var(--info-soft); color: var(--info); border-radius: 999px; padding: 2px 4px 2px 10px; font-size: 12px; display: inline-flex; gap: 4px; align-items: center }
.tags span b { cursor: pointer; padding: 0 5px }
.ta { position: relative }
.ta input { width: 100% }
.dd { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border: 1px solid var(--line); border-radius: 9px; box-shadow: var(--shadow); z-index: 5; max-height: 260px; overflow: auto; display: none }
.dd div { padding: 7px 10px; display: flex; justify-content: space-between; gap: 10px; cursor: pointer; font-size: 13px }
.dd div:hover { background: var(--soft) }
.mode { font-size: 12px; color: var(--muted); display: flex; gap: 10px; margin-top: 4px }

/* firma ayrıntısı */
.fhead { display: flex; gap: 14px; align-items: center }
.fhead .lg { width: 58px; height: 58px; border-radius: 12px; border: 1px solid var(--line); object-fit: contain; background: #fff }
.fhead h3 { margin: 0; font-size: 18px }
.kv { display: grid; grid-template-columns: 170px 1fr; gap: 6px 14px; font-size: 13px }
.kv .k { color: var(--muted) }
.kv .v { word-break: break-word }
.sec { padding: 16px 18px; border-bottom: 1px solid var(--line) }
.sec h4 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted) }
.empty { color: #a0a6b2 }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); padding: 0 12px; overflow-x: auto }
.tab { border: 0; background: none; padding: 11px 13px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap }
.tab.on { color: var(--accent-d); border-bottom-color: var(--accent) }

/* modal ve bildirim */
.modal { position: fixed; inset: 0; background: rgba(15,18,28,.45); z-index: 40; display: grid; place-items: center; padding: 16px }
.modal .box { background: #fff; border-radius: 14px; width: 100%; max-width: 480px; padding: 20px 22px; box-shadow: 0 20px 50px rgba(0,0,0,.25); max-height: 90vh; overflow: auto }
.modal .box.wide { max-width: 720px }
.modal label { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 4px }
.modal label.chk { display: flex; gap: 8px; align-items: center; color: var(--text) }
.modal input[type=text], .modal input[type=password], .modal select { width: 100% }
.modal .acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px }
.cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 12px }
.cols label { margin: 0 !important; display: flex !important; gap: 8px; align-items: center; color: var(--text) !important; padding: 4px 0 }
#toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(120px); background: #1f2937; color: #fff; padding: 11px 18px; border-radius: 10px; z-index: 50; transition: transform .25s; max-width: 90vw }
#toast.show { transform: translateX(-50%) }
#toast.err { background: var(--bad) }
.msg { border-radius: 9px; padding: 10px 12px; font-size: 13px; background: #fff8e6; color: #8a5a00; border: 1px solid #f6d58a }
.msg.info { background: var(--info-soft); color: #1e3a8a; border-color: #bcd0ff }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr }
  .side { position: fixed; inset: 0 auto 0 0; width: 240px; z-index: 35; transform: translateX(-100%); transition: transform .2s }
  .side.open { transform: none }
  .menu-btn { display: inline-flex !important }
  .g2, .g3 { grid-template-columns: 1fr }
  .content { padding: 14px }
  .top { padding: 10px 14px }
  .kv { grid-template-columns: 120px 1fr }
  .bars .r { grid-template-columns: 1fr auto; gap: 4px 10px }
  .bars .r .b { grid-column: 1 / -1; grid-row: 2 }
}
.menu-btn { display: none }

/* ---- alan seçici: Satış / Demo / Yönetim ---- */
.side { --la: var(--accent) }
.side[data-layer="demo"] { --la: #8b5cf6 }
.side[data-layer="yonetim"] { --la: #3b82f6 }
.layer { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; margin: 0 12px 8px; background: var(--side-2); border-radius: 10px; padding: 4px }
.layer button { position: relative; border: 0; background: none; color: var(--side-muted); padding: 8px 4px; border-radius: 8px; font-weight: 600; font-size: 12px; display: flex; flex-direction: column; align-items: center; gap: 2px }
.layer button span { font-size: 16px; line-height: 1 }
.layer button:hover { color: #fff }
.layer button.on { background: var(--la); color: #fff }
.layer button i { position: absolute; top: 2px; right: 4px; background: #ef4444; color: #fff; font-style: normal; font-size: 10px; border-radius: 999px; padding: 0 5px; line-height: 16px }
.side nav a.on { box-shadow: inset 3px 0 0 var(--la) }
.side nav a .nb { margin-left: auto; background: #22c55e; color: #fff; border-radius: 999px; font-size: 11px; padding: 0 7px; line-height: 18px; font-weight: 700 }
.side nav a .nb.warn { background: #ef4444 }
.star { border: 0; background: none; font-size: 18px; color: #d1d5db; padding: 0 4px; line-height: 1 }
.star.on { color: var(--accent) }
.lnk { color: var(--info) }

/* ---- CRM ---- */
.spill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; white-space: nowrap }
.spill::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c) }
.board { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 10px; align-items: flex-start }
.board .col { flex: 0 0 280px; background: #eceef3; border-radius: 12px; display: flex; flex-direction: column; max-height: calc(100vh - 250px) }
.board .col.over { outline: 2px dashed var(--accent); background: var(--accent-soft) }
.board .ch { padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; gap: 8px; border-top: 4px solid var(--c); border-radius: 12px 12px 0 0 }
.board .cards { overflow: auto; padding: 0 8px 8px; display: flex; flex-direction: column; gap: 8px }
.oc { background: #fff; border-radius: 10px; padding: 10px 12px; box-shadow: var(--shadow); cursor: pointer; border: 1px solid var(--line) }
.oc:hover { border-color: var(--accent) }
.oc.drag { opacity: .5 }
.oc .t { font-weight: 600 }
.oc .ft { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); margin-top: 6px }
.nx { font-size: 12px; margin-top: 5px; color: var(--text) }
.nx.late { color: var(--bad); font-weight: 600 }
.nx.today { color: var(--accent-d); font-weight: 600 }
.nx.nodate { color: var(--muted) }
.ofrm { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px }
.ofrm label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted) }
.ofrm label.chk { flex-direction: row; align-items: center; color: var(--text); font-size: 13px }
.ofrm .wide { grid-column: 1 / -1 }
.ofrm label.chk input { width: auto }
.ofrm input, .ofrm select, .ofrm textarea { width: 100%; color: var(--text); font-size: 14px }
.composer { display: grid; grid-template-columns: 170px 1fr auto; gap: 8px; align-items: start }
.tl { display: flex; flex-direction: column; gap: 2px }
.ti { display: grid; grid-template-columns: 28px 1fr; gap: 8px; padding: 8px 4px; border-bottom: 1px solid #f0f1f4 }
.ti[data-opp] { cursor: pointer }
.ti .ic { width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center; font-size: 13px }
.ti.sys .ic { background: #eef0f4; color: var(--muted) }
.ti .meta { font-size: 12px; color: var(--muted) }
.ti .tx { white-space: pre-wrap; word-break: break-word }
.ti.sys .tx { color: var(--muted); font-size: 13px }
@media (max-width: 900px) { .ofrm, .composer { grid-template-columns: 1fr } .board .col { flex-basis: 85vw } }
.site { display: inline-block; font-size: 12px; color: #1e3a8a; background: var(--info-soft); border-radius: 6px; padding: 1px 7px; margin-top: 4px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.quick { display: flex; flex-wrap: wrap; gap: 6px }
.quick .btn { font-size: 12px }
.tg.pipes button { font-weight: 600 }
.oc-ulasildi, .oc-ilgileniyor, .oc-randevu { color: var(--good); font-weight: 600 }
.oc-geri_ara { color: var(--accent-d); font-weight: 600 }
.oc-ulasilamadi, .oc-mesgul, .oc-yanlis, .oc-ilgilenmiyor { color: var(--bad); font-weight: 600 }
code { background: #eef0f4; border-radius: 4px; padding: 0 4px; font-size: 12px }

/* ---- demo ---- */
.dpill { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 2px 9px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, white); white-space: nowrap }
.dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px }
.dcard { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; background: #fff }
.dcard:hover { border-color: #8b5cf6; box-shadow: var(--shadow) }
.dcard.new { border-color: #22c55e; box-shadow: 0 0 0 3px #dcfce7 }
.dcard .ft { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted) }
.dh2 { display: flex; align-items: center; gap: 8px; min-width: 0 }
.dh2 .av { margin-right: 0 }
.brief { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-wrap }
.brief-box { background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; white-space: pre-wrap; word-break: break-word }
.dl { display: flex; gap: 6px; flex-wrap: wrap }
.lrow { display: grid; grid-template-columns: 180px 1fr auto; gap: 6px; margin-bottom: 6px }
.lrow input { width: 100% }
.drow { display: flex; align-items: center; gap: 8px; padding: 8px 6px; border-bottom: 1px solid #f0f1f4; cursor: pointer; flex-wrap: wrap }
.drow:hover { background: var(--soft) }
.board .oc .dh2 { margin-bottom: 4px }
@media (max-width: 900px) { .lrow { grid-template-columns: 1fr } }
.sec.hl { background: #f0fdf4; box-shadow: inset 4px 0 0 #22c55e }

/* ---- arama ekranı ---- */
.callwrap { display: grid; grid-template-columns: 290px 1fr; gap: 14px; align-items: start }
.cq { position: sticky; top: 0; max-height: calc(100vh - 150px); display: flex; flex-direction: column; overflow: hidden }
.cqt { flex-direction: column; padding: 10px; gap: 4px }
.cqt button { border-radius: 8px; text-align: left; display: flex; justify-content: space-between }
.cqt .n { font-weight: 700 }
.cq > input { margin: 0 10px 8px }
#cqL { overflow: auto; border-top: 1px solid var(--line) }
.cqi { padding: 9px 12px; border-bottom: 1px solid #f0f1f4; cursor: pointer }
.cqi:hover { background: var(--soft) }
.cqi.on { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent) }
.cfocus { display: flex; flex-direction: column; gap: 14px; min-width: 0 }
.cfh { padding: 16px 18px }
.cfh .fhead { align-items: flex-start }
.cfh .lg { width: 64px; height: 64px }
.ctimer { margin-left: auto; text-align: right; color: var(--good); font-size: 13px }
.ctimer b { display: block; font-size: 24px }
.cgrid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; align-items: start }
.cgrid > div { display: flex; flex-direction: column; gap: 14px; min-width: 0 }
.phone { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid #f0f1f4 }
.phone .pn { font-size: 20px; font-weight: 700; letter-spacing: .02em }
.phone .pa { display: flex; gap: 6px }
.clog { position: sticky; top: 0; display: flex; flex-direction: column; gap: 6px }
.clog .fl { margin: 6px 0 0 }
.clog textarea, .clog select, .clog input[type=text] { width: 100% }
.obtns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px }
.obtns .ob { justify-content: flex-start; font-size: 13px }
.obtns .ob kbd, .cact kbd { background: #eef0f4; border-radius: 4px; padding: 0 5px; font-size: 11px; color: var(--muted); font-family: inherit }
.obtns .ob.on { background: var(--text); border-color: var(--text); color: #fff }
.obtns .ob.on kbd { background: #374151; color: #fff }
.qd { display: flex; gap: 6px; flex-wrap: wrap; align-items: center }
.cact { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px }
.cact .btn.primary kbd { background: rgba(255,255,255,.25); color: #fff }
.cmsg { display: flex; gap: 6px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line) }
.cmsg select { flex: 1 }
@media (max-width: 1100px) { .callwrap, .cgrid { grid-template-columns: 1fr } .cq, .clog { position: static; max-height: none } .phone { grid-template-columns: 1fr } }
.clog .two { display: grid; grid-template-columns: 1fr 1fr; gap: 6px }
.clog .two select { width: 100% }
.clog h3 { margin-bottom: 6px }
.qrbox { display: flex; justify-content: center; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px }
.qrbox img { width: 260px; height: 260px }
h3 .ok { color: var(--good) }
.lastcall { margin-top: 12px; background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 9px 12px; font-size: 13px; white-space: pre-wrap }
.lastcall.none { background: var(--soft); border-color: var(--line); color: var(--muted) }

/* marka ve ürün sayıları; Ozon Partner markaları vurgulu */
.brh { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; font-size: 13px }
.brh .oz { color: var(--good) }
.brt { display: grid; gap: 3px }
.brr { display: grid; grid-template-columns: minmax(0, 1fr) 90px 56px; gap: 8px; align-items: center; font-size: 13px; padding: 2px 6px; border-radius: 6px }
.brr .bn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.brr .bb { height: 6px; background: #eef0f3; border-radius: 3px; overflow: hidden }
.brr .bb i { display: block; height: 100%; background: #b8bfcc }
.brr .num { text-align: right }
.brr.oz { background: var(--good-soft); font-weight: 600 }
.brr.oz .bb i { background: var(--good) }
.cqo { font-size: 11.5px; color: var(--good); font-weight: 600; margin-top: 2px }
.modsel { display: grid; gap: 2px; margin-bottom: 4px }
.modt { display: inline-block; background: var(--info-soft); color: var(--info); border-radius: 999px; padding: 1px 8px; font-size: 12px; margin: 1px 0 }

/* şifresiz giriş: kişi seçimi */
.auth .pick { max-width: 420px }
.auth .pick .pg { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted, #6b7280); margin: 14px 0 6px }
.auth .pick .btn { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-bottom: 6px; padding: 10px 12px; text-align: left }

/* arama sayacı: Ara → Kapat */
.btn.stop { background: var(--bad); border-color: var(--bad); color: #fff }
.ctimer.done { color: var(--muted, #6b7280) }
