/* Eymen Panel — "Gece Konsolu" tasarım sistemi */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('fonts/inter-latin-wght-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('fonts/inter-latin-ext-wght-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('fonts/space-grotesk-latin-wght-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('fonts/space-grotesk-latin-ext-wght-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 100 800; font-display: swap; src: url('fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 100 800; font-display: swap; src: url('fonts/jetbrains-mono-latin-ext-wght-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #0A0F16; --side: #0D141E; --top: #0B111A; --card: #121A26; --card2: #0F1722; --raised: #172232; --raised2: #22324A;
  --line: #1F2B3D; --line2: #2A3A52; --line3: #18212F;
  --text: #E8EEF6; --text2: #C9D4E3; --muted: #A9B6C8; --dim: #7F8EA3;
  --accent: #3D9BFF; --accent-ink: #04121F; --accent-soft: rgba(61,155,255,.14); --accent-text: #8CC4FF;
  --amber: #FFB547; --amber-soft: rgba(255,181,71,.14); --amber-text: #FFC56E; --amber-line: rgba(255,181,71,.3);
  --green: #3DD68C; --green-soft: rgba(61,214,140,.12); --green-text: #5BE3A1;
  --red: #FF6B6B; --red-soft: rgba(255,107,107,.12); --red-text: #FF8A8A; --red-line: rgba(255,107,107,.45);
  --code-bg: #0B1017; --term-bg: #070B10;
  --shadow: 0 16px 40px rgba(0,0,0,.45);
  --radius: 14px; --radius-sm: 10px;
  --font: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Space Grotesk', Inter, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #F3F6FA; --side: #FFFFFF; --top: #FFFFFF; --card: #FFFFFF; --card2: #F6F8FB; --raised: #EEF2F7; --raised2: #E2E8F1;
  --line: #E1E7EF; --line2: #CDD6E2; --line3: #EBEFF5;
  --text: #0F1722; --text2: #26354A; --muted: #46566C; --dim: #5B6B81;
  --accent: #1F6FD6; --accent-ink: #FFFFFF; --accent-soft: rgba(31,111,214,.10); --accent-text: #1A5FB8;
  --amber: #C27A0E; --amber-soft: rgba(194,122,14,.12); --amber-text: #8F5600; --amber-line: rgba(194,122,14,.35);
  --green: #12A160; --green-soft: rgba(18,161,96,.12); --green-text: #0C7444;
  --red: #D63B36; --red-soft: rgba(214,59,54,.10); --red-text: #B42D29; --red-line: rgba(214,59,54,.4);
  --code-bg: #FAFBFD; --term-bg: #0B1017;
  --shadow: 0 16px 40px rgba(15,23,34,.12);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; letter-spacing: -0.01em; margin: 0; }
code, .mono, kbd, pre { font-family: var(--font-mono); }
svg.ic { flex: none; display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent-soft); }

/* ---------- Kabuk ---------- */
.shell { display: flex; min-height: 100vh; }
.side { width: 264px; flex: none; background: var(--side); border-right: 1px solid var(--line); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; scrollbar-width: thin; }
.side-inner { padding: 20px 14px 16px; display: flex; flex-direction: column; gap: 20px; min-height: 100%; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px; color: var(--text); text-decoration: none !important; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 18px; }
.brand-sub { font-size: 12px; color: var(--dim); }
.server-chip { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card2); }
.server-chip .n { font-size: 13px; font-weight: 600; }
.server-chip .ip { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 999px; background: var(--green); flex: none; }
.dot.live { box-shadow: 0 0 0 4px var(--green-soft); }
.dot.bad { background: var(--red); } .dot.warn { background: var(--amber); } .dot.off { background: var(--dim); }
.nav { display: flex; flex-direction: column; gap: 16px; flex: 1; }
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-title { padding: 0 12px 6px; font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--dim); text-transform: uppercase; }
.nav a { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 0 12px; border-radius: 10px; color: var(--muted); font-weight: 500; text-decoration: none; }
.nav a svg { color: var(--dim); }
.nav a:hover { background: var(--raised); color: var(--text); }
.nav a.on { background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
.nav a.on svg { color: var(--accent); }
.nav .badge { margin-left: auto; font-family: var(--font-mono); font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 999px; background: var(--amber-soft); color: var(--amber-text); }
.me { display: flex; align-items: center; gap: 12px; padding: 12px 8px 0; border-top: 1px solid var(--line); }
.avatar { width: 38px; height: 38px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; text-transform: uppercase; }
.me .who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.me .who b { font-size: 14px; }
.me .who span { font-size: 12px; color: var(--dim); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; padding: 14px 28px; background: var(--top); border-bottom: 1px solid var(--line); min-height: 72px; }
.top .titles { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top .crumb { font-size: 12px; color: var(--dim); }
.top h1 { font-size: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.search-btn { display: flex; align-items: center; gap: 10px; height: 42px; min-width: 260px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--dim); cursor: pointer; }
.search-btn kbd { margin-left: auto; font-size: 11px; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line2); color: var(--muted); }
.btn.menu-btn { display: none; }
.page { padding: 26px 28px 56px; width: 100%; max-width: 1480px; display: flex; flex-direction: column; gap: 20px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; }
.page-head h2 { font-size: 26px; }
.page-head p { margin: 6px 0 0; color: var(--muted); }
.page-head p:first-child { margin-top: 0; }
.backdrop { display: none; }

/* ---------- Ogeler ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card.flush { padding: 0; gap: 0; overflow: hidden; }
.card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.card.flush > .card-head { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.card-head h3 { font-size: 17px; flex: 1 1 auto; min-width: 0; }
.card-head .sub { width: 100%; margin-top: -6px; color: var(--muted); font-size: 13px; }
.muted { color: var(--muted); } .dim { color: var(--dim); } .small { font-size: 12.5px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.grow { flex: 1 1 auto; min-width: 0; }
.cols { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.cols > * { flex: 1 1 380px; min-width: 0; }
.cols > .wide { flex: 2 1 520px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.grid.sm { grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 12px; }
.hr { height: 1px; background: var(--line); border: 0; margin: 4px 0; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wrap-any { overflow-wrap: anywhere; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line2); background: var(--raised); color: var(--text); font-weight: 600; font-size: 13.5px; cursor: pointer; white-space: nowrap; text-decoration: none !important; transition: background .12s, border-color .12s; }
.btn:hover { border-color: var(--accent); }
.btn:disabled, .btn.busy { opacity: .6; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; }
.btn.danger { background: transparent; border-color: var(--red-line); color: var(--red-text); }
.btn.danger:hover { background: var(--red-soft); }
.btn.danger.solid { background: var(--red); border-color: var(--red); color: #fff; }
.btn.sm { height: 34px; padding: 0 11px; font-size: 13px; border-radius: 8px; }
.btn.icon { width: 40px; padding: 0; }
.btn.icon.sm { width: 34px; }
.btn.block { width: 100%; }
.btn .spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--raised); color: var(--text2); white-space: nowrap; }
.chip.ok { background: var(--green-soft); color: var(--green-text); }
.chip.warn { background: var(--amber-soft); color: var(--amber-text); }
.chip.bad { background: var(--red-soft); color: var(--red-text); }
.chip.info { background: var(--accent-soft); color: var(--accent-text); }
.chip .d { width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
.chip.mono { font-family: var(--font-mono); font-weight: 500; }

.tile { width: 36px; height: 36px; border-radius: 10px; background: var(--raised); color: var(--accent); display: flex; align-items: center; justify-content: center; flex: none; }
.tile.lg { width: 44px; height: 44px; border-radius: 12px; }
.tile.amber { color: var(--amber); } .tile.green { color: var(--green); } .tile.red { color: var(--red); } .tile.gray { color: var(--muted); }

/* Istatistik kartlari */
.stat { gap: 12px; }
.stat .head { display: flex; align-items: center; gap: 10px; }
.stat .head .lbl { font-weight: 600; flex: 1; }
.stat .val { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.stat .val b { font-family: var(--font-mono); font-size: 30px; font-weight: 500; letter-spacing: -0.02em; }
.stat .val span { color: var(--muted); }
.bar { height: 6px; border-radius: 999px; background: var(--line3); overflow: hidden; display: flex; }
.bar > span { display: block; height: 100%; border-radius: 999px; background: var(--accent); transition: width .4s; }
.bar > span.amber { background: var(--amber); } .bar > span.red { background: var(--red); } .bar > span.green { background: var(--green); }

/* Liste satirlari */
.list { display: flex; flex-direction: column; }
.list > .item { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line3); min-width: 0; }
.list > .item:first-child { border-top: 0; }
.card.flush .list > .item { padding: 12px 20px; }
.kv { display: grid; grid-template-columns: minmax(120px, max-content) 1fr; gap: 0; }
.kv > div { padding: 9px 0; border-bottom: 1px solid var(--line3); font-size: 13.5px; min-width: 0; }
.kv > div:nth-child(odd) { color: var(--muted); padding-right: 16px; }
.kv > div:nth-child(even) { font-family: var(--font-mono); font-size: 13px; text-align: right; overflow-wrap: anywhere; }
.kv.left > div:nth-child(even) { text-align: left; }

/* Sekmeler */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs button { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: transparent; color: var(--muted); font-weight: 600; cursor: pointer; white-space: nowrap; }
.tabs button.on { color: var(--text); border-bottom-color: var(--accent); }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 10px; background: var(--card2); border: 1px solid var(--line); flex-wrap: wrap; }
.seg button { height: 32px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-weight: 600; font-size: 13px; cursor: pointer; }
.seg button.on { background: var(--raised2); color: var(--text); }

