/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
/* ==========================================================
   Bixcod Mail Asistan — "Deep Space" Tasarım Sistemi
   Koyu uzay teması: cam kartlar, neon vurgular, yıldız alanı
   ========================================================== */
:root {
  color-scheme: dark;

  /* Uzay zemini */
  --bg: #05070f;
  --surface: rgba(16, 22, 40, .92);
  --surface-solid: #0f1526;
  --surface-2: rgba(255, 255, 255, .03);
  --surface-3: rgba(255, 255, 255, .06);
  --border: rgba(148, 168, 230, .14);
  --border-strong: rgba(148, 168, 230, .26);
  --text: #e9edf9;
  --muted: #9aa6c4;
  --faint: #5f6b8c;

  /* Neon marka */
  --primary: #6d8dff;
  --primary-bright: #8ea8ff;
  --primary-dark: #5470e0;
  --primary-soft: rgba(109, 141, 255, .14);
  --primary-ring: rgba(109, 141, 255, .30);
  --primary-glow: rgba(109, 141, 255, .35);
  --cyan: #38d9ff;
  --on-primary: #ffffff;

  /* Durum renkleri (koyu tema, yüksek parlaklık) */
  --red: #ff7a6e;
  --red-dark: #ff8f84;
  --red-soft: rgba(255, 110, 97, .14);
  --amber: #ffbd5e;
  --amber-soft: rgba(255, 185, 90, .13);
  --green: #45e0a2;
  --green-soft: rgba(69, 224, 162, .13);
  --violet: #b49aff;
  --violet-soft: rgba(180, 154, 255, .14);

  /* Kenar çubuğu */
  --side-bg: rgba(7, 10, 20, .92);
  --side-border: rgba(148, 168, 230, .12);
  --side-text: #aab4cf;
  --side-text-dim: #626e8e;
  --side-active: rgba(109, 141, 255, .16);

  /* Gölge + parıltı */
  --e1: 0 1px 2px rgba(0, 0, 0, .35);
  --e2: 0 4px 16px rgba(0, 0, 0, .35);
  --e3: 0 8px 28px rgba(0, 0, 0, .45), 0 0 0 1px rgba(148, 168, 230, .08);
  --e4: 0 24px 70px rgba(0, 0, 0, .65);
  --glow: 0 0 24px rgba(109, 141, 255, .18);
  --inner-light: inset 0 1px 0 rgba(255, 255, 255, .06);

  /* Bileşen token'ları (tema geçişi için) */
  --text-strong: #eef1fb;
  --text-soft: #c3cce4;
  --grad-h1-a: #ffffff;
  --grad-h1-b: #b6c6ff;
  --grad-num-a: #ffffff;
  --grad-num-b: #c3cff5;
  --h2-color: #cfd8f2;
  --tag-text: #aeb9d6;
  --menu-bg: #131a30;
  --modal-bg: #101731;
  --backdrop: rgba(2, 4, 10, .74);
  --input-bg: rgba(255, 255, 255, .04);
  --input-bg-focus: rgba(255, 255, 255, .06);
  --btn-bg: rgba(255, 255, 255, .045);
  --btn-bg-hover: rgba(255, 255, 255, .08);
  --mini-bg: rgba(255, 255, 255, .035);
  --mini-bg-hover: rgba(255, 255, 255, .055);
  --well-bg: rgba(255, 255, 255, .025);
  --chip-on: rgba(255, 255, 255, .07);
  --event-accent: #b9c8ff;
  --seg-on-text: #dbe4ff;

  --radius: 16px;
  --radius-sm: 10px;
  --font: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Space Grotesk', var(--font);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
html { text-size-adjust: 100%; background: var(--bg); }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  position: relative;
}

/* ---------- Yıldız alanı ---------- */
body::before {
  content: ''; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255, 255, 255, .55), transparent 55%),
    radial-gradient(1px 1px at 68% 8%,  rgba(255, 255, 255, .40), transparent 55%),
    radial-gradient(1.5px 1.5px at 42% 62%, rgba(190, 210, 255, .45), transparent 55%),
    radial-gradient(1px 1px at 86% 44%, rgba(255, 255, 255, .35), transparent 55%),
    radial-gradient(1px 1px at 24% 84%, rgba(190, 210, 255, .35), transparent 55%),
    radial-gradient(1.5px 1.5px at 58% 30%, rgba(255, 255, 255, .30), transparent 55%),
    radial-gradient(1px 1px at 94% 78%, rgba(255, 255, 255, .40), transparent 55%),
    radial-gradient(1px 1px at 6% 52%,  rgba(255, 255, 255, .28), transparent 55%);
  background-size: 640px 640px, 520px 520px, 460px 460px, 580px 580px,
                   500px 500px, 420px 420px, 560px 560px, 480px 480px;
}

/* ---------- Nebula parıltıları ---------- */
body::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(700px 560px at 18% 120px,  rgba(76, 104, 255, .15), transparent 70%),
    radial-gradient(640px 520px at 88% 320px,  rgba(140, 84, 255, .12), transparent 70%),
    radial-gradient(720px 600px at 70% 1400px, rgba(38, 178, 255, .09), transparent 70%),
    radial-gradient(600px 500px at 8% 2200px,  rgba(180, 84, 255, .07), transparent 70%);
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

