/* ═══════════════════════════════════════════════════════════════════════════════════════
   SeeNose — Yönetim Paneli stil katmanı
   Koyu, teknolojik, "ağ kablosu" diline sahip modern arayüz. Türkçe/İngilizce uyumlu.
   ═══════════════════════════════════════════════════════════════════════════════════════ */

:root {
  --bg-0: #070a12;
  --bg-1: #0b1220;
  --bg-2: #101a2e;
  --bg-3: #16233c;
  --surface: rgba(18, 28, 48, 0.72);
  --surface-solid: #121c30;
  --surface-2: #17243d;
  --border: rgba(120, 145, 190, 0.16);
  --border-strong: rgba(130, 160, 210, 0.32);

  --text: #eaf0fb;
  --text-dim: #a7b5cf;
  --text-mute: #6f7f9c;

  --brand: #6366f1;
  --brand-2: #8b5cf6;
  --brand-glow: rgba(99, 102, 241, 0.45);
  --accent: #22d3ee;

  --ok: #22c55e;
  --warn: #f59e0b;
  --crit: #ef4444;
  --info: #38bdf8;
  --off: #64748b;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --shadow: 0 18px 48px -20px rgba(0, 0, 0, 0.85);
  --shadow-sm: 0 6px 18px -10px rgba(0, 0, 0, 0.7);
  --mono: "JetBrains Mono", "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --sidebar-w: 250px;
  --topbar-h: 68px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background:
    radial-gradient(1200px 700px at 12% -8%, rgba(99, 102, 241, 0.16), transparent 60%),
    radial-gradient(900px 600px at 108% 0%, rgba(34, 211, 238, 0.10), transparent 55%),
    var(--bg-0);
  overflow: hidden;
}

.hidden { display: none !important; }
::selection { background: var(--brand-glow); }

/* Kaydırma çubuğu */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(120, 145, 190, 0.22); border-radius: 20px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(120, 145, 190, 0.4); background-clip: content-box; }

/* ─────────────────────────────── Açılış katmanı */
.boot-screen {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: radial-gradient(700px 500px at 50% 40%, rgba(99, 102, 241, 0.18), transparent 70%), var(--bg-0);
  transition: opacity .45s ease, visibility .45s ease;
}
.boot-screen.done { opacity: 0; visibility: hidden; }
.boot-logo {
  width: 74px; height: 74px; border-radius: 22px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--brand), var(--brand-2));
  box-shadow: 0 0 60px var(--brand-glow);
  animation: pulse 2.4s ease-in-out infinite;
}
.boot-logo img { width: 50px; height: 50px; display: block; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.boot-name { font-size: 22px; font-weight: 800; letter-spacing: 4px; }
.boot-bar { width: 220px; height: 4px; border-radius: 4px; background: var(--bg-3); overflow: hidden; }
.boot-bar i { display: block; height: 100%; width: 40%; border-radius: 4px; background: linear-gradient(90deg, var(--brand), var(--accent)); animation: slide 1.3s ease-in-out infinite; }
@keyframes slide { 0% { margin-left: -40%; } 100% { margin-left: 100%; } }
.boot-hint { color: var(--text-mute); font-size: 12.5px; letter-spacing: .5px; }

/* ─────────────────────────────── Giriş ekranı */
.auth-screen { position: fixed; inset: 0; z-index: 900; display: grid; grid-template-columns: 1.1fr .9fr; background: var(--bg-0); }
.auth-visual {
  position: relative; overflow: hidden;
  background:
    radial-gradient(800px 600px at 20% 20%, rgba(99, 102, 241, 0.28), transparent 65%),
    radial-gradient(700px 700px at 90% 90%, rgba(34, 211, 238, 0.16), transparent 60%),
    linear-gradient(160deg, #0a1020, #05070d);
  display: grid; place-items: center;
}
.auth-visual::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(120, 145, 190, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 145, 190, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 40% 40%, #000 30%, transparent 78%);
}
.auth-visual-inner { position: relative; max-width: 480px; padding: 40px; }
.auth-brand { display: flex; align-items: center; gap: 16px; margin-bottom: 34px; }
.auth-brand-mark {
  width: 58px; height: 58px; border-radius: 17px; display: block;
  box-shadow: 0 0 44px var(--brand-glow);
}
.auth-brand h1 { margin: 0; font-size: 27px; letter-spacing: 2px; }
.auth-brand p { margin: 4px 0 0; color: var(--text-dim); font-size: 13px; }
.auth-features { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.auth-features li { position: relative; padding-left: 30px; display: flex; flex-direction: column; gap: 3px; }
.auth-features li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 12px; height: 12px; border-radius: 4px;
  background: linear-gradient(140deg, var(--brand), var(--accent)); box-shadow: 0 0 14px var(--brand-glow);
}
.auth-features b { font-size: 14px; }
.auth-features span { color: var(--text-dim); font-size: 12.5px; line-height: 1.5; }
.auth-foot { margin-top: 36px; color: var(--text-mute); font-size: 12px; }
.dot-sep { margin: 0 8px; }

.auth-panel { display: grid; place-items: center; padding: 30px; background: linear-gradient(180deg, var(--bg-1), var(--bg-0)); }
.auth-card { width: 100%; max-width: 380px; background: var(--surface); backdrop-filter: blur(20px); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px 28px; box-shadow: var(--shadow); }
.auth-card-head { margin-bottom: 22px; }
.auth-card-head h2 { margin: 14px 0 4px; font-size: 22px; }
.auth-card-head p { margin: 0; color: var(--text-dim); font-size: 12.5px; line-height: 1.5; }
.lang-switch { display: inline-flex; background: var(--bg-2); border: 1px solid var(--border); border-radius: 9px; padding: 2px; }
.lang-switch button { border: 0; background: transparent; color: var(--text-dim); padding: 5px 12px; border-radius: 7px; cursor: pointer; font-size: 11.5px; font-weight: 700; letter-spacing: .5px; transition: .15s; }
.lang-switch button.active { background: linear-gradient(140deg, var(--brand), var(--brand-2)); color: #fff; }
.lang-switch.small button { padding: 4px 9px; font-size: 11px; }

.auth-form { display: flex; flex-direction: column; gap: 15px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-size: 12px; color: var(--text-dim); font-weight: 600; }
.field input, .field select, .select, input[type="text"], input[type="password"], select, textarea {
  background: var(--bg-2); border: 1px solid var(--border); color: var(--text);
  border-radius: var(--radius-sm); padding: 11px 13px; font-size: 13.5px; font-family: inherit;
  transition: border-color .15s, box-shadow .15s; width: 100%;
}
.field input:focus, .field select:focus, .select:focus, input:focus, select:focus, textarea:focus {
  outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}
.field-pw { position: relative; }
.field-pw .pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: transparent; border: 0; color: var(--text-mute); cursor: pointer; font-size: 15px; padding: 6px; }
.field.checkbox { flex-direction: row; align-items: center; gap: 9px; color: var(--text-dim); font-size: 12.5px; }
.field.checkbox.row { flex-direction: row; }
.field.checkbox input { width: auto; }
.auth-error { background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.35); color: #fecaca; padding: 10px 12px; border-radius: var(--radius-sm); font-size: 12.5px; }
.otp-target { margin: 0 0 8px; color: var(--text-dim); font-size: 12.5px; }
.auth-card-foot { margin-top: 18px; text-align: center; }
.badge-soft { font-size: 11px; color: var(--text-mute); background: var(--bg-2); border: 1px solid var(--border); padding: 3px 10px; border-radius: 20px; }

/* ─────────────────────────────── Butonlar */
.btn { border: 1px solid transparent; border-radius: var(--radius-sm); padding: 10px 16px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; transition: .15s; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: linear-gradient(140deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 8px 22px -10px var(--brand-glow); }
.btn-primary:hover:not(:disabled) { filter: brightness(1.1); transform: translateY(-1px); }
.btn-ghost { background: var(--bg-2); border-color: var(--border); color: var(--text-dim); }
.btn-ghost:hover:not(:disabled) { border-color: var(--border-strong); color: var(--text); }
.btn-danger { background: rgba(239, 68, 68, 0.14); border-color: rgba(239, 68, 68, 0.4); color: #fca5a5; }
.btn-danger:hover:not(:disabled) { background: rgba(239, 68, 68, 0.24); }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 12px; font-size: 12px; }
.link-btn { background: transparent; border: 0; color: var(--accent); cursor: pointer; font-size: 12.5px; font-weight: 600; padding: 2px 4px; }
.link-btn:hover { text-decoration: underline; }
.icon-btn { background: var(--bg-2); border: 1px solid var(--border); color: var(--text-dim); width: 36px; height: 36px; border-radius: 10px; cursor: pointer; font-size: 15px; display: grid; place-items: center; transition: .15s; }
.icon-btn:hover { border-color: var(--border-strong); color: var(--text); }

/* ─────────────────────────────── Uygulama kabuğu */
.app-shell { display: grid; grid-template-columns: var(--sidebar-w) 1fr; height: 100vh; }

.sidebar {
  background: linear-gradient(180deg, rgba(12, 19, 34, 0.96), rgba(7, 10, 18, 0.98));
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 18px 14px; gap: 10px;
  position: relative; z-index: 20;
  /* Kısa ekranlarda menü taşmasın: gövde kaydırılır, alt bilgi sabit kalır. */
  min-height: 0; height: 100vh; overflow: hidden;
}
.sidebar::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(400px 200px at 0% 0%, rgba(99, 102, 241, 0.12), transparent 70%); }
.brand { display: flex; align-items: center; gap: 11px; padding: 6px 8px 16px; position: relative; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; display: block; box-shadow: 0 0 24px var(--brand-glow); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text b { font-size: 15px; letter-spacing: 1.5px; }
.brand-text small { color: var(--text-mute); font-size: 10.5px; }

/* Menü kaydırma: flex çocuğu varsayılan min-height:auto yüzünden küçülmezdi;
   min-height:0 verilerek gerçek bir dikey scroll alanı oluşturulur. */
.nav {
  display: flex; flex-direction: column; gap: 3px; flex: 1 1 auto; position: relative;
  min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
  scrollbar-gutter: stable; padding-right: 4px; margin-right: -4px;
}
.nav::-webkit-scrollbar { width: 8px; }
.nav::-webkit-scrollbar-thumb { background: rgba(120, 145, 190, 0.28); border-radius: 20px; }
.nav::-webkit-scrollbar-thumb:hover { background: rgba(120, 145, 190, 0.48); }
.nav.tree { scroll-snap-type: none; }
.nav-item {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 11px;
  background: transparent; border: 1px solid transparent; color: var(--text-dim);
  cursor: pointer; font-size: 13px; font-weight: 600; font-family: inherit; text-align: left;
  transition: .15s; position: relative;
}
.nav-item .ni-icon { width: 20px; text-align: center; font-size: 15px; opacity: .9; }
.nav-item:hover { background: var(--bg-2); color: var(--text); }
.nav-item.active { background: linear-gradient(140deg, rgba(99, 102, 241, 0.22), rgba(139, 92, 246, 0.12)); border-color: rgba(99, 102, 241, 0.4); color: #fff; }
.nav-item.active::before { content: ""; position: absolute; left: -14px; top: 50%; transform: translateY(-50%); width: 3px; height: 22px; border-radius: 3px; background: var(--brand); box-shadow: 0 0 12px var(--brand-glow); }
.nav-badge { margin-left: auto; background: var(--crit); color: #fff; font-style: normal; font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 20px; }

.sidebar-foot { display: flex; flex-direction: column; gap: 8px; padding-top: 10px; border-top: 1px solid var(--border); }
.agent-health { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--bg-2); font-size: 11.5px; color: var(--text-dim); }
.ah-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--off); box-shadow: 0 0 8px currentColor; color: var(--off); }
.agent-health.ok .ah-dot { background: var(--ok); color: var(--ok); }
.agent-health.warn .ah-dot { background: var(--warn); color: var(--warn); }
.agent-health.crit .ah-dot { background: var(--crit); color: var(--crit); }
.version-line { text-align: center; color: var(--text-mute); font-size: 10.5px; font-family: var(--mono); }

/* ─────────────────────────────── Üst çubuk */
.main { display: flex; flex-direction: column; height: 100vh; overflow: hidden; position: relative; }
.topbar {
  height: var(--topbar-h); flex-shrink: 0; display: flex; align-items: center; gap: 16px;
  padding: 0 22px; border-bottom: 1px solid var(--border);
  background: rgba(11, 18, 32, 0.82); backdrop-filter: blur(14px); position: relative; z-index: 15;
}
.sidebar-toggle { display: none; }
.topbar-title { flex: 1; min-width: 0; }
.topbar-title h2 { margin: 0; font-size: 18px; }
.topbar-title p { margin: 2px 0 0; color: var(--text-mute); font-size: 12px; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.live-toggle { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--text-dim); background: var(--bg-2); border: 1px solid var(--border); padding: 6px 11px; border-radius: 10px; cursor: pointer; }
.live-toggle input { display: none; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--off); }
.live-toggle input:checked + .live-dot { background: var(--ok); box-shadow: 0 0 10px var(--ok); animation: livepulse 1.6s infinite; }
@keyframes livepulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.user-chip { display: flex; align-items: center; gap: 9px; padding: 5px 10px 5px 5px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border); cursor: pointer; transition: .15s; }
.user-chip:hover { border-color: var(--border-strong); }
.uc-avatar { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; background: linear-gradient(140deg, var(--brand), var(--brand-2)); }
.uc-meta { display: flex; flex-direction: column; line-height: 1.15; max-width: 130px; }
.uc-meta b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uc-meta small { font-size: 10.5px; color: var(--text-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uc-caret { color: var(--text-mute); font-size: 10px; }

.user-menu { position: absolute; right: 22px; top: calc(var(--topbar-h) - 6px); width: 240px; background: var(--surface-solid); border: 1px solid var(--border-strong); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px; z-index: 60; animation: pop .16s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.um-head { padding: 10px 12px; border-bottom: 1px solid var(--border); margin-bottom: 5px; display: flex; flex-direction: column; gap: 3px; }
.um-head b { font-size: 13px; }
.um-head small { color: var(--text-mute); font-size: 11.5px; }
.um-item { display: block; width: 100%; text-align: left; background: transparent; border: 0; color: var(--text-dim); padding: 9px 12px; border-radius: 8px; cursor: pointer; font-size: 12.5px; font-family: inherit; }
.um-item:hover { background: var(--bg-2); color: var(--text); }
.um-item.danger:hover { background: rgba(239, 68, 68, 0.14); color: #fca5a5; }

/* ─────────────────────────────── İçerik */
.content { flex: 1; overflow-y: auto; padding: 22px; }
.view { display: flex; flex-direction: column; gap: 18px; animation: fadein .3s ease; }
/* KRİTİK: [hidden] kuralı, .view display:flex kuralından sonra gelmeli; aksi halde
   gizli görünümler yine de görünür kalır ve menü değişse bile sayfa değişmez. */
.view[hidden] { display: none !important; }
/* KRİTİK: Giriş formları (.auth-form { display:flex }) ve diğer display'i ezilen öğeler
   hidden özniteliğini yok sayar. Bu global kural, hidden özniteliğini her zaman uygular;
   aksi halde "Kullanıcı & Parola", "Telefon OTP" ve "E-posta OTP" formları aynı anda görünür. */
[hidden] { display: none !important; }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } }

.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.toolbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.toolbar-title-sm { color: var(--text-dim); font-size: 12.5px; }
.seg { display: inline-flex; background: var(--bg-2); border: 1px solid var(--border); border-radius: 11px; padding: 3px; }
.seg button { border: 0; background: transparent; color: var(--text-dim); padding: 7px 13px; border-radius: 8px; cursor: pointer; font-size: 12px; font-weight: 600; font-family: inherit; transition: .15s; }
.seg button.active { background: linear-gradient(140deg, var(--brand), var(--brand-2)); color: #fff; }
.select { width: auto; min-width: 130px; font-size: 12.5px; padding: 8px 11px; }
/* Genel form denetimi: tam genişlik, tema uyumlu kenarlık/odak. JS ile üretilen
   arama kutuları (ör. sunucu detay → Yazılım Ara) bu sınıfı kullanır. */
.form-control {
  width: 100%; padding: 9px 12px; font-size: 12.5px; font-family: inherit;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.form-control:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18); }
.search { position: relative; }
.search input { padding-right: 34px; min-width: 210px; font-size: 12.5px; padding-top: 9px; padding-bottom: 9px; }
.search-icon { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); color: var(--text-mute); }

/* ─────────────────────────────── Kartlar */
.card { background: var(--surface); backdrop-filter: blur(12px); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.card-head { display: flex; align-items: center; gap: 12px; padding: 15px 18px; border-bottom: 1px solid var(--border); }
.card-head h3 { margin: 0; font-size: 14.5px; font-weight: 700; }
.card-hint { color: var(--text-mute); font-size: 11.5px; margin-left: auto; }
.card-head .search { margin-left: auto; }
.card-body { padding: 16px 18px; }
.card-body.scroll { overflow-y: auto; max-height: calc(100vh - 260px); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* ─────────────────────────────── Sayfa geçişi yükleme katmanı */
/* Geçişlerde içerik hazır olana kadar yumuşak bir katman; 150 ms'den kısa
   geçişlerde hiç görünmez (titreme yok). Marka rengiyle uyumlu, abartısız. */
.view-loading {
  position: fixed;
  left: 0; right: 0; bottom: 0; top: 0;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--bg-0, #0A0E27) 62%, transparent);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease-out;
  z-index: 60;
}
.view-loading.show { opacity: 1; pointer-events: auto; }
.view-loading .vl-box {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 20px;
  border-radius: 12px;
  background: var(--surface, #12173A);
  border: 1px solid var(--border, rgba(255,255,255,.08));
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  color: var(--text, #CBD5E1);
  font-size: 13px;
  font-weight: 500;
}
.view-loading .vl-spinner {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--brand, #0044CC) 28%, transparent);
  border-top-color: var(--brand, #0044CC);
  animation: vl-spin 700ms linear infinite;
}
@keyframes vl-spin { to { transform: rotate(360deg); } }


.kpi-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
/* Anasayfa 12 KPI kartı: HER ZAMAN 4 sütun × 3 satır.
   Ekran daralsa da sütun sayısı değişmez (2 sütuna düşüp 6 satır olmaz);
   bunun yerine kart içeriği küçülür ve metinler tek satırda kısaltılır.
   Böylece 12 kutu her koşulda dengeli 3 satıra oturur. */
#kpiStrip {
  --kpi-cols: 4;
  grid-template-columns: repeat(var(--kpi-cols), minmax(0, 1fr));
  grid-auto-rows: 1fr;          /* üç satır eşit yükseklikte */
  align-items: stretch;
}
#kpiStrip > .kpi {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 14px 14px 14px 18px;
}
#kpiStrip .kpi-label,
#kpiStrip .kpi-sub {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 100%;
}
#kpiStrip .kpi-label { letter-spacing: .2px; }
#kpiStrip .kpi-value {
  line-height: 1.15;
  font-size: 24px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#kpiStrip .kpi-sub { font-size: 11px; }
/* Dar ekranlarda sütun sayısı korunur; yalnızca tipografi ve boşluk küçülür. */
@media (max-width: 1400px) {
  #kpiStrip { gap: 12px; }
  #kpiStrip .kpi-value { font-size: 22px; }
}
@media (max-width: 1100px) {
  #kpiStrip { gap: 10px; }
  #kpiStrip > .kpi { padding: 12px 10px 12px 14px; }
  #kpiStrip .kpi-value { font-size: 20px; }
  #kpiStrip .kpi-label { font-size: 10.5px; }
  #kpiStrip .kpi-sub { font-size: 10px; }
}
@media (max-width: 780px) {
  #kpiStrip {
    gap: 8px;
    /* Kartlar okunamayacak kadar daralmasın: sütun sayısı korunur (yine 3 satır),
       gerekirse şerit yatay kaydırılır. */
    grid-template-columns: repeat(var(--kpi-cols), minmax(104px, 1fr));
    overflow-x: auto;
    padding-bottom: 2px;
  }
  #kpiStrip > .kpi { padding: 10px 8px 10px 12px; }
  #kpiStrip .kpi-value { font-size: 17px; }
  #kpiStrip .kpi-label { font-size: 9.5px; letter-spacing: 0; }
  #kpiStrip .kpi-sub { font-size: 9.5px; }
  #kpiStrip .kpi-value small { font-size: 10px; }
}
.kpi-strip.small { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.kpi {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; overflow: hidden; transition: .2s;
}
.kpi:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.kpi::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--kc, var(--brand)); }
.kpi.k-ok { --kc: var(--ok); } .kpi.k-warn { --kc: var(--warn); } .kpi.k-crit { --kc: var(--crit); }
.kpi.k-info { --kc: var(--info); } .kpi.k-brand { --kc: var(--brand); } .kpi.k-off { --kc: var(--off); }
.kpi-label { color: var(--text-mute); font-size: 11.5px; font-weight: 600; letter-spacing: .3px; text-transform: uppercase; }
.kpi-value { font-size: 26px; font-weight: 800; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.kpi-sub { color: var(--text-dim); font-size: 11.5px; }
.kpi-value small { font-size: 13px; font-weight: 600; color: var(--text-mute); margin-left: 3px; }

/* ─────────────────────────────── Mini gauge + sparkline */
.mini-gauges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mini-gauge { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.mg-ring { --val: 0; --col: var(--brand); width: 92px; height: 92px; border-radius: 50%; position: relative;
  background: conic-gradient(var(--col) calc(var(--val) * 1%), rgba(120, 145, 190, 0.14) 0);
  display: grid; place-items: center; transition: --val .6s ease; }
.mg-ring::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--bg-1); box-shadow: inset 0 2px 8px rgba(0,0,0,.5); }
.mg-ring b { position: relative; font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; }
.mg-label { font-size: 11.5px; color: var(--text-dim); font-weight: 600; }
.net-spark { margin-top: 16px; background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; }
.net-spark-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-dim); margin-bottom: 6px; }
.net-spark-row b { color: var(--text); font-family: var(--mono); }

