/* =========================================================================
   ERBE SIEM — Demo tasarım sistemi
   Dark/OLED SIEM estetiği. Renkler dataviz doğrulayıcısıyla test edildi.
   ========================================================================= */
:root {
  /* Yüzeyler (koyu) */
  --bg: #080b11;
  --bg-grad: radial-gradient(1200px 600px at 12% -8%, #12305a22, transparent 60%),
             radial-gradient(1000px 500px at 100% 0%, #0e5a4d1f, transparent 55%);
  --panel: #0f1621;
  --panel-2: #131c2a;
  --panel-3: #182233;
  --border: #1e2a3b;
  --border-2: #263449;
  --text: #e8eef7;
  --muted: #90a0b5;
  --muted-2: #64748b;

  --primary: #4493f8;
  --primary-2: #2a78d6;
  --accent: #17b8a6;

  /* Kategorik seriler — sabit sıra, asla döngülenmez (koyu tema, doğrulandı) */
  --s1: #3987e5; --s2: #1baf7a; --s3: #c98500; --s4: #9085e9; --s5: #d55181; --s6: #d95926;

  /* Durum renkleri (ikon+etiketle birlikte kullanılır) */
  --crit: #ef4444; --high: #f97316; --med: #eab308; --low: #3b82f6; --info: #8b98a8; --good: #22c55e;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px #00000040, 0 8px 30px #00000030;
  --glow: 0 0 24px;
  --sidebar-w: 244px;
  --topbar-h: 60px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}
:root[data-theme="light"] {
  --bg: #eef1f6;
  --bg-grad: radial-gradient(1200px 600px at 12% -8%, #4493f818, transparent 60%),
             radial-gradient(1000px 500px at 100% 0%, #17b8a614, transparent 55%);
  --panel: #ffffff;
  --panel-2: #f5f7fa;
  --panel-3: #eef2f7;
  --border: #dbe2ea;
  --border-2: #cbd5e1;
  --text: #0f1b2d;
  --muted: #52627a;
  --muted-2: #7688a0;
  --s1: #2a78d6; --s2: #199e70; --s3: #b47600; --s4: #6b5fd4; --s5: #c2426f; --s6: #c14a1f;
  --info: #64748b;
  --shadow: 0 1px 2px #0f172a12, 0 10px 30px #0f172a0f;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  background-image: var(--bg-grad);
  background-attachment: fixed;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizedLegibility;
}
::selection { background: var(--primary); color: #fff; }
a { color: inherit; text-decoration: none; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.tnum { font-variant-numeric: tabular-nums; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 20px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: var(--muted-2); background-clip: content-box; }

/* ---------- App shell ---------- */
.app { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }
.main { min-width: 0; display: flex; flex-direction: column; }
.view { padding: 20px 24px 40px; outline: none; max-width: 1600px; width: 100%; margin: 0 auto; }

/* ---------- Sidebar ---------- */
.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  background: linear-gradient(180deg, var(--panel), var(--bg) 120%);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 2px; padding: 14px 12px;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 14px; }
.brand .logo { width: 34px; height: 34px; flex: none; filter: drop-shadow(0 4px 10px #4493f855); }
.brand .word { line-height: 1.05; }
.brand .word b { font-size: 17px; font-weight: 800; letter-spacing: .3px; }
.brand .word span { display: block; font-size: 9.5px; letter-spacing: 2.5px; color: var(--muted); }
.nav-group { margin-top: 12px; padding: 0 8px 4px; font-size: 10px; font-weight: 700; letter-spacing: 1.4px; color: var(--muted-2); text-transform: uppercase; }
.nav-item {
  display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 10px;
  color: var(--muted); font-weight: 500; cursor: pointer; position: relative;
  transition: background .18s, color .18s; user-select: none;
}
.nav-item svg { width: 18px; height: 18px; flex: none; }
.nav-item:hover { background: var(--panel-2); color: var(--text); }
.nav-item.active { background: linear-gradient(90deg, #4493f826, #4493f80a); color: #fff; }
.nav-item.active::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--primary); box-shadow: var(--glow) #4493f8; }
:root[data-theme="light"] .nav-item.active { color: var(--primary-2); }
.nav-item .badge-n { margin-left: auto; font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 20px; background: var(--crit); color: #fff; }
.nav-item .badge-soft { margin-left: auto; font-size: 9px; font-weight: 700; padding: 1px 6px; border-radius: 6px; background: var(--panel-3); color: var(--muted); }
.sidebar-foot { margin-top: auto; padding: 12px 8px 4px; font-size: 11px; color: var(--muted-2); border-top: 1px solid var(--border); }
.sidebar-foot a { color: var(--primary); }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40; height: var(--topbar-h);
  display: flex; align-items: center; gap: 14px; padding: 0 22px;
  background: color-mix(in srgb, var(--panel) 78%, transparent);
  backdrop-filter: blur(14px); border-bottom: 1px solid var(--border);
}
.search { flex: 1; max-width: 460px; position: relative; }
.search input {
  width: 100%; height: 38px; padding: 0 12px 0 38px; border-radius: 10px;
  background: var(--panel-2); border: 1px solid var(--border); color: var(--text); font-size: 13px; font-family: var(--font);
}
.search input::placeholder { color: var(--muted-2); }
.search svg { position: absolute; left: 11px; top: 10px; width: 17px; height: 17px; color: var(--muted-2); }
.topbar .spacer { flex: 1; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 9px; background: var(--panel-2); border: 1px solid var(--border); font-size: 12px; font-weight: 500; color: var(--muted); }
.chip svg { width: 15px; height: 15px; }
.chip.live { color: var(--good); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.dot.pulse { animation: pulse 1.6s infinite; box-shadow: 0 0 0 0 currentColor; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 60%, transparent); } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.icon-btn { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: transparent; border: 1px solid transparent; color: var(--muted); cursor: pointer; transition: background .18s, color .18s; position: relative; }
.icon-btn:hover { background: var(--panel-2); color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .n { position: absolute; top: 3px; right: 3px; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 10px; background: var(--crit); color: #fff; font-size: 9px; font-weight: 700; display: grid; place-items: center; }
.demo-badge { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 8px; font-size: 11px; font-weight: 800; letter-spacing: .6px;
  background: linear-gradient(90deg, #f9731633, #eab30822); color: #fbbf24; border: 1px solid #f9731655; }

/* ---------- Cards / layout ---------- */
.grid { display: grid; gap: 14px; }
.card {
  background: linear-gradient(180deg, var(--panel), color-mix(in srgb, var(--panel) 92%, #000));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow);
  min-width: 0;
}
.card.tight { padding: 13px 14px; }
.card.p0 { padding: 0; overflow: hidden; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card-h h3 { margin: 0; font-size: 14px; font-weight: 600; }
.card-h .sub, .card .sub { color: var(--muted); font-size: 12px; }
.section-title { margin: 2px 0 2px; }
.section-title h1 { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -.2px; }
.section-title p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.row { display: flex; align-items: center; gap: 10px; }
.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.hpad { padding-left: 16px; padding-right: 16px; }

/* stat tiles */
.stat { position: relative; overflow: hidden; }
.stat .lab { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11.5px; font-weight: 500; }
.stat .lab svg { width: 15px; height: 15px; }
.stat .val { margin-top: 8px; font-size: 27px; font-weight: 800; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.stat .delta { font-size: 11px; font-weight: 600; margin-top: 3px; }
.stat .spark { position: absolute; right: 0; bottom: 0; left: 0; height: 34px; opacity: .8; }
.up { color: var(--good); } .down { color: var(--crit); }

/* badges */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 20px; font-size: 11px; font-weight: 600; line-height: 1.6; white-space: nowrap; }
.badge .sq { width: 7px; height: 7px; border-radius: 2px; }
.b-crit { background: #ef444422; color: #fca5a5; } .b-high { background: #f9731622; color: #fdba74; }
.b-med { background: #eab30822; color: #fde047; } .b-low { background: #3b82f622; color: #93c5fd; }
.b-info { background: #8b98a822; color: var(--muted); } .b-good { background: #22c55e22; color: #86efac; }
.b-blue { background: #4493f822; color: #93c5fd; }
:root[data-theme="light"] .b-crit { color: #b91c1c; } :root[data-theme="light"] .b-high { color: #c2410c; }
:root[data-theme="light"] .b-med { color: #a16207; } :root[data-theme="light"] .b-good { color: #15803d; }
:root[data-theme="light"] .b-low, :root[data-theme="light"] .b-blue { color: #1d4ed8; }

/* tables */
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th { text-align: left; font-weight: 600; color: var(--muted); font-size: 11px; letter-spacing: .3px; text-transform: uppercase; padding: 10px 14px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--panel); z-index: 1; }
tbody td { padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: var(--panel-2); }
tbody tr:last-child td { border-bottom: 0; }
.row-new { animation: rowIn .5s ease; }
@keyframes rowIn { from { background: #4493f822; } to { background: transparent; } }

/* buttons (demo salt-okunur) */
.btn { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: 9px; font-size: 13px; font-weight: 600; font-family: var(--font); cursor: pointer; border: 1px solid var(--border); background: var(--panel-2); color: var(--text); transition: background .16s, border-color .16s, transform .06s; }
.btn:hover { background: var(--panel-3); border-color: var(--border-2); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(180deg, var(--primary), var(--primary-2)); color: #fff; border-color: transparent; box-shadow: 0 6px 16px #2a78d64d; }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12px; }
.btn svg { width: 15px; height: 15px; }
select.inp, input.inp { height: 34px; padding: 0 10px; border-radius: 9px; background: var(--panel-2); border: 1px solid var(--border); color: var(--text); font-size: 13px; font-family: var(--font); }
.pill-tabs { display: inline-flex; padding: 3px; gap: 2px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; }
.pill-tabs button { border: 0; background: transparent; color: var(--muted); font-weight: 600; font-size: 12px; padding: 5px 11px; border-radius: 8px; cursor: pointer; font-family: var(--font); }
.pill-tabs button.on { background: var(--primary); color: #fff; }

/* progress / meters */
.meter { height: 6px; border-radius: 20px; background: var(--panel-3); overflow: hidden; }
.meter > i { display: block; height: 100%; border-radius: 20px; background: var(--primary); }
.rank { display: grid; gap: 11px; }
.rank .r-top { display: flex; justify-content: space-between; gap: 8px; }
.rank .r-top b { font-weight: 600; }

/* live feed */
.feed { display: flex; flex-direction: column; gap: 1px; }
.feed .f-item { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--border); }
.feed .f-item:last-child { border-bottom: 0; }
.feed .f-item .f-ico { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.feed .f-item .f-body { min-width: 0; flex: 1; }
.feed .f-item .f-t { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed .f-item .f-s { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed .f-item .f-time { font-size: 11px; color: var(--muted-2); font-variant-numeric: tabular-nums; flex: none; }
.f-in { animation: feedIn .45s cubic-bezier(.2,.7,.3,1); }
@keyframes feedIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* compliance strip */
.frameworks { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.fw { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--border); }
.fw .fw-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: #4493f81a; color: var(--primary); flex: none; }
.fw b { font-size: 13px; } .fw span { display: block; font-size: 11px; color: var(--muted); }

/* gauges */
.gauge-cap { font-size: 12px; font-weight: 600; }
.gauge-sub { font-size: 11px; color: var(--muted); }

/* MITRE heatmap */
.heat { display: grid; grid-auto-flow: column; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.heat-col { min-width: 132px; }
.heat-col > .h-head { font-size: 11px; font-weight: 700; color: var(--muted); padding: 6px 4px; text-transform: uppercase; letter-spacing: .3px; border-bottom: 2px solid var(--border); margin-bottom: 6px; }
.heat-cell { padding: 7px 8px; border-radius: 8px; margin-bottom: 5px; font-size: 11.5px; cursor: default; border: 1px solid var(--border); background: var(--panel-2); transition: transform .1s; }
.heat-cell:hover { transform: translateY(-1px); }
.heat-cell .hc-n { float: right; font-weight: 700; font-variant-numeric: tabular-nums; }

/* attack map */
.map-wrap { position: relative; }
.map-legend { position: absolute; left: 12px; bottom: 10px; display: flex; gap: 12px; font-size: 11px; color: var(--muted); }

/* toast */
.toast-wrap { position: fixed; right: 18px; bottom: 18px; z-index: 100; display: flex; flex-direction: column; gap: 10px; max-width: 360px; }
.toast { display: flex; gap: 11px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--panel-3); border: 1px solid var(--border-2); box-shadow: 0 12px 40px #00000066; animation: toastIn .35s cubic-bezier(.2,.8,.3,1); }
.toast.out { animation: toastOut .3s forwards; }
.toast .t-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.toast b { font-size: 13px; } .toast p { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
@keyframes toastIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(30px); } }

/* drawer */
.drawer-bg { position: fixed; inset: 0; z-index: 90; background: #00000088; backdrop-filter: blur(2px); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 94vw); z-index: 91; background: var(--panel); border-left: 1px solid var(--border-2); box-shadow: -20px 0 60px #00000066; overflow-y: auto; padding: 18px 20px; animation: slideIn .28s cubic-bezier(.2,.8,.3,1); }
@keyframes slideIn { from { transform: translateX(40px); opacity: .4; } to { transform: none; opacity: 1; } }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 4px 12px; font-size: 13px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 500; }

/* empty */
.empty { text-align: center; padding: 40px 12px; color: var(--muted); }

/* utility grid spans */
.g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); } .g5 { grid-template-columns: repeat(5, 1fr); }
.g6 { grid-template-columns: repeat(6, 1fr); }
.col-2 { grid-column: span 2; } .col-3 { grid-column: span 3; }
.mt { margin-top: 14px; } .mt-s { margin-top: 8px; }

@media (max-width: 1200px) {
  .g5, .g6 { grid-template-columns: repeat(3, 1fr); }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .col-3, .col-2 { grid-column: span 1; }
  .xl2 { grid-column: span 1 !important; }
}
@media (max-width: 900px) {
  :root { --sidebar-w: 0px; }
  .sidebar { position: fixed; z-index: 60; width: 244px; transform: translateX(-100%); transition: transform .25s; }
  .sidebar.open { transform: none; box-shadow: 30px 0 80px #000a; }
  .app { grid-template-columns: 1fr; }
  .g3, .g4, .g5, .g6, .g2 { grid-template-columns: repeat(2, 1fr); }
  .hide-sm { display: none !important; }
}
@media (max-width: 560px) {
  .g2, .g3, .g4, .g5, .g6 { grid-template-columns: 1fr; }
  .view { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .01ms !important; }
}

/* scroll area for tables inside cards */
.scroll-x { overflow-x: auto; }
.table-scroll { max-height: 520px; overflow-y: auto; }

/* ---------- Topbar extras ---------- */
.tb-title { font-size: 15px; font-weight: 700; white-space: nowrap; }
.tb-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.chip.live b { color: var(--good); font-variant-numeric: tabular-nums; }
.ic { width: 18px; height: 18px; }
.only-mobile { display: none; }
@media (max-width: 900px) {
  .only-mobile { display: grid; }
  .tb-title { display: none; }
  .search { max-width: none; }
  .only-desk { display: none; }
  .demo-badge span { display: none; }
}
@media (max-width: 620px) { .chip.live { display: none; } }

/* ---------- Toast kinds ---------- */
.toast > div { min-width: 0; }
.toast .t-ic { background: var(--panel-2); color: var(--muted); }
.toast .t-ic svg { width: 17px; height: 17px; }
.toast.t-guard .t-ic { background: #f9731622; color: #fdba74; }
.toast.t-crit  .t-ic { background: #ef444422; color: #fca5a5; }
.toast.t-high  .t-ic { background: #f9731622; color: #fdba74; }
.toast.t-good  .t-ic { background: #22c55e22; color: #86efac; }
.toast.t-info  .t-ic { background: #4493f822; color: #93c5fd; }
.toast.t-crit  { border-color: #ef444455; }

/* ---------- Misc view helpers ---------- */
.kpi-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.dotline { display: inline-flex; align-items: center; gap: 6px; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 7px; font-size: 11px; font-weight: 600; background: var(--panel-3); color: var(--muted); border: 1px solid var(--border); }
.tag.mono { font-family: var(--mono); }
.legend { display: flex; flex-wrap: wrap; gap: 10px 16px; font-size: 12px; color: var(--muted); }
.legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; margin-right: 6px; vertical-align: middle; }
.donut-wrap { display: flex; align-items: center; gap: 16px; }
.gauge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: center; }
.gauge-grid .gc { padding: 6px 4px; }
.progress-ring { display: flex; align-items: center; gap: 12px; }
.big { font-size: 27px; font-weight: 800; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.xl { font-size: 34px; font-weight: 800; letter-spacing: -.8px; }
.hairline { height: 1px; background: var(--border); margin: 12px 0; }
.list-plain { display: grid; gap: 10px; }
.li { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 11px; background: var(--panel-2); border: 1px solid var(--border); }
.li .li-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.li .li-b { min-width: 0; flex: 1; }
.li .li-t { font-weight: 600; }
.li .li-s { font-size: 12px; color: var(--muted); }
.flag { font-size: 12px; }
.pct-bar { display: flex; align-items: center; gap: 10px; }
.pct-bar .meter { flex: 1; }
.pct-bar b { min-width: 42px; text-align: right; font-variant-numeric: tabular-nums; }
.kbd { font-family: var(--mono); font-size: 11px; background: var(--panel-3); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; }
.switch { width: 38px; height: 22px; border-radius: 20px; background: var(--panel-3); border: 1px solid var(--border-2); position: relative; cursor: pointer; flex: none; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: .18s; }
.switch.on { background: var(--primary); border-color: transparent; }
.switch.on::after { left: 18px; background: #fff; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.setting-row:last-child { border-bottom: 0; }
.setting-row .sr-b { min-width: 0; }
.setting-row .sr-t { font-weight: 600; }
.setting-row .sr-s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.code { font-family: var(--mono); font-size: 12px; background: #060a10; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; color: #b9c6d8; white-space: pre; overflow-x: auto; line-height: 1.7; }
:root[data-theme="light"] .code { background: #0f1b2d; color: #cdd8e6; }
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 4px; bottom: 4px; width: 2px; background: var(--border-2); }
.tl-item { position: relative; padding: 0 0 16px; }
.tl-item::before { content: ""; position: absolute; left: -20px; top: 3px; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 3px var(--panel); }
.tl-item.crit::before { background: var(--crit); }
.tl-t { font-weight: 600; }
.tl-time { font-size: 11px; color: var(--muted-2); font-family: var(--mono); }
.mini-stat { display: flex; align-items: baseline; gap: 8px; }
.mini-stat b { font-size: 18px; font-variant-numeric: tabular-nums; }
.risk-ring { width: 46px; height: 46px; flex: none; }
.avatar { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; flex: none; }
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.drawer-head h3 { margin: 0; font-size: 17px; }
.x-btn { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--border); background: var(--panel-2); color: var(--muted); cursor: pointer; font-size: 16px; flex: none; }
.x-btn:hover { background: var(--panel-3); color: var(--text); }
