:root {
  /* Sayfa yan boşluğu: başlık, istatistikler, arama, filtreler ve içeriğin ortak masaüstü değeri.
     Telefonda bölümler kendi 16 px'ini yazar. */
  --page-gutter: 32px;
  /* Palet (2026-11-02, "E · Mavi"): soğuk nötr zemin, lacivert yapı rengi (menü, başlık, seçili),
     kobalt YALNIZ birincil eylemde (--cta) ve bağlantıda. Rol başına bir ton; marka payı ≤ %10;
     metin ≥ 4.5:1, alan kenarı ve odak halkası ≥ 3:1. Seçili (açık zemin + 3 px gösterge) ile
     odak (2 px halka) ayrı görünür. Durum renkleri (kırmızı/amber/yeşil) maviden ayrışır. */
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --surface-hover: #f1f5f9;
  --border: #e5e7eb;
  --border-strong: #8a94a6; /* form alanı kenarı: beyaz zeminde 3:1 */
  --text: #0f172a;
  --text-soft: #475569;
  --text-mute: #475569;
  --text-faint: #475569;

  /* Seçim/aktif ve yapı: lacivert */
  --primary: #0d2b5b;
  --primary-hover: #1e3a8a;
  --primary-soft: #eff4ff;
  --primary-border: #c7d2e0;
  --accent: #8a94a6;
  --focus: #3b82f6;
  --nav: #0d2b5b;
  --nav-muted: #bfdbfe;
  --nav-accent: #afc0ff; /* menüde seçili sekme göstergesi: koyu logodaki "AI" mavisi (2026-11-03; amber başka yerde yoktu) */

  /* Birincil eylem (CTA) ve bağlantı: kobalt */
  --cta: #1e40af;
  --cta-hover: #1e3a8a;

  --red: #c2410c;
  --red-soft: #fdf1ea;
  --red-border: #f3cdb8;
  --amber: #9a5b07;
  --amber-soft: #fbf3e4;
  --amber-border: #ecd6ab;
  --green: #2f6b3f;
  --green-soft: #edf5ef;
  --green-border: #c9e0cf;
  --blue: #3e5f7d;
  --blue-soft: #eef2f6;
  --blue-border: #d3dde7;
  --slate: #57534e;
  --slate-soft: #f1efeb;

  --glass: rgba(255,255,255,0.72);
  --glass-border: rgba(255,255,255,0.9);
  --shadow-xs: 0 1px 1px rgba(29,28,26,0.04);
  --shadow-sm: 0 1px 3px rgba(29,28,26,0.06), 0 1px 2px rgba(29,28,26,0.03);
  /* Köşe standardı (2026-11-02): kutular 3 px, kontroller ve rozetler 2 px; avatar ve noktalar
     daire. Yeni bileşende sabit px yazılmaz, bu üçü kullanılır. */
  --radius-sm: 2px;
  --radius: 3px;
  --radius-lg: 3px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  /* Zemin düz: iş ekranında gradyan yok (2026-11-02). */
  background: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.003em;
}
.mono { font-family: inherit; font-variant-numeric: tabular-nums; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--primary); color: white; }
h1, h2 { font-weight: 600; }
/* FocusOnNavigate her gezinme/form post'unda h1'e odak verir (erişilebilirlik) — davranış
   kalsın ama başlık etkileşimli olmadığı için tarayıcının odak halkası çizilmesin. */
h1:focus { outline: none; }

/* ===== TOP NAV ===== */
.top-nav {
  /* Cam üst çubuk (2026-10-24): yarı saydam, arkasını bulanıklaştırır; menü öğeleri haptır. */
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 1px 0 rgba(29,28,26,0.06), 0 8px 24px -16px rgba(29,28,26,0.2);
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-brand { display: flex; align-items: center; gap: 10px; margin-right: 32px; }
a.nav-brand { text-decoration: none; color: inherit; }
a.nav-brand:hover .brand-name { color: var(--primary-hover); }
.brand-logo {
  width: 28px; height: 28px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  display: grid; place-items: center;
  color: white; font-weight: 700; font-size: 13px; letter-spacing: -0.02em;
}
.brand-name { font-size: 20px; font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
.brand-ai { color: var(--cta); }
.brand-mark { display: block; flex-shrink: 0; }
.brand-divider { width: 1px; height: 18px; background: var(--border); margin: 0 4px; }
.brand-tag {
  font-family: inherit; font-variant-numeric: tabular-nums; font-size: 12px; color: var(--text-mute);
  background: var(--surface-2); padding: 3px 7px; border-radius: 3px;
}
.nav-tabs { display: flex; gap: 4px; height: 100%; align-items: center; }
.nav-tab {
  display: flex; align-items: center; height: 36px; padding: 0 14px; font-size: 14px;
  color: var(--text-mute); border-radius: var(--radius); text-decoration: none;
  cursor: pointer; font-weight: 500; transition: background .15s, color .15s;
}
.nav-tab:hover { color: var(--text); background: rgba(34,48,60,0.05); text-decoration: none; }
.nav-tab.active { color: var(--primary); background: var(--primary-soft); }
.nav-tab:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.nav-spacer { flex: 1; }
.nav-user { position: relative; }
.nav-user-trigger {
  display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
  cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.nav-user-trigger:hover { border-color: var(--border-strong); background: var(--surface-hover); }
.nav-user.open .nav-user-trigger { border-color: var(--border-strong); background: var(--surface-hover); }
.nav-avatar {
  width: 26px; height: 26px; background: var(--primary); color: white; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; font-weight: 600; flex-shrink: 0;
}
.nav-avatar.lg { width: 36px; height: 36px; font-size: 14px; }
.nav-user .name { font-size: 12.5px; font-weight: 500; color: var(--text); }
.nav-user-chevron { width: 14px; height: 14px; color: var(--text-mute); transition: transform 0.15s; }
.nav-user.open .nav-user-chevron { transform: rotate(180deg); }

/* user dropdown */
.user-menu-backdrop { position: fixed; inset: 0; z-index: 40; }
.user-menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 41; min-width: 240px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 6px; animation: um-pop 0.12s ease-out;
}
@keyframes um-pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.user-menu-head { display: flex; align-items: center; gap: 10px; padding: 8px 10px; }
.user-menu-id { min-width: 0; }
.um-name { font-size: 13px; font-weight: 600; color: var(--text); }
.um-email { font-size: 12px; color: var(--text-mute); overflow: hidden; text-overflow: ellipsis; }
.user-menu-sep { height: 1px; background: var(--border); margin: 6px 0; }
.user-menu-item {
  display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 8px;
  padding: 8px 10px; border: none; background: none; border-radius: var(--radius);
  font-size: 13px; color: var(--text); text-align: left; cursor: pointer;
}
.user-menu-item:hover:not(:disabled) { background: var(--surface-hover); }
.user-menu-item:disabled { color: var(--text-faint); cursor: default; }
.user-menu-item.danger { color: var(--red); }
.user-menu-item.danger:disabled { color: var(--text-faint); }
.um-soon {
  font-size: 12px; font-weight: 500; color: var(--text-mute); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 1px 6px; text-transform: lowercase;
}

/* ===== AGENDA (TAKVİM) ===== */
.agenda-month { margin-bottom: 22px; }
.agenda-month-title {
  font-size: 13px; font-weight: 600; color: var(--text-mute); text-transform: capitalize;
  padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid var(--border);
}
/* Ajanda ay başlıkları arasında nefes payı */
.content h2.agenda-month-title { margin-top: 22px; }
.content h2.agenda-month-title:first-of-type { margin-top: 0; }
.agenda-row {
  display: flex; align-items: center; gap: 14px; padding: 10px 8px; border-radius: var(--radius);
}
.agenda-row:hover { background: var(--surface-hover); }
.agenda-row.past { opacity: 0.55; }
.agenda-date { display: flex; flex-direction: column; align-items: center; width: 44px; flex-shrink: 0; }
.agenda-day { font-size: 18px; font-weight: 600; line-height: 1; }
.agenda-dow { font-size: 12px; color: var(--text-mute); text-transform: uppercase; }
.agenda-kind {
  flex-shrink: 0; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: var(--radius);
  text-transform: uppercase; letter-spacing: 0.03em;
}
.agenda-kind.kind-yururluk { background: var(--blue-soft); color: var(--blue); }
.agenda-kind.kind-onemli { background: var(--amber-soft); color: var(--amber); }
.agenda-kind.kind-gorev { background: var(--red-soft); color: var(--red); }
.agenda-title { font-size: 13.5px; color: var(--text); }

/* ===== MONTH CALENDAR (Takvim — ay ızgarası; "mcal-" öneki TrDatePicker'ın .cal-* sınıflarıyla
   çakışmamak içindir) ===== */
.mcal-nav { display: flex; align-items: center; gap: 6px; }
.mcal-month-title {
  font-size: 14.5px; font-weight: 600; min-width: 132px; text-align: center; text-transform: capitalize;
}
.mcal-nav-btn {
  width: 26px; height: 26px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface); font-size: 16px; line-height: 1; color: var(--text-soft);
}
.mcal-nav-btn:hover { background: var(--surface-2); color: var(--text); }
.mcal-legend { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-mute); margin-left: 10px; }

.dot.kind-yururluk { background: var(--blue); }
.dot.kind-onemli { background: var(--amber); }
.dot.kind-gorev { background: var(--red); }
.mcal-legend .dot, .mcal-chip .dot, .mcal-dots .dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; display: inline-block;
}

