/* ============================================================
   MeetwithV2 — design system (adapted from ProjectCopilot)
   Tokens: data-theme=light|dark, data-palette=<palet> (Copilot paletleri).
   Palet blokları taban bloklardan SONRA gelmeli; koyu varyantlar çift
   attribute seçicisiyle (daha yüksek özgüllük) kazanır.
   ============================================================ */

:root, [data-palette="varsayilan"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f5;
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --border-color: #e0e0e0;
  --primary-color: #007bff;
  --primary-hover: #0056b3;
  --error-color: #dc3545;
  --success-color: #28a745;
  --warning-color: #f0ad4e;
  --focus-ring: rgba(0, 123, 255, 0.15);
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.12);
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
}

[data-theme="dark"], [data-palette="varsayilan"][data-theme="dark"] {
  --bg-primary: #1a1a1a;
  --bg-secondary: #2d2d2d;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --border-color: #404040;
  --primary-color: #4a9eff;
  --primary-hover: #357abd;
  --error-color: #ff6b6b;
  --success-color: #51cf66;
  --warning-color: #ffc078;
  --focus-ring: rgba(74, 158, 255, 0.2);
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* ===== AMBER (Orange/Amber) ===== */
[data-palette="amber"] {
  --bg-primary: #fffbf5; --bg-secondary: #fff3e0; --text-primary: #3d2914; --text-secondary: #8b6914;
  --border-color: #ffe0b2; --primary-color: #f57c00; --primary-hover: #e65100;
  --error-color: #d84315; --success-color: #558b2f;
  --focus-ring: rgba(245, 124, 0, 0.15);
  --shadow: 0 2px 10px rgba(245, 124, 0, 0.15); --shadow-lg: 0 4px 20px rgba(245, 124, 0, 0.2);
}
[data-palette="amber"][data-theme="dark"] {
  --bg-primary: #1a1512; --bg-secondary: #2d2318; --text-primary: #fff3e0; --text-secondary: #ffcc80;
  --border-color: #4a3728; --primary-color: #ffb74d; --primary-hover: #ffa726;
  --error-color: #ff8a65; --success-color: #aed581;
  --focus-ring: rgba(255, 183, 77, 0.2);
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.4); --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* ===== NANE (Teal/Cyan) ===== */
[data-palette="nane"] {
  --bg-primary: #f0fdfa; --bg-secondary: #ccfbf1; --text-primary: #134e4a; --text-secondary: #0d9488;
  --border-color: #99f6e4; --primary-color: #14b8a6; --primary-hover: #0d9488;
  --error-color: #f43f5e; --success-color: #22c55e;
  --focus-ring: rgba(20, 184, 166, 0.15);
  --shadow: 0 2px 10px rgba(20, 184, 166, 0.15); --shadow-lg: 0 4px 20px rgba(20, 184, 166, 0.2);
}
[data-palette="nane"][data-theme="dark"] {
  --bg-primary: #0a1a1a; --bg-secondary: #134e4a; --text-primary: #ccfbf1; --text-secondary: #5eead4;
  --border-color: #115e59; --primary-color: #2dd4bf; --primary-hover: #14b8a6;
  --error-color: #fb7185; --success-color: #4ade80;
  --focus-ring: rgba(45, 212, 191, 0.2);
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.4); --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* ===== TURKUAZ (Turquoise) ===== */
[data-palette="turkuaz"] {
  --bg-primary: #f5fcfc; --bg-secondary: #e0f7f7; --text-primary: #0a3d3d; --text-secondary: #1a7a7a;
  --border-color: #b2ebeb; --primary-color: #00a5a5; --primary-hover: #008888;
  --error-color: #e53935; --success-color: #43a047;
  --focus-ring: rgba(0, 165, 165, 0.15);
  --shadow: 0 2px 10px rgba(0, 165, 165, 0.15); --shadow-lg: 0 4px 20px rgba(0, 165, 165, 0.2);
}
[data-palette="turkuaz"][data-theme="dark"] {
  --bg-primary: #0a1a1a; --bg-secondary: #0d2e2e; --text-primary: #e0f7f7; --text-secondary: #4dd9d9;
  --border-color: #1a5252; --primary-color: #26c6c6; --primary-hover: #00a5a5;
  --error-color: #ef5350; --success-color: #66bb6a;
  --focus-ring: rgba(38, 198, 198, 0.2);
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.4); --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* ===== ORMAN (Forest Green) ===== */
[data-palette="orman"] {
  --bg-primary: #f0fdf4; --bg-secondary: #dcfce7; --text-primary: #14532d; --text-secondary: #166534;
  --border-color: #bbf7d0; --primary-color: #22c55e; --primary-hover: #16a34a;
  --error-color: #ef4444; --success-color: #10b981;
  --focus-ring: rgba(34, 197, 94, 0.15);
  --shadow: 0 2px 10px rgba(34, 197, 94, 0.15); --shadow-lg: 0 4px 20px rgba(34, 197, 94, 0.2);
}
[data-palette="orman"][data-theme="dark"] {
  --bg-primary: #0a1a0f; --bg-secondary: #14532d; --text-primary: #dcfce7; --text-secondary: #86efac;
  --border-color: #166534; --primary-color: #4ade80; --primary-hover: #22c55e;
  --error-color: #f87171; --success-color: #34d399;
  --focus-ring: rgba(74, 222, 128, 0.2);
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.4); --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* ===== İNDİGO (Deep Indigo) ===== */
[data-palette="indigo"] {
  --bg-primary: #f0f4ff; --bg-secondary: #e0e7ff; --text-primary: #1e1b4b; --text-secondary: #4338ca;
  --border-color: #c7d2fe; --primary-color: #6366f1; --primary-hover: #4f46e5;
  --error-color: #ef4444; --success-color: #22c55e;
  --focus-ring: rgba(99, 102, 241, 0.15);
  --shadow: 0 2px 10px rgba(99, 102, 241, 0.15); --shadow-lg: 0 4px 20px rgba(99, 102, 241, 0.2);
}
[data-palette="indigo"][data-theme="dark"] {
  --bg-primary: #0f0e1a; --bg-secondary: #1e1b4b; --text-primary: #e0e7ff; --text-secondary: #a5b4fc;
  --border-color: #3730a3; --primary-color: #818cf8; --primary-hover: #6366f1;
  --error-color: #f87171; --success-color: #4ade80;
  --focus-ring: rgba(129, 140, 248, 0.2);
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.5); --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.6);
}

