    :root {
      --tm-bg: #f3f5f8;
      --tm-surface: #ffffff;
      --tm-surface-alt: #f8fafc;
      --tm-surface-hover: #f1f5f9;
      --tm-border: #e2e8f0;
      --tm-border-strong: #cbd5e1;
      --tm-text: #0f172a;
      --tm-text-secondary: #334155;
      --tm-muted: #64748b;
      --tm-accent: #1d4ed8;
      --tm-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
      --tm-overlay: rgba(241, 245, 249, 0.92);
    }

    html.theme-anthracite {
      --tm-bg: #181a1f;
      --tm-surface: #21242b;
      --tm-surface-alt: #282c34;
      --tm-surface-hover: #2f343e;
      --tm-border: #323741;
      --tm-border-strong: #3f4654;
      --tm-text: #f1f5f9;
      --tm-text-secondary: #cbd5e1;
      --tm-muted: #9ca3af;
      --tm-accent: #2563eb;
      --tm-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
      --tm-overlay: rgba(24, 26, 31, 0.93);
    }

    body {
      background-color: var(--tm-bg) !important;
      color: var(--tm-text) !important;
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
      transition: background-color 0.2s ease, color 0.2s ease;
    }

    /* Kurumsal Antrasit Tema Yuzeyleri */
    html.theme-anthracite .fixed[class*="bg-[#070c18]"] {
      background-color: var(--tm-overlay) !important;
    }
    html.theme-anthracite [class*="bg-[#070c18]"]:not(.fixed),
    html.theme-anthracite [class*="bg-[#090e1a]"] {
      background-color: var(--tm-bg) !important;
    }
    html.theme-anthracite [class*="bg-[#0f172a]"],
    html.theme-anthracite [class*="from-[#0f172a]"],
    html.theme-anthracite [class*="from-slate-900"],
    html.theme-anthracite [class*="bg-slate-900"],
    html.theme-anthracite [class*="bg-slate-950"] {
      background-color: var(--tm-surface) !important;
      background-image: none !important;
    }
    html.theme-anthracite [class*="bg-[#1e293b]"],
    html.theme-anthracite [class*="bg-slate-800"],
    html.theme-anthracite [class*="bg-slate-700"] {
      background-color: var(--tm-surface-alt) !important;
    }
    html.theme-anthracite [class*="border-slate-8"],
    html.theme-anthracite [class*="border-slate-7"] {
      border-color: var(--tm-border) !important;
    }
    html.theme-anthracite [class*="shadow-blue-"],
    html.theme-anthracite [class*="shadow-emerald-"],
    html.theme-anthracite [class*="shadow-rose-"],
    html.theme-anthracite [class*="shadow-purple-"] {
      --tw-shadow-color: transparent !important;
    }

    /* Kurumsal Acik Tema Yuzeyleri (Varsayilan) */
    html:not(.theme-anthracite) .fixed[class*="bg-[#070c18]"] {
      background-color: var(--tm-overlay) !important;
    }
    html:not(.theme-anthracite) [class*="bg-[#070c18]"]:not(.fixed),
    html:not(.theme-anthracite) [class*="bg-[#090e1a]"] {
      background-color: var(--tm-surface-alt) !important;
    }
    html:not(.theme-anthracite) [class*="bg-[#0f172a]"],
    html:not(.theme-anthracite) [class*="from-[#0f172a]"],
    html:not(.theme-anthracite) [class*="from-slate-900"],
    html:not(.theme-anthracite) [class*="bg-slate-900"],
    html:not(.theme-anthracite) [class*="bg-slate-950"] {
      background-color: var(--tm-surface) !important;
      background-image: none !important;
      box-shadow: var(--tm-shadow);
    }
    html:not(.theme-anthracite) [class*="bg-[#1e293b]"],
    html:not(.theme-anthracite) [class*="bg-slate-800"],
    html:not(.theme-anthracite) [class*="bg-slate-700"] {
      background-color: var(--tm-surface-alt) !important;
      color: var(--tm-text) !important;
    }
    html:not(.theme-anthracite) [class*="hover:bg-slate-8"]:hover,
    html:not(.theme-anthracite) [class*="hover:bg-slate-7"]:hover {
      background-color: var(--tm-surface-hover) !important;
    }
    html:not(.theme-anthracite) [class*="border-slate-8"],
    html:not(.theme-anthracite) [class*="border-slate-7"] {
      border-color: var(--tm-border) !important;
    }
    html:not(.theme-anthracite) .divide-slate-800\/60 > :not([hidden]) ~ :not([hidden]) {
      border-color: var(--tm-border) !important;
    }

    /* Acik Temada Metin Kontrasti (Renkli butonlar haric) */
    html:not(.theme-anthracite) .text-white:not([class*="bg-blue-6"]):not([class*="bg-blue-5"]):not([class*="bg-emerald-6"]):not([class*="bg-emerald-5"]):not([class*="bg-rose-6"]):not([class*="bg-rose-5"]):not([class*="bg-rose-7"]):not([class*="bg-purple-6"]):not([class*="bg-indigo-6"]):not([class*="bg-sky-6"]):not([class*="bg-amber-6"]):not([class*="bg-red-6"]) {
      color: var(--tm-text) !important;
    }
    html:not(.theme-anthracite) .text-slate-100,
    html:not(.theme-anthracite) .text-slate-200 {
      color: var(--tm-text) !important;
    }
    html:not(.theme-anthracite) .text-slate-300 {
      color: var(--tm-text-secondary) !important;
    }
    html:not(.theme-anthracite) .text-slate-400,
    html:not(.theme-anthracite) .text-slate-500 {
      color: var(--tm-muted) !important;
    }

    /* Acik Temada Pastel Durum Rozetleri & Butonlar */
    html:not(.theme-anthracite) [class*="bg-emerald-950"],
    html:not(.theme-anthracite) [class*="bg-emerald-900"] {
      background-color: #ecfdf5 !important;
      border-color: #a7f3d0 !important;
    }
    html:not(.theme-anthracite) [class*="text-emerald-200"],
    html:not(.theme-anthracite) [class*="text-emerald-300"],
    html:not(.theme-anthracite) [class*="text-emerald-400"] {
      color: #047857 !important;
    }
    html:not(.theme-anthracite) [class*="bg-blue-950"],
    html:not(.theme-anthracite) [class*="bg-blue-900"],
    html:not(.theme-anthracite) [class*="bg-blue-600/20"],
    html:not(.theme-anthracite) [class*="bg-sky-950"],
    html:not(.theme-anthracite) [class*="bg-sky-900"] {
      background-color: #eff6ff !important;
      border-color: #bfdbfe !important;
    }
    html:not(.theme-anthracite) [class*="text-blue-200"],
    html:not(.theme-anthracite) [class*="text-blue-300"],
    html:not(.theme-anthracite) [class*="text-blue-400"],
    html:not(.theme-anthracite) [class*="text-sky-200"],
    html:not(.theme-anthracite) [class*="text-sky-300"],
    html:not(.theme-anthracite) [class*="text-sky-400"] {
      color: #1d4ed8 !important;
    }
    html:not(.theme-anthracite) [class*="bg-rose-950"],
    html:not(.theme-anthracite) [class*="bg-rose-900"] {
      background-color: #fef2f2 !important;
      border-color: #fecaca !important;
    }
    html:not(.theme-anthracite) [class*="text-rose-100"],
    html:not(.theme-anthracite) [class*="text-rose-200"],
    html:not(.theme-anthracite) [class*="text-rose-300"],
    html:not(.theme-anthracite) [class*="text-rose-400"] {
      color: #b91c1c !important;
    }
    html:not(.theme-anthracite) [class*="bg-amber-950"],
    html:not(.theme-anthracite) [class*="bg-amber-900"],
    html:not(.theme-anthracite) [class*="bg-amber-600/20"] {
      background-color: #fffbeb !important;
      border-color: #fde68a !important;
    }
    html:not(.theme-anthracite) [class*="text-amber-200"],
    html:not(.theme-anthracite) [class*="text-amber-300"],
    html:not(.theme-anthracite) [class*="text-amber-400"] {
      color: #b45309 !important;
    }
    html:not(.theme-anthracite) [class*="bg-purple-950"],
    html:not(.theme-anthracite) [class*="bg-purple-900"],
    html:not(.theme-anthracite) [class*="bg-indigo-950"],
    html:not(.theme-anthracite) [class*="bg-indigo-900"] {
      background-color: #f5f3ff !important;
      border-color: #ddd6fe !important;
    }
    html:not(.theme-anthracite) [class*="text-purple-200"],
    html:not(.theme-anthracite) [class*="text-purple-300"],
    html:not(.theme-anthracite) [class*="text-purple-400"],
    html:not(.theme-anthracite) [class*="text-indigo-200"],
    html:not(.theme-anthracite) [class*="text-indigo-300"],
    html:not(.theme-anthracite) [class*="text-indigo-400"] {
      color: #5b21b6 !important;
    }
    html:not(.theme-anthracite) [class*="shadow-blue-"],
    html:not(.theme-anthracite) [class*="shadow-emerald-"],
    html:not(.theme-anthracite) [class*="shadow-rose-"],
    html:not(.theme-anthracite) [class*="shadow-purple-"] {
      --tw-shadow-color: transparent !important;
      box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08) !important;
    }
    html:not(.theme-anthracite) input,
    html:not(.theme-anthracite) select,
    html:not(.theme-anthracite) textarea {
      background-color: #ffffff !important;
      color: #0f172a !important;
      border-color: #cbd5e1 !important;
    }
    html:not(.theme-anthracite) input::placeholder,
    html:not(.theme-anthracite) textarea::placeholder {
      color: #94a3b8 !important;
    }
    html:not(.theme-anthracite) [id^="rec-player-row-"] {
      background-color: #f1f5f9 !important;
      color: #0f172a !important;
    }
    html:not(.theme-anthracite) [id^="rec-player-row-"] button {
      color: #475569 !important;
    }
    html:not(.theme-anthracite) #userPermissionsMatrixWrap {
      background-color: #f8fafc !important;
      border-color: #cbd5e1 !important;
    }
    html:not(.theme-anthracite) #userPermissionsMatrixWrap > div:first-child span:first-child {
      color: #0f172a !important;
    }
    html:not(.theme-anthracite) #userPermissionsGrid label {
      background-color: #ffffff !important;
      border-color: #e2e8f0 !important;
    }
    html:not(.theme-anthracite) #userPermissionsGrid label span {
      color: #1e293b !important;
    }
    html:not(.theme-anthracite) #reportSubCallbacks .cb-kpi-card {
      background-color: #f8fafc !important;
      border-color: #e2e8f0 !important;
    }

    /* Seçenek B — Yumuşak Nötr Kart Başlık Bandı (Sol Mavi Şeritsiz, Kurumsal & Sade) */
    section[class*="rounded-2xl"] > div[class*="border-b"]:first-child {
      background-color: var(--tm-surface-alt) !important;
      border: 1px solid var(--tm-border) !important;
      border-radius: 0.75rem !important;
      padding: 0.75rem 1rem !important;
    }
    section[class*="rounded-2xl"] > div[class*="border-b"]:first-child h2,
    section[class*="rounded-2xl"] > div[class*="border-b"]:first-child h3,
    section[class*="rounded-2xl"] > div[class*="border-b"]:first-child h4 {
      color: var(--tm-text) !important;
    }
    section[class*="rounded-2xl"] > div[class*="border-b"]:first-child p {
      color: var(--tm-muted) !important;
    }
    html.theme-anthracite section[class*="rounded-2xl"] > div[class*="border-b"]:first-child {
      background-color: #262a33 !important;
      border: 1px solid var(--tm-border) !important;
    }
    html.theme-anthracite section[class*="rounded-2xl"] > div[class*="border-b"]:first-child h2,
    html.theme-anthracite section[class*="rounded-2xl"] > div[class*="border-b"]:first-child h3 {
      color: var(--tm-text) !important;
    }
    html.theme-anthracite section[class*="rounded-2xl"] > div[class*="border-b"]:first-child p {
      color: var(--tm-muted) !important;
    }
    /* Tüm Kart Başlık İkon Kutuları — Set A Solid İkon Rozeti (Açık & Antrasit) */
    section[class*="rounded-2xl"] > div[class*="border-b"]:first-child div[class*="w-10"][class*="h-10"],
    section[class*="rounded-2xl"] > div[class*="border-b"]:first-child div[class*="w-9"][class*="h-9"],
    section[class*="rounded-2xl"] > div[class*="border-b"]:first-child .card-head-icon {
      background-color: var(--tm-surface) !important;
      border: 1px solid var(--tm-border) !important;
      color: var(--tm-text-secondary) !important;
      box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    }
    html.theme-anthracite section[class*="rounded-2xl"] > div[class*="border-b"]:first-child div[class*="w-10"][class*="h-10"],
    html.theme-anthracite section[class*="rounded-2xl"] > div[class*="border-b"]:first-child div[class*="w-9"][class*="h-9"],
    html.theme-anthracite section[class*="rounded-2xl"] > div[class*="border-b"]:first-child .card-head-icon {
      background-color: var(--tm-surface) !important;
      border: 1px solid var(--tm-border-strong) !important;
      color: var(--tm-text-secondary) !important;
      box-shadow: none;
    }
    .card-head-icon {
      width: 34px;
      height: 34px;
      border-radius: 0.625rem;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      background-color: var(--tm-surface);
      border: 1px solid var(--tm-border);
      color: var(--tm-text-secondary);
    }
    .page-head-icon {
      width: 38px;
      height: 38px;
      border-radius: 0.75rem;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      background-color: var(--tm-surface-alt);
      border: 1px solid var(--tm-border);
      color: var(--tm-text-secondary);
    }

    /* Açılır-Kapanır (Akordeon) Kartlar & Boşluksuz Yerleşim */
    section.collapsible-card > div[class*="border-b"]:first-child {
      cursor: pointer;
      user-select: none;
      transition: background-color 0.15s ease, border-color 0.15s ease;
    }
    section.collapsible-card > div[class*="border-b"]:first-child:hover {
      background-color: var(--tm-surface-hover) !important;
    }
    section.collapsible-card.is-collapsed {
      padding-bottom: 1.25rem !important;
    }
    section.collapsible-card.is-collapsed > div[class*="border-b"]:first-child {
      margin-bottom: 0 !important;
    }
    section.collapsible-card.is-collapsed > :not(:first-child) {
      display: none !important;
    }
    .card-collapse-chevron {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 26px;
      height: 26px;
      border-radius: 8px;
      font-size: 12px;
      font-weight: 700;
      background: var(--tm-surface);
      border: 1px solid var(--tm-border);
      color: var(--tm-text-secondary);
      transition: transform 0.2s ease;
      flex-shrink: 0;
    }
    html.theme-anthracite .card-collapse-chevron {
      background: var(--tm-surface);
      border-color: var(--tm-border-strong);
      color: var(--tm-text-secondary);
    }
    section.collapsible-card.is-collapsed .card-collapse-chevron {
      transform: rotate(-90deg);
    }

    .custom-scrollbar::-webkit-scrollbar {
      width: 6px;
      height: 6px;
    }
    .custom-scrollbar::-webkit-scrollbar-track {
      background: var(--tm-surface-alt);
    }
    .custom-scrollbar::-webkit-scrollbar-thumb {
      background: var(--tm-border-strong);
      border-radius: 4px;
    }

    /* ==================== DARALTILABİLİR SOL SIDEBAR ==================== */
    #appSidebar {
      width: 244px;
      transition: width 0.2s ease, transform 0.2s ease;
    }
    body.sidebar-collapsed #appSidebar {
      width: 68px;
    }
    body.sidebar-collapsed #appSidebar .sidebar-text,
    body.sidebar-collapsed #appSidebar .sidebar-group-title,
    body.sidebar-collapsed #appSidebar .sidebar-brand-meta {
      display: none !important;
    }
    body.sidebar-collapsed #appSidebar .sidebar-nav-btn {
      justify-content: center;
      padding-left: 0.5rem;
      padding-right: 0.5rem;
    }
    body.sidebar-collapsed #appSidebar .sidebar-brand-row {
      justify-content: center;
      padding-left: 0.5rem;
      padding-right: 0.5rem;
    }
    @media (max-width: 1023px) {
      #appSidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 45;
        width: 256px !important;
        transform: translateX(-100%);
      }
      body.sidebar-mobile-open #appSidebar {
        transform: translateX(0);
      }
      body.sidebar-mobile-open #sidebarMobileBackdrop {
        display: block;
      }
    }

