/* ============================================================================
   CETM 2.0 — iskelet yukleme, grafik yardimcilari, ince bilesenler
   ========================================================================= */

/* ------------------------------------------------------- ISKELET YUKLEME */
.skeleton { display: grid; gap: 14px; }

.sk-panel {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--bg-elev), var(--bg-1));
  border: 1px solid var(--line-soft);
  padding: 15px 16px;
}
.sk-panel::before, .sk-panel::after {
  content: ""; position: absolute; width: 9px; height: 9px;
  border-color: var(--line-hot); opacity: .6;
}
.sk-panel::before { top: -1px; left: -1px; border-top: 1px solid; border-left: 1px solid; }
.sk-panel::after { bottom: -1px; right: -1px; border-bottom: 1px solid; border-right: 1px solid; }

.sk-line {
  height: 9px; background: var(--bg-3); position: relative; overflow: hidden;
  margin-bottom: 9px;
}
.sk-line:last-child { margin-bottom: 0; }
.sk-line.w40 { width: 40%; }
.sk-line.w60 { width: 60%; }
.sk-line.w80 { width: 80%; }
.sk-line.tall { height: 30px; }
.sk-line.block { height: 92px; }

/* parlama dalgasi — soldan saga suzulur */
.sk-line::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0,229,255,.14) 45%,
              rgba(0,229,255,.22) 50%, rgba(0,229,255,.14) 55%, transparent);
  transform: translateX(-100%);
  animation: shimmer 1.5s ease-in-out infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }

/* yukleme durum satiri — ne yuklendigini soyler */
.sk-status {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--fg-mute);
  padding: 10px 2px 14px;
}
.sk-status .bar {
  flex: 1; height: 2px; background: var(--bg-3); position: relative; overflow: hidden;
}
.sk-status .bar::after {
  content: ""; position: absolute; inset: 0; width: 34%;
  background: linear-gradient(90deg, transparent, var(--sig), transparent);
  animation: track 1.25s cubic-bezier(.4,0,.2,1) infinite;
}
@keyframes track { from { transform: translateX(-120%); } to { transform: translateX(340%); } }

/* nokta nabzi */
.sk-status .pip {
  width: 6px; height: 6px; background: var(--sig); border-radius: 50%;
  box-shadow: 0 0 10px var(--sig); animation: pulse 1.1s ease-in-out infinite;
}

/* ------------------------------------------------------------- GRAFIKLER */
.chart-wrap { padding: 4px 0 0; }
.chart-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px;
                font-size: 11px; color: var(--fg-dim); }
.chart-legend i { width: 9px; height: 9px; display: inline-block; margin-right: 6px; }

.donut-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }

/* ------------------------------------------------------- KPI SERIT (ince) */
.kpi-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  border: 1px solid var(--line); background: var(--bg-1);
}
.kpi-strip > div {
  padding: 11px 14px; border-right: 1px solid var(--line-soft);
}
.kpi-strip > div:last-child { border-right: none; }
.kpi-strip .k {
  font-family: var(--mono); font-size: 9px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--fg-mute);
}
.kpi-strip .v {
  font-family: var(--mono); font-size: 17px; font-weight: 700; margin-top: 5px;
  color: var(--fg);
}
@media (max-width: 900px) { .kpi-strip { grid-auto-flow: row; } }

/* ------------------------------------------------------------- EYLEM SATIR */
.act-row { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 26px; height: 26px;
  border: 1px solid var(--line-hot); background: transparent; color: var(--fg-mute);
  cursor: pointer; transition: all var(--t-fast); flex: none;
}
.icon-btn:hover { color: var(--sig); border-color: var(--sig-dim);
                  background: rgba(0,229,255,.07); }
.icon-btn.danger:hover { color: var(--crit); border-color: rgba(255,45,85,.45);
                         background: rgba(255,45,85,.08); }

/* arama kutusu ikonlu */
.search-box { position: relative; display: inline-block; }
.search-box svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
                  color: var(--fg-ghost); pointer-events: none; }
.search-box input { padding-left: 32px; }


