/* Kafadarım Yönetim — tasarım sistemi (kurumsal, yoğun, açık/koyu tema) */
:root {
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --bg: #f6f7f9; --surface: #ffffff; --surface-2: #f9fafb; --surface-3: #f2f4f7; --hover: #f2f4f7;
  --border: #e4e7ec; --border-strong: #d0d5dd;
  --text: #101828; --text-2: #344054; --muted: #667085; --faint: #98a2b3;
  --accent: #4f46e5; --accent-hover: #4338ca; --accent-soft: #eef2ff; --accent-text: #3730a3;
  --success: #079455; --success-soft: #ecfdf3; --success-text: #067647;
  --warning: #dc6803; --warning-soft: #fffaeb; --warning-text: #b54708;
  --danger: #d92d20; --danger-soft: #fef3f2; --danger-text: #b42318;
  --info: #1570ef; --info-soft: #eff8ff; --info-text: #175cd3;
  --violet-soft: #f4f3ff; --violet-text: #5925dc;
  --shadow-xs: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-lg: 0 12px 24px -4px rgba(16, 24, 40, .12), 0 4px 8px -2px rgba(16, 24, 40, .05);
  --shadow-xl: 0 24px 48px -12px rgba(16, 24, 40, .22);
  --r-sm: 6px; --r: 8px; --r-lg: 12px;
  --side-w: 256px; --top-h: 56px;
  --chart-1: #4f46e5; --chart-2: #0ba5ec; --chart-3: #17b26a; --chart-4: #f79009; --chart-5: #ee46bc; --chart-6: #7a5af8;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0b0f17; --surface: #121826; --surface-2: #161d2d; --surface-3: #1b2335; --hover: #1d2638;
  --border: #252f44; --border-strong: #33405a;
  --text: #f2f4f7; --text-2: #cfd4dc; --muted: #94a0b8; --faint: #6b7792;
  --accent: #818cf8; --accent-hover: #a5b4fc; --accent-soft: rgba(129, 140, 248, .14); --accent-text: #c7d2fe;
  --success: #47cd89; --success-soft: rgba(71, 205, 137, .12); --success-text: #75e0a7;
  --warning: #fdb022; --warning-soft: rgba(253, 176, 34, .12); --warning-text: #fec84b;
  --danger: #f97066; --danger-soft: rgba(249, 112, 102, .12); --danger-text: #fda29b;
  --info: #53b1fd; --info-soft: rgba(83, 177, 253, .12); --info-text: #84caff;
  --violet-soft: rgba(155, 138, 251, .14); --violet-text: #bdb4fe;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .4); --shadow-lg: 0 12px 24px -4px rgba(0, 0, 0, .5); --shadow-xl: 0 24px 48px -12px rgba(0, 0, 0, .6);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); font-size: 14px; line-height: 1.5; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; font-feature-settings: 'cv11', 'ss01'; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
code, .mono { font-family: var(--mono); font-size: 12.5px; }
.num, .tabular { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 12.5px; } .xs { font-size: 11.5px; }
.nowrap { white-space: nowrap; } .right { text-align: right; } .center { text-align: center; }
.row { display: flex; align-items: center; gap: 8px; } .row.wrap { flex-wrap: wrap; } .grow { flex: 1; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.grid { display: grid; gap: 16px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cols-21 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } .cols-12 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
@media (max-width: 1180px) { .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cols-21, .cols-12, .cols-3 { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .cols-2, .cols-4 { grid-template-columns: 1fr; } }
.ic { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic-lg { width: 20px; height: 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Kabuk ---------- */
.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 10px; padding: 14px 16px; height: var(--top-h); border-bottom: 1px solid var(--border); }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.brand b { font-weight: 700; letter-spacing: -.01em; }
.brand span { font-size: 11px; color: var(--muted); display: block; margin-top: -2px; }
.nav { padding: 10px 10px 16px; flex: 1; }
.nav-group { margin-top: 14px; }
.nav-group:first-child { margin-top: 2px; }
.nav-label { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); padding: 6px 10px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--r-sm); color: var(--text-2); font-weight: 500; text-decoration: none; }
.nav a:hover { background: var(--hover); color: var(--text); }
.nav a.on { background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
.nav a .ic { color: var(--muted); } .nav a.on .ic { color: var(--accent); }
.nav a .count { margin-left: auto; font-size: 11px; font-weight: 600; background: var(--surface-3); color: var(--text-2); padding: 0 7px; border-radius: 999px; line-height: 18px; }
.nav a .count.warn { background: var(--warning-soft); color: var(--warning-text); }
.side-foot { border-top: 1px solid var(--border); padding: 12px; display: flex; align-items: center; gap: 10px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; font-weight: 700; font-size: 12px; flex: none; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; height: var(--top-h); display: flex; align-items: center; gap: 12px; padding: 0 24px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
.crumbs { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; min-width: 0; }
.crumbs a { color: var(--muted); } .crumbs b { color: var(--text); font-weight: 600; }
.crumbs .sep { color: var(--faint); }
.search-btn { margin-left: auto; display: flex; align-items: center; gap: 8px; width: 300px; max-width: 40vw; height: 34px; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface-2); color: var(--muted); cursor: pointer; }
.search-btn:hover { border-color: var(--border-strong); }
.kbd { font-family: var(--font); font-size: 11px; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; color: var(--muted); background: var(--surface); margin-left: auto; }
.content { padding: 24px; max-width: 1480px; width: 100%; }
.menu-toggle { display: none; }
@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 50; left: 0; top: 0; width: var(--side-w); transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow-xl); }
  .shell.nav-open .sidebar { transform: none; }
  .menu-toggle { display: inline-flex; }
  .content { padding: 16px; }
  .search-btn { width: auto; }
  .search-btn .lbl, .search-btn .kbd { display: none; }
}