/* Formlar */
.form { display: flex; flex-direction: column; gap: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 14px 16px; align-items: start; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > label, .field > .lbl { font-size: 13px; font-weight: 600; color: var(--text2); }
.field .help { font-size: 12.5px; color: var(--dim); }
.input, .select, .textarea { width: 100%; height: 44px; padding: 0 13px; border-radius: 10px; border: 1px solid var(--line2); background: var(--card2); color: var(--text); outline: none; }
.textarea { height: auto; min-height: 110px; padding: 12px 13px; resize: vertical; line-height: 1.55; }
.input.mono, .textarea.mono { font-family: var(--font-mono); font-size: 13.5px; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); }
.input::placeholder, .textarea::placeholder { color: var(--dim); }
.input-group { display: flex; gap: 8px; }
.input-group .input { flex: 1; }
.check { display: flex; align-items: flex-start; gap: 10px; min-height: 40px; padding: 8px 0; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.check .t { display: flex; flex-direction: column; gap: 2px; }
.check .t small { color: var(--dim); font-size: 12.5px; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; min-height: 40px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .tr { width: 46px; height: 26px; border-radius: 999px; background: var(--line2); position: relative; transition: background .15s; flex: none; }
.switch .tr::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 999px; background: #fff; transition: transform .15s; }
.switch input:checked + .tr { background: var(--accent); }
.switch input:checked + .tr::after { transform: translateX(20px); }
.switch input:focus-visible + .tr { outline: 2px solid var(--accent); outline-offset: 2px; }
.pills { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 10px; }
.pill { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card2); text-align: left; cursor: pointer; color: var(--text); }
.pill.on { border-color: var(--accent); background: var(--accent-soft); }
.pill .t { display: flex; flex-direction: column; gap: 3px; }
.pill b { font-size: 14px; } .pill small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.err-box { padding: 10px 12px; border-radius: 10px; background: var(--red-soft); color: var(--red-text); font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.note { display: flex; gap: 12px; padding: 13px 14px; border-radius: 12px; background: var(--card2); border: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.note.warn { background: var(--amber-soft); border-color: var(--amber-line); color: var(--text2); }
.note.bad { background: var(--red-soft); border-color: var(--red-line); color: var(--text2); }
.note.info { background: var(--accent-soft); border-color: transparent; color: var(--text2); }
.note svg { margin-top: 1px; }
.note.warn svg { color: var(--amber); } .note.bad svg { color: var(--red); } .note.info svg { color: var(--accent); }

/* Tablolar */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.t th { text-align: left; font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--dim); padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--card); position: sticky; top: 0; z-index: 1; }
table.t td { padding: 11px 14px; border-bottom: 1px solid var(--line3); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tr.sel td { background: var(--accent-soft); }
table.t tr.click { cursor: pointer; }
table.t tr.click:hover td { background: var(--card2); }
table.t td.num, table.t th.num { text-align: right; font-family: var(--font-mono); white-space: nowrap; }
table.t td.mono { font-family: var(--font-mono); font-size: 12.5px; }
table.t td.actions { text-align: right; white-space: nowrap; width: 1%; }
table.t td.actions .row { justify-content: flex-end; flex-wrap: nowrap; gap: 6px; }
table.t .cb { width: 44px; }
table.t input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--accent); }