/* ------------------------------------------------------------- LEJANT */
.legend { display: flex; flex-direction: column; gap: 1px; min-width: 190px; flex: 1; }
.legend-row {
  display: grid; grid-template-columns: 10px 1fr auto auto; gap: 10px;
  align-items: center; padding: 7px 2px; font-size: 12px;
  border-bottom: 1px solid var(--line-soft);
}
.legend-row:last-child { border-bottom: none; }
.legend-row i { width: 10px; height: 10px; display: block; }
.legend-row .nm { color: var(--fg-dim); }
.legend-row .pc {
  font-family: var(--mono); font-size: 10.5px; color: var(--fg-mute);
  min-width: 44px; text-align: right;
}
.legend-row .vl {
  font-family: var(--mono); font-size: 12px; color: var(--fg);
  min-width: 62px; text-align: right; font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------- MODAL */
.modal-back {
  position: fixed; inset: 0; z-index: 130; padding: 24px;
  background: rgba(2,4,7,.82); backdrop-filter: blur(3px);
  display: grid; place-items: center; overflow-y: auto;
  animation: fade-in var(--t-fast) ease-out;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.modal-box {
  max-width: 520px; width: 100%;
  box-shadow: 0 40px 100px -24px rgba(0,0,0,.9);
  animation: rise var(--t-med) cubic-bezier(.16,1,.3,1);
}
.modal-box.wide { max-width: 820px; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- FORM */
.form-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px;
  padding-top: 4px;
}
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-family: var(--mono); font-size: 9px; letter-spacing: .17em;
  text-transform: uppercase; color: var(--fg-mute); margin-bottom: 6px;
}
.form-field .hint { font-size: 10.5px; color: var(--fg-ghost); margin-top: 5px; }
.form-field textarea { resize: vertical; min-height: 64px; font-family: var(--sans); }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }


/* panel ici bolum ayrimi — baslik ve icerik karismasin */
.block { margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line-soft); }
.block:first-child { margin-top: 10px; padding-top: 0; border-top: none; }
.block-title { margin-bottom: 12px; display: block; }

/* en cok engellenen yollar: dar sayi sutunu, yol hemen yaninda */
.path-feed .feed-row { grid-template-columns: 44px 1fr auto; gap: 14px; }
.path-feed .feed-row .t { color: var(--fg-dim); font-weight: 600; }
.path-feed .feed-row .m { color: var(--fg-dim); }

/* panel icerigi kisa kalirsa dikeyde yayilsin */
.grid > .panel { display: flex; flex-direction: column; }
.grid > .panel > :last-child { flex: 1; }

/* ---------------------------------------------------- TABLO BASLIK CUBUGU */
.tbl-bar {
  display: flex; align-items: center; gap: 12px;
  margin: -4px 0 10px; padding-bottom: 9px;
  border-bottom: 1px solid var(--line-soft);
}
.tbl-bar input.tbl-search { max-width: 280px; padding: 6px 10px; font-size: 12px; }
@media (max-width: 620px) { .tbl-bar input.tbl-search { max-width: 100%; } }

/* --------------------------------------------------------- SAGLIK ROZETI */
.health {
  display: inline-grid; grid-auto-flow: column; align-items: center; gap: 8px;
}
.health .ring { width: 30px; height: 30px; flex: none; }
.health .sc { font-family: var(--mono); font-size: 13px; font-weight: 700; }

.hbar { height: 5px; background: var(--bg-3); position: relative; min-width: 70px; }
.hbar > i { position: absolute; inset: 0 auto 0 0; display: block; }

/* durum satiri: ad + etiketler + olcum */
.state-list { display: flex; flex-direction: column; }
.state-row {
  display: grid; grid-template-columns: 10px minmax(0,1fr) auto;
  gap: 12px; align-items: center;
  padding: 9px 2px; border-bottom: 1px solid var(--line-soft); font-size: 12.5px;
}
.state-row:last-child { border-bottom: none; }
.state-row .sub { font-size: 10.5px; color: var(--fg-mute); margin-top: 2px; }
.state-row .tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* --------------------------------------------------------------- CEKMECE */
.drawer-back {
  position: fixed; inset: 0; z-index: 120; background: rgba(2,4,7,.78);
  backdrop-filter: blur(3px); animation: fade-in var(--t-fast) ease-out;
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(900px, 94vw);
  background: var(--bg-1); border-left: 1px solid var(--line-hot);
  box-shadow: -40px 0 90px -30px rgba(0,0,0,.95);
  display: flex; flex-direction: column;
  animation: slide-in var(--t-med) cubic-bezier(.16,1,.3,1);
}
@keyframes slide-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-head {
  display: flex; align-items: center; gap: 12px; flex: none;
  padding: 13px 18px; border-bottom: 1px solid var(--line);
  background: rgba(0,0,0,.3);
}
.drawer-head .ttl { font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 18px 28px; }