/* ---------- Sayfa başlığı ---------- */
.page-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { font-size: 22px; font-weight: 700; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.section-title { font-size: 15px; font-weight: 600; }

/* ---------- Düğmeler ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: var(--r); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2); font-weight: 600; font-size: 13px; cursor: pointer; box-shadow: var(--shadow-xs); white-space: nowrap; text-decoration: none; }
.btn:hover { background: var(--hover); color: var(--text); text-decoration: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
:root[data-theme="dark"] .btn-primary { color: #0b0f17; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(.95); background: var(--danger); color: #fff; }
.btn-ghost { border-color: transparent; background: transparent; box-shadow: none; }
.btn-ghost:hover { background: var(--hover); }
.btn-sm { height: 28px; padding: 0 9px; font-size: 12.5px; }
.btn-icon { width: 34px; padding: 0; } .btn-sm.btn-icon { width: 28px; }
.btn-group { display: inline-flex; } .btn-group .btn { border-radius: 0; margin-left: -1px; } .btn-group .btn:first-child { border-radius: var(--r) 0 0 var(--r); margin: 0; } .btn-group .btn:last-child { border-radius: 0 var(--r) var(--r) 0; }
.btn-group .btn.on { background: var(--surface-3); color: var(--text); }
.spinner { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Kart ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-xs); min-width: 0; }
.card-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.card-head h3 { font-size: 14.5px; font-weight: 600; }
.card-head p { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.card-head .actions { margin-left: auto; display: flex; gap: 6px; }
.card-body { padding: 16px; }
.card-foot { padding: 10px 16px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--r-lg) var(--r-lg); display: flex; align-items: center; gap: 8px; }
.card.flush .card-body { padding: 0; }

/* ---------- KPI ---------- */
.kpi { padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.kpi-top { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 500; }
.kpi-top .ic-wrap { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); }
.kpi-val { font-size: 26px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.kpi-foot { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); min-height: 28px; }
.kpi-foot svg.spark { margin-left: auto; }
.delta { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; font-size: 12px; padding: 1px 6px; border-radius: 999px; white-space: nowrap; flex: none; }
.delta.up { background: var(--success-soft); color: var(--success-text); } .delta.down { background: var(--danger-soft); color: var(--danger-text); } .delta.flat { background: var(--surface-3); color: var(--muted); }

/* ---------- Rozet ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--surface-3); color: var(--text-2); border: 1px solid transparent; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.badge.plain::before { display: none; }
.badge.success { background: var(--success-soft); color: var(--success-text); } .badge.warning { background: var(--warning-soft); color: var(--warning-text); }
.badge.danger { background: var(--danger-soft); color: var(--danger-text); } .badge.info { background: var(--info-soft); color: var(--info-text); }
.badge.accent { background: var(--accent-soft); color: var(--accent-text); } .badge.violet { background: var(--violet-soft); color: var(--violet-text); }
.badge.outline { background: transparent; border-color: var(--border); }
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 5px; font-size: 11.5px; font-weight: 600; background: var(--surface-3); color: var(--text-2); }

/* ---------- Tablo ---------- */
.dt-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.dt-wrap { overflow-x: auto; }
table.dt { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
table.dt th { position: sticky; top: 0; text-align: left; font-weight: 600; font-size: 12px; color: var(--muted); background: var(--surface-2); padding: 9px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; user-select: none; }
table.dt th.sortable { cursor: pointer; } table.dt th.sortable:hover { color: var(--text); }
table.dt th .sort { display: inline-block; width: 10px; margin-left: 3px; color: var(--accent); }
table.dt td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.dt tr:last-child td { border-bottom: 0; }
table.dt tbody tr:hover td { background: var(--surface-2); }
table.dt tr.click { cursor: pointer; }
table.dt td.r, table.dt th.r { text-align: right; font-variant-numeric: tabular-nums; }
table.dt td.c, table.dt th.c { text-align: center; }
table.dt .sub { display: block; font-size: 12px; color: var(--muted); }
table.dt td.actions { text-align: right; white-space: nowrap; width: 1%; }
.dt-foot { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12.5px; }
.dt-foot .pager { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.dt-empty { padding: 48px 16px; text-align: center; color: var(--muted); }
.dt-empty .ic { width: 28px; height: 28px; color: var(--faint); margin-bottom: 8px; }
.dt-empty b { display: block; color: var(--text); font-weight: 600; margin-bottom: 2px; }
table.plain { width: 100%; border-collapse: collapse; font-size: 13px; }
table.plain td, table.plain th { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: left; }
table.plain th { color: var(--muted); font-weight: 600; font-size: 12px; }
table.plain td.right, table.plain th.right { text-align: right; } table.plain td.center, table.plain th.center { text-align: center; }

/* ---------- Form ---------- */
.input, .select, .textarea { height: 34px; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: var(--r); background: var(--surface); color: var(--text); outline: none; box-shadow: var(--shadow-xs); width: 100%; }
.textarea { height: auto; min-height: 90px; padding: 8px 10px; resize: vertical; line-height: 1.5; }
.select { appearance: none; padding-right: 30px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2.4'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input-icon { position: relative; } .input-icon .ic { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--faint); } .input-icon .input { padding-left: 32px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.field .help { font-size: 12px; color: var(--muted); }
.field .err { font-size: 12px; color: var(--danger-text); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; } }
.form-section { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.form-section:last-child { border-bottom: 0; }
.form-section h4 { font-size: 14px; font-weight: 600; } .form-section p { margin: 4px 0 0; color: var(--muted); font-size: 12.5px; }
@media (max-width: 900px) { .form-section { grid-template-columns: 1fr; gap: 12px; } }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; }
.switch input { appearance: none; width: 36px; height: 20px; border-radius: 999px; background: var(--border-strong); position: relative; cursor: pointer; transition: background .15s; flex: none; margin: 0; }
.switch input::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .15s; }
.switch input:checked { background: var(--accent); } .switch input:checked::after { transform: translateX(16px); }
.secret { display: flex; gap: 6px; } .secret .input { font-family: var(--mono); }

/* ---------- Sekmeler ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 16px; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 9px 12px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.tabs button:hover { color: var(--text); }
.tabs button.on { color: var(--accent-text); border-bottom-color: var(--accent); }
:root[data-theme="dark"] .tabs button.on { color: var(--accent); }
.tabs .count { font-size: 11px; background: var(--surface-3); padding: 0 6px; border-radius: 999px; color: var(--text-2); }
.seg { display: inline-flex; padding: 3px; background: var(--surface-3); border-radius: var(--r); gap: 2px; }
.seg button { border: 0; background: transparent; padding: 4px 10px; border-radius: 6px; font-weight: 600; font-size: 12.5px; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

/* ---------- Tanım listesi ---------- */
.dl { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 0; }
.dl > div { padding: 9px 0; border-bottom: 1px solid var(--border); }
.dl > div:nth-last-child(-n+2) { border-bottom: 0; }
.dl .k { color: var(--muted); font-size: 13px; } .dl .v { font-weight: 500; }

/* ---------- Pencere / çekmece ---------- */
.overlay { position: fixed; inset: 0; z-index: 100; background: rgba(16, 24, 40, .45); backdrop-filter: blur(2px); display: grid; place-items: center; padding: 16px; animation: fade .12s; }
.modal { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-xl); border: 1px solid var(--border); animation: pop .14s; }
.modal.lg { width: min(860px, 100%); } .modal.sm { width: min(420px, 100%); }
.modal-head { padding: 18px 20px 0; } .modal-head h3 { font-size: 16px; font-weight: 600; } .modal-head p { margin: 4px 0 0; color: var(--muted); }
.modal-body { padding: 16px 20px; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; background: var(--surface-2); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.modal .danger-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--danger-soft); color: var(--danger); display: grid; place-items: center; margin-bottom: 12px; }
.drawer-overlay { place-items: stretch end; padding: 0; }
.drawer { width: min(640px, 100vw); height: 100vh; background: var(--surface); border-left: 1px solid var(--border); box-shadow: var(--shadow-xl); display: flex; flex-direction: column; animation: slide .18s; }
.drawer-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.drawer-head h3 { font-size: 16px; font-weight: 600; } .drawer-head .x { margin-left: auto; }
.drawer-body { flex: 1; overflow: auto; padding: 20px; }
.drawer-foot { padding: 12px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; }
@keyframes fade { from { opacity: 0; } } @keyframes pop { from { transform: scale(.97); opacity: 0; } } @keyframes slide { from { transform: translateX(40px); opacity: 0; } }

