/* ==========================================================================
   Bot Merkezi — tasarım sistemi
   Kırılmalar: mobil < 640 · tablet 640–1023 · masaüstü ≥ 1024
   Bölümler: 1 Jetonlar · 2 Temel · 3 Kabuk · 4 Bileşenler · 5 Form · 6 Tablo · 7 Sayfalar · 8 Yardımcılar · 9 pc-N
   ========================================================================== */

/* 1 ── JETONLAR ──────────────────────────────────────────────────────────── */
:root {
  color-scheme: light;
  --bg: #f4f5f9;
  --surface: #ffffff;
  --surface-2: #f8f9fc;
  --surface-3: #eef0f6;
  --hover: rgba(15, 23, 41, .045);
  --border: #e2e5ee;
  --border-strong: #c9cfdd;
  --text: #0f1729;
  --text-2: #364055;
  --muted: #5a6478;
  --faint: #8a93a6;

  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-soft: #eceeff;
  --accent-text: #3f37c9;
  --accent-ring: rgba(79, 70, 229, .28);
  --on-accent: #ffffff;

  --ok: #16a34a;      --ok-soft: #e7f6ee;      --ok-text: #0b6b3f;
  --warn: #f59e0b;    --warn-soft: #fff3de;    --warn-text: #8a4b00;
  --bad: #dc2626;     --bad-soft: #feebea;     --bad-text: #b0231a;
  --info: #3b82f6;    --info-soft: #e8f1ff;    --info-text: #1d4ed8;
  --off: #98a2b3;

  --shadow-sm: 0 1px 2px rgba(15, 23, 41, .05), 0 1px 3px rgba(15, 23, 41, .05);
  --shadow-md: 0 4px 14px rgba(15, 23, 41, .08), 0 2px 4px rgba(15, 23, 41, .04);
  --shadow-lg: 0 18px 48px rgba(15, 23, 41, .18), 0 4px 12px rgba(15, 23, 41, .08);

  --r-sm: 8px; --r-md: 10px; --r-lg: 14px; --r-xl: 18px;
  --sb-w: 264px;
  --topbar-h: 60px;
  --tabbar-h: 62px;
  --pad: 28px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --ctl: 40px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0d13;
  --surface: #121720;
  --surface-2: #181e29;
  --surface-3: #202837;
  --hover: rgba(255, 255, 255, .055);
  --border: #252d3b;
  --border-strong: #37425a;
  --text: #e9edf5;
  --text-2: #c3cbd9;
  --muted: #8f9bb0;
  --faint: #667088;

  --accent: #818cf8;
  --accent-hover: #a5b0ff;
  --accent-soft: rgba(129, 140, 248, .15);
  --accent-text: #a9b3ff;
  --accent-ring: rgba(129, 140, 248, .35);
  --on-accent: #0b0e1a;

  --ok: #34d399;      --ok-soft: rgba(52, 211, 153, .13);   --ok-text: #5fe0ac;
  --warn: #fbbf24;    --warn-soft: rgba(251, 191, 36, .13);  --warn-text: #fcc95a;
  --bad: #f87171;     --bad-soft: rgba(248, 113, 113, .14);  --bad-text: #ff958d;
  --info: #60a5fa;    --info-soft: rgba(96, 165, 250, .14);  --info-text: #93c0ff;
  --off: #667088;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, .45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .65);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0a0d13;
    --surface: #121720;
    --surface-2: #181e29;
    --surface-3: #202837;
    --hover: rgba(255, 255, 255, .055);
    --border: #252d3b;
    --border-strong: #37425a;
    --text: #e9edf5;
    --text-2: #c3cbd9;
    --muted: #8f9bb0;
    --faint: #667088;

    --accent: #818cf8;
    --accent-hover: #a5b0ff;
    --accent-soft: rgba(129, 140, 248, .15);
    --accent-text: #a9b3ff;
    --accent-ring: rgba(129, 140, 248, .35);
    --on-accent: #0b0e1a;

    --ok: #34d399;      --ok-soft: rgba(52, 211, 153, .13);   --ok-text: #5fe0ac;
    --warn: #fbbf24;    --warn-soft: rgba(251, 191, 36, .13);  --warn-text: #fcc95a;
    --bad: #f87171;     --bad-soft: rgba(248, 113, 113, .14);  --bad-text: #ff958d;
    --info: #60a5fa;    --info-soft: rgba(96, 165, 250, .14);  --info-text: #93c0ff;
    --off: #667088;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 6px 18px rgba(0, 0, 0, .45);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .65);
  }
}

@media (max-width: 1023px) { :root { --ctl: 44px; --pad: 22px; } }
@media (max-width: 639px)  { :root { --pad: 16px; } }