/* ----------------------------------------------------------- RAPOR BLOGU */
.report { display: flex; flex-direction: column; gap: 16px; }
.report-head {
  border: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-elev), var(--bg-1));
  padding: 18px 20px;
}
.report-head h1 { font-size: 17px; letter-spacing: .02em; }
.report-sec { border-top: 1px solid var(--line-soft); padding-top: 14px; margin-top: 4px; }
.finding {
  display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 12px;
  align-items: start; padding: 10px 2px; border-bottom: 1px solid var(--line-soft);
}
.finding:last-child { border-bottom: none; }
.finding .ttl { font-size: 12.5px; }
.finding .det { font-size: 11px; color: var(--fg-mute); margin-top: 3px; line-height: 1.55; }

/* yazdirma: panel suslerini birak, metni oku */
@media print {
  .rail, .topbar, .btn, .icon-btn { display: none !important; }
  body::before, body::after { display: none !important; }
  html, body { background: #fff; color: #000; }
  .panel, .report-head { border-color: #bbb; background: #fff; }
  .main { margin: 0 !important; }
  .table-wrap { max-height: none !important; overflow: visible !important; }
}

/* ------------------------------------------------------------ ETIKET SERIT */
.pill-row { display: flex; gap: 7px; flex-wrap: wrap; }

/* kv tablosu dar ekranda bolunmesin */
.kv-table td:first-child { white-space: nowrap; }

/* ------------------------------------------------- TABLO ICI BAGLANTI */
.lnk {
  background: none; border: none; padding: 0; margin: 0; cursor: pointer;
  color: var(--sig); font: inherit; text-align: left; display: inline-block;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  border-bottom: 1px dashed transparent;
}
.lnk:hover { border-bottom-color: var(--sig-dim); }
.lnk:focus-visible { outline: 1px solid var(--sig); outline-offset: 2px; }
.lnk.mono { font-family: var(--mono); }

/* cekmece icindeki sekmeler daha sik */
.drawer .tabs { margin-bottom: 0; }
.drawer .panel { margin-bottom: 0; }

/* ------------------------------------------------------- TEHDIT RITMI */
.rhythm-foot {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.15fr);
  gap: 20px; margin-top: 16px; padding-top: 15px;
  border-top: 1px solid var(--line-soft);
}
@media (max-width: 1000px) { .rhythm-foot { grid-template-columns: 1fr; } }

.hour-bars {
  display: flex; align-items: flex-end; gap: 2px; height: 74px;
  background: linear-gradient(180deg, transparent, rgba(0,229,255,.03));
  border-bottom: 1px solid var(--line);
}
.hour-bars i {
  flex: 1; background: var(--sig-dim); opacity: .55; min-height: 3px;
  transition: opacity var(--t-fast);
}
.hour-bars i.hot { background: var(--crit); opacity: 1; }
.hour-bars:hover i { opacity: .85; }
.hour-axis {
  display: flex; justify-content: space-between; margin-top: 5px;
  font-family: var(--mono); font-size: 9px; color: var(--fg-ghost);
}

.rhythm-cells {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft);
}
.rhythm-cell { background: var(--bg-1); padding: 10px 13px; }
@media (max-width: 760px) { .rhythm-cells { grid-template-columns: repeat(2, 1fr); } }

/* ------------------------------------------------------- CANLI AKIS EKRANI */
.live-graph { overflow-x: auto; padding: 2px 0; }
.flow-svg {
  display: block; min-width: 860px;
  background:
    radial-gradient(ellipse 55% 70% at 50% 50%, rgba(0,229,255,.055), transparent 70%);
}
.flow-svg .fl-label { cursor: pointer; transition: fill var(--t-fast); }
.flow-svg .fl-label:hover { fill: var(--sig); }
.flow-svg .fl-dot { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .flow-svg .fl-parts, .flow-svg .fl-waves { display: none; }
}

.live-beat { display: inline-flex; align-items: flex-end; gap: 3px; height: 14px; }
.live-beat i {
  width: 3px; background: var(--sig-dim); height: 5px;
  animation: beat 1.1s ease-in-out infinite;
}
.live-beat i:nth-child(2) { animation-delay: .18s; }
.live-beat i:nth-child(3) { animation-delay: .36s; }
.live-beat.hot i { background: var(--crit); }
@keyframes beat { 0%,100% { height: 4px; } 50% { height: 14px; } }
.live-beat.pulse i { animation-duration: .5s; }

