/* =====================================================================
   Mor gece temasi + yan menu duzeni + genel bakis / takvim + animasyonlar.
   style.css'ten SONRA yuklenir ve onun degiskenlerini ezer.
   Geri donmek icin index.html'den bu dosyanin <link> satirini kaldirmak yeterli.
   ===================================================================== */

:root,
:root:not([data-theme="light"]) {
  --bg: #0a0720;
  --bg-2: #0e0a28;
  --card: #130f30;
  --card-2: #1a1540;
  --card-3: #221c4f;
  --line: #241e4d;
  --line-2: #352c6b;
  --text: #f1eefc;
  --text-2: #a29cc4;
  --text-3: #6d6794;
  --accent: #7c3aed;
  --accent-2: #a855f7;
  --accent-text: #c4b5fd;
  --accent-soft: rgba(139, 92, 246, .16);
  --on-accent: #ffffff;
  --pink: #ec4899;
  --blue: #3b82f6;
  --green: #22c55e;
  --grad: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 50%, #6d28d9 100%);
  --grad-soft: linear-gradient(135deg, rgba(139, 92, 246, .24), rgba(236, 72, 153, .12));
  --ok: #34d399;
  --warn: #f5b14c;
  --bad: #f87171;
  --tt: #2dd4bf;
  --yt: #ff5a5a;
  --ig: #e1306c;
  --r-lg: 16px;
  --r: 12px;
  --r-sm: 10px;
  --side-w: 252px;
  --pop: 0 24px 64px -12px rgba(0, 0, 0, .7);
  --glow: 0 0 0 1px rgba(167, 139, 250, .35), 0 14px 34px -12px rgba(124, 58, 237, .75);
  color-scheme: dark;
}

body { background: var(--bg); }

/* ------------------------------------------------------------- yuzeyler */
.card, .section, .day, .stat, .hero, .pt, .tcard, .more {
  background: linear-gradient(180deg, rgba(255, 255, 255, .018), transparent 40%), var(--card);
  border-color: var(--line);
}
.section > header h2, .card h2 { font-size: 16px; }
.btn { border-radius: var(--r-sm); border-color: var(--line-2); background: var(--card-2); }
.btn:hover { background: var(--card-3); }
.btn.primary { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 8px 24px -10px rgba(79, 107, 255, .8); }
.btn.primary:hover { background: var(--grad); filter: brightness(1.08); }
.btn.ghost { background: transparent; border-color: transparent; }
input, select, textarea { background: var(--bg-2); border-color: var(--line-2); border-radius: var(--r-sm); }
.toast { background: var(--card-3); border: 1px solid var(--line-2); color: var(--text); }
.sheet-panel { background: var(--card); border-color: var(--line-2); }
.badge.accent, .chip.ai { background: var(--accent-soft); color: var(--accent-text); }
.notice { background: var(--card); }
.login-card { background: var(--card); box-shadow: var(--pop); }
.brand .mark { background: var(--grad); box-shadow: 0 6px 18px -6px rgba(139, 92, 246, .9); }

/* ------------------------------------------------------------- gezinme: ortak */
.nav-h, .side-only, .l-d, .side-foot { display: none; }
.brand .word .sub { display: none; }
.tabs .cnt { font-style: normal; }

/* ------------------------------------------------------------- telefon: alt menu */
@media (max-width: 860px) {
  .tabs { background: rgba(14, 10, 40, .96); border-top-color: var(--line); }
  .tabs .cnt { display: none !important; }
  .tabs button.active::after { background: var(--grad); }
}