.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 40px 20px; text-align: center; color: var(--muted); }
.empty .tile { width: 52px; height: 52px; border-radius: 14px; }
.empty b { color: var(--text); font-size: 15px; }
.loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 40px; color: var(--muted); }
.loading svg { animation: spin 1s linear infinite; }

pre.log { margin: 0; padding: 14px 16px; background: var(--code-bg); border: 1px solid var(--line); border-radius: 12px; font-size: 12.5px; line-height: 1.6; max-height: 560px; overflow: auto; white-space: pre; color: var(--text2); }
pre.log.wrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.code-inline { font-family: var(--font-mono); font-size: 12.5px; padding: 2px 6px; border-radius: 6px; background: var(--raised); }
.copy-row { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--card2); border: 1px solid var(--line); }
.copy-row .k { color: var(--muted); font-size: 12.5px; min-width: 90px; }
.copy-row .v { flex: 1; min-width: 0; font-family: var(--font-mono); font-size: 13px; overflow-wrap: anywhere; }

/* Modal */
.modal-back { position: fixed; inset: 0; z-index: 100; background: rgba(4,8,13,.66); display: flex; align-items: flex-start; justify-content: center; padding: 56px 16px; overflow-y: auto; animation: fade .15s; }
.modal { width: 100%; max-width: 560px; background: var(--card); border: 1px solid var(--line2); border-radius: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; animation: pop .15s; }
.modal.lg { max-width: 820px; } .modal.xl { max-width: 1100px; }
.modal.full { max-width: none; height: calc(100vh - 32px); margin-top: -40px; }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 18px; flex: 1; min-width: 0; }
.modal-body { padding: 20px; display: flex; flex-direction: column; gap: 16px; min-height: 0; }
.modal.full .modal-body { flex: 1; padding: 0; }
.modal-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding: 16px 20px; border-top: 1px solid var(--line); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } }

/* Bildirimler */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; max-width: min(420px, calc(100vw - 32px)); }
.toast { display: flex; align-items: flex-start; gap: 10px; padding: 13px 16px; border-radius: 12px; background: var(--raised); border: 1px solid var(--line2); box-shadow: var(--shadow); font-weight: 600; animation: pop .15s; white-space: pre-wrap; overflow-wrap: anywhere; }
.toast.ok svg { color: var(--green); } .toast.err svg { color: var(--red); } .toast.info svg { color: var(--accent); }

/* Acilir menu */
.menu { position: fixed; z-index: 150; min-width: 200px; background: var(--card); border: 1px solid var(--line2); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; display: flex; flex-direction: column; animation: fade .1s; }
.menu button { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--text); text-align: left; cursor: pointer; font-weight: 500; }
.menu button:hover { background: var(--raised); }
.menu button.danger { color: var(--red-text); }
.menu .sep { height: 1px; background: var(--line); margin: 4px 0; }

/* Komut paleti */
.palette { max-width: 620px; }
.palette .input { height: 52px; font-size: 16px; border-radius: 12px; }
.palette .res { display: flex; flex-direction: column; max-height: 50vh; overflow-y: auto; }
.palette .res button { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; color: var(--text); text-align: left; cursor: pointer; }
.palette .res button.on, .palette .res button:hover { background: var(--accent-soft); }
.palette .res small { margin-left: auto; color: var(--dim); }

/* Grafik */
.chart { width: 100%; height: 220px; display: block; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 18px; height: 3px; border-radius: 2px; background: var(--accent); }
.legend i.amber { background: repeating-linear-gradient(90deg, var(--amber) 0 5px, transparent 5px 8px); }
.axis { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; color: var(--dim); }