.live-feed .feed-row.fresh {
  animation: flash-in 1.4s ease-out;
}
@keyframes flash-in {
  0%   { background: rgba(0,229,255,.22); transform: translateX(-4px); }
  100% { background: transparent; transform: none; }
}

/* ===================================================== PASSKEY DIYALOGU */
.pk-dialog { padding: 4px 2px 2px; }

.pk-hero { text-align: center; padding: 10px 6px 20px; }
.pk-ring {
  display: inline-grid; place-items: center;
  width: 64px; height: 64px; margin-bottom: 15px;
  border: 1px solid var(--sig-dim); border-radius: 50%;
  color: var(--sig); background: rgba(0,229,255,.05);
  box-shadow: 0 0 0 7px rgba(0,229,255,.05), var(--glow-sig);
}
.pk-ring svg { stroke-width: 1.3; }
.pk-hero h3 { font-size: 15.5px; letter-spacing: -.01em; margin-bottom: 8px; }
.pk-hero p {
  margin: 0 auto; max-width: 42ch; font-size: 12.5px; line-height: 1.65;
  color: var(--fg-mute);
}

.pk-feats {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); background: var(--bg-1);
}
.pk-feat {
  display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 13px;
  align-items: start; padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
}
.pk-feat:last-child { border-bottom: none; }
.pk-ico {
  display: grid; place-items: center; width: 30px; height: 30px;
  border: 1px solid var(--line-hot); color: var(--sig-dim);
  background: var(--bg-0);
}
.pk-feat-t { font-size: 12.5px; font-weight: 600; letter-spacing: -.005em; }
.pk-feat-d {
  margin-top: 5px; font-size: 11.5px; line-height: 1.6; color: var(--fg-mute);
}

.pk-actions {
  display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px;
}
@media (max-width: 520px) {
  .pk-actions { flex-direction: column-reverse; }
  .pk-actions .btn { width: 100%; }
}

/* genis ekranda yan yana ozellik seridi */
.pk-feats-row { flex-direction: row; margin-bottom: 14px; }
.pk-feats-row .pk-feat {
  flex: 1; border-bottom: none; border-right: 1px solid var(--line-soft);
}
.pk-feats-row .pk-feat:last-child { border-right: none; }
@media (max-width: 900px) {
  .pk-feats-row { flex-direction: column; }
  .pk-feats-row .pk-feat {
    border-right: none; border-bottom: 1px solid var(--line-soft);
  }
  .pk-feats-row .pk-feat:last-child { border-bottom: none; }
}

/* ============================================ TASMA VE SARMALAMA KURALLARI */
/* Uzun yol/adres degerleri paneli germesin: anahtar sutunu sabit, deger sarar */
.kv-table { table-layout: fixed; width: 100%; }
.kv-table td:first-child { white-space: nowrap; width: 42%; }
.kv-table td:last-child {
  white-space: normal; overflow-wrap: anywhere; word-break: break-word;
}
.cell-wrap {
  white-space: normal !important; overflow-wrap: anywhere; word-break: break-word;
}

/* Cekmece kendi genisligine gore kirilir — ekran genisligine gore degil.
   Aksi halde 900 px'lik cekmecede 6 sutunlu izgara sikisiyordu. */
.drawer-body { container-type: inline-size; }
@container (max-width: 900px) {
  .drawer-body .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .drawer-body .g5, .drawer-body .g6 {
    grid-template-columns: repeat(3, minmax(0,1fr));
  }
  .drawer-body .g-split { grid-template-columns: minmax(0,1fr); }
}
@container (max-width: 620px) {
  .drawer-body .grid { grid-template-columns: minmax(0,1fr); }
}
/* container query desteklemeyen tarayici icin guvenli taban */
.drawer-body .grid > * { min-width: 0; }





/* cekmece iskeleti: sekme cubugu taklidi */
.sk-tabs { display: flex; gap: 18px; padding: 4px 2px 10px;
           border-bottom: 1px solid var(--line); }
.sk-tab { height: 9px; background: var(--bg-3); position: relative;
          overflow: hidden; display: block; }