/* 2 ── TEMEL ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--topbar-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-wrap: break-word;
}
h1, h2, h3, h4, p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--accent-soft); color: var(--text); }
code, kbd, .mono { font-family: var(--mono); font-size: .92em; }
code { background: var(--surface-3); padding: .1em .4em; border-radius: 6px; }
kbd { background: var(--surface); border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 6px; padding: 0 6px; font-size: 11px; color: var(--muted); }
hr { border: 0; border-top: 1px solid var(--border); margin: 20px 0; }
.num { font-variant-numeric: tabular-nums; }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--accent); color: var(--on-accent); padding: 10px 14px; border-radius: 10px; font-weight: 600; transition: top .15s; }
.skip-link:focus { top: 12px; text-decoration: none; }

/* 3 ── KABUK ─────────────────────────────────────────────────────────────── */
.app { display: grid; grid-template-columns: var(--sb-w) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.main { min-width: 0; display: flex; flex-direction: column; }
.content { width: 100%; max-width: 1480px; margin-inline: auto; padding: 24px var(--pad) 48px; flex: 1; }

/* Kenar çubuğu */
.sidebar {
  position: sticky; top: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column;
  background: var(--surface); border-right: 1px solid var(--border); z-index: 40;
}
.sb-brand { display: flex; align-items: center; gap: 12px; height: var(--topbar-h); padding: 0 18px; border-bottom: 1px solid var(--border); color: var(--text); flex: none; }
.sb-brand:hover { text-decoration: none; }
.logo { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex: none;
  background: linear-gradient(135deg, #6366f1, #4338ca); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 2px 6px rgba(67, 56, 202, .35); }
.logo .i { width: 20px; height: 20px; stroke-width: 1.9; }
.brand-name { font-weight: 700; font-size: 15px; letter-spacing: -.01em; line-height: 1.15; }
.brand-name small { display: block; font-weight: 500; font-size: 11px; color: var(--muted); letter-spacing: 0; }
.sb-scroll { flex: 1; overflow-y: auto; padding: 14px 12px; scrollbar-width: thin; }
.nav-group { margin-bottom: 18px; }
.nav-label { padding: 0 10px 6px; font-size: 11.5px; font-weight: 600; color: var(--faint); letter-spacing: .02em; }
.nav-item {
  display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 8px 10px; margin-bottom: 2px; border-radius: var(--r-md);
  color: var(--text-2); font-weight: 500; position: relative; transition: background .12s, color .12s;
}
.nav-item .i { color: var(--muted); transition: color .12s; }
.nav-item:hover { background: var(--hover); text-decoration: none; color: var(--text); }
.nav-item:hover .i { color: var(--text-2); }
.nav-item.is-active { background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
.nav-item.is-active .i { color: var(--accent); }
.nav-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-count { min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--bad); color: #fff; font-size: 11.5px; font-weight: 700; display: inline-grid; place-items: center; font-variant-numeric: tabular-nums; }
.nav-count--soft { background: var(--surface-3); color: var(--text-2); }
.sb-foot { flex: none; border-top: 1px solid var(--border); padding: 12px; }
.sb-user { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border: 0; background: transparent; border-radius: var(--r-md); text-align: left; color: var(--text); }
.sb-user:hover { background: var(--hover); }
.sb-user-info { min-width: 0; flex: 1; line-height: 1.25; }
.sb-user-info b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-user-info small { color: var(--muted); font-size: 12px; }

/* Üst çubuk */
.topbar {
  position: sticky; top: 0; z-index: 30; height: var(--topbar-h); display: flex; align-items: center; gap: 10px; padding: 0 var(--pad);
  background: var(--bg); border-bottom: 1px solid var(--border);
}
@supports (backdrop-filter: blur(8px)) {
  .topbar { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
}
.topbar-brand { display: none; align-items: center; gap: 10px; color: var(--text); flex: none; }
.topbar-brand:hover { text-decoration: none; }
.topbar-grow { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.crumbs { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; min-width: 0; white-space: nowrap; }
.crumbs a { color: var(--muted); }
.crumbs .i { width: 14px; height: 14px; }
.crumbs b { color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }

.switcher { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; min-height: 40px; padding: 4px 10px 4px 6px; border: 1px solid var(--border); background: var(--surface); border-radius: var(--r-md); color: var(--text); font-weight: 600; box-shadow: var(--shadow-sm); }
.switcher:hover { border-color: var(--border-strong); }
.switcher .avatar { width: 28px; height: 28px; font-size: 11px; border-radius: 8px; }
.switcher-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.switcher .i { color: var(--muted); width: 16px; height: 16px; }
.topbar-search { flex: 1; max-width: 420px; margin-left: auto; }
.search-btn { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 0 12px; border: 1px solid var(--border); background: var(--surface); border-radius: var(--r-md); color: var(--muted); text-align: left; box-shadow: var(--shadow-sm); }
.search-btn:hover { border-color: var(--border-strong); color: var(--text-2); }
.search-btn span { flex: 1; }
.top-actions { display: flex; align-items: center; gap: 6px; flex: none; }

/* Alt sekme çubuğu (mobil) */
.tabbar { display: none; }

/* Tablet: simge şeridi */
@media (min-width: 640px) and (max-width: 1023px) {
  :root { --sb-w: 72px; }
  .sb-brand { justify-content: center; padding: 0; }
  .brand-name, .nav-text, .nav-label, .sb-user-info, .sb-user > .i { display: none; }
  .sb-scroll { padding: 12px 10px; }
  .nav-group { margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
  .nav-group:last-child { border-bottom: 0; }
  .nav-item { justify-content: center; padding: 0; height: 44px; }
  .nav-count { position: absolute; top: 3px; right: 3px; min-width: 18px; height: 18px; font-size: 10.5px; padding: 0 4px; }
  .sb-foot { padding: 10px; }
  .sb-user { justify-content: center; padding: 6px; }
  .topbar-search { max-width: none; }
}

/* Mobil */
@media (max-width: 639px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; }
  .topbar-brand { display: inline-flex; }
  .topbar { padding: 0 12px; gap: 8px; }
  .topbar-grow { gap: 8px; }
  .crumbs { display: none; }
  .topbar-search { display: none; }
  .search-btn--icon { display: inline-grid; }
  .content { padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 28px); }
  .switcher { flex: 1; min-width: 0; }
  .switcher-name { max-width: none; flex: 1; text-align: left; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 6px 6px calc(6px + var(--safe-b)); background: var(--surface); border-top: 1px solid var(--border);
    box-shadow: 0 -6px 20px rgba(15, 23, 41, .06);
  }
  .tab-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 48px; border: 0; background: none; border-radius: var(--r-md); color: var(--muted); font-size: 11px; font-weight: 600; position: relative; padding: 4px 2px; }
  .tab-item:hover { text-decoration: none; }
  .tab-item .i { width: 22px; height: 22px; }
  .tab-item.is-active { color: var(--accent-text); }
  .tab-item.is-active::before { content: ""; position: absolute; top: -7px; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); }
  .tab-badge { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--bad); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; }
}
@media (min-width: 640px) { .search-btn--icon { display: none; } }
@media (max-width: 639px) { .search-btn--text { display: none; } }

/* Sayfa başlığı */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 20px; margin-bottom: 22px; }
.page-head h1 { font-size: 24px; line-height: 1.2; letter-spacing: -.02em; font-weight: 700; }
.page-head p { color: var(--muted); margin-top: 4px; max-width: 70ch; }
.page-actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 639px) {
  .page-head { margin-bottom: 16px; }
  .page-head h1 { font-size: 21px; }
  .page-actions { width: 100%; }
  .page-actions > * { flex: 1 1 auto; justify-content: center; }
}

/* 4 ── BİLEŞENLER ────────────────────────────────────────────────────────── */
/* Düğmeler */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--ctl); padding: 0 16px; border-radius: var(--r-md);
  border: 1px solid transparent; font-weight: 600; font-size: 14px; line-height: 1; white-space: nowrap; text-decoration: none;
  transition: background .12s, border-color .12s, box-shadow .12s, transform .06s; position: relative; user-select: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn .i { width: 18px; height: 18px; }