::selection { background: rgba(109, 141, 255, .35); color: #fff; }
* { scrollbar-width: thin; scrollbar-color: #2c3654 transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #2c3654; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #3a4670; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- Material Symbols ---------- */
.ms {
  font-family: 'Material Symbols Outlined';
  font-weight: normal; font-style: normal;
  font-size: 19px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  vertical-align: -4px;
  letter-spacing: normal; text-transform: none; white-space: nowrap;
  word-wrap: normal; direction: ltr;
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.ms.fill { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }
.ms.sm { font-size: 15px; vertical-align: -3px; }
.ms.lg { font-size: 26px; }

/* ---------- Sayfa geçiş animasyonu ---------- */
.page-anim { animation: pageIn .32s cubic-bezier(.2, 0, 0, 1); }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Skeleton yükleme ---------- */
.skeleton {
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(255,255,255,.05) 25%, rgba(255,255,255,.10) 50%, rgba(255,255,255,.05) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite;
  margin-bottom: 14px;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ==========================================================
   İskelet: cam kenar çubuğu + içerik
   ========================================================== */
.shell { display: flex; min-height: 100vh; }

.sidebar {
  width: 254px; flex-shrink: 0;
  background: var(--side-bg);
  border-right: 1px solid var(--side-border);
  color: var(--side-text);
  padding: 20px 14px 16px;
  position: -webkit-sticky;
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  z-index: 10;
}
.sidebar .brand {
  display: flex; align-items: center; gap: 12px;
  font-size: 14.5px; color: #f2f5ff;
  padding: 2px 10px 18px;
  border-bottom: 1px solid var(--side-border);
  margin-bottom: 14px;
  letter-spacing: -.1px;
}
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, #4d7cff, #9b4dff);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; font-size: 17px;
  font-family: var(--font-display);
  box-shadow: 0 0 22px rgba(93, 118, 255, .55), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.brand small { display: block; font-size: 11px; color: var(--side-text-dim); font-weight: 400; letter-spacing: .3px; margin-top: 1px; }

.nav-label {
  font-size: 10.5px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--side-text-dim); padding: 14px 12px 7px;
  font-family: var(--font-display);
}
.nav-link {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 12px; border-radius: 10px; margin-bottom: 2px;
  font-size: 13.5px; font-weight: 500; color: var(--side-text);
  transition: background .16s, color .16s, box-shadow .16s;
  position: relative;
}
.nav-link .ms { font-size: 19px; color: var(--side-text-dim); transition: color .16s; }
.nav-link:hover { background: rgba(255, 255, 255, .05); color: #eef1fb; }
.nav-link:hover .ms { color: #eef1fb; }
.nav-link.active {
  background: var(--side-active); color: #ffffff; font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(109, 141, 255, .25), 0 0 18px rgba(109, 141, 255, .12);
}
.nav-link.active .ms { color: var(--primary-bright); }
.nav-link.active::before {
  content: ''; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #6d8dff, #38d9ff);
  box-shadow: 0 0 10px rgba(109, 141, 255, .8);
}

/* Menü alanı esnek + kaydırılabilir: uzun olsa bile alttaki sayaç ekranda kalır */
.sidebar nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.sidebar-foot {
  margin-top: auto; padding: 10px 12px 2px; flex-shrink: 0;
  border-top: 1px solid var(--side-border);
  font-size: 11.5px; color: var(--side-text-dim); line-height: 1.5;
}
.sidebar-foot .ms { color: var(--side-text-dim); }

/* İçerik */
.content { flex: 1 1; min-width: 0; padding: 32px 38px 90px; max-width: 1560px; }

@media (max-width: 900px) {
  .shell { flex-direction: column; }
  .sidebar {
    width: 100%; height: auto; position: static;
    flex-direction: row; align-items: center; gap: 2px;
    overflow-x: auto; padding: 10px 14px;
  }
  .sidebar .brand { border: none; margin: 0 10px 0 0; padding: 0; flex-shrink: 0; }
  .brand small { display: none; }
  .sidebar nav { display: flex; align-items: center; gap: 2px; }
  .sidebar nav > div { display: contents; }
  .nav-label { display: none; }
  .nav-link { white-space: nowrap; margin: 0; padding: 8px 13px; }
  .nav-link.active::before { display: none; }
  .sidebar-foot { display: none; }
  .content { padding: 18px 14px 70px; }
}

/* ---------- Başlıklar ---------- */
.page-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 14px; margin-bottom: 26px;
}
.page-head h1 {
  font-size: 24px; font-weight: 650; letter-spacing: -.3px;
  font-family: var(--font-display);
  background: linear-gradient(100deg, var(--grad-h1-a) 20%, var(--grad-h1-b) 80%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.page-head .sub { color: var(--muted); font-size: 12.5px; margin-top: 5px; }
.head-actions { display: flex; gap: 10px; align-items: center; }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border-radius: 10px; padding: 8px 15px;
  font-size: 13px; font-weight: 550; letter-spacing: .1px;
  color: var(--text);
  background: var(--btn-bg);
  border: 1px solid var(--border-strong);
  box-shadow: var(--inner-light);
  transition: background .15s, border-color .15s, box-shadow .15s, color .15s, transform .15s;
}
.btn:hover { background: var(--btn-bg-hover); border-color: rgba(148, 168, 230, .4); box-shadow: var(--inner-light), var(--glow); }
.btn:active { transform: translateY(1px); }
.btn.primary {
  background: linear-gradient(135deg, #5b7cfa, #7c5bff);
  border-color: rgba(140, 160, 255, .55); color: var(--on-primary);
  box-shadow: 0 0 20px rgba(100, 120, 255, .35), inset 0 1px 0 rgba(255, 255, 255, .25);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .2);
}
.btn.primary:hover { background: linear-gradient(135deg, #6b8aff, #8d6fff); box-shadow: 0 0 30px rgba(100, 120, 255, .5), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn.text { border-color: transparent; background: transparent; box-shadow: none; color: var(--primary-bright); font-weight: 600; -webkit-backdrop-filter: none; backdrop-filter: none; }
.btn.text:hover { background: var(--primary-soft); }
.btn.icon { width: 36px; height: 36px; padding: 0; border-radius: 10px; font-size: 19px; }
.btn:disabled { opacity: .45; cursor: default; pointer-events: none; }

/* ---------- KPI kartları ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)); grid-gap: 14px; gap: 14px; margin-bottom: 28px; }
.stat {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px 15px;
  box-shadow: var(--e1), var(--inner-light);
  transition: box-shadow .2s, border-color .2s, transform .2s;
}
.stat::after {
  content: ''; position: absolute; right: -30%; top: -55%;
  width: 75%; height: 130%;
  background: radial-gradient(closest-side, var(--accent, var(--primary)), transparent 72%);
  opacity: .13; pointer-events: none;
  transition: opacity .2s;
}
.stat:hover { border-color: var(--border-strong); box-shadow: var(--e2), var(--inner-light), var(--glow); transform: translateY(-2px); }
.stat:hover::after { opacity: .22; }
.stat .lbl {
  display: flex; align-items: center; gap: 7px;
  color: var(--muted); font-size: 10.5px; text-transform: uppercase;
  letter-spacing: 1px; font-weight: 650; order: -1; margin-bottom: 9px;
  font-family: var(--font-display);
}
.stat .lbl::before {
  content: ''; width: 8px; height: 8px; border-radius: 3px; flex-shrink: 0;
  background: var(--accent, var(--primary));
  box-shadow: 0 0 10px var(--accent, var(--primary));
}
.stat .num {
  font-size: 30px; font-weight: 650; letter-spacing: -.5px; line-height: 1.05;
  font-family: var(--font-display);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, var(--grad-num-a), var(--grad-num-b));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.stat .hint { font-size: 11.5px; color: var(--faint); margin-top: 6px; }
.stat.danger .num { background: linear-gradient(180deg, #ffd9d4, #ff7a6e); -webkit-background-clip: text; background-clip: text; }

/* ---------- Kartlar ---------- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px; margin-bottom: 20px;
  box-shadow: var(--e1), var(--inner-light);
  transition: border-color .2s, box-shadow .2s;
}
.card:hover { border-color: rgba(148, 168, 230, .22); }
.card > h2 {
  font-size: 14px; font-weight: 650; margin-bottom: 16px; letter-spacing: .2px;
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-display); text-transform: uppercase;
  color: var(--h2-color);
}
.card > h2 .ms { color: var(--primary-bright); font-size: 18px; }
.card > h2 .count {
  background: var(--primary-soft); color: var(--primary-bright);
  border: 1px solid rgba(109, 141, 255, .25);
  border-radius: 20px; padding: 1px 9px; font-size: 11.5px; font-weight: 650;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums; text-transform: none;
  font-family: var(--font);
}
.card > h2 .see-all {
  margin-left: auto; font-size: 12px; color: var(--primary-bright); font-weight: 600;
  border-radius: 7px; padding: 2px 7px; transition: background .15s, text-shadow .15s;
  text-transform: none; letter-spacing: 0; font-family: var(--font);
}
.card > h2 .see-all:hover { background: var(--primary-soft); text-shadow: 0 0 12px rgba(140, 170, 255, .8); }

.ozet-text { white-space: pre-wrap; color: var(--text-soft); font-size: 13.5px; line-height: 1.75; }

/* ---------- Rozetler / çipler ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  border-radius: 7px; padding: 2.5px 8px; font-size: 11.5px; font-weight: 600;
  background: var(--surface-3); color: var(--tag-text); white-space: nowrap;
  border: 1px solid rgba(148, 168, 230, .12);
}
a.tag { transition: border-color .15s, background .15s; }
a.tag:hover { border-color: rgba(148, 168, 230, .35); }
.tag.blue   { background: var(--primary-soft); color: var(--primary-bright); border-color: rgba(109, 141, 255, .28); }
.tag.red    { background: var(--red-soft);    color: var(--red);    border-color: rgba(255, 110, 97, .3); }
.tag.amber  { background: var(--amber-soft);  color: var(--amber);  border-color: rgba(255, 185, 90, .28); }
.tag.green  { background: var(--green-soft);  color: var(--green);  border-color: rgba(69, 224, 162, .28); }
.tag.violet { background: var(--violet-soft); color: var(--violet); border-color: rgba(180, 154, 255, .3); }
.tag.outline { background: transparent; border: 1px dashed rgba(148, 168, 230, .3); color: var(--muted); }

/* ---------- Öne çıkanlar + kebab menü ---------- */
.highlight {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--faint);
  padding: 13px 15px; margin-bottom: 10px;
  border-radius: var(--radius-sm);
  position: relative;
  transition: box-shadow .18s, border-color .18s, background .18s;
}
.highlight:hover { background: var(--btn-bg); border-color: var(--border-strong); }
.highlight.yuksek { border-left-color: var(--red);   box-shadow: -8px 0 22px -12px rgba(255, 110, 97, .5); }
.highlight.orta   { border-left-color: var(--amber); box-shadow: -8px 0 22px -12px rgba(255, 185, 90, .45); }
.highlight.dusuk  { border-left-color: var(--green); box-shadow: -8px 0 22px -12px rgba(69, 224, 162, .4); }
.highlight.pinned { background: rgba(255, 185, 90, .07); border-color: rgba(255, 185, 90, .3); }
.highlight .h-title { font-weight: 600; font-size: 13.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--text-strong); }
.highlight .h-detail { color: var(--muted); font-size: 12.5px; margin-top: 3px; line-height: 1.65; }
.pin {
  display: inline-flex; align-items: center; gap: 3px;
  background: var(--amber-soft); color: var(--amber);
  border: 1px solid rgba(255, 185, 90, .3);
  border-radius: 20px; padding: 1px 8px; font-size: 10.5px; font-weight: 700;
}

.kebab-wrap { position: relative; flex-shrink: 0; }
.kebab {
  width: 30px; height: 30px; border-radius: 9px;
  font-size: 18px; color: var(--faint);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.kebab:hover { background: var(--surface-3); color: var(--text); }
.menu {
  position: absolute; right: 0; top: 34px; z-index: 40;
  background: var(--menu-bg);
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  box-shadow: var(--e3); min-width: 195px; padding: 5px;
  animation: pop .14s ease-out;
}
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(-4px); } to { opacity: 1; } }
.menu button {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
  padding: 8px 11px; font-size: 13px; color: var(--text);
  border-radius: 8px; font-weight: 500;
  transition: background .12s;
}
.menu button:hover { background: var(--primary-soft); }
.menu button.danger { color: var(--red); }
.menu button.danger:hover { background: var(--red-soft); }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: var(--backdrop);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fade .18s ease-out;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--modal-bg);
  border-radius: 18px;
  box-shadow: var(--e4), 0 0 60px rgba(109, 141, 255, .12), var(--inner-light);
  border: 1px solid var(--border-strong);
  width: 640px; max-width: 100%; max-height: 92vh; overflow-y: auto;
  padding: 24px 26px;
  animation: modalIn .2s cubic-bezier(.2, 0, 0, 1);
}
@keyframes modalIn { from { opacity: 0; transform: scale(.96) translateY(10px); } to { opacity: 1; } }
.modal h3 {
  font-size: 16.5px; font-weight: 650; letter-spacing: -.1px;
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-display);
}
.modal h3 .ms { color: var(--primary-bright); }
.modal-sub { color: var(--muted); font-size: 12.5px; margin: 5px 0 18px; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 11.5px; font-weight: 650; color: var(--muted); margin-bottom: 6px; letter-spacing: .6px; text-transform: uppercase; font-family: var(--font-display); }
.field input, .field textarea {
  width: 100%; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 9px 12px; font: inherit; font-size: 13.5px; color: var(--text);
  background: var(--input-bg);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--primary);
  background: var(--input-bg-focus);
  box-shadow: 0 0 0 3px var(--primary-ring), 0 0 20px rgba(109, 141, 255, .15);
}
.field textarea { resize: vertical; line-height: 1.6; }
.field small { color: var(--faint); font-size: 11.5px; margin-top: 4px; display: block; }
.modal-err {
  background: var(--red-soft); color: var(--red-dark);
  border: 1px solid rgba(255, 110, 97, .35);
  border-radius: var(--radius-sm); padding: 9px 13px; font-size: 12.5px; margin-bottom: 12px;
}
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }

.snack {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
  background: #141b30;
  color: #eef1fb; z-index: 200;
  border: 1px solid var(--border-strong);
  border-radius: 12px; box-shadow: var(--e4), 0 0 30px rgba(109, 141, 255, .15);
  padding: 12px 20px; font-size: 13px; max-width: 90vw;
  animation: snackIn .24s cubic-bezier(.2, 0, 0, 1);
}
@keyframes snackIn { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- Filtre çubuğu ---------- */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 12px 14px; margin-bottom: 18px;
  box-shadow: var(--e1), var(--inner-light);
}
.filter-bar input[type="search"], .filter-bar select {
  border: 1px solid var(--border-strong); border-radius: 10px;
  padding: 8px 12px; font: inherit; font-size: 13px;
  background: var(--input-bg); color: var(--text);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.filter-bar select { cursor: pointer; }
.filter-bar select option { background: var(--surface-solid); }
.filter-bar input[type="search"]:focus, .filter-bar select:focus {
  outline: none; border-color: var(--primary);
  background: var(--input-bg-focus);
  box-shadow: 0 0 0 3px var(--primary-ring);
}
.filter-bar input[type="search"] { flex: 1 1; min-width: 200px; }
.filter-bar input[type="search"]::placeholder { color: var(--faint); }

/* Segment kontrol */
.seg {
  display: inline-flex; background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 11px; padding: 3px; gap: 2px;
}
.seg button {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 8px; padding: 5.5px 13px; font-size: 12.5px; font-weight: 550; color: var(--muted);
  transition: background .15s, color .15s, box-shadow .15s;
}
.seg button:hover { color: var(--text); }
.seg button.on {
  background: var(--primary-soft); color: var(--seg-on-text); font-weight: 650;
  box-shadow: inset 0 0 0 1px rgba(109, 141, 255, .35), 0 0 14px rgba(109, 141, 255, .18);
}

/* ---------- Aksiyon satırları ---------- */
.action-row {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 10px;
  box-shadow: var(--e1), var(--inner-light);
  transition: box-shadow .18s, border-color .18s, transform .18s;
}
.action-row:hover { border-color: var(--border-strong); box-shadow: var(--e2), var(--inner-light), var(--glow); transform: translateY(-1px); }
.action-row.overdue { border-left: 3px solid var(--red); box-shadow: -10px 0 26px -14px rgba(255, 110, 97, .55), var(--e1); }
.action-row.done { opacity: .5; }
.action-row.pinned { background: rgba(255, 185, 90, .06); border-color: rgba(255, 185, 90, .3); }
.action-row .a-body { flex: 1 1; min-width: 0; }
.action-row .a-title { font-weight: 600; font-size: 13.5px; letter-spacing: -.1px; color: var(--text-strong); }
.action-row .a-desc { color: var(--muted); font-size: 12.5px; margin-top: 3px; line-height: 1.6; }
.action-row .a-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.action-row .a-side { text-align: right; flex-shrink: 0; min-width: 120px; }
.action-row .a-due { font-size: 12.5px; font-weight: 600; font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; color: var(--text-soft); }
.action-row .a-due.late { color: var(--red); text-shadow: 0 0 14px rgba(255, 110, 97, .45); }
.action-row .a-due.soon { color: var(--amber); }
.action-row .a-owner { font-size: 12px; color: var(--muted); margin-top: 4px; }
.action-row > .kebab-wrap { flex-shrink: 0; margin: -4px -6px 0 0; }

.group-title {
  font-size: 11px; text-transform: uppercase; letter-spacing: 1.6px;
  color: var(--muted); margin: 26px 0 12px; font-weight: 700;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
}
.group-title::after {
  content: ''; flex: 1 1; height: 1px;
  background: linear-gradient(90deg, var(--border-strong), transparent);
}

/* ---------- Takvim (ay ızgarası) ---------- */
.cal-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 360px; grid-gap: 20px; gap: 20px; align-items: start; }
@media (max-width: 1100px) { .cal-wrap { grid-template-columns: 1fr; } }

.cal-card { padding: 18px 20px; }
.cal-head { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.cal-title {
  flex: 1 1; font-size: 17px; font-weight: 650; text-transform: capitalize; letter-spacing: -.2px;
  font-family: var(--font-display); color: var(--text-strong);
}

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); grid-gap: 5px; gap: 5px; }
.cal-daynames { margin-bottom: 6px; }
.cal-dayname {
  text-align: center; font-size: 10.5px; font-weight: 700; color: var(--faint);
  text-transform: uppercase; letter-spacing: 1px; padding: 4px 0;
  font-family: var(--font-display);
}

.cal-cell {
  min-height: 92px; border-radius: var(--radius-sm);
  background: var(--well-bg); text-align: left;
  border: 1px solid var(--border);
  padding: 7px 8px; display: flex; flex-direction: column; gap: 4px;
  transition: background .14s, border-color .14s, box-shadow .14s;
  overflow: hidden;
}
.cal-cell:hover { border-color: var(--primary); box-shadow: 0 0 16px rgba(109, 141, 255, .18); }
.cal-cell.empty-cell { background: transparent; border-color: transparent; cursor: default; box-shadow: none; }
.cal-cell.selected {
  border-color: var(--primary); background: var(--primary-soft);
  box-shadow: 0 0 0 2px var(--primary-ring), 0 0 22px rgba(109, 141, 255, .25);
}
.cal-cell .cal-num {
  width: 25px; height: 25px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; color: var(--faint);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}
.cal-cell.today .cal-num {
  background: linear-gradient(135deg, #5b7cfa, #7c5bff); color: #fff;
  box-shadow: 0 0 14px rgba(109, 141, 255, .7);
}
.cal-cell.has-events .cal-num { color: var(--text); }

.cal-chips { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-chip {
  background: var(--primary-soft); color: var(--event-accent);
  border-left: 3px solid var(--primary);
  border-radius: 4px; padding: 2px 6px;
  font-size: 10.5px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cal-more { font-size: 10.5px; color: var(--muted); font-weight: 600; padding-left: 4px; }

.cal-side { position: -webkit-sticky; position: sticky; top: 20px; }

/* ---------- Etkinlik satırı ---------- */
.event {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 13px; margin-bottom: 9px;
  transition: border-color .15s, background .15s;
}
.event:hover { border-color: var(--border-strong); background: var(--btn-bg); }
.event .e-time {
  min-width: 64px; text-align: center;
  background: var(--primary-soft); color: var(--event-accent);
  border: 1px solid rgba(109, 141, 255, .25);
  border-radius: 9px; padding: 7px 6px; font-weight: 700; font-size: 11.5px; flex-shrink: 0;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums; line-height: 1.5;
  font-family: var(--font-display);
}
.event .e-title { font-weight: 600; font-size: 13.5px; color: var(--text-strong); }
.event .e-sub { color: var(--muted); font-size: 12px; margin-top: 2px; word-break: break-word; }
.event .e-link { margin-left: auto; flex-shrink: 0; }

/* ---------- Projeler ---------- */
.proje-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); grid-gap: 16px; gap: 16px; }
.proje-card {
  position: relative; overflow: hidden;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 18px 20px; display: block;
  box-shadow: var(--e1), var(--inner-light);
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.proje-card::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(109, 141, 255, .55), rgba(56, 217, 255, .45), transparent);
  opacity: 0; transition: opacity .2s;
}
.proje-card:hover { box-shadow: var(--e3), var(--glow); transform: translateY(-3px); border-color: var(--border-strong); }
.proje-card:hover::after { opacity: 1; }
.proje-card .p-name { font-weight: 600; font-size: 14px; margin-bottom: 10px; line-height: 1.45; letter-spacing: -.1px; color: var(--text-strong); }
.proje-card .p-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.proje-card .p-date { color: var(--faint); font-size: 11.5px; margin-top: 12px; }