/* ─────────────────────────────── Tablolar */
.table-host { overflow-x: auto; }
table.grid { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.grid th { text-align: left; padding: 10px 12px; color: var(--text-mute); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.grid td { padding: 11px 12px; border-bottom: 1px solid rgba(120, 145, 190, 0.08); vertical-align: middle; }
table.grid tbody tr { transition: .12s; }
table.grid tbody tr:hover { background: rgba(99, 102, 241, 0.06); }
table.grid tbody tr.clickable { cursor: pointer; }
.cell-name { display: flex; flex-direction: column; gap: 2px; }
.cell-name b { font-size: 13px; }
.cell-name small { color: var(--text-mute); font-family: var(--mono); font-size: 11px; }
.row-actions { display: flex; gap: 6px; }
.empty-state { color: var(--text-mute); font-size: 12.5px; text-align: center; padding: 34px 12px; }

/* ─────────────────────────────── Etiketler */
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 20px; white-space: nowrap; }
.tag.t-ok { background: rgba(34, 197, 94, 0.14); color: #86efac; }
.tag.t-warn { background: rgba(245, 158, 11, 0.14); color: #fcd34d; }
.tag.t-crit { background: rgba(239, 68, 68, 0.16); color: #fca5a5; }
.tag.t-info { background: rgba(56, 189, 248, 0.14); color: #7dd3fc; }
.tag.t-off { background: rgba(100, 116, 139, 0.18); color: #cbd5e1; }
.tag.t-brand { background: rgba(99, 102, 241, 0.16); color: #a5b4fc; }
.tag.t-plain { background: var(--bg-2); color: var(--text-dim); border: 1px solid var(--border); }
.tag .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.kind-icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 15px; background: var(--bg-2); border: 1px solid var(--border); flex-shrink: 0; }

/* Bar göstergesi */
.bar { height: 6px; border-radius: 6px; background: rgba(120, 145, 190, 0.14); overflow: hidden; min-width: 60px; }
.bar > i { display: block; height: 100%; border-radius: 6px; background: var(--ok); transition: width .4s; }
.bar.warn > i { background: var(--warn); }
.bar.crit > i { background: var(--crit); }
.bar.info > i { background: var(--info); }
.meter-cell { display: flex; align-items: center; gap: 8px; }
.meter-cell .mv { font-family: var(--mono); font-size: 12px; min-width: 42px; text-align: right; }

/* ─────────────────────────────── Performans görünümü */
.monitor-split { display: grid; grid-template-columns: 340px 1fr; gap: 18px; align-items: start; }
.pane { min-height: 300px; }
.list-host { display: flex; flex-direction: column; gap: 6px; }
.mon-item { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 11px; background: var(--bg-2); border: 1px solid transparent; cursor: pointer; transition: .15s; }
.mon-item:hover { border-color: var(--border-strong); }
.mon-item.active { border-color: var(--brand); background: linear-gradient(140deg, rgba(99,102,241,.16), rgba(139,92,246,.08)); }
.mon-item .mi-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mon-item .mi-main b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mon-item .mi-main small { color: var(--text-mute); font-size: 11px; font-family: var(--mono); }
.mon-item .mi-metrics { display: flex; gap: 10px; }
.metric-chip { display: flex; flex-direction: column; align-items: center; font-size: 10.5px; color: var(--text-mute); }
.metric-chip b { font-size: 12.5px; color: var(--text); font-family: var(--mono); }

.detail-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-bottom: 18px; }
.dm { background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; }
.dm-label { color: var(--text-mute); font-size: 11px; }
.dm-value { font-size: 20px; font-weight: 700; margin-top: 3px; font-variant-numeric: tabular-nums; }
.dm-value small { font-size: 12px; color: var(--text-mute); }
.chart-host { position: relative; height: 220px; }
.chart-host.tall { height: 280px; }

/* ─────────────────────────────── Topoloji */
.topo-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 18px; height: calc(100vh - 210px); }
.topo-canvas-host { position: relative; background: radial-gradient(700px 500px at 50% 30%, rgba(99,102,241,.08), transparent 70%), var(--bg-1); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.topo-canvas { width: 100%; height: 100%; display: block; cursor: grab; }
.topo-canvas.panning { cursor: grabbing; }
.topo-canvas.linking { cursor: crosshair; }
.topo-canvas.dragging-node { cursor: move; }
.topo-canvas-host .topn { cursor: move; }
.topo-canvas.linking .topn { cursor: crosshair; }

/* Kablo modu butonu */
.topo-cable-btn.active { background: linear-gradient(140deg, var(--brand), var(--brand-2)) !important; color: #fff !important; border-color: transparent !important; box-shadow: 0 0 12px var(--brand-glow); }

/* Kablo modu bilgi şeridi */
.topo-mode-banner { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 9px 14px; border-radius: 11px;
  background: linear-gradient(90deg, rgba(99,102,241,.16), rgba(34,211,238,.10)); border: 1px solid var(--brand);
  color: var(--text); font-size: 12.5px; }
.topo-mode-banner[hidden] { display: none; }
.topo-mode-banner .tb-icon { font-size: 15px; }
.topo-mode-banner #topoBannerText { flex: 1; }

/* Bağlantı tutamacı: kablo modunda ve hover'da görünür */
.topn .connect-handle { fill: var(--brand); stroke: var(--surface-solid); stroke-width: 2; opacity: 0; transition: opacity .13s; pointer-events: none; }
.topn:hover .connect-handle { opacity: .9; }
.topo-canvas.linking .topn .connect-handle { opacity: 1; }
.topn.dragging .node-box { opacity: .85; }
.topn.dragging { filter: drop-shadow(0 6px 14px rgba(0,0,0,.5)); }
.topo-tree { overflow-y: auto; background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.topo-inspector { background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; overflow-y: auto; }
.topo-legend { position: absolute; left: 14px; bottom: 14px; display: flex; flex-wrap: wrap; gap: 10px; background: rgba(7,10,18,.7); backdrop-filter: blur(8px); border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; font-size: 11px; color: var(--text-dim); max-width: calc(100% - 28px); }
.topo-legend span { display: inline-flex; align-items: center; gap: 6px; }
.topo-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.topo-hint { position: absolute; right: 14px; top: 14px; background: rgba(7,10,18,.7); backdrop-filter: blur(8px); border: 1px solid var(--border); border-radius: 10px; padding: 7px 12px; font-size: 11px; color: var(--text-mute); max-width: 320px; }

/* SVG düğüm ve kablo stilleri */
.topn { cursor: pointer; }
.topn .node-box { fill: var(--surface-solid); stroke: var(--border-strong); stroke-width: 1.4; transition: .15s; }
.topn:hover .node-box { stroke: var(--brand); }
.topn.selected .node-box { stroke: var(--brand); stroke-width: 2.4; filter: drop-shadow(0 0 10px var(--brand-glow)); }
.topn .node-label { fill: var(--text); font-size: 13px; font-weight: 600; font-family: var(--sans); }
.topn .node-sub { fill: var(--text-mute); font-size: 10.5px; font-family: var(--mono); }
.topn .node-glyph { fill: var(--text-dim); font-size: 18px; }
.topn.online .node-box { stroke: rgba(34,197,94,.5); }
.topn.degraded .node-box { stroke: rgba(245,158,11,.6); }
.topn.critical .node-box { stroke: rgba(239,68,68,.7); }
.topn.offline .node-box { stroke: rgba(100,116,139,.5); }
.topn .health-dot { r: 4.5; }

.cable { stroke: rgba(148, 163, 184, 0.55); stroke-width: 2; fill: none; }
.cable.auto { stroke-dasharray: 6 5; opacity: .7; }
.cable.active { stroke: var(--accent); stroke-width: 3; filter: drop-shadow(0 0 6px rgba(34,211,238,.6)); }
.cable-hit { stroke: transparent; stroke-width: 16; fill: none; cursor: pointer; }
.cable-packet { fill: var(--accent); opacity: .9; }

.tree-node { display: flex; flex-direction: column; }
/* Hiyerarşi ağacı: net, okunur satırlar ve tür bazlı renk/girinti. */
.tree-summary { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px 4px 14px; margin-bottom: 6px; border-bottom: 1px solid var(--border); }
.tree-summary .ts-item { font-size: 12px; color: var(--text-dim); }
.tree-summary .ts-item b { color: var(--text); font-size: 13px; }
.tree-summary .ts-expand { margin-left: 0; }
.tree-summary .ts-expand:first-of-type { margin-left: auto; }

.tree-item {
  display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 9px;
  cursor: pointer; font-size: 12.5px; border-left: 3px solid transparent; transition: background .12s, border-color .12s;
}
.tree-item:hover { background: var(--bg-2); }
.tree-item.is-device:hover { background: rgba(99,102,241,.10); }
.tree-item b { font-weight: 600; }
/* Tür bazlı vurgu çubuğu — hangi seviyede olduğunuz bir bakışta belli olur. */
.tree-item[data-node-type="site"] { border-left-color: var(--brand); }
.tree-item[data-node-type="room"] { border-left-color: var(--accent); }
.tree-item[data-node-type="rack"] { border-left-color: var(--warn); }
.tree-item[data-node-type="group"] { border-left-color: var(--border-strong); }
.tree-item[data-node-type="site"] > .tree-label > b { font-size: 13.5px; }
.tree-item[data-node-type="rack"] > .tree-label > b,
.tree-item[data-node-type="room"] > .tree-label > b { font-size: 13px; }

.tree-children { margin-left: 18px; border-left: 1px dashed var(--border); padding-left: 10px; }
.tree-root > .tree-item { margin-bottom: 4px; }
.tree-item .ti-count { margin-left: auto; color: var(--text-mute); font-size: 11px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 20px; padding: 1px 8px; }
.tree-caret { width: 12px; color: var(--text-mute); font-size: 10px; transition: transform .15s; display: inline-block; }
.tree-caret.empty { visibility: hidden; }
.tree-item.collapsed .tree-caret { transform: rotate(-90deg); }
.tree-ic { font-size: 13px; width: 16px; text-align: center; }
.tree-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.tree-label { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.tree-label > b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tree-type { color: var(--text-mute); font-size: 10px; letter-spacing: .3px; text-transform: uppercase; }
.tree-alert { flex: 0 0 auto; }
.pager { display: flex; gap: 6px; justify-content: center; padding: 14px 0; flex-wrap: wrap; }
.pager.services-pager {
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  padding: 12px 4px 4px;
  border-top: 1px solid var(--border, #E5E7EB);
  margin-top: 8px;
}
.pager.services-pager .pager-info {
  font-size: 12px;
  color: var(--text-mute, #6B7280);
  min-width: 96px;
}
.pager.services-pager > .pager { padding: 0; }

.insp-block { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.insp-block h4 { margin: 0 0 6px; font-size: 13px; }
.insp-row { display: flex; justify-content: space-between; font-size: 12px; padding: 5px 0; border-bottom: 1px solid rgba(120,145,190,.08); }
.insp-row span { color: var(--text-mute); }
.insp-link { display: flex; align-items: center; gap: 8px; padding: 7px 9px; background: var(--bg-2); border-radius: 8px; font-size: 12px; margin-bottom: 5px; }
.insp-link .cable-mini { width: 22px; height: 12px; }

/* ─────────────────────────────── Çekmece */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(3,6,12,.6); backdrop-filter: blur(3px); z-index: 200; animation: fadein .2s; }
.drawer { position: fixed; right: 0; top: 0; bottom: 0; width: min(480px, 94vw); background: var(--surface-solid); border-left: 1px solid var(--border-strong); z-index: 201; display: flex; flex-direction: column; box-shadow: -20px 0 60px -20px rgba(0,0,0,.9); animation: slidein .28s cubic-bezier(.2,.8,.2,1); }
.drawer.drawer-lg { width: min(880px, 96vw); }
@keyframes slidein { from { transform: translateX(30px); opacity: .6; } }
.drawer-head { display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.drawer-head-main { flex: 1; min-width: 0; }
.drawer-head h3 { margin: 0; font-size: 17px; }
.drawer-sub { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; font-size: 12px; color: var(--text-mute); }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 18px; }

/* Detay ekranı sekmeleri */
.drawer-tabs { display: flex; gap: 4px; padding: 0 14px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.drawer-tabs button { appearance: none; background: none; border: none; border-bottom: 2px solid transparent; color: var(--text-mute); font-size: 12.5px; font-weight: 600; padding: 11px 12px; cursor: pointer; white-space: nowrap; transition: color .15s, border-color .15s; }
.drawer-tabs button:hover { color: var(--text); }
.drawer-tabs button.active { color: var(--brand); border-bottom-color: var(--brand); }
.drawer-tabs button .tab-count { display: inline-block; margin-left: 6px; background: rgba(120,145,190,.14); color: var(--text-mute); font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 999px; }
.drawer-tabs button.active .tab-count { background: rgba(56,132,255,.18); color: var(--brand); }

/* Sağlık şeridi (özet kartlar) */
.asset-hero { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.asset-hero .hero-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; }
.asset-hero .hero-card .hc-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .6px; color: var(--text-mute); font-weight: 700; }
.asset-hero .hero-card .hc-value { margin-top: 5px; font-size: 18px; font-weight: 700; }
.asset-hero .hero-card .hc-sub { font-size: 11px; color: var(--text-mute); margin-top: 2px; }
.asset-hero .hero-card.k-ok .hc-value { color: var(--ok); }
.asset-hero .hero-card.k-warn .hc-value { color: var(--warn); }
.asset-hero .hero-card.k-crit .hc-value { color: var(--crit); }

/* Sağlık kontrol listesi */
.health-list { display: flex; flex-direction: column; gap: 8px; }
.health-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.health-item .hi-icon { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.health-item .hi-icon.ok { background: rgba(34,197,94,.16); color: var(--ok); }
.health-item .hi-icon.warn { background: rgba(245,158,11,.16); color: var(--warn); }
.health-item .hi-icon.crit { background: rgba(239,68,68,.16); color: var(--crit); }
.health-item .hi-icon.off { background: rgba(120,145,190,.14); color: var(--text-mute); }
.health-item .hi-main { flex: 1; min-width: 0; }
.health-item .hi-main b { font-size: 13px; }
.health-item .hi-main small { display: block; color: var(--text-mute); font-size: 11.5px; margin-top: 1px; }
.health-item .hi-val { font-size: 12px; font-weight: 700; }

/* Güncelleme bandı */
.update-banner { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.update-banner.warn { background: rgba(245,158,11,.08); border-color: rgba(245,158,11,.3); }
.update-banner.crit { background: rgba(239,68,68,.08); border-color: rgba(239,68,68,.3); }
.update-banner.ok { background: rgba(34,197,94,.07); border-color: rgba(34,197,94,.25); }
.update-banner .ub-icon { font-size: 20px; }
.update-banner .ub-main { flex: 1; }
.update-banner .ub-main b { font-size: 13px; }
.update-banner .ub-main small { display: block; color: var(--text-mute); font-size: 11.5px; margin-top: 2px; }
.update-banner .ub-actions { display: flex; gap: 8px; flex: none; flex-wrap: wrap; }
.update-banner ul { margin: 6px 0 0; padding-left: 18px; font-size: 11.5px; color: var(--text-mute); }

.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 16px; }
@media (max-width: 720px) { .asset-hero { grid-template-columns: repeat(2, 1fr); } .spec-grid { grid-template-columns: 1fr; } }
.detail-section h4 { margin: 0 0 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--text-mute); }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.detail-kv { display: flex; flex-direction: column; gap: 2px; }
.detail-kv span { color: var(--text-mute); font-size: 11px; }
.detail-kv b { font-size: 12.5px; font-weight: 600; word-break: break-word; }

/* ─────────────────────────────── Bildirimler (toast) */
.toast-host { position: fixed; right: 20px; bottom: 20px; z-index: 500; display: flex; flex-direction: column; gap: 10px; }
.toast { min-width: 260px; max-width: 380px; background: var(--surface-solid); border: 1px solid var(--border-strong); border-left: 3px solid var(--brand); border-radius: var(--radius-sm); padding: 12px 15px; box-shadow: var(--shadow); animation: toastin .28s cubic-bezier(.2,.8,.2,1); }
@keyframes toastin { from { transform: translateX(40px); opacity: 0; } }
.toast.ok { border-left-color: var(--ok); } .toast.warn { border-left-color: var(--warn); }
.toast.crit { border-left-color: var(--crit); } .toast.info { border-left-color: var(--info); }
.toast b { display: block; font-size: 12.5px; margin-bottom: 2px; }
.toast span { font-size: 12px; color: var(--text-dim); }

/* ─────────────────────────────── SweetAlert2 uyumu (koyu tema) */
.swal2-popup.seenose-swal { background: var(--surface-solid) !important; border: 1px solid var(--border-strong); border-radius: var(--radius-lg) !important; color: var(--text) !important; font-family: var(--sans) !important; }
.swal2-popup.seenose-swal .swal2-title { color: var(--text) !important; font-size: 19px !important; }
.swal2-popup.seenose-swal .swal2-html-container { color: var(--text-dim) !important; font-size: 13px !important; }
.swal2-popup.seenose-swal .swal2-input, .swal2-popup.seenose-swal .swal2-select, .swal2-popup.seenose-swal .swal2-textarea {
  background: var(--bg-2) !important; border: 1px solid var(--border) !important; color: var(--text) !important; border-radius: var(--radius-sm) !important;
}
.swal2-popup.seenose-swal .swal2-label, .swal2-popup.seenose-swal label { color: var(--text-dim) !important; font-size: 12.5px !important; }
.swal2-styled.swal2-confirm { background: linear-gradient(140deg, var(--brand), var(--brand-2)) !important; }
.swal2-styled.swal2-cancel { background: var(--bg-3) !important; }
.swal2-popup.seenose-swal .swal2-validation-message { background: rgba(239,68,68,.14) !important; color: #fca5a5 !important; }
.seenose-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; text-align: left; }
.seenose-form-grid .full { grid-column: 1 / -1; }
.seenose-form-grid label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--text-dim); }
.seenose-form-grid input, .seenose-form-grid select { font-size: 13px; padding: 9px 11px; }

/* ── Bölümlü diyalog formu (politika ekleme vb.) ── */
.seenose-form { display: flex; flex-direction: column; gap: 14px; text-align: left; }
.form-section { background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: 13px 14px; }
.form-section .fs-title { margin: 0 0 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-mute); }
.fs-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.fs-head .fs-title { margin: 0; }
.fs-count { font-size: 11px; color: var(--brand); font-weight: 600; background: var(--brand-glow); padding: 2px 8px; border-radius: 20px; }

/* Kişi seçici: aranabilir onay listesi */
.contact-filter { width: 100%; margin-bottom: 8px; background: var(--bg-1); border: 1px solid var(--border); color: var(--text); border-radius: 9px; padding: 8px 10px; font-size: 12.5px; }
.contact-filter::placeholder { color: var(--text-mute); }
.pick-list { display: flex; flex-direction: column; gap: 5px; max-height: 210px; overflow-y: auto; padding-right: 3px; }
.pick-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; border: 1px solid var(--border); background: var(--bg-1); cursor: pointer; transition: .13s; }
.pick-row:hover { border-color: var(--border-strong); background: var(--bg-3); }
.pick-row:has(input:checked) { border-color: var(--brand); background: var(--brand-glow); }
.pick-row input[type="checkbox"] { width: auto; accent-color: var(--brand); }
.pick-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pick-main b { font-size: 12.5px; color: var(--text); font-weight: 600; }
.pick-main small { font-size: 10.5px; color: var(--text-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-channels { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.pick-channels .tag { font-size: 9px; padding: 1px 6px; }
.pick-actions { display: flex; gap: 14px; margin-top: 8px; }

/* ── AD arama bileşeni (diyalog içi) ── */
.ad-search-field { display: flex; flex-direction: column; gap: 5px; }
.ad-label { font-size: 12px; color: var(--text-dim); }
.ad-search { display: flex; flex-direction: column; gap: 8px; }
.ad-search-bar { display: flex; gap: 8px; }
.ad-search-bar .ad-q { flex: 1; }
.ad-results { display: flex; flex-direction: column; gap: 5px; max-height: 200px; overflow-y: auto; }
.ad-result { display: flex; align-items: center; gap: 10px; text-align: left; padding: 8px 10px; border-radius: 9px; border: 1px solid var(--border); background: var(--bg-1); cursor: pointer; color: var(--text); font-family: inherit; }
.ad-result:hover { border-color: var(--brand); background: var(--bg-3); }
.ad-avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 12px; color: #fff; background: linear-gradient(140deg, var(--brand), var(--brand-2)); flex: none; }
.ad-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ad-main b { font-size: 12.5px; }
.ad-main small { font-size: 10.5px; color: var(--text-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-side { font-size: 10.5px; color: var(--text-mute); font-family: var(--mono); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-status { color: var(--text-mute); font-size: 11px; }
.ad-empty { padding: 12px; text-align: center; color: var(--text-mute); font-size: 11.5px; }

/* Hızlı kural ön ayarları */
.preset-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.preset-btn { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 10px; cursor: pointer;
  background: var(--bg-1); border: 1px solid var(--border); color: var(--text); font-family: inherit; font-size: 12.5px; text-align: left; transition: .13s; }
.preset-btn:hover { border-color: var(--brand); background: var(--bg-3); }
.preset-btn span { font-size: 15px; }

/* ─────────────────────────────── Duyarlı */
@media (max-width: 1180px) {
  .grid-2 { grid-template-columns: 1fr; }
  .monitor-split { grid-template-columns: 1fr; }
  .topo-wrap { grid-template-columns: 1fr; height: auto; }
  .topo-canvas-host { height: 60vh; }
  .topo-inspector { max-height: 40vh; }
}
@media (max-width: 900px) {
  .auth-screen { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: var(--sidebar-w); transform: translateX(-100%); transition: transform .25s; }
  .sidebar.open { transform: none; box-shadow: 20px 0 60px -20px #000; }
  .sidebar-toggle { display: grid; }
  .uc-meta { display: none; }
  .kpi-strip { grid-template-columns: repeat(2, 1fr); }
  /* kpiStrip özel kuralı: dar ekranda da 4 sütun × 3 satır korunur. */
}

/* ═══════════════════════════════════════════════════════════════════════════════════════
   SeeNose v2 — Çok yöntemli giriş, ağaç gezinme, karşılama sayfası, rehberli tur
   ═══════════════════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────── Çok yöntemli giriş */
.auth-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 20px; }
.am { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: var(--radius-sm);
  background: var(--bg-2); border: 1px solid var(--border); color: var(--text-dim); cursor: pointer;
  font-family: inherit; font-size: 11px; font-weight: 600; transition: .15s; text-align: center; }
.am:hover { border-color: var(--border-strong); color: var(--text); }
.am.active { background: linear-gradient(140deg, rgba(99,102,241,.22), rgba(139,92,246,.16)); border-color: var(--brand); color: #fff; }
.am.disabled { opacity: .38; cursor: not-allowed; }
.am-ic { font-size: 17px; }
.auth-hint { margin: 0; color: var(--text-mute); font-size: 11.5px; line-height: 1.5; }
.otp-input { letter-spacing: 8px; font-family: var(--mono); font-size: 19px; text-align: center; font-weight: 700; }

/* ─────────────────────────────── Ağaç gezinme */
.nav.tree { gap: 6px; }
.nav-group { display: flex; flex-direction: column; }
.nav-group-head { display: flex; align-items: center; gap: 9px; width: 100%; background: transparent; border: 0;
  color: var(--text-mute); font-family: inherit; font-size: 10.5px; font-weight: 800; letter-spacing: 1.3px;
  text-transform: uppercase; padding: 9px 10px 7px; cursor: pointer; }
.nav-group-head:hover { color: var(--text-dim); }
.ng-caret { transition: transform .18s; font-size: 9px; }
.nav-group.collapsed .ng-caret { transform: rotate(-90deg); }
.ng-ic { color: var(--brand); font-size: 12px; }
.nav-group-body { display: flex; flex-direction: column; gap: 3px; overflow: hidden; }
.nav-group.collapsed .nav-group-body { display: none; }

/* ─────────────────────────────── Karşılama sayfası */
.landing-hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 26px; align-items: center;
  padding: 34px; border-radius: var(--radius-lg); border: 1px solid var(--border);
  background: linear-gradient(150deg, rgba(99,102,241,.16), rgba(34,211,238,.06) 55%, transparent); overflow: hidden; }
.lh-badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: #c7d2fe; background: rgba(99,102,241,.2); border: 1px solid rgba(99,102,241,.4); padding: 5px 12px; border-radius: 20px; }
.lh-text h1 { margin: 16px 0 12px; font-size: 33px; line-height: 1.15; letter-spacing: -.4px; }
.lh-text p { margin: 0; color: var(--text-dim); font-size: 14.5px; line-height: 1.7; max-width: 580px; }
.lh-actions { margin-top: 22px; display: flex; gap: 11px; flex-wrap: wrap; }
.lh-visual { display: grid; place-items: center; min-height: 220px; }
.lh-visual svg { width: 100%; max-width: 360px; height: auto; }
.landing-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.lh-stat { padding: 18px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface);
  cursor: pointer; transition: .15s; }
.lh-stat:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.lh-stat .v { font-size: 27px; font-weight: 800; }
.lh-stat .l { font-size: 12px; color: var(--text-dim); margin-top: 3px; }
.lh-stat .s { font-size: 11px; color: var(--text-mute); margin-top: 2px; }
.section-title { font-size: 16px; margin: 6px 0 0; letter-spacing: .3px; }
.landing-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.lf { padding: 20px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); cursor: pointer; transition: .15s; }
.lf:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.lf .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 20px;
  background: linear-gradient(140deg, var(--brand), var(--brand-2)); margin-bottom: 13px; }
.lf h4 { margin: 0 0 6px; font-size: 14.5px; }
.lf p { margin: 0; color: var(--text-dim); font-size: 12.5px; line-height: 1.6; }
.landing-deep { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 13px; }
.steps li::marker { color: var(--brand); font-weight: 800; }
.steps b { display: block; font-size: 13px; }
.steps span { color: var(--text-dim); font-size: 12.5px; line-height: 1.55; }
.pillar { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: var(--radius-sm); background: var(--bg-2); margin-bottom: 8px; }
.pillar:last-child { margin-bottom: 0; }
.pillar .ic { font-size: 18px; }
.pillar b { font-size: 13px; } .pillar small { display: block; color: var(--text-mute); font-size: 11.5px; }

/* ─────────────────────────────── Detay çekmecesi (tıklanabilir kartlar) */
.clickable { cursor: pointer; }
.clickable:hover { background: rgba(120,145,190,.06); }
.kpi.clickable:hover, .lh-stat:active { transform: translateY(-2px); }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.detail-section { margin-bottom: 18px; }
.detail-section h4 { margin: 0 0 10px; font-size: 12px; text-transform: uppercase; letter-spacing: 1.1px; color: var(--text-mute); }

/* ─────────────────────────────── YZ notu (AI Summary) kutusu */
.ai-note-box { border: 1px solid rgba(99,102,241,.4); background: rgba(99,102,241,.08);
  border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; }
.ai-note-head { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; color: var(--brand); }
.ai-note-summary { margin-top: 8px; font-size: 13px; line-height: 1.55; color: var(--text); }
.ai-note-recs-title { margin-top: 10px; font-size: 12px; font-weight: 600; color: var(--text-dim); }
.ai-note-recs { margin: 6px 0 0; padding-left: 18px; font-size: 12.5px; line-height: 1.55; color: var(--text-dim); }
.ai-note-recs li { margin-bottom: 3px; }
.ai-note-error { border-color: rgba(245,158,11,.5); background: rgba(245,158,11,.08); }
.ai-note-error .ai-note-head { color: var(--warn); }
.ai-err-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 20px;
  background: rgba(245,158,11,.18); color: var(--warn); font-size: 9.5px; letter-spacing: .4px; text-transform: none; }
.ai-note-code { margin-top: 6px; font-family: var(--mono); font-size: 10.5px; color: var(--text-mute); }
table.grid tr.row-crit > td { background: rgba(239,68,68,.10); }

/* ─────────────────────────────── Rehberli tur */
.tour-layer { position: fixed; inset: 0; z-index: 1500; pointer-events: none; }
.tour-spot { position: fixed; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(4,8,16,.72), 0 0 0 3px var(--brand), 0 0 40px rgba(99,102,241,.6);
  transition: all .28s cubic-bezier(.4,0,.2,1); pointer-events: none; }
.tour-bubble { position: fixed; width: 330px; max-width: calc(100vw - 32px); background: var(--surface-solid);
  border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
  pointer-events: auto; transition: all .28s cubic-bezier(.4,0,.2,1); }
.tour-step { font-size: 10.5px; font-weight: 800; letter-spacing: 1.2px; color: var(--brand); text-transform: uppercase; }
.tour-bubble h4 { margin: 8px 0 8px; font-size: 16px; }
.tour-bubble p { margin: 0 0 16px; color: var(--text-dim); font-size: 12.5px; line-height: 1.65; }
.tour-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tour-nav { display: flex; gap: 8px; margin-left: auto; }
.tour-cta { background: linear-gradient(140deg, rgba(99,102,241,.22), rgba(139,92,246,.16)); border-color: rgba(99,102,241,.4); color: #e0e7ff; }

/* ─────────────────────────────── Duyarlı */
@media (max-width: 960px) {
  .landing-hero { grid-template-columns: 1fr; padding: 26px; }
  .lh-text h1 { font-size: 26px; }
  .landing-deep { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════════════════════
   SeeNose v3 — Zengin performans raporları, dizin keşfi, bildirim matrisi
   ═══════════════════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────── Performans detay raporları */
.perf-toolbar { margin-bottom: 4px; }
.perf-card { margin-bottom: 16px; }
.perf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.perf-grid .perf-card { margin-bottom: 0; }
.perf-grid .chart-host { height: 220px; }

/* ─────────────────────────────── Bildirim matrisi */
.chk-inline { display: flex; flex-wrap: wrap; gap: 14px; padding: 6px 2px; }
.chk-inline .checkbox { flex-direction: row; align-items: center; gap: 7px; }

/* ── v4: anasayfa uygulama özeti + sunucu drill-down + uygulamalar ekranı ── */
.apps-home-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.apps-home-col { background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.apps-home-head { padding: 8px 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--text-mute); background: var(--bg-3); border-bottom: 1px solid var(--border); }
.apps-home-col .grid { font-size: 12px; }
.apps-home-col .grid td { padding: 6px 10px; }
.dm-drill { cursor: pointer; transition: border-color .15s, transform .1s; }
.dm-drill:hover { border-color: var(--brand); transform: translateY(-1px); }
.dm-drill .dm-label::after { content: ''; }
.btn-brand { background: var(--brand); color: #fff; border-color: transparent; }
.btn-brand:hover { filter: brightness(1.08); }
.seenose-form-grid .checkbox.row { display: flex; flex-direction: row; align-items: center; gap: 8px; font-size: 12.5px; }
.seenose-form-grid textarea { background: var(--bg-2); border: 1px solid var(--border); color: var(--text);
  border-radius: var(--radius-sm); padding: 9px 11px; font-family: inherit; font-size: 12.5px; resize: vertical; }
.seenose-form-grid select[multiple] { background: var(--bg-2); border: 1px solid var(--border); color: var(--text); border-radius: var(--radius-sm); padding: 6px; }
.ch-pill { display: inline-grid; place-items: center; min-width: 26px; height: 24px; padding: 0 7px; border-radius: 7px;
  background: rgba(34,197,94,.16); border: 1px solid rgba(34,197,94,.35); font-size: 12px; }
.ch-off { color: var(--text-mute); }

/* ─────────────────────────────── Dizin keşfi */
#dirComputerTable table, #dirEventTable table, #notifMatrix table { min-width: 760px; }

@media (max-width: 1180px) {
  .perf-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════════════════════
   SeeNose v4 — Açık/Açık tema, Ayarlar merkezi, modal input düzeltmeleri
   ═══════════════════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────── Açık (light) tema */
html[data-theme="light"] {
  --bg-0: #eef2f9;
  --bg-1: #ffffff;
  --bg-2: #f6f8fc;
  --bg-3: #e6ecf7;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-solid: #ffffff;
  --surface-2: #f2f5fb;
  --border: rgba(30, 52, 92, 0.14);
  --border-strong: rgba(30, 52, 92, 0.28);

  --text: #101a2e;
  --text-dim: #47547a;
  --text-mute: #7b88a8;

  --brand: #4f46e5;
  --brand-2: #7c3aed;
  --brand-glow: rgba(79, 70, 229, 0.28);
  --accent: #0891b2;

  --ok: #16a34a;
  --warn: #d97706;
  --crit: #dc2626;
  --info: #0284c7;
  --off: #94a3b8;

  --shadow: 0 18px 48px -24px rgba(30, 52, 92, 0.35);
  --shadow-sm: 0 6px 18px -12px rgba(30, 52, 92, 0.35);
}
html[data-theme="light"] body {
  background:
    radial-gradient(1200px 700px at 12% -8%, rgba(99, 102, 241, 0.12), transparent 60%),
    radial-gradient(900px 600px at 108% 0%, rgba(8, 145, 178, 0.08), transparent 55%),
    var(--bg-0);
}
html[data-theme="light"] .auth-visual {
  background:
    radial-gradient(800px 600px at 20% 20%, rgba(99, 102, 241, 0.18), transparent 65%),
    radial-gradient(700px 700px at 90% 90%, rgba(8, 145, 178, 0.12), transparent 60%),
    linear-gradient(160deg, #e9eefb, #f7f9ff);
}
html[data-theme="light"] .boot-screen { background: radial-gradient(700px 500px at 50% 40%, rgba(99, 102, 241, 0.14), transparent 70%), var(--bg-0); }
html[data-theme="light"] .mg-ring::before { box-shadow: inset 0 2px 8px rgba(30, 52, 92, 0.12); }
html[data-theme="light"] ::-webkit-scrollbar-thumb { background: rgba(30, 52, 92, 0.22); background-clip: content-box; }
html[data-theme="light"] .auth-error { color: #991b1b; }
html[data-theme="light"] .tour-cta { color: #312e81; }
html[data-theme="light"] .sidebar { background: linear-gradient(180deg, #fbfcff, #f2f5fb); }
html[data-theme="light"] .topbar { background: rgba(255, 255, 255, 0.82); }
html[data-theme="light"] .drawer { background: var(--surface-solid); }
html[data-theme="light"] .nav-item.active { color: var(--brand); }

#themeToggle { font-size: 15px; }

/* ─────────────────────────────── Modal / form input düzeltmesi (beyaz kutu sorunu) */
.swal2-popup.seenose-swal input:not([type="checkbox"]):not([type="radio"]),
.swal2-popup.seenose-swal select,
.swal2-popup.seenose-swal textarea,
.swal2-popup.seenose-swal .swal2-input,
.swal2-popup.seenose-swal .swal2-select,
.swal2-popup.seenose-swal .swal2-textarea {
  background: var(--bg-2) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  border-radius: var(--radius-sm) !important;
}
.swal2-popup.seenose-swal input::placeholder,
.swal2-popup.seenose-swal textarea::placeholder { color: var(--text-mute) !important; }
.seenose-form-grid input:not([type="checkbox"]):not([type="radio"]),
.seenose-form-grid select,
.seenose-form-grid textarea {
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  width: 100%;
  font-family: inherit;
}
.seenose-form-grid input[type="checkbox"],
.seenose-form-grid input[type="radio"] { width: auto; }
.seenose-form-grid select option { background: var(--surface-solid); color: var(--text); }
/* Komut kuyruğu modalı: komut listesi kesilmeden, tam genişlikte görünsün. */
.cmd-select { width: 100%; min-width: 100%; font-size: 13.5px; padding: 10px 12px; letter-spacing: .01em; }
.swal2-popup.seenose-swal .swal2-html-container { overflow: visible; }

/* ─────────────────────────────── Ayarlar görünümü */
.settings-layout { display: grid; grid-template-columns: 232px 1fr; gap: 18px; align-items: start; }
.settings-tabs { display: flex; flex-direction: column; gap: 6px; position: sticky; top: 8px; }
.st-tab {
  display: flex; align-items: center; gap: 10px; text-align: left;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-dim);
  border-radius: var(--radius-sm); padding: 11px 13px; font-size: 13px; font-family: inherit; cursor: pointer; transition: .15s;
}
.st-tab span:first-child { font-size: 15px; width: 18px; text-align: center; }
.st-tab:hover { border-color: var(--border-strong); color: var(--text); }
.st-tab.active { background: linear-gradient(140deg, rgba(99,102,241,.18), rgba(139,92,246,.12)); border-color: var(--brand); color: var(--text); }
.settings-panels { min-width: 0; }
.settings-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.sp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.sp-head h3 { margin: 0; font-size: 16px; }
.sp-desc { color: var(--text-dim); font-size: 12.5px; line-height: 1.65; margin: 4px 0 18px; }
.sp-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.sp-test-box { margin-top: 16px; background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 13px; }
.sp-test-row { display: flex; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.sp-test-row input { flex: 1; min-width: 170px; background: var(--bg-2); border: 1px solid var(--border); color: var(--text); border-radius: var(--radius-sm); padding: 9px 11px; font-size: 13px; font-family: inherit; }
.sp-console {
  margin: 0; min-height: 62px; max-height: 260px; overflow: auto;
  font-family: var(--mono); font-size: 12px; line-height: 1.6; color: var(--text-dim);
  background: var(--bg-0); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 11px 13px; white-space: pre-wrap;
}
.sp-console.ok { color: var(--ok); border-color: rgba(34,197,94,.4); }
.sp-console.err { color: var(--crit); border-color: rgba(239,68,68,.4); }
.sp-status.ok { color: var(--ok); border-color: rgba(34,197,94,.4); }
.sp-status.err { color: var(--crit); border-color: rgba(239,68,68,.4); }
.channel-status-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 6px; }
.channel-card { background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.channel-card b { font-size: 13.5px; }
.channel-card small { display: block; color: var(--text-mute); font-size: 11.5px; margin-top: 2px; }
.channel-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }

/* ─────────────────────────────── Tıklanabilir KPI kartları (Alerts drill-down) */
.kpi.clickable { cursor: pointer; }
.kpi.clickable:hover { border-color: var(--brand); }
.kpi.clickable.active { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(99,102,241,.16); }

@media (max-width: 900px) {
  .settings-layout { grid-template-columns: 1fr; }
  .settings-tabs { flex-direction: row; flex-wrap: wrap; position: static; }
  .channel-status-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════════════════════════════
   GENEL (PUBLIC) KARŞILAMA SAYFASI — kök sayfa
   ══════════════════════════════════════════════════════════════════════════════════════ */
.landing-screen {
  position: fixed; inset: 0; z-index: 880; overflow-y: auto; overflow-x: hidden;
  background:
    radial-gradient(900px 600px at 80% -5%, rgba(99,102,241,.18), transparent 60%),
    radial-gradient(700px 500px at 5% 10%, rgba(34,211,238,.12), transparent 55%),
    var(--bg-0);
  color: var(--text);
}
.landing-screen.hidden { display: none; }
.ls-header {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px clamp(16px, 5vw, 64px);
  background: rgba(7,10,18,.72); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border);
}
.ls-brand { display: flex; align-items: center; gap: 12px; }
.ls-mark {
  width: 42px; height: 42px; border-radius: 12px; display: block;
  box-shadow: 0 8px 22px -8px var(--brand-glow);
}
.ls-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.ls-brand-text b { font-size: 16px; letter-spacing: .3px; }
.ls-brand-text small { color: var(--text-dim); font-size: 11.5px; }
.ls-head-actions { display: flex; align-items: center; gap: 10px; }
.ls-main { max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 5vw, 64px) 60px; }

.ls-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 64px 0 40px; }
.ls-badge {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--accent); background: rgba(34,211,238,.1); border: 1px solid rgba(34,211,238,.28);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.ls-hero h1 { font-size: clamp(28px, 4.2vw, 46px); line-height: 1.12; margin: 0 0 16px; letter-spacing: -.5px; }
.ls-hero-text > p { font-size: clamp(14px, 1.6vw, 17px); line-height: 1.7; color: var(--text-dim); margin: 0 0 26px; max-width: 620px; }
.ls-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.btn-lg { padding: 13px 26px; font-size: 15px; border-radius: 12px; }
.ls-hero-mini { display: flex; gap: 26px; flex-wrap: wrap; }
.ls-mini { display: flex; flex-direction: column; }
.ls-mini b { font-size: 24px; font-weight: 800; letter-spacing: -.5px; }
.ls-mini span { font-size: 11.5px; color: var(--text-mute); text-transform: uppercase; letter-spacing: .6px; }
.ls-hero-visual { display: grid; place-items: center; }
.ls-hero-visual svg { width: 100%; max-width: 460px; height: auto; }

/* Güven şeridi */
.ls-trust { display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; justify-content: center;
  padding: 18px 0 8px; border-top: 1px solid var(--border); }
.ls-trust-item { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-mute); }
.ls-trust-item b { color: var(--text-dim); font-weight: 600; }

/* Hero başlığında renkli vurgu */
.ls-hero h1 span { background: linear-gradient(100deg, var(--text) 40%, var(--brand-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.ls-section { padding: 56px 0; }
.ls-section.alt { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.ls-title { font-size: clamp(22px, 3vw, 32px); margin: 0 0 8px; letter-spacing: -.4px; }
.ls-sub { color: var(--text-dim); font-size: 15px; margin: 0 0 32px; max-width: 680px; line-height: 1.6; }

.ls-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ls-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; transition: .18s;
}
.ls-card:hover { border-color: var(--border-strong); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.ls-card-ic {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 20px;
  background: linear-gradient(140deg, rgba(99,102,241,.22), rgba(34,211,238,.16)); margin-bottom: 16px;
}
.ls-card h3 { margin: 0 0 8px; font-size: 15.5px; }
.ls-card p { margin: 0; color: var(--text-dim); font-size: 13.5px; line-height: 1.65; }

.ls-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.ls-steps li { display: flex; gap: 16px; align-items: flex-start; }
.ls-step-no {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 15px; color: var(--text);
  background: linear-gradient(140deg, rgba(99,102,241,.3), rgba(139,92,246,.2)); border: 1px solid var(--border-strong);
}
.ls-steps b { display: block; font-size: 15px; margin-bottom: 4px; }
.ls-steps span { color: var(--text-dim); font-size: 13.5px; line-height: 1.65; }

.ls-problems { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ls-problem { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.ls-problem-x {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(34,197,94,.15); color: var(--ok); font-weight: 700; font-size: 14px;
}
.ls-problem b { display: block; font-size: 14.5px; margin-bottom: 5px; }
.ls-problem p { margin: 0; color: var(--text-dim); font-size: 13px; line-height: 1.6; }

.ls-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ls-feat {
  display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 16px; font-size: 13.5px; font-weight: 600;
}
.ls-feat span { font-size: 18px; }

.ls-cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: linear-gradient(140deg, rgba(99,102,241,.16), rgba(34,211,238,.1));
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg); padding: 40px; margin-top: 20px;
}
.ls-cta-band h2 { margin: 0 0 6px; font-size: clamp(20px, 2.6vw, 28px); }
.ls-cta-band p { margin: 0; color: var(--text-dim); font-size: 14.5px; }

.ls-footer {
  display: flex; align-items: center; gap: 8px; justify-content: center; flex-wrap: wrap;
  padding: 26px 16px; color: var(--text-mute); font-size: 12.5px; border-top: 1px solid var(--border);
}

@media (max-width: 1000px) {
  .ls-cards, .ls-problems { grid-template-columns: repeat(2, 1fr); }
  .ls-features { grid-template-columns: repeat(2, 1fr); }
  .ls-hero { grid-template-columns: 1fr; gap: 24px; padding-top: 40px; }
  .ls-hero-visual { order: -1; }
}
@media (max-width: 640px) {
  .ls-cards, .ls-problems, .ls-steps, .ls-features { grid-template-columns: 1fr; }
  .ls-header { padding: 12px 16px; }
  .ls-brand-text small { display: none; }
  .ls-cta-band { padding: 26px; }
}

html[data-theme="light"] .landing-screen {
  background:
    radial-gradient(900px 600px at 80% -5%, rgba(99,102,241,.12), transparent 60%),
    radial-gradient(700px 500px at 5% 10%, rgba(34,211,238,.08), transparent 55%),
    var(--bg-0);
}
html[data-theme="light"] .ls-header { background: rgba(255,255,255,.8); }
html[data-theme="light"] .ls-card:hover { box-shadow: 0 12px 30px -16px rgba(30,52,92,.35); }

.auth-back {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-bottom: 12px;
  background: none; border: none; color: var(--text-dim); font-size: 12.5px; font-family: inherit;
  cursor: pointer; padding: 4px 0; transition: .15s;
}
.auth-back:hover { color: var(--brand); }

/* ─────────────────────────────── Keşif: agent tarama kartı */
.agent-sweep-card { border-color: rgba(99,102,241,.4); background: linear-gradient(140deg, rgba(99,102,241,.10), rgba(34,211,238,.05)); }
.card-desc { margin: 0 0 16px; color: var(--text-dim); font-size: 13.5px; line-height: 1.65; }
.sweep-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.sweep-status { font-size: 12.5px; color: var(--text-dim); }

/* ─────────────────────────────── Ayar: gizli alan durumu (kayıtlı mı?) */
.card-head-actions { display: flex; align-items: center; gap: 10px; }
.secret-state { display: inline-block; margin-top: 4px; font-size: 11px; font-weight: 600; }
.secret-state.ok { color: var(--ok, #22c55e); }
.secret-state.off { color: var(--text-mute); }
input.secret-saved { border-color: rgba(34,197,94,.45); }
input.secret-saved::placeholder { color: rgba(34,197,94,.85); }

/* ─────────────────────────────── LDAP dizin ağacı */
.ldap-tree-box { margin-top: 16px; background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; }
.ldap-tree-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.ldap-tree-head b { font-size: 13px; }
.ldap-tree-counts { font-size: 11.5px; color: var(--text-mute); }
.ldap-tree { font-size: 13px; line-height: 1.5; max-height: 520px; overflow: auto; }
.lt-node { margin-left: 0; }
.lt-body { margin-left: 20px; border-left: 1px dashed var(--border); padding-left: 12px; }
.lt-node.collapsed > .lt-body { display: none; }
.lt-head { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 7px; cursor: pointer; }
.lt-head:hover { background: rgba(130,160,210,.08); }
.lt-caret { width: 14px; color: var(--text-mute); font-size: 10px; text-align: center; }
.lt-ou-ic { font-size: 13px; }
.lt-ou-name { font-weight: 600; }
.lt-badge { margin-left: 6px; font-size: 10.5px; color: var(--text-mute); font-family: var(--mono); }
.lt-item { display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 7px; }
.lt-item:hover { background: rgba(130,160,210,.06); }
.lt-item.disabled { opacity: .5; }
.lt-ic { font-size: 12px; }
.lt-name { font-weight: 500; }
.lt-meta { font-size: 11px; color: var(--text-mute); }
.lt-role {
  margin-left: auto; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 20px;
  background: rgba(99,102,241,.16); color: var(--brand);
}
.lt-role.role-Viewer { background: rgba(56,189,248,.16); color: var(--info); }
.lt-role.role-Operator { background: rgba(245,158,11,.16); color: var(--warn); }
.lt-role.role-PlatformAdmin { background: rgba(239,68,68,.16); color: var(--crit); }

/* ═══════════════════════════════════════════════════════════════════
   v6 — Canlı açık uyarı sayacı + Firewall açık kapılar port haritası
   ═══════════════════════════════════════════════════════════════════ */
.nav-badge.warn { background: var(--warn); }
.nav-badge.soft { background: rgba(130,160,210,.18); color: var(--text-dim); font-weight: 600; }
.nav-badge.soft:hover { background: rgba(130,160,210,.28); }

/* Servisler — tıklanabilir hücre ve satır içi anahtar */
.link-cell { cursor: pointer; }
.link-cell b { color: var(--brand); }
.link-cell:hover b { text-decoration: underline; }
.switch-inline { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 11.5px; color: var(--text-dim); }
.switch-inline input { accent-color: var(--brand); cursor: pointer; }
.detail-head-actions { display: flex; justify-content: flex-end; margin-bottom: 10px; }

/* Keşif — envanterden önerilen kapsam çipleri */.scope-suggest { border: 1px dashed var(--border); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; background: rgba(99,102,241,.05); }
.suggest-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 11.5px; color: var(--text-dim); margin-bottom: 8px; }
.suggest-chips { display: flex; flex-wrap: wrap; gap: 6px; max-height: 130px; overflow-y: auto; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  background: var(--bg-2); border: 1px solid var(--border); color: var(--text-dim);
  padding: 4px 9px; border-radius: 20px; font-family: var(--mono); font-size: 11px;
  transition: border-color .15s, color .15s, background .15s;
}
.chip:hover { border-color: var(--brand); color: var(--brand); background: rgba(99,102,241,.12); }
.chip small { color: var(--text-mute); font-family: var(--mono); }
.chip-add { color: var(--brand); font-weight: 700; }

.live-tick {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px;
  color: var(--text-mute); background: rgba(130,160,210,.08);
  padding: 3px 10px; border-radius: 20px; margin-left: 6px;
}
.live-tick b { font-family: var(--mono); font-size: 13px; color: var(--text); }
.live-tick.bump-up b { color: var(--crit); }
.live-tick b.bump-up { animation: bumpUp .5s ease; color: var(--crit); }
.live-tick b.bump-down { animation: bumpDown .5s ease; color: var(--ok); }
@keyframes bumpUp { 0% { transform: scale(1); } 40% { transform: scale(1.4); } 100% { transform: scale(1); } }
@keyframes bumpDown { 0% { transform: scale(1); } 40% { transform: scale(.7); } 100% { transform: scale(1); } }

.fw-group { margin-bottom: 18px; }
.fw-group-head {
  display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700;
  color: var(--text-mute); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px;
}
.fw-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px;
}
.fw-cell {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1px; padding: 10px 4px; border-radius: 10px; cursor: pointer;
  background: linear-gradient(155deg, rgba(99,102,241,.14), rgba(99,102,241,.05));
  border: 1px solid rgba(99,102,241,.28); transition: transform .12s, box-shadow .12s, border-color .12s;
}
.fw-cell:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.35); border-color: var(--brand); }
.fw-cell b { font-family: var(--mono); font-size: 15px; font-weight: 700; color: var(--text); }
.fw-cell small { font-size: 9.5px; color: var(--text-mute); max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fw-cell .fw-proto {
  position: absolute; top: 4px; right: 5px; font-size: 8.5px; font-weight: 700;
  text-transform: uppercase; color: var(--text-mute); opacity: .8;
}
.fw-cell.approved {
  background: linear-gradient(155deg, rgba(34,197,94,.16), rgba(34,197,94,.05));
  border-color: rgba(34,197,94,.34);
}
.fw-cell.approved b { color: var(--ok); }
.fw-cell.pending {
  background: linear-gradient(155deg, rgba(245,158,11,.22), rgba(239,68,68,.08));
  border-color: rgba(245,158,11,.55); animation: pendPulse 2s infinite;
}
.fw-cell.pending b { color: var(--warn); }
.fw-pend-dot {
  position: absolute; top: 5px; left: 6px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--crit); box-shadow: 0 0 0 3px rgba(239,68,68,.2);
}
.fw-cell .fw-hostcount {
  position: absolute; bottom: 4px; right: 5px; font-size: 9px; font-weight: 700;
  padding: 1px 5px; border-radius: 6px; background: rgba(99,102,241,.35); color: #fff;
}
.fw-host-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.fw-chip {
  display: inline-block; padding: 2px 8px; border-radius: 7px; font-size: 11px;
  background: rgba(130,160,210,.12); border: 1px solid rgba(130,160,210,.2); color: var(--text);
  white-space: nowrap;
}
.fw-chip.more { color: var(--text-mute); background: transparent; }
.fw-host-list { display: flex; flex-direction: column; gap: 4px; }
.fw-host-row { display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 6px 10px; border-radius: 8px; background: rgba(130,160,210,.07); font-size: 12.5px; }
.fw-host-row a { color: var(--brand); text-decoration: none; }
@keyframes pendPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(245,158,11,.4); } 50% { box-shadow: 0 0 0 5px rgba(245,158,11,0); } }

.row-off { opacity: .55; }
.btn-xs { font-size: 11px; padding: 3px 9px; }
.alert-note { padding: 9px 12px; border-radius: 9px; font-size: 12.5px; background: rgba(130,160,210,.08); }
.alert-note.crit { background: rgba(239,68,68,.12); color: var(--crit); }
.kv { display: flex; flex-direction: column; gap: 2px; }
.kv-row { display: flex; justify-content: space-between; gap: 14px; padding: 6px 2px; border-bottom: 1px dashed rgba(130,160,210,.12); font-size: 12.5px; text-align: left; }
.kv-row span { color: var(--text-mute); }
.kv-row b { font-weight: 600; text-align: right; word-break: break-word; }


/* ─────────────────────────────── Evrensel tablo geliştirici (DT) */
.dt-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 0 0 12px; margin-bottom: 2px;
}
.dt-search { position: relative; display: flex; align-items: center; }
.dt-search .dt-ic { position: absolute; left: 11px; color: var(--text-mute); font-size: 13px; pointer-events: none; }
.dt-search input {
  min-width: 220px; padding: 8px 30px 8px 30px; font-size: 12.5px; font-family: inherit;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.dt-search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(99,102,241,.14); }
.dt-search .dt-clear {
  position: absolute; right: 8px; border: 0; background: transparent; color: var(--text-mute);
  cursor: pointer; font-size: 12px; padding: 3px 5px; border-radius: 6px;
}
.dt-search .dt-clear:hover { color: var(--text); background: rgba(120,145,190,.14); }
.dt-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.dt-size { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--text-mute); }
.dt-size select {
  font-family: inherit; font-size: 12px; padding: 6px 9px; border-radius: 9px;
  background: var(--bg-2); border: 1px solid var(--border); color: var(--text);
}
.dt-info { font-size: 11.5px; color: var(--text-mute); font-variant-numeric: tabular-nums; white-space: nowrap; }
table.grid th.dt-sortable { cursor: pointer; user-select: none; position: relative; padding-right: 22px; }
table.grid th.dt-sortable::after {
  content: "⇅"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-size: 9px; opacity: .32; transition: opacity .12s;
}
table.grid th.dt-sortable:hover { color: var(--text); }
table.grid th.dt-sortable:hover::after { opacity: .7; }
table.grid th.dt-asc::after { content: "▲"; opacity: 1; color: var(--brand); }
table.grid th.dt-desc::after { content: "▼"; opacity: 1; color: var(--brand); }
.dt-pager { display: flex; align-items: center; gap: 5px; justify-content: center; flex-wrap: wrap; padding: 14px 0 2px; }
.dt-pg {
  min-width: 30px; height: 30px; padding: 0 8px; border-radius: 8px; cursor: pointer;
  background: var(--bg-2); border: 1px solid var(--border); color: var(--text-dim);
  font-family: inherit; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
  transition: .14s;
}
.dt-pg:hover:not(:disabled) { border-color: var(--brand); color: var(--text); }
.dt-pg.active { background: linear-gradient(140deg, var(--brand), var(--brand-2)); color: #fff; border-color: transparent; }
.dt-pg:disabled { opacity: .4; cursor: default; }
.dt-pg-gap { color: var(--text-mute); padding: 0 2px; }
.table-host > table.grid > tbody > tr[hidden] { display: none !important; }

/* ─────────────────────────────── Sekme şeridi (alt sekmeler) */
.subtabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.subtabs button {
  appearance: none; background: none; border: none; border-bottom: 2px solid transparent;
  color: var(--text-mute); font-size: 13px; font-weight: 600; padding: 10px 14px; cursor: pointer;
  font-family: inherit; transition: color .15s, border-color .15s; display: inline-flex; align-items: center; gap: 7px;
}
.subtabs button:hover { color: var(--text); }
.subtabs button.active { color: var(--brand); border-bottom-color: var(--brand); }
.subtabs .subtabs-count { background: rgba(56,132,255,.18); color: var(--brand); font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; }

/* Tıklanabilir hücre (sunucu / servis bağlantısı) */
.link-cell { color: var(--brand); cursor: pointer; }
.link-cell:hover { text-decoration: underline; }

/* Uyarı sessize alma çubuğu */
.suppress-bar {
  display: flex; align-items: center; gap: 10px; margin-top: 12px;
  background: rgba(245,158,11,.08); border: 1px solid rgba(245,158,11,.28);
  border-radius: 10px; padding: 10px 13px;
}
.suppress-bar .sbar-ic { font-size: 15px; }
.suppress-bar .sbar-text { flex: 1; font-size: 12px; color: var(--text-dim); }

/* Anasayfa sistem sağlığı haberleri */
.health-news { border-left: 3px solid var(--border); }
.health-news.crit { border-left-color: var(--crit); }
.health-news.warn { border-left-color: var(--warn); }
.health-news.info { border-left-color: var(--info); }
.health-news.off { border-left-color: var(--off); }
.empty-state.ok-empty { color: var(--ok); display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px; }

/* ─────────────────────────────── Switch / ağ cihazı izleme */
/* SNMP kurulum rehberi kartı */
.snmp-guide {
  display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; padding: 16px 18px;
  border: 1px solid rgba(99, 102, 241, 0.34); border-radius: var(--radius);
  background: linear-gradient(140deg, rgba(99, 102, 241, 0.13), rgba(34, 211, 238, 0.05) 60%, transparent);
}
.snmp-guide .sg-icon {
  flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; color: #c7d2fe; background: rgba(99, 102, 241, 0.24); border: 1px solid rgba(99,102,241,.5);
}
.snmp-guide .sg-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.snmp-guide b { font-size: 13.5px; }
.snmp-guide p { margin: 0; font-size: 12px; color: var(--text-dim); line-height: 1.55; }
.snmp-guide .sg-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px; margin-top: 6px; width: 100%;
}
.snmp-guide .sg-cell {
  display: flex; flex-direction: column; gap: 3px; padding: 10px 12px;
  background: rgba(7, 11, 20, 0.5); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.snmp-guide .sg-k { font-size: 11.5px; font-weight: 700; color: var(--text); }
.snmp-guide .sg-v { font-size: 11px; font-family: var(--mono); color: #a5b4fc; }
.snmp-guide .sg-v code { background: rgba(99,102,241,.16); padding: 1px 5px; border-radius: 4px; }
.snmp-guide .sg-cell small { font-size: 10.8px; color: var(--text-mute); line-height: 1.5; }
.snmp-guide .sg-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; }

.sw-split { display: grid; grid-template-columns: 330px 1fr; gap: 18px; align-items: start; }
.sw-list-pane { min-height: 320px; }
#swList { max-height: calc(100vh - 330px); overflow-y: auto; padding-right: 2px; }
.sw-item { align-items: flex-start; }
.sw-item .kind-icon { margin-top: 2px; }
.sw-item-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.sw-mini {
  font-size: 10.5px; font-family: var(--mono); color: var(--text-mute);
  padding: 1px 6px; border-radius: 6px; background: rgba(120,145,190,.10); white-space: nowrap;
}
.sw-mini.ok { color: var(--ok); }
.sw-mini.off { color: var(--off); }
.sw-mini.crit { color: var(--crit); background: rgba(239,68,68,.14); }

.sw-status-line { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }

.sw-gauge-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 14px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg-1); margin-bottom: 14px;
}
.sw-gauge { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.sw-gauge .mg-ring { width: 82px; height: 82px; }
.sw-gauge .mg-ring b { font-size: 17px; }
.sw-gauge .mg-ring b small { font-size: 10px; color: var(--text-mute); margin-left: 1px; }
.sw-gauge-sub { font-size: 10.5px; color: var(--text-mute); font-family: var(--mono); text-align: center; }

.sw-metric-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px; margin-bottom: 16px;
}
.sw-metric {
  display: flex; flex-direction: column; gap: 3px; padding: 11px 14px;
  background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.sw-metric .sm-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .4px; color: var(--text-mute); font-weight: 600; }
.sw-metric .sm-value { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }

.sw-detail-grid { display: grid; grid-template-columns: 1fr 300px; gap: 16px; align-items: start; }
.sw-panel-block, .sw-info-block {
  background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px;
}
.sw-panel-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.sw-panel-head h4 { margin: 0; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--text-dim); }

.sw-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 12px; font-size: 11px; color: var(--text-mute); }
.sw-legend span { display: inline-flex; align-items: center; gap: 5px; }
.sw-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.sw-legend .lg-up { background: var(--ok); box-shadow: 0 0 6px rgba(34,197,94,.6); }
.sw-legend .lg-down { background: var(--off); }
.sw-legend .lg-admin { background: var(--warn); }
.sw-legend .lg-err { background: var(--crit); box-shadow: 0 0 6px rgba(239,68,68,.7); }

/* Patch panel: fiziksel switch portlarını andıran ızgara */
.sw-port-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 7px; }
.sw-port {
  position: relative; overflow: hidden; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  padding: 9px 3px 11px; border-radius: 8px; font-family: inherit;
  background: linear-gradient(160deg, rgba(100,116,139,.16), rgba(100,116,139,.05));
  border: 1px solid rgba(120,145,190,.22); color: var(--text-dim);
  transition: transform .12s, box-shadow .12s, border-color .12s;
}
.sw-port:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.42); border-color: var(--border-strong); z-index: 2; }
.sw-port .sp-glyph { font-size: 11px; opacity: .75; line-height: 1; }
.sw-port b { font-size: 10.5px; font-weight: 700; font-variant-numeric: tabular-nums; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-port small { font-size: 9px; font-family: var(--mono); color: var(--text-mute); }
.sw-port .sp-util { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--info); transition: width .5s; }
.sw-port .sp-util.warn { background: var(--warn); }
.sw-port .sp-util.crit { background: var(--crit); }

.sw-port.p-up {
  background: linear-gradient(160deg, rgba(34,197,94,.22), rgba(34,197,94,.06));
  border-color: rgba(34,197,94,.42); color: #bbf7d0;
}
.sw-port.p-up b { color: #dcfce7; }
.sw-port.p-down { opacity: .62; }
.sw-port.p-admin {
  background: linear-gradient(160deg, rgba(245,158,11,.20), rgba(245,158,11,.05));
  border-color: rgba(245,158,11,.40); color: #fde68a;
}
.sw-port.p-err {
  border-color: rgba(239,68,68,.65);
  background: linear-gradient(160deg, rgba(239,68,68,.24), rgba(34,197,94,.08));
  animation: swPortErr 2.2s ease-in-out infinite;
}
@keyframes swPortErr {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,.42); }
  50% { box-shadow: 0 0 0 5px rgba(239,68,68,0); }
}

.sw-info-block .kv { margin-top: 2px; }
.sw-info-block .kv-row { font-size: 11.5px; }

@media (max-width: 1200px) {
  .sw-detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .sw-split { grid-template-columns: 1fr; }
  #swList { max-height: 280px; }
}

/* Hiyerarşi ağacı: düğüm işlemleri ve sürükle-bırak */
.tree-acts { margin-left: auto; display: inline-flex; gap: 4px; opacity: .45; transition: opacity .12s; }
.tree-item:hover .tree-acts { opacity: 1; }
.tree-acts button { background: rgba(120,145,190,.12); border: 1px solid var(--border); color: var(--text-dim);
  font: inherit; font-size: 11px; line-height: 1; padding: 4px 7px; border-radius: 6px; cursor: pointer;
  white-space: nowrap; transition: color .12s, border-color .12s, background .12s; }
.tree-acts button:hover { color: var(--text); border-color: var(--brand); }
.tree-acts button[data-tree-act="add"] { color: var(--brand); border-color: rgba(99,102,241,.4); }
.tree-item.drop-target { outline: 2px dashed var(--brand); outline-offset: -2px; background: rgba(99,102,241,.12); }
.tree-item.dragging { opacity: .5; }
.tree-item.is-device[draggable="true"] { cursor: grab; }
.ts-actions { margin-left: 6px; }

/* ─────────────────────────────── Tam sayfa Sunucu Detayı */
.asset-page { position: fixed; inset: 0; z-index: 200; background: var(--bg-0); overflow-y: auto; overflow-x: hidden; }
.asset-page.hidden { display: none; }
.asset-page-bar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 14px;
  padding: 14px clamp(14px, 3vw, 34px); background: rgba(7,10,18,.86); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-strong); }
html[data-theme="light"] .asset-page-bar { background: rgba(255,255,255,.88); }
.asset-page-head { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.asset-page-head h2 { margin: 0; font-size: clamp(18px, 2.4vw, 24px); letter-spacing: -.3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asset-page-sub { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-dim); }
.asset-page-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.asset-page-tabs { position: sticky; top: 63px; z-index: 2; display: flex; gap: 2px; flex-wrap: wrap;
  padding: 0 clamp(14px, 3vw, 34px); background: var(--bg-0); border-bottom: 1px solid var(--border); }
.asset-page-tabs button { appearance: none; background: none; border: none; border-bottom: 2px solid transparent;
  color: var(--text-mute); font-size: 13px; font-weight: 600; padding: 12px 15px; cursor: pointer;
  font-family: inherit; display: inline-flex; align-items: center; gap: 7px; transition: color .15s, border-color .15s; }
.asset-page-tabs button:hover { color: var(--text); }
.asset-page-tabs button.active { color: var(--brand); border-bottom-color: var(--brand); }
.asset-page-tabs .tab-count { background: rgba(56,132,255,.18); color: var(--brand); font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; }
.asset-page-body { padding: clamp(16px, 3vw, 34px); max-width: 1280px; margin: 0 auto; width: 100%; box-sizing: border-box; }
.asset-page-body .detail-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
@media (max-width: 720px) { .asset-page-actions { width: 100%; margin-left: 0; } }

/* =======================================================================================
   OPERASYON MODÜLLERİ — Yazılım & Dağıtım, Uzak Erişim, Biletleme, Pasif Olaylar, Raporlar
   ======================================================================================= */

/* --- ortak küçük bileşenler --- */
.btn-xs { padding: 4px 9px; font-size: 11px; border-radius: 7px; }
.muted { color: var(--text-mute); }
.mt-8 { margin-top: 8px; }
.clickable { cursor: pointer; }
table.grid tbody tr.clickable:hover { background: var(--bg-2); }
.cell-clip { max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 12px; color: var(--text-dim); font-family: var(--mono); }
.check-row { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; font-size: 12.5px; color: var(--text-dim); margin: 8px 0; }
.check-row input[type="checkbox"] { width: auto; accent-color: var(--brand); margin-right: 5px; }
.swal2-html-container .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.swal2-html-container .field > span { font-size: 11.5px; font-weight: 600; color: var(--text-mute); text-transform: uppercase; letter-spacing: .5px; }
.prog { display: flex; align-items: center; gap: 8px; min-width: 110px; }
.prog-bar { flex: 1; height: 6px; border-radius: 4px; background: var(--bg-2); overflow: hidden; border: 1px solid var(--border); }
.prog-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.prog small { font-family: var(--mono); font-size: 10.5px; color: var(--text-mute); min-width: 32px; text-align: right; }

/* --- cihaz seçim listesi --- */
.pick-list { display: flex; flex-direction: column; gap: 6px; overflow-y: auto; padding-right: 4px; }
.pick-name { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.pick-name small { color: var(--text-mute); font-family: var(--mono); font-size: 11px; }
.pick-ver { font-family: var(--mono); font-size: 10.5px; color: var(--text-mute); min-width: 60px; text-align: right; }

/* --- terminal / ekran --- */
.term-swal .swal2-html-container { margin: 0; padding: 0 4px; text-align: left !important; }
.term-swal .swal2-title { text-align: left; }
.term-wrap, .screen-wrap { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.term-head { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--text-mute); font-family: var(--mono); }
.term-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.term-spacer { flex: 1; }
.term-out { margin: 0; background: #04060c; border: 1px solid var(--border-strong); border-radius: 10px;
  padding: 12px 14px; height: 48vh; overflow-y: auto; font-family: var(--mono); font-size: 12px;
  line-height: 1.55; color: #c7f0d8; white-space: pre-wrap; word-break: break-word;
  text-align: left; direction: ltr; }
html[data-theme="light"] .term-out { background: #0d1117; }
.term-in-row { display: flex; align-items: center; gap: 8px; background: #04060c; border: 1px solid var(--border-strong);
  border-radius: 10px; padding: 8px 12px; }
.term-prompt { color: var(--ok); font-family: var(--mono); font-weight: 700; }
.term-in { flex: 1; background: transparent; border: 0; color: #d1fae5; font-family: var(--mono); font-size: 12.5px; outline: none; }
.screen-host { background: #04060c; border: 1px solid var(--border-strong); border-radius: 10px;
  min-height: 320px; display: flex; align-items: center; justify-content: center; overflow: hidden; outline: none; position: relative; }
.screen-host img { max-width: 100%; height: auto; display: block; user-select: none; -webkit-user-drag: none; }
.screen-host.fit-width { overflow: auto; align-items: flex-start; }
.screen-host.fit-width img { max-width: none; width: 100%; }
.screen-info { font-family: var(--mono); font-size: 11px; color: var(--text-mute); }
.screen-foot { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text-mute); font-family: var(--mono); }
#screenCtrl.active { color: var(--ok); border-color: var(--ok); }

/* İlk kare beklenirken gösterilen katman (aşama + geçen süre). */
.screen-wait { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 10px;
  align-items: center; justify-content: center; background: rgba(4, 6, 12, .92); z-index: 2; }
.screen-wait-spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(140, 170, 220, .18);
  border-top-color: var(--accent, #4f8cff); animation: screen-spin .9s linear infinite; }
.screen-wait-text { font-size: 13px; color: #dbe6ff; text-align: center; max-width: 80%; }
.screen-wait-sub { font-family: var(--mono); font-size: 11.5px; color: var(--text-mute); }
@keyframes screen-spin { to { transform: rotate(360deg); } }

/* ── işletim sistemi güncellemesi: canlı aşama ── */
.os-job { border: 1px solid var(--border); border-radius: 12px; padding: 12px; margin-bottom: 10px; background: var(--bg-1); }
.os-job-head, .os-target-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; margin-bottom: 8px; }
.os-target { border-top: 1px dashed var(--border); padding-top: 9px; margin-top: 9px; }
.os-target:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.os-progress { display: flex; flex-direction: column; gap: 6px; }
.os-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 10.5px; }
.os-step { padding: 3px 8px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-mute); }
.os-step.done { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.os-step.active { color: #fff; background: var(--brand); border-color: var(--brand); font-weight: 700; }
.os-sep { color: var(--text-mute); opacity: .6; }
.os-bar { height: 6px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.os-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--ok)); transition: width .5s ease; }
.os-msg { font-size: 11.5px; color: var(--text-mute); }
.os-out { max-height: 120px; overflow: auto; font-family: var(--mono); font-size: 10.5px; margin: 6px 0 0;
  background: #04060c; border-radius: 8px; padding: 8px 10px; color: #c7f0d8; white-space: pre-wrap; }
.os-done { color: var(--ok); font-weight: 700; font-size: 12.5px; margin-bottom: 8px; }

/* ── sunucu detayı: canlı komut şeridi (güncelleme/firewall/reboot ilerlemesi) ── */
.asset-cmd-host { margin: 0 0 12px; }
.asset-cmd-host.hidden { display: none; }
.cmd-card { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: var(--bg-1); }
.cmd-card.running { border-color: color-mix(in srgb, var(--brand) 45%, transparent); background: color-mix(in srgb, var(--brand) 7%, var(--bg-1)); }
.cmd-card.ok { border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.cmd-card.fail { border-color: color-mix(in srgb, var(--crit) 45%, transparent); background: color-mix(in srgb, var(--crit) 7%, var(--bg-1)); }
.cmd-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; flex-wrap: wrap; }
.cmd-head .cmd-state { color: var(--text-mute); font-size: 11.5px; }
.cmd-pct { font-family: var(--mono); color: var(--brand); }
.cmd-age, .cmd-queue { font-family: var(--mono); font-size: 11px; color: var(--text-mute); }
.cmd-queue { padding: 1px 7px; border-radius: 999px; background: var(--bg-2); }
.cmd-icon { font-weight: 700; }
.cmd-card.ok .cmd-icon { color: var(--ok); }
.cmd-card.fail .cmd-icon { color: var(--crit); }
.cmd-spin { width: 13px; height: 13px; border-radius: 50%; border: 2px solid rgba(140, 170, 220, .25);
  border-top-color: var(--brand); animation: screen-spin .8s linear infinite; flex: none; }
.cmd-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 10.5px; margin: 9px 0 6px; }
.cmd-step { padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-mute); }
.cmd-step.done { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.cmd-step.active { color: #fff; background: var(--brand); border-color: var(--brand); font-weight: 700; }
.cmd-sep { color: var(--text-mute); opacity: .55; }
.cmd-bar { height: 6px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.cmd-bar span { display: block; height: 100%; background: var(--brand); transition: width .4s ease-out; }
.cmd-msg { margin-top: 6px; font-size: 11.5px; color: var(--text-mute); word-break: break-word; }
/* Donmuş ilerleme: uyarı rengiyle hafifçe işaretle (kullanıcı "çalışıyor mu" tereddüdü yaşamasın). */
.cmd-card.running.stale { border-color: color-mix(in srgb, var(--warn) 55%, transparent); background: color-mix(in srgb, var(--warn) 6%, var(--bg-1)); }
.cmd-hint { margin-top: 6px; font-size: 11px; line-height: 1.45; color: var(--warn); }

/* --- kanban --- */
.kanban { display: grid; grid-template-columns: repeat(5, minmax(210px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.kanban-col { background: var(--bg-1); border: 1px solid var(--border); border-radius: 13px; display: flex; flex-direction: column; min-height: 220px; }
.kanban-head { display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 11px 12px; border-bottom: 1px solid var(--border); font-size: 12px; font-weight: 700; color: var(--text-dim); }
.kanban-body { padding: 9px; display: flex; flex-direction: column; gap: 8px; flex: 1; min-height: 90px; transition: background .13s; }
.kanban-body.drop-target { background: var(--brand-glow); outline: 2px dashed var(--brand); outline-offset: -4px; border-radius: 10px; }
.kanban-empty { color: var(--text-mute); font-size: 11.5px; text-align: center; padding: 18px 0; }
.kanban-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 11px;
  display: flex; flex-direction: column; gap: 7px; cursor: grab; transition: .13s; }
.kanban-card:hover { border-color: var(--brand); box-shadow: 0 6px 18px -12px var(--brand-glow); }
.kanban-card:active { cursor: grabbing; }
.kc-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.kc-num { font-family: var(--mono); font-size: 10.5px; color: var(--text-mute); }
.kc-title { font-size: 12.5px; font-weight: 600; line-height: 1.4; color: var(--text); }
.kc-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 10.5px; color: var(--text-mute); }
.kc-sla { font-size: 10.5px; font-weight: 700; color: #fca5a5; background: rgba(239,68,68,.14);
  padding: 2px 7px; border-radius: 6px; align-self: flex-start; }
@media (max-width: 1100px) { .kanban { grid-template-columns: repeat(5, minmax(200px, 1fr)); } }

/* --- bilet detay: yorumlar & zaman çizelgesi --- */
.comment-list { display: flex; flex-direction: column; gap: 9px; max-height: 240px; overflow-y: auto; padding-right: 4px; }
.comment { background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 9px 11px; }
.comment.internal { border-left: 3px solid var(--warn); background: rgba(245,158,11,.06); }
.c-head { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text-mute); margin-bottom: 5px; flex-wrap: wrap; }
.c-head b { color: var(--text); font-size: 12px; }
.c-body { font-size: 12.5px; line-height: 1.55; color: var(--text-dim); white-space: pre-wrap; }
.timeline { display: flex; flex-direction: column; gap: 2px; max-height: 180px; overflow-y: auto; }
.tl-item { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-dim);
  padding: 5px 0; border-bottom: 1px dashed var(--border); flex-wrap: wrap; }
.tl-item:last-child { border-bottom: 0; }
.tl-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); flex: none; }
.tl-item b { color: var(--text); font-weight: 600; }
.tl-item small { color: var(--text-mute); font-family: var(--mono); font-size: 10.5px; margin-left: auto; }

/* --- rapor merkezi --- */
.report-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.report-card { display: flex; align-items: flex-start; gap: 12px; padding: 14px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 13px; transition: .15s; }
.report-card:hover { border-color: var(--brand); box-shadow: 0 10px 26px -18px var(--brand-glow); }
.rc-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none;
  background: rgba(99,102,241,.14); color: var(--brand); font-size: 17px; }
.rc-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.rc-body b { font-size: 13px; }
.rc-body small { color: var(--text-mute); font-size: 11.5px; line-height: 1.5; }
.rc-actions { display: flex; flex-direction: column; gap: 4px; flex: none; }

/* --- dar ekranlar --- */
@media (max-width: 860px) {
  .kanban { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
  .report-grid { grid-template-columns: 1fr; }
}

/* ---- Sunucu bazlı port taraması anahtarı (on/off) ---- */
.pswitch { display: inline-flex; align-items: center; cursor: pointer; }
.pswitch input { position: absolute; opacity: 0; width: 0; height: 0; }
.pswitch-track {
  width: 40px; height: 22px; border-radius: 11px;
  background: #D1D5DB; position: relative; display: inline-block;
  transition: background 200ms ease-out;
}
.pswitch-thumb {
  position: absolute; top: 3px; left: 3px; width: 16px; height: 16px;
  border-radius: 50%; background: #FFFFFF;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
  transition: transform 200ms ease-out;
}
.pswitch input:checked + .pswitch-track { background: #0044CC; }
.pswitch input:checked + .pswitch-track .pswitch-thumb { transform: translateX(18px); }
.pswitch input:focus-visible + .pswitch-track { box-shadow: 0 0 0 3px rgba(0,68,204,0.2); }
.pswitch input:disabled + .pswitch-track { opacity: .55; }