/* ===== Dahililer: Departman / Kuyruk Rozetleri & Kart/Liste Görünümü (Açık + Antrasit Tema) ===== */
.ext-dept-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.35;
  background-color: rgba(14, 116, 144, 0.25);
  color: #67e8f9;
  border: 1px solid rgba(34, 211, 238, 0.35);
}
html:not(.theme-anthracite) .ext-dept-pill {
  background-color: #f0f9ff !important;
  color: #0369a1 !important;
  border-color: #bae6fd !important;
}

.ext-queue-pill-on {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.35;
  background-color: rgba(67, 56, 202, 0.28);
  color: #a5b4fc;
  border: 1px solid rgba(129, 140, 248, 0.4);
}
html:not(.theme-anthracite) .ext-queue-pill-on {
  background-color: #eef2ff !important;
  color: #4338ca !important;
  border-color: #c7d2fe !important;
}

.ext-queue-pill-off {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.35;
  background-color: rgba(51, 65, 85, 0.45);
  color: #94a3b8;
  border: 1px solid rgba(100, 116, 139, 0.4);
}
html:not(.theme-anthracite) .ext-queue-pill-off {
  background-color: #f1f5f9 !important;
  color: #64748b !important;
  border-color: #cbd5e1 !important;
}

.ext-more-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  background-color: rgba(71, 85, 105, 0.55);
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.35);
}
html:not(.theme-anthracite) .ext-more-pill {
  background-color: #e2e8f0 !important;
  color: #334155 !important;
  border-color: #cbd5e1 !important;
}