.mcal { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.mcal-dows { display: grid; grid-template-columns: repeat(7, 1fr); border-bottom: 1px solid var(--border); background: var(--surface-2); }
.mcal-dow {
  padding: 7px 10px; font-family: inherit; font-variant-numeric: tabular-nums; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-mute);
}
.mcal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.mcal-cell {
  min-height: 96px; min-width: 0; padding: 6px 8px; cursor: pointer;
  border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 4px;
}
.mcal-cell:nth-child(7n) { border-right: none; }
.mcal-cell:nth-last-child(-n+7) { border-bottom: none; }
.mcal-cell:hover { background: var(--surface-hover); }
.mcal-cell.weekend { background: var(--bg); }
.mcal-cell.weekend:hover { background: var(--surface-hover); }
.mcal-cell.selected { box-shadow: inset 0 0 0 2px var(--primary); }
.mcal-daynum {
  font-family: inherit; font-variant-numeric: tabular-nums; font-size: 12px; color: var(--text-soft);
  width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center;
}
.mcal-cell.other .mcal-daynum { color: var(--text-faint); }
.mcal-cell.other .mcal-chip { opacity: 0.6; }
.mcal-cell.today .mcal-daynum { background: var(--primary); color: #fff; border-radius: 50%; font-weight: 600; }

.mcal-chips { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mcal-chip { display: flex; align-items: center; gap: 5px; font-size: 12px; line-height: 1.3; padding: 2px 6px; border-radius: var(--radius-sm); min-width: 0; }
.mcal-chip.kind-yururluk { background: var(--blue-soft); color: var(--blue); }
.mcal-chip.kind-onemli { background: var(--amber-soft); color: var(--amber); }
.mcal-chip.kind-gorev { background: var(--red-soft); color: var(--red); }
.mcal-chip-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcal-more { font-size: 12px; color: var(--text-mute); padding-left: 6px; }
.mcal-dots { display: none; gap: 3px; }

/* Seçili günün ayrıntı paneli */
.mcal-day-panel {
  margin-top: 16px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 14px 18px;
}
.mcal-day-title { font-size: 14.5px; font-weight: 600; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.mcal-today-badge {
  font-size: 12px; font-weight: 600; background: var(--primary-soft); color: var(--primary);
  border: 1px solid var(--primary-border); border-radius: var(--radius); padding: 2px 8px;
}
.mcal-day-empty { font-size: 13px; color: var(--text-mute); }
.mcal-day-item { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px dashed var(--border); font-size: 13.5px; }
.mcal-day-text { flex: 1; min-width: 0; }
.mcal-day-link { flex-shrink: 0; font-size: 12px; color: var(--primary); font-weight: 500; white-space: nowrap; }
.mcal-day-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Mobil: hücreler küçülür, metin çipleri yerine tür noktaları; ayrıntı paneli devralır. */
@media (max-width: 768px) {
  .mcal-cell { min-height: 52px; padding: 4px 5px; }
  .mcal-chips, .mcal-more { display: none; }
  .mcal-dots { display: flex; flex-wrap: wrap; }
  .mcal-day-item { flex-wrap: wrap; }
  .mcal-day-link { margin-left: auto; }
  .mcal-legend { margin-left: 0; }
}

/* ===== SETTINGS (AYARLAR) ===== */
.settings-section-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.settings-hint { font-size: 12.5px; color: var(--text-mute); margin-bottom: 16px; max-width: 720px; }
.settings-table { max-width: 720px; }
.settings-table .col-val { width: 220px; }
.settings-table .col-act { width: 1%; white-space: nowrap; }
.settings-label { font-size: 13.5px; font-weight: 500; }
.settings-key { font-size: 12px; color: var(--text-mute); margin-top: 2px; }
.settings-input { width: 200px; padding: 6px 9px; }
.settings-saved { margin-top: 14px; font-size: 12.5px; color: var(--green); }
.settings-error { margin-top: 14px; font-size: 12.5px; color: var(--red); }
.settings-updated { font-size: 12px; color: var(--text-mute); white-space: nowrap; }
.settings-confirm { font-size: 12.5px; color: var(--text-soft); margin-right: 6px; }

/* tarama zamanlaması (Ayarlar) */
.sched-times { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sched-time { display: inline-flex; align-items: center; gap: 4px; }
/* .login-input'un width:100%'ü dosyada sonra geldiğinden iki-sınıf özgüllüğüyle ezilir. */
.sched-times .sched-input {
  width: 76px; padding: 6px 9px; font-family: inherit; font-variant-numeric: tabular-nums; font-size: 12.5px;
  text-align: center;
}
.sched-times .sched-input.sched-input-wide { width: 140px; text-align: left; }

/* parametre dönemi (PBI-43) */
.settings-period { margin-top: 4px; font-size: 12px; color: var(--text-mute); font-variant-numeric: tabular-nums; }
.settings-period-form { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* add-parameter row */
.settings-add-title { margin-top: 28px; }
.settings-add { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; max-width: 720px; }
.settings-input-wide { width: 260px; }

/* parameter update suggestions */
.suggest-count {
  display: inline-block; min-width: 18px; text-align: center; font-size: 12px; font-weight: 600;
  background: var(--amber); color: white; border-radius: var(--radius); padding: 1px 6px; vertical-align: middle;
}
.suggest-card {
  display: flex; align-items: center; gap: 16px; max-width: 720px; margin-bottom: 10px;
  background: var(--amber-soft); border: 1px solid var(--amber-border); border-radius: var(--radius-lg); padding: 12px 14px;
}
.suggest-body { flex: 1; min-width: 0; }
.suggest-title { font-size: 13.5px; font-weight: 600; }
.suggest-change { font-size: 13.5px; margin-top: 3px; }
.suggest-old { color: var(--text-mute); text-decoration: line-through; }
.suggest-arrow { margin: 0 6px; color: var(--text-mute); }
.suggest-new { font-weight: 600; color: var(--green); }
.suggest-date { font-size: 12px; color: var(--text-mute); margin-left: 6px; }
.suggest-source { font-size: 12px; color: var(--text-mute); margin-top: 4px; }
.suggest-actions { display: flex; gap: 6px; flex-shrink: 0; }

/* ===== LOGIN ===== */
.login-wrap { min-height: 100vh; display: grid; place-items: center; background: var(--bg); padding: 24px; }
.login-card {
  width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 28px;
}
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.login-title { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.login-sub { font-size: 12.5px; color: var(--text-mute); }
.login-label { display: block; font-size: 13px; font-weight: 500; color: var(--text-soft); margin: 14px 0 5px; }
.login-input {
  width: 100%; padding: 9px 11px; font-size: 13.5px; border: 1px solid var(--border-strong);
  border-radius: var(--radius); background: var(--surface); color: var(--text);
}
.login-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(34,48,60,0.22); }
.login-btn {
  width: 100%; margin-top: 20px; padding: 10px; font-size: 14px; font-weight: 600; cursor: pointer;
  background: var(--cta); color: white; border: none; border-radius: var(--radius); min-height: 44px;
}
.login-btn:hover { background: var(--cta-hover); }
.login-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.login-error {
  background: var(--red-soft); color: var(--red); border: 1px solid var(--red-border);
  border-radius: var(--radius); padding: 9px 11px; font-size: 12.5px; margin-bottom: 4px;
}
.login-note { margin-top: 16px; font-size: 12px; color: var(--text-mute); text-align: center; }
.login-row { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.login-check { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-soft); cursor: pointer; }
.login-check input { width: 15px; height: 15px; accent-color: var(--primary); cursor: pointer; }
.login-link { font-size: 12.5px; color: var(--primary); font-weight: 500; }
.login-link:hover { text-decoration: underline; }
.login-info {
  background: var(--blue-soft); color: var(--blue); border: 1px solid var(--blue-border);
  border-radius: var(--radius); padding: 11px 13px; font-size: 13px; line-height: 1.5;
}
.invite-link {
  margin-top: 12px; padding: 11px 13px; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 12.5px; color: var(--text-soft); max-width: 760px;
}
.invite-link a { color: var(--primary); font-weight: 500; word-break: break-all; }
.pref-section { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.pref-section.pref-disabled { opacity: 0.5; }
.pref-label { font-size: 12px; font-weight: 600; color: var(--text-soft); margin-bottom: 8px; }
.pref-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 9px 18px; max-width: 560px; }

/* ===== BİLDİRİM TERCİHLERİ ===== */
.npref-master {
  display: flex; align-items: flex-start; gap: 12px; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 14px 16px;
}
.npref-master.on { background: var(--primary-soft); border-color: var(--primary-border); }
/* "Yenilik duyuruları": mevzuat bildirimlerinden ayrı anahtar, form altında kendi satırında. */
.npref-master.npref-announce { margin-top: 20px; }
.npref-master input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--primary); cursor: pointer; }
.npref-master-text b { display: block; font-size: 14px; font-weight: 600; color: var(--text); }
.npref-master-text span { font-size: 12.5px; color: var(--text-mute); line-height: 1.5; }

.npref-how {
  margin-top: 12px; display: flex; align-items: flex-start; gap: 8px;
  background: var(--blue-soft); border: 1px solid var(--blue-border); border-radius: var(--radius);
  padding: 10px 13px; font-size: 12.5px; color: var(--blue); line-height: 1.55;
}
.npref-how .svg-ico { flex-shrink: 0; margin-top: 1px; }

.npref-role {
  display: flex; align-items: flex-start; gap: 12px; cursor: pointer;
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 11px 14px; margin-bottom: 8px;
}
.npref-role:hover { border-color: var(--border-strong); background: var(--surface-hover); }
.npref-role.sel { border-color: var(--primary); background: var(--primary-soft); }
.npref-role input { width: 15px; height: 15px; margin-top: 2px; accent-color: var(--primary); cursor: pointer; }
.npref-role-text b { display: block; font-size: 13.5px; font-weight: 600; color: var(--text); }
.npref-role-text span { font-size: 12px; color: var(--text-mute); line-height: 1.5; }

.npref-warn {
  background: var(--amber-soft); border: 1px solid var(--amber-border); border-radius: var(--radius);
  padding: 9px 13px; font-size: 12.5px; color: var(--amber); margin-top: 2px;
}

.npref-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.npref-chip {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius); padding: 6px 15px; font-size: 12.5px; font-weight: 500;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
/* :not(.sel) özgüllüğü, dosyada sonra gelen .cat-* renk kurallarını seçilmemiş çipte etkisiz kılar. */
.npref-chip:not(.sel) { background: var(--surface); color: var(--text-mute); }
.npref-chip:not(.sel):hover:not(:disabled) { border-color: var(--text-mute); color: var(--text); }
.npref-chip:disabled { opacity: 0.5; cursor: default; }
/* Seçili çip kategori paletine döner (cat-* sınıfları bg/renk verir); kenarlık metin rengini izler. */
.npref-chip.sel.cat-vergi, .npref-chip.sel.cat-sgk, .npref-chip.sel.cat-efatura,
.npref-chip.sel.cat-kvkk, .npref-chip.sel.cat-tesvik, .npref-chip.sel.cat-kgk,
.npref-chip.sel.cat-surdurulebilirlik, .npref-chip.sel.cat-bilgiguvenligi, .npref-chip.sel.cat-rekabet, .npref-chip.sel.cat-tcmb,
.npref-chip.sel.cat-gumruk {
  border-color: currentColor; font-weight: 600;
}
.npref-chip.sel.cat-vergi { background: var(--red-soft); color: var(--red); }
.npref-chip.sel.cat-sgk { background: var(--green-soft); color: var(--green); }
.npref-chip.sel.cat-efatura { background: #f0edf5; color: #5b4b7a; }
.npref-chip.sel.cat-kvkk { background: var(--blue-soft); color: var(--blue); }
.npref-chip.sel.cat-tesvik { background: var(--amber-soft); color: var(--amber); }
.npref-chip.sel.cat-kgk { background: var(--slate-soft); color: var(--slate); }
.npref-chip.sel.cat-surdurulebilirlik { background: #f1f2e6; color: #4f5628; }
.npref-chip.sel.cat-bilgiguvenligi { background: #e6f1f0; color: #1f5753; }
.npref-chip.sel.cat-rekabet { background: #f3eee9; color: #654631; }
.npref-chip.sel.cat-tcmb { background: #eef0f2; color: #38444f; }
.npref-chip.sel.cat-gumruk { background: #f4ecf3; color: #6a3c68; }
.npref-hint { margin-top: 8px; font-size: 12px; color: var(--text-mute); }

/* ===== AUTH SPLIT (login: showcase + form) ===== */
.auth-split { min-height: 100vh; display: grid; grid-template-columns: 1.08fr 0.92fr; }

/* --- showcase (left, brand gradient) --- */
.auth-showcase {
  position: relative; overflow: hidden; color: #fff;
  padding: 48px 52px; display: flex; flex-direction: column; gap: 28px;
  background: linear-gradient(150deg, #1d1c1a 0%, #22303c 60%, #2b3b49 100%);
}
.auth-showcase::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(620px 340px at 88% 6%, rgba(255,255,255,0.06), transparent 60%),
    radial-gradient(520px 340px at 2% 100%, rgba(122,35,51,0.22), transparent 60%);
}
.auth-showcase > * { position: relative; z-index: 1; }

.showcase-top { display: flex; align-items: center; justify-content: space-between; }
.showcase-brand { display: flex; align-items: center; gap: 12px; }
.showcase-brand .sb-mark {
  width: 46px; height: 46px; border-radius: var(--radius); display: grid; place-items: center;
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.16);
}
.showcase-brand .sb-word { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.showcase-brand .sb-word span { color: var(--nav-muted); }
.showcase-tag {
  font-family: inherit; font-variant-numeric: tabular-nums; font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.18); border-radius: var(--radius); padding: 4px 11px;
}

.showcase-mid { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.showcase-headline { font-size: 30px; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; max-width: 17ch; }
.showcase-headline em { font-style: normal; color: var(--nav-muted); }
.showcase-lead { margin-top: 15px; font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.72); max-width: 48ch; }

.showcase-features { display: flex; flex-direction: column; gap: 16px; margin-top: 30px; }
.sc-feat { display: flex; gap: 14px; align-items: flex-start; }
.sc-feat-ico {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: var(--radius); display: grid; place-items: center;
  background: rgba(255,255,255,0.09); border: 1px solid rgba(255,255,255,0.15); color: var(--nav-muted);
}
.sc-feat-ico svg { width: 20px; height: 20px; }
.sc-feat-body h3 { font-size: 14.5px; font-weight: 600; margin-bottom: 3px; letter-spacing: -0.01em; }
.sc-feat-body p { font-size: 12.5px; line-height: 1.5; color: rgba(255,255,255,0.66); max-width: 44ch; }

.showcase-foot { display: flex; flex-direction: column; gap: 12px; }
.showcase-live { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: rgba(255,255,255,0.72); }
/* Vitrin AI sayacı — canlı toplam; statik slogan değil. */
.showcase-ai-stat { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: rgba(255,255,255,0.72); }
.showcase-ai-stat .svg-ico { width: 14px; height: 14px; flex-shrink: 0; color: var(--nav-muted); }
.showcase-ai-stat b { color: #ffffff; font-weight: 600; }
.showcase-live .dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; animation: pulse 2s infinite; }
.showcase-sources { display: flex; flex-wrap: wrap; gap: 8px; }
.sc-src {
  font-family: inherit; font-variant-numeric: tabular-nums; font-size: 12px; letter-spacing: 0.02em; padding: 4px 11px;
  border-radius: var(--radius); color: rgba(255,255,255,0.82);
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15);
}

/* --- form panel (right) --- */
.auth-form-panel { display: grid; place-items: center; padding: 40px 24px; background: var(--bg); }
.auth-form { width: 100%; max-width: 372px; }
.af-brandbar { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.af-word { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.af-title { font-size: 23px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 6px; }
.af-sub { font-size: 13px; color: var(--text-mute); margin-bottom: 6px; }
.auth-form .login-note { text-align: left; }

@media (max-width: 960px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-showcase { display: none; }
  .auth-form-panel { min-height: 100vh; }
}

/* ===== COMPLIANCE BANNER ===== */
/* İnce bordo üst kenar — uygulamanın tamamında (2026-10-24: eski mor gradient yerine). */
.top-nav {
  border-top: 3px solid var(--cta);
}

/* ===== ADMIN AREA (Yönetim bağlamı) ===== */
/* Yönetim rotalarında iki sinyal: pastel breadcrumb şeridi ve gradient dolgulu Yönetim düğmesi —
   kullanıcı operatör panelinde olduğunu her an görür. Bilgilendirme bandı bu ekranlarda gizlenir. */
.admin-context-bar {
  background: var(--primary-soft); border-bottom: 1px solid var(--primary-border);
  color: var(--primary-hover); padding: 0 24px; height: 42px;
  display: flex; align-items: center; gap: 10px; font-size: 13px;
}
.admin-context-bar .acb-ico { width: 16px; height: 16px; color: var(--primary); flex-shrink: 0; }
.admin-context-bar .acb-label {
  font-family: inherit; font-variant-numeric: tabular-nums; font-size: 12px; letter-spacing: 0.14em;
  color: var(--primary); font-weight: 600;
}
.admin-context-bar .acb-sep { color: var(--border-strong); }
.admin-context-bar .acb-section { color: var(--text); font-weight: 600; font-size: 14px; }
.admin-context-bar .acb-back { margin-left: auto; color: var(--text-mute); font-size: 12.5px; text-decoration: none; }
.admin-context-bar .acb-back:hover { color: var(--primary-hover); text-decoration: underline; text-underline-offset: 3px; }

/* Admin sayfa gövdesi: hafif gri-lacivert zemin. (64 nav + 3 kenar + 42 şerit = 109) */
.admin-area { background: #eeece7; min-height: calc(100vh - 109px); }
.admin-area .page-header { background: #f6f4f0; }

/* Yönetim menü düğmesi, admin alanındayken gradient dolgulu görünür. */
.nav-user-trigger.admin.on {
  background: var(--primary);
  border-color: var(--primary); color: #ffffff;
}
.nav-user-trigger.admin.on .name { color: #ffffff; }
.nav-user-trigger.admin.on .admin-menu-icon { color: rgba(255,255,255,0.8); }
.nav-user-trigger.admin.on .nav-user-chevron { color: rgba(255,255,255,0.7); }

.compliance-banner {
  background: var(--blue-soft); border-bottom: 1px solid var(--blue-border);
  padding: 8px 24px; display: flex; align-items: center; gap: 10px;
  font-size: 12.5px; color: var(--blue);
}
.compliance-banner strong { font-weight: 600; }

/* ===== PAGE HEADER ===== */
.page-header { background: var(--surface); padding: 24px var(--page-gutter) 0; border-bottom: 1px solid var(--border); }
.page-header-top { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; gap: 20px; }
.page-title-block h1 { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 4px; }
.page-meta { display: flex; align-items: center; gap: 14px; font-size: 12.5px; color: var(--text-mute); flex-wrap: wrap; }
.live-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px 2px 6px;
  background: var(--green-soft); border: 1px solid var(--green-border); border-radius: var(--radius);
  font-size: 12px; color: var(--green); font-weight: 500;
}
.live-pill .dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
/* Meta satırındaki AI rozeti — içeriğin yapay zekâ analiziyle üretildiğini sürekli görünür kılar. */
.ai-pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px 2px 7px;
  background: var(--primary-soft); border: 1px solid var(--primary-border); border-radius: var(--radius);
  font-size: 12px; color: var(--primary-hover); font-weight: 500;
}
.ai-pill .svg-ico { width: 11px; height: 11px; flex-shrink: 0; }
.meta-sep { color: var(--text-faint); margin: 0 2px; }

.page-actions { display: flex; gap: 8px; }
.btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; font-size: 13px;
  font-weight: 500; border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); line-height: 1;
}
.btn:hover { background: var(--surface-2); }
.btn-primary { background: var(--cta); color: white; border-color: var(--cta); }
.btn-primary:hover { background: var(--cta-hover); border-color: var(--cta-hover); }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-soft); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-approve { background: var(--green); color: #fff; border-color: var(--green); }
.btn-approve:hover { filter: brightness(0.95); }
/* Müvekkile Bildir — ürünün öne çıkan aksiyonu; kart altında gözden kaçmasın. */
.btn-template { background: var(--primary-soft); border-color: var(--primary-border); color: var(--primary-hover); font-weight: 600; }
.btn-template:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-template:disabled { background: var(--surface-2); border-color: var(--border); color: var(--text-faint); font-weight: 500; cursor: not-allowed; }
.btn-template .svg-ico { width: 14px; height: 14px; }

/* ===== STATS ===== */
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border); margin: 0 calc(-1 * var(--page-gutter)); padding: 0 var(--page-gutter);
}
.stat-cell { padding: 16px 0; border-right: 1px solid var(--border); padding-right: 20px; margin-right: 20px; }
.stat-cell:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.stat-label {
  font-family: inherit; font-variant-numeric: tabular-nums; font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--text-mute); font-weight: 500;
}
.stat-row { display: flex; align-items: baseline; gap: 10px; margin-top: 6px; }
.stat-num { font-size: 28px; font-weight: 600; letter-spacing: -0.025em; line-height: 1; }
.stat-num.danger { color: var(--red); }
.stat-num.warn { color: var(--amber); }
.stat-sub { font-size: 12px; color: var(--text-mute); margin-top: 4px; }

/* ===== TOOLBAR ===== */
.toolbar {
  background: var(--surface); padding: 10px var(--page-gutter); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.toolbar-label {
  font-family: inherit; font-variant-numeric: tabular-nums; font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-mute); margin-right: 4px; font-weight: 500;
}
/* Etiketler hiçbir genişlikte kırılmaz; grup sığmazsa kendi içinde kayar (Ham Dokümanlar'da 12 kaynak var). */
.filter-group { display: flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 2px; gap: 1px; max-width: 100%; overflow-x: auto; scrollbar-width: thin; }
.filter-btn {
  padding: 4px 10px; background: transparent; border: none; color: var(--text-soft);
  font-size: 12.5px; font-weight: 500; border-radius: var(--radius-sm); white-space: nowrap; flex-shrink: 0;
}
.filter-btn:hover { color: var(--text); }
.filter-btn.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-xs); }
.filter-btn .count { font-family: inherit; font-variant-numeric: tabular-nums; font-size: 12px; color: var(--text-mute); margin-left: 5px; }
.toolbar-divider { width: 1px; height: 22px; background: var(--border); margin: 0 4px; }

/* Kategori alt filtresi (Vergi → belge türü): ana çubuğun altında ince ikinci satır. Zemin ana
   çubuktan bir ton koyu — "Kategori"ye bağlı olduğu okunur, ayrı bir filtre sırası gibi durmaz. */
.toolbar-sub { padding-top: 8px; padding-bottom: 8px; background: color-mix(in srgb, var(--surface) 55%, var(--bg)); }
.filter-group-sep { width: 1px; align-self: stretch; margin: 3px 3px; background: var(--border); flex-shrink: 0; }
.filter-btn.other { color: var(--text-mute); display: inline-flex; align-items: center; }
.filter-btn.other:hover, .filter-btn.other.active { color: var(--text); }
.filter-btn .kind-chevron { width: 11px; height: 11px; margin-left: 4px; color: var(--text-mute); }
.filter-btn[aria-expanded="true"] .kind-chevron { transform: rotate(180deg); }
/* Menü grubun DIŞINDA, bu sarmalayıcıya göre konumlanır: grup overflow-x ile kayar, içindeki açılır liste kırpılırdı. */
.kind-filter { position: relative; display: flex; max-width: 100%; min-width: 0; }
.kind-menu-backdrop { position: fixed; inset: 0; z-index: 40; }
.kind-menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 41; min-width: 200px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 4px; animation: um-pop 0.12s ease-out;
}
.kind-menu-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  padding: 7px 10px; border: none; background: none; border-radius: var(--radius);
  font-size: 12.5px; font-weight: 500; color: var(--text-soft); text-align: left; cursor: pointer;
}
.kind-menu-item:hover { background: var(--surface-hover); color: var(--text); }
.kind-menu-item.active { color: var(--primary); }
.kind-menu-item .count { font-family: inherit; font-variant-numeric: tabular-nums; font-size: 12px; color: var(--text-mute); }
.kind-menu-sep { height: 1px; background: var(--border); margin: 4px 2px; }
.toolbar-spacer { flex: 1; }
.toolbar-hint { font-size: 12px; color: var(--text-mute); }

/* Loglar: satır bazlı "Çözüldü" hücresi — dar ekranda tabloyu taşırmasın diye dikey istif.
   btn-resolve yeşil "kapat" dili taşır ama btn-approve (yayınla/onayla) DEĞİLDİR — ayrı aile. */
.col-resolve { white-space: nowrap; }
.resolve-cell { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.btn-resolve { background: var(--green-soft); border-color: var(--green-border); color: var(--green); font-weight: 500; }
.btn-resolve:hover { background: var(--green); border-color: var(--green); color: #fff; }
.btn-resolve-all { background: transparent; border-color: var(--border-strong); color: var(--text-soft); }
.btn-resolve-all:hover { background: var(--green-soft); border-color: var(--green-border); color: var(--green); }
.resolve-cell .svg-ico { width: 12px; height: 12px; }

/* Toolbar tarih aralığı (DateRangeFilter + TrDatePicker) — filtre grubuyla aynı yüzey dili. */
.toolbar-daterange { display: flex; align-items: center; gap: 4px; }
.daterange-sep { color: var(--text-faint); font-size: 12px; }
.daterange-clear {
  display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px;
  border: none; border-radius: var(--radius-sm); background: transparent; color: var(--text-mute); font-size: 12px;
}
.daterange-clear:hover { background: var(--surface-2); color: var(--text); }

.tr-datepicker { position: relative; display: flex; align-items: center; }
.tr-datepicker input {
  width: 108px; padding: 4px 26px 4px 7px; font-size: 12px; font-family: inherit; font-variant-numeric: tabular-nums;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2);
  color: var(--text); outline: none; transition: border-color 0.15s, background 0.15s;
}
.tr-datepicker input::placeholder { color: var(--text-faint); }
.tr-datepicker input:focus { border-color: var(--primary); background: var(--surface); }
.tr-datepicker-toggle {
  position: absolute; right: 4px; display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border: none; border-radius: var(--radius-sm); background: transparent;
  color: var(--text-mute);
}
.tr-datepicker-toggle:hover { background: var(--surface); color: var(--primary); }
.tr-datepicker-toggle .svg-ico { width: 13px; height: 13px; }
.tr-datepicker-pop {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 41; width: 238px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 10px; animation: um-pop 0.12s ease-out;
}
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-title { font-size: 12.5px; font-weight: 600; color: var(--text); }
.cal-nav {
  display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px;
  border: none; border-radius: var(--radius-sm); background: transparent; color: var(--text-mute); font-size: 15px; line-height: 1;
}
.cal-nav:hover { background: var(--surface-2); color: var(--text); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; }
.cal-dow {
  text-align: center; padding: 2px 0 5px; font-family: inherit; font-variant-numeric: tabular-nums;
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-faint);
}
.cal-day {
  height: 27px; border: none; border-radius: var(--radius-sm); background: transparent;
  font-size: 12px; font-family: inherit; font-variant-numeric: tabular-nums; color: var(--text);
}
.cal-day:hover:not(:disabled) { background: var(--surface-2); }
.cal-day.other { color: var(--text-faint); }
.cal-day.today { box-shadow: inset 0 0 0 1px var(--primary); }
.cal-day.selected { background: var(--primary); color: #fff; }
.cal-day.selected:hover:not(:disabled) { background: var(--primary-hover); }
.cal-day:disabled { color: var(--text-faint); opacity: 0.45; cursor: not-allowed; }

/* Transient action feedback (e.g. "AI işlemesi kuyruğa alındı"). */
.flash {
  margin: 12px var(--page-gutter) 0; padding: 9px 14px; border-radius: var(--radius-sm); font-size: 13px;
  background: var(--green-soft); color: var(--green); border: 1px solid var(--green-border);
}
.flash.error { background: var(--red-soft); color: var(--red); border-color: var(--red-border); }

/* ===== CONTENT / CARD ===== */
/* İçerik ortalı sütunda (Kemal kararı 2026-10-20): 1400 px geniş ekranda dar kalıyordu, tam
   genişlik ise kart metnini okunmaz uzunlukta satırlara yayıyordu. Başlık ve filtre çubuğu tam
   genişlikte kalır; içerik 1760 px'e kadar büyüyüp ortalanır. */
.content { padding: 24px var(--page-gutter); max-width: 1760px; margin: 0 auto; }
.empty-state { padding: 60px 20px; text-align: center; color: var(--text-mute); }

/* ===== RAW DOCUMENTS TABLE ===== */
.raw-table {
  width: 100%; border-collapse: collapse; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
}
.raw-table thead th {
  text-align: left; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--text-mute); padding: 11px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border);
}
.raw-table tbody td { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 13.5px; vertical-align: top; }
.raw-table tbody tr:last-child td { border-bottom: none; }
.raw-table tbody tr:hover { background: var(--surface-hover); }
.raw-table .mono { font-family: inherit; font-variant-numeric: tabular-nums; font-size: 12px; color: var(--text-mute); white-space: nowrap; }
.raw-table .col-date { width: 1%; white-space: nowrap; }
.raw-table .col-src { width: 1%; white-space: nowrap; }
.raw-table .col-status { width: 1%; white-space: nowrap; }
.raw-table .col-num { width: 1%; white-space: nowrap; text-align: right; }
.raw-title { color: var(--text); font-weight: 500; line-height: 1.4; }
.raw-title:hover { color: var(--primary); }
.raw-error { margin-top: 4px; font-size: 12px; color: var(--red); }
.raw-primary { margin-top: 4px; font-size: 12px; color: var(--text-mute); overflow-wrap: anywhere; }
.raw-primary a { color: var(--primary); }

