/* Senne Wechter AI Agent paneli. Tasarım dili ve renk tanımları Zernio panelinden. */
@font-face {
  font-family: "Geist";
  src: url("Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --background: 0 0% 100%;
  --foreground: 0 0% 17.6%;
  --card: 0 0% 100%;
  --muted: 48 14.3% 93.1%;
  --muted-foreground: 0 0% 42%;
  --accent: 48 14.3% 93.1%;
  --primary: 0 0% 17.6%;
  --primary-foreground: 0 0% 100%;
  --destructive: 0 74% 42%;
  --border: 50 7.3% 83.9%;
  --border-subtle: 0 0% 94.9%;
  --input: 50 7.3% 83.9%;
  --ring: 0 0% 17.6%;
  --brand: 9.2 84.3% 50%;
  --success: 163 94% 24%;
  --warning: 26 90% 37%;
  --danger: 0 74% 42%;
  --info: 201 96% 32%;
  --link: 201 96% 32%;
  --row-selected: 9.2 84.3% 50% / .05;
  --sidebar-background: 48 14.3% 93.1%;
  --sidebar-foreground: 0 0% 17.6%;
  --sidebar-accent: 0 0% 17.6% / .06;
  --sidebar-border: 50 7.3% 83.9%;
  --radius: .5rem;
  --tablo-baslik: 48 14.3% 96.5%;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --background: 0 8.6% 6.9%; --foreground: 48 14.3% 93.1%; --card: 0 5.9% 10%;
    --muted: 0 0% 100% / .06; --muted-foreground: 0 4.1% 71%; --accent: 0 0% 100% / .06;
    --primary: 48 14.3% 93.1%; --primary-foreground: 0 8.6% 6.9%;
    --border: 0 4.3% 22.9%; --border-subtle: 0 0% 14.1%; --input: 0 4.3% 22.9%; --ring: 0 4.1% 71%;
    --success: 156 72% 67%; --warning: 46 97% 65%; --danger: 0 94% 82%; --info: 199 95% 74%; --link: 199 95% 74%;
    --row-selected: 9.2 84.3% 50% / .08;
    --sidebar-background: 0 5.9% 10%; --sidebar-foreground: 48 14.3% 93.1%; --sidebar-accent: 0 0% 100% / .06; --sidebar-border: 0 4.3% 22.9%;
    --tablo-baslik: 0 0% 100% / .03;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --background: 0 8.6% 6.9%; --foreground: 48 14.3% 93.1%; --card: 0 5.9% 10%;
  --muted: 0 0% 100% / .06; --muted-foreground: 0 4.1% 71%; --accent: 0 0% 100% / .06;
  --primary: 48 14.3% 93.1%; --primary-foreground: 0 8.6% 6.9%;
  --border: 0 4.3% 22.9%; --border-subtle: 0 0% 14.1%; --input: 0 4.3% 22.9%; --ring: 0 4.1% 71%;
  --success: 156 72% 67%; --warning: 46 97% 65%; --danger: 0 94% 82%; --info: 199 95% 74%; --link: 199 95% 74%;
  --row-selected: 9.2 84.3% 50% / .08;
  --sidebar-background: 0 5.9% 10%; --sidebar-foreground: 48 14.3% 93.1%; --sidebar-accent: 0 0% 100% / .06; --sidebar-border: 0 4.3% 22.9%;
  --tablo-baslik: 0 0% 100% / .03;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font: 14px/1.5 "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: hsl(var(--foreground));
  background: hsl(var(--background));
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
a { color: hsl(var(--link)); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid hsl(var(--brand)); outline-offset: 2px; border-radius: 4px; }
.ikon { flex: none; }

/* ---------- Düzen ---------- */
.duzen { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.kenar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  background: hsl(var(--sidebar-background)); border-right: 1px solid hsl(var(--sidebar-border));
  color: hsl(var(--sidebar-foreground)); padding: 12px;
}
.kullanici-blok { display: flex; align-items: center; gap: 10px; padding: 6px 4px 14px; }
.avatar {
  width: 34px; height: 34px; border-radius: 8px; flex: none; display: grid; place-items: center;
  background: hsl(var(--brand)); color: #fff; font-weight: 600; font-size: 15px;
}
.kullanici-bilgi { min-width: 0; flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.kullanici-ad { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; }
.plan-rozet { font-size: 11px; font-weight: 500; padding: 0 6px; border-radius: 4px; background: hsl(var(--sidebar-accent)); color: hsl(var(--muted-foreground)); }
.kullanici-mail { font-size: 12.5px; color: hsl(var(--muted-foreground)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kenar-ikon-dugme {
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 6px; border: 0;
  background: transparent; color: hsl(var(--muted-foreground)); cursor: pointer; flex: none;
}
.kenar-ikon-dugme:hover { background: hsl(var(--sidebar-accent)); color: hsl(var(--sidebar-foreground)); text-decoration: none; }

.gezinme { display: flex; flex-direction: column; gap: 1px; overflow-y: auto; flex: 1; margin: 0 -4px; padding: 0 4px; }
.gez-oge {
  display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 8px; border-radius: 6px;
  color: hsl(var(--sidebar-foreground)); text-decoration: none; font-size: 14px; cursor: pointer; user-select: none;
}
.gez-oge .ikon { color: hsl(var(--muted-foreground)); }
.gez-oge:hover { background: hsl(var(--sidebar-accent)); text-decoration: none; }
.gez-oge.aktif { background: hsl(var(--sidebar-accent)); font-weight: 500; }
.gez-oge.aktif .ikon { color: hsl(var(--sidebar-foreground)); }
.gez-grup > summary { list-style: none; }
.gez-grup > summary::-webkit-details-marker { display: none; }
.gez-ok { margin-left: auto; display: flex; color: hsl(var(--muted-foreground)); transition: transform .15s ease; }
.gez-grup[open] .gez-ok { transform: rotate(90deg); }
.gez-alt { display: flex; flex-direction: column; gap: 1px; padding: 2px 0 4px 16px; }
.gez-alt .gez-oge { height: 32px; font-size: 13.5px; }

.kenar-durum { display: flex; flex-direction: column; gap: 2px; padding: 10px 20px; margin: 8px -12px 0; border-top: 1px solid hsl(var(--sidebar-border)); }
.durum-satir { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: hsl(var(--muted-foreground)); }
a.durum-satir:hover { color: hsl(var(--foreground)); text-decoration: none; }
.nokta { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.nokta.iyi { background: hsl(var(--success)); }
.nokta.uyari { background: hsl(var(--warning)); }
.nokta.kotu { background: hsl(var(--danger)); }
.nokta.sonuk { background: hsl(var(--muted-foreground) / .5); }

.kenar-alt { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 0; margin: 0 -12px; border-top: 1px solid hsl(var(--sidebar-border)); }
.belge-dugme {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px;
  background: hsl(0 0% 9%); color: #fff; font-size: 13px; font-weight: 500;
}
:root[data-theme="dark"] .belge-dugme { background: hsl(48 14.3% 93.1%); color: hsl(0 8.6% 6.9%); }
.belge-dugme:hover { text-decoration: none; opacity: .9; }

.ana-icerik { min-width: 0; padding: 28px 32px 64px; }
.sayfa-baslik { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
h1 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; margin: 0; line-height: 1.3; }
.sayfa-alt { margin: 2px 0 0; color: hsl(var(--muted-foreground)); font-size: 14px; }
.sayfa-eylem { display: flex; gap: 8px; flex-wrap: wrap; }
.sayfa-eylem:empty { display: none; }
h2 { font-size: 15px; font-weight: 600; margin: 0 0 12px; }
h3 { font-size: 14px; font-weight: 600; margin: 12px 0 6px; }
.aciklama { color: hsl(var(--muted-foreground)); font-size: 13px; margin: 0 0 8px; max-width: 80ch; }
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12.5px; background: hsl(var(--muted)); padding: 1px 5px; border-radius: 4px; }
.mobil-menu { display: none; }

/* ---------- Kartlar ---------- */
.kutu { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; }
.hata-kutu { border-color: hsl(var(--danger) / .4); }
.ikili { display: grid; grid-template-columns: repeat(auto-fit, minmax(440px, 1fr)); gap: 16px; align-items: start; }
.ikili > .kutu { margin-bottom: 0; }
.ust-satir { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.ust-satir h2 { margin: 0; }
.sag { margin-left: auto; }

.rakamlar { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 20px; }
.rakam { display: block; padding: 14px 16px; border: 1px solid hsl(var(--border)); border-radius: var(--radius); background: hsl(var(--card)); color: inherit; }
.rakam b { display: block; font-size: 26px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.rakam span { color: hsl(var(--muted-foreground)); font-size: 13px; }
a.rakam:hover { text-decoration: none; border-color: hsl(var(--foreground) / .3); }

/* ---------- Tablolar ---------- */
.tablo-kap { overflow-x: auto; border: 1px solid hsl(var(--border)); border-radius: var(--radius); background: hsl(var(--card)); }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-weight: 500; font-size: 13px; color: hsl(var(--muted-foreground)); background: hsl(var(--tablo-baslik)); padding: 10px 16px; border-bottom: 1px solid hsl(var(--border)); white-space: nowrap; }
td { padding: 12px 16px; font-size: 14px; border-bottom: 1px solid hsl(var(--border-subtle)); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: hsl(var(--row-selected)); }
td.sayi, th.sayi { text-align: right; }
td .ince { color: hsl(var(--muted-foreground)); font-size: 12.5px; display: block; }
.ince { color: hsl(var(--muted-foreground)); }
td a { color: hsl(var(--foreground)); font-weight: 500; }
.kisa { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bos { padding: 36px; text-align: center; color: hsl(var(--muted-foreground)); }
td input[type=text], td select { height: 36px; }

/* Durum etiketleri */
.rozet { display: inline-block; padding: 1px 7px; border-radius: 4px; font-size: 11.5px; font-weight: 500; white-space: nowrap; line-height: 18px; }
.rozet.iyi { background: hsl(var(--success) / .12); color: hsl(var(--success)); }
.rozet.uyari { background: hsl(var(--warning) / .12); color: hsl(var(--warning)); }
.rozet.kotu { background: hsl(var(--danger) / .12); color: hsl(var(--danger)); }
.rozet.bilgi { background: hsl(var(--info) / .12); color: hsl(var(--info)); }
.rozet.bakir { background: hsl(var(--brand) / .12); color: hsl(var(--brand)); }
.rozet.sonuk { background: hsl(var(--muted)); color: hsl(var(--muted-foreground)); }

/* ---------- Form ---------- */
.alan { margin-bottom: 16px; }
.alan > label { display: block; font-weight: 500; font-size: 13.5px; margin-bottom: 4px; }
.alan .aciklama { margin-top: -2px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=search], input[type=datetime-local], select, textarea {
  width: 100%; height: 36px; padding: 0 12px; font: inherit; font-size: 14px; color: inherit;
  background: hsl(var(--background)); border: 1px solid hsl(var(--input)); border-radius: 6px;
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: hsl(var(--muted-foreground)); }
input[type=number] { max-width: 160px; }
textarea { height: auto; padding: 8px 12px; resize: vertical; line-height: 1.55; }
textarea.kod { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12.5px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: hsl(var(--brand)); box-shadow: 0 0 0 3px hsl(var(--brand) / .15); }
select {
  appearance: none; -webkit-appearance: none; padding-right: 32px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b6b6b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
input[type=checkbox] { accent-color: hsl(var(--brand)); width: 16px; height: 16px; }
input[type=file] { font: inherit; font-size: 13px; }
.filtre { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filtre input, .filtre select { width: auto; min-width: 0; height: 32px; font-size: 13px; }
.filtre select { max-width: 190px; }
.filtre select { padding-left: 10px; }
form.filtre.kutu { background: transparent; border: 0; padding: 0; margin-bottom: 16px; }
.form-alt { display: flex; gap: 8px; align-items: center; padding-top: 4px; flex-wrap: wrap; }
.satir-form { display: inline; }

.dugme {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 14px; border-radius: 6px; border: 1px solid transparent;
  background: hsl(var(--brand)); color: #fff; font: inherit; font-size: 14px; font-weight: 500;
  cursor: pointer; white-space: nowrap; text-decoration: none; transition: background .15s, border-color .15s;
}
.dugme:hover { background: hsl(9.2 84.3% 45%); text-decoration: none; }
.dugme.ikincil { background: hsl(var(--background)); color: hsl(var(--foreground)); border-color: hsl(var(--border)); }
.dugme.ikincil:hover { background: hsl(var(--accent)); }
.dugme.tehlike { background: hsl(var(--background)); color: hsl(var(--danger)); border-color: hsl(var(--danger) / .3); }
.dugme.tehlike:hover { background: hsl(var(--danger) / .08); }
.dugme.kucuk { height: 30px; padding: 0 10px; font-size: 13px; }
.dugme.kapali { opacity: .45; pointer-events: none; }
.dugme.n8n { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }

/* Açma/kapama anahtarı */
.anahtar { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; }
.anahtar input[type=checkbox] { appearance: none; -webkit-appearance: none; width: 36px; height: 20px; border-radius: 999px; background: hsl(var(--input)); position: relative; cursor: pointer; transition: background .15s; margin: 0; flex: none; }
.anahtar input[type=checkbox]::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .15s; }
.anahtar input[type=checkbox]:checked { background: hsl(var(--brand)); }
.anahtar input[type=checkbox]:checked::after { transform: translateX(16px); }

/* Bildirimler */
.bildirim { padding: 10px 14px; border-radius: var(--radius); margin-bottom: 16px; font-size: 14px; border: 1px solid; }
.bildirim.ok { background: hsl(var(--success) / .08); border-color: hsl(var(--success) / .3); color: hsl(var(--success)); }
.bildirim.hata { background: hsl(var(--danger) / .08); border-color: hsl(var(--danger) / .3); color: hsl(var(--danger)); }
.bildirim.uyari { background: hsl(var(--warning) / .08); border-color: hsl(var(--warning) / .3); color: hsl(var(--warning)); }

/* Sekmeler */
.sekmeler { display: inline-flex; gap: 2px; padding: 3px; margin-bottom: 14px; border-radius: 8px; background: hsl(var(--muted)); flex-wrap: wrap; }
.sekmeler a { padding: 5px 12px; border-radius: 6px; color: hsl(var(--muted-foreground)); font-size: 13.5px; font-weight: 500; }
.sekmeler a:hover { color: hsl(var(--foreground)); text-decoration: none; }
.sekmeler a.aktif { background: hsl(var(--background)); color: hsl(var(--foreground)); box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.sekmeler a b { font-weight: 500; color: hsl(var(--muted-foreground)); margin-left: 4px; }

/* Talimat düzenleyici ve açılır bölümler */
.degiskenler { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.degiskenler code { background: hsl(var(--brand) / .1); color: hsl(var(--brand)); }
details.katlanir { border-top: 1px solid hsl(var(--border-subtle)); padding: 12px 0; }
details.katlanir:first-of-type { border-top: 0; padding-top: 0; }
details.kutu.katlanir { padding: 14px 20px; border: 1px solid hsl(var(--border)); }
details.katlanir > summary { cursor: pointer; list-style: none; display: flex; align-items: baseline; gap: 4px 10px; flex-wrap: wrap; font-weight: 500; }
details.katlanir > summary::-webkit-details-marker { display: none; }
details.katlanir > summary::after { content: "Düzenle"; margin-left: auto; color: hsl(var(--muted-foreground)); font-weight: 400; font-size: 13px; }
details.katlanir[open] > summary::after { content: "Kapat"; }
details.katlanir > summary > span { flex: 1; }
details.katlanir > summary .aciklama { margin: 2px 0 0; font-weight: 400; }
details.katlanir[open] > summary { margin-bottom: 10px; }
summary { cursor: pointer; }

/* Mail metni ve zaman çizgisi */
.mail-govde { white-space: pre-wrap; background: hsl(var(--muted)); border-radius: 6px; padding: 12px 14px; font-size: 13.5px; max-height: 420px; overflow: auto; margin: 8px 0 0; }
.zaman-cizgisi { list-style: none; margin: 0; padding: 0; }
.zaman-cizgisi li { padding: 10px 0 10px 20px; position: relative; border-left: 1px solid hsl(var(--border)); margin-left: 4px; }
.zaman-cizgisi li::before { content: ""; position: absolute; left: -5px; top: 16px; width: 9px; height: 9px; border-radius: 50%; background: hsl(var(--muted-foreground) / .5); border: 2px solid hsl(var(--card)); }
.zaman-cizgisi li.gelen::before { background: hsl(var(--brand)); }
.zaman-cizgisi li.giden::before { background: hsl(var(--info)); }
.zaman-cizgisi .ust { color: hsl(var(--muted-foreground)); font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

.bilgi-tablosu { display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; margin: 0; font-size: 14px; }
.bilgi-tablosu dt { color: hsl(var(--muted-foreground)); }
.bilgi-tablosu dd { margin: 0; overflow-wrap: anywhere; }

.sayfalama { display: flex; gap: 8px; align-items: center; padding: 12px 0; color: hsl(var(--muted-foreground)); font-size: 13px; }

/* ---------- Giriş ---------- */
body.giris-sayfa { display: grid; place-items: center; min-height: 100vh; background: hsl(var(--sidebar-background)); padding: 16px; }
.giris-kart { width: min(380px, 100%); background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: 12px; padding: 28px; box-shadow: 0 1px 3px rgba(0, 0, 0, .04); }
.giris-kart h1 { font-size: 20px; margin-bottom: 4px; }
.giris-kart .sayfa-alt { margin-bottom: 22px; }
.giris-kart .dugme { width: 100%; margin-top: 4px; }
.giris-logo { width: 36px; height: 36px; border-radius: 9px; background: hsl(var(--brand)); color: #fff; display: grid; place-items: center; font-weight: 600; margin-bottom: 18px; }

/* ---------- Mobil ---------- */
@media (max-width: 900px) {
  .duzen { grid-template-columns: 1fr; }
  .kenar { position: fixed; inset: 0 auto 0 0; width: 272px; z-index: 30; transform: translateX(-100%); transition: transform .2s ease; box-shadow: 4px 0 24px rgba(0, 0, 0, .12); }
  .kenar.acik { transform: none; }
  .mobil-menu { display: inline-grid; place-items: center; width: 36px; height: 36px; margin-bottom: 12px; border-radius: 6px; border: 1px solid hsl(var(--border)); background: hsl(var(--background)); color: inherit; }
  .ana-icerik { padding: 16px 16px 48px; }
  .ikili { grid-template-columns: 1fr; }
  .bilgi-tablosu { grid-template-columns: 1fr; gap: 2px 0; }
  .bilgi-tablosu dd { margin-bottom: 8px; }
  .sayfa-baslik { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* =====================================================================
   Zernio bileşenleri: diyalog, açılır menü, bildirim (toast), arama, ikon düğme
   Zamanlamalar Zernio CSS'inden: varsayılan geçiş .15s cubic-bezier(.4,0,.2,1),
   shadcn animate-in .15s (fade-in-0 + zoom-in-95), react-hot-toast giriş/çıkış.
   ===================================================================== */
:root { --gecis: .15s cubic-bezier(.4, 0, .2, 1); --popover: 0 0% 100%; }
:root[data-theme="dark"] { --popover: 0 5.9% 10%; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --popover: 0 5.9% 10%; } }
a, button, .gez-oge, .dugme, input, select, textarea, .rakam, tbody td { transition: color var(--gecis), background-color var(--gecis), border-color var(--gecis), box-shadow var(--gecis), opacity var(--gecis); }

/* Kaydırma çubuğu (Zernio: 8px, charcoal-muted, 4px köşe) */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background-color: #6b6b6b66; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background-color: #6b6b6b; }
* { scrollbar-width: thin; scrollbar-color: #6b6b6b66 transparent; }

/* shadcn animate-in / animate-out */
@keyframes enter { from { opacity: var(--tw-enter-opacity, 1); transform: translate3d(var(--tw-enter-translate-x, 0), var(--tw-enter-translate-y, 0), 0) scale3d(var(--tw-enter-scale, 1), var(--tw-enter-scale, 1), var(--tw-enter-scale, 1)); } }
@keyframes exit { to { opacity: var(--tw-exit-opacity, 1); transform: translate3d(var(--tw-exit-translate-x, 0), var(--tw-exit-translate-y, 0), 0) scale3d(var(--tw-exit-scale, 1), var(--tw-exit-scale, 1), var(--tw-exit-scale, 1)); } }
@keyframes fadeInUp { 0% { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Arama kutusu (büyüteç ikonlu) */
.arama { position: relative; display: inline-flex; align-items: center; }
.arama > .ikon { position: absolute; left: 10px; color: hsl(var(--muted-foreground)); pointer-events: none; }
.arama > input { padding-left: 32px !important; min-width: 220px; }

/* İkon düğme (tablolardaki çöp kutusu, kapat) */
.ikon-dugme {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 6px; border: 0;
  background: transparent; color: hsl(var(--muted-foreground)); cursor: pointer; padding: 0;
}
.ikon-dugme:hover { background: hsl(var(--accent)); color: hsl(var(--foreground)); }
.ikon-dugme.tehlike:hover { background: hsl(var(--danger) / .1); color: hsl(var(--danger)); }

/* ---------- Diyalog (shadcn Dialog) ---------- */
dialog.diyalog {
  width: min(448px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: auto;
  padding: 24px; border: 1px solid hsl(var(--border)); border-radius: var(--radius);
  background: hsl(var(--background)); color: hsl(var(--foreground));
  box-shadow: 0 16px 32px -8px rgb(0 0 0 / .12);
}
dialog.diyalog.genis { width: min(720px, calc(100vw - 32px)); }
dialog.diyalog::backdrop { background: rgb(0 0 0 / .5); }
/* Zernio Dialog: açılış/kapanış animasyonu yok, perde %50 siyah + 4px bulanıklık */
dialog.diyalog::backdrop { -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.diyalog-baslik { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; padding-right: 24px; }
.diyalog-baslik h2 { font-size: 18px; font-weight: 600; line-height: 1; letter-spacing: -0.01em; margin: 0; }
.diyalog-baslik p { margin: 0; font-size: 14px; color: hsl(var(--muted-foreground)); }
.diyalog-kapat { position: absolute; right: 16px; top: 16px; opacity: .7; width: 24px; height: 24px; }
.diyalog-kapat:hover { opacity: 1; }
.diyalog-alt { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; flex-wrap: wrap-reverse; }
dialog.diyalog .ikili { grid-template-columns: 1fr 1fr; gap: 0 12px; }
dialog.diyalog .alan { margin-bottom: 14px; }

/* ---------- Açılır menü (shadcn DropdownMenu) ---------- */
.acilir { position: relative; }
.acilir-icerik {
  position: absolute; z-index: 50; min-width: 14rem; padding: 4px; margin-top: 4px;
  background: hsl(var(--popover)); color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border)); border-radius: 6px;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);
  display: none;
}
.acilir.acik > .acilir-icerik { display: block; animation: enter .15s ease; --tw-enter-opacity: 0; --tw-enter-scale: .95; --tw-enter-translate-y: -.5rem; }
.acilir.kapaniyor > .acilir-icerik { display: block; animation: exit .15s ease forwards; --tw-exit-opacity: 0; --tw-exit-scale: .95; --tw-exit-translate-y: -.5rem; }
.acilir-etiket { padding: 6px 8px; font-size: 14px; font-weight: 600; }
.acilir-etiket small { display: block; font-weight: 400; font-size: 12.5px; color: hsl(var(--muted-foreground)); }
.acilir-oge {
  display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 8px; border-radius: 4px; border: 0;
  background: transparent; color: inherit; font: inherit; font-size: 14px; text-align: left; cursor: pointer; text-decoration: none;
}
.acilir-oge:hover, .acilir-oge:focus-visible { background: hsl(var(--accent)); text-decoration: none; outline: none; }
.acilir-oge .ikon { color: hsl(var(--muted-foreground)); }
.acilir-oge .kisayol { margin-left: auto; font-size: 12px; color: hsl(var(--muted-foreground)); letter-spacing: .1em; }
.acilir-ayrac { height: 1px; margin: 4px -4px; background: hsl(var(--border)); }
.kullanici-tetik {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px; margin: 0 -2px; border-radius: 8px; border: 0;
  background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.kullanici-tetik:hover, .acilir.acik > .kullanici-tetik { background: hsl(var(--sidebar-accent)); }
.kullanici-tetik > .ikon { color: hsl(var(--muted-foreground)); margin-left: auto; }
.kullanici-blok .acilir { flex: 1; min-width: 0; }
.kullanici-blok .acilir-icerik { left: 0; right: 0; }

/* ---------- Bildirim (react-hot-toast varsayılanları) ---------- */
.tost-alan { position: fixed; z-index: 9999; inset: 16px; margin: 0; padding: 0; border: 0; background: transparent; overflow: visible; width: auto; height: auto; pointer-events: none; }
.tost-sar { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: center; }
.tost-sar:not(.gorunur) .tost { pointer-events: none; }
.tost {
  display: flex; align-items: center; max-width: 350px; padding: 8px 10px; border-radius: 8px; pointer-events: auto;
  background: #fff; color: #363636; line-height: 1.3; font-size: 14px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .1), 0 3px 3px rgba(0, 0, 0, .05);
  animation: tostGir .35s cubic-bezier(.21, 1.02, .73, 1) forwards;
}
.tost.cikiyor { animation: tostCik .4s cubic-bezier(.06, .71, .55, 1) forwards; }
.tost-mesaj { margin: 4px 10px; flex: 1 1 auto; white-space: pre-line; }
@keyframes tostGir { 0% { transform: translate3d(0, -200%, 0) scale(.6); opacity: .5; } 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 1; } }
@keyframes tostCik { 0% { transform: translate3d(0, 0, -1px) scale(1); opacity: 1; } 100% { transform: translate3d(0, -150%, -1px) scale(.6); opacity: 0; } }
.tost-ikon { position: relative; flex: none; width: 20px; height: 20px; border-radius: 10px; opacity: 0; transform: scale(0) rotate(45deg); animation: tostDaire .3s cubic-bezier(.175, .885, .32, 1.275) forwards .1s; }
.tost-ikon.ok { background: #61d345; }
.tost-ikon.hata { background: #ff4b4b; }
.tost-ikon.uyari { background: #f59e0b; }
.tost-ikon.ok::after {
  content: ""; position: absolute; box-sizing: border-box; border-right: 2px solid #fff; border-bottom: 2px solid #fff;
  bottom: 6px; left: 6px; height: 10px; width: 6px; opacity: 0; animation: tostTik .2s ease-out forwards .2s;
}
.tost-ikon.hata::before, .tost-ikon.hata::after, .tost-ikon.uyari::before {
  content: ""; position: absolute; border-radius: 3px; background: #fff; bottom: 9px; left: 4px; height: 2px; width: 12px;
  opacity: 0; animation: tostCizgi .15s ease-out forwards .15s;
}
.tost-ikon.hata::after { animation-delay: .18s; transform: rotate(90deg); }
.tost-ikon.uyari::before { transform: rotate(-45deg) rotate(90deg); width: 2px; height: 8px; left: 9px; bottom: 8px; }
@keyframes tostDaire { from { transform: scale(0) rotate(45deg); opacity: 0; } to { transform: scale(1) rotate(45deg); opacity: 1; } }
@keyframes tostTik { 0% { height: 0; width: 0; opacity: 0; } 40% { height: 0; width: 6px; opacity: 1; } 100% { opacity: 1; height: 10px; } }
@keyframes tostCizgi { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.tost-ikon.hata::before { animation-name: tostCizgi; }
/* react-hot-toast: hareket azaltılmışsa yalnız saydamlık geçişi */
@keyframes tostSoluk { from { opacity: 0; } to { opacity: 1; } }
@keyframes tostSolukCik { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tost { animation-name: tostSoluk; } .tost.cikiyor { animation-name: tostSolukCik; } }

/* ---------- Giriş: Zernio krem zemin + yükselen sütunlar ---------- */
body.giris-sayfa { position: relative; isolation: isolate; overflow: hidden; background: #f0efeb; }
:root[data-theme="dark"] body.giris-sayfa { background: #0d0d11; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body.giris-sayfa { background: #0d0d11; } }
.giris-arka { pointer-events: none; position: absolute; inset: auto 0 0 0; height: 62svh; overflow: hidden; z-index: -1; }
.giris-arka > div { position: absolute; inset: 0 -30% -8% -30%; }
.zernio-rise { height: 100%; width: 100%; transform-origin: bottom; animation: zernio-rise var(--zernio-rise-duration) var(--zernio-rise-ease) both; }
.zernio-rise svg { height: 100%; width: 100%; display: block; }
@keyframes zernio-rise { 0% { transform: scaleY(var(--zernio-rise-from, 0)); } to { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .zernio-rise { animation: none; } }
.giris-kart { position: relative; }
.giris-alt { position: relative; margin-top: 28px; text-align: center; font-size: 14px; line-height: 24px; color: #6b6b6b; }

/* Kenar menü grubu oku: Zernio group-open:rotate-90 */
.gez-ok { transition: transform var(--gecis); }

/* =====================================================================
   Zernio panel ekran görüntülerinden piksel ölçülen değerler (1440x900, 1x)
   Users / API Keys / Posts / Connections / Analytics ekranları
   ===================================================================== */
:root:not([data-theme="dark"]) {
  --sidebar-background: 0 0% 98%;          /* #fafafa */
  --sidebar-border: 0 0% 90.2%;            /* #e6e6e6 */
  --sidebar-accent: 0 0% 90.2%;            /* aktif öğe #e6e6e6 */
  --border: 0 0% 90.2%;                    /* tablo/kart çerçevesi #e6e6e6 */
  --border-subtle: 0 0% 90.2%;
  --input: 0 0% 88.6%;                     /* girdi çerçevesi #e2e2e2 */
  --tablo-baslik: 0 0% 96.1%;              /* #f5f5f5 */
  --muted-foreground: 0 0% 42%;            /* #6b6b6b */
  --foreground: 0 0% 4%;                   /* #0a0a0a */
  --brand: 9 84% 50%;                      /* düğme #eb3615 */
  --accent: 0 0% 96.1%;
  --muted: 0 0% 94.1%;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) {
    --sidebar-background: 0 5.9% 10%; --sidebar-border: 0 4.3% 22.9%; --sidebar-accent: 0 0% 100% / .06;
    --border: 0 4.3% 22.9%; --border-subtle: 0 0% 14.1%; --input: 0 4.3% 22.9%; --tablo-baslik: 0 0% 100% / .03;
    --muted-foreground: 0 4.1% 71%; --foreground: 48 14.3% 93.1%; --accent: 0 0% 100% / .06; --muted: 0 0% 100% / .06;
  }
}

/* Kenar menü: 256px (çizgi dahil), 12px iç boşluk */
.duzen { grid-template-columns: 256px 1fr; }
.kenar { padding: 0 12px; }
.kullanici-blok { padding: 18px 0 0; margin-bottom: 30px; }
.kullanici-tetik { padding: 4px 8px 4px 12px; margin: 0 -12px 0 -12px; width: calc(100% + 24px); gap: 12px; border-radius: 0; }
.kullanici-tetik:hover, .acilir.acik > .kullanici-tetik { background: transparent; }
.avatar { width: 34px; height: 34px; border-radius: 4px; font-size: 14px; }
.kullanici-bilgi { gap: 2px; }
.kullanici-ad { font-size: 14px; font-weight: 600; gap: 8px; color: hsl(var(--foreground)); }
.plan-rozet { font-size: 11px; font-weight: 500; line-height: 18px; padding: 0 6px; border-radius: 4px; background: hsl(0 0% 94%); color: hsl(0 0% 32%); }
.kullanici-mail { font-size: 13px; }
.gezinme { gap: 4px; margin: 0; padding: 0; }
.gez-oge { height: 34px; padding: 0 9px; gap: 10px; font-size: 14px; color: hsl(var(--muted-foreground)); border-radius: 6px; }
.gez-oge .ikon { width: 16px; height: 16px; color: hsl(var(--muted-foreground)); }
.gez-oge:hover { background: hsl(var(--sidebar-accent) / .6); color: hsl(var(--foreground)); }
.gez-oge.aktif { background: hsl(var(--sidebar-accent)); color: hsl(var(--foreground)); font-weight: 500; }
.gez-oge.aktif .ikon { color: hsl(var(--foreground)); }
.gez-alt { gap: 4px; padding: 4px 0 4px 24px; }
.gez-alt .gez-oge { height: 32px; }
.kenar-durum { margin: 8px -12px 0; padding: 10px 21px; }
.kenar-alt { height: 53px; padding: 0 12px; margin: 0 -12px; }
.belge-dugme { height: 24px; padding: 0 10px; gap: 5px; font-size: 12px; font-weight: 600; background: #0a0a0a; }
.belge-dugme .ikon { width: 12px; height: 12px; }
.kenar-alt .kenar-ikon-dugme { width: 32px; height: 32px; color: hsl(var(--foreground)); }

/* Sayfa: 24px kenar boşluğu, başlık 20px/600, açıklama 14px */
.ana-icerik { padding: 24px 24px 48px; }
.sayfa-baslik { margin-bottom: 29px; align-items: flex-start; }
h1 { font-size: 20px; font-weight: 600; line-height: 28px; letter-spacing: -0.01em; color: hsl(var(--foreground)); }
.sayfa-alt { font-size: 14px; line-height: 20px; margin-top: 4px; }
.sayfa-eylem { margin-top: 4px; gap: 8px; }

/* Düğmeler: 32px, 14px/500, 6px köşe */
.dugme { height: 32px; padding: 0 12px; gap: 8px; font-size: 14px; font-weight: 500; border-radius: 6px; }
.dugme .ikon { width: 16px; height: 16px; }
.dugme.kucuk { height: 28px; padding: 0 10px; font-size: 13px; }
.dugme.ikincil { border-color: hsl(var(--border)); }

/* Arama 192x34, filtre 30px / 13px, aralar 8px; tablo filtrelerin 21px altında */
form.filtre, .filtre { gap: 8px; margin-bottom: 21px; }
.arama > input { height: 34px; min-width: 192px; width: 192px; font-size: 14px; border-radius: 6px; padding-left: 34px !important; }
.arama > .ikon { left: 11px; width: 16px; height: 16px; }
.filtre select { height: 30px; font-size: 13px; padding: 0 28px 0 10px; border-radius: 6px; background-position: right 8px center; background-size: 12px; }
.filtre .dugme { height: 30px; font-size: 13px; padding: 0 10px; }

/* Tablo: çerçeve #e6e6e6, başlık 41px #f5f5f5 13px, satır 57px, yatay 16px */
.tablo-kap { border-radius: 8px; border-color: hsl(var(--border)); }
th { height: 41px; padding: 0 16px; font-size: 13px; font-weight: 500; color: hsl(var(--muted-foreground)); background: hsl(var(--tablo-baslik)); border-bottom: 1px solid hsl(var(--border)); }
td { height: 57px; padding: 8px 16px; font-size: 14px; border-bottom: 1px solid hsl(var(--border)); }
td a { font-weight: 500; color: hsl(var(--foreground)); }
td .ince { font-size: 13px; margin-top: 1px; }
tbody tr:hover td { background: hsl(var(--tablo-baslik) / .5); }

/* Durum rozeti: 11px/500, 4px köşe, 2px 6px */
.rozet { font-size: 11px; font-weight: 500; line-height: 16px; padding: 2px 6px; border-radius: 4px; }
.rozet.iyi { background: #dcfce7; color: #15803d; }
.rozet.kotu { background: #fee2e2; color: #b91c1c; }
.rozet.uyari { background: #fef3c7; color: #b45309; }
.rozet.bilgi { background: #e0f2fe; color: #0369a1; }
.rozet.bakir { background: #ffedd5; color: #c2410c; }
.rozet.sonuk { background: #f0f0f0; color: #525252; }
:root[data-theme="dark"] .rozet.iyi { background: hsl(var(--success) / .12); color: hsl(var(--success)); }
:root[data-theme="dark"] .rozet.kotu { background: hsl(var(--danger) / .12); color: hsl(var(--danger)); }
:root[data-theme="dark"] .rozet.uyari { background: hsl(var(--warning) / .12); color: hsl(var(--warning)); }
:root[data-theme="dark"] .rozet.bilgi { background: hsl(var(--info) / .12); color: hsl(var(--info)); }
:root[data-theme="dark"] .rozet.bakir { background: hsl(var(--brand) / .12); color: hsl(var(--brand)); }
:root[data-theme="dark"] .rozet.sonuk { background: hsl(var(--muted)); color: hsl(var(--muted-foreground)); }
/* İzin etiketi (Read & Write): tam yuvarlak yeşil çerçeveli */
.etiket { display: inline-flex; align-items: center; padding: 2px 12px; border-radius: 999px; border: 1px solid #bbf7d0; background: #f0fdf4; color: #15803d; font-size: 13px; line-height: 1.25; }

/* Kart ve sayı kutuları (Analytics / Connections): 8px köşe, #e6e6e6 */
.kutu, .rakam { border-color: hsl(var(--border)); border-radius: 8px; }
.kutu { padding: 16px; }
.rakam b { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.rakam span { font-size: 13px; }

/* Boş durum (Posts "No posts yet") */
.bos-durum { border: 1px solid hsl(var(--border)); border-radius: 8px; padding: 52px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.bos-ikon { width: 49px; height: 49px; border-radius: 50%; background: hsl(0 0% 96%); border: 1px solid hsl(var(--border)); display: grid; place-items: center; color: hsl(var(--muted-foreground)); margin-bottom: 16px; }
.bos-durum h3 { font-size: 18px; font-weight: 700; margin: 0 0 6px; }
.bos-durum p { color: hsl(var(--muted-foreground)); margin: 0 0 18px; font-size: 14px; }
.bos-durum .dugme { min-width: 275px; height: 30px; }

@media (max-width: 900px) { .duzen { grid-template-columns: 1fr; } .kenar { padding: 0 12px; } }
/* İkinci ölçüm turu: avatar x24, etiket x44, filtre y98, tablo y152, satır 57 */
.kullanici-tetik { margin: 0; width: 100%; padding: 0 0 0 12px; }
.gez-oge { padding: 0 8px; gap: 8px; }
.sayfa-alt { margin-top: 2px; }
.sayfa-baslik { margin-bottom: 20px; }
form.filtre, .filtre { margin-bottom: 18px; }
td { height: 56px; padding-top: 6px; padding-bottom: 6px; }
/* Üçüncü tur: Users ekranından renk örnekleri (#757474 ikincil yazı, #0b0b0b ana yazı, avatar 36px) */
:root:not([data-theme="dark"]) { --muted-foreground: 0 0.4% 45.7%; --foreground: 0 0% 4.3%; }
.kullanici-blok { padding-top: 22px; }
.avatar { width: 36px; height: 36px; border-radius: 6px; }
.rozet.uyari { background: #fef9c3; color: #854d0e; }
.rozet { line-height: 16px; padding: 2px 8px; }
.kullanici-blok { margin-bottom: 29px; }

/* =====================================================================
   Zernio yüzeyleri: Analytics panelleri köşesiz (--radius-surface: 0),
   Connections kartları 4px (--radius-item). Tablo kabı da köşesiz.
   ===================================================================== */
.tablo-kap { border-radius: 0; }
.kutu, .panel-kutu, .rakam { border-radius: 0; }
.panel-kutu { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); padding: 16px; }
.panel-kutu h2, .kutu h2 { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
/* Kutunun tek işi tablo taşımaksa Zernio Team gibi düz: başlık üstte, tablo çerçeveli */
.kutu:has(> .tablo-kap) { background: none; border: 0; padding: 0; }
.kutu:has(> .tablo-kap) > .ust-satir h2, .kutu:has(> .tablo-kap) > h2, .bolum-ust h2 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.kutu:has(> .tablo-kap) + .kutu, .kutu + .kutu:has(> .tablo-kap) { margin-top: 32px; }
.bolum-ust { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.bolum-ust h2 { margin: 0; }

/* Genel bakış = Zernio Analytics: iki eşit sütun, 16px ara */
.analiz { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
.metrik-panel { padding: 24px; }
.metrikler { display: grid; grid-template-columns: repeat(4, 1fr); row-gap: 40px; column-gap: 16px; }
.metrik { display: flex; flex-direction: column; gap: 6px; color: hsl(var(--foreground)); min-width: 0; }
.metrik:hover { text-decoration: none; }
.metrik-ad { font-size: 13px; font-weight: 500; color: hsl(0 0% 32%); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metrik-deger { display: flex; align-items: center; gap: 8px; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; line-height: 32px; }
.metrik-deger .ikon { display: block; }
.metrik-alt { font-size: 13px; color: hsl(var(--muted-foreground)); }
.dokum { display: flex; flex-direction: column; gap: 9px; }
.dokum-satir { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 16px; background: #f6f6f6; border-radius: 4px; color: hsl(var(--foreground)); transition: background-color var(--gecis); }
.dokum-satir:hover { background: hsl(0 0% 94.5%); text-decoration: none; }
.dokum-ikon { color: hsl(var(--muted-foreground)); display: grid; }
.dokum-ad { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.dokum-ad b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dokum-ad small { font-size: 11px; color: hsl(var(--muted-foreground)); }
:root[data-theme="dark"] .dokum-satir { background: hsl(0 0% 100% / .04); }
:root[data-theme="dark"] .dokum-satir:hover { background: hsl(0 0% 100% / .07); }
@media (max-width: 1100px) { .analiz { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .metrikler { grid-template-columns: repeat(2, 1fr); } }

/* Bağlantılar = Zernio Connections: 221px kartlar, 8px ara, 4px köşe */
.baglanti-izgara { display: grid; grid-template-columns: repeat(auto-fill, minmax(221px, 1fr)); gap: 8px; }
.baglanti-kart { display: flex; flex-direction: column; min-height: 233px; padding: 12px; border: 1px solid hsl(var(--border)); border-radius: 4px; background: hsl(var(--card)); min-width: 0; }
.baglanti-kart.uyari-kart { background: #fefce8; border-color: #fde68a; }
.bk-ust { display: flex; align-items: flex-start; gap: 8px; }
.bk-logo { width: 32px; height: 32px; border-radius: 4px; display: grid; place-items: center; background: hsl(var(--brand)); color: #fff; flex: none; }
.bk-ad { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; flex: 1; min-width: 0; }
.bk-ad b { font-size: 12px; font-weight: 600; line-height: 16px; }
.bk-bilgi { color: hsl(var(--muted-foreground)); display: grid; }
.bk-kimlik { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 20px; }
.bk-kimlik b { font-size: 13px; font-weight: 500; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-kopya { border: 0; background: none; padding: 2px; color: hsl(var(--muted-foreground)); cursor: pointer; display: grid; border-radius: 4px; }
.bk-kopya:hover { color: hsl(var(--foreground)); background: hsl(var(--accent)); }
.bk-alt { font-size: 12px; color: hsl(var(--muted-foreground)); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-etiket { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; padding: 1px 6px; font-size: 11px; line-height: 16px; color: hsl(var(--muted-foreground)); background: hsl(0 0% 96%); border-radius: 4px; }
.bk-etiket i { width: 7px; height: 7px; border-radius: 50%; background: #fde68a; }
.bk-eylem { display: flex; gap: 8px; margin-top: 12px; }
.bk-eylem > *, .bk-eylem form { flex: 1; display: flex; }
.bk-eylem .dugme { flex: 1; justify-content: center; height: 30px; font-size: 12.5px; padding: 0 8px; }
:root[data-theme="dark"] .baglanti-kart.uyari-kart { background: hsl(48 90% 50% / .06); border-color: hsl(48 90% 50% / .3); }
:root[data-theme="dark"] .bk-etiket { background: hsl(var(--muted)); }
/* Connections ızgarası 1440px'te tam 5 sütun */
.baglanti-izgara { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.bk-kimlik b { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
.bk-alt { font-size: 13px; }
@media (max-width: 1280px) { .baglanti-izgara { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1080px) { .baglanti-izgara { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .baglanti-izgara { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .baglanti-izgara { grid-template-columns: 1fr; } }

/* =====================================================================
   Zernio bileşen kodundan (shadcn + data-look=v2) birebir değerler
   Input: h-9 rounded-md border-input bg-card px-3 text-sm, odakta ring-2 + offset-1
   Switch: h-5 w-9 border-2, thumb h-4 w-4 shadow-sm, translate-x-4, 150ms cubic-bezier(.4,0,.2,1)
   Checkbox: h-4 w-4 rounded-sm border-primary, işaretliyken bg-primary
   ===================================================================== */
:root:not([data-theme="dark"]) { --input: 0 0% 89.4%; --ring: 9.2 84.3% 50%; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=search], input[type=datetime-local], select { height: 36px; border-radius: 6px; padding-left: 12px; padding-right: 12px; font-size: 14px; border-color: hsl(var(--input)); background-color: hsl(var(--card)); }
select { padding-right: 32px; }
textarea { border-radius: 6px; border-color: hsl(var(--input)); background-color: hsl(var(--card)); font-size: 14px; }
input::placeholder, textarea::placeholder { color: hsl(0 0% 63.9%); }
input:focus, select:focus, textarea:focus { outline: none; border-color: hsl(var(--input)); box-shadow: none; }
input:focus-visible, select:focus-visible, textarea:focus-visible, .dugme:focus-visible, button:focus-visible, a:focus-visible { outline: none; box-shadow: 0 0 0 1px hsl(var(--background)), 0 0 0 3px hsl(var(--ring)); }
.filtre select, .arama > input { box-sizing: border-box; }
.anahtar input[type=checkbox] { width: 36px; height: 20px; border: 2px solid transparent; box-sizing: border-box; transition: background-color .15s cubic-bezier(.4, 0, .2, 1), box-shadow .15s cubic-bezier(.4, 0, .2, 1); }
.anahtar input[type=checkbox]::after { top: 0; left: 0; width: 16px; height: 16px; background: hsl(var(--background)); box-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1); transition: transform .15s cubic-bezier(.4, 0, .2, 1); }
.anahtar input[type=checkbox]:checked { background: hsl(var(--brand)); }
.anahtar input[type=checkbox]:disabled { cursor: not-allowed; opacity: .5; }
input[type=checkbox]:not(.anahtar input) { appearance: none; -webkit-appearance: none; width: 16px; height: 16px; flex: none; margin: 0; border: 1px solid hsl(var(--brand)); border-radius: 4px; background: hsl(var(--card)) center / 12px no-repeat; cursor: pointer; vertical-align: -3px; transition: background-color .15s cubic-bezier(.4, 0, .2, 1); }
input[type=checkbox]:not(.anahtar input):checked { background-color: hsl(var(--brand)); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
/* Düğme: outline = border-input bg-card, hover bg-muted; ana = coral, hover coral/90 */
.dugme { transition: color .15s cubic-bezier(.4, 0, .2, 1), background-color .15s cubic-bezier(.4, 0, .2, 1), border-color .15s cubic-bezier(.4, 0, .2, 1); }
.dugme:not(.ikincil):not(.hayalet):not(.tehlike):hover { background: hsl(var(--brand) / .9); }
.dugme.ikincil { border: 1px solid hsl(var(--input)); background: hsl(var(--card)); color: hsl(var(--foreground)); }
.dugme.ikincil:hover { background: hsl(30 16.7% 97.6%); }
.dugme:disabled { cursor: not-allowed; opacity: .5; }
/* Durum rozetleri: v2 status-* belirteçleri (uyarı sarısı ekran görüntüsünden) */
.rozet.iyi { background: hsl(141.2 43.6% 92.4%); color: hsl(142.4 71.8% 29.2%); }
.rozet.kotu { background: hsl(0 77.1% 93.1%); color: hsl(2.6 60.2% 45.3%); }
.rozet.bilgi { background: hsl(213.9 74.2% 93.9%); color: hsl(211.9 61% 30.2%); }
.rozet.bakir { background: hsl(8.2 73.3% 94.1%); color: hsl(9.2 84.3% 50%); }
/* Platform Breakdown sütunları: renkli 12px ikon + 11px değer, sağda ER rozeti */
.dokum-ad { flex: 0 0 120px; }
.dokum-hucre { flex: 1 1 0; min-width: 0; display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 500; color: hsl(0 0% 32%); white-space: nowrap; }
.dokum-hucre.genis { flex-grow: 1.6; }
.dokum-hucre .ikon { color: var(--r); flex: none; }
.dokum-oran { flex: none; font-size: 10px; font-weight: 600; line-height: 16px; padding: 1px 6px; border-radius: 4px; background: hsl(141.2 43.6% 92.4%); color: hsl(142.4 71.8% 29.2%); }
.dokum-oran.dusuk { background: hsl(0 77.1% 93.1%); color: hsl(2.6 60.2% 45.3%); }
.dokum-oran.bos { background: none; color: hsl(var(--muted-foreground)); }

/* =====================================================================
   Mailler = Zernio Messages (unified inbox): sol liste + sağ yazışma
   Ölçüler inbox ekran görüntüsünden (1.2x) CSS pikseline çevrildi
   ===================================================================== */
.kutu-gelen { display: grid; grid-template-columns: 420px 1fr; height: calc(100vh - 150px); min-height: 520px; border: 1px solid hsl(var(--border)); background: hsl(var(--card)); }
.gk-liste { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid hsl(var(--border)); }
.gk-filtre { padding: 16px 16px 14px; border-bottom: 1px solid hsl(var(--border)); display: flex; flex-direction: column; gap: 12px; margin: 0; }
.gk-secimler { display: flex; gap: 8px; }
.gk-secimler select { height: 30px; font-size: 13px; width: auto; flex: 1; min-width: 0; }
.gk-arama, .gk-arama > input { width: 100%; min-width: 0; }
.gk-arama > input { height: 36px; }
.gk-baslik { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 10px; font-size: 14px; font-weight: 500; }
.gk-satirlar { overflow-y: auto; flex: 1; min-height: 0; }
.gk-satir { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-bottom: 1px solid hsl(var(--border-subtle, var(--border))); color: hsl(var(--foreground)); transition: background-color .15s cubic-bezier(.4, 0, .2, 1); }
.gk-satir:hover { background: hsl(0 0% 98%); text-decoration: none; }
.gk-satir.secili { background: hsl(40 25% 95.3%); }
.gk-avatar { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; background: hsl(0 0% 95%); color: hsl(0 0% 32%); display: grid; place-items: center; font-size: 13px; font-weight: 600; }
.gk-avatar.buyuk { width: 36px; height: 36px; }
.gk-avatar i { position: absolute; right: -3px; bottom: -3px; width: 15px; height: 15px; border-radius: 50%; border: 2px solid hsl(var(--card)); display: grid; place-items: center; color: #fff; }
.gk-avatar i.gelen { background: #2563eb; }
.gk-avatar i.giden { background: hsl(var(--brand)); }
.gk-govde { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.gk-ust { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.gk-ust b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60%; }
.gk-ust small { font-size: 12px; color: hsl(var(--muted-foreground)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.gk-ust small::before { content: "· "; }
.gk-ust time { font-size: 12px; color: hsl(var(--muted-foreground)); flex: none; margin-left: auto; }
.gk-onizleme { font-size: 13px; color: hsl(0 0% 25%); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gk-nokta { position: absolute; right: 16px; bottom: 14px; width: 8px; height: 8px; border-radius: 50%; background: hsl(var(--brand)); }
.gk-sohbet { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.gk-sohbet-ust { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid hsl(var(--border)); }
.gk-kim { display: flex; flex-direction: column; min-width: 0; }
.gk-kim b { font-size: 14px; font-weight: 600; }
.gk-kim b a { color: inherit; }
.gk-kim small { font-size: 12.5px; color: hsl(var(--muted-foreground)); display: flex; align-items: center; gap: 6px; }
.gk-ayrac { width: 4px; height: 4px; border-radius: 50%; background: #22c55e; display: inline-block; }
.gk-mesajlar { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 14px; background: hsl(var(--card)); }
.gk-gun { display: flex; justify-content: center; }
.gk-gun span { font-size: 12px; font-weight: 500; padding: 4px 12px; border-radius: 999px; background: #f3f3f5; color: hsl(0 0% 25%); }
.gk-balon { max-width: min(560px, 75%); padding: 10px 14px 8px; border-radius: 6px; font-size: 13.5px; line-height: 1.45; }
.gk-balon.giden { align-self: flex-end; background: #fddcda; }
.gk-balon.gelen { align-self: flex-start; background: #f3f3f5; }
.gk-gonderen { font-size: 13px; font-weight: 500; margin-bottom: 2px; }
.gk-konu { font-weight: 600; margin-bottom: 4px; }
.gk-metin { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 360px; overflow: auto; }
.gk-alt { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 6px; }
.gk-alt time { font-size: 11px; color: hsl(var(--muted-foreground)); }
.gk-sohbet-alt { margin: 0 20px 16px; padding: 12px 16px; border: 1px solid hsl(var(--border)); border-radius: 6px; font-size: 13px; color: hsl(var(--muted-foreground)); }
.gk-bos { flex: 1; display: grid; place-content: center; justify-items: center; gap: 8px; color: hsl(var(--muted-foreground)); }
:root[data-theme="dark"] .gk-balon.giden { background: hsl(var(--brand) / .18); }
:root[data-theme="dark"] .gk-balon.gelen, :root[data-theme="dark"] .gk-gun span { background: hsl(0 0% 100% / .06); color: inherit; }
:root[data-theme="dark"] .gk-satir.secili { background: hsl(0 0% 100% / .06); }
@media (max-width: 1000px) { .kutu-gelen { grid-template-columns: 1fr; height: auto; } .gk-liste { max-height: 420px; border-right: 0; border-bottom: 1px solid hsl(var(--border)); } .gk-sohbet { height: 70vh; } }

/* =====================================================================
   Kenar menü: Zernio AppSidebar kodundan
   pasif: bg-transparent, text-muted-foreground, hover:text-foreground (zemin değişmez)
   ok: h-3.5 w-3.5 text-muted-foreground/70, açıkken rotate-90, transition-transform 150ms
   alt menü (SidebarMenuSub): mx-3.5 border-l px-2.5 py-0.5 gap-1, alt öğe h-7 px-2
   ===================================================================== */
.gez-oge:hover { background: transparent; color: hsl(var(--foreground)); }
.gez-oge:hover .ikon { color: hsl(var(--foreground)); }
.gez-oge.aktif:hover { background: hsl(var(--sidebar-accent)); }
.gez-ok { color: hsl(var(--muted-foreground) / .7); transition: transform .15s cubic-bezier(.4, 0, .2, 1); }
.gez-ok .ikon { width: 14px; height: 14px; }
.gez-alt { margin: 2px 14px; padding: 2px 10px; gap: 4px; border-left: 1px solid hsl(var(--sidebar-border)); transform: translateX(1px); }
.gez-alt .gez-oge { height: 28px; padding: 0 8px; }

/* Mobil: Sheet, 18rem, perde bg-black/40; açılış 200ms cubic-bezier(.32,.72,0,1), kapanış 150ms ease-in */
.kenar-perde { display: none; }
@media (max-width: 900px) {
  .kenar { width: 288px; box-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1); transition: transform .15s cubic-bezier(.4, 0, 1, 1); }
  .kenar.acik { transition: transform .2s cubic-bezier(.32, .72, 0, 1); }
  .kenar-perde { display: block; position: fixed; inset: 0; z-index: 29; background: rgb(0 0 0 / .4); opacity: 0; visibility: hidden; transition: opacity .15s cubic-bezier(.4, 0, 1, 1), visibility 0s linear .15s; }
  .kenar-perde.acik { opacity: 1; visibility: visible; transition: opacity .2s cubic-bezier(.32, .72, 0, 1); }
}
/* Yanıt kutusu (Zernio "Reply to ..."): kenarlıklı, 6px köşe, sağda gri gönder düğmesi */
.gk-yaz { display: flex; align-items: flex-end; gap: 8px; margin: 0 20px 16px; padding: 6px 6px 6px 16px; border: 1px solid hsl(var(--input)); border-radius: 6px; background: hsl(var(--card)); }
.gk-yaz:focus-within { box-shadow: 0 0 0 1px hsl(var(--background)), 0 0 0 3px hsl(var(--ring)); }
.gk-yaz textarea { flex: 1; border: 0; padding: 8px 0; min-height: 36px; max-height: 200px; resize: none; background: transparent; font-size: 14px; line-height: 20px; field-sizing: content; }
.gk-yaz textarea:focus, .gk-yaz textarea:focus-visible { box-shadow: none; }
.gk-gonder { flex: none; width: 36px; height: 36px; border: 0; border-radius: 6px; background: hsl(0 0% 95%); color: hsl(0 0% 32%); display: grid; place-items: center; cursor: pointer; transition: background-color .15s cubic-bezier(.4, 0, .2, 1), color .15s cubic-bezier(.4, 0, .2, 1); }
.gk-gonder:hover { background: hsl(var(--brand)); color: #fff; }
/* Yanıt kutusu araçları: Zernio'daki gibi gönderin solunda gülen yüz ve ataç */
.gk-yaz { align-items: center; }
.gk-yaz-govde { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gk-arac { flex: none; width: 36px; height: 36px; border: 0; border-radius: 6px; background: none; color: hsl(var(--muted-foreground)); display: grid; place-items: center; cursor: pointer; transition: color .15s cubic-bezier(.4, 0, .2, 1), background-color .15s cubic-bezier(.4, 0, .2, 1); }
.gk-arac:hover { color: hsl(var(--foreground)); background: hsl(0 0% 96%); }
.gk-emoji { position: relative; }
.gk-emoji .acilir-icerik { top: auto; bottom: calc(100% + 8px); right: 0; left: auto; width: 248px; padding: 6px; display: none; grid-template-columns: repeat(6, 1fr); gap: 2px; --tw-enter-translate-y: .5rem; --tw-exit-translate-y: .5rem; }
.gk-emoji.acik .acilir-icerik, .gk-emoji.kapaniyor .acilir-icerik { display: grid; }
.gk-emoji-oge { border: 0; background: none; font-size: 20px; height: 36px; border-radius: 4px; cursor: pointer; }
.gk-emoji-oge:hover { background: hsl(var(--accent)); }
.gk-ekler { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 0 6px; }
.gk-ek { display: inline-flex; align-items: center; gap: 4px; max-width: 220px; padding: 2px 4px 2px 8px; font-size: 12px; border-radius: 4px; background: hsl(0 0% 95%); }
.gk-ek span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gk-ek button { border: 0; background: none; cursor: pointer; color: hsl(var(--muted-foreground)); display: grid; padding: 2px; border-radius: 3px; }
.gk-ek button:hover { color: hsl(var(--foreground)); background: hsl(0 0% 90%); }

/* =====================================================================
   Giriş = Zernio /signin (AuthCard): sayfa bg-cream, px-5 py-12;
   kart max-w-[420px] rounded-[25px] border-cream-muted p-6 sm:p-8 gap-6, gölge 0 1px 2px /.05
   başlık 28px/36 600 -0.01em ortalı; alan etiketi 16px, girdi h-12 px-4 16px; düğme h-12 rounded-xl
   giriş hareketi: opacity 0, y 8px → 0.3s, gecikme .06s, cubic-bezier(.16,1,.3,1)
   ===================================================================== */
body.giris-sayfa { display: flex; flex-direction: column; align-items: center; min-height: 100svh; padding: 48px 20px; place-items: initial; color: #2d2d2d; }
.giris-orta { position: relative; flex: 1; width: 100%; display: flex; align-items: center; justify-content: center; padding: 40px 0; }
.giris-kart { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 24px; overflow: hidden; border-radius: 25px; border: 1px solid #d9d8d3; background: #fff; padding: 24px; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); animation: girisGir .3s cubic-bezier(.16, 1, .3, 1) .06s both; }
@media (min-width: 640px) { .giris-kart { padding: 32px; } }
@keyframes girisGir { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .giris-kart { animation: none; } }
.giris-baslik { display: flex; flex-direction: column; gap: 8px; text-align: center; }
.giris-baslik h1 { margin: 0; font-size: 28px; font-weight: 600; line-height: 36px; letter-spacing: -0.01em; color: #2d2d2d; }
.giris-baslik p { margin: 0; font-size: 16px; line-height: 24px; color: #6b6b6b; }
.giris-alanlar { display: flex; flex-direction: column; gap: 16px; }
.giris-alan { display: flex; flex-direction: column; gap: 8px; }
.giris-alan label { font-size: 16px; font-weight: 500; color: #2d2d2d; }
.giris-alan input { height: 48px; width: 100%; padding: 0 16px; font-size: 16px; border-radius: 6px; border: 1px solid hsl(0 0% 89.4%); background: #fff; color: #2d2d2d; box-shadow: none; transition: border-color .15s cubic-bezier(.4, 0, .2, 1); }
.giris-alan input:focus, .giris-alan input:focus-visible { border-color: #2d2d2d; box-shadow: none; outline: none; }
.giris-alan input::placeholder { color: hsl(0 0% 63.9%); }
.giris-sifre { position: relative; }
.giris-sifre input { padding-right: 48px; }
.giris-goz { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); border: 0; background: none; padding: 0; display: grid; color: #6b6b6b; cursor: pointer; transition: color .15s cubic-bezier(.4, 0, .2, 1); }
.giris-goz:hover { color: #2d2d2d; }
.giris-goz.acik::after { content: ""; position: absolute; left: -1px; top: 50%; width: 24px; height: 2px; background: currentColor; transform: rotate(45deg); }
.giris-hata { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 16px; line-height: 24px; color: #dc2626; }
.giris-hata .ikon { margin-top: 2px; flex: none; }
.giris-dugme { height: 48px; width: 100%; border: 0; border-radius: 12px; background: #eb3514; color: #fff; font: inherit; font-size: 16px; font-weight: 500; cursor: pointer; transition: background-color .15s cubic-bezier(.4, 0, .2, 1); }
.giris-dugme:hover { background: rgb(235 53 20 / .9); }
.giris-dugme:disabled { opacity: .5; cursor: not-allowed; }
.giris-alt { position: relative; margin: 0; text-align: center; font-size: 14px; line-height: 24px; color: #d9d8d3; }
:root[data-theme="dark"] .giris-kart { background: #16161a; border-color: #2a2a30; }
:root[data-theme="dark"] .giris-baslik h1, :root[data-theme="dark"] .giris-alan label { color: #f5e6d3; }
:root[data-theme="dark"] .giris-baslik p { color: #f5e6d3c7; }
:root[data-theme="dark"] .giris-alan input { background: #0d0d11; border-color: #2a2a30; color: #f5e6d3; }
/* Yukarı açılan menü (Radix side=top): slide-in-from-bottom-2 */
.acilir.gk-emoji.acik > .acilir-icerik { --tw-enter-translate-y: .5rem; }
.acilir.gk-emoji.kapaniyor > .acilir-icerik { --tw-exit-translate-y: .5rem; }
/* Kart ekranın tam ortasında: alt yazı akıştan çıkarılır, orta alan tüm görünümü kaplar */
body.giris-sayfa { display: block; padding: 0; min-height: 100svh; }
.giris-orta { position: relative; min-height: 100svh; width: 100%; padding: 96px 20px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; }
.giris-alt { position: absolute; left: 0; right: 0; bottom: 48px; }

/* =====================================================================
   Zernio hareket dili (motion.div kodundan):
   içerik girişi: opacity 0, y 8px, blur 2px → .45s [.4,0,.2,1], blok başına .07s gecikme
   açılır bölüm: height 0 → auto, opacity 0 → 1, .4s [.4,0,.2,1]
   ===================================================================== */
@keyframes icerikGir { from { opacity: 0; transform: translateY(8px); filter: blur(2px); } to { opacity: 1; transform: none; filter: blur(0); } }
.ana-icerik > :not(dialog):not(script):not(.mobil-menu) { animation: icerikGir .45s cubic-bezier(.4, 0, .2, 1) var(--gecikme, 0s) both; }
.ana-icerik > :nth-child(3) { --gecikme: .07s; }
.ana-icerik > :nth-child(4) { --gecikme: .14s; }
.ana-icerik > :nth-child(5) { --gecikme: .21s; }
.ana-icerik > :nth-child(n+6) { --gecikme: .28s; }
/* Izgara içindeki kartlar ayrı ayrı kademeli gelir (Zernio logo ızgarası gibi) */
.baglanti-izgara > *, .metrikler > *, .dokum > * { animation: icerikGir .45s cubic-bezier(.4, 0, .2, 1) both; }
.baglanti-izgara > :nth-child(2), .metrikler > :nth-child(2), .dokum > :nth-child(2) { animation-delay: .07s; }
.baglanti-izgara > :nth-child(3), .metrikler > :nth-child(3), .dokum > :nth-child(3) { animation-delay: .14s; }
.baglanti-izgara > :nth-child(4), .metrikler > :nth-child(4), .dokum > :nth-child(4) { animation-delay: .21s; }
.baglanti-izgara > :nth-child(n+5), .metrikler > :nth-child(n+5), .dokum > :nth-child(n+5) { animation-delay: .28s; }
/* Açılır menü grupları: yükseklik ve saydamlık birlikte açılır */
:root { interpolate-size: allow-keywords; }
.gez-grup::details-content { height: 0; opacity: 0; overflow: clip; transition: height .4s cubic-bezier(.4, 0, .2, 1), opacity .4s cubic-bezier(.4, 0, .2, 1), content-visibility .4s allow-discrete; }
.gez-grup[open]::details-content { height: auto; opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .ana-icerik > *, .baglanti-izgara > *, .metrikler > *, .dokum > * { animation: none; }
  .gez-grup::details-content { transition: none; }
}

/* =====================================================================
   Ayar sayfaları (Zernio API Keys / Connections kalıbı): tek sütun bölümler,
   her bölüm köşesiz çerçeveli liste, her ayar bir satır (ad + açıklama solda, kontrol sağda)
   ===================================================================== */
.ikili:has(> .kutu .ayar-satir) { grid-template-columns: 1fr; gap: 24px; }
.kutu:has(.ayar-satir) { padding: 0; margin-bottom: 24px; max-width: 960px; }
.ikili > .kutu:has(.ayar-satir) { margin-bottom: 0; }
.kutu:has(.ayar-satir) > h2 { margin: 0; padding: 14px 20px; font-size: 15px; font-weight: 700; border-bottom: 1px solid hsl(var(--border)); background: hsl(0 0% 98%); }
.kutu:has(.ayar-satir) > :not(h2):not(.ayar-satir):not(.ust-satir) { margin-left: 20px; margin-right: 20px; }
.kutu:has(.ayar-satir) > .ust-satir { margin: 0; padding: 10px 20px; border-bottom: 1px solid hsl(var(--border)); background: hsl(0 0% 98%); }
.kutu:has(.ayar-satir) > .ust-satir h2 { font-size: 15px; font-weight: 700; }
.ayar-satir { display: grid; grid-template-columns: minmax(0, 1fr) 240px; align-items: center; gap: 8px 32px; padding: 16px 20px; border-bottom: 1px solid hsl(var(--border)); }
.ayar-satir:last-child { border-bottom: 0; }
.ayar-satir.anahtarli { grid-template-columns: minmax(0, 1fr) auto; }
.ayar-satir.genis { grid-template-columns: 1fr; }
.ayar-metin label { display: block; margin: 0 0 2px; font-size: 14px; font-weight: 500; color: hsl(var(--foreground)); }
.ayar-metin .aciklama { margin: 0; font-size: 13px; line-height: 1.5; color: hsl(var(--muted-foreground)); max-width: 640px; }
.ayar-kontrol { min-width: 0; }
.ayar-kontrol input:not([type=checkbox]):not([type=hidden]), .ayar-kontrol select { width: 100%; max-width: none; }
.ayar-kontrol textarea { width: 100%; }
.ayar-satir.anahtarli .ayar-kontrol { justify-self: end; }
/* Kaydet çubuğu sayfanın altına yapışık, Zernio'daki gibi sağda */
.form-alt { position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: flex-end; gap: 8px; max-width: 960px; margin-top: 8px; padding: 12px 0; background: linear-gradient(to top, hsl(var(--background)) 70%, hsl(var(--background) / 0)); }
@media (max-width: 720px) { .ayar-satir, .ayar-satir.anahtarli { grid-template-columns: 1fr; } .ayar-satir.anahtarli .ayar-kontrol { justify-self: start; } }

/* =====================================================================
   Kullanıcılar = Zernio Team: Member (avatar + ad + rozet), Email, Access (ikon + gri yazı),
   Joined, sağda "Edit access" metin düğmesi + ⋮ menü. Satır içi kutu yok.
   ===================================================================== */
.bolum-alt { margin: 2px 0 0; font-size: 14px; color: hsl(var(--muted-foreground)); }
.uye { display: inline-flex; align-items: center; gap: 12px; }
.uye b { font-size: 14px; font-weight: 500; }
.uye-avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 600; flex: none; }
.uye-tablo td { height: 57px; }
.uye-tablo tr.pasif .uye b, .uye-tablo tr.pasif .uye-avatar { opacity: .55; }
.ikincil-yazi { color: hsl(var(--muted-foreground)); }
.erisim { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: hsl(var(--muted-foreground)); }
.satir-eylem { text-align: right; white-space: nowrap; width: 1%; }
.satir-eylem > * { vertical-align: middle; }
.metin-dugme { border: 0; background: none; padding: 6px 8px; border-radius: 6px; font: inherit; font-size: 13px; font-weight: 500; color: hsl(0 0% 32%); cursor: pointer; transition: color .15s cubic-bezier(.4, 0, .2, 1), background-color .15s cubic-bezier(.4, 0, .2, 1); }
.metin-dugme:hover { color: hsl(var(--foreground)); background: hsl(var(--accent)); }
.satir-menu { display: inline-block; position: relative; margin-left: 4px; }
.satir-menu .ikon-dugme { width: 28px; height: 28px; color: hsl(var(--muted-foreground)); }
.satir-menu .acilir-icerik { left: auto; right: 0; top: calc(100% + 4px); min-width: 190px; text-align: left; }
.acilir-oge.tehlikeli { color: hsl(2.6 60.2% 45.3%); }
.acilir-oge.tehlikeli .ikon { color: currentColor; }
.satir-menu form { margin: 0; }
.satir-menu form .acilir-oge { width: 100%; }
/* Yetki seçimi: açıklamalı radyo kartları */
.secim-liste { display: flex; flex-direction: column; gap: 8px; }
.secim { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid hsl(var(--input)); border-radius: 6px; cursor: pointer; transition: border-color .15s cubic-bezier(.4, 0, .2, 1), background-color .15s cubic-bezier(.4, 0, .2, 1); }
.secim:hover { background: hsl(0 0% 98%); }
.secim:has(input:checked) { border-color: hsl(var(--brand)); background: hsl(8.2 73.3% 94.1% / .5); }
.secim input { margin-top: 3px; accent-color: hsl(var(--brand)); }
.secim span { display: flex; flex-direction: column; gap: 2px; }
.secim b { font-size: 14px; font-weight: 500; }
.secim small { font-size: 13px; color: hsl(var(--muted-foreground)); }
.tablo-kap:has(.satir-menu) { overflow: visible; }
.uye-tablo td { white-space: nowrap; }

/* Firma ayrıntısı: üst satır, özet şeridi, başlıklı düz bölümler */
.firma-ust { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: -8px 0 20px; font-size: 13px; color: hsl(var(--muted-foreground)); }
.geri-link { display: inline-flex; align-items: center; gap: 4px; color: hsl(var(--muted-foreground)); font-weight: 500; }
.geri-link:hover { color: hsl(var(--foreground)); text-decoration: none; }
.ince-satir { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.ayrac-nokta { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }
.firma-ozet { margin-bottom: 36px; }
.firma-ozet .metrikler { row-gap: 28px; }
.metrik-deger.kucuk { font-size: 15px; font-weight: 600; line-height: 32px; letter-spacing: 0; }
.bolum-ust { align-items: flex-end; }
.bolum-eylem { display: flex; gap: 8px; align-items: center; }
.bolum-eylem form { margin: 0; }
.dugme.ikon-tek { width: 32px; padding: 0; justify-content: center; }
.uye-ad { display: flex; flex-direction: column; line-height: 1.25; }
.uye-ad small { font-size: 12px; color: hsl(var(--muted-foreground)); }
.firma-yazisma { border: 1px solid hsl(var(--border)); max-height: 560px; }
.firma-yazisma details > summary { cursor: pointer; list-style: none; }
.firma-yazisma details > summary::-webkit-details-marker { display: none; }
.firma-yazisma details[open] > summary { margin-bottom: 6px; }
.firma-yazisma details::details-content { height: 0; overflow: clip; transition: height .4s cubic-bezier(.4, 0, .2, 1), content-visibility .4s allow-discrete; }
.firma-yazisma details[open]::details-content { height: auto; }
.bos-durum.kucuk { padding: 36px 24px; }
.uye-tablo td .uye-ad small { white-space: normal; max-width: 420px; }
.uye-avatar .ikon { color: #fff; }

/* =====================================================================
   Mailler = Zernio Inbox (resmi inbox-dashboard.png, 1440x900 ölçümü):
   sayfa başlığı yok, kenar boşluğu yok, tam yükseklik; sol bölme 394px + 1px çizgi
   başlık 20px/600 bölmenin içinde (x12, y14); filtre 30px (y48-77); ayraç y90;
   "Yazışmalar" satırı 55px; yazışma satırı 65px, avatar 40px yuvarlak, ad 14px #0a0a0a,
   adres ve önizleme #737373, tarih #9d9d9d; sağ başlık 44px yükseklikte 14px
   ===================================================================== */
.ana-icerik[data-sayfa="mailler"] { padding: 0; }
.ana-icerik[data-sayfa="mailler"] > .sayfa-baslik { display: none; }
.ana-icerik[data-sayfa="mailler"] > .kutu-gelen { height: 100vh; min-height: 560px; border: 0; grid-template-columns: 394px 1fr; }
.gk-liste { border-right: 1px solid hsl(var(--border)); }
.gk-filtre { padding: 12px 12px 12px; gap: 12px; border-bottom: 1px solid hsl(var(--border)); }
.gk-h1 { margin: 2px 0 2px; font-size: 20px; font-weight: 600; line-height: 24px; letter-spacing: -0.01em; }
.gk-secimler select { flex: 0 1 auto; height: 30px; width: auto; font-size: 13px; }
.gk-arama > input { height: 32px; font-size: 13px; }
.gk-baslik { height: 55px; padding: 0 12px; border-bottom: 1px solid hsl(var(--border)); font-size: 14px; font-weight: 400; }
.gk-sayi { font-size: 12px; color: hsl(0 0% 61.6%); }
.gk-satir { min-height: 65px; padding: 12px; gap: 12px; align-items: center; border-bottom: 1px solid hsl(var(--border)); }
.gk-avatar { width: 40px; height: 40px; font-size: 14px; font-weight: 500; background: hsl(0 0% 95%); color: hsl(0 0% 45%); }
.gk-avatar i { right: -2px; bottom: -2px; width: 16px; height: 16px; }
.gk-govde { gap: 4px; }
.gk-ust b { font-size: 14px; font-weight: 500; color: #0a0a0a; }
.gk-ust small { font-size: 12px; color: #737373; }
.gk-ust small::before { content: ""; }
.gk-ust time { font-size: 11px; color: #9d9d9d; }
.gk-onizleme { font-size: 13px; color: #737373; }
.gk-satir.secili { background: hsl(0 0% 96%); }
.gk-nokta { right: 12px; bottom: 18px; width: 7px; height: 7px; background: #eb3514; }
.gk-sohbet-ust { height: 45px; padding: 0 12px; box-sizing: border-box; }
.gk-sohbet-ust.bos .gk-kim b { font-size: 14px; font-weight: 500; }
.gk-bos-yazi { margin: 50px 0 0; text-align: center; font-size: 14px; color: #737373; }
:root[data-theme="dark"] .gk-ust b { color: hsl(var(--foreground)); }
@media (max-width: 1000px) { .ana-icerik[data-sayfa="mailler"] > .kutu-gelen { height: auto; grid-template-columns: 1fr; } }
/* Arama, Zernio'daki "Newest first" seçicisinin yerinde: 30px, sağda */
.gk-baslik .gk-arama { width: 170px; flex: none; }
.gk-baslik .gk-arama > input { height: 30px; width: 170px; min-width: 0; font-size: 13px; padding-left: 30px !important; }
.gk-baslik .gk-arama > .ikon { left: 10px; width: 14px; height: 14px; }
.gk-sayi { margin-left: 4px; }
.gk-satir { padding: 10px 12px; min-height: 65px; box-sizing: border-box; }
.gk-govde { gap: 2px; }
.gk-ust b, .gk-ust small { line-height: 20px; }
.gk-onizleme { line-height: 20px; }
.gk-filtre { padding: 14px 12px 12px; gap: 10px; } .gk-h1 { margin: 0; }
/* Senne'nin hafızası */
.hafiza-tablo td { white-space: normal; height: auto; padding-top: 12px; padding-bottom: 12px; vertical-align: top; }
.hafiza-konu { font-weight: 500; }
.hafiza-bilgi { line-height: 1.5; max-width: 560px; }
.hafiza-kaynak { display: flex; flex-direction: column; font-size: 12px; }
.hafiza-kaynak small { color: hsl(0 0% 61.6%); }
.onem { display: inline-flex; gap: 3px; }
.onem i { width: 7px; height: 7px; border-radius: 50%; background: hsl(var(--border)); }
.onem i.dolu { background: hsl(var(--brand)); }

/* Sayfa üstü sekmeler (Firmalar | Mail dizileri): alt çizgili, Zernio menü renkleri */
.sekme-cubugu { display: flex; gap: 20px; margin: -6px 0 20px; border-bottom: 1px solid hsl(var(--border)); overflow-x: auto; }
.sekme-cubugu a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 0 10px; margin-bottom: -1px; border-bottom: 2px solid transparent; font-size: 14px; font-weight: 500; color: hsl(var(--muted-foreground)); white-space: nowrap; transition: color .15s cubic-bezier(.4, 0, .2, 1), border-color .15s cubic-bezier(.4, 0, .2, 1); }
.sekme-cubugu a:hover { color: hsl(var(--foreground)); text-decoration: none; }
.sekme-cubugu a.aktif { color: hsl(var(--foreground)); border-bottom-color: hsl(var(--foreground)); }
.sekme-cubugu a span { font-size: 12px; font-weight: 500; padding: 0 6px; border-radius: 999px; background: hsl(0 0% 95%); color: hsl(var(--muted-foreground)); }
.sekme-cubugu a.aktif span { background: hsl(var(--foreground)); color: hsl(var(--background)); }
/* Seni bekleyenler: başlık + açıklama solda, sayı ve ok sağda */
.dokum-ad.genis { flex: 1 1 auto; }
.is-satir { gap: 12px; }
.is-sayi { flex: none; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.is-ok { flex: none; color: hsl(var(--muted-foreground)); display: grid; transition: transform .15s cubic-bezier(.4, 0, .2, 1); }
.is-satir:hover .is-ok { transform: translateX(2px); color: hsl(var(--foreground)); }
/* Yedek indirme bağlantıları */
.yedek-dosyalar { display: flex; flex-direction: column; gap: 4px; }
.yedek-indir { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: hsl(var(--foreground)); }
.yedek-indir .ikon { transform: rotate(180deg); color: hsl(var(--muted-foreground)); }
.yedek-indir small { color: hsl(var(--muted-foreground)); }
.yedek-indir:hover { text-decoration: none; color: hsl(var(--brand)); }

/* Kullanıcılar: panel sütununda son giriş alt satırı */
.uye-alt { display: block; font-size: 12px; margin-top: 2px; }
[data-gizle][hidden] { display: none; }

/* Toplu seçim: seçim sütunu ve altta yapışan işlem çubuğu */
.sec-sutun { width: 40px; padding-right: 0 !important; }
.sec-sutun input { display: block; margin: 0; cursor: pointer; }
tr.secili td { background: hsl(var(--row-selected)); }
.toplu-cubuk { position: sticky; bottom: 16px; z-index: 5; display: flex; align-items: center; gap: 12px; margin: 16px auto 0; max-width: 640px;
  padding: 8px 8px 8px 16px; background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: 10px;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .18); font-size: 13px; animation: cubukGir .2s cubic-bezier(.2, .8, .2, 1); }
.toplu-cubuk[hidden] { display: none; }
.toplu-cubuk .toplu-bosluk { flex: 1; }
@keyframes cubukGir { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .toplu-cubuk { animation: none; } }
@media (max-width: 640px) { .toplu-cubuk { flex-wrap: wrap; } }

/* Güncellemeler: telefon güncelleme ekranı düzeni */
.nokta.bilgi { background: hsl(var(--info)); }
.guncel-kart { max-width: 640px; padding: 24px; }
.guncel-ust { display: flex; gap: 16px; align-items: center; }
.guncel-ust h2 { margin: 0 0 2px; font-size: 18px; }
.guncel-ust .aciklama { margin: 0; }
.guncel-simge { flex: none; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; }
.guncel-simge.turuncu { background: hsl(var(--brand) / .1); color: hsl(var(--brand)); }
.guncel-simge.yesil { background: hsl(var(--success) / .1); color: hsl(var(--success)); }
.guncel-simge.mavi { background: hsl(var(--info) / .1); color: hsl(var(--info)); }
.guncel-kart .bildirim { margin: 16px 0 0; }
.guncel-baslik { font-size: 13px; font-weight: 600; margin: 20px 0 8px; }
.guncel-notlar { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.6; }
.guncel-eylem { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.guncel-eylem .aciklama { margin: 0; }
.guncel-cubuk { height: 6px; border-radius: 999px; background: hsl(var(--muted)); margin: 20px 0 16px; overflow: hidden; }
.guncel-cubuk span { display: block; height: 100%; background: hsl(var(--info)); border-radius: inherit; transition: width .6s cubic-bezier(.4, 0, .2, 1); }
.guncel-adimlar { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; color: hsl(var(--muted-foreground)); }
.guncel-adimlar li { display: flex; align-items: center; gap: 10px; }
.guncel-adimlar li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: hsl(var(--border)); flex: none; }
.guncel-adimlar li.simdi { color: hsl(var(--foreground)); font-weight: 500; }
.guncel-adimlar li.simdi::before { background: hsl(var(--info)); box-shadow: 0 0 0 4px hsl(var(--info) / .15); }
.guncel-adimlar li.bitti::before { background: hsl(var(--success)); }
.donen { width: 20px; height: 20px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: don .8s linear infinite; }
@keyframes don { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .donen { animation-duration: 2.4s; } .guncel-cubuk span { transition: none; } }
