/* ===========================================================================
   Sosyal CRM — ekrana özel stiller (theme.css'in üstüne biner)
   =========================================================================== */

/* ------------------------------------------------------------------ GİRİŞ */
body.auth { display: flex; min-height: 100vh; background: var(--bg); }
.auth-split { display: grid; grid-template-columns: 460px 1fr; width: 100%; }
@media (max-width: 900px) { .auth-split { grid-template-columns: 1fr; } .auth-side { display: none !important; } }

.auth-side {
  background: linear-gradient(160deg, #1a2048 0%, #252d63 60%, #2b3670 100%);
  color: #fff; padding: 46px 44px; display: flex; flex-direction: column;
}
/* align-self olmadan kolon flex'inde stretch olur ve logo yatayda gerilir */
.auth-side .logo { height: 42px; width: auto; display: block; align-self: flex-start; }
.auth-side h1 { font-size: 30px; font-weight: 800; line-height: 1.22; letter-spacing: -.02em; margin-top: auto; }
.auth-side p { font-size: 14.5px; line-height: 1.65; color: rgba(255, 255, 255, .72); margin-top: 14px; max-width: 330px; }
.auth-feats { margin-top: 30px; display: flex; flex-direction: column; gap: 12px; }
.auth-feat { display: flex; align-items: center; gap: 11px; font-size: 13.5px; color: rgba(255, 255, 255, .85); }
.auth-feat .ic { width: 26px; height: 26px; border-radius: 8px; background: rgba(255, 255, 255, .13); display: flex; align-items: center; justify-content: center; flex: none; }
.auth-feat svg { width: 14px; height: 14px; }
.auth-side .foot { margin-top: auto; padding-top: 34px; font-size: 12px; color: rgba(255, 255, 255, .45); }

.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 392px; }
.auth-card h2 { font-size: 23px; font-weight: 800; color: var(--navy); letter-spacing: -.015em; }
.auth-card .lead { font-size: 13.5px; color: var(--muted); margin-top: 7px; margin-bottom: 26px; line-height: 1.55; }
.auth-err { background: var(--red-bg); border: 1px solid #fecaca; color: #991b1b; border-radius: var(--r-input); padding: 10px 13px; font-size: 13px; font-weight: 600; margin-bottom: 16px; display: none; }
.auth-err.show { display: block; }
.auth-step { display: none; }
.auth-step.on { display: block; }

/* 2FA kod kutuları */
.otp { display: flex; gap: 9px; margin: 6px 0 4px; }
.otp input {
  width: 100%; aspect-ratio: 1 / 1.15; text-align: center; font-size: 22px; font-weight: 800;
  color: var(--navy); border: 1px solid var(--line-strong); border-radius: 10px; background: #fff;
}
.otp input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(26, 32, 72, .09); }
.otp-meta { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 20px; font-size: 12.5px; color: var(--muted); }
.otp-meta button { background: none; border: none; color: var(--blue); font-weight: 700; font-size: 12.5px; cursor: pointer; padding: 0; }
.otp-meta button:disabled { color: var(--muted-2); cursor: default; }
.demo-note {
  margin-top: 22px; background: var(--surface-2); border: 1px solid var(--line);
  border-left: 3px solid var(--navy); border-radius: 10px; padding: 11px 13px;
  font-size: 12px; line-height: 1.6; color: var(--text-2);
}
.demo-note b { color: var(--navy); }

/* --------------------------------------------------------------- ANA PANEL */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1200px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
.dash-2col { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 1100px) { .dash-2col { grid-template-columns: 1fr; } }

/* Ana panel: aksiyon kartları dışındaki her kart TAM GENİŞLİK, alt alta. */
.dash-stack { display: flex; flex-direction: column; gap: 16px; }
.dash-stack > .card { width: 100%; }
/* geniş kartta yaş göstergesi dört sütuna yayılsın */
@media (min-width: 900px) { .agelegend { grid-template-columns: repeat(4, 1fr); } }
.dash-stack .flow { height: 168px; }

/* --- aksiyon kartları: her biri filtreli listeye götürür --- */
.act-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }
@media (max-width: 1250px) { .act-grid { grid-template-columns: repeat(2, 1fr); } }
.act-card {
  display: flex; align-items: center; gap: 13px; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 16px 18px; width: 100%; font: inherit; transition: border-color .14s, transform .14s;
}
.act-card:hover { border-color: var(--navy); transform: translateY(-1px); }
.act-card .ac-ic { width: 40px; height: 40px; border-radius: 11px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--surface-3); }
.act-card .ac-ic svg { width: 19px; height: 19px; color: var(--navy); }
.act-card .ac-body { flex: 1; min-width: 0; }
.act-card .ac-label { display: block; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted-2); }
.act-card .ac-value { display: block; font-size: 27px; font-weight: 800; color: var(--navy); line-height: 1.2; font-variant-numeric: tabular-nums; }
.act-card .ac-foot { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.act-card .ac-foot b.up { color: var(--green); } .act-card .ac-foot b.down { color: var(--red); }
.act-card .ac-go { color: var(--line-strong); flex: none; }
.act-card .ac-go svg { width: 17px; height: 17px; transform: rotate(-90deg); }
.act-card:hover .ac-go { color: var(--navy); }
.act-card.mine .ac-ic { background: #eef2ff; }
.act-card.warn .ac-ic { background: var(--amber-bg); }
.act-card.warn .ac-ic svg { color: var(--amber); }
.act-card.warn .ac-value { color: var(--amber); }

/* ------------------------------- ana panel üstü filtreler (çoklu seçim) */
.dash-filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ms { position: relative; }
.ms-btn {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-btn);
  font: inherit; cursor: pointer; min-width: 176px; text-align: left;
}
.ms-btn:hover { border-color: var(--navy); }
.ms-btn[aria-expanded="true"] { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(26, 32, 72, .08); }
.ms-label { font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-2); }
.ms-value { font-size: 13.5px; font-weight: 700; color: var(--navy); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-btn svg { width: 15px; height: 15px; color: var(--muted-2); flex: none; }
.ms-btn[aria-expanded="true"] svg { transform: rotate(180deg); }

.ms-pop {
  display: none; position: absolute; top: calc(100% + 6px); left: 0; z-index: 70;
  min-width: 262px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow-md); overflow: hidden;
}
.ms-list { max-height: 300px; overflow-y: auto; padding: 6px; }
/* seçim anında uygulanmaz — alt çubuktan onaylanır */
.ms-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 10px; border-top: 1px solid var(--line-soft); background: var(--surface-2); }
.ms.open .ms-pop { display: block; }
.ms-row { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 13px; color: var(--text-2); }
.ms-row:hover { background: var(--surface-3); }
.ms-row input { width: 16px; height: 16px; accent-color: var(--navy); cursor: pointer; flex: none; }
.ms-row .ms-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.ms-row span { flex: 1; }
.ms-row em { font-style: normal; font-size: 11.5px; color: var(--muted-2); }
.ms-row.ms-all { font-weight: 700; color: var(--navy); }
.ms-sep { height: 1px; background: var(--line-soft); margin: 4px 6px; }

/* --------------------------------------------------- Bölümler ekranı */
.sec-row {
  display: grid; grid-template-columns: 20px 1fr; gap: 4px 12px; align-items: center;
  padding: 12px 10px; border-radius: 10px; cursor: pointer;
}
.sec-row:hover { background: var(--surface-2); }
.sec-row input { width: 17px; height: 17px; accent-color: var(--navy); cursor: pointer; grid-row: span 2; }
.sec-name { font-size: 13.5px; font-weight: 700; color: var(--text); }
.sec-desc { grid-column: 2; font-size: 12.5px; color: var(--muted); }