/* Dosya yoneticisi */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; font-family: var(--font-mono); font-size: 13px; }
.crumbs button { height: 32px; padding: 0 8px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; font-family: inherit; }
.crumbs button:hover { background: var(--raised); color: var(--text); }
.crumbs button.cur { color: var(--text); font-weight: 600; }
.crumbs .sl { color: var(--dim); }
.fm-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fm-name .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 961px) { table.fm-table td.fm-cell { max-width: 0; width: 50%; } }
@media (max-width: 960px) {
  table.t.cards.fm-table tr { position: relative; }
  table.t.cards.fm-table td.main-cell { padding-right: 40px; }
  table.t.cards.fm-table td.cb { display: block; position: absolute; top: 12px; right: 14px; width: auto; padding: 0; }
  table.t.cards.fm-table tr.fm-up td:not(.main-cell) { display: none; }
  .fm-main { order: 1; } .fm-quick { order: 2; }
}
.fm-name svg.dir { color: var(--amber); } .fm-name svg.code { color: var(--accent-text); } .fm-name svg.file { color: var(--muted); }
.dropzone { border: 2px dashed var(--line2); border-radius: 12px; padding: 18px; text-align: center; color: var(--muted); }
.drag-over { outline: 2px dashed var(--accent); outline-offset: -6px; }
.progress-item { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.progress-item .bar { flex: 1; }

/* Duzenleyici */
.editor-wrap { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.editor-wrap .CodeMirror { flex: 1; height: auto; min-height: 300px; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.6; background: var(--code-bg); color: var(--text); }
.sql-editor { border: 1px solid var(--line2); border-radius: 12px; overflow: hidden; }
.sql-editor .CodeMirror { height: 220px; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.6; background: var(--code-bg); color: var(--text); }
.CodeMirror-gutters { background: var(--code-bg) !important; border-right: 1px solid var(--line) !important; }
.CodeMirror-linenumber { color: var(--dim) !important; }
.CodeMirror-cursor { border-left: 2px solid var(--accent) !important; }
.CodeMirror-activeline-background { background: rgba(61,155,255,.07) !important; }
.CodeMirror-selected { background: rgba(61,155,255,.22) !important; }
.CodeMirror-focused .CodeMirror-selected { background: rgba(61,155,255,.28) !important; }
.CodeMirror-matchingbracket { color: var(--green-text) !important; text-decoration: underline; }
.cm-s-eymen .cm-keyword { color: #C9A2FF; } .cm-s-eymen .cm-string, .cm-s-eymen .cm-string-2 { color: #FFC56E; }
.cm-s-eymen .cm-variable-2, .cm-s-eymen .cm-variable-3 { color: #8CC4FF; } .cm-s-eymen .cm-def { color: #5BE3A1; }
.cm-s-eymen .cm-number, .cm-s-eymen .cm-atom { color: #FF9E8A; } .cm-s-eymen .cm-comment { color: #7F8EA3; font-style: italic; }
.cm-s-eymen .cm-tag { color: #FF8A8A; } .cm-s-eymen .cm-attribute { color: #FFC56E; } .cm-s-eymen .cm-property { color: #8CC4FF; }
.cm-s-eymen .cm-builtin, .cm-s-eymen .cm-qualifier { color: #5BE3A1; } .cm-s-eymen .cm-meta { color: #C9A2FF; } .cm-s-eymen .cm-operator { color: #C9D4E3; }
:root[data-theme="light"] .cm-s-eymen .cm-keyword { color: #7B3FD0; } :root[data-theme="light"] .cm-s-eymen .cm-string { color: #9A5B00; }
:root[data-theme="light"] .cm-s-eymen .cm-variable-2 { color: #1A5FB8; } :root[data-theme="light"] .cm-s-eymen .cm-def { color: #0C7444; }
:root[data-theme="light"] .cm-s-eymen .cm-number { color: #B42D29; } :root[data-theme="light"] .cm-s-eymen .cm-comment { color: #5B6B81; }
:root[data-theme="light"] .cm-s-eymen .cm-tag { color: #B42D29; } :root[data-theme="light"] .cm-s-eymen .cm-attribute { color: #8F5600; }
.CodeMirror-dialog { background: var(--card) !important; color: var(--text); border-color: var(--line) !important; }
.CodeMirror-dialog input { color: var(--text); }
.editor-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--card); }

/* Terminal */
.term-shell { background: var(--term-bg); border: 1px solid var(--line2); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.term-tabs { display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: #0F1722; border-bottom: 1px solid #1F2B3D; overflow-x: auto; }
.term-tabs .tt { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 6px 0 12px; border-radius: 8px; background: transparent; color: #A9B6C8; border: 0; font-family: var(--font-mono); font-size: 12.5px; cursor: pointer; white-space: nowrap; }
.term-tabs .tt.on { background: #172232; color: #E8EEF6; }
.term-tabs .tt .x { width: 22px; height: 22px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; }
.term-tabs .tt .x:hover { background: #22324A; }
.term-host { height: min(62vh, 640px); min-height: 320px; padding: 10px 6px 6px 12px; }
.term-host .xterm { height: 100%; }
.term-keys { display: none; gap: 6px; padding: 8px; background: #0F1722; border-top: 1px solid #1F2B3D; overflow-x: auto; }
.term-keys button { flex: none; min-width: 46px; height: 40px; padding: 0 10px; border-radius: 8px; border: 1px solid #2A3A52; background: #172232; color: #E8EEF6; font-family: var(--font-mono); font-size: 13px; cursor: pointer; }
.term-keys button.on { background: #3D9BFF; color: #04121F; border-color: #3D9BFF; }

/* Giris */
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; background-color: var(--bg); background-image: linear-gradient(rgba(61,155,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(61,155,255,.05) 1px, transparent 1px); background-size: 48px 48px; }
.login-inner { width: 100%; max-width: 1080px; display: flex; flex-wrap: wrap; align-items: center; gap: 40px 64px; }
.login-hero { flex: 1 1 400px; display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.login-hero h1 { font-size: clamp(34px, 5vw, 50px); line-height: 1.06; letter-spacing: -0.02em; }
.login-hero p { margin: 0; font-size: 16.5px; color: var(--muted); max-width: 520px; line-height: 1.6; }
.login-card { flex: 1 1 360px; max-width: 440px; background: var(--card); border: 1px solid var(--line2); border-radius: 20px; padding: 30px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 20px; }
.login-card h2 { font-size: 25px; }
.login-card .input { height: 48px; font-size: 15px; }
.login-card .btn.primary { height: 50px; font-size: 15px; }
.code-input { height: 60px !important; font-family: var(--font-mono) !important; font-size: 28px !important; letter-spacing: .5em; text-align: center; }
.login-foot { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.login-foot span { display: flex; align-items: center; gap: 8px; }

.qr { background: #fff; padding: 12px; border-radius: 12px; width: 220px; height: 220px; image-rendering: pixelated; }

/* ---------- Mobil ---------- */
@media (max-width: 960px) {
  .side { position: fixed; left: 0; top: 0; bottom: 0; z-index: 80; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow); width: min(300px, 86vw); }
  body.nav-open .side { transform: none; }
  body.nav-open .backdrop { display: block; position: fixed; inset: 0; z-index: 70; background: rgba(4,8,13,.6); }
  .btn.menu-btn { display: inline-flex; }
  .search-btn { min-width: 0; width: 42px; padding: 0; justify-content: center; }
  .search-btn .lbl, .search-btn kbd { display: none; }
  .top { padding: 10px 14px; min-height: 62px; gap: 10px; }
  .top h1 { font-size: 18px; }
  .page { padding: 16px 14px 90px; gap: 16px; }
  .page-head h2 { font-size: 22px; }
  .card { padding: 16px; }
  .card.flush > .card-head { padding: 14px 16px; }
  .card.flush .list > .item { padding: 12px 16px; }
  .modal-back { padding: 0; align-items: flex-end; }
  .modal { border-radius: 18px 18px 0 0; max-height: 92vh; overflow-y: auto; }
  .modal.full { height: 100vh; max-height: 100vh; margin: 0; border-radius: 0; }
  .toasts { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .term-keys { display: flex; }
  .term-host { height: 52vh; }
  table.t.cards thead { display: none; }
  table.t.cards, table.t.cards tbody, table.t.cards tr, table.t.cards td { display: block; width: 100%; }
  table.t.cards tr { padding: 10px 14px; border-bottom: 1px solid var(--line); }
  table.t.cards td { border: 0; padding: 4px 0; display: flex; gap: 12px; justify-content: space-between; align-items: center; text-align: right; }
  table.t.cards td::before { content: attr(data-label); color: var(--dim); font-size: 12px; font-weight: 600; text-align: left; flex: none; }
  table.t.cards td.main-cell { font-size: 15px; font-weight: 600; text-align: left; }
  table.t.cards td.main-cell::before { display: none; }
  table.t.cards td.cb { display: none; }
  table.t.cards td.actions { width: 100%; padding-top: 8px; }
  table.t.cards td.actions::before { display: none; }
  table.t.cards td.actions .row { justify-content: flex-start; flex-wrap: wrap; }
  table.t.cards tr.sel { background: var(--accent-soft); }
  table.t.cards tr.sel td { background: transparent; }
  .kv { grid-template-columns: 1fr; }
  .kv > div:nth-child(odd) { border-bottom: 0; padding-bottom: 0; }
  .kv > div:nth-child(even) { text-align: left; padding-top: 2px; }
}
@media (max-width: 520px) {
  .btn { height: 42px; }
  .top-actions .hide-sm { display: none; }
  .stat .val b { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.fm-lock { display: inline-flex; color: var(--amber); flex: none; }