/* ===== SIRALAMA =====
   Kart akışlarında açılır liste (SortSelect), tablolarda tıklanabilir sütun başlığı
   (SortableHeader). Araç çubuğundaki filtre gruplarıyla aynı yükseklik ve ton. */
.sort-select { display: inline-flex; align-items: center; gap: 6px; }
.sort-select .toolbar-label { margin-right: 0; }
.sort-input-wrap { position: relative; display: inline-flex; align-items: center; }
.sort-input {
  appearance: none; -webkit-appearance: none;
  padding: 4px 26px 4px 10px; font-family: inherit; font-size: 12.5px; font-weight: 500;
  color: var(--text); background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); line-height: 1.5; cursor: pointer;
}
.sort-input:hover:not(:disabled) { background: var(--surface-hover); border-color: var(--border-strong); }
.sort-input:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.sort-input:disabled { opacity: 0.5; cursor: default; }
.sort-chevron {
  position: absolute; right: 8px; width: 12px; height: 12px;
  color: var(--text-mute); pointer-events: none;
}

.raw-table thead th:has(.th-sort) { padding: 0; }
.th-sort {
  display: inline-flex; align-items: center; gap: 5px; width: 100%;
  padding: 11px 16px; background: transparent; border: none;
  font-family: inherit; font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--text-mute); text-align: left; white-space: nowrap;
}
.th-sort:hover:not(:disabled) { color: var(--text); background: var(--surface-hover); }
.th-sort:disabled { cursor: default; }
.th-arrow { width: 12px; height: 12px; color: var(--primary); flex-shrink: 0; }
.th-arrow.asc { transform: rotate(180deg); }

/* ===== SAYFALAMA =====
   İki desen: kart akışlarında "Daha fazla göster" (LoadMore), tablolarda numaralı sayfalama
   (Pager). İkisi de listenin altında, içerikten ince bir çizgiyle ayrılır. */
.load-more {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border);
}
.load-more.end { padding-top: 14px; margin-top: 16px; }
.load-more-btn { padding: 8px 16px; }
.load-more-btn .svg-ico { width: 14px; height: 14px; }
.load-more-rest {
  font-size: 12px; color: var(--text-mute); background: var(--surface-2);
  border-radius: var(--radius); padding: 1px 7px; margin-left: 2px;
}
.load-more-btn:hover .load-more-rest { color: var(--text-soft); }
.load-more-meta { font-size: 12px; color: var(--text-faint); }

.pager {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border);
}
.pager-info { font-size: 12px; color: var(--text-mute); }
.pager-info .mono { font-size: 12px; color: var(--text-soft); }
.pager-nav { display: flex; align-items: center; gap: 3px; }
.pager-btn {
  min-width: 30px; height: 30px; padding: 0 8px; display: inline-flex; align-items: center;
  justify-content: center; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-soft); font-size: 12.5px; font-weight: 500;
  font-family: inherit; font-variant-numeric: tabular-nums;
}
.pager-btn:hover:not(:disabled) { background: var(--surface-2); color: var(--text); border-color: var(--border-strong); }
.pager-btn:disabled { opacity: 0.4; cursor: default; }
.pager-btn.active {
  background: var(--primary); border-color: var(--primary); color: #fff;
}
.pager-btn.active:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.pager-btn .svg-ico { width: 14px; height: 14px; }
.pager-gap { padding: 0 2px; color: var(--text-faint); font-size: 12px; }

/* Loglar ekranı: satır içinde açılır istisna ayrıntısı. */
.log-exception { margin-top: 6px; }
.log-exception summary { font-size: 12px; color: var(--red); cursor: pointer; user-select: none; }
.log-exception pre {
  margin: 6px 0 0; padding: 10px 12px; max-height: 320px; overflow: auto;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
  font-family: inherit; font-variant-numeric: tabular-nums; font-size: 12px; line-height: 1.5; white-space: pre-wrap;
}
.status-badge.failed { background: var(--red-soft); color: var(--red); border: 1px solid var(--red-border); }
.status-badge.muted { background: var(--surface-2); color: var(--text-mute); border: 1px solid var(--border); }

.item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  margin-bottom: 14px; overflow: hidden; transition: all 0.15s;
}
.item:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }


.item-head { padding: 16px 20px 14px; }
.item-meta-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; font-size: 12px; color: var(--text-mute); }