/* ===== GENZ (Purple/Pink) ===== */
[data-palette="genz"] {
  --bg-primary: #fdf4ff; --bg-secondary: #fae8ff; --text-primary: #3b0764; --text-secondary: #7e22ce;
  --border-color: #e9d5ff; --primary-color: #a855f7; --primary-hover: #9333ea;
  --error-color: #ec4899; --success-color: #10b981;
  --focus-ring: rgba(168, 85, 247, 0.15);
  --shadow: 0 2px 10px rgba(168, 85, 247, 0.15); --shadow-lg: 0 4px 20px rgba(168, 85, 247, 0.2);
}
[data-palette="genz"][data-theme="dark"] {
  --bg-primary: #1a0a1f; --bg-secondary: #2d1b36; --text-primary: #fae8ff; --text-secondary: #d8b4fe;
  --border-color: #4c1d95; --primary-color: #c084fc; --primary-hover: #a855f7;
  --error-color: #f472b6; --success-color: #34d399;
  --focus-ring: rgba(192, 132, 252, 0.2);
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.4); --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* ===== GÜN BATIMI (Sunset Orange/Red) ===== */
[data-palette="gun-batimi"] {
  --bg-primary: #fff7ed; --bg-secondary: #ffedd5; --text-primary: #431407; --text-secondary: #c2410c;
  --border-color: #fed7aa; --primary-color: #ea580c; --primary-hover: #c2410c;
  --error-color: #dc2626; --success-color: #65a30d;
  --focus-ring: rgba(234, 88, 12, 0.15);
  --shadow: 0 2px 10px rgba(234, 88, 12, 0.15); --shadow-lg: 0 4px 20px rgba(234, 88, 12, 0.2);
}
[data-palette="gun-batimi"][data-theme="dark"] {
  --bg-primary: #1a0f0a; --bg-secondary: #431407; --text-primary: #ffedd5; --text-secondary: #fdba74;
  --border-color: #9a3412; --primary-color: #fb923c; --primary-hover: #f97316;
  --error-color: #f87171; --success-color: #a3e635;
  --focus-ring: rgba(251, 146, 60, 0.2);
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.4); --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* ===== RETRO (Vintage/Brown) ===== */
[data-palette="retro"] {
  --bg-primary: #fefcf3; --bg-secondary: #f5f0e1; --text-primary: #44403c; --text-secondary: #78716c;
  --border-color: #d6d3d1; --primary-color: #a16207; --primary-hover: #854d0e;
  --error-color: #b91c1c; --success-color: #4d7c0f;
  --focus-ring: rgba(161, 98, 7, 0.15);
  --shadow: 0 2px 10px rgba(161, 98, 7, 0.12); --shadow-lg: 0 4px 20px rgba(161, 98, 7, 0.18);
}
[data-palette="retro"][data-theme="dark"] {
  --bg-primary: #1c1917; --bg-secondary: #292524; --text-primary: #fafaf9; --text-secondary: #a8a29e;
  --border-color: #44403c; --primary-color: #fbbf24; --primary-hover: #f59e0b;
  --error-color: #fca5a5; --success-color: #bef264;
  --focus-ring: rgba(251, 191, 36, 0.2);
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.4); --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* ===== MİNİMALİST (Grayscale) ===== */
[data-palette="minimalist"] {
  --bg-primary: #fafafa; --bg-secondary: #f4f4f5; --text-primary: #18181b; --text-secondary: #52525b;
  --border-color: #e4e4e7; --primary-color: #3f3f46; --primary-hover: #27272a;
  --error-color: #dc2626; --success-color: #16a34a;
  --focus-ring: rgba(63, 63, 70, 0.12);
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.08); --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.12);
}
[data-palette="minimalist"][data-theme="dark"] {
  --bg-primary: #09090b; --bg-secondary: #18181b; --text-primary: #fafafa; --text-secondary: #a1a1aa;
  --border-color: #3f3f46; --primary-color: #d4d4d8; --primary-hover: #e4e4e7;
  --error-color: #f87171; --success-color: #4ade80;
  --focus-ring: rgba(212, 212, 216, 0.15);
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.5); --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.6);
}