.btn--primary { background: var(--accent); color: var(--on-accent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), var(--shadow-sm); }
.btn--primary:hover { background: var(--accent-hover); }
:root[data-theme="dark"] .btn--primary { color: #fff; background: #5b5fe6; }
:root[data-theme="dark"] .btn--primary:hover { background: #6d71f0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn--primary { color: #fff; background: #5b5fe6; } :root:not([data-theme="light"]) .btn--primary:hover { background: #6d71f0; } }
.btn--secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.btn--secondary:hover { background: var(--surface-2); border-color: var(--faint); }
.btn--ghost { background: transparent; color: var(--text-2); }
.btn--ghost:hover { background: var(--hover); color: var(--text); }
.btn--soft { background: var(--accent-soft); color: var(--accent-text); }
.btn--soft:hover { filter: brightness(.97); }
.btn--danger { background: var(--bad); color: #fff; }
.btn--danger:hover { filter: brightness(.92); }
.btn--danger-soft { background: var(--bad-soft); color: var(--bad-text); }
.btn--danger-soft:hover { filter: brightness(.96); }
.btn--sm { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: var(--r-sm); }
.btn--lg { min-height: 48px; padding: 0 22px; font-size: 15px; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .55; pointer-events: none; }
.btn.is-loading { pointer-events: none; color: transparent !important; }
.btn.is-loading > * { visibility: hidden; }
.btn.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-color: var(--on-accent) transparent var(--on-accent) transparent; animation: spin .7s linear infinite; }
.btn--secondary.is-loading::after, .btn--ghost.is-loading::after, .btn--soft.is-loading::after { border-color: var(--accent) transparent var(--accent) transparent; }
.icon-btn { display: inline-grid; place-items: center; width: var(--ctl); height: var(--ctl); border: 0; background: transparent; border-radius: var(--r-md); color: var(--text-2); flex: none; position: relative; }
.icon-btn:hover { background: var(--hover); color: var(--text); text-decoration: none; }
.icon-btn--sm { width: 32px; height: 32px; border-radius: var(--r-sm); }
.icon-btn--sm .i { width: 17px; height: 17px; }
.icon-btn.is-done { color: var(--ok); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Kartlar */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px 0; min-height: 48px; }
.card-title { font-size: 14.5px; font-weight: 650; letter-spacing: -.005em; display: flex; align-items: center; gap: 8px; min-width: 0; }
.card-title .i { color: var(--muted); width: 18px; height: 18px; }
.card-sub { color: var(--muted); font-size: 12.5px; margin-top: 2px; font-weight: 400; }
.card-body { padding: 14px 18px 18px; }
.card-foot { padding: 12px 18px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.card--flush > .card-body { padding: 0; }
.card--pad { padding: 18px; }
.card--accent { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); background: linear-gradient(180deg, var(--accent-soft), var(--surface) 70%); }
@media (max-width: 639px) { .card-head { padding: 14px 14px 0; } .card-body { padding: 12px 14px 14px; } .card-foot { padding: 10px 14px; } .card--pad { padding: 14px; } }

/* KPI */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 176px), 1fr)); gap: 14px; margin-bottom: 18px; }
@media (max-width: 639px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .kpis > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
.kpi { display: flex; flex-direction: column; gap: 6px; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); color: var(--text); min-width: 0; position: relative; overflow: hidden; }
a.kpi:hover { text-decoration: none; border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.kpi-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.kpi-icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent); }
.kpi-icon .i { width: 18px; height: 18px; }
.kpi--success .kpi-icon { background: var(--ok-soft); color: var(--ok-text); }
.kpi--warn .kpi-icon { background: var(--warn-soft); color: var(--warn-text); }
.kpi--danger .kpi-icon { background: var(--bad-soft); color: var(--bad-text); }
.kpi--info .kpi-icon { background: var(--info-soft); color: var(--info-text); }
.kpi--neutral .kpi-icon { background: var(--surface-3); color: var(--muted); }
.kpi-label { font-size: 13px; color: var(--muted); font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kpi-value { font-size: 30px; line-height: 1.1; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin-top: 4px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.kpi-value small { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.kpi-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.kpi-delta { font-weight: 700; font-variant-numeric: tabular-nums; }
.kpi-delta--success { color: var(--ok-text); } .kpi-delta--danger { color: var(--bad-text); } .kpi-delta--warn { color: var(--warn-text); }
.kpi-spark { margin: 6px -4px -4px; height: 40px; color: var(--accent); }
.kpi--success .kpi-spark { color: var(--ok); } .kpi--warn .kpi-spark { color: var(--warn); } .kpi--danger .kpi-spark { color: var(--bad); } .kpi--info .kpi-spark { color: var(--info); }
.kpi-progress { margin-top: 2px; }
@media (max-width: 639px) { .kpi { padding: 13px; } .kpi-value { font-size: 25px; } .kpi-spark { height: 34px; } }

/* İlerleme çubuğu */
.bar { display: block; height: 7px; border-radius: 999px; background: var(--surface-3); overflow: hidden; width: 100%; }
.bar-fill { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.bar--success .bar-fill { background: var(--ok); } .bar--warn .bar-fill { background: var(--warn); } .bar--danger .bar-fill { background: var(--bad); } .bar--info .bar-fill { background: var(--info); } .bar--neutral .bar-fill { background: var(--faint); }
.bar--sm { height: 5px; }

/* Spark / grafik */
.spark { display: block; width: 100%; height: 100%; color: var(--accent); overflow: visible; }
.spark-line { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; }
.spark-area { fill: currentColor; opacity: .12; stroke: none; }
.spark-dot { fill: currentColor; }
.spark-base { stroke: var(--border-strong); stroke-width: 1; stroke-dasharray: 3 3; }
.spark-bar { fill: currentColor; opacity: .35; }
.spark-bar.is-last { opacity: 1; }
.spark--success { color: var(--ok); } .spark--warn { color: var(--warn); } .spark--danger { color: var(--bad); } .spark--info { color: var(--info); } .spark--neutral { color: var(--faint); }
.spark-wrap { height: 36px; min-width: 70px; }
.chart { margin: 0; }
.chart-plot { position: relative; height: 176px; }
.chart-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart-max { position: absolute; left: 0; top: -2px; transform: translateY(-100%); font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.chart-grid { stroke: var(--border); stroke-width: 1; stroke-dasharray: 2 4; }
.chart-grid.is-base { stroke: var(--border-strong); stroke-dasharray: none; }
.chart-bar { fill: var(--accent); }
.chart-bar.t-success { fill: var(--ok); } .chart-bar.t-warn { fill: var(--warn); } .chart-bar.t-danger { fill: var(--bad); } .chart-bar.t-info { fill: var(--info); }
.chart-bar.t-neutral { fill: var(--border-strong); }
.chart-bar.s1 { opacity: .55; }
.chart-hit { fill: transparent; }
.chart-hit:hover { fill: var(--hover); }
.chart-target { stroke: var(--warn); stroke-width: 1.5; stroke-dasharray: 5 4; fill: none; }
.chart-x { display: flex; margin-top: 8px; }
.chart-x span { flex: 1; text-align: center; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 0; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.chart-legend .key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: var(--accent); }
.chart-legend .key.s1 { opacity: .55; } .chart-legend .key--line { height: 0; border-top: 2px dashed var(--warn); background: none; border-radius: 0; width: 14px; vertical-align: 3px; }
.chart-legend .key.t-neutral { background: var(--border-strong); }
@media (max-width: 639px) { .chart-plot { height: 150px; } .chart-x span.is-skip { visibility: hidden; } }

/* Rozet, çip, nokta, avatar */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--surface-3); color: var(--text-2); line-height: 1; }
.badge .i { width: 13px; height: 13px; }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--accent { background: var(--accent-soft); color: var(--accent-text); }
.badge--success { background: var(--ok-soft); color: var(--ok-text); }
.badge--warn { background: var(--warn-soft); color: var(--warn-text); }
.badge--danger { background: var(--bad-soft); color: var(--bad-text); }
.badge--info { background: var(--info-soft); color: var(--info-text); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); font-size: 12.5px; color: var(--text-2); white-space: nowrap; font-weight: 500; }
.chip .i { width: 13px; height: 13px; color: var(--muted); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--off); flex: none; position: relative; }
.dot--ok { background: var(--ok); } .dot--warn { background: var(--warn); } .dot--bad { background: var(--bad); } .dot--info { background: var(--info); }
.dot--pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--ok); opacity: 0; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .7; } 80%, 100% { transform: scale(1.35); opacity: 0; } }
.health { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; }
.health--ok { color: var(--ok-text); } .health--warn { color: var(--warn-text); } .health--bad { color: var(--bad-text); } .health--off { color: var(--muted); }
.avatar { width: 36px; height: 36px; border-radius: 11px; display: inline-grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; flex: none; letter-spacing: .01em; background: #6366f1; text-shadow: 0 1px 1px rgba(0, 0, 0, .15); }
.avatar--sm { width: 28px; height: 28px; font-size: 11px; border-radius: 8px; }
.avatar--lg { width: 56px; height: 56px; font-size: 19px; border-radius: 16px; }
.av-0 { background: linear-gradient(135deg, #6366f1, #4338ca); } .av-1 { background: linear-gradient(135deg, #0ea5e9, #0369a1); }
.av-2 { background: linear-gradient(135deg, #10b981, #047857); } .av-3 { background: linear-gradient(135deg, #f59e0b, #b45309); }
.av-4 { background: linear-gradient(135deg, #ec4899, #9d174d); } .av-5 { background: linear-gradient(135deg, #8b5cf6, #5b21b6); }
.av-6 { background: linear-gradient(135deg, #14b8a6, #0f766e); } .av-7 { background: linear-gradient(135deg, #f43f5e, #be123c); }

/* Bildirim şeridi (banner) */
.alert { display: flex; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface-2); color: var(--text-2); align-items: flex-start; }
.alert .i { margin-top: 1px; }
.alert-body { flex: 1; min-width: 0; } .alert-body b { color: var(--text); }
.alert--info { background: var(--info-soft); border-color: transparent; color: var(--info-text); }
.alert--success { background: var(--ok-soft); border-color: transparent; color: var(--ok-text); }
.alert--warn { background: var(--warn-soft); border-color: transparent; color: var(--warn-text); }
.alert--danger { background: var(--bad-soft); border-color: transparent; color: var(--bad-text); }
.alert--info b, .alert--success b, .alert--warn b, .alert--danger b { color: inherit; }
.alert-actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }

/* Boş durum */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 44px 24px; gap: 8px; }
.empty--compact { padding: 26px 16px; }
.empty-art { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; color: var(--accent); background: radial-gradient(circle at 30% 25%, var(--accent-soft), var(--surface-3)); box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent-soft) 45%, transparent); margin-bottom: 10px; }
.empty-art .i { width: 28px; height: 28px; stroke-width: 1.6; }
.empty--compact .empty-art { width: 48px; height: 48px; border-radius: 15px; box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent-soft) 45%, transparent); }
.empty--compact .empty-art .i { width: 22px; height: 22px; }
.empty-title { font-size: 16px; font-weight: 650; }
.empty-text { color: var(--muted); max-width: 46ch; }
.empty-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }

/* İskelet yükleme */
.skeleton { display: grid; gap: 10px; padding: 4px 0; }
.sk-line { display: block; height: 14px; border-radius: 7px; background: linear-gradient(90deg, var(--surface-3) 25%, var(--surface-2) 50%, var(--surface-3) 75%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.sk-line--short { width: 60%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Açılır menü / alttan sayfa (aynı bileşen: masaüstünde açılır, mobilde bottom sheet) */
.pop-anchor { position: relative; }
.pop {
  position: absolute; z-index: 60; top: calc(100% + 8px); left: 0; min-width: 260px; max-width: min(92vw, 380px); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; animation: pop-in .14s ease-out;
}
.pop--right { left: auto; right: 0; }
.pop--up { top: auto; bottom: calc(100% + 8px); }
.pop--wide { width: 340px; }
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
.pop-head { padding: 10px 12px; border-bottom: 1px solid var(--border); }
.pop-list { max-height: min(60vh, 420px); overflow-y: auto; padding: 6px; overscroll-behavior: contain; }
.pop-label { padding: 8px 10px 4px; font-size: 11.5px; font-weight: 600; color: var(--faint); }
.pop-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 42px; padding: 6px 10px; border: 0; background: transparent; border-radius: var(--r-sm); color: var(--text); text-align: left; font-weight: 500; }
.pop-item:hover, .pop-item:focus-visible { background: var(--hover); text-decoration: none; }
.pop-item.is-active { background: var(--accent-soft); color: var(--accent-text); }
.pop-item .i { color: var(--muted); }
.pop-item small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
.pop-item-text { flex: 1; min-width: 0; line-height: 1.3; } .pop-item-text > b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.pop-sep { height: 1px; background: var(--border); margin: 6px 4px; }
.pop-empty { padding: 20px 12px; color: var(--muted); text-align: center; }
.sheet-backdrop { position: fixed; inset: 0; z-index: 55; background: rgba(8, 11, 20, .5); animation: fade-in .15s; }
@keyframes fade-in { from { opacity: 0; } }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; background: var(--surface-3); border-radius: var(--r-md); }
.seg button { border: 0; background: transparent; min-height: 34px; border-radius: var(--r-sm); font-weight: 600; font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.seg .i { width: 16px; height: 16px; }
@media (max-width: 639px) {
  .pop.is-sheet, .pop {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: auto; max-width: none; min-width: 0; z-index: 70; border-radius: 20px 20px 0 0; border-bottom: 0;
    padding-bottom: var(--safe-b); animation: sheet-in .22s cubic-bezier(.2, .8, .2, 1); box-shadow: 0 -12px 40px rgba(8, 11, 20, .28);
  }
  .pop::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--border-strong); margin: 8px auto 0; }
  .pop-list { max-height: 62vh; max-height: 62dvh; }
  .pop-item { min-height: 48px; }
}
@keyframes sheet-in { from { transform: translateY(100%); } to { transform: none; } }

/* Modal (confirm, komut paleti) */
.dialog { border: 0; padding: 0; margin: auto; max-width: min(92vw, 460px); width: 100%; background: var(--surface); color: var(--text); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); animation: dlg-in .18s ease-out; }
.dialog::backdrop { background: rgba(8, 11, 20, .55); backdrop-filter: blur(2px); animation: fade-in .15s; }
@keyframes dlg-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.dialog-body { padding: 22px 22px 8px; }
.dialog-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--warn-soft); color: var(--warn-text); margin-bottom: 14px; }
.dialog-icon--danger { background: var(--bad-soft); color: var(--bad-text); }
.dialog-icon--info { background: var(--info-soft); color: var(--info-text); }
.dialog-title { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.dialog-text { color: var(--muted); margin-top: 6px; }
.dialog-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 16px 22px 20px; }
.dialog--palette { max-width: min(94vw, 600px); margin-top: 10vh; }
.palette-input { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--border); }
.palette-input input { flex: 1; min-height: 56px; border: 0; background: transparent; font-size: 16px; }
.palette-input input:focus { outline: none; }
.palette-list { max-height: 52vh; overflow-y: auto; padding: 8px; }
@media (max-width: 639px) {
  .dialog:not(.dialog--palette) { margin: auto 0 0; max-width: none; border-radius: 22px 22px 0 0; padding-bottom: var(--safe-b); animation: sheet-in .22s cubic-bezier(.2, .8, .2, 1); }
  .dialog-foot { flex-direction: column-reverse; } .dialog-foot .btn { width: 100%; }
  .dialog--palette { margin: 0; max-width: none; width: 100%; height: 100%; max-height: none; border-radius: 0; }
  .palette-list { max-height: none; }
}