/* ---------- Komut paleti ---------- */
.palette { width: min(640px, 100%); align-self: start; margin-top: 12vh; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-xl); overflow: hidden; }
.palette input { width: 100%; border: 0; border-bottom: 1px solid var(--border); padding: 14px 16px 14px 44px; font-size: 15px; outline: none; background: transparent; }
.palette .pi { position: relative; } .palette .pi .ic { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.palette ul { list-style: none; margin: 0; padding: 6px; max-height: 420px; overflow: auto; }
.palette li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-sm); cursor: pointer; }
.palette li.on { background: var(--accent-soft); color: var(--accent-text); }
.palette li .grp { margin-left: auto; font-size: 11.5px; color: var(--faint); }
.palette .ph { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--faint); padding: 8px 10px 4px; font-weight: 600; }

/* ---------- Bildirim ---------- */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast { display: flex; align-items: flex-start; gap: 10px; min-width: 280px; max-width: 420px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-lg); animation: slide .18s; font-weight: 500; }
.toast .ic { margin-top: 2px; } .toast.success .ic { color: var(--success); } .toast.error .ic { color: var(--danger); } .toast.info .ic { color: var(--info); }

/* ---------- Uyarı kutusu ---------- */
.alert { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--border); background: var(--surface-2); font-size: 13px; }
.alert .ic { margin-top: 2px; flex: none; }
.alert.info { background: var(--info-soft); border-color: transparent; color: var(--info-text); }
.alert.warning { background: var(--warning-soft); border-color: transparent; color: var(--warning-text); }
.alert.danger { background: var(--danger-soft); border-color: transparent; color: var(--danger-text); }
.alert.success { background: var(--success-soft); border-color: transparent; color: var(--success-text); }
.alert b { color: inherit; }