/* ===== GENÇLERBİRLİĞİ (Kırmızı-Kara) ===== */
[data-palette="genclerbirligi"] {
  --bg-primary: #fff5f5; --bg-secondary: #f6c2c4; --text-primary: #171717; --text-secondary: #7a1e22;
  --border-color: #e89a9d; --primary-color: #c8101a; --primary-hover: #a10d15;
  --error-color: #b00610; --success-color: #16a34a;
  --focus-ring: rgba(200, 16, 26, 0.18);
  --shadow: 0 2px 10px rgba(200, 16, 26, 0.18); --shadow-lg: 0 4px 20px rgba(200, 16, 26, 0.24);
}
[data-palette="genclerbirligi"][data-theme="dark"] {
  --bg-primary: #0d0d0d; --bg-secondary: #1c1c1c; --text-primary: #f5f5f5; --text-secondary: #f0a8ac;
  --border-color: #3a1416; --primary-color: #e11d28; --primary-hover: #f13440;
  --error-color: #ff6b6b; --success-color: #4ade80;
  --focus-ring: rgba(225, 29, 40, 0.25);
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.5); --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.65);
}

.ac-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 13px;
  color: var(--text-secondary); cursor: pointer; user-select: none; white-space: nowrap; }
.ac-toggle input { cursor: pointer; accent-color: var(--primary-color); }

* { box-sizing: border-box; transition: background-color .3s ease, color .3s ease, border-color .3s ease; }

/* Tema geçişi sırasında (açık<->koyu) renk değişimini 3 saniyeye yay.
   Sınıf toggleTheme tarafından geçici olarak eklenir; hover vb. normal
   durumda .3s kalır. */
html.theme-transition, html.theme-transition * {
  transition: background-color .5s ease, color .5s ease, border-color .5s ease,
              fill .5s ease, stroke .5s ease !important;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.5;
}