.sk-tab.w40 { width: 56px; }
.sk-tab.w60 { width: 84px; }
.sk-tab::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0,229,255,.16) 50%, transparent);
  transform: translateX(-100%); animation: shimmer 1.5s ease-in-out infinite;
}



/* akis haritasi tam ekranda ortalansin */
.live-graph:fullscreen {
  background: #04060a; display: grid; place-items: center; padding: 30px;
}
.live-graph:fullscreen .flow-svg { max-height: 94vh; min-width: 0; width: 96vw; }

/* ============================================ CANLI AKIS · ALT BOLUM YERLESIMI
   Satirin yuksekligi SABITTIR; icerik buyudukce sayfa uzamaz, kutunun kendi
   icinde kayar. Boylece hem bosluk kalmaz hem sayfa sonsuza inmez. */
.live-split {
  display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
  gap: 14px; height: clamp(420px, 62vh, 760px);
}
.live-split > .panel { display: flex; flex-direction: column; min-height: 0; }
.live-split > .panel > :last-child { flex: 1; min-height: 0; overflow-y: auto; }
.live-side { display: flex; flex-direction: column; gap: 14px; min-height: 0;
             overflow-y: auto; }
.live-side > .panel { flex: none; }
@media (max-width: 1200px) {
  .live-split { grid-template-columns: minmax(0,1fr); height: auto; }
  .live-split > .panel > :last-child { max-height: 50vh; }
  .live-side { overflow: visible; }
}
.live-feed { max-height: none; }

/* ================================================= KÜRESEL TEHDİT HARİTASI */
.gl-stage {
  position: relative; height: clamp(460px, 68vh, 860px);
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, rgba(0,229,255,.05), transparent 70%),
    #04060a;
  border: 1px solid var(--line); overflow: hidden;
}
.gl-canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.gl-canvas:active { cursor: grabbing; }
.gl-stage:fullscreen, .gl-stage.gl-full { height: 100vh; border: none; }

/* denetim düğmeleri */
.gl-controls {
  position: absolute; right: 14px; bottom: 54px; z-index: 5;
  display: flex; flex-direction: column; gap: 6px;
}
.gl-btn {
  width: 32px; height: 32px; display: grid; place-items: center;
  background: rgba(4,6,10,.78); border: 1px solid var(--line-hot);
  color: var(--fg-dim); cursor: pointer; font-size: 15px; line-height: 1;
  font-family: var(--mono); transition: all var(--t-fast);
}
.gl-btn:hover { color: var(--sig); border-color: var(--sig-dim);
                background: rgba(0,229,255,.1); }
.gl-btn.on { color: var(--sig); border-color: var(--sig-dim); }

/* sol üst canlı liste */
.gl-hud {
  position: absolute; top: 14px; left: 14px; z-index: 5;
  min-width: 215px; padding: 11px 13px;
  background: rgba(4,6,10,.74); border: 1px solid var(--line-hot);
  backdrop-filter: blur(6px);
}
.gl-hud-title {
  font-family: var(--mono); font-size: 9px; letter-spacing: .2em;
  color: var(--sig); margin-bottom: 9px;
}
.gl-hud-row {
  display: grid; grid-template-columns: 24px 1fr auto; gap: 9px;
  align-items: center; padding: 3px 0; font-size: 11.5px; color: var(--fg-dim);
}
.gl-hud-row .cc { font-family: var(--mono); color: var(--crit); font-weight: 700; }
.gl-hud-row .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gl-hud-row .vl { font-family: var(--mono); color: var(--fg); font-size: 11px; }

/* sağ üst saldırı türü süzgeci */
.gl-types {
  position: absolute; top: 14px; right: 14px; z-index: 5;
  display: flex; flex-direction: column; gap: 4px; align-items: stretch;
  padding: 10px 11px; width: 228px;
  background: rgba(4,6,10,.74); border: 1px solid var(--line-hot);
  backdrop-filter: blur(6px);
}
.gl-types-t {
  font-family: var(--mono); font-size: 9px; letter-spacing: .2em;
  color: var(--sig); margin-bottom: 5px;
}
/* Satirlar baslikla ayni hizada baslar: renk + etiket sola yaslanir,
   sayi sagda sabit bir sutunda durur. Bu yuzden sayi sutunu sabit
   genislikte — aksi halde her satir kendi genisligini hesaplayip
   etiketleri saga itiyordu. */