.cat-badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 600; text-transform: uppercase; line-height: 1; white-space: nowrap;
}
.cat-badge .sq { width: 6px; height: 6px; border-radius: 1px; }
.cat-vergi { background: var(--red-soft); color: var(--red); } .cat-vergi .sq { background: var(--red); }
.cat-sgk { background: var(--green-soft); color: var(--green); } .cat-sgk .sq { background: var(--green); }
.cat-efatura { background: #f0edf5; color: #5b4b7a; } .cat-efatura .sq { background: #6b5b8f; }
.cat-kvkk { background: var(--blue-soft); color: var(--blue); } .cat-kvkk .sq { background: var(--blue); }
.cat-tesvik { background: var(--amber-soft); color: var(--amber); } .cat-tesvik .sq { background: var(--amber); }
.cat-kgk { background: var(--slate-soft); color: var(--slate); } .cat-kgk .sq { background: var(--slate); }
.cat-surdurulebilirlik { background: #f1f2e6; color: #4f5628; } .cat-surdurulebilirlik .sq { background: #4f5628; }
.cat-bilgiguvenligi { background: #e6f1f0; color: #1f5753; } .cat-bilgiguvenligi .sq { background: #1f5753; }
.cat-rekabet { background: #f3eee9; color: #654631; } .cat-rekabet .sq { background: #654631; }
.cat-tcmb { background: #eef0f2; color: #38444f; } .cat-tcmb .sq { background: #38444f; }
.cat-gumruk { background: #f4ecf3; color: #6a3c68; } .cat-gumruk .sq { background: #6a3c68; }
/* Kategori + belge türü tek parça rozet ("VERGİ | Özelge", ürün kararı 2026-10-20). Tür bugün
   yalnız Vergi kartında basılıyor; başka kategoriye açılırsa kuyruk o kategorinin tonunu almalı. */
.cat-kind { display: inline-flex; align-items: stretch; }
.cat-kind .cat-badge { border-radius: 4px 0 0 4px; border: 1px solid var(--red-border); border-right: 0; }
.kind-tail {
  display: inline-flex; align-items: center; padding: 0 8px; border: 1px solid var(--red-border); border-left: 0;
  border-radius: 0 4px 4px 0; background: var(--surface); color: var(--red); font-size: 12px; font-weight: 500; line-height: 1; white-space: nowrap;
}

.role-pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px;
  background: var(--slate-soft); color: var(--slate); border-radius: var(--radius); font-size: 12px; font-weight: 500;
  white-space: nowrap;
}


/* Rozet ve etiketler hiçbir genişlikte kırılmaz (2026-10-20): dar tablo hücresinde "ÜYELİK
   BEKLENİYOR", "Firma Yöneticisi" iki satıra kayıyordu. */
.status-badge { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; padding: 2px 8px; border-radius: var(--radius); white-space: nowrap; }
.status-badge.draft { background: var(--amber-soft); color: var(--amber); border: 1px solid var(--amber-border); }
.status-badge.published { background: var(--green-soft); color: var(--green); border: 1px solid var(--green-border); }

.item-title { font-size: 17px; font-weight: 600; letter-spacing: -0.018em; margin-bottom: 8px; line-height: 1.3; }
.item-summary { font-size: 13.5px; line-height: 1.55; color: var(--text-soft); max-width: 880px; }

/* Akordeon kart: başlık satırı tıklanabilir; kapalıyken özet tek satıra kırpılır. */
.item-head { cursor: pointer; }
.item-head:hover .item-title { color: var(--primary); }
.item-head-row { display: flex; align-items: flex-start; gap: 14px; }
.item-head-main { flex: 1; min-width: 0; }
.item-head-side { display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-top: 2px; }
.item-chevron { width: 16px; height: 16px; color: var(--text-mute); transition: transform 0.15s; }
.item-chevron.up { transform: rotate(180deg); }
.item-head.collapsed .item-meta-row { margin-bottom: 6px; }
.item-head.collapsed .item-title { font-size: 15px; margin-bottom: 4px; }
.item-head.collapsed .item-summary {
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.item-source-line {
  margin-top: 12px; display: flex; align-items: center; gap: 10px;
  font-family: inherit; font-variant-numeric: tabular-nums; font-size: 12px; color: var(--text-mute); flex-wrap: wrap;
}
.item-source-line a { color: var(--primary); font-weight: 500; border-bottom: 1px solid transparent; }
.item-source-line a:hover { border-bottom-color: var(--primary); }
.dot-sep { color: var(--text-faint); }
.used-params {
  margin-top: 10px; display: flex; align-items: flex-start; gap: 7px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 8px 11px; font-size: 12px; color: var(--text-soft); line-height: 1.45; max-width: 880px;
}
.used-params .svg-ico { width: 13px; height: 13px; flex-shrink: 0; margin-top: 1px; color: var(--text-mute); }

/* ===== AI İMZASI + ŞEFFAFLIK PANELİ ===== */
/* Kart içeriğinin yapay zekâ üretimi olduğunu söyleyen rozet; tıklayınca "nasıl üretildi?" açılır. */
.ai-sig {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px 2px 7px;
  background: var(--primary-soft); border: 1px solid var(--primary-border); border-radius: var(--radius);
  color: var(--primary-hover); font-family: 'Plus Jakarta Sans', sans-serif; font-size: 12px; font-weight: 600;
  line-height: 1.5;
}
.ai-sig .svg-ico { width: 11px; height: 11px; flex-shrink: 0; }
.ai-sig:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.ai-modal { max-width: 520px; }
.ai-info-lead { font-size: 13px; color: var(--text-soft); line-height: 1.6; margin: 0 0 14px; }
.ai-info-grid {
  display: flex; flex-direction: column; border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 14px;
}
.ai-info-row { display: flex; gap: 12px; padding: 9px 13px; font-size: 12.5px; background: var(--surface); }
.ai-info-row + .ai-info-row { border-top: 1px solid var(--border); }
.ai-info-row .k { width: 108px; flex-shrink: 0; color: var(--text-mute); }
.ai-info-row .v { color: var(--text); }
.ai-info-row .v.mono { font-family: inherit; font-variant-numeric: tabular-nums; font-size: 12px; align-self: center; }
.ai-info-note { font-size: 12px; color: var(--text-faint); line-height: 1.55; margin: 0; }

/* ===== TABS ===== */
.item-tabs-wrap { background: var(--surface-2); border-top: 1px solid var(--border); }
/* Ayırıcı çizgi border değil İÇ GÖLGE: border + çocukta -1px margin hilesi, overflow-x:auto ile
   1px dikey taşma yaratıp Windows'ta oklu dikey scrollbar çıkarıyordu. İç gölge çocukların
   ALTINA boyanır — aktif sekmenin çizgisi ayırıcıyı yine örter, taşma oluşmaz. */
.item-tabs { display: flex; padding: 0 20px; box-shadow: inset 0 -1px 0 var(--border); overflow-x: auto; }
.item-tab {
  padding: 11px 14px; background: none; border: none; font-size: 12.5px; font-weight: 500;
  color: var(--text-mute); border-bottom: 2px solid transparent;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.item-tab:hover { color: var(--text); }
.item-tab.active { color: var(--text); border-bottom-color: var(--primary); }
.item-tab .tab-count {
  background: var(--surface); border: 1px solid var(--border); color: var(--text-mute);
  font-family: inherit; font-variant-numeric: tabular-nums; font-size: 12px; padding: 1px 6px; border-radius: var(--radius);
  font-weight: 500; min-width: 20px; text-align: center;
}
.item-tab.active .tab-count { background: var(--primary); color: white; border-color: var(--primary); }
.item-tab-content { padding: 18px 20px; }

/* ===== CHECKLIST ===== */
.task-list { display: flex; flex-direction: column; gap: 2px; }
.task-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm); cursor: pointer; }
.task-row:hover { background: var(--surface); }
.task-checkbox { width: 16px; height: 16px; border: 1.5px solid var(--border-strong); border-radius: 3px; flex-shrink: 0; position: relative; }
.task-row:hover .task-checkbox { border-color: var(--text); }
.task-row.done .task-checkbox { background: var(--green); border-color: var(--green); }
.task-row.done .task-checkbox::after {
  content: ''; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px;
  border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.task-text { flex: 1; font-size: 13.5px; color: var(--text); }
.task-row.done .task-text { color: var(--text-mute); text-decoration: line-through; }
.task-due {
  display: inline-flex; align-items: center; font-family: inherit; font-variant-numeric: tabular-nums; font-size: 12px;
  padding: 2px 7px; background: var(--red-soft); color: var(--red); border-radius: 3px; font-weight: 500; flex-shrink: 0;
}
.task-due.warn { background: var(--amber-soft); color: var(--amber); }
.task-due.normal { background: var(--surface-2); color: var(--text-soft); }
.task-role {
  flex-shrink: 0; font-size: 12px; color: var(--text-mute); font-family: inherit; font-variant-numeric: tabular-nums;
  text-transform: uppercase; letter-spacing: 0.05em; padding: 2px 6px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 3px;
}

/* Görevlerim grupları: mevzuat.css → "Görevlerim" bloğu (2026-11-03, Mevzuat ekranı diliyle). */

/* Kart Yapılacaklar sekmesi: sağ üstte toplu tamamlama */
.task-list-head { display: flex; justify-content: flex-end; margin-bottom: 6px; }

/* Firması olmayan hesap (operatör): görev işaretleme kilitli — tıklanabilir görünmesin. */
.task-row.readonly { cursor: default; }
.task-row.readonly:hover { background: transparent; }
.task-row.readonly .task-checkbox { opacity: 0.45; }
.task-row.readonly:hover .task-checkbox { border-color: var(--border-strong); }


/* Pano: tarih tipli metrik ve metrik altı köprü */
.stat-num.stat-date { font-size: 21px; line-height: 1.3; }
.stat-num.warn { color: var(--amber); }
.stat-link { color: var(--primary); font-weight: 500; }
.stat-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Tıklanabilir metrik hücresi: listeyi o metriğin mevzuatlarına süzer; aktifken alt vurgu çubuğu. */
.stat-cell.clickable { cursor: pointer; }
.stat-cell.clickable:hover .stat-label { color: var(--primary); }
.stat-cell.on { box-shadow: inset 0 -3px 0 var(--primary); }
.stat-cell.on .stat-label { color: var(--primary); }

/* Aktif metrik filtresinin araç çubuğundaki kaldırma çipi */
.metric-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px;
  background: var(--primary-soft); border: 1px solid var(--primary-border); border-radius: var(--radius);
  color: var(--primary-hover); font-size: 12px; font-weight: 500;
}
.metric-chip:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.metric-chip .x { font-size: 13px; line-height: 1; }

/* ===== COMPARISON TABLE ===== */
.compare-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.compare-table th {
  text-align: left; padding: 10px 14px; background: var(--surface); border: 1px solid var(--border);
  font-family: inherit; font-variant-numeric: tabular-nums; font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-mute); font-weight: 600;
}
.compare-table td { padding: 11px 14px; border: 1px solid var(--border); background: var(--surface); }
.compare-table td.label { background: var(--surface-2); font-weight: 500; }
.compare-table .old-val { color: var(--text-mute); text-decoration: line-through; font-family: inherit; font-variant-numeric: tabular-nums; font-size: 12.5px; }
.compare-table .new-val { color: var(--green); font-weight: 600; font-family: inherit; font-variant-numeric: tabular-nums; font-size: 12.5px; }

/* ===== RISK / PENALTY ===== */
.risk-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.risk-item {
  background: var(--amber-soft); border: 1px solid var(--amber-border); border-radius: var(--radius-sm);
  padding: 11px 14px; display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: #78350f; line-height: 1.55;
}
.risk-item .ico { flex-shrink: 0; color: var(--amber); margin-top: 1px; }
.penalty-item {
  background: var(--red-soft); border: 1px solid var(--red-border); border-radius: var(--radius-sm);
  padding: 12px 14px; display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: #881337; line-height: 1.6;
}
.penalty-item .ico { flex-shrink: 0; color: var(--red); margin-top: 1px; }
.penalty-item strong { font-weight: 600; }

/* ===== APPLICATION / CALC ===== */
.application-block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 10px; }
.application-block .label {
  font-family: inherit; font-variant-numeric: tabular-nums; font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-mute); font-weight: 600; margin-bottom: 6px;
}
.application-block .text { font-size: 13.5px; color: var(--text); line-height: 1.6; }
.application-block ol { padding-left: 22px; font-size: 13.5px; color: var(--text); }
.application-block ol li { margin-bottom: 6px; line-height: 1.55; }

.calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.calc-cell { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; }
.calc-cell .clabel {
  font-family: inherit; font-variant-numeric: tabular-nums; font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-mute); margin-bottom: 6px; font-weight: 500;
}
.calc-cell .cval { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.calc-cell .cval.green { color: var(--green); }
.calc-cell .csub { font-size: 12px; color: var(--text-mute); margin-top: 4px; }

.related-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.related-list li { font-size: 13px; line-height: 1.5; }
.related-name { font-weight: 500; color: var(--text); }
.related-reason { color: var(--text-mute); }

/* ===== CARD FOOTER ===== */
.item-foot { padding: 12px 20px; background: var(--surface); border-top: 1px solid var(--border); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.progress-block { margin-left: auto; display: flex; align-items: center; gap: 8px; font-family: inherit; font-variant-numeric: tabular-nums; font-size: 12px; color: var(--text-mute); }
.progress-bar { width: 100px; height: 4px; background: var(--surface-2); border-radius: 2px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--green); transition: width 0.3s; }

.svg-ico { width: 14px; height: 14px; flex-shrink: 0; }

@media (max-width: 900px) {
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stat-cell:nth-child(2n) { border-right: none; }
  .nav-tabs { overflow-x: auto; }
}

/* ===== ADMIN (YÖNETİM) ===== */
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-user-trigger.admin { padding: 5px 12px; }
.admin-menu-icon { width: 15px; height: 15px; color: var(--text-soft); }
.user-menu-label {
  font-family: inherit; font-variant-numeric: tabular-nums; font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--text-faint); padding: 6px 10px 4px;
}

.admin-eyebrow {
  font-family: inherit; font-variant-numeric: tabular-nums; font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-faint); margin-bottom: 7px;
  display: inline-flex; align-items: center; gap: 6px;
}

.admin-form-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs); padding: 18px 20px; margin-bottom: 22px; max-width: 760px;
}
.afc-title { font-size: 13.5px; font-weight: 600; margin-bottom: 14px; }
.afc-hint { font-size: 12px; color: var(--text-mute); line-height: 1.55; margin: -6px 0 14px; }
/* Formda düzenlenemeyen bilgi satırı (ör. Profil'de e-posta) — input değil, düz metin. */
.field-static { font-size: 13.5px; color: var(--text-soft); padding: 2px 2px 0; line-height: 1.4; }
.profile-name { max-width: 380px; margin-top: 14px; }
.afc-row { display: flex; align-items: flex-end; gap: 12px; }
.afc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.afc-actions { display: flex; justify-content: flex-end; margin-top: 16px; }

/* Yönetim bölümü sekmeleri — page-header'ın alt kenarına oturur (üst gezinti şeridiyle aynı dil). */
.admin-tabs { display: flex; gap: 2px; margin-bottom: -1px; flex-wrap: wrap; }
.admin-tab {
  padding: 8px 14px; font-size: 13px; font-weight: 500; color: var(--text-soft);
  text-decoration: none; border-bottom: 2px solid transparent;
}
.admin-tab:hover { color: var(--text); }
.admin-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* Tarama Kaynakları — kaynak başına bir kart, altında ziyaret edilen adresler. */
.source-card { max-width: 860px; }
.source-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.source-card-head .afc-title { margin-bottom: 0; }
.source-endpoints { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.source-endpoints li {
  display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 12px; align-items: baseline;
  padding: 8px 10px; background: var(--surface-2); border-radius: var(--radius-sm);
}
.source-endpoint-label { font-size: 12.5px; font-weight: 500; color: var(--text-soft); }
.source-endpoint-url { font-size: 12px; color: var(--text-mute); overflow-wrap: anywhere; }
a.source-endpoint-url { color: var(--primary); text-decoration: none; }
a.source-endpoint-url:hover { text-decoration: underline; }
.source-note {
  font-size: 12px; color: var(--text-mute); line-height: 1.55; margin: 14px 0 0;
  padding-left: 10px; border-left: 2px solid var(--border);
}
@media (max-width: 720px) {
  .source-endpoints li { grid-template-columns: minmax(0, 1fr); gap: 3px; }
}
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field { flex: 1; }
.field > label { font-size: 12px; font-weight: 500; color: var(--text-soft); }
.field .login-input { width: 100%; }

.admin-table { width: 100%; max-width: 980px; }
.admin-table .cell-strong { font-weight: 500; color: var(--text); }
.admin-table .col-act { width: 1%; white-space: nowrap; }
.admin-table tbody td { vertical-align: middle; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.count-pill {
  display: inline-block; min-width: 26px; text-align: center; white-space: nowrap;
  font-family: inherit; font-variant-numeric: tabular-nums; font-size: 12px; color: var(--text-soft);
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1px 9px;
}
.status-badge.active { background: var(--green-soft); color: var(--green); border: 1px solid var(--green-border); }
.status-badge.passive { background: var(--surface-2); color: var(--text-mute); border: 1px solid var(--border); }
.status-badge.locked { background: var(--amber-soft); color: var(--amber); border: 1px solid var(--amber-border); margin-left: 6px; }
/* Üyelik yaşam döngüsü: davet bekleyen amber, üye olan mürekkep (Aktif/Pasif yeşil-grisiyle karışmasın). */
.status-badge.invited { background: var(--amber-soft); color: var(--amber); border: 1px solid var(--amber-border); }
.status-badge.member { background: var(--primary-soft); color: var(--primary-hover); border: 1px solid var(--primary-border); }
.member-date { font-size: 12px; color: var(--text-mute); margin-top: 3px; font-variant-numeric: tabular-nums; }
/* Davet bağlantısı modalı */
.invite-modal { max-width: 560px; }
/* Kullanıcı düzenleme modalı */
.user-edit-modal { max-width: 420px; }

/* ===== YENİLİKLER (sürüm tarihçesi) ===== */
.changelog { max-width: 720px; display: flex; flex-direction: column; gap: 26px; }
.release-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.release-date { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.release-new {
  font-size: 12px; font-weight: 700; letter-spacing: 1px; padding: 2px 8px; border-radius: var(--radius);
  background: var(--primary-soft); color: var(--primary-hover); border: 1px solid var(--primary-border);
}
.release-items { margin: 0; padding: 0 0 0 2px; list-style: none; display: flex; flex-direction: column; gap: 7px; }
.release-items li {
  position: relative; padding-left: 18px; font-size: 13.5px; line-height: 1.55; color: var(--text-soft);
}
.release-items li::before {
  content: ""; position: absolute; left: 2px; top: 8px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--accent);
}
/* Yalnız platform personelinin gördüğü ayrıntı maddeleri: öne çıkanların altında, bir ton
   geride. İçi boş nokta, "bu satır ikincil" bilgisini renge yüklemeden verir. */
.release-items li.release-detail { color: var(--text-mute); font-size: 13px; }
.release-items li.release-detail::before {
  background: transparent; border: 1px solid var(--border-strong);
  width: 5px; height: 5px; top: 8.5px; left: 2.5px;
}
.release-audience {
  font-family: inherit; font-variant-numeric: tabular-nums; font-size: 12px; letter-spacing: 0.03em;
  color: var(--text-mute);
}
.invite-link-box {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 11px 13px; font-size: 12px; line-height: 1.5; word-break: break-all;
  color: var(--text); margin-bottom: 12px;
}
.reset-link-warn {
  background: var(--amber-soft); color: var(--amber); border: 1px solid var(--amber-border);
  border-radius: var(--radius); padding: 9px 12px; font-size: 12.5px; margin-bottom: 12px;
}

.btn:disabled { opacity: 0.5; cursor: default; }
.btn-ghost.danger { color: var(--red); border-color: transparent; }
.btn-ghost.danger:hover { background: var(--red-soft); color: var(--red); }

@media (max-width: 720px) { .afc-grid { grid-template-columns: 1fr; } }

/* ===== AI ACTIVITY (canlı işleme takibi) ===== */
.ai-activity-banner {
  margin: 12px var(--page-gutter) 0; padding: 10px 14px; border-radius: var(--radius);
  background: var(--primary-soft); border: 1px solid var(--primary-border);
  display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-soft);
}
.ai-activity-banner strong { color: var(--text); font-weight: 600; }
.ai-activity-banner.batch { background: var(--blue-soft); border-color: var(--blue-border); }
.ai-activity-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--primary);
  animation: pulse 1.6s infinite; flex-shrink: 0;
}
.ai-activity-dot.batch { background: var(--blue); }
.ai-activity-text { line-height: 1.5; }