.ext-view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border-radius: 8px;
  background-color: #0f172a;
  border: 1px solid #334155;
}
html:not(.theme-anthracite) .ext-view-toggle {
  background-color: #e2e8f0 !important;
  border-color: #cbd5e1 !important;
}

.ext-vt-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}
.ext-vt-btn.active {
  background-color: #1e293b;
  color: #f8fafc;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
html:not(.theme-anthracite) .ext-vt-btn {
  color: #475569 !important;
}
html:not(.theme-anthracite) .ext-vt-btn.active {
  background-color: #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08) !important;
}

.ext-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(51, 65, 85, 0.7);
  background-color: rgba(15, 23, 42, 0.45);
}
html:not(.theme-anthracite) .ext-table-wrap {
  border-color: #e2e8f0 !important;
  background-color: #ffffff !important;
}

.ext-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.ext-table th {
  text-align: left;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
  background-color: rgba(15, 23, 42, 0.75);
  padding: 9px 12px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.7);
  white-space: nowrap;
}
html:not(.theme-anthracite) .ext-table th {
  color: #64748b !important;
  background-color: #f8fafc !important;
  border-bottom-color: #e2e8f0 !important;
}
.ext-table td {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.45);
  vertical-align: middle;
}
html:not(.theme-anthracite) .ext-table td {
  border-bottom-color: #f1f5f9 !important;
}
.ext-table tbody tr:last-child td {
  border-bottom: none;
}
.ext-table tbody tr:hover {
  background-color: rgba(30, 41, 59, 0.55);
}
html:not(.theme-anthracite) .ext-table tbody tr:hover {
  background-color: #f8fafc !important;
}

/* ===== Seçili OTP Yöntemi Butonu (Açık + Antrasit Tema Yüksek Kontrast) ===== */
.otp-method-active {
  background-color: rgba(37, 99, 235, 0.25) !important;
  border-color: #3b82f6 !important;
  color: #ffffff !important;
}
html:not(.theme-anthracite) .otp-method-active {
  background-color: #eff6ff !important;
  border-color: #2563eb !important;
  color: #1d4ed8 !important;
}
html:not(.theme-anthracite) .otp-method-active span {
  color: #1d4ed8 !important;
}