/* Toast */
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 120; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; pointer-events: none; width: min(92vw, 400px); }
.toast { pointer-events: auto; display: flex; gap: 12px; align-items: flex-start; width: 100%; padding: 13px 14px; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--info); border-radius: var(--r-md); box-shadow: var(--shadow-lg); animation: toast-in .25s cubic-bezier(.2, .8, .2, 1); }
.toast.is-out { animation: toast-out .2s ease-in forwards; }
.toast--success { border-left-color: var(--ok); } .toast--error { border-left-color: var(--bad); } .toast--warn { border-left-color: var(--warn); }
.toast .i { margin-top: 1px; } .toast--success .i { color: var(--ok); } .toast--error .i { color: var(--bad); } .toast--warn .i { color: var(--warn); } .toast--info .i { color: var(--info); }
.toast-msg { flex: 1; min-width: 0; font-weight: 500; line-height: 1.4; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.97); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(16px); } }
@media (max-width: 639px) { .toasts { left: 12px; right: 12px; width: auto; bottom: calc(var(--tabbar-h) + var(--safe-b) + 12px); align-items: stretch; } }

/* Sekmeler (site paneli) */
.tabs-wrap { position: relative; margin: 0 calc(var(--pad) * -1); }
.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; padding: 0 var(--pad); border-bottom: 1px solid var(--border); scroll-behavior: smooth; -webkit-overflow-scrolling: touch; }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; min-height: 46px; color: var(--muted); font-weight: 600; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; flex: none; transition: color .12s, border-color .12s; }
.tab .i { width: 17px; height: 17px; }
.tab:hover { color: var(--text); text-decoration: none; }
.tab.is-active { color: var(--accent-text); border-bottom-color: var(--accent); }
.tab-pill { min-width: 20px; height: 19px; padding: 0 6px; border-radius: 999px; background: var(--bad); color: #fff; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }
.tabs-fade { position: absolute; top: 0; bottom: 1px; width: 28px; pointer-events: none; opacity: 0; transition: opacity .15s; z-index: 2; }
.tabs-fade--l { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.tabs-fade--r { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.tabs-wrap.can-left .tabs-fade--l, .tabs-wrap.can-right .tabs-fade--r { opacity: 1; }
@media (min-width: 640px) { .tabs-wrap--sticky { position: sticky; top: var(--topbar-h); z-index: 20; background: var(--bg); } }
@media (max-width: 639px) { .tab { min-height: 48px; padding: 0 13px; } }

/* Zaman çizelgesi / akış */
.feed { display: flex; flex-direction: column; }
.feed-item { display: flex; gap: 12px; padding: 11px 0; position: relative; }
.feed-item + .feed-item { border-top: 1px solid var(--border); }
.feed-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--surface-3); color: var(--muted); }
.feed-ico .i { width: 16px; height: 16px; }
.feed-ico--success { background: var(--ok-soft); color: var(--ok-text); } .feed-ico--warn { background: var(--warn-soft); color: var(--warn-text); }
.feed-ico--error { background: var(--bad-soft); color: var(--bad-text); } .feed-ico--info { background: var(--info-soft); color: var(--info-text); }
.feed-body { flex: 1; min-width: 0; }
.feed-text { color: var(--text); line-height: 1.4; }
.feed-meta { color: var(--muted); font-size: 12.5px; margin-top: 2px; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.timeline { position: relative; padding-left: 4px; }

/* Satır listeleri */
.rows > li, .row-item { display: flex; align-items: center; gap: 12px; padding: 11px 0; min-width: 0; }
.rows > li + li { border-top: 1px solid var(--border); }
.row-main { flex: 1; min-width: 0; line-height: 1.35; } .row-main b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-main small { color: var(--muted); font-size: 12.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-main--wrap b, .row-main--wrap small { white-space: normal; }
.row-end { flex: none; text-align: right; color: var(--muted); font-size: 12.5px; }

/* Tanım listesi */
.dl { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 0; }
.dl dt, .dl dd { padding: 9px 0; border-bottom: 1px solid var(--border); margin: 0; min-width: 0; }
.dl dt { color: var(--muted); font-weight: 500; padding-right: 12px; }
.dl dd { font-weight: 550; overflow-wrap: anywhere; }
.dl dt:last-of-type, .dl dd:last-of-type { border-bottom: 0; }
.dl-inline { display: inline-flex; align-items: center; gap: 6px; }

/* Sayfalama */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 18px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }
.pager-nav { display: flex; gap: 6px; }

/* Adım göstergesi (sihirbaz) */
.steps { display: flex; gap: 0; counter-reset: step; margin-bottom: 22px; }
.step { flex: 1; display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 600; min-width: 0; position: relative; }
.step + .step::before { content: ""; flex: 1 1 18px; height: 2px; background: var(--border); margin: 0 12px 0 0; border-radius: 2px; max-width: 80px; min-width: 12px; }
.step-n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--surface-3); color: var(--muted); font-size: 13px; font-weight: 700; border: 2px solid transparent; }
.step-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step.is-active { color: var(--text); } .step.is-active .step-n { background: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 4px var(--accent-ring); }
.step.is-done { color: var(--text-2); } .step.is-done .step-n { background: var(--ok); color: #fff; } .step.is-done + .step::before, .step.is-active::before { background: var(--accent); }
@media (max-width: 639px) {
  .steps { gap: 6px; margin-bottom: 16px; } .step { flex: 1 1 0; flex-direction: column; align-items: flex-start; gap: 6px; }
  .step + .step::before { display: none; } .step-t { font-size: 12px; } .step::after { content: ""; display: block; height: 3px; width: 100%; border-radius: 3px; background: var(--border); order: -1; }
  .step.is-active::after, .step.is-done::after { background: var(--accent); } .step-n { display: none; }
}

/* 5 ── FORM ──────────────────────────────────────────────────────────────── */
.field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.label { font-weight: 600; font-size: 13px; color: var(--text); } .req { color: var(--bad); }
.input, .select, .textarea {
  width: 100%; min-height: var(--ctl); padding: 9px 12px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-md);
  color: var(--text); font-size: 14px; transition: border-color .12s, box-shadow .12s; appearance: none; -webkit-appearance: none;
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.select { padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a93a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 18px; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--faint); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input[readonly] { background: var(--surface-2); color: var(--muted); }
.input:disabled, .select:disabled, .textarea:disabled { background: var(--surface-2); color: var(--muted); cursor: not-allowed; }
.has-error .input, .has-error .select, .has-error .textarea { border-color: var(--bad); }
.has-error .input:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad) 30%, transparent); }
.hint { color: var(--muted); font-size: 12.5px; }
.error { color: var(--bad-text); font-size: 12.5px; font-weight: 600; display: flex; gap: 6px; align-items: center; } .error .i { width: 14px; height: 14px; }
.input-wrap { position: relative; display: flex; align-items: stretch; }
.input-wrap > .input, .input-wrap > .select { flex: 1; min-width: 0; }
.input-wrap > .input-btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; background: transparent; border-radius: 8px; display: grid; place-items: center; color: var(--muted); }
.input-btn:hover { background: var(--hover); color: var(--text); } .input-btn .i { width: 18px; height: 18px; }
.input-wrap.has-prefix > .input { border-top-left-radius: 0; border-bottom-left-radius: 0; } .input-wrap.has-suffix > .input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-affix { display: inline-flex; align-items: center; padding: 0 12px; background: var(--surface-3); border: 1px solid var(--border-strong); color: var(--muted); font-size: 13px; white-space: nowrap; }
.input-affix--pre { border-right: 0; border-radius: var(--r-md) 0 0 var(--r-md); } .input-affix--suf { border-left: 0; border-radius: 0 var(--r-md) var(--r-md) 0; }
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.form-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid .span-all { grid-column: 1 / -1; }
@media (max-width: 639px) { .form-grid--2, .form-grid--3 { grid-template-columns: minmax(0, 1fr); } .input, .select, .textarea { font-size: 16px; } }
@media (min-width: 640px) and (max-width: 899px) { .form-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.form-section + .form-section { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--border); }
.form-section-title { font-weight: 650; font-size: 14.5px; } .form-section-sub { color: var(--muted); margin: 2px 0 14px; max-width: 70ch; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 22px; }
.form-actions .grow { flex: 1; }
@media (max-width: 639px) { .form-actions .btn { flex: 1 1 auto; } }
.switch { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; padding: 6px 0; position: relative; }
.switch input[type="checkbox"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui { width: 42px; height: 24px; flex: none; border-radius: 999px; background: var(--border-strong); position: relative; transition: background .15s; margin-top: 1px; }
.switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .18s cubic-bezier(.2, .8, .2, 1); }
.switch input:checked + .switch-ui { background: var(--accent); } .switch input:checked + .switch-ui::after { transform: translateX(18px); }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch-text { display: grid; gap: 1px; min-width: 0; } .switch-text b { font-weight: 600; } .switch-text small { color: var(--muted); font-size: 12.5px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check-pill { position: relative; }
.check-pill input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.check-pill span { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2); font-weight: 500; font-size: 13px; transition: all .12s; }
.check-pill:hover span { border-color: var(--faint); }
.check-pill input:checked + span { background: var(--accent-soft); color: var(--accent-text); border-color: color-mix(in srgb, var(--accent) 55%, transparent); font-weight: 600; }
.check-pill input:checked + span::before { content: "✓"; font-weight: 800; }
.check-pill input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.check-pill--danger input:checked + span { background: var(--bad-soft); color: var(--bad-text); border-color: color-mix(in srgb, var(--bad) 50%, transparent); }
.range-row { display: flex; align-items: center; gap: 14px; }
.range-row input[type="range"] { flex: 1; accent-color: var(--accent); min-height: 32px; }
.range-val { min-width: 44px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.repeater-row { display: grid; grid-template-columns: 1fr 1fr 40px; gap: 10px; align-items: end; margin-bottom: 10px; }
@media (max-width: 639px) { .repeater-row { grid-template-columns: 1fr 1fr var(--ctl); } }

/* 6 ── TABLO ──────────────────────────────────────────────────────────────── */
.table-wrap { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: inherit; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-weight: 600; font-size: 12.5px; color: var(--muted); padding: 11px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; background: var(--surface-2); }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; min-width: 0; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .1s; } .table tbody tr:hover { background: var(--surface-2); }
.table th:first-child, .table td:first-child { padding-left: 18px; } .table th:last-child, .table td:last-child { padding-right: 18px; }
.table .t-right { text-align: right; } .table .t-center { text-align: center; } .table .t-nowrap { white-space: nowrap; }
.cell-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cell-main > div { min-width: 0; } .cell-main b { display: block; font-weight: 600; color: var(--text); } .cell-main small { display: block; color: var(--muted); font-size: 12.5px; }
.cell-link { color: inherit; } .cell-link:hover { text-decoration: none; } .cell-link:hover b { color: var(--accent-text); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; display: block; }
.cell-bar { display: grid; gap: 5px; min-width: 110px; } .cell-bar .num { font-size: 12.5px; font-weight: 600; }
@media (max-width: 1023px) { .hide-md { display: none !important; } }
/* Mobilde tablo → kart */
@media (max-width: 639px) {
  .table--cards, .table--cards tbody, .table--cards tr, .table--cards td { display: block; width: 100%; }
  .table--cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table--cards tbody { padding: 10px; display: grid; gap: 10px; }
  .table--cards tr { border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); padding: 6px 14px; box-shadow: var(--shadow-sm); }
  .table--cards tbody tr:hover { background: var(--surface); }
  .table--cards td { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px dashed var(--border); text-align: right; }
  .table--cards td:last-child, .table--cards td.td-last { border-bottom: 0; }
  .table--cards td::before { content: attr(data-label); color: var(--muted); font-size: 12.5px; font-weight: 500; text-align: left; flex: none; max-width: 42%; }
  .table--cards td:not([data-label])::before { display: none; }
  .table--cards td.td-title { display: block; text-align: left; padding: 10px 0 9px; border-bottom: 1px solid var(--border); }
  .table--cards td.td-title::before { display: none; }
  .table--cards td.td-actions { justify-content: flex-end; padding-top: 10px; }
  .table--cards td.td-actions::before { display: none; }
  .table--cards th:first-child, .table--cards td:first-child { padding-left: 0; } .table--cards td:last-child { padding-right: 0; }
  .table--cards .cell-bar { min-width: 120px; width: 55%; } .table--cards .truncate { white-space: normal; text-align: right; }
  .table--cards .td-title .truncate { text-align: left; }
  .table--cards .hide-md { display: flex !important; }
}