/* İşleme ilerleme çubuğu: yüzde bilinirken dolan bar, %0'da akış animasyonu */
.ai-progress {
  margin: 8px var(--page-gutter) 0; display: flex; align-items: center; gap: 12px;
}
.ai-progress-track {
  flex: 1; height: 8px; border-radius: var(--radius); overflow: hidden;
  background: var(--primary-soft); border: 1px solid var(--primary-border);
}
.ai-progress-fill {
  height: 100%; border-radius: var(--radius);
  background: var(--primary);
  background-size: 200% 100%;
  animation: ai-progress-flow 1.8s linear infinite;
  transition: width 0.6s ease;
}
.ai-progress-fill.indeterminate {
  opacity: 0.55;
  background: repeating-linear-gradient(
    -45deg, var(--primary) 0 10px, var(--accent) 10px 20px);
  background-size: 200% 100%;
  animation: ai-progress-stripes 1.2s linear infinite;
}
.ai-progress-label {
  font-size: 12px; color: var(--text-mute); white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
@keyframes ai-progress-flow { to { background-position: -200% 0; } }
@keyframes ai-progress-stripes { to { background-position: 28px 0; } }

/* ===== Taramalar: son tarama özeti + koşu başlık satırları (2026-09-28) =====
   "Tarama yaptım, bitti mi, bir şey geldi mi, sırada ne var?" sorularının tek bakışta cevabı. */
.run-summary {
  margin: 12px var(--page-gutter) 0; padding: 14px 18px 12px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 12px;
}
.run-summary.has-fault { border-color: var(--red-border); }
.run-summary-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.run-summary-when { font-size: 13px; color: var(--text-soft); }
.run-summary-head .status-badge { margin-left: auto; }
.run-summary-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.run-stat { display: flex; flex-direction: column; gap: 3px; padding-right: 12px; border-right: 1px solid var(--border); }
.run-stat:last-child { border-right: none; }
.run-stat-num { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--text); }
.run-stat-num small { font-size: 13px; font-weight: 500; color: var(--text-mute); }
.run-stat-num.accent { color: var(--primary); }
.run-stat-num.run-stat-time { font-size: 15px; font-weight: 600; padding-top: 5px; }
.run-stat-label { font-size: 12px; color: var(--text-mute); }
.run-summary-next { margin: 0; font-size: 13px; line-height: 1.55; color: var(--text-soft); max-width: 90ch; }
.run-summary-next .stat-link { margin-left: 6px; white-space: nowrap; }
.run-inline-fault { color: var(--red); font-weight: 500; }

.raw-table tr.run-group-row td {
  background: var(--surface-2); padding-top: 7px; padding-bottom: 7px;
  font-size: 12px; color: var(--text-mute); border-top: 1px solid var(--border-strong);
}
.run-group-row td span + span::before { content: "·"; margin: 0 7px; color: var(--text-faint); }
.run-group-when { font-family: inherit; font-variant-numeric: tabular-nums; font-weight: 500; color: var(--text-soft); }
.run-breakdown { font-size: 12.5px; color: var(--text-mute); }
.run-breakdown.has-new { color: var(--text); }
.run-duration { font-size: 12px; color: var(--text-faint); margin-left: 4px; font-variant-numeric: tabular-nums; }

@media (max-width: 768px) {
  .run-summary { margin: 12px 16px 0; }
  .run-summary-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .run-stat:nth-child(2) { border-right: none; }
  .run-summary-head .status-badge { margin-left: 0; }
}

/* ===== TOOLBAR SEARCH ===== */
.toolbar-search { position: relative; display: flex; align-items: center; }
/* Tam genişlik arama satırı (Mevzuat panosu): filtre çubuğunun üstünde, onunla tek blok. */
.search-bar { background: var(--surface); padding: 12px var(--page-gutter) 0; }
.search-bar .toolbar-search { width: 100%; }
/* Pano arama alanı (2026-10-20): soluk şerit gibi okunup fark edilmiyordu — beyaz zemin, belirgin
   kenarlık, belirgin büyüteç ve "Ara" düğmesi. Arşiv'in araç çubuğu araması (.toolbar-search) etkilenmez. */
.search-bar .toolbar-search input {
  width: 100%; height: 46px; font-size: 14.5px; padding: 0 146px 0 44px; border-radius: var(--radius);
  background: var(--surface); border: 1.5px solid var(--border-strong); box-shadow: 0 1px 2px rgba(29,28,26,0.05);
  text-overflow: ellipsis; transition: border-color 0.15s, box-shadow 0.15s;
}
.search-bar .toolbar-search input::placeholder { color: var(--text-mute); }
.search-bar .toolbar-search input:hover { border-color: var(--accent); }
/* Odakta belirginleşir: mürekkep kenarlık + yarı saydam halka (kenarlık kalınlığı aynı kalır, kutu oynamaz). */
.search-bar .toolbar-search input:focus { border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 4px rgba(34,48,60,0.16), 0 1px 2px rgba(29,28,26,0.06); }
.search-bar .toolbar-search > .svg-ico { left: 15px; width: 18px; height: 18px; color: var(--primary); }
.search-bar .toolbar-search .kbd-hint { right: 84px; font-size: 12px; padding: 2px 7px; }
.search-clear {
  position: absolute; right: 84px; width: 28px; height: 28px; display: grid; place-items: center;
  border: none; border-radius: 50%; background: transparent; color: var(--text-mute); cursor: pointer;
}
.search-clear:hover { background: var(--surface-2); color: var(--text); }
.search-clear .svg-ico { width: 14px; height: 14px; }
.search-go {
  position: absolute; right: 6px; height: 34px; padding: 0 18px; border: none; border-radius: var(--radius-sm);
  background: var(--cta); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer;
}
.search-go:hover { background: var(--cta-hover); }
.search-go:focus-visible, .search-clear:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.toolbar-search .svg-ico { position: absolute; left: 9px; width: 13px; height: 13px; color: var(--text-faint); pointer-events: none; }
.toolbar-search input {
  width: 250px; padding: 6px 44px 6px 29px; font-size: 12.5px; font-family: inherit;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2);
  color: var(--text); outline: none; transition: border-color 0.15s, background 0.15s;
}
.toolbar-search input::placeholder { color: var(--text-faint); }
.toolbar-search input:focus { border-color: var(--primary); background: var(--surface); }
.toolbar-search .kbd-hint {
  position: absolute; right: 7px; font-family: inherit; font-variant-numeric: tabular-nums; font-size: 12px;
  color: var(--text-faint); background: var(--surface); border: 1px solid var(--border);
  border-radius: 3px; padding: 1px 5px; pointer-events: none;
}

/* ===== STAR (yıldızla) ===== */
.star-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; font-size: 12px;
  font-weight: 500; color: var(--text-soft); background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm); line-height: 1;
}
.star-btn:hover { background: var(--amber-soft); border-color: var(--amber-border); color: var(--amber); }
.star-btn.starred { background: var(--amber-soft); border-color: var(--amber-border); }
.star-btn .svg-ico { width: 14px; height: 14px; }
.star-btn.starred { color: var(--amber); }
.star-btn.starred .svg-ico { fill: currentColor; }