.durum {
  display: inline-flex; align-items: center; gap: 5px;
  border-radius: 20px; padding: 2.5px 10px; font-size: 11.5px; font-weight: 650;
  border: 1px solid transparent;
}
.durum::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.durum.aktif { background: var(--green-soft); color: var(--green); border-color: rgba(69, 224, 162, .3); }
.durum.beklemede { background: var(--amber-soft); color: var(--amber); border-color: rgba(255, 185, 90, .3); }
.durum.tamamlandi { background: var(--surface-3); color: var(--muted); border-color: var(--border); }

/* ---------- Mailler ---------- */
.mail { padding: 13px 2px; border-bottom: 1px solid var(--border); }
.mail:last-child { border-bottom: none; padding-bottom: 4px; }
.mail .m-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.mail .m-subject { font-weight: 600; font-size: 13.5px; letter-spacing: -.1px; color: var(--text-strong); }
.mail .m-date { color: var(--faint); font-size: 12px; flex-shrink: 0; font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }
.mail .m-from { color: var(--primary-bright); font-size: 12px; margin-top: 1px; font-weight: 500; }
.mail .m-summary { color: var(--muted); font-size: 12.5px; margin-top: 4px; line-height: 1.6; }
.mail a.m-link { color: var(--primary-bright); font-size: 12px; font-weight: 600; }
.mail a.m-link:hover { text-shadow: 0 0 12px rgba(140, 170, 255, .8); }
a.mail { display: block; border-radius: 9px; transition: background .13s; }
a.mail:hover { background: var(--surface-2); }

/* ---------- Zaman çizelgesi ---------- */
.timeline { list-style: none; }
.timeline li { position: relative; padding: 0 0 18px 24px; border-left: 1px solid var(--border-strong); margin-left: 7px; }
.timeline li:last-child { border-left-color: transparent; }
.timeline li::before {
  content: ''; position: absolute; left: -6.5px; top: 3px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--surface-solid);
  border: 2px solid var(--primary);
  box-shadow: 0 0 10px rgba(109, 141, 255, .55);
}
.timeline .t-date { color: var(--faint); font-size: 11.5px; font-weight: 650; font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }
.timeline .t-text { font-size: 13px; line-height: 1.6; color: var(--text-soft); }

/* ---------- Eisenhower etiketleri ---------- */
:root {
  --eh-yap: rgba(69, 224, 162, .16);     --eh-yap-text: #6ef0b8;    --eh-yap-line: rgba(69, 224, 162, .4);
  --eh-planla: rgba(56, 182, 255, .15);  --eh-planla-text: #72cdff; --eh-planla-line: rgba(56, 182, 255, .4);
  --eh-devret: rgba(255, 185, 90, .15);  --eh-devret-text: #ffc87e; --eh-devret-line: rgba(255, 185, 90, .4);
  --eh-ele: rgba(255, 110, 97, .15);     --eh-ele-text: #ff9d94;    --eh-ele-line: rgba(255, 110, 97, .4);
}
.tag.eh-yap    { background: var(--eh-yap);    color: var(--eh-yap-text);    border-color: var(--eh-yap-line); }
.tag.eh-planla { background: var(--eh-planla); color: var(--eh-planla-text); border-color: var(--eh-planla-line); }
.tag.eh-devret { background: var(--eh-devret); color: var(--eh-devret-text); border-color: var(--eh-devret-line); }
.tag.eh-ele    { background: var(--eh-ele);    color: var(--eh-ele-text);    border-color: var(--eh-ele-line); }

/* ---------- Mini kart (kanban + matris + ekip) ---------- */
.mini-card {
  background: var(--mini-bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  padding: 11px 13px; margin-bottom: 8px;
  box-shadow: var(--e1), var(--inner-light);
  transition: box-shadow .16s, border-color .16s, background .16s;
}
.mini-card:hover { border-color: var(--border-strong); background: var(--mini-bg-hover); box-shadow: var(--e2), var(--glow); }
.mini-card.overdue { border-left: 3px solid var(--red); }
.mini-card.done { opacity: .5; }
.mini-card.pinned { background: rgba(255, 185, 90, .07); border-color: rgba(255, 185, 90, .3); }
.mini-card .mc-title { font-weight: 600; font-size: 12.8px; line-height: 1.45; letter-spacing: -.1px; color: var(--text-strong); }
.mini-card .mc-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.mini-card .mc-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  margin-top: 9px; flex-wrap: wrap;
}
.mini-card .mc-owner { font-size: 11.5px; color: var(--muted); }
.mini-card .a-due { font-size: 11.5px; font-weight: 600; font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; color: var(--text-soft); }
.mini-card .a-due.late { color: var(--red); }
.mini-card .a-due.soon { color: var(--amber); }
.mini-card .mc-head { display: flex; align-items: flex-start; gap: 6px; }
.mini-card .mc-head .mc-title { flex: 1 1; min-width: 0; }
.mini-card .kebab { width: 26px; height: 26px; font-size: 16px; }

/* ---------- Kanban ---------- */
.kanban { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-gap: 14px; gap: 14px; align-items: start; }
@media (max-width: 900px) { .kanban { grid-template-columns: 1fr; } }
.kb-col {
  background: var(--well-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 10px;
}
.kb-col .kb-head {
  font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px;
  padding: 6px 8px 12px; display: flex; align-items: center; gap: 8px; color: var(--muted);
  font-family: var(--font-display);
}
.kb-col .kb-head::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); box-shadow: 0 0 10px var(--faint); }
.kb-acik .kb-head::before { background: var(--primary); box-shadow: 0 0 10px var(--primary); }
.kb-beklemede .kb-head::before { background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.kb-tamamlandi .kb-head::before { background: var(--green); box-shadow: 0 0 10px var(--green); }
.kb-count {
  background: var(--chip-on); border-radius: 20px; padding: 1px 8px;
  font-size: 11px; font-weight: 700; font-feature-settings: "tnum"; font-variant-numeric: tabular-nums;
  margin-left: auto; font-family: var(--font);
}
.kb-body { min-height: 60px; }

/* ---------- Eisenhower matrisi ---------- */
.matrix {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto minmax(220px, auto) minmax(220px, auto);
  grid-gap: 10px;
  gap: 10px;
}
.mx-axis {
  display: flex; align-items: center; justify-content: center;
  background: var(--well-bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 11px; font-weight: 700; letter-spacing: 2px; color: var(--muted);
  font-family: var(--font-display);
}
.mx-axis.top { padding: 8px 0; }
.mx-axis.side { writing-mode: vertical-rl; }
.mx-axis.side span { transform: rotate(180deg); }
.mx-cell {
  border-radius: var(--radius); padding: 16px 16px 12px;
  min-width: 0;
  box-shadow: var(--inner-light);
}
.mx-yap    { background: linear-gradient(160deg, rgba(69, 224, 162, .10), rgba(69, 224, 162, .03)); border: 1px solid var(--eh-yap-line); }
.mx-planla { background: linear-gradient(160deg, rgba(56, 182, 255, .10), rgba(56, 182, 255, .03)); border: 1px solid var(--eh-planla-line); }
.mx-devret { background: linear-gradient(160deg, rgba(255, 185, 90, .10), rgba(255, 185, 90, .03)); border: 1px solid var(--eh-devret-line); }
.mx-ele    { background: linear-gradient(160deg, rgba(255, 110, 97, .10), rgba(255, 110, 97, .03)); border: 1px solid var(--eh-ele-line); }
.mx-title {
  font-size: 15px; font-weight: 700; letter-spacing: 1px; display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
}
.mx-yap .mx-title    { color: var(--eh-yap-text);    text-shadow: 0 0 18px rgba(69, 224, 162, .4); }
.mx-planla .mx-title { color: var(--eh-planla-text); text-shadow: 0 0 18px rgba(56, 182, 255, .4); }
.mx-devret .mx-title { color: var(--eh-devret-text); text-shadow: 0 0 18px rgba(255, 185, 90, .4); }
.mx-ele .mx-title    { color: var(--eh-ele-text);    text-shadow: 0 0 18px rgba(255, 110, 97, .4); }
.mx-desc { font-size: 12.5px; color: var(--muted); margin: 3px 0 12px; }
.mx-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); grid-gap: 9px; gap: 9px; align-items: start; }
.mx-cards .mini-card { margin-bottom: 0; background: rgba(6, 9, 18, .45); }
.mx-cell .empty { color: var(--faint); grid-column: 1 / -1; }
@media (max-width: 900px) {
  .matrix { grid-template-columns: 30px 1fr; grid-template-rows: auto auto auto auto auto; }
  .mx-axis.top:last-of-type { display: none; }
}