/* değişiklik varsa çıkan sabit İptal/Kaydet çubuğu */
.save-bar {
  position: sticky; bottom: 16px; margin-top: 16px; display: none;
  align-items: center; gap: 12px; padding: 12px 16px; max-width: 760px;
  background: var(--navy); color: #fff; border-radius: var(--r-card); box-shadow: var(--shadow-md);
}
.save-bar.show { display: flex; }
.save-bar > span:first-child { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.save-bar svg { width: 16px; height: 16px; }
.save-bar .btn-outline { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); color: #fff; }
.save-bar .btn-outline:hover { background: rgba(255, 255, 255, .2); }
.save-bar .btn-primary { background: #fff; color: var(--navy); }
.save-bar .btn-primary:hover { background: #e9ecf7; }

/* KART İÇİ ŞERİTLER — tarih aralığı (range-nav), kip (mode-nav) ve kanal
   (chan-nav.sm) TEK biçimi paylaşır: aynı yükseklik, aynı yazı boyu, aynı
   zemin/kenarlık/gölge. Anlamları farklı ama kullanıcı bunları yan yana
   görüyor; farklı ölçüde olmaları kartta iki ayrı bileşen izlenimi
   veriyordu (03.08.2026). Ölçü değiştirirken ÜÇÜNÜ birlikte değiştir. */
.range-nav, .mode-nav, .chan-nav.sm {
  display: inline-flex; gap: 2px; flex: none;
  background: #f4f5f8; border: 1px solid var(--line);
  padding: 2px; border-radius: 8px;
  box-shadow: inset 0 1px 1px rgba(16, 24, 40, .035);
}
.range-nav button, .mode-nav button, .chan-nav.sm button {
  border: none; background: transparent; padding: 5px 11px; border-radius: 6px;
  font: inherit; font-size: 11.5px; font-weight: 700;
  color: var(--muted); cursor: pointer; white-space: nowrap;
}
.range-nav button:hover, .mode-nav button:hover { color: var(--navy); }
.range-nav button.on, .mode-nav button.on, .chan-nav.sm button.on {
  background: #fff; color: var(--navy);
  box-shadow: 0 1px 3px rgba(16, 24, 40, .16), 0 0 0 1px rgba(16, 24, 40, .04);
}
.card-head .range-nav, .card-head .mode-nav { margin-left: auto; }

.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-h h2 { margin: 0; }

/* --- bugünün akışı --- */
.flow { display: flex; align-items: flex-end; gap: 3px; height: 132px; }
.flow .fcol { flex: 1; min-width: 0; height: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.flow .fbar { width: 45%; border-radius: 3px 3px 0 0; min-height: 2px; }
.flow .fbar.in { background: var(--navy); }
.flow .fbar.out { background: #16a34a; }
.flow-axis { display: flex; gap: 3px; margin-top: 5px; }
.flow-axis span { flex: 1; text-align: center; font-size: 10px; color: var(--muted-2); }

/* --- açık işlerin yaşı --- */
.agebar { display: flex; height: 34px; border-radius: 9px; overflow: hidden; margin-bottom: 12px; }
/* Dilim iki biçimde basılır: <button> (tıklanır kip) ve <span> ('Tümü' kipi).
   Ortalamayı button'ın tarayıcı varsayılanına bırakmak yetmiyor — span'da
   sayı sola yapışıyordu. İkisinde de aynı görünsün diye açıkça verildi. */
.aseg {
  display: flex; align-items: center; justify-content: center;
  border: none; color: #fff; font-size: 12px; font-weight: 800; cursor: pointer;
  min-width: 24px; padding: 0 2px; overflow: hidden;
  font-variant-numeric: tabular-nums;
}
.aseg:hover { filter: brightness(1.12); }
.agelegend { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.alegend { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: none; background: none; border-radius: 8px; cursor: pointer; font-size: 12.5px; color: var(--text-2); text-align: left; }
.alegend:hover { background: var(--surface-3); }
.alegend i { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.alegend span { flex: 1; }
.alegend b { color: var(--navy); font-variant-numeric: tabular-nums; }

/* --- duygu --- */
.donut-row { display: flex; align-items: center; gap: 18px; }

/* Sentiment kartı: solda kompakt özet, sağda genişliği kullanan trend eğrisi.
   Halka kompakt bir biçim — tek başına tam genişlik kartı dolduramaz. */
.sent-row { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; align-items: center; }
@media (max-width: 900px) { .sent-row { grid-template-columns: 1fr; gap: 18px; } }
.sent-summary { display: flex; align-items: center; gap: 16px; }
.sent-summary .donut { width: 124px; height: 124px; }
.sent-summary .donut-legend { max-width: 160px; }

.sent-trend { min-width: 0; }
.st-head { display: flex; align-items: center; gap: 16px; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.st-k { display: inline-flex; align-items: center; gap: 6px; }
.st-k i { width: 12px; height: 3px; border-radius: 2px; display: inline-block; }
.st-k i.bar { background: var(--line-strong); height: 9px; width: 7px; border-radius: 2px; }
.st-k i.line { background: #dc2626; }

.st-plot { position: relative; height: 112px; }
.st-max { position: absolute; top: -2px; left: 0; font-size: 10.5px; color: var(--muted-2); z-index: 2; }
/* hacim şeridi: oran grafiğinin ALTINDA ince bir bant (finans grafiklerindeki gibi) */
.st-vol { display: flex; align-items: flex-end; gap: 2px; height: 26px; margin-top: 4px;
  padding-top: 3px; border-top: 1px solid var(--line-soft); }
.st-bar { flex: 1; background: #c7cdd9; border-radius: 2px 2px 0 0; min-height: 2px; }
.st-bar:hover { background: var(--navy-soft); }
.st-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.st-area { fill: rgba(220, 38, 38, .10); stroke: none; }
.st-line { fill: none; stroke: #dc2626; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.st-avg { stroke: var(--muted-2); stroke-width: 1; stroke-dasharray: 4 4; }
.st-hover { position: absolute; inset: 0; display: flex; }
.st-hover span { flex: 1; cursor: help; }
.st-hover span:hover { background: rgba(26, 32, 72, .05); }
.st-axis { display: flex; gap: 2px; margin-top: 5px; }
.st-axis span { flex: 1; text-align: center; font-size: 10px; color: var(--muted-2); }
.donut { width: 132px; height: 132px; flex: none; }
.donut-v { font-size: 26px; font-weight: 800; fill: var(--navy); }
.donut-l { font-size: 11px; fill: var(--muted); }
.donut-legend { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.dl { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border: none; background: none; border-radius: 8px; cursor: pointer; font-size: 13px; color: var(--text-2); text-align: left; }
.dl:hover { background: var(--surface-3); }
.dl i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.dl span { flex: 1; }
.dl b { color: var(--navy); font-variant-numeric: tabular-nums; }
.warn-hint { margin-top: 12px; background: var(--amber-bg); border: 1px solid #fde68a; border-radius: 9px; padding: 9px 12px; color: #92400e; display: flex; align-items: center; gap: 7px; }
.warn-hint svg { width: 15px; height: 15px; flex: none; }
/* DM erişim uyarısı birden çok hesabı sayabildiği için tek satıra sığmaz:
   ikon üstte kalsın, metin alta akabilsin. */
.dm-warn { align-items: flex-start; margin: 0 0 14px; }
.dm-warn svg { margin-top: 2px; }
.dm-warn .hint { color: #92400e; opacity: .9; margin-top: 3px; }

/* --- hesap dağılımı --- */
.acc-row { display: flex; align-items: center; gap: 11px; padding: 7px 0; }
.acc-name { display: flex; align-items: center; gap: 7px; width: 152px; flex: none; border: none; background: none; cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--text-2); padding: 3px 5px; border-radius: 7px; text-align: left; }
.acc-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-name:hover { background: var(--surface-3); color: var(--navy); }
.acc-track { flex: 1; display: flex; height: 20px; background: var(--surface-3); border-radius: 6px; overflow: hidden; }
.acc-track .seg { display: block; height: 100%; }
.acc-track .seg.org { background: var(--navy); }
.acc-track .seg.ad { background: #7c3aed; }
.acc-val { width: 38px; text-align: right; font-size: 12.5px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.acc-open { width: 36px; text-align: right; }

/* --- yoğun gönderiler --- */
.tp-list { display: flex; flex-direction: column; }
.tp-item { display: flex; gap: 12px; align-items: center; padding: 12px 20px; border: none; border-bottom: 1px solid var(--line-soft); background: none; cursor: pointer; text-align: left; width: 100%; }
.tp-item:last-child { border-bottom: none; }
.tp-item:hover { background: var(--surface-2); }
.tp-thumb { width: 40px; height: 40px; border-radius: 9px; flex: none; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 9px; font-weight: 800; }
.tp-body { flex: 1; min-width: 0; }
.tp-cap { display: block; font-size: 13px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-meta { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 11.5px; color: var(--muted); flex-wrap: wrap; }
.tp-nums { display: flex; align-items: center; gap: 7px; flex: none; }
.tp-nums b { font-size: 15px; color: var(--navy); font-variant-numeric: tabular-nums; }

/* --- ekip yükü --- */
.team-row { display: flex; align-items: center; gap: 11px; padding: 7px 0; }
.team-name { width: 108px; flex: none; font-size: 13px; font-weight: 600; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-track { flex: 1; height: 18px; background: var(--surface-3); border-radius: 6px; overflow: hidden; }
.team-track i { display: block; height: 100%; background: var(--navy-soft); border-radius: 6px; }
.team-val { width: 34px; text-align: right; font-size: 13px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.team-avg { width: 60px; text-align: right; font-size: 12px; color: var(--muted); }

/* --- gelen kutusu: derin filtre çipleri + liste sınırı --- */
.deep-filters { display: none; align-items: center; gap: 8px; flex-wrap: wrap; }
.deep-chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 8px 5px 12px; background: #eef2ff; border: 1px solid #d7defc; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 700; color: var(--navy); }
.deep-chip button { background: none; border: none; color: #6b7fd7; cursor: pointer; font-size: 15px; line-height: 1; padding: 0 2px; }
.deep-chip button:hover { color: var(--red); }
.list-capped { padding: 12px 14px; text-align: center; font-size: 12.5px; color: var(--muted); background: var(--surface-2); border-top: 1px solid var(--line-soft); }

.sysrow { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.sysrow:last-child { border-bottom: none; }
.sysrow .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--green); }
.sysrow .dot.warn { background: var(--amber); }
.sysrow .dot.off { background: var(--muted-2); }
.sysrow .lbl { color: var(--text-2); font-weight: 600; }
.sysrow .val { margin-left: auto; color: var(--muted); font-size: 12.5px; }

.quota { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.quota:last-child { border-bottom: none; }
.quota .qtop { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 7px; }
.quota .qname { font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.quota .qval { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

.feed-item { display: flex; gap: 11px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.feed-item:last-child { border-bottom: none; }
.feed-item .fdot { width: 26px; height: 26px; border-radius: 8px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--surface-3); }
.feed-item .fdot svg { width: 13px; height: 13px; color: var(--muted); }
.feed-item .ftext { font-size: 13px; line-height: 1.5; color: var(--text-2); }
.feed-item .ftext b { color: var(--navy); font-weight: 700; }
.feed-item .ftime { font-size: 11.5px; color: var(--muted-2); margin-top: 2px; }

/* split bar (organik / reklam) */
.splitbar { display: flex; height: 30px; border-radius: 8px; overflow: hidden; margin: 4px 0 12px; }
.splitbar > i { display: flex; align-items: center; justify-content: center; font-size: 11.5px; font-weight: 800; color: #fff; }
.splitbar .organic { background: var(--navy); }
.splitbar .ads { background: #7c3aed; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* ------------------------------------------------------------ GELEN KUTUSU */
.inbox-toolbar {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 12px 14px; display: flex; flex-direction: column; gap: 11px; margin-bottom: 14px;
}
.inbox-toolbar .line { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }

.tabs { display: flex; gap: 3px; background: var(--surface-3); padding: 3px; border-radius: 10px; }
.tabs button {
  border: none; background: transparent; padding: 7px 14px; border-radius: 8px;
  font-size: 12.5px; font-weight: 700; color: var(--muted); cursor: pointer; white-space: nowrap;
}
.tabs button.on { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
.tabs button .n { font-variant-numeric: tabular-nums; opacity: .7; margin-left: 4px; }

.inbox-split { display: grid; grid-template-columns: minmax(340px, 430px) minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 1100px) { .inbox-split { grid-template-columns: 1fr; } }

.list-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.list-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); background: var(--surface-2); font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.list-scroll { max-height: calc(100vh - 300px); overflow-y: auto; }

.c-item { display: flex; gap: 11px; padding: 13px 14px; border-bottom: 1px solid var(--line-soft); cursor: pointer; position: relative; }
.c-item:last-child { border-bottom: none; }
.c-item:hover { background: var(--surface-2); }
.c-item.on { background: #f5f7ff; }
.c-item.on::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--navy); }
.c-item.unread .c-text { font-weight: 600; color: var(--text); }
.c-item input[type=checkbox] { margin-top: 3px; width: 15px; height: 15px; flex: none; cursor: pointer; accent-color: var(--navy); }
.c-main { flex: 1; min-width: 0; }
.c-top { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; }
.c-author { font-size: 13px; font-weight: 700; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-time { margin-left: auto; font-size: 11.5px; color: var(--muted-2); flex: none; }
.c-text { font-size: 13px; line-height: 1.5; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.c-foot { display: flex; align-items: center; gap: 6px; margin-top: 7px; flex-wrap: wrap; }
.c-acct { font-size: 11.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.sent-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.sent-dot.neg { background: var(--red); }
.sent-dot.neu { background: var(--muted-2); }
.sent-dot.pos { background: var(--green); }

.bulk-bar {
  display: none; align-items: center; gap: 10px; padding: 10px 14px;
  background: var(--navy); color: #fff; font-size: 13px; font-weight: 600;
}
.bulk-bar.show { display: flex; }
.bulk-bar .btn { padding: 6px 12px; font-size: 12.5px; }
.bulk-bar .btn-outline { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); color: #fff; }
.bulk-bar .btn-outline:hover { background: rgba(255, 255, 255, .2); }

/* --- detay --- */
.detail-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; position: sticky; top: calc(var(--topbar-h) + 16px); }
.post-ctx { display: flex; gap: 13px; padding: 15px 18px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.post-thumb {
  width: 62px; height: 62px; border-radius: 10px; flex: none; display: flex;
  align-items: center; justify-content: center; color: #fff; font-size: 10px; font-weight: 800;
  text-align: center; padding: 5px; line-height: 1.25; border: 1px solid var(--line);
}

/* Gerçek gönderi görseli, tür etiketinin ÜSTÜNE oturur. Görsel yüklenemezse
   kendini kaldırıyor (ui.js postThumb) ve altındaki etiket ortaya çıkıyor —
   bu yüzden etiket silinmiyor, örtülüyor. */
.post-thumb, .tp-thumb { position: relative; overflow: hidden; }
.post-thumb > img, .tp-thumb > img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.post-meta { flex: 1; min-width: 0; }
.post-cap { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-sub { font-size: 12px; color: var(--muted); margin-top: 5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.d-body { padding: 18px; }
.d-comment { display: flex; gap: 12px; }
.d-comment .body { flex: 1; min-width: 0; }
.d-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.d-author { font-size: 14px; font-weight: 800; color: var(--navy); }
.d-handle { font-size: 12.5px; color: var(--muted); }
.d-text { font-size: 14.5px; line-height: 1.62; color: var(--text); white-space: pre-wrap; word-break: break-word; }
.d-stats { display: flex; gap: 14px; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.d-stats span { display: inline-flex; align-items: center; gap: 5px; }
.d-stats svg { width: 14px; height: 14px; }

.flagbox { margin-top: 13px; background: var(--amber-bg); border: 1px solid #fde68a; border-radius: 10px; padding: 10px 13px; font-size: 12.5px; color: #92400e; line-height: 1.55; }
.flagbox b { font-weight: 800; }

.d-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: var(--surface-2); }
.act { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-btn); background: #fff; font-size: 13px; font-weight: 700; color: var(--text-2); cursor: pointer; }
.act svg { width: 15px; height: 15px; }
.act:hover:not(:disabled) { background: var(--surface-3); border-color: var(--navy); }
.act.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.act.primary:hover:not(:disabled) { background: var(--navy-600); }
.act.danger { color: var(--red); border-color: #f1c4c4; }
.act.danger:hover:not(:disabled) { background: var(--red-bg); border-color: var(--red); }
.act:disabled { opacity: .4; cursor: not-allowed; }
.act.on { background: var(--navy); border-color: var(--navy); color: #fff; }

.d-tabs { display: flex; gap: 18px; padding: 0 18px; border-bottom: 1px solid var(--line-soft); }
.d-tabs button { background: none; border: none; padding: 12px 0; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.d-tabs button.on { color: var(--navy); border-bottom-color: var(--navy); }
/* sekme satırının sağındaki eylem düğmesi (şablon yönetimi) */
.d-tabs-action {
  margin-left: auto; align-self: center; display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff;
  font-size: 12.5px; font-weight: 700; color: var(--text-2); cursor: pointer;
}
.d-tabs-action svg { width: 14px; height: 14px; }
.d-tabs-action:hover { background: var(--surface-3); border-color: var(--navy); color: var(--navy); }

.d-pane { padding: 16px 18px; display: none; }
.d-pane.on { display: block; }

.reply-box textarea { width: 100%; min-height: 92px; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: var(--r-input); font-size: 13.5px; line-height: 1.55; resize: vertical; }
.reply-box textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(26, 32, 72, .09); }
.reply-foot { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.canned { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.canned button { padding: 5px 12px; border: 1px dashed var(--line-strong); border-radius: var(--r-pill); background: #fff; font-size: 12.5px; font-weight: 600; color: var(--text-2); cursor: pointer; }
.canned button:hover { border-style: solid; border-color: var(--navy); color: var(--navy); background: #f5f7ff; }

/* şablon düzenleme penceresi */
.tpl-row { border: 1px solid var(--line); border-radius: 11px; padding: 11px 12px; margin-bottom: 10px; background: #fff; }
.tpl-row.short { border-left: 3px solid var(--navy); }
.tpl-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.tpl-name { flex: 1; min-width: 0; padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: 8px; font-size: 13.5px; font-weight: 700; color: var(--navy); }
.tpl-name:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(26, 32, 72, .09); }
.tpl-row textarea { width: 100%; min-height: 62px; padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: 8px; font-size: 13px; line-height: 1.55; resize: vertical; color: var(--text-2); }
.tpl-row textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(26, 32, 72, .09); }
.tpl-head .icon-btn { width: 28px; height: 28px; flex: none; }
.tpl-use { flex: none; padding: 6px 11px; }
.tpl-use:hover { border-color: var(--navy); color: var(--navy); background: #f5f7ff; }

/* gönderilmiş yanıtlar (thread) */
.thread { margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line-soft); }
.thread-item { border-left: 2px solid var(--navy); background: var(--surface-2); border-radius: 0 10px 10px 0; padding: 10px 13px; margin-bottom: 8px; }
.thread-item:last-child { margin-bottom: 0; }
.thread-head { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.thread-head b { color: var(--navy); font-size: 12.5px; }
.thread-body { font-size: 13.5px; line-height: 1.55; color: var(--text-2); white-space: pre-wrap; }

.note-item { padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.note-item:last-child { border-bottom: none; }
.note-head { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.note-head b { color: var(--navy); font-size: 12.5px; }
.note-body { font-size: 13.5px; line-height: 1.55; color: var(--text-2); }

.hist { position: relative; padding-left: 22px; }
.hist::before { content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.hist-item { position: relative; padding: 8px 0; }
.hist-item::before { content: ''; position: absolute; left: -19px; top: 14px; width: 9px; height: 9px; border-radius: 50%; background: #fff; border: 2px solid var(--navy-soft); }
.hist-text { font-size: 13px; color: var(--text-2); line-height: 1.5; }
.hist-text b { color: var(--navy); font-weight: 700; }
.hist-time { font-size: 11.5px; color: var(--muted-2); margin-top: 2px; }

/* ---------------------------------------------------------- MODERASYON */
.mod-2col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 16px; align-items: start; }
@media (max-width: 1100px) { .mod-2col { grid-template-columns: 1fr; } }

.word-input { display: flex; gap: 9px; margin-bottom: 14px; }
.word-list { display: flex; flex-wrap: wrap; gap: 8px; }
.word {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 8px 6px 13px;
  background: var(--surface-3); border: 1px solid var(--line); border-radius: var(--r-pill);
  font-size: 13px; font-weight: 600; color: var(--text-2);
}
.word button { background: none; border: none; color: var(--muted-2); cursor: pointer; font-size: 15px; line-height: 1; padding: 0 2px; }
.word button:hover { color: var(--red); }
.word.hard { background: var(--red-bg); border-color: #fecaca; color: #991b1b; }

.rule { display: flex; align-items: flex-start; gap: 13px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.rule:last-child { border-bottom: none; }
.rule .rbody { flex: 1; }
.rule .rname { font-size: 13.5px; font-weight: 700; color: var(--text); }
.rule .rdesc { font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.55; }
.rule .rextra { margin-top: 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rule input[type=time] { padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: 8px; font-size: 13px; }

.tester { background: var(--surface-2); border: 1px dashed var(--line-strong); border-radius: 12px; padding: 14px; }
.tester textarea { width: 100%; min-height: 68px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-input); font-size: 13.5px; resize: vertical; }
.test-result { margin-top: 11px; font-size: 13px; font-weight: 700; padding: 10px 13px; border-radius: 10px; display: none; }
.test-result.show { display: block; }
.test-result.pass { background: var(--green-bg); color: #15803d; }
.test-result.block { background: var(--red-bg); color: #991b1b; }

/* ------------------------------------------------------------- RAPORLAR */
.rep-filters { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.rep-filters .field { margin-bottom: 0; }
.rep-filters .field > label { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted-2); }
.rep-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1100px) { .rep-grid { grid-template-columns: 1fr; } }

.bar-row { display: flex; align-items: center; gap: 11px; padding: 8px 0; }
.bar-row .bname { width: 130px; flex: none; font-size: 13px; font-weight: 600; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-row .btrack { flex: 1; height: 22px; background: var(--surface-3); border-radius: 6px; overflow: hidden; }
.bar-row .bfill { height: 100%; background: var(--navy); border-radius: 6px; }
.bar-row .bval { width: 46px; flex: none; text-align: right; font-size: 13px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------- SIKIŞIK LİSTE (ayarlar) */
body.compact .c-item { padding: 9px 14px; }
body.compact .c-text { -webkit-line-clamp: 1; }
body.compact .c-foot { margin-top: 5px; }
body.compact .table td { padding: 8px 14px; }
body.compact .feed-item { padding: 8px 0; }
body.compact .kpi { padding: 14px 18px; }
body.compact .kpi .value { font-size: 26px; }

/* ==================================================== FAZ 2: MESAJLAR (DM) */
.dm-quota { display: flex; align-items: center; gap: 9px; font-size: 12.5px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 7px 14px; }
.dm-quota b { color: var(--navy); font-variant-numeric: tabular-nums; }

.dm-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.dm-who b { display: block; font-size: 14.5px; color: var(--navy); }
.dm-who span { font-size: 12.5px; color: var(--muted); }

.dm-thread { padding: 18px; display: flex; flex-direction: column; gap: 10px; max-height: 46vh; overflow-y: auto; background: #fbfcfe; }
.bub { max-width: 76%; padding: 10px 14px; border-radius: 14px; }
.bub.in { align-self: flex-start; background: var(--surface-3); border-bottom-left-radius: 4px; }
.bub.out { align-self: flex-end; background: var(--navy); border-bottom-right-radius: 4px; }
.bub-text { font-size: 13.5px; line-height: 1.55; color: var(--text); white-space: pre-wrap; }
.bub.out .bub-text { color: #fff; }
.bub-meta { font-size: 11px; color: var(--muted-2); margin-top: 5px; }
.bub.out .bub-meta { color: rgba(255, 255, 255, .6); }
.bub.out .bub-meta .badge { background: rgba(255, 255, 255, .18); color: #fff; }

.dm-compose { padding: 16px 18px; }
.dm-compose textarea { width: 100%; min-height: 86px; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: var(--r-input); font-size: 13.5px; line-height: 1.55; resize: vertical; }
.dm-compose textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(26, 32, 72, .09); }

.dm-warn, .dm-blocked { display: flex; gap: 11px; padding: 13px 18px; align-items: flex-start; }
.dm-warn { background: var(--amber-bg); border-top: 1px solid #fde68a; border-bottom: 1px solid #fde68a; color: #92400e; }
.dm-blocked { background: var(--red-bg); border-top: 1px solid #fecaca; color: #991b1b; }
.dm-warn svg, .dm-blocked svg { width: 17px; height: 17px; flex: none; margin-top: 2px; }
.dm-warn b, .dm-blocked b { display: block; font-size: 13.5px; margin-bottom: 3px; }
.dm-warn p, .dm-blocked p { font-size: 12.5px; line-height: 1.55; margin: 0; }

/* =============================================== FAZ 2: İÇERİK PAYLAŞMA */
.pub-list { display: flex; flex-direction: column; }
.pub-item { display: flex; gap: 14px; padding: 15px 20px; border-bottom: 1px solid var(--line-soft); }
.pub-item:last-child { border-bottom: none; }
.pub-thumb { width: 52px; height: 52px; border-radius: 10px; flex: none; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 10px; font-weight: 800; }
.pub-body { flex: 1; min-width: 0; }
.pub-cap { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.4; }
.pub-meta { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.pub-note { margin-top: 8px; font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.pub-note.danger { color: #991b1b; }
.pub-note svg { width: 14px; height: 14px; flex: none; }
.pub-side { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; flex: none; }
.pub-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* takvim */
.cal-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.cal-head b { font-size: 15px; color: var(--navy); min-width: 132px; text-align: center; }
.cal-dow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 6px; }
.cal-dow span { font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-2); text-align: center; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-cell { min-height: 96px; border: 1px solid var(--line); border-radius: 10px; padding: 6px; display: flex; flex-direction: column; gap: 4px; background: #fff; }
.cal-cell.empty { border: none; background: none; }
.cal-cell.today { border-color: var(--navy); box-shadow: 0 0 0 2px rgba(26, 32, 72, .08); }
.cal-day { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.cal-item { display: flex; align-items: center; gap: 5px; border: none; background: var(--surface-3); border-radius: 6px; padding: 3px 5px; cursor: pointer; text-align: left; width: 100%; }
.cal-item i { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.cal-item span { font-size: 10.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-item:hover { background: #eef2ff; }
.cal-item.pending { background: var(--amber-bg); }
.cal-item.scheduled { background: var(--blue-bg); }
.cal-item.published { background: var(--green-bg); }
.cal-more { font-size: 10.5px; color: var(--muted-2); padding-left: 4px; }

/* iki adımlı yayınlama */
.pubstep { display: flex; align-items: flex-start; gap: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; margin-bottom: 10px; }
.pubstep .ps-n { width: 24px; height: 24px; border-radius: 50%; background: var(--surface-3); color: var(--muted); font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex: none; }
.pubstep b { display: block; font-size: 12.5px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--navy); }
.pubstep p { font-size: 12.5px; color: var(--muted); margin: 3px 0 0; }
.pubstep .ps-state { margin-left: auto; flex: none; }
.pubstep .ps-state svg { width: 17px; height: 17px; }
.pubstep.run { border-color: var(--navy); background: #f5f7ff; }
.pubstep.run .ps-n { background: var(--navy); color: #fff; }
.pubstep.ok { border-color: #bbf7d0; background: var(--green-bg); }
.pubstep.ok .ps-n { background: var(--green); color: #fff; }
.pubstep.ok .ps-state { color: var(--green); }
.pubstep.err { border-color: #fecaca; background: var(--red-bg); }
.pubstep.err .ps-state { color: var(--red); }

/* ------------------------------------------------------- OAuth akışı */
.oa-platforms { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.oa-platform {
  display: flex; align-items: center; gap: 11px; padding: 14px 16px;
  border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
  font-size: 14px; font-weight: 700; color: var(--text); cursor: pointer;
}
.oa-platform:hover { border-color: var(--navy); }
.oa-platform.on { border-color: var(--navy); background: #f5f7ff; box-shadow: 0 0 0 3px rgba(26, 32, 72, .07); }

.oa-consent { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.oa-consent-head { display: flex; align-items: center; gap: 9px; padding: 12px 15px; background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: 14px; color: var(--navy); }
.oa-consent-head svg { width: 15px; height: 15px; }
.oa-perms { list-style: none; padding: 10px 15px; margin: 0; }
.oa-perms li { display: flex; align-items: center; gap: 9px; padding: 6px 0; font-size: 13px; color: var(--text-2); }
.oa-perms svg { width: 14px; height: 14px; color: var(--green); flex: none; }
.oa-perms code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; color: var(--navy); }

.oa-pages { display: flex; flex-direction: column; gap: 8px; }
.oa-page { display: flex; align-items: center; gap: 11px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 11px; cursor: pointer; }
.oa-page:hover { border-color: var(--navy); }
.oa-page.on { border-color: var(--navy); background: #f5f7ff; }
.oa-page input { accent-color: var(--navy); }
.oa-page b { display: block; font-size: 13.5px; color: var(--text); }
.oa-page .muted { font-size: 12px; }

/* Grid çocukları varsayılan olarak min-width:auto'dur; içindeki tablo kaymak yerine
   kabı şişirir ve sayfa yatay taşar. Tüm iki kolonlu düzenlerde sıfırlanmalı. */
.dash-2col > *, .rep-grid > *, .mod-2col > *, .inbox-split > * { min-width: 0; }
.table-wrap { max-width: 100%; }

/* ------------------------------------------------------- DAR EKRAN */
@media (max-width: 860px) {
  .top-bar { padding: 0 12px; gap: 10px; }
  .top-bar-sep, .mode-badge { display: none; }
  .user-chip .who { display: none; }
  .main { padding: 16px 14px 44px; }
  .page-head { flex-direction: column; align-items: stretch; gap: 12px; }
  .page-title { font-size: 18px; }
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi .value { font-size: 24px; }
  .menu-pop, .menu-pop.wide { right: 8px; left: 8px; min-width: 0; }
  .inbox-toolbar .line { gap: 7px; }
  /* sekmeler dar ekranda sığmaz — kabı şişirmek yerine yatay kaysın */
  .tabs { overflow-x: auto; max-width: 100%; }
  .tabs button { padding: 7px 10px; font-size: 12px; flex: none; }
  .act-card { padding: 13px 14px; gap: 11px; }
  .act-card .ac-value { font-size: 23px; }
  .list-scroll { max-height: none; }
  .detail-card { position: static; }
  .d-actions { gap: 6px; }
  .act { padding: 7px 11px; font-size: 12.5px; }
  .modal { padding: 10px; }
  .set-tabs { gap: 12px; overflow-x: auto; }
  .set-row { flex-direction: column; align-items: stretch; gap: 9px; }
  .set-row .sctrl { width: 100%; }
  .set-row select, .set-row input { width: 100%; min-width: 0; }
  .oa-platforms { grid-template-columns: 1fr; }
  .rep-filters { width: 100%; }
}
@media (max-width: 560px) {
  .kpi-grid, .act-grid { grid-template-columns: 1fr; }
  .agelegend { grid-template-columns: 1fr; }
  .donut-row { flex-direction: column; align-items: stretch; }
  .donut { align-self: center; }
  .acc-name { width: 118px; }
  .lang-switch { display: none; }
}

/* mini sütun grafik */
/* dar ekranda sütunlar min-content'in altına inemez → kabı şişirir; kaydırılabilir olmalı */
.spark { display: flex; align-items: flex-end; gap: 5px; height: 110px; padding: 8px 0 4px; overflow-x: auto; }
.spark .col { flex: 1 0 26px; min-width: 26px; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.spark .bar { width: 100%; background: var(--navy); border-radius: 5px 5px 0 0; min-height: 3px; }
.spark .bar.ad { background: #7c3aed; }
.spark .lab { font-size: 10.5px; color: var(--muted-2); font-weight: 600; }

/* ================================================ YENİ GÖNDERİ BESTECİSİ
   Sol sütun form (mecra → hesap → tür → medya → açıklama → zaman → kısıtlar),
   sağ sütun canlı önizleme. Önizleme sabit kalır, form kaydırılır. */
.np-box { width: min(1040px, 96vw); }
.np-split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.np-form { min-width: 0; }
.np-form .field:last-of-type { margin-bottom: 14px; }

.np-preview { position: sticky; top: 0; min-width: 0; }
.np-pv-head { margin-bottom: 10px; }
.np-pv-head b { display: block; font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.np-pv-head span { font-size: 11.5px; color: var(--muted); }

/* ---- dosya yükleme ---- */
.np-drop {
  border: 1.5px dashed var(--line-strong); border-radius: 12px; background: var(--surface-2);
  padding: 20px 16px; text-align: center; cursor: pointer; transition: border-color .14s, background .14s;
}
.np-drop:hover, .np-drop.over { border-color: var(--navy); background: #f5f7ff; }
.np-drop svg { width: 20px; height: 20px; color: var(--muted-2); display: block; margin: 0 auto 6px; }
.np-drop b { display: block; font-size: 13px; font-weight: 700; color: var(--text-2); }
.np-drop span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 3px; }

.np-files { display: flex; flex-direction: column; gap: 7px; margin-top: 9px; }
.np-file { display: flex; align-items: center; gap: 10px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 10px; }
.np-file img, .np-file video { width: 40px; height: 40px; object-fit: cover; border-radius: 7px; flex: none; background: var(--surface-3); }
.np-file-meta { flex: 1; min-width: 0; }
.np-file-meta b { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-file-meta span { font-size: 11px; color: var(--muted); }

/* kısıt listesi canlı: sağlanmayan madde kırmızı */
#npLimits li.bad { color: var(--red); }
#npLimits li.bad svg { color: var(--red); }

/* ---- önizleme kartı ---- */
.pv { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.pv-top { display: flex; align-items: center; gap: 9px; padding: 9px 11px; }
.pv-av {
  width: 30px; height: 30px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center;
  background: var(--surface-3); color: var(--navy); font-size: 11px; font-weight: 800;
}
.pv-av.ring { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #c13584; }
.pv-av.sq { border-radius: 9px; }
.pv-who { flex: 1; min-width: 0; line-height: 1.3; }
.pv-who b { display: block; font-size: 12.5px; font-weight: 700; color: var(--text); }
.pv-who span { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); }
.pv-who svg { width: 11px; height: 11px; }
.pv-more { color: var(--muted-2); font-size: 15px; letter-spacing: 1px; }

.pv-media { position: relative; background: var(--surface-3); overflow: hidden; }
/* Tarayıcının kendi resim-sürüklemesi kapalı: açık kalırsa kaydırma jesti
   dragstart'a dönüşüyor ve pointerup hiç gelmiyor (karusel kaydırılamıyordu). */
.pv-media img, .pv-media video { width: 100%; height: 100%; object-fit: cover; display: block;
  -webkit-user-drag: none; user-select: none; }
.pv-media { touch-action: pan-y; }
.pv-1x1 { aspect-ratio: 1 / 1; }
.pv-16x9 { aspect-ratio: 16 / 9; }
.pv-9x16 { aspect-ratio: 9 / 16; }

/* Kutu görselin KENDİ oranını aldığında sınıf oranı geçersiz olmalı; yoksa
   satır içi aspect-ratio ile çakışır ve görsel yine kırpılır. */
.pv-media.pv-aspect { aspect-ratio: auto; }
.pv-media.pv-aspect img, .pv-media.pv-aspect video { object-fit: contain; }

/* Sabit çerçeve (hikâye/reels): görsel SIĞDIRILIR, kırpılmaz — kullanıcı
   mecrada oluşacak boşluğu önizlemede de görsün. */
.pv-media.pv-fit img, .pv-media.pv-fit video { object-fit: contain; background: #111; }

/* Kırpma araç çubuğundaki hazır oran düğmeleri. Etiket düğmelerden ayrışsın
   diye soluk ve küçük; düğmeler dar olduğu için sabit genişlik verilmiyor
   (1.91:1 en uzun metin). */
.crop-preset-label { font-size: 12px; color: var(--muted); font-weight: 600; margin-right: 2px; }
.crop-preset { font-variant-numeric: tabular-nums; }

/* Boşluk rengi seçimi: renk KUTUCUĞUN KENDİSİ olsun ki seçim metinle değil
   gözle yapılsın. Beyaz kutucuk beyaz zeminde kaybolmasın diye çerçeveli. */
.crop-fill {
  width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--line);
  cursor: pointer; padding: 0; flex: none;
}
.crop-fill.on { outline: 2px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
.pv-empty {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; color: var(--muted-2); font-size: 12px;
}
.pv-empty svg { width: 20px; height: 20px; }

.pv-dots { position: absolute; left: 0; right: 0; bottom: 9px; display: flex; justify-content: center; gap: 4px; }
.pv-dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, .55); }
.pv-dots i.on { background: #fff; }
.pv-count {
  position: absolute; top: 9px; right: 9px; padding: 2px 8px; border-radius: var(--r-pill);
  background: rgba(0, 0, 0, .55); color: #fff; font-size: 11px; font-weight: 700;
}

.pv-acts { display: flex; align-items: center; gap: 12px; padding: 9px 11px 4px; }
.pv-acts svg { width: 19px; height: 19px; color: var(--text); }
.pv-acts .pv-sp { flex: 1; }
.pv-cap { padding: 4px 11px 12px; font-size: 12.5px; line-height: 1.45; color: var(--text); }
.pv-cap b { font-weight: 700; }
.pv-cap.pv-dim { color: var(--muted-2); }
.pv-fb .pv-cap { padding: 2px 11px 10px; }

.pv-bar { display: flex; border-top: 1px solid var(--line-soft); }
.pv-bar span { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 0; font-size: 12px; font-weight: 600; color: var(--muted); }
.pv-bar svg { width: 15px; height: 15px; }

/* hikâye / reels: tam ekran dikey, örtüler medyanın üstünde */
.pv-vert { border: none; border-radius: 14px; }
.pv-vert .pv-media { border-radius: 14px; background: #111; }
.pv-vtop { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 8px; padding: 11px;
  background: linear-gradient(180deg, rgba(0, 0, 0, .55), transparent); color: #fff; }
.pv-vtop b { font-size: 12.5px; font-weight: 700; }
.pv-vtime { font-size: 11px; color: rgba(255, 255, 255, .75); }
.pv-vcap { position: absolute; left: 11px; right: 11px; bottom: 14px; color: #fff; font-size: 12.5px; line-height: 1.4;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.pv-vcap.pv-dim { color: rgba(255, 255, 255, .65); }
.pv-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.pv-play svg { width: 40px; height: 40px; color: rgba(255, 255, 255, .9); }

/* listede yüklenen görselin küçük resmi */
.pub-thumb.img { padding: 0; overflow: hidden; }
.pub-thumb.img img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 860px) {
  .np-split { grid-template-columns: 1fr; }
  .np-preview { position: static; max-width: 340px; }
}

/* ---- Kırp / Ölçekle (Cropper.js) — Kabine/Analiz'deki araç çubuğunun eşi ---- */
.crop-modal { z-index: 1100; }            /* besteci modalının üstünde açılır */
.crop-modal .modal-head { gap: 10px; }
.crop-note { font-size: 12px; font-weight: 600; color: var(--muted); margin-right: auto; }
.crop-body { padding: 0; background: #111; }
.crop-stage { height: min(58vh, 520px); }
.crop-stage img { max-width: 100%; display: block; }
.crop-tools {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  padding: 11px 20px; border-top: 1px solid var(--line-soft); background: var(--surface-2);
}
.crop-tools .csep { width: 1px; height: 20px; background: var(--line); margin: 0 3px; }
.crop-tools .btn.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.crop-tools .btn.on svg { color: #fff; }

/* kırpılmış görsel rozeti + kırp düğmesi dosya satırında */
.np-file .btn-sm { flex: none; }
.np-file .btn-sm svg { width: 14px; height: 14px; }

/* yayınlama izni bilgisi */
.np-perm { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.np-perm-row { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; line-height: 1.5; color: var(--amber); }
.np-perm-row.ok { color: var(--green); }
.np-perm-row svg { width: 14px; height: 14px; flex: none; margin-top: 2px; }
.np-perm-row b { color: var(--text-2); }
.np-perm-row code { font-size: 11.5px; background: var(--surface-3); padding: 1px 5px; border-radius: 4px; color: var(--navy); }
.np-perm-note { font-size: 11.5px; color: var(--muted); margin-top: 5px; padding-left: 22px; line-height: 1.5; }

/* ---- karusel önizlemesi gezilebilir ---- */
.pv-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 26px; height: 26px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255, 255, 255, .9); color: #262626; font-size: 17px; line-height: 1;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
}
.pv-nav.prev { left: 8px; }
.pv-nav.next { right: 8px; }
.pv-nav:disabled { opacity: 0; pointer-events: none; }
.pv-dots i { cursor: pointer; transition: transform .12s; }
.pv-dots i:hover { transform: scale(1.4); }

/* OAuth adım 2: Instagram seçilince neden Facebook'a gidildiğinin gerekçesi */
.oa-why {
  display: flex; gap: 8px; align-items: flex-start;
  background: var(--amber-bg); border: 1px solid #fde68a; border-radius: 10px;
  padding: 10px 12px; margin-bottom: 14px; line-height: 1.55;
}
.oa-why svg { width: 15px; height: 15px; color: var(--amber); flex: none; margin-top: 1px; }

/* OAuth adım 2: Instagram'ın iki yetkilendirme yolu */
.oa-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
@media (max-width: 560px) { .oa-methods { grid-template-columns: 1fr; } }
.oa-method {
  display: flex; align-items: flex-start; gap: 10px; text-align: left; cursor: pointer;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 12px 13px; font: inherit; transition: border-color .14s, background .14s;
}
.oa-method:hover { border-color: var(--line-strong); }
.oa-method.on { border-color: var(--navy); background: #f5f7ff; }
.oa-method svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--muted); }
.oa-method.on svg { color: var(--navy); }
.oa-method b { display: block; font-size: 13px; font-weight: 700; color: var(--text-2); }
.oa-method em { display: block; font-style: normal; font-size: 11.5px; color: var(--muted); line-height: 1.5; margin-top: 3px; }

/* ---- sayfa üstü KANAL seçici (Tümü / Yorum / Mesaj) ---- */
.chan-nav {
  display: inline-flex; background: #f4f5f8; border: 1px solid var(--line);
  border-radius: var(--r-btn); padding: 3px; gap: 2px;
  box-shadow: inset 0 1px 1px rgba(16, 24, 40, .035);
}
.chan-nav button {
  border: none; background: transparent; color: var(--muted); cursor: pointer;
  /* dikey dolgu 6px: şerit, yanındaki filtre açılırlarıyla aynı yükseklikte (36px) */
  font: inherit; font-size: 12.5px; font-weight: 700; padding: 6px 14px; border-radius: 7px;
  white-space: nowrap; transition: background .14s, color .14s;
}
.chan-nav button:hover { color: var(--navy); }
.chan-nav button.on {
  background: var(--surface); color: var(--navy);
  box-shadow: 0 1px 3px rgba(16, 24, 40, .16), 0 0 0 1px rgba(16, 24, 40, .04);
}

/* "Tümü" kipinde aksiyon kartı toplam gösterir → tek listeye götüremez, tıklanamaz.
   Düğme gibi görünmemeli ki kullanıcı boşuna tıklamasın. */
.act-card.static { cursor: default; }
.act-card.static:hover { border-color: var(--line); transform: none; }

/* aynı kural yaş kartının dilimleri için: span olarak basılır */
span.aseg { cursor: default; }
span.aseg:hover { filter: none; }
span.alegend { cursor: default; }
span.alegend:hover { background: transparent; border-color: var(--line); }

/* Hesap kırılımındaki "açık" rozeti tıklanabilir — düğme olarak basılıyor */
button.badge { border: none; font: inherit; cursor: pointer; }
button.badge:hover { filter: brightness(.95); }

/* ---- Anasayfa başlığı: kanal seçici başlığın yanında ---- */
.page-head-main { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; min-width: 0; }

/* Çoklu seçim kutusu ekranın sağından taşarsa sağa hizalanır (bkz. bindFilters) */
.ms-pop.flip { left: auto; right: 0; }

/* ------------------------------------------------- DAR EKRAN (devam)
   Sayfa başlığındaki yardımcı satır (kota göstergesi + eylem düğmesi) dar
   ekranda tek satıra sığmıyor ve sayfayı yatay kaydırıyordu. */
@media (max-width: 860px) {
  .page-head .row { flex-wrap: wrap; width: 100%; }
  .page-head .row > * { min-width: 0; }
  .dm-quota { flex: 1 1 auto; min-width: 0; }
  /* kanal seçici başlığın yanında; sığmazsa alta iner, gerekirse kayar */
  .page-head-main { gap: 10px; }
  .chan-nav { max-width: 100%; overflow-x: auto; }
  .chan-nav button { white-space: nowrap; }
}
@media (max-width: 560px) {
  .page-head .row { flex-direction: column; align-items: stretch; }
  .page-head .row > * { width: 100%; }
  .dm-quota { justify-content: space-between; }
  .page-head-main { flex-direction: column; align-items: flex-start; gap: 8px; }
  .chan-nav { width: 100%; }
  .chan-nav button { flex: 1; padding: 7px 8px; font-size: 12px; }
  /* çoklu seçim kutuları tam genişlik — yan yana sığmıyorlar */
  .dash-filters { width: 100%; }
  .dash-filters .ms { flex: 1 1 100%; }
  .ms-btn { width: 100%; min-width: 0; }
  .ms-pop { min-width: 0; width: 100%; }
}

/* hesap çubuğunda DM dilimi (yorum organik/reklam ile aynı çubukta) */
.acc-track .seg.dm { background: #0f766e; }


/* ---- Anasayfa: ŞU AN / DÖNEM bölümleri ----
   Beş karta ayrı "anlık" rozeti koymak yerine tek bölüm başlığı; tarih
   filtresinin kapsamı buradan okunur. */
.dash-sec-h {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  margin: 22px 2px 12px;
}
.dash-sec-h:first-child { margin-top: 0; }
/* …ama dönem başlığı kendi sarmalayıcısında (#secPeriodH) duruyor ve orada da
   :first-child oluyordu → üst boşluk sıfırlanıp başlık üstteki karta yapışıyordu.
   Üst boşluk alttakinden BÜYÜK: başlık, etiketlediği içerikle gruplansın. */
#secPeriodH > .dash-sec-h:first-child { margin-top: 26px; }
.dash-sec-h h3 {
  font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  color: var(--navy);
}
.dash-sec-h .hint { font-size: 12px; color: var(--muted-2); margin: 0; }
.dash-sec-h .btn { margin-left: auto; color: var(--amber); }

/* tek seçimli açılır liste (Tarih) — çoklu seçimden farkı: Uygula çubuğu yok */
.ms.one .ms-pop { min-width: 190px; }
.ms-row.one {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 9px 11px; border: none; background: none; border-radius: 8px;
  font: inherit; font-size: 13px; color: var(--text-2); cursor: pointer; text-align: left;
}
.ms-row.one:hover { background: var(--surface-3); }
.ms-row.one svg { width: 15px; height: 15px; color: var(--navy); flex: none; }
.ms-row.one .ms-sp { width: 15px; flex: none; }

/* kayıt defteri (Son Hareketler) — bölümlerden ayrı dursun */
.dash-log { margin-top: 22px; }

/* Raporlar günlük akışında DM dilimi */
.spark .bar.dm { background: #0f766e; }

/* Kiracı adı tıklanabilir — üye listesini açar */
.tnt-name {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  background: none; border: none; padding: 0; font: inherit; cursor: pointer; text-align: left;
}
.tnt-name span:first-child { font-weight: 700; color: var(--navy); }
.tnt-name:hover span:first-child { text-decoration: underline; }

/* Kiracı satırı: ad ve kullanıcı sayısı üye listesini açar */
.tnt-name .nm { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--navy); }
.tnt-name .nm svg { width: 13px; height: 13px; opacity: 0; transition: opacity .12s; }
.tnt-name:hover .nm { text-decoration: underline; }
.tnt-name:hover .nm svg, .tnt-name:focus-visible .nm svg { opacity: .55; }
.linknum { background: none; border: none; padding: 0; font: inherit; color: var(--navy);
  font-variant-numeric: tabular-nums; cursor: pointer; }
.linknum:hover { text-decoration: underline; }

/* Üye penceresindeki davet formu — modal-foot'un hemen üstünde açılır şerit */
.tm-add { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap;
  padding: 14px 20px; border-top: 1px solid var(--line-soft); background: var(--surface-2); }
.tm-add[hidden] { display: none; }   /* display:flex, tarayıcının [hidden] kuralını eziyordu */
.tm-add .field { margin-bottom: 0; flex: 1 1 190px; }
.tm-add .field > label { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted-2); }
.modal-foot [data-add] { margin-right: auto; }
@media (max-width: 560px) { .tm-add .field { flex: 1 1 100%; } .tm-add .btn { width: 100%; } }

/* Kiracı tablosu hizası: sayısal sütunlar sağa değil ORTAYA — sağa yaslıyken
   değer, başlığının çok soluna düşüp dağınık görünüyordu (03.08.2026).
   İlk sütuna width:100% verilerek artan genişlik kurum adına yıkılıyor,
   kalan sütunlar içeriklerine göre yan yana toplanıyor. */
.tnt-table th:first-child, .tnt-table td:first-child { width: 100%; }
.tnt-table th:not(:first-child), .tnt-table td:not(:first-child) { white-space: nowrap; }
.tnt-table th.num, .tnt-table td.num,
.tnt-table th.ctr, .tnt-table td.ctr { text-align: center; }

/* "Mecrada aç" — eylem değil, dışarı çıkış. Kapat'ın hemen sağında durur ama
   ince bir ayraçla gruptan ayrılır (eskiden spacer ile en sağa itiliyordu ve
   dar ekranda tek başına alt satıra düşüyordu). */
.d-actions .act.ext { margin-left: 6px; position: relative; }
.d-actions .act.ext::before {
  content: ""; position: absolute; left: -8px; top: 6px; bottom: 6px;
  width: 1px; background: var(--line);
}

/* ---- Yorum satırı ⋮ menüsü ----
   Listeden hızlı moderasyon: detay panelini açmadan gizle/sil. Menüde yalnız
   mecranın desteklediği işlem etkin; desteklemediği gri satır olarak durur. */
.c-menu { position: relative; flex: none; margin-left: 2px; }
.c-menu-btn {
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; padding: 0; border: none; border-radius: 7px;
  background: transparent; color: var(--muted-2); cursor: pointer;
  opacity: 0; transition: opacity .12s, background .12s, color .12s;
}
.c-menu-btn svg { width: 16px; height: 16px; }
/* listede satırın üstüne gelince belirir; detayda hep görünür (.always) */
.c-item:hover .c-menu-btn, .c-item.on .c-menu-btn, .c-menu.always .c-menu-btn,
.c-menu.open .c-menu-btn, .c-menu-btn:focus-visible { opacity: 1; }
.c-menu-btn:hover, .c-menu.open .c-menu-btn { background: var(--surface-3); color: var(--navy); }

.c-menu-pop {
  display: none; position: absolute; right: 0; top: calc(100% + 5px); z-index: 40;
  min-width: 178px; padding: 5px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 11px; box-shadow: var(--shadow-md);
}
.c-menu-pop.up { top: auto; bottom: calc(100% + 5px); }
.c-menu.open .c-menu-pop { display: block; }
.cm-row {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 9px 10px; border: none; border-radius: 8px; background: none;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--text-2);
  cursor: pointer; text-align: left; white-space: nowrap;
}
.cm-row svg { width: 15px; height: 15px; flex: none; }
.cm-row:hover:not(:disabled) { background: var(--surface-3); color: var(--navy); }
.cm-row.danger { color: var(--red); }
.cm-row.danger:hover:not(:disabled) { background: #fef2f2; color: var(--red); }
/* mecra desteklemiyor: satır DURUR ama tıklanmaz — sebebi title'da yazar */
.cm-row:disabled { color: var(--muted-2); cursor: not-allowed; opacity: .65; }

/* ---- Özel yanıt penceresi ---- */
.pr-quote {
  padding: 11px 13px; margin-bottom: 14px; border-left: 3px solid var(--line-strong);
  background: var(--surface-2); border-radius: 0 8px 8px 0;
  font-size: 13px; line-height: 1.55; color: var(--text-2);
}
.pr-rule { border-left: 3px solid var(--amber); padding-left: 11px; margin: 12px 0 6px; }
.pr-rule b { color: var(--navy); }
/* bildirimdeki eylem düğmesi ("Mesajlarda aç") */
.toast .t-act {
  margin-left: 12px; padding: 4px 10px; border: 1px solid rgba(255,255,255,.45);
  border-radius: 7px; background: rgba(255,255,255,.12); color: inherit;
  font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer;
}
.toast .t-act:hover { background: rgba(255,255,255,.24); }

/* ---- Bağlı Hesaplar tablosu: ekrana sığması için ----
   Genişliği hesap adı yutar; kalan kolonlar içeriğe göre toplanır. */
.acc-table th:first-child, .acc-table td:first-child { width: 100%; }
.acc-table th:not(:first-child), .acc-table td:not(:first-child) { white-space: nowrap; }
.acc-table td, .acc-table th { padding-left: 10px; padding-right: 10px; }
.acc-table .badge { margin: 0; }

/* izin sayısı düğmesi + tam listeyi açan kutu */
.c-menu-btn.wide {
  width: auto; height: auto; opacity: 1;
  display: inline-flex; align-items: center; gap: 6px;
}
.c-menu-btn.wide svg { width: 13px; height: 13px; }
.c-menu-pop.wide { min-width: 232px; }
.cm-title {
  padding: 7px 10px 5px; font-size: 11px; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; color: var(--muted-2);
}
/* salt-okunur satır: tıklanabilir görünmesin */
.cm-row.static { cursor: default; padding: 5px 10px; }
.cm-row.static:hover { background: none; }
.cm-row.static code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px; color: var(--navy);
}
/* izin kutusu sağa taşmasın: hücre sağa yakınsa sola hizalanır */
.acc-perm .c-menu-pop { right: auto; left: 0; }

/* ------------------------------------------------ Ayarlar → Güvenlik
   İki adımlı doğrulama kurulumu ve açık oturum listesi. Kurulum bir
   sihirbaz: anahtar okunabilir olmalı (elle giriliyor), kod alanı dar. */
.sec-setup { padding: 4px 0 14px; border-bottom: 1px solid var(--line-soft); margin-bottom: 12px; }
.sec-step { font-size: 13px; color: var(--text-2); margin: 10px 0 6px; }
.sec-step b { color: var(--navy); margin-right: 4px; }
.sec-key { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
/* Anahtar elle giriliyor: geniş harf aralığı ve tek genişlikli yazı tipi
   1/l ve 0/O karışmasını önlüyor. */
.sec-key code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 15px; letter-spacing: 1.5px; background: var(--surface-3);
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px;
  user-select: all;
}
.sec-verify { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.sec-verify input {
  width: 120px; text-align: center; letter-spacing: 4px; font-size: 16px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  border: 1px solid var(--line); border-radius: 8px; padding: 8px;
}
.sec-sessions { padding-top: 4px; }
.sec-ses { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.sec-ses:last-child { border-bottom: none; }
.sec-ses svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--muted); }
.sec-ses b { font-size: 13px; color: var(--navy); }
.sec-ses.bu b::after { content: ' •'; color: var(--green, #16a34a); }
.sec-ses .hint { font-size: 12px; }