/* ------------------------------------------------------------- masaustu: yan menu */
@media (min-width: 861px) {
  .side-only, .l-d { display: revert; }
  .tabs button.side-only { display: flex; }
  .l-m, .mob-only, .tabs button.mob-only { display: none !important; }
  .tabs .dot { display: none !important; }

  #app { padding-left: var(--side-w); }
  .top {
    position: fixed; inset: 0 auto 0 0; width: var(--side-w); height: auto; z-index: 15;
    flex-direction: column; align-items: stretch; gap: 18px; padding: 22px 14px 18px;
    background: linear-gradient(180deg, #110c2e, #0a0720); border-right: 1px solid var(--line); border-bottom: 0;
    overflow-y: auto; scrollbar-width: thin;
  }
  .top .brand { padding: 2px 8px 8px; gap: 12px; }
  .top .brand .mark { width: 40px; height: 40px; border-radius: 12px; }
  .top .brand .mark svg { width: 18px; height: 18px; }
  .top .brand .word { display: grid; font-size: 17px; line-height: 1.2; }
  .top .brand .word .ig { display: none; }
  .top .brand .word .sub { display: block; font-size: 12px; font-weight: 500; color: var(--accent-text); letter-spacing: 0; }

  .tabs { flex-direction: column; gap: 2px; align-self: stretch; }
  .nav-h { display: block; padding: 14px 12px 6px; font-size: 11px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
  .nav-h:first-child { padding-top: 0; }
  .tabs button {
    height: 42px; padding: 0 12px; border-radius: 11px; gap: 12px; justify-content: flex-start;
    color: var(--text-2); font-size: 14px; font-weight: 520; transition: background .14s, color .14s;
  }
  .tabs button > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tabs svg { display: block; width: 19px; height: 19px; flex: none; }
  .tabs button:hover { background: var(--card-2); color: var(--text); }
  .tabs button.active { background: var(--grad); color: #fff; box-shadow: var(--glow); }
  .tabs button.active::after { display: none; }
  .tabs .cnt {
    margin-left: auto; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 7px; display: inline-grid; place-items: center;
    font-size: 11.5px; font-weight: 650; background: var(--card-3); color: var(--text-2);
  }
  .tabs button.active .cnt { background: rgba(255, 255, 255, .2); color: #fff; }
  .tabs .cnt.hidden { display: none; }

  .side-foot { display: grid; gap: 12px; margin-top: auto; }
  .top-right { margin: 0; flex-direction: column; align-items: stretch; gap: 8px; }
  .top-right .badges { justify-content: center; }
  .top-right #logoutBtn { justify-content: center; }

  .content { max-width: 1480px; padding: 30px 32px 72px; }
  .ptr { display: none; }
}
@media (min-width: 861px) and (max-width: 1100px) { :root { --side-w: 224px; } .content { padding: 24px 22px 64px; } }

/* Yan menu alt kartlari */
.sf-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: grid; gap: 10px; }
.sf-card h4 { margin: 0; font-size: 13px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.sf-acc { display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: center; }
.sf-acc .ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: #fff; }
.sf-acc .ic svg { width: 17px; height: 17px; }
.sf-acc .ic.ig { background: linear-gradient(45deg, #f9a23b, #e1306c 55%, #833ab4); }
.sf-acc .ic.tt { background: #111827; color: var(--tt); border: 1px solid var(--line-2); }
.sf-acc .ic.yt { background: #1f1012; color: var(--yt); border: 1px solid #3a1c20; }
.sf-acc .ic.dr { background: #0f2a22; color: var(--ok); border: 1px solid #1b3d33; }
.sf-acc b { display: block; font-size: 13px; font-weight: 600; line-height: 1.2; }
.sf-acc small { display: block; font-size: 11.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sf-acc > div { min-width: 0; }
.st-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
.st-dot.ok { background: var(--ok); box-shadow: 0 0 0 3px rgba(52, 211, 153, .15); }
.st-dot.warn { background: var(--warn); box-shadow: 0 0 0 3px rgba(245, 177, 76, .15); }
.st-dot.bad { background: var(--bad); box-shadow: 0 0 0 3px rgba(248, 113, 113, .15); }
.sf-goal .num { font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: var(--accent-text); }
.sf-goal .num small { font-size: 13px; font-weight: 500; color: var(--text-2); }
.meter { height: 7px; border-radius: 4px; background: var(--card-3); overflow: hidden; }
.meter > i { display: block; height: 100%; border-radius: 4px; background: var(--grad); }
.meter.tt > i { background: linear-gradient(90deg, #14b8a6, #2dd4bf); }

/* ------------------------------------------------------------- genel bakis */
#tab-dashboard { display: grid; grid-template-columns: minmax(0, 1fr) !important; gap: 20px; }
#tab-dashboard > * { grid-column: auto !important; }
.dh { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.dh h1 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -.03em; }
.dh p { margin: 6px 0 0; color: var(--text-2); font-size: 14.5px; }
.dh-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.dh-actions .btn { height: 42px; padding: 0 16px; display: inline-flex; align-items: center; gap: 8px; }
.dh-actions .btn.primary { padding: 0 20px; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi {
  position: relative; overflow: hidden; display: grid; gap: 6px; padding: 18px 18px 16px; min-height: 132px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .02), transparent 50%), var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  text-align: left; color: var(--text); cursor: pointer; transition: border-color .15s, transform .15s;
}
.kpi:hover { border-color: var(--line-2); transform: translateY(-1px); }
.kpi .kl { font-size: 13.5px; color: var(--text-2); font-weight: 500; }
.kpi .kv { font-size: 30px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.kpi .kv small { font-size: 15px; font-weight: 500; color: var(--text-2); }
.kpi .kd { font-size: 12.5px; color: var(--text-2); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.kpi .kd .up { color: var(--ok); display: inline-flex; align-items: center; gap: 2px; font-weight: 600; }
.kpi .kd .dn { color: var(--bad); display: inline-flex; align-items: center; gap: 2px; font-weight: 600; }
.kpi .kd svg { width: 13px; height: 13px; }
.kpi .ki { position: absolute; top: 16px; right: 16px; width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; }
.kpi .ki svg { width: 24px; height: 24px; }
.ki.c1 { background: rgba(45, 212, 191, .12); color: #2dd4bf; }
.ki.c2 { background: rgba(139, 92, 246, .16); color: #c4b5fd; }
.ki.c3 { background: rgba(168, 85, 247, .15); color: #c4a5ff; }
.ki.c4 { background: rgba(245, 177, 76, .13); color: #f5b14c; }
.kpi .spark { position: absolute; right: 14px; bottom: 30px; width: 46%; height: 46px; }

.dgrid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.dcol { display: grid; gap: 20px; min-width: 0; }
.panel { background: linear-gradient(180deg, rgba(255, 255, 255, .018), transparent 30%), var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; display: grid; gap: 16px; min-width: 0; }
.panel > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.panel > header h2 { margin: 0; font-size: 16.5px; font-weight: 600; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.panel > header .tag { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: var(--card-3); color: var(--text-2); }
.panel > header .link { font-size: 13px; color: var(--accent-text); background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 0; }
.alerts { display: flex; gap: 10px; flex-wrap: wrap; }
.alert {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--r-sm); border: 1px solid var(--line-2);
  background: var(--card); color: var(--text); font-size: 13.5px; cursor: pointer;
}
.alert i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.alert.bad { border-color: rgba(248, 113, 113, .35); } .alert.bad i { color: var(--bad); }
.alert.warn { border-color: rgba(245, 177, 76, .3); } .alert.warn i { color: var(--warn); }
.alert.accent i { color: var(--accent-text); }
.alert svg { width: 14px; height: 14px; color: var(--text-2); }

/* Takvim */
.cal-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cal-bar .rng { font-weight: 600; font-size: 14.5px; min-width: 150px; }
.cal-bar .sp { flex: 1; }
.cal-bar select { width: auto; min-width: 150px; height: 38px; padding: 0 10px; }
.icon-btn { width: 38px; height: 38px; padding: 0; display: inline-grid; place-items: center; }
.icon-btn svg { width: 16px; height: 16px; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(118px, 1fr)); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.cal-wrap { overflow-x: auto; scrollbar-width: thin; }
.cal-col { display: grid; grid-template-rows: auto 1fr; border-right: 1px solid var(--line); min-width: 0; }
.cal-col:last-child { border-right: 0; }
.cal-col > h5 { margin: 0; padding: 11px 8px; text-align: center; font-size: 13px; font-weight: 550; color: var(--text-2); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.cal-col > h5 b { color: var(--text); font-weight: 600; }
.cal-col.today { background: linear-gradient(180deg, rgba(139, 92, 246, .10), rgba(139, 92, 246, .02)); box-shadow: inset 0 0 0 1px rgba(139, 92, 246, .5); }
.cal-col.today > h5 { color: var(--accent-text); background: rgba(139, 92, 246, .14); }
.cal-col.today > h5 b { color: #fff; }
.cal-col.past:not(.today) { background: rgba(0, 0, 0, .12); }
.cal-day { display: grid; gap: 8px; align-content: start; padding: 8px; min-height: 220px; }
.cal-empty { display: grid; place-items: center; height: 100%; min-height: 80px; color: var(--text-3); font-size: 12px; }
.ci {
  display: grid; gap: 7px; padding: 8px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card-2);
  text-align: left; color: var(--text); cursor: pointer; min-width: 0; transition: border-color .14s, transform .14s;
}
.ci:hover { border-color: var(--accent); transform: translateY(-1px); }
.ci-top { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.ci-top .pi { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; flex: none; color: #fff; }
.ci-top .pi svg { width: 12px; height: 12px; }
.pi.ig { background: linear-gradient(45deg, #f9a23b, #e1306c 55%, #833ab4); }
.pi.tt { background: #0b0f19; color: var(--tt) !important; border: 1px solid var(--line-2); }
.pi.yt { background: #2a1013; color: var(--yt) !important; }
.pi.plan { background: var(--accent-soft); color: var(--accent-text) !important; }
.ci-top .yt-mini { margin-left: auto; color: var(--yt); display: inline-flex; }
.ci-top .yt-mini svg { width: 14px; height: 14px; }
.ci .thumb { width: 100%; aspect-ratio: 16 / 10; border-radius: 7px; }
.ci .ct { font-size: 12.5px; line-height: 1.35; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.ci .cs { justify-self: stretch; text-align: center; font-size: 11.5px; font-weight: 600; padding: 4px 6px; border-radius: 7px; border: 1px solid; }
.cs.published { color: #7dd3fc; border-color: rgba(125, 211, 252, .28); background: rgba(56, 189, 248, .08); }
.cs.planned { color: var(--accent-text); border-color: rgba(165, 176, 255, .3); background: var(--accent-soft); }
.cs.retry { color: var(--warn); border-color: rgba(245, 177, 76, .3); background: rgba(245, 177, 76, .08); }
.cs.simulated { color: #c4a5ff; border-color: rgba(196, 165, 255, .3); background: rgba(168, 85, 247, .08); }
.cs.failed, .cs.deleted { color: var(--bad); border-color: rgba(248, 113, 113, .3); background: rgba(248, 113, 113, .08); }
.ci .cv { font-size: 11.5px; color: var(--text-2); display: flex; align-items: center; gap: 4px; }
.ci .cv svg { width: 12px; height: 12px; }
.cal-more { font-size: 12px; color: var(--accent-text); background: none; border: 1px dashed var(--line-2); border-radius: 8px; padding: 6px; cursor: pointer; }
.cal-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend i { width: 10px; height: 10px; border-radius: 3px; }

/* Performans grafigi */
.pchart { width: 100%; height: auto; display: block; overflow: visible; }
.pchart .gl { stroke: var(--line); stroke-width: 1; }
.pchart .ax { fill: var(--text-3); font-size: 11px; }
.pchart .ln { fill: none; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.pchart .dt { stroke: var(--card); stroke-width: 2; }
.pchart .bar-ig { fill: rgba(225, 48, 108, .55); }
.pchart .bar-tt { fill: rgba(45, 212, 191, .6); }
.pchart .hit { fill: transparent; cursor: default; }
.pchart .hit:hover + .tip, .pchart g.pp:hover .tip { opacity: 1; }
.pchart .tip { opacity: 0; transition: opacity .12s; pointer-events: none; }
.pchart .tip rect { fill: var(--card-3); stroke: var(--line-2); }
.pchart .tip text { fill: var(--text); font-size: 11.5px; font-weight: 600; }
.plegend { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; font-size: 12.5px; color: var(--text-2); }
.plegend span { display: inline-flex; align-items: center; gap: 7px; }
.plegend i { width: 14px; height: 4px; border-radius: 2px; }
.empty-chart { display: grid; place-items: center; text-align: center; gap: 6px; min-height: 180px; color: var(--text-2); font-size: 13.5px; border: 1px dashed var(--line-2); border-radius: var(--r); padding: 16px; }

/* AI trend onerileri */
.ai-box { display: grid; gap: 12px; padding: 14px; border-radius: var(--r); background: var(--grad-soft); border: 1px solid rgba(139, 92, 246, .28); }
.ai-head { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; }
.ai-head .bot { width: 36px; height: 36px; border-radius: 11px; background: rgba(139, 92, 246, .22); display: grid; place-items: center; color: var(--accent-text); flex: none; }
.ai-head .bot svg { width: 19px; height: 19px; }
.ai-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ai-it { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; padding: 10px; border-radius: 10px; background: rgba(10, 7, 32, .45); border: 1px solid var(--line); cursor: pointer; text-align: left; color: var(--text); width: 100%; }
.ai-it:hover { border-color: var(--line-2); }
.ai-it .sc { min-width: 38px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 12.5px; font-weight: 700; background: var(--card-3); color: var(--text-2); }
.ai-it .sc.hi { background: rgba(52, 211, 153, .14); color: var(--ok); }
.ai-it .sc.mid { background: rgba(245, 177, 76, .14); color: var(--warn); }
.ai-it .sc.lo { background: rgba(248, 113, 113, .12); color: var(--bad); }
.ai-it b { display: block; font-size: 13.5px; font-weight: 600; }
.ai-it small { display: block; font-size: 12px; color: var(--text-2); line-height: 1.4; margin-top: 2px; }
.ai-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Icerik hatti */
.pipe { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; align-items: center; }
.pipe-st { display: flex; align-items: center; gap: 12px; padding: 6px 4px; min-width: 0; cursor: pointer; background: none; border: 0; color: var(--text); text-align: left; position: relative; }
.pipe-st:not(:last-child)::after { content: ""; position: absolute; right: -8px; top: 50%; width: 8px; height: 1px; background: var(--line-2); }
.pipe-st .pic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; flex: none; }
.pipe-st .pic svg { width: 21px; height: 21px; }
.pipe-st small { display: block; font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pipe-st b { display: block; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.pic.p1 { background: rgba(245, 177, 76, .12); color: var(--warn); }
.pic.p2 { background: rgba(59, 130, 246, .14); color: #7aa7ff; }
.pic.p3 { background: rgba(168, 85, 247, .14); color: #c4a5ff; }
.pic.p4 { background: rgba(52, 211, 153, .12); color: var(--ok); }
.pic.p5 { background: rgba(45, 212, 191, .12); color: var(--tt); }

/* Onay kuyrugu */
.apq { display: grid; gap: 10px; }
.apq-it { display: grid; grid-template-columns: 46px 1fr auto; gap: 12px; align-items: center; }
.apq-it .thumb { width: 46px; height: 46px; border-radius: 10px; cursor: pointer; }
.apq-it b { display: block; font-size: 13.5px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.apq-it small { display: block; font-size: 12px; color: var(--text-2); }
.apq-it > div { min-width: 0; }
.apq-btns { display: flex; gap: 6px; }
.apq-btns .btn { width: 36px; height: 36px; padding: 0; display: grid; place-items: center; }
.apq-btns .btn svg { width: 15px; height: 15px; }
.apq-btns .ok { color: var(--ok); }
.apq-btns .no { color: var(--bad); }
.apq-empty { display: grid; gap: 4px; justify-items: center; text-align: center; padding: 14px 8px; color: var(--text-2); font-size: 13.5px; }
.apq-empty svg { width: 26px; height: 26px; color: var(--ok); }

/* En iyiler ve son islemler */
.top3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.t3 { display: grid; gap: 8px; text-align: left; background: none; border: 0; padding: 0; color: var(--text); cursor: pointer; min-width: 0; }
.t3 .thumb { width: 100%; aspect-ratio: 9 / 12; border-radius: 12px; }
.t3 .rk { position: absolute; top: 8px; left: 8px; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; background: rgba(10, 7, 32, .8); font-size: 12px; font-weight: 700; z-index: 1; }
.t3 .vw { position: absolute; bottom: 8px; left: 8px; display: inline-flex; gap: 4px; align-items: center; padding: 3px 8px; border-radius: 7px; background: rgba(10, 7, 32, .8); font-size: 12px; font-weight: 600; z-index: 1; }
.t3 .vw svg { width: 12px; height: 12px; }
.t3 .tw { position: relative; }
.t3 span.tt { font-size: 12.5px; font-weight: 500; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feed { display: grid; gap: 2px; }
.feed > div { display: grid; grid-template-columns: 8px 1fr auto; gap: 10px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.feed > div:last-child { border-bottom: 0; }
.feed i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); transform: translateY(-1px); }
.feed .info i { background: var(--accent-text); }
.feed .warn i { background: var(--warn); }
.feed .error i { background: var(--bad); }
.feed span { overflow-wrap: anywhere; color: var(--text); }
.feed time { color: var(--text-3); font-size: 12px; white-space: nowrap; }
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }

/* Takvim sekmesi */
#tab-calendar .cal-day { min-height: 340px; }

/* ------------------------------------------------------------- duyarlilik */
@media (max-width: 1320px) {
  .dgrid { grid-template-columns: minmax(0, 1fr) 320px; }
}
@media (max-width: 1180px) {
  .dgrid { grid-template-columns: minmax(0, 1fr); }
  .dcol.side { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .dh h1 { font-size: 23px; }
  .dh-actions { width: 100%; }
  .dh-actions .btn { flex: 1; justify-content: center; }
  .kpis { gap: 12px; }
  .kpi { min-height: 116px; padding: 14px; }
  .kpi .kv { font-size: 25px; }
  .kpi .ki { width: 40px; height: 40px; top: 14px; right: 14px; border-radius: 12px; }
  .kpi .ki svg { width: 20px; height: 20px; }
  .kpi .spark { display: none; }
  .panel { padding: 16px; }
  .duo { grid-template-columns: minmax(0, 1fr); }
  .pipe { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 4px 10px; }
  .pipe-st::after { display: none; }
  /* Takvim telefonda: gunler alt alta, her gunun videolari yatay */
  .cal { display: grid; grid-template-columns: minmax(0, 1fr); border: 0; gap: 10px; overflow: visible; }
  .cal-col { border: 1px solid var(--line); border-radius: var(--r); grid-template-rows: auto auto; overflow: hidden; }
  .cal-col > h5 { text-align: left; padding: 9px 12px; }
  .cal-day { display: flex; gap: 8px; overflow-x: auto; min-height: 0 !important; padding: 10px; scrollbar-width: none; }
  .cal-day::-webkit-scrollbar { display: none; }
  .ci { flex: 0 0 148px; }
  .cal-empty { min-height: 0; padding: 4px 2px; place-items: start; }
  .cal-bar .rng { min-width: 0; flex: 1; }
  .cal-bar .sp { display: none; }
  .cal-bar select { flex: 1 1 100%; }
  .top3 { gap: 8px; }
}
@media (max-width: 420px) {
  .kpi .kd { font-size: 11.5px; }
  .top3 .t3:nth-child(3) { display: none; }
  .top3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Kucuk resmi gelmeyen videolar (Drive'da silinmis vb.) icin yer tutucu */
.thumb:not(.loading):not(:has(img)) { background: linear-gradient(135deg, #18223d, #0f1730); display: grid; place-items: center; }
.thumb:not(.loading):not(:has(img))::before { content: ""; width: 26%; max-width: 30px; aspect-ratio: 1; opacity: .5;
  background: var(--text-2); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5.5v13l11-6.5z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5.5v13l11-6.5z'/%3E%3C/svg%3E") center / contain no-repeat; }
.pchart .ax { font-size: 9.5px; }
.pchart .tip text { font-size: 10.5px; }
@media (min-width: 861px) {
  .top .brand .word { font-size: 15.5px; }
  .top .brand .word .ig { display: inline; }
}
@media (min-width: 861px) {
  .top { gap: 14px; padding: 18px 12px 14px; }
  .top .brand .word { font-size: 14.5px; white-space: nowrap; letter-spacing: -.02em; }
  .top .brand .mark { width: 36px; height: 36px; }
  .tabs button { height: 38px; }
  .nav-h { padding: 10px 12px 4px; }
  .sf-card { padding: 12px; gap: 8px; }
  .sf-acc { grid-template-columns: 28px 1fr auto; gap: 9px; }
  .sf-acc .ic { width: 28px; height: 28px; border-radius: 9px; }
  .sf-acc .ic svg { width: 15px; height: 15px; }
}
@media (min-width: 861px) and (max-height: 820px) {
  .sf-acc small { display: none; }
}
@media (max-width: 860px) {
  .tabs button.side-only, .tabs .nav-h { display: none !important; }
  .kpi .kl { padding-right: 46px; }
  .alerts { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 2px; scrollbar-width: none; }
  .alerts::-webkit-scrollbar { display: none; }
  .alert { flex: none; white-space: nowrap; }
}
/* Panel icerigi (ozellikle takvim) paneli genisletmesin; kendi icinde kaysin */
.panel > *, .dcol > *, #dashCal, #fullCal { min-width: 0; }
.pipe-st > span { min-width: 0; }
@media (max-width: 1100px) {
  .pipe { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px 12px; }
  .pipe-st::after { display: none; }
}