/* ---------- Tablo ---------- */
.table-card { padding: 0; overflow: hidden; }
.table-scroll { overflow-x: auto; }
.mtable { width: 100%; border-collapse: collapse; font-size: 13px; }
.mtable th {
  text-align: left; padding: 11px 16px;
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--muted); border-bottom: 1px solid var(--border-strong);
  background: var(--well-bg);
  cursor: pointer; -webkit-user-select: none; -moz-user-select: none; user-select: none; white-space: nowrap;
  transition: background .13s, color .13s;
  font-family: var(--font-display);
}
.mtable th:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.mtable th .ms { font-size: 13px; vertical-align: -2px; }
.mtable th.sorted { color: var(--primary-bright); }
.mtable td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.mtable tbody tr { transition: background .13s; }
.mtable tbody tr:hover { background: rgba(109, 141, 255, .05); }
.mtable tbody tr:last-child td { border-bottom: none; }
.mtable .t-baslik { font-weight: 600; min-width: 240px; letter-spacing: -.1px; color: var(--text-strong); }
.mtable .t-desc { color: var(--muted); font-size: 12px; font-weight: 400; margin-top: 2px; line-height: 1.55; }
.mtable td.num { white-space: nowrap; font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }
.mtable tr.pinned-row { background: rgba(255, 185, 90, .06); }
.mtable tr.done-row { opacity: .5; }