a { color: var(--primary-color); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Header ---- */
.header {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-left { display: flex; align-items: center; gap: 20px; }
.logo { height: 20px; width: auto; object-fit: contain; }
/* Theme-aware logo swap */
.logo-dark, [data-theme="dark"] .logo-light { display: none; }
[data-theme="dark"] .logo-dark { display: inline-block; }
.brand-name { font-weight: 600; font-size: 18px; }
.nav-links { display: flex; gap: 6px; }
.nav-link {
  padding: 8px 14px; border-radius: var(--radius); color: var(--text-secondary);
  font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px;
}
.nav-link:hover { background: var(--bg-secondary); color: var(--text-primary); text-decoration: none; }
.nav-link.active { background: var(--primary-color); color: #fff; }
.nav-link.active svg { stroke: #fff; }
.header-right { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; border-radius: var(--radius); }
.nav-toggle svg { width: 24px; height: 24px; stroke: var(--text-primary); }
.nav-toggle:hover { background: var(--bg-secondary); }

.user-chip { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px;
}
.user-meta { display: flex; flex-direction: column; line-height: 1.2; }
.user-name { font-size: 14px; font-weight: 600; }
.user-email { font-size: 12px; color: var(--text-secondary); }
.badge-admin { font-size: 10px; padding: 1px 6px; border-radius: 10px; background: var(--primary-color); color: #fff; }

/* ---- Layout ---- */
.container { max-width: 1200px; margin: 32px auto; padding: 0 20px; }
.page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.page-title { font-size: 24px; font-weight: 600; margin: 0; display: flex; align-items: center; gap: 10px; }
.page-subtitle { color: var(--text-secondary); font-size: 14px; margin-top: 4px; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---- Cards ---- */
.card {
  background: var(--bg-primary); border-radius: var(--radius-lg); padding: 24px;
  box-shadow: var(--shadow-lg); margin-bottom: 24px; border: 1px solid var(--border-color);
}
.card-title { font-size: 20px; font-weight: 600; margin: 0 0 16px; }

.grid { display: grid; gap: 20px; }
.grid-cards { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.grid-menu { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* Meeting card */
.meeting-card {
  position: relative;
  background: var(--bg-primary); border: 1px solid var(--border-color); border-radius: var(--radius-lg);
  padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.meeting-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
/* Sol üst köşe rozeti: "bu toplantı benimle paylaşıldı" */
.mc-shared-badge {
  position: absolute; top: -9px; left: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px 3px 7px; border-radius: 999px;
  font-size: 11px; font-weight: 600; line-height: 1; white-space: nowrap;
  color: #fff; background: linear-gradient(135deg, #7c3aed, #6366f1);
  box-shadow: 0 2px 6px rgba(99,102,241,.35);
}
.mc-shared-badge svg { width: 12px; height: 12px; }
.meeting-card.is-shared { border-color: rgba(124,58,237,.45); }
.meeting-card .mc-title { font-size: 17px; font-weight: 600; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meeting-card .mc-meta { font-size: 13px; color: var(--text-secondary); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
/* Uzun e-posta / organizatör adı taşmasın: tek satır + ellipsis */
.meeting-card .mc-meta div { display: flex; align-items: center; gap: 6px; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 8px; }

/* Menu card (dashboard) */
.menu-card {
  background: var(--bg-primary); border: 1px solid var(--border-color); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow); cursor: pointer; position: relative; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease; display: block; color: inherit;
}
.menu-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); text-decoration: none; }
.menu-icon {
  width: 56px; height: 56px; border-radius: var(--radius-lg); padding: 14px; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  display: flex; align-items: center; justify-content: center;
}
.menu-icon svg { stroke: #fff; width: 100%; height: 100%; }
.menu-card h3 { margin: 0 0 8px; font-size: 20px; font-weight: 600; }
.menu-card p { margin: 0; color: var(--text-secondary); font-size: 14px; }
.stat-value { font-size: 32px; font-weight: 700; color: var(--primary-color); }

/* ---- Buttons ---- */
.btn {
  padding: 10px 18px; font-size: 14px; font-weight: 600; border: none; border-radius: var(--radius);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease; font-family: inherit;
}
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn-primary { background: var(--primary-color); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--primary-hover); transform: translateY(-1px); }
.btn-secondary { background: var(--bg-secondary); color: var(--text-primary); border: 1px solid var(--border-color); }
.btn-secondary:hover:not(:disabled) { background: var(--border-color); }
.btn-danger { background: var(--error-color); color: #fff; }
.btn-danger:hover:not(:disabled) { opacity: .9; }
.btn-icon { width: 16px; height: 16px; }

/* Icon-only action button */
.btn-icon-action {
  background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius-sm);
  padding: 8px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  transition: all .25s ease;
}
.btn-icon-action svg { width: 18px; height: 18px; stroke: var(--text-primary); transition: stroke .25s ease; }
.btn-icon-action:hover { background: var(--primary-color); border-color: var(--primary-color); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-icon-action:hover svg { stroke: #fff; }
.btn-icon-action.danger:hover { background: var(--error-color); border-color: var(--error-color); }
.btn-icon-action.active { background: var(--primary-color); border-color: var(--primary-color); }
.btn-icon-action.active svg { stroke: #fff; }

.icon-btn-round {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border-color);
  background: var(--bg-primary); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  transition: transform .2s ease;
}
.icon-btn-round:hover { transform: scale(1.08); }
.icon-btn-round svg { width: 20px; height: 20px; stroke: var(--text-primary); }
.icon-btn-round.active { background: var(--primary-color); border-color: var(--primary-color); }
.icon-btn-round.active svg { stroke: #fff; }
a.icon-btn-round { text-decoration: none; }

/* ---- Language switch (TR | EN) ---- */
.lang-switch { display: inline-flex; border: 1px solid var(--border-color); border-radius: 20px; overflow: hidden; }
.lang-switch .lang-opt { padding: 6px 11px; font-size: 12.5px; font-weight: 600; color: var(--text-secondary);
  text-decoration: none; line-height: 1; display: inline-flex; align-items: center; }
.lang-switch .lang-opt:hover { background: var(--bg-secondary); }
.lang-switch .lang-opt.active { background: var(--primary-color); color: #fff; }
.lang-switch .lang-opt .flag { font-size: 13px; line-height: 1; margin-right: 1px;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
/* Sadece-bayrak modu (giriş ekranı): metin yok, daha büyük bayraklar */
.lang-switch.lang-flags .lang-opt { padding: 6px 14px; }
.lang-switch.lang-flags .lang-opt .flag { font-size: 20px; margin-right: 0; }

/* ---- Tables ---- */
.table-wrap { overflow-x: auto; }
/* Sıralanabilir başlıklar + CSV dışa aktarma */
th.th-sortable { cursor: pointer; user-select: none; }
th.th-sortable:hover { color: var(--primary-color); }
.sort-ind { font-size: 10px; opacity: .85; }
.csv-bar { display: flex; justify-content: flex-end; margin: 0 0 8px; }
.csv-export-btn { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius-sm);
  padding: 5px 12px; font-size: 12px; cursor: pointer; color: var(--text-primary); font-family: inherit; }
.csv-export-btn:hover { background: var(--border-color); }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border-color); font-size: 14px; }
.table th { font-weight: 600; background: var(--bg-secondary); position: sticky; top: 0; }
.table tbody tr:hover { background: var(--bg-secondary); }
.row-actions { display: flex; gap: 6px; }

/* ---- Forms ---- */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.form-input, .form-textarea, .form-select {
  width: 100%; padding: 12px 14px; font-size: 15px; border: 1px solid var(--border-color);
  border-radius: var(--radius); background: var(--bg-secondary); color: var(--text-primary); font-family: inherit;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px var(--focus-ring);
}
.form-textarea { min-height: 100px; resize: vertical; }
.checkbox-row { display: flex; align-items: center; gap: 8px; }
.checkbox-row input { width: 18px; height: 18px; accent-color: var(--primary-color); }

/* ---- Badges ---- */
.badge { display: inline-block; padding: 4px 12px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.badge-active { background: rgba(40, 167, 69, .12); color: var(--success-color); }
.badge-inactive { background: rgba(220, 53, 69, .12); color: var(--error-color); }
.badge-pending { background: rgba(240, 173, 78, .15); color: var(--warning-color); }
.badge-muted { background: var(--bg-secondary); color: var(--text-secondary); }

/* ---- Alerts / toast ---- */
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: 14px; }
.alert-error { background: rgba(220, 53, 69, .1); color: var(--error-color); border: 1px solid var(--error-color); }
.alert-success { background: rgba(40, 167, 69, .1); color: var(--success-color); border: 1px solid var(--success-color); }
.alert-info { background: var(--focus-ring); color: var(--primary-color); border: 1px solid var(--primary-color); }

.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 2000; min-width: 260px; max-width: 380px;
  padding: 14px 18px; border-radius: var(--radius); box-shadow: var(--shadow-lg); color: #fff;
  transform: translateY(20px); opacity: 0; transition: all .3s ease; pointer-events: none;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { background: var(--success-color); }
.toast.error { background: var(--error-color); }
.toast.info { background: var(--primary-color); }

/* ---- Modal ---- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 1000;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-backdrop.show { display: flex; }
.modal {
  background: var(--bg-primary); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-lg);
  max-width: 560px; width: 100%; max-height: 90vh; overflow-y: auto;
}
.modal-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border-color); padding-bottom: 14px; margin-bottom: 20px; }
.modal-header h3 { margin: 0; font-size: 18px; }
.modal-footer { display: flex; gap: 12px; justify-content: flex-end; border-top: 1px solid var(--border-color); padding-top: 18px; margin-top: 22px; }

/* ---- In-app confirm (tarayıcı confirm() yerine) ---- */
.confirm-backdrop {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 1200;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.confirm-backdrop.show { display: flex; }
.confirm-box {
  background: var(--bg-primary); border-radius: var(--radius-lg); padding: 24px;
  box-shadow: var(--shadow-lg); max-width: 440px; width: 100%;
}
.confirm-box h4 { margin: 0 0 10px; font-size: 16px; }
.confirm-box p { margin: 0 0 18px; color: var(--text-secondary); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.confirm-box .confirm-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* ---- View toggle (card/list) ---- */
.view-toggle { display: inline-flex; border: 1px solid var(--border-color); border-radius: var(--radius); overflow: hidden; }
.view-toggle button { background: var(--bg-primary); border: none; padding: 8px 10px; cursor: pointer; display: inline-flex; align-items: center; }
.view-toggle button svg { width: 18px; height: 18px; stroke: var(--text-secondary); }
.view-toggle button.active { background: var(--primary-color); }
.view-toggle button.active svg { stroke: #fff; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--text-secondary); }
.empty-state svg { width: 56px; height: 56px; stroke: var(--border-color); margin-bottom: 16px; }

/* ---- Summary content ---- */
.summary-body { background: var(--bg-primary); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-lg); }
.summary-body h2 { font-size: 22px; }
.summary-body h3 { font-size: 17px; margin-top: 22px; }
.summary-body ul { padding-left: 22px; }

/* ---- Tooltip (ikon butonları için; app.js yönetir) ---- */
.mw2-tip {
  position: fixed; z-index: 3000; max-width: 260px; padding: 6px 9px;
  border-radius: var(--radius-sm); background: rgba(17, 24, 39, .92); color: #fff;
  font-size: 12px; font-weight: 500; line-height: 1.35; letter-spacing: .1px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .22); pointer-events: none;
  opacity: 0; transform: translateY(3px); transition: opacity .14s ease, transform .14s ease;
}
.mw2-tip.below { transform: translateY(-3px); }
.mw2-tip.show { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .mw2-tip { transition-duration: .01s; } }

/* ---- Spinner / overlay ---- */
.overlay {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .5); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; z-index: 1500; padding: 20px;
}
.overlay.show { display: flex; animation: mwOverlayIn .18s ease both; }
@keyframes mwOverlayIn { from { opacity: 0; } to { opacity: 1; } }

.overlay-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 15px;
  width: 100%; max-width: 440px;
  background: var(--bg-primary); color: var(--text-primary); border: 1px solid var(--border-color);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 22px 24px;
  animation: mwCardIn .28s cubic-bezier(.2, .85, .25, 1) both;
}
@keyframes mwCardIn {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
  to { opacity: 1; transform: none; }
}
/* Üst kenarda ince vurgu şeridi — kartı sayfanın geri kalanına bağlar. */
.overlay-card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.overlay-head { display: flex; align-items: center; gap: 14px; min-width: 0; }
/* İki karşıt yönde dönen halka + nabız atan çekirdek. */
.overlay-orb {
  position: relative; width: 42px; height: 42px; flex: 0 0 auto;
  border-radius: 50%; background: var(--focus-ring);
}
.overlay-orb::before, .overlay-orb::after {
  content: ""; position: absolute; border-radius: 50%; border: 2px solid transparent;
}
.overlay-orb::before { inset: 0; border-top-color: var(--primary-color); animation: spin 1.1s linear infinite; }
.overlay-orb::after {
  inset: 7px; border-bottom-color: var(--primary-color); opacity: .6;
  animation: spin 1.7s linear infinite reverse;
}
.overlay-headings { min-width: 0; }
.overlay-card .overlay-title {
  margin: 0; font-weight: 600; font-size: 15px; line-height: 1.35; letter-spacing: .1px;
}
.overlay-card .overlay-sub {
  margin: 3px 0 0; font-size: 12.5px; line-height: 1.35; color: var(--text-secondary);
}
.overlay-card .overlay-sub:empty { display: none; }

/* Belirsiz ilerleme şeridi — süre bilinmiyor ama iş sürüyor sinyali. */
.overlay-bar {
  position: relative; height: 3px; border-radius: 999px;
  background: var(--bg-secondary); overflow: hidden;
}
.overlay-bar::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 38%; border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  animation: mwBarSlide 1.6s ease-in-out infinite;
}
@keyframes mwBarSlide { from { left: -40%; } to { left: 102%; } }

/* Durum şeridi: satırlar görünmeyen alt sınırdan kayarak girer, üstten çıkar. */
.overlay-ticker { position: relative; height: 20px; overflow: hidden; }
.overlay-ticker:empty { display: none; }
/* Sol tarafta 4px pay: nabız atan nokta büyürken şeridin sınırına takılıp
   kesilmesin (şerit dikey kayma için overflow:hidden olmak zorunda). */
.overlay-ticker-line {
  position: absolute; inset: 0 0 0 4px; margin: 0;
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; line-height: 1.35; color: var(--text-secondary); font-weight: 500;
}
.overlay-ticker-line::before {
  content: ""; width: 5px; height: 5px; flex: 0 0 auto; border-radius: 50%;
  background: var(--primary-color); animation: mwDotPulse 1.4s ease-in-out infinite;
}
.overlay-ticker-line > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Giriş ve çıkış AYNI süre + AYNI easing ile çalışır: satırlar tek bir bant
   gibi birlikte kayar, bu yüzden hiçbir anda üst üste binmezler. 115% yol
   (şerit yüksekliğinden fazla) aralarında sürekli küçük bir boşluk bırakır. */
.overlay-ticker-line.enter { animation: mwTickIn .44s cubic-bezier(.4, 0, .2, 1) both; }
.overlay-ticker-line.leave { animation: mwTickOut .44s cubic-bezier(.4, 0, .2, 1) both; }
@keyframes mwTickIn { from { transform: translateY(115%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes mwTickOut { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-115%); opacity: 0; } }
@keyframes mwDotPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.4); opacity: .45; } }

/* ---- "Notebook'a Git" düğmesi (header) — AI notebook'u olan kullanıcılarda ---- */
.notebook-link {
  display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto;
  padding: 7px 13px; border-radius: 999px; text-decoration: none;
  border: 1px solid var(--primary-color); color: var(--primary-color);
  background: transparent; font-size: 13px; font-weight: 600; white-space: nowrap;
  transition: background .18s ease, color .18s ease;
}
.notebook-link svg { width: 17px; height: 17px; flex: 0 0 auto; }
.notebook-link:hover { background: var(--primary-color); color: #fff; }
.notebook-link:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 2px; }
@media (max-width: 900px) {
  /* Dar ekranda yalnızca ikon kalsın — header tek satırda kalabilsin. */
  .notebook-link { padding: 9px; gap: 0; }
  .notebook-link-label { display: none; }
}
@media (prefers-reduced-motion: reduce) { .notebook-link { transition-duration: .01s; } }

/* ---- Beta Team rozeti (header) ---- */
.beta-badge { color: var(--primary-color); border-color: var(--primary-color); position: relative; }
.beta-badge::after {
  content: ""; position: absolute; top: 6px; right: 6px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--primary-color);
  animation: mwDotPulse 1.8s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .beta-badge::after { animation: none; } }

/* ---- Sağ kenara yapışık yamuk sekme (drawer tutamacı) ----
   Ekranın sağ kenarından içeri doğru daralan bir dil. Alışılmadık şekli
   dikkat çeker; sayfanın geri kalanını kaplamadan sürekli erişilebilir kalır. */
.drawer-handle {
  position: fixed; right: 0; top: 50%; z-index: 1350;
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  padding: 18px 9px 18px 13px;
  border: none; cursor: pointer;
  background: var(--primary-color); color: #fff;
  /* Sol kenar kısa, sağ kenar tam boy: içeri doğru daralan yamuk. */
  clip-path: polygon(100% 0, 100% 100%, 0 calc(100% - 15px), 0 15px);
  box-shadow: -4px 0 18px rgba(0, 0, 0, .28);
  transform: translateY(-50%);
  transition: transform .24s cubic-bezier(.2, .85, .25, 1), filter .2s ease;
}
.drawer-handle:hover { transform: translateY(-50%) translateX(-4px); filter: brightness(1.08); }
.drawer-handle:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 3px; }
.drawer-handle-label {
  writing-mode: vertical-rl;                 /* dil boyunca yukarıdan aşağı okunur */
  font-size: 12px; font-weight: 600; letter-spacing: .4px; line-height: 1;
}
.drawer-handle-count {
  display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: rgba(255, 255, 255, .22);
  font-size: 11.5px; font-weight: 700; line-height: 1;
}
/* Yeni bir sürüm eklendiğinde kısa bir dürtme — kullanıcı sekmeyi fark etsin. */
.drawer-handle.nudge { animation: mwHandleNudge .7s ease-in-out 3; }
@keyframes mwHandleNudge {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50% { transform: translateY(-50%) translateX(-9px); }
}
@media (max-width: 768px) {
  .drawer-handle { padding: 14px 7px 14px 11px; gap: 7px; }
  .drawer-handle-label { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .drawer-handle, .drawer-handle:hover { transition-duration: .01s; }
  .drawer-handle.nudge { animation: none; }
}

/* ---- Yan panel (drawer): sağ kenardan içeri kayar ---- */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 1400;
  background: rgba(15, 23, 42, .45); backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.drawer-backdrop.show { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; top: 0; right: 0; z-index: 1450;
  height: 100%; width: min(480px, 94vw);
  display: flex; flex-direction: column;
  background: var(--bg-primary); color: var(--text-primary);
  border-left: 1px solid var(--border-color);
  box-shadow: -10px 0 34px rgba(0, 0, 0, .22);
  transform: translateX(100%);                 /* görünmez sınırın ötesinde bekler */
  transition: transform .36s cubic-bezier(.25, .85, .25, 1);
}
.drawer.show { transform: translateX(0); }
@media (prefers-reduced-motion: reduce) {
  .drawer { transition-duration: .01s; }
  .drawer-backdrop { transition-duration: .01s; }
}

.drawer-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 18px 20px; border-bottom: 1px solid var(--border-color); flex: 0 0 auto;
}
.drawer-head h3 { margin: 0; font-size: 16px; font-weight: 600; }
.drawer-head .page-subtitle { margin: 4px 0 0; font-size: 12.5px; }
.drawer-body { flex: 1 1 auto; overflow-y: auto; padding: 16px 20px 24px; }

/* Sürüm kartı */
.ver-item {
  border: 1px solid var(--border-color); border-radius: var(--radius);
  padding: 12px 14px; margin-bottom: 10px; background: var(--bg-primary);
}
.ver-item + .ver-item { margin-top: 0; }
.ver-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ver-no { font-weight: 600; font-size: 13.5px; }
.ver-when { font-size: 12px; color: var(--text-secondary); white-space: nowrap; }
.ver-prompt { margin: 6px 0 0; font-size: 12px; color: var(--text-secondary); }
.ver-preview {
  margin: 8px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--text-secondary);
}
.ver-actions { display: flex; gap: 8px; margin-top: 10px; }
.ver-actions .btn { padding: 6px 12px; font-size: 12.5px; }
.ver-full {
  margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border-color);
  font-size: 13px; line-height: 1.55; max-height: 46vh; overflow-y: auto;
}
.ver-full h2 { font-size: 17px; }
.ver-full h3 { font-size: 15px; margin-top: 14px; }
.ver-full ul { padding-left: 20px; }

/* Bekleme kutusundaki eylem butonu (ör. senkronu iptal et) */
.overlay-actions { display: flex; justify-content: flex-end; }
.overlay-actions:empty { display: none; }
.btn-overlay-action { padding: 7px 14px; font-size: 13px; }
.btn-overlay-action:disabled { opacity: .55; cursor: default; }

@media (prefers-reduced-motion: reduce) {
  .overlay.show, .overlay-card { animation: none; }
  .overlay-bar::after { animation-duration: 4s; }
  .overlay-ticker-line::before { animation: none; }
  /* Kaydırma yerine sade geçiş */
  .overlay-ticker-line.enter { animation: mwOverlayIn .2s ease both; }
  .overlay-ticker-line.leave { animation: mwOverlayIn .2s ease reverse both; }
}
/* Halka spinner: iz rengi kenarlıktan, dönen uç ana renkten. */
.spinner {
  width: 30px; height: 30px; flex: 0 0 auto; border: 3px solid var(--border-color);
  border-top-color: var(--primary-color); border-radius: 50%; animation: spin .9s linear infinite;
}
.spinner-sm { width: 18px; height: 18px; border-width: 2px; }
.spinner-xs { width: 14px; height: 14px; border-width: 2px; }
/* Buton içinde: iz beyaz saydam, uç beyaz (dolu renkli butonlarda okunur). */
.btn .spinner, .btn .spinner-sm, .btn .spinner-xs { border-color: rgba(255,255,255,.35); border-top-color: #fff; }
.btn-secondary .spinner, .btn-secondary .spinner-sm, .btn-secondary .spinner-xs {
  border-color: var(--border-color); border-top-color: var(--primary-color);
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner, .spinner-sm, .spinner-xs { animation-duration: 2.4s; } }

.hidden { display: none !important; }

.hide-mobile { }

@media (max-width: 768px) {
  /* Sticky, tek satırlık kompakt bar; nav bir hamburger menüye toplanır */
  .header { position: sticky; top: 0; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px; }
  .header-left { gap: 10px; flex: 1 1 auto; min-width: 0; }
  /* Header artık yalnızca ana sayfa + kılavuz ikonlarını taşıyor; her zaman görünür. */
  .nav-toggle { display: none; }
  .nav-links { display: flex; gap: 6px; }
  .header-right { gap: 8px; }
  .user-chip .user-meta { display: none; }                /* mobilde sadece avatar */
  .hide-mobile { display: none !important; }              /* #37: uzun e-postayı gizle */
  .container { margin: 20px auto; }

  /* #30: dokunma hedefleri en az ~44px */
  .btn-icon-action { padding: 11px; }
  .btn-icon-action svg { width: 20px; height: 20px; }
  .icon-btn-round { width: 44px; height: 44px; }
  .btn { padding: 12px 18px; }

  /* #33: geniş tabloları kaydırılabilir kartlara indirger, sütun başlıklarını data-label ile satıra taşır */
  table.responsive-stack thead { display: none; }
  table.responsive-stack, table.responsive-stack tbody, table.responsive-stack tr, table.responsive-stack td { display: block; width: 100%; }
  table.responsive-stack tr { border: 1px solid var(--border-color); border-radius: var(--radius); margin-bottom: 10px; padding: 6px 10px; }
  table.responsive-stack td { border: none; padding: 6px 4px; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  table.responsive-stack td::before { content: attr(data-label); font-weight: 600; color: var(--text-secondary); text-align: left; }
  table.responsive-stack td .row-actions { justify-content: flex-end; }

  /* Geniş, yığınlanmayan tablolarda (ör. Analitik) ilk sütunu sabitle — yatay
     kaydırınca satır bağlamı (kullanıcı adı vb.) ekranda kalır. */
  .table:not(.responsive-stack) th:first-child,
  .table:not(.responsive-stack) td:first-child {
    position: sticky; left: 0; z-index: 1; background: var(--bg-primary);
    box-shadow: 1px 0 0 var(--border-color);
  }

  /* Modal: küçük ekranda kenarlara yayılsın, iç boşluk azalsın */
  .modal-backdrop { padding: 10px; align-items: flex-start; }
  .modal { padding: 18px; max-height: calc(100vh - 20px); }
  .modal-header { padding-bottom: 12px; margin-bottom: 16px; }
  .modal-footer { flex-wrap: wrap; }
  .modal-footer .btn { flex: 1 1 auto; justify-content: center; }
  .overlay-card { padding: 18px; gap: 13px; }
  .overlay-head { gap: 12px; }
  .overlay-orb { width: 36px; height: 36px; }
  .overlay-orb::after { inset: 6px; }
}

/* ---- Renk paleti seçici (Copilot'tan uyarlandı) ---- */
.palette-selector { position: relative; }
.palette-dropdown {
  position: absolute; top: 100%; right: 0; margin-top: 8px;
  background: var(--bg-primary); border: 1px solid var(--border-color); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); min-width: 320px; z-index: 1200; display: none; overflow: hidden;
}
.palette-dropdown.show { display: block; animation: paletteFadeIn .2s ease; }
@keyframes paletteFadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.palette-dropdown-header {
  padding: 14px 16px; border-bottom: 1px solid var(--border-color); font-weight: 600; font-size: 14px;
  display: flex; align-items: center; gap: 8px;
}
.palette-dropdown-header svg { width: 18px; height: 18px; stroke: var(--primary-color); }
.palette-list { max-height: 400px; overflow-y: auto; }
.palette-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer;
  transition: background .2s; border-bottom: 1px solid var(--border-color);
}
.palette-item:last-child { border-bottom: none; }
.palette-item:hover { background: var(--bg-secondary); }
.palette-item.active { background: var(--focus-ring); }
.palette-item.active::after { content: '✓'; margin-left: auto; color: var(--primary-color); font-weight: bold; }
.palette-colors { display: flex; flex-direction: column; gap: 4px; }
.palette-color-row { display: flex; gap: 3px; align-items: center; }
.palette-color-row span { font-size: 9px; color: var(--text-secondary); width: 30px; }
.palette-color-swatch { width: 18px; height: 18px; border-radius: 4px; border: 1px solid rgba(0,0,0,.1); }
.palette-info { flex: 1; }
.palette-name { font-weight: 600; font-size: 13px; margin-bottom: 2px; }
.palette-desc { font-size: 11px; color: var(--text-secondary); }

/* ---- Alt bilgi (footer) ---- */
.app-footer {
  text-align: center; font-size: 11px; color: var(--text-secondary);
  padding: 18px 12px 24px; margin-top: 24px; opacity: .8; line-height: 1.5;
}

/* Impersonation ("view as user") bar */
.impersonation-bar {
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
  background: #b45309; color: #fff; padding: 9px 16px; font-size: 13.5px; font-weight: 600;
  position: sticky; top: 0; z-index: 1200; box-shadow: 0 2px 6px rgba(0,0,0,.18);
}
.impersonation-bar .imp-return {
  background: #fff; color: #b45309; text-decoration: none; padding: 4px 12px;
  border-radius: 999px; font-weight: 700; font-size: 12.5px; white-space: nowrap;
}
.impersonation-bar .imp-return:hover { background: #fde68a; }