/* ===== MODAL (şablon mesaj / düzelt-raporla) ===== */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(15, 23, 42, 0.45); z-index: 100;
  display: grid; place-items: center; padding: 24px;
}
.modal {
  /* position/height: Bootstrap'in global .modal kuralını (fixed, top/left 0, height 100%)
     etkisiz kılar — yoksa modal backdrop'un grid ortalamasından çıkıp sol üste yapışır. */
  position: relative; height: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25); width: 100%; max-width: 640px;
  max-height: 85vh; display: flex; flex-direction: column; animation: um-pop 0.12s ease-out;
}
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 20px 12px; border-bottom: 1px solid var(--border); }
.modal-title { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.modal-sub { font-size: 12px; color: var(--text-mute); margin-top: 2px; line-height: 1.5; }
.modal-close {
  background: transparent; border: none; color: var(--text-mute); font-size: 20px;
  line-height: 1; padding: 2px 6px; border-radius: var(--radius-sm); flex-shrink: 0;
}
.modal-close:hover { background: var(--surface-2); color: var(--text); }
.modal-body { padding: 16px 20px; overflow-y: auto; }
.modal-foot { padding: 12px 20px; border-top: 1px solid var(--border); display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
.modal-hint { font-size: 12px; color: var(--text-mute); margin-right: auto; }
.modal-hint.ok { color: var(--green); }
.modal-hint.err { color: var(--red); }
.template-facts {
  display: flex; flex-wrap: wrap; gap: 6px 22px; margin-bottom: 12px; padding: 10px 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); font-size: 12.5px;
}
.tfact { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tfact .k { color: var(--text-mute); white-space: nowrap; }
.tfact .v { font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; }
.tfact .d { color: var(--text-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tfact .tag { font-size: 12px; font-weight: 500; padding: 2px 7px; border-radius: var(--radius); white-space: nowrap; }
.tfact .tag.soon { background: var(--amber-soft); color: var(--amber); }
.tfact .tag.later { background: var(--blue-soft); color: var(--blue); }
.tfact .tag.past { background: var(--surface-2); color: var(--text-mute); }
.template-scope {
  display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; padding: 0 2px; font-size: 12px;
}
.template-scope .k { font-weight: 600; letter-spacing: .02em; text-transform: uppercase; font-size: 12px; color: var(--text-mute); }
.template-scope .d { color: var(--text-mute); }
.template-message {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px; font-size: 13px; line-height: 1.65; color: var(--text);
}
.template-text { white-space: pre-wrap; }
.template-appendix {
  margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border-strong);
  display: grid; gap: 4px; font-size: 12.5px;
}
.template-appendix .lbl { color: var(--text-mute); }
.template-appendix a { color: var(--primary); text-decoration: none; word-break: break-all; }
.template-appendix a:hover { text-decoration: underline; }
.template-disclaimer {
  margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border-strong);
  font-size: 12px; line-height: 1.5; color: var(--text-soft);
}
.template-disclaimer .lbl { color: var(--text-mute); }
.feedback-textarea {
  width: 100%; min-height: 130px; resize: vertical; font-family: inherit; font-size: 13.5px;
  line-height: 1.55; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  color: var(--text); background: var(--surface);
}
.feedback-textarea:focus { outline: none; border-color: var(--primary); }

/* ===== DAILY BRIEF (dashboard) =====
   2026-10-20: ayrı bant kalktı — özet başlığın altında tek cümle, kaynak durumu meta satırında tek
   rozet, rozet başlığın altında kaynak dökümü panelini açar (varsayılan kapalı). */
.brief-block { margin-bottom: 18px; }
.brief-meta { gap: 8px 12px; }
.brief-hello { font-size: 13px; color: var(--text-soft); line-height: 1.55; margin: 2px 0 8px; max-width: 86ch; }
.brief-hello b { color: var(--text); font-weight: 600; }
.brief-role-link {
  background: none; border: none; padding: 0; font: inherit; color: var(--primary); font-weight: 500; cursor: pointer;
}
.brief-role-link:hover { color: var(--primary-hover); text-decoration: underline; text-underline-offset: 3px; }
.brief-health {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px 2px 7px; border-radius: var(--radius);
  background: var(--green-soft); border: 1px solid var(--green-border); color: var(--green);
  font-size: 12px; font-weight: 500; cursor: pointer; white-space: nowrap;
}
.brief-health { padding-right: 3px; transition: background-color 0.12s, border-color 0.12s; }
.brief-health:hover { background: #dff5ea; border-color: #a9dcc0; }
.brief-health-ico { width: 12px; height: 12px; flex-shrink: 0; }
.brief-health .time { font-family: inherit; font-variant-numeric: tabular-nums; font-variant-numeric: tabular-nums; opacity: 0.75; }
/* Ok ayrı bir "düğme yüzü": ince ayraç + dolgulu daire — rozetin açılır olduğu bakınca anlaşılsın. */
.brief-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-left: 2px;
  border-radius: 50%; background: var(--surface); border: 1px solid var(--green-border);
}
.brief-health .brief-chevron { width: 11px; height: 11px; transition: transform 0.15s; }
.brief-health[aria-expanded="true"] .brief-chevron { transform: rotate(180deg); }
.brief-health.warn { background: var(--amber-soft); border-color: var(--amber-border); color: var(--amber); }
.brief-health.warn:hover { background: #fdf0d2; border-color: #ecd08f; }
.brief-health.warn .brief-toggle { border-color: var(--amber-border); }
.brief-health:focus-visible, .brief-how:focus-visible, .brief-role-link:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.brief-how {
  background: none; border: none; padding: 0; font-size: 12px; color: var(--primary);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.brief-how:hover { color: var(--primary-hover); }
.brief-panel {
  margin-top: 12px; padding: 12px 14px; border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--primary-soft) 0%, var(--surface) 60%); border: 1px solid var(--primary-border);
  animation: um-pop 0.12s ease-out;
}
.brief-panel > * { max-width: 480px; }
.brief-panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.brief-panel-title { font-size: 12.5px; font-weight: 600; color: var(--text); }
.brief-panel-sub { font-size: 12px; color: var(--text-mute); }
.brief-panel-warn {
  font-size: 12px; color: var(--amber); background: var(--amber-soft); border: 1px solid var(--amber-border);
  border-radius: var(--radius); padding: 6px 9px; margin-bottom: 8px;
}
.brief-dump { width: 100%; border-collapse: collapse; font-size: 12px; }
.brief-dump th {
  font-family: inherit; font-variant-numeric: tabular-nums; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-mute); text-align: right; padding: 4px 6px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.brief-dump th:first-child { text-align: left; }
.brief-dump td {
  padding: 5px 6px; border-bottom: 1px solid var(--surface-2); text-align: right;
  font-family: inherit; font-variant-numeric: tabular-nums; font-variant-numeric: tabular-nums; color: var(--text-faint);
}
.brief-dump td:first-child { text-align: left; font-family: inherit; color: var(--text-soft); white-space: nowrap; }
.brief-dump td.hit { color: var(--text); font-weight: 600; }
.brief-dump td.pub { color: var(--primary-hover); font-weight: 600; }
.brief-dump tr.quiet td:first-child { color: var(--text-mute); }
.brief-dump tr.warn td:first-child, .brief-dump tr.warn td.err { color: var(--amber); }
.brief-dump tr.warn td.err { font-family: inherit; font-size: 12px; }
.brief-dump tr.total td { border-bottom: none; border-top: 1px solid var(--border); color: var(--text); font-weight: 600; }
.brief-dump tr.total td.zero { color: var(--text-faint); font-weight: 400; }
.brief-dump .st { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); margin-right: 7px; vertical-align: middle; }
.brief-dump tr.warn .st { background: var(--amber); }
.brief-more {
  display: inline-flex; align-items: center; gap: 4px; background: none; border: none; padding: 6px 0 0;
  font-size: 12px; font-weight: 500; color: var(--text-mute); cursor: pointer;
}
.brief-more-chevron { width: 11px; height: 11px; transition: transform 0.15s; }
.brief-more[aria-expanded="true"] .brief-more-chevron { transform: rotate(180deg); }
.brief-more:hover { color: var(--text); }
.brief-panel-foot { font-size: 12px; color: var(--text-faint); margin: 6px 0 0; line-height: 1.5; }

/* ===== ONBOARDING WIZARD ===== */
.onb-modal { max-width: 560px; }
.onb-body { padding: 26px 28px 20px; overflow-y: auto; }
.onb-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.onb-brand .brand-name { font-size: 17px; }
.onb-headline { font-size: 21px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.35; margin: 0 0 10px; }
.onb-headline em { font-style: normal; color: var(--primary); }
.onb-lead { font-size: 13.5px; color: var(--text-soft); line-height: 1.6; margin: 0 0 20px; }
.onb-flow { display: flex; align-items: stretch; gap: 8px; }
.onb-flow-step {
  flex: 1; display: flex; flex-direction: column; gap: 4px; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 12px 14px;
}
.onb-flow-step b { font-size: 12.5px; font-weight: 600; color: var(--text); }
.onb-flow-step span:last-child { font-size: 12px; color: var(--text-mute); line-height: 1.5; }
/* AI adımı: akışın kalbi — mürekkep renkle vurgulanır. */
.onb-flow-step.ai {
  background: linear-gradient(135deg, var(--primary-soft) 0%, var(--surface) 92%);
  border-color: var(--primary-border);
}
.onb-flow-step.ai .onb-flow-no { background: var(--primary); }
.onb-flow-step.ai b { display: inline-flex; align-items: center; gap: 5px; color: var(--primary-hover); }
.onb-flow-step.ai b .svg-ico { width: 12px; height: 12px; flex-shrink: 0; }
.onb-flow-no {
  width: 20px; height: 20px; border-radius: 50%; background: var(--primary); color: #fff;
  font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center;
}
.onb-flow-arrow { align-self: center; color: var(--text-faint); font-size: 14px; flex-shrink: 0; }
.onb-title { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 6px; }
.onb-sub { font-size: 13px; color: var(--text-mute); line-height: 1.55; margin: 0 0 16px; }
.onb-roles { display: flex; flex-direction: column; gap: 8px; }
.onb-role {
  display: flex; align-items: flex-start; gap: 12px; text-align: left; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 12px 14px; cursor: pointer;
}
.onb-role:hover { border-color: var(--border-strong); background: var(--surface-hover); }
.onb-role.sel { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 1px var(--primary); }
.onb-role-ic {
  width: 32px; height: 32px; flex-shrink: 0; border-radius: var(--radius); background: var(--surface-2);
  color: var(--primary); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.onb-role.sel .onb-role-ic { background: var(--primary); color: #fff; }
.onb-role-text b { display: block; font-size: 13.5px; font-weight: 600; color: var(--text); }
.onb-role-text span { font-size: 12px; color: var(--text-mute); line-height: 1.45; }
.onb-anatomy { display: grid; grid-template-columns: 1fr; gap: 14px; }
.onb-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px 16px; }
.onb-card-tags { display: flex; gap: 6px; margin-bottom: 8px; }
.onb-tag { font-size: 12px; font-weight: 600; letter-spacing: 0.05em; border-radius: var(--radius-sm); padding: 2px 8px; }
.onb-tag.amber { background: var(--amber-soft); color: var(--amber); border: 1px solid var(--amber-border); }
.onb-tag.purple { background: var(--primary-soft); color: var(--primary); border: 1px solid var(--primary-border); }
.onb-card-title { font-size: 13.5px; font-weight: 600; margin-bottom: 10px; }
.onb-card-row { font-size: 12px; color: var(--text-soft); padding: 5px 0; border-top: 1px dashed var(--border); display: flex; align-items: center; gap: 8px; }
.onb-check {
  width: 14px; height: 14px; flex-shrink: 0; border-radius: 3px; border: 1px solid var(--primary);
  background: var(--primary); position: relative;
}
.onb-check::after { content: "✓"; position: absolute; inset: 0; color: #fff; font-size: 12px; line-height: 14px; text-align: center; }
.onb-card-actions { display: flex; gap: 8px; margin-top: 10px; }
.onb-mini-btn {
  font-size: 12px; font-weight: 500; border-radius: var(--radius); padding: 4px 10px;
  border: 1px solid var(--border-strong); color: var(--text-soft); background: var(--surface);
}
.onb-mini-btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.onb-anatomy-notes { margin: 0; padding-left: 18px; font-size: 12.5px; color: var(--text-soft); line-height: 1.55; }
.onb-anatomy-notes li + li { margin-top: 6px; }
.onb-anatomy-notes b { color: var(--text); font-weight: 600; }
.onb-foot {
  display: flex; align-items: center; gap: 12px; padding: 14px 28px;
  border-top: 1px solid var(--border);
}
.onb-skip { background: none; border: none; font-size: 12.5px; color: var(--text-faint); padding: 4px 0; }
.onb-skip:hover { color: var(--text-mute); text-decoration: underline; }
.onb-dots { display: flex; gap: 5px; margin: 0 auto; }
.onb-dot { width: 22px; height: 4px; border-radius: 2px; background: var(--border); }
.onb-dot.on { background: var(--primary); }
.onb-nav { display: flex; gap: 8px; }

/* ===== FILTERED-OUT DOCUMENTS (ilgisiz) ===== */
.filtered-section { margin-top: 28px; border-top: 1px dashed var(--border-strong); padding-top: 14px; }
.filtered-toggle {
  background: none; border: none; color: var(--text-mute); font-size: 12.5px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 0;
}
.filtered-toggle:hover { color: var(--text); }
.filtered-toggle .chev { transition: transform 0.15s; }
.filtered-toggle.open .chev { transform: rotate(90deg); }
.filtered-hint { font-size: 12px; color: var(--text-faint); margin: 2px 0 12px; }

/* ===== FEEDBACK QUEUE (Ayarlar) ===== */
.feedback-msg { font-size: 13px; color: var(--text); line-height: 1.55; white-space: pre-wrap; }

/* ===== GERİ BİLDİRİMLER (yönetim sayfası) ===== */
/* Mesaj listede tek satıra kırpılır (uzun metin tabloyu bozmasın); tamamı satır tıklanınca modalda. */
.fb-row { cursor: pointer; }
.fb-row:hover td { background: var(--surface-2); }
.fb-snippet {
  font-size: 12.5px; color: var(--text-mute); max-width: 560px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.feedback-modal { max-width: 560px; }
.feedback-full {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 12px 14px; font-size: 13.5px; line-height: 1.6; color: var(--text);
  white-space: pre-wrap; overflow-wrap: anywhere; margin-bottom: 14px;
  max-height: 320px; overflow-y: auto;
}
.feedback-meta { margin-top: 4px; font-size: 12px; color: var(--text-mute); }
.status-badge.open { background: var(--amber-soft); color: var(--amber); border: 1px solid var(--amber-border); }
.status-badge.resolved { background: var(--green-soft); color: var(--green); border: 1px solid var(--green-border); }

/* ===== RESPONSIVE (mobil) =====
   Masaüstü 32px gutter'ları telefonda 16px'e iner; üst nav iki satıra kırılır
   (marka + kullanıcı üstte, sekmeler altta yatay kaydırmalı); tablolar kendi
   içinde yatay kaydırılır — sayfa gövdesi asla yana taşmaz. */
@media (max-width: 768px) {
  /* --- üst nav: iki satır --- */
  .top-nav { flex-wrap: wrap; height: auto; padding: 0 12px; }
  .nav-brand { height: 52px; margin-right: 0; order: 0; }
  .brand-divider, .brand-tag { display: none; }
  .nav-spacer { display: none; }
  .nav-right { order: 1; margin-left: auto; }
  .nav-user-trigger .name { display: none; }
  .nav-user-trigger { padding: 4px; }
  .nav-user-trigger.admin { padding: 5px 8px; }
  .nav-tabs {
    order: 2; width: 100%; height: auto;
    overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--border);
  }
  .nav-tabs::-webkit-scrollbar { display: none; }
  .nav-tab { padding: 11px 13px; flex-shrink: 0; }

  .admin-context-bar { padding: 0 16px; }
  .compliance-banner { padding: 8px 16px; font-size: 12px; }

  /* --- sayfa iskeleti: 32px gutter → 16px --- */
  .page-header { padding: 16px 16px 0; }
  .page-header-top { flex-wrap: wrap; margin-bottom: 14px; gap: 10px; }
  .page-title-block h1 { font-size: 20px; }
  .page-meta .meta-sep { display: none; }
  .stats-row { margin: 0 -16px; padding: 0 16px; }
  .search-bar { padding: 12px 16px 0; }
  .search-bar .toolbar-search input { padding-right: 116px; }
  /* Boşken temizle düğmesi yok: yalnız "Ara" kadar yer ayrılır, yer tutucu kesilmez. */
  .search-bar .toolbar-search input:placeholder-shown { padding-right: 84px; }
  .search-bar .toolbar-search .kbd-hint { display: none; }
  .toolbar { padding: 10px 16px; row-gap: 8px; }
  .content { padding: 16px 12px; }
  .flash, .ai-activity-banner { margin: 12px 16px 0; }
  .ai-progress { margin: 8px 16px 0; }

  /* --- toolbar: filtre grubu taşarsa kendi içinde kaysın --- */
  .filter-group { scrollbar-width: none; }
  .filter-group::-webkit-scrollbar { display: none; }
  .toolbar-divider { display: none; }
  /* Alt filtre tek satır: etiket solda kalır, çipler kendi içinde kayar (etiketin ayrı satıra düşmesi yer yiyordu). */
  .toolbar-sub { flex-wrap: nowrap; }
  .toolbar-search input { width: 100%; }
  .toolbar-search { flex: 1; min-width: 180px; }

  /* --- tablolar: sayfayı değil kendini kaydırır --- */
  .raw-table, .compare-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .raw-table thead th, .raw-table tbody td { padding: 10px 12px; }

  /* --- mevzuat kartı --- */
  .item-head { padding: 14px 14px 12px; }
  .item-tabs { padding: 0 6px; }
  .item-tab { padding: 10px 11px; }
  .item-tab-content { padding: 14px 12px; }
  .item-foot { padding: 10px 12px; }
  .item-title { font-size: 15.5px; }

  /* --- form kartları / ayarlar --- */
  .admin-form-card { padding: 16px 14px; }
  .afc-row { flex-wrap: wrap; }
  .suggest-card { flex-wrap: wrap; }
  .settings-add .settings-input-wide { width: 100%; }
  .modal-backdrop { padding: 12px; }

  /* --- onboarding: adım akışı dikey --- */
  .onb-body { padding: 20px 16px 16px; }
  .onb-foot { padding: 12px 16px; }
  .onb-flow { flex-direction: column; }
  .onb-flow-arrow { transform: rotate(90deg); }
}

@media (max-width: 480px) {
  .stat-cell { padding-right: 12px; margin-right: 12px; }
  .stat-num { font-size: 24px; }
  .agenda-row { gap: 10px; }
  .progress-block { width: 100%; margin-left: 0; }
  .progress-bar { flex: 1; width: auto; }

  /* Görev satırı: rozetler (tarih + rol) metni daraltmasın, alt satıra insin
     ve onay kutusunun genişliği kadar içeriden hizalansın. */
  .task-row { flex-wrap: wrap; row-gap: 4px; }
  .task-text { flex: 1 1 calc(100% - 28px); }
  .task-role { margin-left: 28px; }

  /* Sayfalama: dar ekranda sayaç ve numaralar alt alta, numaralar ortalanır. */
  .pager { justify-content: center; gap: 10px; }
  .pager-nav { flex-wrap: wrap; justify-content: center; }
  .load-more { flex-direction: column; gap: 8px; }
}

/* ===== Blazor framework UI ===== */
#blazor-error-ui {
  color-scheme: light only; background: var(--amber-soft); border-top: 1px solid var(--amber-border); bottom: 0;
  box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2); box-sizing: border-box; display: none;
  left: 0; padding: 0.6rem 1.25rem 0.7rem 1.25rem; position: fixed; width: 100%; z-index: 1000;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 0.75rem; top: 0.35rem; min-width: 32px; min-height: 32px; border: 0; background: transparent; font-size: 18px; color: var(--text-soft); }
.blazor-error-boundary { background: #b32121; padding: 1rem; color: white; }
.validation-message { color: var(--red); }


/* ===== ERİŞİLEBİLİRLİK VE KULLANILABİLİRLİK (2026-10-24) =====
   NN/g 10 sezgisi + ui-ux-pro-max kuralları: görünür klavye odağı, dokunmatikte 44 px hedef,
   12 px yazı tabanı, 4/8 boşluk ölçeği, durum/hata mesajlarının ekran okuyucuya duyurulması. */
.btn:focus-visible, .filter-btn:focus-visible, .mcal-nav-btn:focus-visible, .tg-head:focus-visible,
.task-row:focus-visible, .mcal-cell:focus-visible, .mcal-day-link:focus-visible, .npref-chip:focus-visible,
.th-sort:focus-visible, .pager-btn:focus-visible, .load-more-btn:focus-visible {
  outline: 2px solid var(--primary); outline-offset: 2px;
}
@media (pointer: coarse) {
  .filter-btn, .btn, .btn-sm, .sort-input, .toolbar-search input, .npref-chip, .pager-btn { min-height: 44px; }
  .mcal-nav-btn { min-width: 44px; min-height: 44px; }
  .filter-group { gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .item-chevron, .progress-fill, .item { transition: none; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.mcal-nav-btn { width: 32px; height: 32px; }
.mcal-day-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; }
.mcal-dots .dot.kind-gorev { border-radius: 1px; }
.task-row { min-height: 44px; padding-top: 12px; padding-bottom: 12px; }
.task-row.done .task-due { background: transparent; color: var(--text-mute); font-family: inherit; }
.empty-state-action { margin-top: 12px; }

/* Formlar: radyo grupları fieldset/legend, yardım metni, satır hedefleri */
.radio-stack { border: 0; padding: 0; margin: 16px 0 0; min-width: 0; }
.radio-stack legend { font-size: 12px; font-weight: 500; color: var(--text-soft); margin-bottom: 4px; padding: 0; float: none; width: auto; }
.radio-stack .login-check { display: flex; min-height: 44px; gap: 8px; align-items: center; }
.field-help { display: block; margin-top: 4px; font-size: 12px; color: var(--text-mute); }
.afc-title { margin-top: 0; }
h2.afc-title { font-size: inherit; }
.validation-message { color: var(--red); font-size: 12px; }
.req { color: var(--red); }

/* Bildirim tercihleri */
.pref-group { border: 0; padding: 0; margin: 0; min-width: 0; }
.pref-group + .pref-group { margin-top: 24px; }
.pref-group legend { float: none; width: auto; padding: 0; }
.npref-chip { min-height: 36px; display: inline-flex; align-items: center; padding: 0 16px; }
.pref-disabled .npref-role, .pref-disabled .npref-role input, .pref-disabled .npref-chip { cursor: not-allowed; }
.pref-disabled .npref-role:hover { background: transparent; border-color: var(--border); }
.afc-actions .afc-status { margin: 0 auto 0 0; align-self: center; }

/* Sürüm notları */
h2.release-date { margin: 0; font-size: inherit; }
.release-items li.release-detail-label { padding-left: 0; margin-top: 8px; font-size: 12px; font-weight: 600; color: var(--text-mute); }
.release-items li.release-detail-label::before { display: none; }

/* Firma kullanıcıları */
.table-scroll { overflow-x: auto; max-width: 100%; }
.row-actions { gap: 8px; align-items: center; }
.row-actions .btn-sm { min-height: 32px; }
.row-confirm { font-size: 12.5px; color: var(--text-soft); font-weight: 500; }
.btn-danger-solid { background: var(--red); border-color: var(--red); color: #fff; }
.btn-danger-solid:hover { filter: brightness(0.92); background: var(--red); }

@media (max-width: 768px) {
  .toolbar-search { flex: 1 1 100%; }
  .toolbar-search input { font-size: 16px; width: 100%; min-height: 44px; }
}

/* ===== GÖREVLERİM OKUNURLUĞU (2026-10-24) =====
   Ölçülen sorunlar: görev metni 13.5 px ve ~1140 px satır (≈150 karakter), tarih/rol 11 px eş
   aralıklı yazı, grup başlığı metinle aynı boyda, salt okunur onay kutusu %45 opak.
   Kurallar: satır uzunluğu 65–75 karakter, gövde 15 px / 1.55, 12 px taban, sayılarda
   tabular-nums (eş aralıklı yazı yerine), başlık–metin arasında belirgin hiyerarşi. */
.tg-body { padding: 8px 8px 12px; background: var(--surface); }
.task-list { gap: 0; }
.task-row { gap: 16px; align-items: flex-start; border-radius: 0; border-top: 1px solid var(--border); }
.task-row:first-child { border-top: 0; }
.task-row:hover { background: var(--surface-2); }
.task-text { font-size: 15px; line-height: 1.55; max-width: 75ch; color: var(--text); }
.task-checkbox { width: 18px; height: 18px; margin-top: 2px; border-radius: var(--radius-sm); }
.task-row.readonly .task-checkbox { opacity: 1; background: var(--surface-2); border-style: dashed; }
.task-role, .task-due {
  margin-top: 1px; font-family: inherit; font-size: 12.5px; font-weight: 500;
  font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: 0;
}
.task-role { margin-left: auto; color: var(--text-soft); }
.toolbar-label { font-family: inherit; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; }
.toolbar-hint { font-size: 12.5px; }
.tg-reg-link { font-size: 13px; }


/* ===== OKUNURLUK — TÜM SAYFALAR (2026-10-24, tarayıcıda ölçülerek) =====
   - Eş aralıklı yazı yalnız kod niteliğindeki içerikte (anahtar, adres, log yığını); tarih ve
     sayılar düz yazı tipinde, rakamlar hizalı (tabular-nums).
   - Uzun açıklama paragrafları 80 karakterde kırılır.
   - Küçük ikon düğmeleri ve tek satır bağlantılar en az 28–32 px hedef alır. */
.settings-key, .source-endpoint-url, pre, code, kbd { font-family: 'JetBrains Mono', ui-monospace, monospace; }
.compliance-banner > span, .afc-hint, .settings-hint, .source-note, .run-summary-next,
.release-items li, .page-meta { max-width: 80ch; }
.tr-datepicker-toggle, .daterange-clear { min-width: 28px; min-height: 28px; }
.acb-back, .tg-reg-link, .login-link, .stat-link { display: inline-flex; align-items: center; min-height: 32px; }


/* ===== GİRİŞ, HATA SAYFALARI, MENÜLER (2026-10-24 denetimi) ===== */
.login-input { font-size: 15px; min-height: 44px; }
.login-btn-link { display: block; text-align: center; text-decoration: none; }
.login-row.center { justify-content: center; margin-top: 16px; }
.login-hint { font-size: 12.5px; color: var(--text-mute); margin: 4px 0 0; }
.login-check input { width: 18px; height: 18px; }
h1.login-title { margin: 0; }
.empty-state h1 { font-size: 22px; color: var(--text); margin-bottom: 8px; }
.access-denied { max-width: 560px; margin: 64px auto; text-align: center; }
.access-denied h1 { font-size: 22px; margin-bottom: 8px; }
.access-denied p { color: var(--text-soft); line-height: 1.6; margin-bottom: 20px; }
.skip-link { position: absolute; left: 8px; top: -48px; z-index: 100; background: var(--surface); color: var(--text); padding: 8px 12px; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.skip-link:focus { top: 8px; }
main:focus { outline: none; }
.nav-user-trigger:focus-visible, .user-menu-item:focus-visible, .modal-close:focus-visible, .admin-tab:focus-visible,
.cal-nav:focus-visible, .cal-day:focus-visible, .log-exception summary:focus-visible, .raw-title:focus-visible,
.stat-link:focus-visible, a.source-endpoint-url:focus-visible, .fb-open:focus-visible, .daterange-clear:focus-visible,
.tr-datepicker-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.modal-close { min-width: 32px; min-height: 32px; }
.um-email { white-space: nowrap; }
.feedback-textarea:focus { box-shadow: 0 0 0 3px rgba(34,48,60,0.18); }
@media (max-width: 768px) { .login-input { font-size: 16px; } }

/* ===== YÖNETİM EKRANLARI (2026-10-24 denetimi) ===== */
.raw-table thead th, .th-sort { color: var(--text-soft); letter-spacing: .03em; }
.raw-table .mono { color: var(--text-soft); }
.stat-label { font-weight: 600; }
.raw-error { font-size: 12.5px; line-height: 1.5; overflow-wrap: anywhere; }
.log-msg { display: block; max-width: 90ch; line-height: 1.5; overflow-wrap: anywhere; }
.ai-info-note, .run-duration { color: var(--text-mute); font-size: 12.5px; }
.cal-day.other { color: var(--text-mute); }
.toolbar .filter-group { flex-wrap: wrap; overflow-x: visible; }
.invite-link-box { user-select: all; }
.fb-open { background: none; border: 0; padding: 0; text-align: left; color: var(--text); font: inherit; cursor: pointer; }
@media (pointer: coarse) {
  .daterange-clear, .tr-datepicker-toggle, .modal-close, .cal-day { min-height: 44px; min-width: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .ai-activity-dot, .ai-progress-fill, .modal, .tr-datepicker-pop, .showcase-live .dot { animation: none; }
}

/* ===== OTURUM AÇMA EKRANLARI — AuthShell (2026-10-26) =====
   Tasarım dili: mevzuat ekranındaki cam kart + yumuşak gölge; 4/8 boşluk ölçeği.
   Sol panel koyu (logo-dark), sağda cam kart içinde form (logo-light). Telefonda tek sütun. */
.auth-split { grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr); }
.auth-showcase { padding: 48px 56px; gap: 32px; }
.showcase-logo { display: block; }
.showcase-tag { text-transform: none; letter-spacing: 0.02em; padding: 4px 12px; }
.showcase-headline { font-size: 32px; line-height: 1.25; max-width: 20ch; margin: 0; }
.showcase-lead { margin-top: 16px; font-size: 15px; line-height: 1.65; max-width: 52ch; }
.showcase-features { list-style: none; padding: 0; margin: 32px 0 0; gap: 24px; }
.sc-feat { gap: 16px; }
.sc-feat-body h2 { font-size: 15px; font-weight: 600; margin: 0 0 4px; color: #fff; letter-spacing: -0.01em; }
.sc-feat-body p { font-size: 13.5px; line-height: 1.55; color: rgba(255,255,255,0.72); max-width: 46ch; margin: 0; }

.auth-form-panel { background: transparent; padding: 48px 24px; }
.auth-form {
  max-width: 440px; padding: 40px; border-radius: var(--radius);
  background: var(--glass); border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 2px 4px rgba(29,28,26,0.05), 0 16px 40px -12px rgba(29,28,26,0.18);
}
.af-logo { display: block; margin-bottom: 32px; }
.af-title { font-size: 26px; line-height: 1.25; margin: 0 0 8px; color: var(--text); }
.af-sub { font-size: 14px; line-height: 1.55; color: var(--text-mute); margin: 0 0 24px; }
.af-form { display: flex; flex-direction: column; gap: 16px; }
.af-field { display: flex; flex-direction: column; }
.af-field .login-label, .auth-form .login-label { margin: 0 0 8px; }
.af-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.af-label-row .login-link { min-height: 0; font-size: 13px; }
.auth-form .login-input { width: 100%; }
.auth-form .login-label + .login-input { margin-bottom: 0; }
.auth-form .login-btn { margin-top: 8px; min-height: 48px; font-size: 15px; }
.auth-form .login-error { margin: 0; }
.auth-form .login-note { margin: 24px 0 0; padding-top: 16px; border-top: 1px solid var(--border); }
.auth-form .login-check { display: flex; align-items: center; gap: 8px; min-height: 32px; font-size: 14px; }
.auth-form .login-hint { margin: 8px 0 0; }
.auth-form .login-info { margin-bottom: 16px; }
.pw-wrap { position: relative; }
.pw-wrap .login-input { padding-right: 52px; }
/* Göz düğmesi (PasswordToggle): 40 px kare hedef; kapalıyken göz, açıkken üstü çizili göz. */
.pw-toggle {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; padding: 0; border: 0; border-radius: var(--radius-sm); background: transparent;
  display: grid; place-items: center; color: var(--text-soft); cursor: pointer;
}
.pw-toggle svg { width: 20px; height: 20px; }
.pw-toggle .pw-eye-off, .pw-toggle[aria-pressed="true"] .pw-eye { display: none; }
.pw-toggle[aria-pressed="true"] .pw-eye-off { display: block; }
.pw-toggle:hover { background: var(--surface-2); color: var(--primary); }
.pw-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.nav-brand { margin-right: 24px; }

@media (max-width: 960px) {
  .auth-form-panel { padding: 24px 16px; }
  .auth-form { padding: 32px 24px; }
}
/* Şifremi unuttum / Parola belirle: alan sarmalayıcısı olmayan formlarda aynı dikey ritim. */
.auth-form form:not(.af-form) .login-label { margin: 16px 0 8px; }
.auth-form form:not(.af-form) .login-label:first-of-type { margin-top: 0; }
.auth-form form:not(.af-form) .login-btn { margin-top: 24px; }
@media (max-width: 960px) {
  .auth-split { grid-template-columns: 1fr; }
  .af-label-row { flex-wrap: wrap; }
}

/* Köşe standardı (2026-10-26): rozet ve çipler küçük (6 px); buton, alan, kart, panel, pencere 10 px. */
.cat-badge, .role-pill, .status-badge, .tag, .count-pill, .tg-chip, .task-due, .task-role,
.metric-chip, .live-pill, .ai-pill, .showcase-tag, .sc-src, .brand-tag, .kbd-hint, .release-new { border-radius: var(--radius-sm); }
.cat-kind .cat-badge { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.kind-tail { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.btn, .btn-sm, .login-btn, .login-input, .search-go, .filter-group, .nav-tab, .nav-user-trigger, .pager-btn,
.sort-input, .admin-form-card, .item, .task-group, .modal, .auth-form, .user-menu { border-radius: var(--radius); }
.filter-btn { border-radius: calc(var(--radius) - 3px); }


/* =====================================================================
   TELEFON BOŞLUK SİSTEMİ (≤768 px, 2026-10-26 — iki ajanın mobil denetimi)
   Tek yan boşluk 16 px (--page-gutter); kart içi 16 px; grup içi 8, kartlar arası 12,
   bölümler arası 16–24 px; dokunma hedefi ≥44 px. Ana sayfa (.mz-page 16 px) referanstır.
   ===================================================================== */
.cb-short { display: none; }
@media (max-width: 768px) {
  :root { --page-gutter: 16px; }

  /* Üst menü ve uyarı bandı */
  .top-nav { padding: 0 var(--page-gutter); }
  .nav-right .nav-user-trigger { min-height: 44px; min-width: 44px; justify-content: center; }
  .nav-tabs { margin: 0 calc(-1 * var(--page-gutter)); padding: 4px var(--page-gutter); width: calc(100% + 2 * var(--page-gutter)); }
  .nav-tab { min-height: 44px; }
  .compliance-banner { padding: 8px var(--page-gutter); gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.45; }
  .compliance-banner .svg-ico { margin-top: 2px; }
  .cb-long { display: none; }
  .cb-short { display: inline; }

  /* Sayfa iskeleti */
  .page-header, .toolbar, .search-bar, .admin-context-bar { padding-left: var(--page-gutter); padding-right: var(--page-gutter); }
  .content { padding: 16px var(--page-gutter) 32px; }
  .flash, .ai-activity-banner, .run-summary { margin-left: var(--page-gutter); margin-right: var(--page-gutter); }
  .empty-state { padding: 48px 16px; }

  /* Kartlar: iç boşluk 16, aralarında 12 */
  .admin-form-card, .mcal-day-panel, .tg-head, .source-card { padding: 16px; }
  .admin-form-card, .task-group { margin-bottom: 12px; }
  .afc-row > .field { flex: 1 1 100%; }
  .afc-row > .btn, .afc-actions .btn { width: 100%; min-height: 48px; }

  /* Yönetim sekmeleri: metin başlıkla aynı hizada */
  .admin-tab:first-child { padding-left: 0; }

  /* Araç çubuğu: her etiket kendi kontrolünün yanında (sahipsiz etiket olmasın) */
  .toolbar { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; row-gap: 8px; align-items: center; }
  .toolbar > .toolbar-search, .toolbar > .sort-select, .toolbar > .toolbar-hint, .toolbar > .daterange, .toolbar > .btn { grid-column: 1 / -1; }
  .toolbar .toolbar-spacer { display: none; }
  .toolbar .filter-group { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; }
  .toolbar > .filter-group:first-child { grid-column: 1 / -1; }

  /* Yoğun tablolar: okunan kayıtlar kart gibi alt alta (Taramalar, Ham Dokümanlar, Loglar, Geri Bildirimler, Ayarlar) */
  .raw-table.stack, .raw-table.stack tbody { display: block; overflow: visible; }
  .raw-table.stack thead { display: none; }
  .raw-table.stack tr { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 12px var(--page-gutter); border-bottom: 1px solid var(--border); }
  .raw-table.stack td { display: block; padding: 0; border: 0; }
  .raw-table.stack td:not(.col-date):not(.col-src):not(.col-status):not(.col-num):not(.col-act) { flex: 1 1 100%; min-width: 0; }
  .raw-table.stack td[colspan] { flex-basis: 100%; }
  .raw-table.stack .col-act { width: auto; flex: 0 0 auto; margin-left: auto; white-space: nowrap; }
  .raw-table.stack td.settings-updated { flex: 0 0 auto; }
  .log-msg { max-width: none; }
  .col-src { display: flex; flex-wrap: wrap; gap: 4px; }
  .settings-table .settings-input { width: 100%; min-width: 96px; }

  /* Kısa varlık listeleri: yatay kayar, ilk sütun sabit (Firmalar, Platform/Firma kullanıcıları) */
  .raw-table:not(.stack) th:first-child, .raw-table:not(.stack) td:first-child {
    position: sticky; left: 0; z-index: 1; background: var(--surface); min-width: 160px; box-shadow: 1px 0 0 var(--border);
  }
  .raw-table:not(.stack) thead th:first-child { background: var(--surface-2); }
  .raw-table td.col-date, .raw-table .mono, .admin-table .role-pill { white-space: nowrap; }
  .firm-table th:nth-child(4), .firm-table td:nth-child(4) { display: none; }

  /* Görevlerim: onay kutusu metinle aynı satırda, satırlar kart kenarına hizalı */
  .tg-body { padding: 0 0 8px; }
  .task-row { gap: 12px; padding-left: 16px; padding-right: 16px; }
  .task-text { flex: 1 1 calc(100% - 36px); }
  .task-role { margin-left: 36px; }

  /* Takvim: lejant tek satır, gün panelinde metin tam genişlik */
  .toolbar:has(.mcal-nav) { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
  .toolbar:has(.mcal-nav) > .mcal-nav { flex-basis: 100%; }
  .toolbar:has(.mcal-nav) > .btn { width: auto; }
  .toolbar > .mcal-legend { margin-left: 0; }
  .mcal-day-text { order: 3; flex-basis: 100%; }

  /* Bildirim Tercihleri: çerçeve içinde çerçeve olmasın */
  .admin-form-card:has(.npref-master) { background: none; border: 0; box-shadow: none; padding: 0; }
  .npref-master, .npref-role, .npref-how { padding: 12px 16px; }
  .npref-role-text span, .npref-master-text span { font-size: 13px; }

  /* Sürüm notları ritmi */
  .changelog { gap: 24px; }
  .release-head { margin-bottom: 8px; }

  /* Giriş ekranları: kart üstte başlar, kart içi 16 px */
  .auth-form-panel { padding: 32px 16px; }
  .auth-form { padding: 24px 16px; }
}

/* Bootstrap'in pasif buton rengi (#0d6efd) birincil eylemi ezmesin — her ekran boyutunda. */
.btn-primary:disabled, .btn-primary.disabled { background: var(--cta); border-color: var(--cta); color: #fff; opacity: .45; }

/* ===== TAM DENETİM (2026-10-26): dört ajanın bulguları, ekran ekran ===== */

/* Sayfa çerçevesi Mevzuat ekranıyla aynı: beyaz başlık bandı yok, filtre çubuğu kart, 40 px kenar. */
@media (min-width: 1025px) { :root { --page-gutter: 40px; } }
.page-header, .admin-area .page-header { background: transparent; border-bottom: 0; padding-top: 32px; }
.page-title-block h1 { font-size: 24px; }
.toolbar {
  margin: 0 var(--page-gutter); padding: 10px 16px; border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-xs);
}
.toolbar + .toolbar { margin-top: 8px; }
.toolbar-label { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 13px; color: var(--text-mute); }

/* Kategori rozeti nötr: renk durum (etki, gecikme) için ayrılmıştır; kategoriyi metin söyler. */
.cat-badge, .cat-vergi, .cat-sgk, .cat-efatura, .cat-kvkk, .cat-tesvik, .cat-kgk,
.cat-surdurulebilirlik, .cat-bilgiguvenligi, .cat-rekabet, .cat-tcmb, .cat-gumruk {
  background: var(--surface-2); color: var(--text-soft); border: 1px solid var(--border);
  text-transform: none; font-weight: 500;
}
.cat-badge .sq { display: none; }
.cat-kind .cat-badge { border-color: var(--border); }
.kind-tail { border-color: var(--border); color: var(--text-soft); }

/* Takvim: görev mürekkep (kırmızı yalnız gecikme), komşu ay çipleri okunur, lejant işaretlerle aynı. */
.mcal-chip.kind-gorev, .agenda-kind.kind-gorev { background: var(--primary-soft); color: var(--primary); }
.dot.kind-gorev { background: var(--primary); border-radius: 1px; }
.mcal-cell.other .mcal-chip { opacity: 1; background: var(--surface-2); color: var(--text-mute); }
.mcal-cell.other .mcal-chip .dot { opacity: .6; }
.mcal-nav-btn { width: 36px; height: 36px; border-radius: var(--radius); }
@media (pointer: coarse) { .mcal-nav-btn { width: 44px; height: 44px; } }

/* Görevlerim: gecikme yalnız metin rengiyle; dolgulu alarm grup sayacında kalır. */
.task-due { background: transparent; padding-left: 0; padding-right: 0; }
.task-due.normal { color: var(--text-soft); }
.task-text { max-width: 90ch; }

/* Pasif birincil buton açık bordo yüzey boyamaz. */
.btn-primary:disabled, .btn-primary.disabled, .login-btn:disabled {
  background: var(--surface-2); border-color: var(--border); color: var(--text-faint); opacity: 1;
}

/* Bilgilendirme bandı: zorunlu cümle, tek satır, sıcak nötr zemin. */
.compliance-banner { background: var(--surface-2); border-bottom: 1px solid var(--border); color: var(--text-soft); }
.compliance-banner .svg-ico { color: var(--primary); }
.compliance-banner strong { color: var(--text); }

/* Üst menü: seçili sekme açıkça seçili. */
.nav-tab.active { background: rgba(34, 48, 60, .1); color: var(--primary); font-weight: 600; }

/* Menüler: Çıkış hata değildir; telefonda 44 px satır. */
.user-menu-item.danger { color: var(--text-soft); }
@media (max-width: 768px) {
  .user-menu-item { min-height: 44px; }
  .user-menu { max-width: calc(100vw - 32px); }
}

/* Oturum açma: tanıtım paneli düz mürekkep; masaüstünde logo panelde zaten var. */
.auth-showcase { background: var(--primary); }
.auth-showcase::before { display: none; }
@media (min-width: 961px) { .af-logo { display: none; } }
/* InputText geçerli alanda aria-invalid basmaz; sunucu hatası alan sarmalayıcısındaki has-error ile gösterilir. */
.login-input[aria-invalid="true"], .has-error .login-input { border-color: var(--red); }
.login-input[aria-invalid="true"]:focus, .has-error .login-input:focus { box-shadow: 0 0 0 3px rgba(194, 65, 12, .18); }

/* Hata sayfaları: yol gösteren iki eylem. */
.page-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
.page-actions .btn { min-height: 44px; padding: 0 20px; display: inline-flex; align-items: center; }
.access-denied .who { font-size: 13px; color: var(--text-mute); margin-top: 8px; }

/* Yönetim: çözüm butonu durum gibi görünmez; sınıflandırma rozeti nötr. */
.btn-resolve { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn-resolve:hover { background: var(--surface-2); border-color: var(--text-mute); color: var(--text); }
.status-badge.neutral { background: var(--surface-2); color: var(--text-soft); border: 1px solid var(--border); }
.log-exception pre { overflow-wrap: anywhere; white-space: pre-wrap; max-width: 100%; }
.raw-table td.col-msg, .raw-table .log-msg { overflow-wrap: anywhere; }
.toolbar-field { display: inline-flex; align-items: center; gap: 8px; flex-wrap: nowrap; max-width: 100%; }
.toolbar-confirm { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* Pencereler: kapatma 40 px; alt butonlar tam boy; buton linklerinin altı çizilmez. */
.modal-close { min-width: 40px; min-height: 40px; }
.modal-foot .btn-sm { padding: 8px 14px; font-size: 13.5px; }
a.btn, .mz-root a.btn { text-decoration: none; }
.mz-root .btn-primary, .mz-root .btn-primary:hover { color: #fff; }
.tfact .tag.later { background: var(--surface-2); color: var(--text-soft); }

/* Onboarding: yapay zekâ görünümü yok. */
.onb-flow-step.ai { background: var(--surface); border-color: var(--primary); }
.brief-panel { background: var(--surface); }

@media (max-width: 768px) {
  .btn { justify-content: center; }
  .toolbar { margin: 0 var(--page-gutter); padding: 12px; }
  .toolbar .filter-group { flex-wrap: wrap; overflow: visible; }
  .mcal-month-title { min-width: 0; flex: 1; }
  .tfact { flex-wrap: wrap; }
  .tfact .d { flex-basis: 100%; white-space: normal; }
  .template-scope { flex-direction: column; align-items: flex-start; gap: 2px; }
  .toolbar-confirm { grid-column: 1 / -1; display: flex; width: 100%; }
  .toolbar-confirm > span { flex-basis: 100%; }
  .toolbar-confirm .btn { flex: 1 1 0; min-height: 44px; }

  /* Yığılmış tablo satırları: hücre genişliği tablodan değil içerikten gelir; çakışma yok. */
  .raw-table.stack td { width: auto !important; }
  .raw-table.stack .col-date, .raw-table.stack .col-src, .raw-table.stack .col-status, .raw-table.stack .col-num { flex: 0 0 auto; }
  .raw-table.stack td[data-label]::before { content: attr(data-label) " "; color: var(--text-mute); font-size: 12px; }
  .raw-table.stack td.col-act { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-start; }
  .raw-table.stack td.col-act .btn, .raw-table.stack td.col-act .btn-sm { min-height: 44px; }
  .time-remove { min-width: 44px; min-height: 44px; }
}
@media (max-width: 768px) {
  /* Varlık listeleri (Firmalar, kullanıcılar) telefonda kart satırı: ad tam satır, kısa değerler yan yana, eylemler altta. */
  .admin-table.stack td { flex: 0 0 auto !important; }
  .admin-table.stack td:first-child, .admin-table.stack td.col-act { flex: 1 1 100% !important; margin-left: 0; }
  .firm-table.stack td:nth-child(4) { display: block; }
}
.release-details { margin-top: 10px; }
.release-details summary { cursor: pointer; font-size: 13px; font-weight: 500; color: var(--text-soft); min-height: 32px; display: flex; align-items: center; }
.release-details summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: var(--radius-sm); }
.release-details[open] summary { margin-bottom: 6px; }
.top-nav .nav-tabs { border-bottom: 0; } /* Bootstrap .nav-tabs alt çizgisi üst menüde istenmez */

/* Yönetim sayfaları tek ölçü: form, tablo ve kartlar aynı genişlikte biter; dar sayfalar ekranın
   yarısını boş bırakmaz, geniş veri tabloları (Taramalar, Ham Dokümanlar, Loglar) tam genişlik kalır. */
:root { --admin-measure: 1100px; }
.admin-form-card, .admin-table, .settings-table, .settings-add, .settings-hint, .source-card, .suggest-card { max-width: var(--admin-measure); }
.admin-table ~ .pager, .admin-table + * .pager { max-width: var(--admin-measure); }

/* Profil: seçenekler Bildirim Tercihleri'ndeki gibi çerçeveli satırlar, masaüstünde iki sütun. */
.radio-stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.radio-stack > p { grid-column: 1 / -1; margin-bottom: 4px; }
.radio-stack .login-check {
  min-height: 48px; padding: 0 14px; margin: 0; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); cursor: pointer;
}
.radio-stack .login-check:hover { border-color: var(--border-strong); }
.radio-stack .login-check:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
@media (max-width: 768px) { .radio-stack { grid-template-columns: 1fr; } }

/* Bildirim Tercihleri: ana anahtarlar bilgi notundan ayrışır (beyaz kart), not tek mavi yüzey kalır. */
.npref-master, .npref-master.on { background: var(--surface); }
.npref-master.on { border-color: var(--primary); }

/* Takvim: geniş ekranda gün paneli ızgaranın yanında, kaydırırken sabit. */
@media (min-width: 1200px) {
  .mcal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
  .mcal-layout .mcal-day-panel { position: sticky; top: 88px; margin-top: 0; max-height: calc(100vh - 108px); overflow-y: auto; }
  .mcal-layout .mcal-day-item { flex-wrap: wrap; }
  .mcal-layout .mcal-day-text { flex-basis: 100%; order: 3; }
}
.mcal-day-empty .mcal-day-link { margin-top: 8px; padding: 0; background: none; border: 0; color: var(--primary); font-weight: 500; }

/* Görevlerim: kartlar filtre çubuğuyla aynı genişlikte; tarih rozetleri dolgusuz (renk yalnız metinde). */
.tg-notice { margin: 16px var(--page-gutter) 0; }
.task-due.warn, .task-due.normal { background: transparent; }
.flash.info { background: var(--surface-2); color: var(--text-soft); border-color: var(--border); border-radius: var(--radius); }
.user-menu-item.danger .svg-ico { width: 14px; height: 14px; color: var(--text-mute); }
/* Telefonda üst çubuk sayfayla kayar: marka + sekme satırı ekranın yaklaşık altıda birini sürekli kaplıyordu. */
@media (max-width: 768px) { .top-nav { position: relative; } }
.fb-resolved-at { display: block; margin-top: 4px; }
@media (max-width: 768px) {
  /* Geri Bildirimler: tarih solda, durum aynı satırda sağda; bildiren etiketli. */
  .fb-row td.col-status { margin-left: auto; order: -1; }
  .fb-row td.col-date { order: -2; }
  .fb-row td.fb-reporter { display: flex; flex-wrap: wrap; gap: 0 6px; font-size: 13px; }
}
@media (max-width: 768px) { .toolbar-field { display: contents; } }
.status-badge.quiet { background: transparent; border: 0; color: var(--text-mute); font-weight: 500; text-transform: none; letter-spacing: 0; padding-left: 0; padding-right: 0; }
/* Form açılır listeleri metin alanlarıyla aynı yazı boyu ve ok işaretiyle (Firma/Platform kullanıcı formları). */
select.login-input {
  appearance: none; -webkit-appearance: none; padding-right: 36px; font-size: 14px; color: var(--text);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23716b62' stroke-width='1.6'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 12px center / 14px;
  text-overflow: ellipsis;
}
@media (max-width: 768px) { select.login-input { font-size: 16px; } }
.af-options { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.af-options .login-link { font-size: 14px; min-height: 32px; display: inline-flex; align-items: center; }
.auth-form .af-title { margin-bottom: 24px; }
.af-demo { margin: 16px 0 0; text-align: center; font-size: 14px; color: var(--text-mute); }
.af-demo .login-link { font-weight: 600; color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }

/* Oturum ekranı paneli: logo + kart birlikte yatay ve dikey ortada (telefonda da), logo kartın üstünde. */
.auth-form-panel {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 100vh; min-height: 100dvh;
}
.auth-form-panel .af-logo { margin: 0 0 24px; }

/* Seçimli düğme grupları (Tür, Durum, Kategori…): seçili seçenek mürekkeple dolu, yazı beyaz (2026-10-30).
   Önceden beyaz zemin + aynı yazı rengiydi; neredeyse beyaz grup zemininde hangisinin seçili olduğu okunmuyordu. */
.filter-btn.active { background: var(--primary); color: #fff; box-shadow: none; font-weight: 600; }
.filter-btn.active .count { color: rgba(255, 255, 255, .78); }
.filter-btn:not(.active) { color: var(--text-soft); }
.filter-btn:not(.active):hover { background: var(--surface); color: var(--text); }
.toolbar-sub .toolbar-label { color: var(--text-soft); font-weight: 600; }