/* ---------- Ekip sayfası ---------- */
.ekip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); grid-gap: 16px; gap: 16px; margin-bottom: 10px; }
.ekip-card { margin-bottom: 0; }
.ekip-card.has-late { border-left: 3px solid var(--red); box-shadow: -10px 0 28px -14px rgba(255, 110, 97, .5), var(--e1), var(--inner-light); }
.ek-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #4d7cff, #9b4dff); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 650; font-size: 14px; letter-spacing: .5px;
  font-family: var(--font-display);
  box-shadow: 0 0 16px rgba(93, 118, 255, .4), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.avatar.kurum { background: linear-gradient(135deg, #3a4569, #141a30); font-size: 18px; box-shadow: 0 0 14px rgba(90, 110, 180, .3), inset 0 1px 0 rgba(255, 255, 255, .18); }
.ek-name { font-weight: 650; font-size: 14px; letter-spacing: -.1px; color: var(--text-strong); }
.ek-mail { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.ek-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.ek-projeler { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.ek-kisiler { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.ek-actions { display: flex; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 12px; }
.ek-list { margin-top: 12px; }
.ek-bekleyen-title {
  font-size: 11px; font-weight: 700; color: var(--violet);
  margin: 8px 0 8px; text-transform: uppercase; letter-spacing: 1px;
  font-family: var(--font-display);
}

/* ---------- Çeşitli ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 20px; gap: 20px; align-items: start; }
.grid-31 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr); grid-gap: 20px; gap: 20px; align-items: start; }
@media (max-width: 1100px) { .grid-2, .grid-31 { grid-template-columns: 1fr; } }

.paydas-list { display: flex; flex-wrap: wrap; gap: 6px; }
.empty { color: var(--faint); font-size: 13px; padding: 18px 0; text-align: center; }
.loading, .error { text-align: center; padding: 80px 0; color: var(--muted); }
.error { color: var(--red-dark); }
.error .ms { color: var(--faint); }
.error code {
  background: var(--surface-3); border: 1px solid var(--border);
  padding: 2px 8px; border-radius: 6px; font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--text-soft);
}
.back-link {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px;
  color: var(--muted); font-size: 13px; font-weight: 550;
  border-radius: 8px; padding: 4px 8px 4px 4px; margin-left: -4px;
  transition: background .15s, color .15s;
}
.back-link:hover { background: var(--surface-3); color: var(--text); }

/* ==========================================================
   AYDINLIK MOD — [data-theme="light"]
   ========================================================== */
[data-theme="light"] {
  color-scheme: light;

  --bg: #eef1f8;
  --surface: #ffffff;
  --surface-solid: #ffffff;
  --surface-2: rgba(18, 26, 60, .03);
  --surface-3: rgba(18, 26, 60, .06);
  --border: rgba(28, 42, 100, .12);
  --border-strong: rgba(28, 42, 100, .22);
  --text: #1b2138;
  --muted: #5a6484;
  --faint: #98a1ba;

  --primary: #4a68e8;
  --primary-bright: #3b55d6;
  --primary-dark: #3448b8;
  --primary-soft: rgba(74, 104, 232, .10);
  --primary-ring: rgba(74, 104, 232, .22);
  --primary-glow: rgba(74, 104, 232, .25);

  --red: #d92d20;
  --red-dark: #b42318;
  --red-soft: rgba(217, 45, 32, .09);
  --amber: #b54708;
  --amber-soft: rgba(181, 71, 8, .10);
  --green: #067647;
  --green-soft: rgba(6, 118, 71, .09);
  --violet: #6938ef;
  --violet-soft: rgba(105, 56, 239, .09);

  --e1: 0 1px 2px rgba(16, 24, 60, .06);
  --e2: 0 3px 12px rgba(16, 24, 60, .08);
  --e3: 0 8px 26px rgba(16, 24, 60, .12);
  --e4: 0 24px 60px rgba(16, 24, 60, .25);
  --glow: 0 0 22px rgba(74, 104, 232, .14);
  --inner-light: inset 0 1px 0 rgba(255, 255, 255, .85);

  --text-strong: #141a30;
  --text-soft: #3c4565;
  --grad-h1-a: #1a2140;
  --grad-h1-b: #4054d8;
  --grad-num-a: #1c2340;
  --grad-num-b: #3d4d9e;
  --h2-color: #47506e;
  --tag-text: #4c5570;
  --menu-bg: #ffffff;
  --modal-bg: #ffffff;
  --backdrop: rgba(14, 19, 40, .38);
  --input-bg: rgba(18, 26, 60, .04);
  --input-bg-focus: #ffffff;
  --btn-bg: #ffffff;
  --btn-bg-hover: #f3f5fc;
  --mini-bg: #ffffff;
  --mini-bg-hover: #fbfcff;
  --well-bg: rgba(18, 26, 60, .04);
  --chip-on: rgba(18, 26, 60, .08);
  --event-accent: #3b55d6;
  --seg-on-text: #2b3cc0;

  /* Eisenhower — pastel zemin, koyu metin */
  --eh-yap: rgba(6, 148, 88, .13);      --eh-yap-text: #0a5c38;    --eh-yap-line: rgba(6, 148, 88, .35);
  --eh-planla: rgba(9, 120, 205, .12);  --eh-planla-text: #085a90; --eh-planla-line: rgba(9, 120, 205, .32);
  --eh-devret: rgba(196, 110, 10, .14); --eh-devret-text: #7c4a08; --eh-devret-line: rgba(196, 110, 10, .35);
  --eh-ele: rgba(214, 55, 40, .12);     --eh-ele-text: #8c2318;    --eh-ele-line: rgba(214, 55, 40, .32);
}

/* Aydınlık modda yıldızlar kapalı, yumuşak pastel aurora açık */
[data-theme="light"] body::before { display: none; }
[data-theme="light"] body::after {
  background:
    radial-gradient(700px 560px at 18% 120px,  rgba(88, 118, 255, .10), transparent 70%),
    radial-gradient(640px 520px at 88% 320px,  rgba(150, 100, 255, .08), transparent 70%),
    radial-gradient(720px 600px at 70% 1400px, rgba(56, 178, 255, .07), transparent 70%),
    radial-gradient(600px 500px at 8% 2200px,  rgba(190, 100, 255, .05), transparent 70%);
}

/* Kenar çubuğu her iki temada da koyu kalır (marka alanı) */
[data-theme="light"] .stat.danger .num {
  background: linear-gradient(180deg, #b42318, #d92d20);
  -webkit-background-clip: text; background-clip: text;
}
[data-theme="light"] .stat::after { opacity: .09; }
[data-theme="light"] .stat:hover::after { opacity: .15; }

[data-theme="light"] .mx-yap    { background: linear-gradient(160deg, rgba(6, 148, 88, .10), rgba(6, 148, 88, .04)); }
[data-theme="light"] .mx-planla { background: linear-gradient(160deg, rgba(9, 120, 205, .10), rgba(9, 120, 205, .04)); }
[data-theme="light"] .mx-devret { background: linear-gradient(160deg, rgba(196, 110, 10, .11), rgba(196, 110, 10, .04)); }
[data-theme="light"] .mx-ele    { background: linear-gradient(160deg, rgba(214, 55, 40, .10), rgba(214, 55, 40, .04)); }
[data-theme="light"] .mx-title { text-shadow: none !important; }
[data-theme="light"] .mx-yap .mx-title    { color: var(--eh-yap-text); }
[data-theme="light"] .mx-planla .mx-title { color: var(--eh-planla-text); }
[data-theme="light"] .mx-devret .mx-title { color: var(--eh-devret-text); }
[data-theme="light"] .mx-ele .mx-title    { color: var(--eh-ele-text); }
[data-theme="light"] .mx-cards .mini-card { background: rgba(255, 255, 255, .8); }

[data-theme="light"] * { scrollbar-color: #c3cad9 transparent; }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: #c3cad9; }
[data-theme="light"] ::selection { background: rgba(74, 104, 232, .18); color: var(--primary-dark); }
[data-theme="light"] .highlight.pinned,
[data-theme="light"] .action-row.pinned,
[data-theme="light"] .mini-card.pinned { background: #fffaef; }
[data-theme="light"] .mtable tr.pinned-row { background: #fffaef; }

/* Tema geçiş animasyonu (anahtara basınca kısa süreliğine) */
html.tema-gecis, html.tema-gecis *, html.tema-gecis *::before, html.tema-gecis *::after {
  transition: background-color .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease !important;
}

/* ---------- Tema anahtarı (sidebar) ---------- */
.theme-toggle {
  display: flex; align-items: center; gap: 10px; width: 100%;
  margin-top: auto;
  padding: 9px 12px; border-radius: 10px; margin-bottom: 10px;
  font-size: 12.5px; font-weight: 550; color: var(--side-text);
  border: 1px solid var(--side-border);
  background: rgba(255, 255, 255, .03);
  transition: background .15s, color .15s, border-color .15s;
}
.theme-toggle:hover { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(148, 168, 230, .3); }
.theme-toggle + .sidebar-foot { margin-top: 0; }
.theme-toggle .ms { color: #ffd28a; }
[data-theme="light"] .theme-toggle .ms { color: #8ea8ff; }

/* ---------- Komut paleti (⌘K) ---------- */
.cmdk-trigger {
  display: flex; align-items: center; gap: 9px; width: 100%;
  margin: 0 0 8px; padding: 8px 12px; border-radius: 10px;
  border: 1px solid var(--side-border);
  background: rgba(255, 255, 255, .04);
  color: var(--side-text-dim); font-size: 13px;
  transition: background .15s, color .15s, border-color .15s;
}
.cmdk-trigger:hover { background: rgba(255, 255, 255, .08); color: var(--side-text); border-color: rgba(148, 168, 230, .3); }
.cmdk-trigger kbd {
  margin-left: auto; font-family: inherit; font-size: 10.5px; font-weight: 600;
  border: 1px solid var(--side-border); border-radius: 5px; padding: 1px 6px;
  color: var(--side-text-dim); background: rgba(255, 255, 255, .04);
}

.cmdk-backdrop {
  position: fixed; inset: 0; z-index: 150;
  background: var(--backdrop);
  display: flex; justify-content: center; align-items: flex-start;
  padding: 11vh 20px 20px;
  animation: fade .15s ease-out;
}
.cmdk {
  width: 640px; max-width: 100%;
  background: var(--modal-bg);
  border: 1px solid var(--border-strong);
  border-radius: 16px; overflow: hidden;
  box-shadow: var(--e4), var(--glow);
  animation: modalIn .18s cubic-bezier(.2, 0, 0, 1);
}
.cmdk-input-wrap { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--border); }
.cmdk-input-wrap > .ms { color: var(--faint); }
.cmdk-input {
  flex: 1 1; padding: 15px 0; background: transparent; border: none; outline: none;
  font: inherit; font-size: 15px; color: var(--text);
}
.cmdk-input::placeholder { color: var(--faint); }
.cmdk-list { max-height: 52vh; overflow-y: auto; padding: 8px; }
.cmdk-group {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.3px;
  color: var(--faint); padding: 10px 10px 5px;
  font-family: var(--font-display);
}
.cmdk-item {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 9px 10px; border-radius: 9px; cursor: pointer;
  font-size: 13.5px; color: var(--text);
}
.cmdk-item .ms { color: var(--muted); flex-shrink: 0; }
.cmdk-item .ci-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 550; }
.cmdk-item .ci-sub {
  margin-left: auto; flex-shrink: 1; min-width: 0; max-width: 45%;
  color: var(--faint); font-size: 11.5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cmdk-item.active { background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary-ring); }
.cmdk-item.active .ms { color: var(--primary-bright); }
.cmdk-empty { padding: 30px 20px; text-align: center; color: var(--faint); font-size: 13px; }
.cmdk-foot {
  display: flex; gap: 16px; align-items: center;
  padding: 9px 16px; border-top: 1px solid var(--border);
  color: var(--faint); font-size: 11px;
}
.cmdk-foot kbd {
  font-family: inherit; font-size: 10px; font-weight: 600;
  background: var(--surface-3); border: 1px solid var(--border);
  border-radius: 5px; padding: 1px 5px; margin-right: 4px;
}

/* ---------- Tablo araç çubuğu (CSV) ---------- */
.table-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; border-bottom: 1px solid var(--border);
}
.table-toolbar .tt-info { color: var(--faint); font-size: 12px; }

@media (max-width: 900px) {
  .theme-toggle { width: auto; margin: 0 0 0 4px; padding: 8px 10px; }
  .theme-toggle .tt-label { display: none; }
  .cmdk-trigger { width: auto; margin: 0 0 0 auto; padding: 8px 10px; }
  .cmdk-trigger .ct-label, .cmdk-trigger kbd { display: none; }
  .cmdk-backdrop { padding: 6vh 12px 12px; }
}

/* ---------- AI incelemesi ---------- */
.ai-card {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(120deg, #1a73e8, #6d28d9, #b06000) border-box;
}
.ai-badge {
  background: linear-gradient(120deg, #1a73e8, #6d28d9);
  color: #fff; border-radius: 20px; padding: 2px 10px;
  font-size: 11px; font-weight: 700; letter-spacing: .4px;
}
.ai-card .ms { color: #6d28d9; }

/* ---------- Proje durumu değiştirici ---------- */
.durum-degistir { display: inline-flex; align-items: center; gap: 8px; }
.durum-degistir select {
  border: 1px solid var(--border); border-radius: 20px;
  padding: 6px 12px; font: inherit; font-size: 12.5px;
  background: var(--surface); color: var(--text); cursor: pointer;
}
.durum-degistir select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }

/* ---------- Personeller ---------- */
.personel-card { display: block; cursor: pointer; }
.personel-card:hover { box-shadow: var(--e3); }
.p-link:hover { color: var(--primary); text-decoration: underline; }

/* ---------- Personel liste satırları ---------- */
.p-cell { display: flex; align-items: center; gap: 10px; }
.sm-avatar { width: 34px; height: 34px; font-size: 12px; border-radius: 50%; }
.sm-btn { width: 32px; height: 32px; }
.pinned-row-red td:first-child { box-shadow: inset 4px 0 0 var(--red); }
.expand-row td { background: var(--surface-2); }
.expand-body { padding: 6px 4px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); grid-gap: 10px; gap: 10px; }
.expand-body .mini-card { margin-bottom: 0; }

/* Personel listesinde satır genişletince AI özeti (kartların üstünde, tam genişlik) */
.p-ai-ozet {
  grid-column: 1 / -1;
  background: var(--surface-2);
  border-left: 3px solid #6d28d9;
  border-radius: 8px;
  padding: 10px 12px;
}
.p-ai-baslik {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 650; color: #7c3aed; margin-bottom: 5px;
}

/* ---------- Kurum AI yorumu ---------- */
.kurum-ai {
  background: var(--surface-2); border-left: 3px solid #6d28d9;
  border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 10px;
  font-size: 12.5px; color: var(--muted);
}
.kurum-ai .ms { color: #6d28d9; }

/* ---------- Ekipler ---------- */
.uye-satir { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.uye-satir:last-of-type { border-bottom: none; }
.uye-ekle { display: flex; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.uye-ekle select {
  flex: 1 1; border: 1px solid var(--border); border-radius: 24px;
  padding: 9px 14px; font: inherit; font-size: 13px; background: var(--surface-2); color: var(--text);
}
.uye-ekle select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.sablon-btn { display: flex; width: 100%; justify-content: flex-start; margin-bottom: 8px; border-radius: 10px; }

/* ---------- Aramalı üye ekleme ---------- */
.uye-ekle-panel { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.uye-ekle-baslik { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.uye-ara {
  width: 100%; border: 1px solid var(--border); border-radius: 24px;
  padding: 9px 16px; font: inherit; font-size: 13px; background: var(--surface-2); color: var(--text);
  margin-bottom: 8px;
}
.uye-ara:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.aday-list { max-height: 320px; overflow-y: auto; border-radius: var(--radius-sm); }
.aday-row {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 8px 10px; border-radius: var(--radius-sm);
  transition: background .12s;
}
.aday-row:hover { background: var(--primary-soft); }
.aday-row .aday-add { color: var(--primary); opacity: 0; transition: opacity .12s; }
.aday-row:hover .aday-add { opacity: 1; }
.uye-ekle-baslik.accordion { width: 100%; cursor: pointer; padding: 6px 4px; border-radius: 8px; }
.uye-ekle-baslik.accordion:hover { background: var(--surface-2); color: var(--text); }
.uye-ekle-baslik .acc-ok { margin-left: auto; }
.aday-list { max-height: 420px; }

/* ---------- Yönetim Kurulu ---------- */
.gundem-madde { padding: 10px 0; border-bottom: 1px solid var(--border); }
.gundem-madde:last-child { border-bottom: none; }
.gm-baslik { font-weight: 650; font-size: 13.5px; }
.gm-detay { color: var(--muted); font-size: 12.5px; margin-top: 4px; white-space: pre-wrap; }
.karar-liste { list-style: none; }
.karar-liste li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; display: flex; gap: 8px; align-items: flex-start; }
.karar-liste li:last-child { border-bottom: none; }
.karar-ikon { color: var(--green); flex-shrink: 0; margin-top: 2px; }

/* ---------- Proje ilerleme başlığı ---------- */
.proje-head { align-items: center; }
.ilerleme-blok {
  display: flex; align-items: flex-end; gap: 18px;
  background: var(--surface); border-radius: var(--radius);
  padding: 12px 18px; box-shadow: var(--e1);
  margin: 0 auto;
}
.hafta-bars { display: flex; gap: 8px; align-items: flex-end; }
.hb { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.hb-kutu {
  width: 16px; height: 44px; border-radius: 5px;
  background: var(--surface-2); display: flex; align-items: flex-end; overflow: hidden;
}
.hb-bar { width: 100%; background: #9aa5b5; border-radius: 5px 5px 0 0; transition: height .3s; }
.hb.simdi .hb-kutu { width: 20px; height: 52px; }
.hb.simdi .hb-bar { background: var(--primary); }
.hb-deger { font-size: 10px; font-weight: 700; color: var(--muted); }
.hb.simdi .hb-deger { color: var(--primary-dark); font-size: 11px; }

.buyuk-yuzde { min-width: 110px; }
.by-ust { display: flex; align-items: baseline; }
.by-ust input {
  width: 64px; border: none; background: transparent;
  font-size: 30px; font-weight: 600; color: var(--text);
  text-align: right; font-family: inherit;
}
.by-ust input:focus { outline: none; color: var(--primary-dark); }
.by-ust input::-webkit-outer-spin-button, .by-ust input::-webkit-inner-spin-button { -webkit-appearance: none; }
.by-yuzde-isareti { font-size: 20px; font-weight: 600; color: var(--muted); }
.by-bar { height: 7px; border-radius: 6px; background: var(--surface-2); overflow: hidden; margin: 4px 0; }
.by-bar > div { height: 100%; border-radius: 6px; background: linear-gradient(90deg, #1a73e8, #6d28d9); transition: width .3s; }
.by-alt { font-size: 10.5px; text-transform: uppercase; letter-spacing: .8px; color: var(--faint); font-weight: 700; }
@media (max-width: 900px) { .ilerleme-blok { order: 3; width: 100%; justify-content: center; } }

/* ---------- Çözüldü öne çıkanlar ---------- */
.highlight.cozuldu { opacity: .6; border-left-color: var(--green); }
.highlight.cozuldu .h-title { text-decoration: line-through; -webkit-text-decoration-color: var(--faint); text-decoration-color: var(--faint); }
.cozuldu-pin { background: var(--green-soft); color: var(--green); }

/* ---------- Kime autocomplete ---------- */
.kime-oneriler {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 50;
  background: var(--surface); border-radius: var(--radius-sm);
  box-shadow: var(--e3); max-height: 280px; overflow-y: auto;
  padding: 4px; margin-top: 4px;
}
.kime-oneri {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 8px 10px; border-radius: 8px; transition: background .12s;
}
.kime-oneri:hover { background: var(--primary-soft); }

/* ---------- Parçalama modalı ---------- */
.parca-satir {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--surface-2); border-radius: var(--radius-sm);
  padding: 12px; margin-bottom: 10px;
}
.parca-no {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  background: var(--primary-soft); color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12.5px; margin-top: 4px;
}
.parca-baslik, .parca-aciklama {
  width: 100%; border: 1px solid var(--border); border-radius: 8px;
  padding: 7px 10px; font: inherit; font-size: 13px; background: var(--surface); color: var(--text);
}
.parca-baslik { font-weight: 600; margin-bottom: 6px; }
.parca-aciklama { resize: vertical; font-size: 12.5px; }
.parca-baslik:focus, .parca-aciklama:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.parca-yan { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.parca-yan select {
  border: 1px solid var(--border); border-radius: 8px;
  padding: 6px 8px; font: inherit; font-size: 12px; background: var(--surface); color: var(--text);
}

/* ---------- Öne çıkanlar filtre + iptal görünümü ---------- */
.hl-filtre { margin-left: auto; }
.hl-filtre button { padding: 5px 11px; font-size: 12px; }
.highlight.iptal { opacity: .55; border-left-color: var(--faint); }
.highlight.iptal .h-title { text-decoration: line-through; -webkit-text-decoration-color: var(--faint); text-decoration-color: var(--faint); }
.iptal-pin { background: #e8eaed; color: var(--muted); }

/* ---------- Sahipler modalı ---------- */
.sahip-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; min-height: 30px; }
.sahip-chip { cursor: pointer; padding: 5px 11px; }
.sahip-chip:hover { opacity: .75; text-decoration: line-through; }
.h-sahipler { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.mini-btn { padding: 3px 10px !important; font-size: 11.5px !important; border-radius: 20px; }

/* ---------- Personel zaman çizelgesi ---------- */
.olay-ekle { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.olay-ekle input[type="date"], .olay-ekle select {
  border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 13px; background: var(--surface-2); color: var(--text);
}
.olay-ekle input[type="text"] { flex: 1 1; min-width: 200px; border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; font: inherit; font-size: 13px; background: var(--surface-2); color: var(--text); }
.olay-ekle input:focus, .olay-ekle select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.timeline .t-date { display: flex; align-items: center; gap: 8px; }
.tl-etiket { display: inline-flex; align-items: center; gap: 3px; border-radius: 20px; padding: 1px 8px; font-size: 10.5px; font-weight: 700; background: #eef1f6; color: var(--muted); }
.tl-etiket.tl-gorev { background: var(--primary-soft); color: var(--primary-dark); }
.tl-etiket.tl-proje { background: var(--violet-soft); color: var(--violet); }
.tl-etiket.tl-izin { background: #e0f2fe; color: #0369a1; }
.tl-etiket.tl-terfi { background: var(--green-soft); color: var(--green); }
.tl-etiket.tl-uyari { background: var(--red-soft); color: var(--red); }
.tl-etiket.tl-surec { background: var(--amber-soft); color: var(--amber); }
.timeline li.tl-uyari::before { border-color: var(--red); }
.timeline li.tl-terfi::before { border-color: var(--green); }
.timeline li.tl-proje::before { border-color: var(--violet); }
.tl-sil { color: var(--faint); margin-left: 6px; vertical-align: middle; }
.tl-sil:hover { color: var(--red); }

/* ---------- Öne çıkan: beklemede ---------- */
.highlight.beklemede { opacity: .8; border-left-color: var(--amber); background: #fffdf5; }
.beklemede-pin { background: var(--amber-soft); color: var(--amber); }

/* ---------- WhatsApp ---------- */
.btn.wa-btn { background: #25d366; border-color: #25d366; color: #fff; }
.btn.wa-btn:hover { background: #1eb855; border-color: #1eb855; box-shadow: var(--e1); }
.wa-log { border-left: 3px solid #25d366; background: var(--surface-2); border-radius: var(--radius-sm); padding: 9px 12px; margin-bottom: 8px; font-size: 12.5px; }
.wa-msg { padding: 10px 0; border-bottom: 1px solid var(--border); }
.wa-msg:last-child { border-bottom: none; }
.wa-msg .m-from { color: #128c4b; font-weight: 600; font-size: 12.5px; }

/* ---------- WhatsApp sohbet görünümü ---------- */
.sohbet-satir { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 8px; transition: background .12s; }
.sohbet-satir:hover { background: var(--surface-2); }
.sohbet-satir.aktif { background: #e7f8ee; }
.wa-thread { display: flex; flex-direction: column; gap: 8px; max-height: 480px; overflow-y: auto; padding: 4px; }
.wa-balon { max-width: 78%; padding: 8px 12px; border-radius: 12px; font-size: 13px; }
.wa-balon.karsi { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 3px; }
.wa-balon.ben { align-self: flex-end; background: #d9fdd3; border-bottom-right-radius: 3px; }
.wa-balon-metin { white-space: pre-wrap; }
.wa-balon-tarih { font-size: 10.5px; color: var(--muted); margin-top: 3px; }

/* WhatsApp: işlenmeyi bekleyen yeni mesaj rozeti */
.wa-yeni {
  background: #25d366;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
}

/* WhatsApp sohbet balonunda medya */
.wa-balon-gorsel {
  max-width: 220px;
  max-height: 260px;
  border-radius: 10px;
  display: block;
  margin-bottom: 4px;
  object-fit: cover;
}
.wa-balon-dosya {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(0,0,0,0.06);
  border-radius: 8px;
  font-size: 13px;
  color: inherit;
  text-decoration: none;
  margin-bottom: 4px;
}

/* Sonraki yenileme geri sayım sayacı (sidebar alt) */
.rc-baslik {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--side-text-dim);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 6px;
}
.rc-liste { display: flex; flex-direction: column; gap: 3px; }
.rc-satir {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
}
.rc-ikon { color: var(--side-text-dim); font-size: 15px; }
.rc-ad { flex: 1 1; color: var(--side-text); }
.rc-kalan {
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: #9db4ff;
  background: rgba(148, 168, 230, .16);
  padding: 1px 7px;
  border-radius: 6px;
  min-width: 56px;
  text-align: center;
}

/* Konumlar sayfası: harita + yan panel */
.konum-duzen { display: grid; grid-template-columns: 1fr 300px; grid-gap: 16px; gap: 16px; align-items: stretch; }
.konum-harita { min-height: 360px; height: 100%; border-radius: 10px; overflow: hidden; z-index: 0; }
.konum-yan { display: flex; flex-direction: column; gap: 10px; }
.konum-yan label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.konum-cift { display: flex; gap: 8px; }
.konum-cift label { flex: 1 1; }
.konum-cift input { width: 100%; }
.konum-yan-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 2px; }
.leaflet-container { font: inherit; }
@media (max-width: 760px) { .konum-duzen { grid-template-columns: 1fr; } .konum-harita { min-height: 300px; } }
/* Mesai konum rozetleri */
.konum-rozet { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 6px; }
.konum-ic { background: rgba(37,99,235,.12); color: #2563eb; }
.konum-disi { background: rgba(214,55,40,.14); color: var(--red, #d63728); }

/* Konum modalı (OSM harita) */
.konum-modal { width: 720px; }
.konum-modal-bilgi { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 2px 0 12px; }
.konum-modal-harita { height: 420px; max-height: 60vh; border-radius: 10px; overflow: hidden; z-index: 0; }
.konum-rozet.tiklanir { cursor: pointer; }
.konum-rozet.tiklanir:hover { filter: brightness(0.95); text-decoration: underline; }

/* Personel AI token kartı (OmniRoute) */
.token-card { border-left: 3px solid #7c3aed; }
.token-stats { display: flex; gap: 24px; margin: 4px 0 12px; }
.token-stat .num { font-size: 24px; font-weight: 700; font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }
.token-stat .lbl { font-size: 12px; color: var(--muted); }
.token-key { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.token-key-lbl { font-size: 12px; font-weight: 600; color: var(--muted); }
.token-key-val { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; background: var(--surface-2); padding: 4px 9px; border-radius: 7px; }

/* ---------- Giriş ekranı ---------- */
body.giris-mode .sidebar { display: none; }
body.giris-mode .shell { display: block; }
body.giris-mode .content { padding: 0; max-width: none; }

.giris-sahne {
  min-height: 100dvh; display: flex; align-items: center; justify-content: center;
  padding: 24px 16px;
}
.giris-kart {
  width: 400px; max-width: 100%;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 28px 26px 22px;
  box-shadow: var(--e4), var(--glow), var(--inner-light);
}
.giris-marka { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.giris-marka .brand-mark { width: 48px; height: 48px; font-size: 20px; border-radius: 14px; }
.giris-marka .gm-ad {
  font-size: 18px; font-weight: 700; font-family: var(--font-display);
  color: var(--text-strong); letter-spacing: -.2px;
}
.giris-marka .gm-alt { font-size: 12px; color: var(--muted); margin-top: 1px; }
.giris-btn { width: 100%; margin-top: 4px; padding: 11px 0; font-size: 14px; }
.giris-not {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 16px; font-size: 11.5px; color: var(--faint);
}

/* ---------- Proje klasörleri ---------- */
.pk-wrap { position: relative; }
.pk-wrap > .kebab-wrap {
  position: absolute; top: 10px; right: 10px; z-index: 2;
}
.pk-wrap .proje-card { padding-right: 44px; }
.group-title.pk-baslik { text-transform: none; letter-spacing: .2px; font-size: 13px; color: var(--text-strong); }
.group-title.pk-baslik .ms { color: var(--amber); }
.group-title.pk-baslik .kebab-wrap { order: 3; }
.group-title.pk-baslik::after { order: 2; }

/* ---------- Klasör kartı (aç/kapa + ilerleme) ---------- */
.pk-klasor { margin-bottom: 18px; }
.pk-kart {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px;
  box-shadow: var(--e1), var(--inner-light);
  cursor: pointer; -webkit-user-select: none; -moz-user-select: none; user-select: none;
  transition: border-color .16s, box-shadow .16s;
}
.pk-kart:hover { border-color: var(--border-strong); box-shadow: var(--e2), var(--inner-light), var(--glow); }
.pk-kart.acik { border-bottom-left-radius: 6px; border-bottom-right-radius: 6px; }
.pk-ikon {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--amber-soft); color: var(--amber);
  border: 1px solid rgba(255, 185, 90, .28);
}
.pk-ikon .ms { font-size: 22px; }
.pk-bilgi { flex: 1 1; min-width: 0; }
.pk-ad {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 14.5px; font-weight: 650; color: var(--text-strong);
  font-family: var(--font-display); letter-spacing: -.1px;
}
.pk-ozet { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.pk-bar {
  position: relative; height: 6px; border-radius: 4px;
  background: var(--surface-3); overflow: hidden; margin-top: 9px;
}
.pk-bar i {
  display: block; height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, #5b7cfa, #38d9ff);
  transition: width .4s cubic-bezier(.2, 0, 0, 1);
}
.pk-bar.mini { margin-top: 10px; height: 5px; }
.pk-bar.mini span {
  position: absolute; right: 0; top: -17px;
  font-size: 10.5px; font-weight: 700; color: var(--primary-bright);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}
.pk-bar.mini { overflow: visible; }
.pk-bar.mini i { border-radius: 4px; }
.pk-sag { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.pk-yuzde {
  font-size: 19px; font-weight: 700; font-family: var(--font-display);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, var(--grad-num-a), var(--grad-num-b));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-right: 4px;
}
.pk-chev { color: var(--faint); }
.pk-icerik { margin-top: 10px; }
@media (max-width: 640px) {
  .pk-yuzde { font-size: 16px; }
  .pk-ozet .tag { font-size: 10.5px; }
}

/* ---------- Proje modalı form yardımcıları ---------- */
.pj-satir { display: grid; grid-template-columns: 1fr 1.2fr 1fr; grid-gap: 12px; gap: 12px; }
@media (max-width: 640px) { .pj-satir { grid-template-columns: 1fr; } }
.pj-select {
  width: 100%; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 9px 12px; font: inherit; font-size: 13.5px; color: var(--text);
  background: var(--input-bg); cursor: pointer;
}
.pj-select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-ring); }
.pj-range { width: 100%; accent-color: var(--primary); padding: 12px 0 6px; }
.pj-paydas {
  display: grid; grid-template-columns: 1fr 1.3fr auto auto; grid-gap: 8px; gap: 8px;
  align-items: center; margin-bottom: 8px;
}
.pj-paydas input {
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 8px 11px; font: inherit; font-size: 13px; color: var(--text);
  background: var(--input-bg);
}
.pj-paydas input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-ring); }
.pj-paydas .pj-select { width: auto; padding: 8px 10px; }