/* ---------- Grafik ---------- */
.chart { width: 100%; display: block; }
.chart text { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart .grid-line { stroke: var(--border); stroke-dasharray: 3 3; }
.chart .axis { stroke: var(--border); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.progress { height: 8px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.progress.success > i { background: var(--success); } .progress.warning > i { background: var(--warning); } .progress.danger > i { background: var(--danger); }
.heat td { text-align: center; font-variant-numeric: tabular-nums; font-size: 12px; }

/* ---------- Boş / yükleniyor ---------- */
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty .ic { width: 32px; height: 32px; color: var(--faint); margin-bottom: 8px; }
.empty h4 { color: var(--text); font-size: 15px; margin-bottom: 4px; }
.skel { background: linear-gradient(90deg, var(--surface-3) 25%, var(--hover) 37%, var(--surface-3) 63%); background-size: 400% 100%; animation: sk 1.4s ease infinite; border-radius: 6px; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.loading-page { display: grid; gap: 16px; }

/* ---------- Giriş ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.login-art { background: radial-gradient(1200px 600px at 20% 10%, #312e81 0%, #1e1b4b 45%, #0b0f17 100%); color: #e0e7ff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.login-art h2 { font-size: 30px; font-weight: 700; color: #fff; max-width: 440px; letter-spacing: -.02em; }
.login-art p { color: #c7d2fe; max-width: 420px; }
.login-form { display: grid; place-items: center; padding: 32px; background: var(--surface); }
.login-form form { width: min(380px, 100%); display: grid; gap: 14px; }
@media (max-width: 900px) { .login { grid-template-columns: 1fr; } .login-art { display: none; } }

/* ---------- Entegrasyon kartları ---------- */
.integ { display: flex; flex-direction: column; }
.integ-head { display: flex; align-items: flex-start; gap: 12px; padding: 16px; }
.integ-logo { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); flex: none; font-weight: 700; }
.integ-head h3 { font-size: 15px; font-weight: 600; } .integ-head p { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.integ-meta { display: flex; gap: 16px; padding: 0 16px 14px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.integ .card-foot { margin-top: auto; }

/* ---------- Zaman çizelgesi ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 14px 22px; }
.timeline li::before { content: ''; position: absolute; left: 5px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.timeline li::after { content: ''; position: absolute; left: 8.5px; top: 18px; bottom: 0; width: 1px; background: var(--border); }
.timeline li:last-child::after { display: none; }
.timeline .t { font-size: 12px; color: var(--muted); }

/* ---------- Kod / JSON ---------- */
pre.code { margin: 0; padding: 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r); overflow: auto; font-family: var(--mono); font-size: 12px; max-height: 360px; }
.divider { height: 1px; background: var(--border); margin: 16px 0; }
.link-row { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--border); }