/* 7 ── SAYFALAR ───────────────────────────────────────────────────────────── */
/* Giriş */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--bg); }
.auth-hero { position: relative; overflow: hidden; padding: 56px 56px 48px; display: flex; flex-direction: column; justify-content: space-between; color: #eef0ff;
  background: radial-gradient(900px 500px at 10% -10%, #6366f1 0%, transparent 60%), radial-gradient(700px 500px at 100% 100%, #7c3aed 0%, transparent 55%), #1e1b4b; }
.auth-hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(circle at 30% 20%, #000, transparent 70%); -webkit-mask-image: radial-gradient(circle at 30% 20%, #000, transparent 70%); pointer-events: none; }
.auth-hero > * { position: relative; z-index: 1; }
.auth-brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 18px; color: #fff; }
.auth-brand .logo { background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.auth-hero h2 { font-size: 34px; line-height: 1.15; letter-spacing: -.025em; font-weight: 750; max-width: 16ch; color: #fff; }
.auth-hero p { color: #c7cdfa; margin-top: 14px; max-width: 46ch; font-size: 15.5px; }
.auth-points { display: grid; gap: 14px; margin-top: 34px; }
.auth-points li { display: flex; gap: 12px; align-items: flex-start; color: #dfe3ff; } .auth-points .i { color: #a5b4fc; margin-top: 2px; }
.auth-points b { display: block; color: #fff; font-weight: 650; }
.auth-foot { font-size: 12.5px; color: #a9b0ec; }
.auth-main { display: grid; place-items: center; padding: 32px 24px; }
.auth-card { width: 100%; max-width: 410px; }
.auth-card h1 { font-size: 26px; letter-spacing: -.02em; font-weight: 700; }
.auth-card .sub { color: var(--muted); margin: 6px 0 26px; }
.auth-card .form-stack { display: grid; gap: 16px; }
.auth-mobile-brand { display: none; align-items: center; gap: 12px; font-weight: 700; font-size: 18px; margin-bottom: 28px; }
@media (max-width: 899px) { .auth { grid-template-columns: minmax(0, 1fr); } .auth-hero { display: none; } .auth-mobile-brand { display: flex; } .auth-main { align-items: start; padding-top: max(40px, 12vh); } }

/* Gösterge paneli ızgarası */
.dash-grid { display: grid; gap: 18px; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
.dash-grid > * { min-width: 0; }
.span-12 { grid-column: span 12; } .span-8 { grid-column: span 8; } .span-7 { grid-column: span 7; } .span-6 { grid-column: span 6; } .span-5 { grid-column: span 5; } .span-4 { grid-column: span 4; }
@media (max-width: 1279px) { .span-8, .span-7, .span-5, .span-4 { grid-column: span 12; } .span-6 { grid-column: span 12; } .dash-grid .span-6--tablet { grid-column: span 6; } }
@media (max-width: 899px) { .dash-grid .span-6--tablet { grid-column: span 12; } }
@media (max-width: 639px) { .dash-grid { gap: 12px; } }

/* Site sağlık ızgarası */
.hgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 215px), 1fr)); gap: 10px; }
@media (max-width: 639px) { .hgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }
.htile { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); color: var(--text); min-width: 0; position: relative; transition: border-color .12s, box-shadow .12s, transform .12s; }
.htile:hover { text-decoration: none; border-color: var(--border-strong); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.htile-top { display: flex; align-items: center; gap: 9px; min-width: 0; }
.htile-name { min-width: 0; flex: 1; line-height: 1.25; } .htile-name b { display: block; font-weight: 650; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .htile-name small { color: var(--muted); font-size: 11.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.htile-meta { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.htile-meta b { color: var(--text); font-weight: 650; }
.htile--bad { border-color: color-mix(in srgb, var(--bad) 45%, var(--border)); background: linear-gradient(180deg, var(--bad-soft), var(--surface) 55%); }
.htile--warn { border-color: color-mix(in srgb, var(--warn) 45%, var(--border)); }
.htile--paused { opacity: .72; }
@media (max-width: 639px) { .htile { padding: 10px; } .htile .avatar { width: 28px; height: 28px; font-size: 11px; border-radius: 8px; } .htile-name small { display: none; } }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

/* Siteler listesi */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.filters .search { position: relative; flex: 1 1 260px; min-width: 0; max-width: 420px; }
.filters .search .i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; width: 18px; height: 18px; }
.filters .search .input { padding-left: 38px; }
.filters .select { width: auto; min-width: 140px; flex: 0 1 auto; }
.status-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin-bottom: 14px; }
.status-chips::-webkit-scrollbar { display: none; }
.schip { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-weight: 600; font-size: 13px; white-space: nowrap; flex: none; }
.schip:hover { text-decoration: none; border-color: var(--border-strong); }
.schip.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }
.schip-n { font-variant-numeric: tabular-nums; font-size: 12px; opacity: .7; }
@media (max-width: 639px) { .filters .select { flex: 1 1 calc(50% - 5px); min-width: 0; } .filters .search { flex: 1 1 100%; max-width: none; } }

/* Sihirbaz */
.wiz { max-width: 880px; }
.wiz-panel { animation: fade-in .2s; }
.test-steps { display: grid; gap: 10px; }
.test-step { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface-2); }
.test-step .ts-ico { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--surface-3); color: var(--muted); }
.test-step.is-ok .ts-ico { background: var(--ok-soft); color: var(--ok-text); } .test-step.is-fail .ts-ico { background: var(--bad-soft); color: var(--bad-text); }
.test-step.is-run .ts-ico { background: var(--accent-soft); color: var(--accent); } .test-step.is-run .ts-ico .i { animation: spin 1s linear infinite; }
.test-step .ts-main { flex: 1; min-width: 0; } .test-step .ts-main b { display: block; font-weight: 600; } .test-step .ts-main small { color: var(--muted); display: block; overflow-wrap: anywhere; }
.test-step.is-fail .ts-main small { color: var(--bad-text); }
.test-step .ts-ms { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12.5px; flex: none; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* Site paneli başlığı */
.site-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-bottom: 18px; }
.site-head-id { display: flex; align-items: center; gap: 16px; min-width: 0; flex: 1 1 360px; }
.site-head h1 { font-size: 23px; letter-spacing: -.02em; font-weight: 700; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; line-height: 1.2; }
.site-head-sub { display: flex; align-items: center; gap: 6px 12px; flex-wrap: wrap; color: var(--muted); margin-top: 6px; font-size: 13px; }
.site-head-sub a { color: var(--muted); display: inline-flex; align-items: center; gap: 4px; } .site-head-sub a:hover { color: var(--accent-text); }
.site-head-sub .i { width: 14px; height: 14px; }
.site-head-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.site-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-bottom: 4px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; }
.strip-item { padding: 12px 16px; min-width: 0; } .strip-item + .strip-item { border-left: 1px solid var(--border); }
.strip-item small { color: var(--muted); font-size: 12px; font-weight: 600; display: block; }
.strip-item b { font-size: 19px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; display: block; margin-top: 2px; }
.strip-item b em { font-style: normal; font-size: 13px; color: var(--muted); font-weight: 600; }
.strip-item span { color: var(--muted); font-size: 12px; }
@media (max-width: 639px) {
  .site-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } .strip-item { padding: 10px 12px; }
  .strip-item:nth-child(3) { border-left: 0; } .strip-item:nth-child(n+3) { border-top: 1px solid var(--border); } .strip-item b { font-size: 17px; }
  .site-head-actions { width: 100%; } .site-head-actions > * { flex: 1 1 auto; }
  .site-head h1 { font-size: 20px; }
}
.tab-content { padding-top: 22px; }
@media (max-width: 639px) { .tab-content { padding-top: 16px; } }

/* Kurulum denetim listesi */
.checklist { display: grid; gap: 4px; }
.check-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; }
.check-row + .check-row { border-top: 1px solid var(--border); }
.check-ico { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--surface-3); color: var(--faint); margin-top: 1px; border: 1px dashed var(--border-strong); }
.check-row.is-done .check-ico { background: var(--ok); color: #fff; border: 0; } .check-ico .i { width: 14px; height: 14px; stroke-width: 2.4; }
.check-row b { display: block; font-weight: 600; } .check-row small { color: var(--muted); }
.check-row .grow { flex: 1; min-width: 0; }

/* Bağlantı sekmesi */
.uptime-bar { display: flex; gap: 2px; height: 28px; align-items: stretch; }
.uptime-bar i { flex: 1; border-radius: 3px; background: var(--ok); opacity: .85; min-width: 2px; } .uptime-bar i.is-bad { background: var(--bad); opacity: 1; } .uptime-bar i.is-empty { background: var(--surface-3); }
.secret-box { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface-2); font-family: var(--mono); font-size: 13px; letter-spacing: .02em; min-width: 0; }
.secret-box span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.code-block { background: #0d1117; color: #d7e0ef; border-radius: var(--r-md); padding: 14px 16px; font-family: var(--mono); font-size: 12.5px; overflow-x: auto; line-height: 1.6; position: relative; }
.code-block .c { color: #7d8aa6; }

/* Politika formu */
.policy-preview { display: flex; flex-wrap: wrap; gap: 6px; }
.slot { display: inline-flex; align-items: center; height: 26px; padding: 0 9px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-text); font-weight: 600; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.slot--past { background: var(--surface-3); color: var(--muted); }

/* 8 ── YARDIMCILAR ───────────────────────────────────────────────────────── */
.muted { color: var(--muted); } .faint { color: var(--faint); } .strong { font-weight: 650; } .small { font-size: 12.5px; }
.ok-text { color: var(--ok-text); } .bad-text { color: var(--bad-text); } .warn-text { color: var(--warn-text); }
.nowrap { white-space: nowrap; } .center { text-align: center; } .right { text-align: right; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .row--nowrap { flex-wrap: nowrap; }
.stack { display: grid; gap: 14px; } .stack-lg { display: grid; gap: 22px; } .stack-sm { display: grid; gap: 8px; }
.grow { flex: 1; min-width: 0; } .between { justify-content: space-between; } .end { justify-content: flex-end; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mb-0 { margin-bottom: 0 !important; } .mb-2 { margin-bottom: 16px; }
.grid-2 { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.grid-3 { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
@media (max-width: 1023px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 899px) { .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 639px) { .grid-2, .grid-3 { gap: 12px; } }
.hide-sm { }
@media (max-width: 639px) { .hide-sm { display: none !important; } }
@media (min-width: 640px) { .only-sm { display: none !important; } }
.divider { height: 1px; background: var(--border); margin: 14px 0; }
.noscript-warn { padding: 12px 16px; background: var(--warn-soft); color: var(--warn-text); text-align: center; font-weight: 600; }
.error-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 24px; }
.error-page .code { font-size: 78px; font-weight: 800; letter-spacing: -.05em; line-height: 1; background: linear-gradient(135deg, #6366f1, #8b5cf6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-page pre { text-align: left; background: var(--surface-3); padding: 14px; border-radius: var(--r-md); overflow: auto; max-width: min(92vw, 900px); font-size: 12px; margin-top: 18px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* 9 ── pc-N: ilerleme genişlik sınıfları (satır içi stil yasak olduğundan) ───── */
.pc-0{width:0%}.pc-1{width:1%}.pc-2{width:2%}.pc-3{width:3%}.pc-4{width:4%}.pc-5{width:5%}.pc-6{width:6%}.pc-7{width:7%}.pc-8{width:8%}.pc-9{width:9%}
.pc-10{width:10%}.pc-11{width:11%}.pc-12{width:12%}.pc-13{width:13%}.pc-14{width:14%}.pc-15{width:15%}.pc-16{width:16%}.pc-17{width:17%}.pc-18{width:18%}.pc-19{width:19%}
.pc-20{width:20%}.pc-21{width:21%}.pc-22{width:22%}.pc-23{width:23%}.pc-24{width:24%}.pc-25{width:25%}.pc-26{width:26%}.pc-27{width:27%}.pc-28{width:28%}.pc-29{width:29%}
.pc-30{width:30%}.pc-31{width:31%}.pc-32{width:32%}.pc-33{width:33%}.pc-34{width:34%}.pc-35{width:35%}.pc-36{width:36%}.pc-37{width:37%}.pc-38{width:38%}.pc-39{width:39%}
.pc-40{width:40%}.pc-41{width:41%}.pc-42{width:42%}.pc-43{width:43%}.pc-44{width:44%}.pc-45{width:45%}.pc-46{width:46%}.pc-47{width:47%}.pc-48{width:48%}.pc-49{width:49%}
.pc-50{width:50%}.pc-51{width:51%}.pc-52{width:52%}.pc-53{width:53%}.pc-54{width:54%}.pc-55{width:55%}.pc-56{width:56%}.pc-57{width:57%}.pc-58{width:58%}.pc-59{width:59%}
.pc-60{width:60%}.pc-61{width:61%}.pc-62{width:62%}.pc-63{width:63%}.pc-64{width:64%}.pc-65{width:65%}.pc-66{width:66%}.pc-67{width:67%}.pc-68{width:68%}.pc-69{width:69%}
.pc-70{width:70%}.pc-71{width:71%}.pc-72{width:72%}.pc-73{width:73%}.pc-74{width:74%}.pc-75{width:75%}.pc-76{width:76%}.pc-77{width:77%}.pc-78{width:78%}.pc-79{width:79%}
.pc-80{width:80%}.pc-81{width:81%}.pc-82{width:82%}.pc-83{width:83%}.pc-84{width:84%}.pc-85{width:85%}.pc-86{width:86%}.pc-87{width:87%}.pc-88{width:88%}.pc-89{width:89%}
.pc-90{width:90%}.pc-91{width:91%}.pc-92{width:92%}.pc-93{width:93%}.pc-94{width:94%}.pc-95{width:95%}.pc-96{width:96%}.pc-97{width:97%}.pc-98{width:98%}.pc-99{width:99%}
.pc-100{width:100%}
.pop-pad { padding: 6px 6px 8px; }
.pop-item--static { pointer-events: none; min-height: 32px; }
.sb-status { padding: 4px 8px; }
@media (min-width: 640px) and (max-width: 1023px) { .sb-status { justify-content: center; padding: 4px 0; } }
fieldset.plain { border: 0; padding: 0; margin: 0; min-width: 0; }
.summary-link { cursor: pointer; padding: 4px 0; }
.spark-box { height: 56px; color: var(--ok); }
.text-right { text-align: right; }
.card-note { padding: 12px 18px 16px; }
.grid-2 > .span-all, .grid-3 > .span-all { grid-column: 1 / -1; }

/* Gösterge paneli iki sütun: geniş ekranda ana + yan sütun, dar ekranda sıralı tek sütun (ord-N) */
.dash-cols { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.dash-col { display: contents; }
.pair { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.ord-1 { order: 1; } .ord-2 { order: 2; } .ord-3 { order: 3; } .ord-4 { order: 4; } .ord-5 { order: 5; } .ord-6 { order: 6; }
@media (min-width: 1280px) {
  .dash-cols { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); align-items: start; }
  .dash-col { display: grid; gap: 18px; align-content: start; min-width: 0; }
  .ord-1, .ord-2, .ord-3, .ord-4, .ord-5, .ord-6 { order: 0; }
}
@media (max-width: 760px) { .pair { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 639px) { .dash-cols, .pair { gap: 12px; } }
.dash-grid { align-items: stretch; }
.dash-grid--start { align-items: start; }

/* Dokunma hedefleri ≥ 44 px (mobil/tablet) ve kart dönüşümünde çift çerçeveyi kaldır */
@media (max-width: 1023px) {
  .btn--sm { min-height: 44px; padding: 0 14px; }
  .icon-btn--sm { width: 44px; height: 44px; }
  .schip { min-height: 44px; }
  .check-pill span { min-height: 44px; }
  .input-btn { min-width: 44px; }
}
@media (max-width: 639px) {
  .card--flush:has(> .table-wrap > .table--cards) { background: transparent; border: 0; box-shadow: none; }
  .card--flush > .table-wrap > .table--cards tbody { padding: 0; }
}
.topbar-grow > .pop-anchor { min-width: 0; }
@media (max-width: 639px) {
  .topbar-grow > .pop-anchor { flex: 1; }
  .topbar-grow .switcher { width: 100%; }
}
/* 11 sekme dar masaüstünde sığsın: simgeleri gizle (kaydırma yine de çalışır) */
@media (min-width: 1024px) and (max-width: 1499px) { .tab .i { display: none; } .tab { padding: 0 12px; } }
/* KPI ızgarası: orta genişlikte 2 sütun, tek kalan son kart tam genişlik (yetim kart olmasın) */
@media (min-width: 640px) and (max-width: 1279px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* Sütun gizleme: hide-xl < 1400, hide-lg < 1600; kart görünümünde (mobil) hepsi gösterilir */
@media (max-width: 1599px) { .hide-lg { display: none !important; } }
@media (max-width: 1399px) { .hide-xl { display: none !important; } }
.hide-spark { display: none; }
@media (min-width: 1600px) { .hide-spark { display: block; } }
@media (max-width: 639px) { .table--cards .hide-lg, .table--cards .hide-xl { display: flex !important; } .table--cards .hide-spark { display: none !important; } }
.table .health span:last-child { white-space: nowrap; }
.table .num.small { white-space: nowrap; }
.ghost-slot { visibility: hidden; }
@media (max-width: 639px) { .ghost-slot { display: none; } }

/* Hesap / iki aşamalı doğrulama */
.form-narrow { max-width: 460px; }
.code-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.code-grid li { padding: 12px 14px; border: 1px dashed var(--border-strong); border-radius: var(--r-md); background: var(--surface-2); text-align: center; }
.code-grid code { background: transparent; font-size: 15px; letter-spacing: .04em; padding: 0; }
@media (max-width: 380px) { .code-grid { grid-template-columns: minmax(0, 1fr); } }