.gl-type {
  display: grid; grid-template-columns: 10px minmax(0, 1fr) 46px; gap: 8px;
  align-items: center; background: none; border: none; cursor: pointer;
  padding: 3px 0; font: inherit; font-size: 11.5px; color: var(--fg-dim);
  text-align: left; transition: opacity var(--t-fast);
}
.gl-type i { width: 10px; height: 10px; display: block; justify-self: start; }
.gl-type > span {
  justify-self: start; text-align: left;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gl-type b {
  font-family: var(--mono); font-size: 10.5px; color: var(--fg);
  justify-self: end; text-align: right;
}
.gl-type:hover { color: var(--fg); }
.gl-type.off { opacity: .32; text-decoration: line-through; }



/* imleç bilgisi */
.gl-tip {
  position: absolute; z-index: 6; pointer-events: none;
  padding: 8px 11px; min-width: 150px;
  background: rgba(4,6,10,.92); border: 1px solid var(--sig-dim);
  box-shadow: var(--glow-sig);
}
.gl-tip .t1 { font-family: var(--mono); font-size: 12px; color: var(--fg); }
.gl-tip .t2 { font-size: 10.5px; color: var(--fg-mute); margin-top: 3px; }
.gl-tip .t3 { font-size: 10.5px; margin-top: 4px; font-weight: 600; }

@media (max-width: 900px) {
  .gl-hud, .gl-types { display: none; }
}

.gl-stage.gl-nocanvas { height: auto; min-height: 220px; }
.gl-fallback { padding: 40px 20px; }

/* ---------------------------------- SOL ALT: CANLI SALDIRI AKISI */
.gl-stream {
  position: absolute; left: 14px; bottom: 14px; z-index: 5;
  width: min(430px, calc(100% - 28px));
  background: rgba(4,6,10,.78); border: 1px solid var(--line-hot);
  backdrop-filter: blur(6px);
}
.gl-stream-head {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px; border-bottom: 1px solid var(--line-soft);
  font-family: var(--mono); font-size: 8.5px; letter-spacing: .18em;
  color: var(--sig);
}
.gl-stream-body { max-height: 150px; overflow: hidden; }

.gl-row {
  display: grid;
  grid-template-columns: 48px 20px minmax(92px, auto) minmax(0, 0.9fr) 9px minmax(0, 1fr);
  gap: 7px; align-items: center;
  padding: 3px 10px; border-bottom: 1px solid rgba(18,27,37,.7);
  font-family: var(--mono); font-size: 10px; color: var(--fg-mute);
  border-left: 2px solid var(--tc, var(--sig-dim));
}
.gl-row:last-child { border-bottom: none; }
.gl-row.yeni { animation: gl-in 1.6s ease-out; }
@keyframes gl-in {
  0%   { background: color-mix(in srgb, var(--tc) 22%, transparent);
         transform: translateX(-6px); }
  100% { background: transparent; transform: none; }
}
.gl-row-t  { color: var(--fg-ghost); }
.gl-row-cc { color: var(--crit); font-weight: 700; }
.gl-row-ip, .gl-row-host {
  background: none; border: none; padding: 0; margin: 0; cursor: pointer;
  font: inherit; text-align: left; color: var(--fg);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gl-row-ip:hover, .gl-row-host:hover { color: var(--sig);
                                        text-decoration: underline; }
.gl-row-host { color: var(--fg-dim); }
.gl-row-tip {
  color: var(--tc); overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; font-size: 9.5px;
}
.gl-row-ok { color: var(--fg-ghost); text-align: center; }

@media (max-width: 1100px) {
  .gl-stream { width: calc(100% - 28px); }
  .gl-row { grid-template-columns: 44px 20px minmax(90px,auto) minmax(0,1fr); }
  .gl-row-ok, .gl-row-host { display: none; }
}
@media (max-width: 900px) { .gl-stream { display: none; } }

/* denetim dugmeleri akisin uzerine binmesin */
.gl-controls { bottom: 14px; }

/* Tek olcumlu grafik: egri cizilemedigi durumda kutuyu bos birakmak yerine
   elimizdeki tek gercek degeri okunakli gosterir. */
.chart-single {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 4px;
  border: 1px solid var(--line-soft); background: rgba(255,255,255,.012);
}
.chart-single-v {
  font-family: var(--mono); font-size: 30px; font-weight: 600;
  color: var(--fg); letter-spacing: -.02em; line-height: 1;
}
.chart-single-t {
  font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--fg-ghost);
}
