/* booXsec konsol — tasarım v2 */
:root {
  --bg: #eef1f5;
  --panel: #ffffff;
  --panel-2: #f6f8fb;
  --panel-3: #edf1f6;
  --border: #dde3eb;
  --border-2: #c9d2de;
  --text: #0e1a26;
  --muted: #5f6f82;
  --faint: #93a1b2;
  --head: #0a1520;
  --side: #0f1c28;
  --side-2: #16283a;
  --side-3: #1d3348;
  --side-text: #b7c4d3;
  --side-muted: #6f8297;
  --accent: #0891b2;
  --accent-h: #0e7490;
  --accent-2: #00e5ff;
  --accent-soft: #dff7fc;
  --ok: #15803d;
  --ok-2: #22c55e;
  --ok-soft: #dcfce7;
  --warn: #b45309;
  --warn-2: #f59e0b;
  --warn-soft: #fef3c7;
  --crit: #c81e1e;
  --crit-2: #ef4444;
  --crit-soft: #fee2e2;
  --info: #1d4ed8;
  --info-2: #3b82f6;
  --info-soft: #dbeafe;
  --purple: #7c3aed;
  --purple-soft: #ede9fe;
  --shadow: 0 1px 2px rgba(14, 26, 38, .06);
  --shadow-lg: 0 18px 48px rgba(10, 21, 32, .22);
  --radius: 8px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", Consolas, "SFMono-Regular", monospace;
  --head-h: 54px;
  --side-w: 236px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0a121b; --panel: #101b27; --panel-2: #0d1722; --panel-3: #142231; --border: #1e2e3f; --border-2: #2a3d52;
  --text: #e3eaf2; --muted: #93a3b5; --faint: #637489; --accent-soft: #0b3442; --ok-soft: #10301d; --warn-soft: #362611;
  --crit-soft: #3a1616; --info-soft: #13284a; --purple-soft: #261b47; --shadow: 0 1px 2px rgba(0, 0, 0, .5); color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 13.5px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
code, .mono { font-family: var(--mono); font-size: 12px; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.005em; }
.boot { display: grid; place-items: center; height: 100vh; color: var(--muted); }
::selection { background: var(--accent-soft); }

/* ================= Kabuk ================= */
.app { display: grid; grid-template-rows: var(--head-h) 1fr; grid-template-columns: var(--side-w) 1fr; grid-template-areas: "head head" "side main"; min-height: 100vh; }
.app.collapsed { --side-w: 64px; }
.head { grid-area: head; background: var(--head); color: #dbe5ef; display: flex; align-items: center; gap: 14px; padding: 0 16px 0 12px; position: sticky; top: 0; z-index: 30; border-bottom: 1px solid #0f2233; }
.head .logo { display: flex; align-items: center; gap: 10px; width: calc(var(--side-w) - 24px); min-width: 40px; overflow: hidden; }
.head .logo img.shield { width: 30px; height: 30px; flex: none; }
.head .logo img.word { height: 19px; width: auto; }
.app.collapsed .head .logo img.word { display: none; }
.head .burger { background: none; border: 0; color: #8fa3b8; cursor: pointer; padding: 6px; border-radius: 6px; display: grid; }
.head .burger:hover { background: #142636; color: #fff; }
.head .burger svg { width: 20px; height: 20px; }
.gsearch { position: relative; flex: 1; max-width: 560px; }
.gsearch input { width: 100%; height: 34px; border-radius: 7px; border: 1px solid #1d3346; background: #0f2131; color: #e2ebf3; padding: 0 12px 0 36px; }
.gsearch input::placeholder { color: #6f8499; }
.gsearch input:focus { outline: none; border-color: var(--accent); background: #10273a; }
.gsearch > svg { position: absolute; left: 11px; top: 9px; width: 16px; height: 16px; color: #6f8499; }
.gsearch kbd { position: absolute; right: 9px; top: 7px; font: 11px var(--mono); color: #6f8499; border: 1px solid #23394d; border-radius: 4px; padding: 1px 5px; }
.gresults { position: absolute; top: 40px; left: 0; right: 0; background: var(--panel); color: var(--text); border: 1px solid var(--border); border-radius: 9px; box-shadow: var(--shadow-lg); max-height: 440px; overflow-y: auto; padding: 6px; }
.gresults .grp { font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--faint); padding: 8px 10px 4px; }
.gresults a { display: flex; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 6px; color: var(--text); }
.gresults a:hover, .gresults a.sel { background: var(--panel-3); text-decoration: none; }
.gresults a svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.gresults a small { color: var(--muted); margin-left: auto; font-size: 12px; }
.head .tools { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.hbtn { position: relative; background: none; border: 0; color: #a9bacb; cursor: pointer; height: 36px; min-width: 36px; padding: 0 8px; border-radius: 7px; display: inline-flex; align-items: center; gap: 8px; }
.hbtn:hover { background: #142636; color: #fff; }
.hbtn svg { width: 19px; height: 19px; }
.hbtn .pip { position: absolute; top: 4px; right: 3px; min-width: 17px; height: 17px; border-radius: 9px; background: var(--crit-2); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; padding: 0 4px; border: 2px solid var(--head); }
.hbtn .avatar { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #0891b2, #155e75); color: #fff; font-size: 11.5px; font-weight: 700; display: grid; place-items: center; }
.hbtn .uname { font-size: 13px; color: #dbe5ef; text-align: left; line-height: 1.15; }
.hbtn .uname small { display: block; color: #6f8499; font-size: 11px; }

.side { grid-area: side; background: var(--side); color: var(--side-text); position: sticky; top: var(--head-h); height: calc(100vh - var(--head-h)); display: flex; flex-direction: column; overflow: hidden; }
.side .org { padding: 14px 16px 10px; border-bottom: 1px solid #172a3c; }
.side .org b { display: block; color: #fff; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side .org span { color: var(--side-muted); font-size: 11.5px; }
.app.collapsed .side .org { display: none; }
.nav { padding: 8px; display: flex; flex-direction: column; gap: 1px; overflow-y: auto; flex: 1; }
.nav .sect { padding: 14px 10px 5px; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .09em; color: var(--side-muted); white-space: nowrap; }
.app.collapsed .nav .sect { visibility: hidden; height: 12px; padding: 0; }
.nav a { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 12px; border-radius: 6px; color: var(--side-text); font-weight: 500; white-space: nowrap; position: relative; }
.nav a:hover { background: var(--side-2); color: #fff; text-decoration: none; }
.nav a.on { background: var(--side-3); color: #fff; }
.nav a.on::before { content: ""; position: absolute; left: -8px; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent-2); }
.nav a svg { width: 18px; height: 18px; flex: none; }
.nav a.on svg { color: var(--accent-2); }
.nav .count { margin-left: auto; background: var(--crit-2); color: #fff; font-size: 11px; font-weight: 700; padding: 0 7px; border-radius: 9px; line-height: 18px; }
.app.collapsed .nav a { justify-content: center; padding: 0; }
.app.collapsed .nav a span.lbl, .app.collapsed .nav .count { display: none; }
.side .foot { padding: 10px 16px 12px; border-top: 1px solid #172a3c; color: var(--side-muted); font-size: 11.5px; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.side .foot .live { width: 8px; height: 8px; border-radius: 50%; background: var(--ok-2); box-shadow: 0 0 0 3px rgba(34, 197, 94, .18); flex: none; }
.app.collapsed .side .foot span { display: none; }

.main { grid-area: main; min-width: 0; display: flex; flex-direction: column; }
.pagehead { background: var(--panel); border-bottom: 1px solid var(--border); padding: 14px 26px 14px; display: flex; align-items: center; gap: 16px; position: sticky; top: var(--head-h); z-index: 20; }
.pagehead .crumbs { font-size: 12px; color: var(--muted); margin-bottom: 2px; display: flex; gap: 6px; align-items: center; }
.pagehead .crumbs a { color: var(--muted); }
.pagehead .crumbs svg { width: 12px; height: 12px; }
.pagehead h1 { font-size: 19px; display: flex; align-items: center; gap: 10px; }
.pagehead .sub { color: var(--muted); font-size: 12.5px; }
.pagehead .acts { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.content { padding: 20px 26px 48px; display: flex; flex-direction: column; gap: 16px; }

/* ================= Kartlar ================= */
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.card > .hd { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); min-height: 46px; }
.card > .hd h3 { font-size: 13.5px; font-weight: 600; }
.card > .hd .hint { color: var(--muted); font-size: 12px; }
.card > .hd .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.card > .bd { padding: 14px 16px 16px; }
.card > .bd.flush { padding: 0; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.g-1-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.g-3-2 { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }

/* Durum kutucukları */
.tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.tile { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 13px 14px 12px; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 6px; color: var(--text); box-shadow: var(--shadow); min-width: 0; }
a.tile:hover { text-decoration: none; border-color: var(--border-2); }
.tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--tone, var(--faint)); }
.tile .t { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.tile .t svg { width: 15px; height: 15px; color: var(--tone, var(--muted)); }
.tile .v { font-size: 26px; font-weight: 650; line-height: 1.05; font-variant-numeric: tabular-nums; }
.tile .v small { font-size: 14px; color: var(--muted); font-weight: 500; }
.tile .s { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile.ok { --tone: var(--ok-2); } .tile.warn { --tone: var(--warn-2); } .tile.crit { --tone: var(--crit-2); } .tile.info { --tone: var(--info-2); } .tile.acc { --tone: var(--accent); } .tile.pur { --tone: var(--purple); }
.tile.crit .v { color: var(--crit); }

/* ================= Tablolar ================= */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-weight: 600; color: var(--muted); font-size: 11.5px; padding: 0 12px; height: 36px; border-bottom: 1px solid var(--border); white-space: nowrap; background: var(--panel-2); }
.tbl th.sortable { cursor: pointer; user-select: none; }
.tbl th.sortable:hover { color: var(--text); }
.tbl th .arr { color: var(--accent); margin-left: 3px; }
.tbl td { padding: 0 12px; height: 44px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl td.tall { padding-top: 7px; padding-bottom: 7px; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: var(--panel-2); }
.tbl tbody tr.sel { background: var(--accent-soft); }
.tbl tr.clickable { cursor: pointer; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl td.nowrap { white-space: nowrap; }
.tbl td.trunc { max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbl .chk { width: 38px; }
.tbl input[type=checkbox] { accent-color: var(--accent); width: 15px; height: 15px; vertical-align: middle; }
.tbl .sub { display: block; color: var(--muted); font-size: 12px; line-height: 1.3; }
.pager { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12.5px; background: var(--panel-2); border-radius: 0 0 var(--radius) var(--radius); }
.pager .right { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.pager select { height: 28px; padding: 0 6px; border: 1px solid var(--border); border-radius: 6px; background: var(--panel); }
.empty { padding: 34px 16px; text-align: center; color: var(--muted); }
.empty svg { width: 34px; height: 34px; opacity: .4; display: block; margin: 0 auto 8px; }

/* ================= Rozetler ================= */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; padding: 0 8px; border-radius: 4px; white-space: nowrap; line-height: 21px; }
.badge svg { width: 12px; height: 12px; }
.b-ok { background: var(--ok-soft); color: var(--ok); }
.b-warn { background: var(--warn-soft); color: var(--warn); }
.b-crit { background: var(--crit-soft); color: var(--crit); }
.b-info { background: var(--info-soft); color: var(--info); }
.b-muted { background: var(--panel-3); color: var(--muted); }
.b-accent { background: var(--accent-soft); color: var(--accent-h); }
.b-pur { background: var(--purple-soft); color: var(--purple); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.dot.on { background: var(--ok-2); box-shadow: 0 0 0 3px var(--ok-soft); }
.dot.off { background: var(--faint); }
.sev { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 12px; }
.sev::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: currentColor; }
.sev.critical { color: #991b1b; } .sev.high { color: var(--crit-2); } .sev.medium { color: var(--warn-2); } .sev.low { color: var(--info-2); }
.st-ico { width: 26px; height: 26px; border-radius: 6px; display: inline-grid; place-items: center; flex: none; }
.st-ico svg { width: 15px; height: 15px; }
.st-ico.ok { background: var(--ok-soft); color: var(--ok); } .st-ico.warn { background: var(--warn-soft); color: var(--warn); }
.st-ico.crit { background: var(--crit-soft); color: var(--crit); } .st-ico.muted { background: var(--panel-3); color: var(--muted); } .st-ico.info { background: var(--info-soft); color: var(--info); }

/* ================= Butonlar & formlar ================= */
.btn { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 13px; border-radius: 6px; border: 1px solid var(--border-2); background: var(--panel); cursor: pointer; font-weight: 600; font-size: 13px; white-space: nowrap; color: var(--text); }
.btn:hover { background: var(--panel-2); text-decoration: none; }
.btn svg { width: 15px; height: 15px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-h); }
.btn.danger { color: var(--crit); }
.btn.danger.solid { background: var(--crit); border-color: var(--crit); color: #fff; }
.btn.sm { height: 27px; padding: 0 9px; font-size: 12.5px; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--panel-3); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.input, select.input, textarea.input { height: 32px; padding: 0 10px; border: 1px solid var(--border-2); border-radius: 6px; background: var(--panel); min-width: 0; }
textarea.input { height: auto; padding: 8px 10px; resize: vertical; font-family: var(--mono); font-size: 12.5px; line-height: 1.5; }
.input:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.input:disabled { background: var(--panel-2); color: var(--muted); }
.search { position: relative; }
.search input { padding-left: 32px; width: 280px; }
.search svg { position: absolute; left: 10px; top: 8px; width: 16px; height: 16px; color: var(--faint); }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.field > label { font-weight: 600; font-size: 12.5px; }
.field .help { color: var(--muted); font-size: 12px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row > .grow { flex: 1; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; cursor: pointer; }
.check input { margin-top: 2px; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
.check b { display: block; font-weight: 600; }
.check span { color: var(--muted); font-size: 12.5px; }
.seg { display: inline-flex; border: 1px solid var(--border-2); border-radius: 6px; overflow: hidden; background: var(--panel); }
.seg button { border: 0; background: none; padding: 0 13px; height: 30px; cursor: pointer; font-weight: 600; font-size: 12.5px; border-right: 1px solid var(--border-2); color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--accent-soft); color: var(--accent-h); }
.seg button .n { background: var(--panel-3); color: var(--muted); border-radius: 9px; padding: 0 6px; font-size: 11px; }
.seg button.on .n { background: var(--accent); color: #fff; }
.opt-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.opt-card { border: 1.5px solid var(--border); border-radius: 8px; padding: 12px 14px; cursor: pointer; background: var(--panel); }
.opt-card:hover { border-color: var(--border-2); }
.opt-card.on { border-color: var(--accent); background: var(--accent-soft); }
.opt-card b { display: flex; align-items: center; gap: 7px; margin-bottom: 3px; }
.opt-card b svg { width: 16px; height: 16px; color: var(--accent); }
.opt-card span { color: var(--muted); font-size: 12.5px; }
.filterbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.filterbar .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.filterbar .info { color: var(--muted); font-size: 12.5px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 14px; border: 1px solid var(--border-2); background: var(--panel); font-size: 12.5px; font-weight: 600; cursor: pointer; color: var(--muted); }
.chip:hover { border-color: var(--faint); }
.chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-h); }
.chip .n { font-weight: 700; color: var(--text); }
.chip svg { width: 13px; height: 13px; }

/* ================= Sekmeler ================= */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 10px 14px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.on { color: var(--accent-h); border-bottom-color: var(--accent); }
.tabs a svg { width: 15px; height: 15px; }
.tabs .n { background: var(--crit-2); color: #fff; border-radius: 9px; font-size: 10.5px; padding: 0 6px; line-height: 17px; }

/* ================= Bilgisayarlar ================= */
.split { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 16px; align-items: start; }
.tree { padding: 6px; }
.tree .item { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 6px; cursor: pointer; color: var(--text); }
.tree .item:hover { background: var(--panel-2); }
.tree .item.on { background: var(--accent-soft); color: var(--accent-h); font-weight: 600; }
.tree .item svg { width: 16px; height: 16px; flex: none; color: var(--muted); }
.tree .item.on svg { color: var(--accent); }
.tree .item .c { margin-left: auto; color: var(--muted); font-size: 12px; background: var(--panel-3); border-radius: 9px; padding: 0 7px; line-height: 18px; font-weight: 600; }
.tree .item .pol { display: block; color: var(--muted); font-size: 11px; font-weight: 400; }
.tree .sub { padding-left: 12px; border-left: 1px dashed var(--border-2); margin-left: 17px; }
.toolbar { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.toolbar .sel { color: var(--muted); font-size: 12.5px; }

/* ================= Bilgisayar detayı ================= */
.devlayout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
.devcard { position: sticky; top: calc(var(--head-h) + 84px); }
.devcard .top { padding: 18px 16px 14px; text-align: center; border-bottom: 1px solid var(--border); }
.devcard .pc { width: 60px; height: 60px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin: 0 auto 10px; position: relative; }
.devcard .pc svg { width: 32px; height: 32px; }
.devcard .pc .dot { position: absolute; right: -2px; bottom: -2px; width: 14px; height: 14px; border: 3px solid var(--panel); box-shadow: none; }
.devcard h2 { font-size: 16px; }
.devcard .os { color: var(--muted); font-size: 12px; margin-top: 2px; }
.devcard .top .badge { margin-top: 10px; }
.devcard dl { margin: 0; padding: 6px 16px 10px; }
.devcard dl div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--border); font-size: 12.5px; }
.devcard dl div:last-child { border-bottom: 0; }
.devcard dt { color: var(--muted); }
.devcard dd { margin: 0; text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.devcard .quick { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 12px 16px 16px; border-top: 1px solid var(--border); }
.devcard .quick .btn { justify-content: center; }
.kv { display: grid; grid-template-columns: 170px 1fr; gap: 9px 14px; font-size: 13px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.bar { height: 7px; background: var(--panel-3); border-radius: 4px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.bar.warn > i { background: var(--warn-2); } .bar.crit > i { background: var(--crit-2); } .bar.ok > i { background: var(--ok-2); }
.meter-row { display: grid; grid-template-columns: minmax(90px, 160px) 1fr 86px; gap: 12px; align-items: center; font-size: 13px; padding: 5px 0; }
.meter-row .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meter-row .val { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12.5px; }
.status-line { display: flex; align-items: center; gap: 11px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.status-line:first-child { padding-top: 2px; }
.status-line:last-child { border-bottom: 0; padding-bottom: 0; }
.status-line .t { flex: 1; min-width: 0; }
.status-line .t small { display: block; color: var(--muted); font-size: 12px; }
.ico-ok, .ico-bad, .ico-warn { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; flex: none; }
.ico-ok { background: var(--ok-soft); color: var(--ok); } .ico-bad { background: var(--crit-soft); color: var(--crit); } .ico-warn { background: var(--warn-soft); color: var(--warn); }
.ico-ok svg, .ico-bad svg, .ico-warn svg { width: 14px; height: 14px; }
.day-nav { display: flex; align-items: center; gap: 6px; }
.day-nav input { width: 150px; }
.stat-mini { display: flex; gap: 32px; flex-wrap: wrap; }
.stat-mini div b { display: block; font-size: 21px; font-weight: 650; font-variant-numeric: tabular-nums; }
.stat-mini div span { color: var(--muted); font-size: 12px; }

/* ================= Grafikler ================= */
.chart { width: 100%; display: block; height: auto; }
.chart text { fill: var(--muted); font-size: 10.5px; font-family: var(--font); }
.chart .grid-line { stroke: var(--border); stroke-width: 1; }
.chart .track { stroke: var(--panel-3); }
.chart text.big { font-size: 26px; font-weight: 650; fill: var(--text); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); align-items: center; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.donut-wrap { display: flex; align-items: center; gap: 24px; }
.donut-wrap .legend { flex-direction: column; align-items: stretch; gap: 9px; font-size: 13px; color: var(--text); flex: 1; }
.donut-wrap .legend > div { display: flex; align-items: center; }
.donut-wrap .legend b { margin-left: auto; font-variant-numeric: tabular-nums; }
.list { display: flex; flex-direction: column; }
.list .li { display: flex; gap: 11px; align-items: center; padding: 10px 16px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text); }
a.li:hover { background: var(--panel-2); text-decoration: none; }
.list .li:first-child { border-top: 0; }
.list .li .grow { flex: 1; min-width: 0; }
.list .li .grow b { font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .li .grow small { display: block; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .li .when { color: var(--muted); font-size: 12px; white-space: nowrap; }

/* ================= Modal, menü, bildirim ================= */
.modal-bg { position: fixed; inset: 0; background: rgba(5, 12, 20, .55); display: grid; place-items: center; z-index: 50; padding: 20px; animation: fade .12s ease-out; }
.modal { background: var(--panel); border-radius: 10px; width: min(560px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.modal.wide { width: min(880px, 100%); }
.modal .mh { padding: 14px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; }
.modal .mh h3 { font-size: 15.5px; flex: 1; }
.modal .mb { padding: 18px; overflow-y: auto; }
.modal .mf { padding: 12px 18px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; background: var(--panel-2); border-radius: 0 0 10px 10px; }
.modal pre, pre.out { background: var(--panel-2); border: 1px solid var(--border); border-radius: 6px; padding: 12px; white-space: pre-wrap; word-break: break-word; max-height: 360px; overflow: auto; font: 12px/1.55 var(--mono); margin: 0; }
@keyframes fade { from { opacity: 0; } }
#toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 60; }
.toast { background: var(--head); color: #fff; padding: 11px 16px; border-radius: 8px; box-shadow: var(--shadow-lg); font-size: 13px; max-width: 400px; animation: fade .15s; border-left: 4px solid var(--accent-2); }
.toast.err { border-left-color: var(--crit-2); }
.menu { position: absolute; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow-lg); padding: 5px; z-index: 40; min-width: 240px; max-height: 70vh; overflow-y: auto; color: var(--text); }
.menu button { display: flex; width: 100%; gap: 9px; align-items: center; padding: 7px 10px; background: none; border: 0; border-radius: 5px; cursor: pointer; text-align: left; font-size: 13px; color: var(--text); }
.menu button:hover { background: var(--panel-3); }
.menu button.danger { color: var(--crit); }
.menu button:disabled { opacity: .45; cursor: default; }
.menu hr { border: 0; border-top: 1px solid var(--border); margin: 5px 0; }
.menu .mhead { font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--faint); padding: 7px 10px 3px; }
.menu svg { width: 15px; height: 15px; color: var(--muted); }
.notif { width: 400px; padding: 0; }
.notif .nh { display: flex; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.notif .nh b { flex: 1; }
.notif .li { padding: 10px 14px; }
.callout { border-radius: 7px; padding: 11px 13px; font-size: 13px; display: flex; gap: 10px; border: 1px solid transparent; }
.callout.info { background: var(--info-soft); border-color: #bfdbfe; }
.callout.warn { background: var(--warn-soft); border-color: #fde68a; }
.callout.crit { background: var(--crit-soft); border-color: #fecaca; }
.callout svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.codebox { display: flex; gap: 8px; align-items: stretch; }
.codebox code { flex: 1; background: var(--head); color: #a5f3fc; padding: 10px 12px; border-radius: 6px; overflow-x: auto; white-space: nowrap; font-size: 12px; }

/* ================= Giriş ================= */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.15fr 1fr; }
.login .art { background: radial-gradient(900px 520px at 15% 0%, #0b4a5a 0, transparent 62%), radial-gradient(700px 500px at 100% 100%, #0b2c3d 0, transparent 60%), linear-gradient(160deg, #0f1c28, #08121c); color: #c7d2e1; padding: 52px 56px; display: flex; flex-direction: column; justify-content: space-between; }
.login .art h1 { color: #fff; font-size: 33px; line-height: 1.15; max-width: 470px; margin-top: 44px; font-weight: 650; }
.login .art p { max-width: 450px; color: #93a4bd; font-size: 15px; }
.login .art ul { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 13px; }
.login .art li { display: flex; gap: 11px; align-items: center; }
.login .art li svg { width: 18px; height: 18px; color: var(--accent-2); }
.login .art img.word { height: 42px; width: auto; }
.login .art .logo-row { display: flex; align-items: center; gap: 14px; }
.login .art .logo-row img.shield { width: 50px; height: 50px; }
.login .form { display: grid; place-items: center; padding: 40px; background: var(--panel); }
.login form { width: min(360px, 100%); }
.login form .mini-logo { width: 46px; height: 46px; margin-bottom: 14px; }
.login form h2 { font-size: 22px; margin-bottom: 4px; }
.login form p { color: var(--muted); margin: 0 0 24px; }
.login .input { height: 40px; }
.login .btn { height: 40px; width: 100%; justify-content: center; }
.login .err { color: var(--crit); font-size: 13px; min-height: 20px; margin-bottom: 8px; }

.muted { color: var(--muted); }
.small { font-size: 12px; }
.right { margin-left: auto; }
.hide { display: none !important; }
.nowrap { white-space: nowrap; }
.sep { width: 1px; height: 22px; background: var(--border); }

@media (max-width: 1400px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1200px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .devlayout { grid-template-columns: 1fr; } .devcard { position: static; } }
@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; grid-template-areas: "head" "main"; }
  .side { display: none; }
  .app.menu-open .side { display: flex; position: fixed; left: 0; top: var(--head-h); z-index: 35; width: 240px; }
  .g2, .g3, .g-2-1, .g-1-2, .g-3-2, .split, .opt-cards { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .login { grid-template-columns: 1fr; }
  .login .art { display: none; }
  .pagehead, .content { padding-left: 16px; padding-right: 16px; }
  .pagehead { flex-wrap: wrap; position: static; }
  .head .logo { width: auto; }
  .head .logo img.word, .hbtn .uname, .gsearch kbd { display: none; }
  .search input { width: 100%; }
}
.donut-wrap .legend { min-width: 130px; }
.donut-wrap .legend > div { gap: 2px; }
.donut-wrap .legend b { padding-left: 12px; }
.posture .meter-row { grid-template-columns: minmax(0, 1fr) 84px 40px; }
