/* Premium Dental Art · kampanya paneli
   Yüz: fil logosunun mürekkep siyahı ve fildişi, dişeti pembesi vurgu (protezlerin gingiva rengi).
   Izgara: kenar çubuğu 230 + tuval (24px kenar boşluğu). Genel bakış: 1fr + 384px ray, 24px aralık.
   1440 genişlikte: 1440 - 230 - 1 = 1209 tuval; 1209 - 2×32 = 1145 içerik; 1145 = 737 + 24 + 384. */
:root {
  --ground: #f2f1f5;
  --surface: #ffffff;
  --raised: #f5f4f8;
  --active: #fcedf3;
  --border: #e4e2e9;
  --rule: #eeecf2;
  --control: #cfccd6;
  --text: #15131a;
  --ivory: #f4ecdc;
  --wax: #2f5fd0;
  --control-hover: #a39fad;
  --muted: #5d5966;
  --faint: #6c6875;
  --accent: #b8336a;
  --accent-hover: #a02a5b;
  --accent-soft: #fcedf3;
  --accent-track: #f8dbe8;
  --accent-ink: #6b1d3e;
  --primary: #b8336a;
  --positive: #247b50;
  --negative: #c4242a;
  --warning: #92400e;
  --pill-positive-bg: #dcfce7; --pill-positive-ink: #14532d;
  --pill-negative-bg: #ffedea; --pill-negative-ink: #831c1e;
  --pill-warning-bg: #fffbeb; --pill-warning-ink: #92400e;
  --pill-neutral-bg: #f3f0f1; --pill-neutral-ink: #3f3a42;
  --pill-accent-bg: #fdf2f7; --pill-accent-ink: #6b1d3e;
  --chart-1: #b8336a; --chart-2: #2f5fd0; --chart-3: #d4618f; --chart-4: #8b8590;
  --chart-muted: #c9c3c7; --chart-mark: #17121a; --chart-track: #ece7e9; --chart-span: .06;
  --grid: #ece7e9; --axis-ink: #6b666e; --ink: #17121a;

  --radius-card: 14px;
  --radius-control: 9px;
  --radius-chip: 999px;
  --row-height: 45px;
  --sidebar-width: 230px;
  --gap: 24px;
  --pad: 24px;
  --card-pad: 20px;
  --control-height: 36px;
  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --fs-title: 34px;
  --fs-section: 18px;
  --fs-kpi: 24px;
  --fs-body: 14px;
  --fs-small: 12px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--text);
  font: 400 var(--fs-body)/20px var(--font); font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
img { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
.num, table, .kpi-deger { font-variant-numeric: tabular-nums; }
.gri { color: var(--muted); }
.kucuk { font-size: var(--fs-small); line-height: 16px; }
.olumsuz { color: var(--negative); }
.olumlu { color: var(--positive); }
.ikon { flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent-track); }
.gizli { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------------ kabuk */
.kabuk { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); min-height: 100vh; }
.ust-cubuk { display: none; }
.yan {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 22px;
  padding: 20px 12px 16px; border-right: 1px solid var(--border); background: var(--ground); overflow-y: auto;
}
.yan-ust { display: flex; align-items: center; justify-content: space-between; padding: 0 8px; }
.marka { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.marka b { display: block; font-size: 14px; font-weight: 600; line-height: 18px; white-space: nowrap; }
.marka small { display: block; font-size: 12px; line-height: 16px; color: var(--muted); }
.yan .yan-kapat { display: none; }
.nav-grup { display: flex; flex-direction: column; gap: 2px; }
.nav-baslik { font-size: 12px; line-height: 16px; color: var(--muted); padding: 0 10px 8px; }
.nav-satir {
  display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 10px; border-radius: 6px;
  color: #3f3a42; text-decoration: none; font-size: 14px; transition: background-color .15s, color .15s;
}
.nav-satir .ikon { color: #6b666e; }
.nav-satir:hover { background: var(--raised); color: var(--text); }
.nav-satir.aktif { background: var(--accent-soft); color: var(--accent-ink); font-weight: 500; }
.nav-satir.aktif .ikon { color: var(--accent); }
.sayac {
  margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; line-height: 20px; text-align: center;
}
.yan-alt { margin-top: auto; }
.motor-satir { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); }
.motor-satir b { display: block; font-weight: 500; font-size: 13px; line-height: 18px; }
.motor-satir small { display: block; font-size: 12px; line-height: 16px; color: var(--muted); }
.nokta { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; flex: none; background: var(--control); }
.motor-acik .nokta { background: var(--positive); box-shadow: 0 0 0 3px #dcfce7; }
.motor-bekliyor .nokta { background: var(--control-hover); }
.motor-kapali .nokta { background: var(--negative); }
.perde { display: none; }

.tuval { padding: 32px; min-width: 0; display: flex; flex-direction: column; gap: var(--gap); max-width: 1440px; }

/* ------------------------------------------------------------------ başlık satırı */
.baslik-satiri { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
h1 { font-size: var(--fs-title); line-height: 38px; font-weight: 700; letter-spacing: -0.02em; }
.alt-cumle { margin-top: 6px; font-size: 16px; line-height: 24px; color: var(--muted); max-width: 72ch; }
.alt-cumle b { color: var(--text); font-weight: 600; }
.baslik-eylem { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.baslik-eylem .kucuk { max-width: 260px; text-align: right; }

/* ------------------------------------------------------------------ düğmeler ve alanlar */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--control-height);
  padding: 0 14px; border-radius: var(--radius-control); border: 1px solid transparent; cursor: pointer;
  font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, transform .1s;
}
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { cursor: not-allowed; background: var(--raised); color: var(--faint); border-color: var(--border); }
.btn-birincil { background: var(--primary); color: #fff; }
.btn-birincil:hover:not(:disabled) { background: var(--accent-hover); }
.btn-ikincil { background: var(--surface); border-color: var(--control); }
.btn-ikincil:hover:not(:disabled) { border-color: var(--control-hover); background: var(--raised); }
.btn-metin { background: none; padding: 0 6px; color: var(--accent-ink); }
.btn-metin:hover { background: var(--accent-soft); }
.btn-tehlike { background: var(--surface); border-color: #efc4c4; color: var(--negative); }
.btn-tehlike:hover { background: #fff5f4; }
.btn-ikon { width: 36px; padding: 0; background: none; }
.btn-ikon:hover { background: var(--raised); }
.btn-kucuk { height: 30px; padding: 0 10px; font-size: 13px; }
.btn-tam { width: 100%; margin-top: 4px; height: 32px; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }
.metin-eylem { display: inline-flex; align-items: center; gap: 2px; color: var(--accent-ink); font-weight: 500; text-decoration: none; font-size: 13px; }
.metin-eylem:hover { text-decoration: underline; text-underline-offset: 3px; }

.alan { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.alan > label, .alan-ad { font-size: 14px; font-weight: 500; line-height: 20px; }
.alan small, .yardim { font-size: 12px; line-height: 16px; color: var(--muted); }
.girdi, select.girdi, textarea.girdi {
  width: 100%; height: 38px; padding: 0 12px; border: 1px solid var(--control); border-radius: var(--radius-control);
  background: var(--surface); font-size: 14px; transition: border-color .15s, box-shadow .15s;
}
textarea.girdi { height: auto; padding: 10px 12px; line-height: 22px; resize: vertical; }
.girdi::placeholder { color: var(--faint); }
.girdi:hover { border-color: var(--control-hover); }
.girdi:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-track); }
select.girdi { 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='%236b666e' stroke-width='1.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; }
.girdi-kucuk { height: 32px; font-size: 13px; }
.ara-kutu { position: relative; }
.ara-kutu .ikon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.ara-kutu .girdi { padding-left: 34px; }
.birlesik { display: flex; }
.birlesik .girdi { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.birlesik .btn { border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: -1px; height: 38px; }
.anahtar { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; }
.anahtar input { appearance: none; width: 32px; height: 18px; border-radius: 9px; background: var(--control); position: relative; cursor: pointer; transition: background-color .15s; margin: 0; flex: none; }
.anahtar input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .15s; }
.anahtar input:checked { background: var(--positive); }
.anahtar input:checked::after { transform: translateX(14px); }

/* ------------------------------------------------------------------ kartlar */
.kart { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: var(--card-pad); min-width: 0; }
.kart-bas { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
h2 { font-size: var(--fs-section); line-height: 24px; font-weight: 600; letter-spacing: -0.01em; }
.izgara-ray { display: grid; grid-template-columns: minmax(0, 1fr) 384px; gap: var(--gap); align-items: start; }
.sutun { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }
.ray { display: flex; flex-direction: column; gap: 16px; }
.ray-baslik { font-size: 16px; line-height: 20px; font-weight: 600; margin-bottom: 8px; }
.kart-liste { padding: 8px 12px 12px; }
.liste-satir { display: flex; flex-direction: column; gap: 3px; padding: 10px 8px; border-bottom: 1px solid var(--rule); text-decoration: none; border-radius: 6px; }
a.liste-satir:hover { background: var(--raised); }
.liste-satir:last-of-type { border-bottom: 0; }
.satir-ust { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.satir-ust b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.satir-ust .kucuk { flex: none; }
.satir-alt { font-size: 13px; line-height: 18px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bos-satir { padding: 12px 8px; color: var(--muted); font-size: 13px; }
.bos-kutu { border: 1px dashed var(--control); border-radius: 8px; padding: 12px 14px; color: var(--muted); font-size: 13px; }
.olay { display: grid; grid-template-columns: 92px 1fr; gap: 8px; padding: 8px; border-bottom: 1px solid var(--rule); font-size: 13px; line-height: 18px; }
.olay:last-of-type { border-bottom: 0; }
.olay > span:last-child { overflow-wrap: anywhere; }

/* bildirim */
.bildirim { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 8px; font-size: 14px; line-height: 20px; }
.bildirim .ikon { margin-top: 2px; }
.bildirim-uyari { background: var(--pill-warning-bg); border: 1px solid #fde68a; color: var(--pill-warning-ink); }
.bildirim-hata { background: var(--pill-negative-bg); border: 1px solid #f6c9c4; color: var(--pill-negative-ink); }
.bildirim-tamam { background: #f0fbf4; border: 1px solid #bfe8cf; color: var(--pill-positive-ink); }
.bildirim-bilgi { background: var(--accent-soft); border: 1px solid var(--accent-track); color: var(--accent-ink); }

/* hap */
.pill { display: inline-flex; align-items: center; flex: none; white-space: nowrap; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 500; line-height: 22px; }
.pill-olumlu { background: var(--pill-positive-bg); color: var(--pill-positive-ink); }
.pill-olumsuz { background: var(--pill-negative-bg); color: var(--pill-negative-ink); }
.pill-uyari { background: var(--pill-warning-bg); color: var(--pill-warning-ink); }
.pill-notr { background: var(--pill-neutral-bg); color: var(--pill-neutral-ink); }
.pill-vurgu { background: var(--pill-accent-bg); color: var(--pill-accent-ink); }

/* ------------------------------------------------------------------ kurulum */
.ilerleme { height: 8px; border-radius: 4px; background: var(--accent-track); overflow: hidden; margin-bottom: 8px; }
.ilerleme span { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.adimlar { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
.adimlar li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); min-height: 60px; }
.adim-isaret { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--control); display: grid; place-items: center; flex: none; }
.adimlar li.tamam .adim-isaret { background: var(--accent); border-color: var(--accent); color: #fff; }
.adim-ad { flex: 1; min-width: 0; font-weight: 500; }
.adim-ad small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; line-height: 18px; margin-top: 1px; }
.adimlar li.tamam .adim-ad { color: var(--muted); }

/* ------------------------------------------------------------------ KPI şeridi */
.kpi-seridi { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0; }
.kpi { padding: 18px 20px; border-left: 1px solid var(--border); min-width: 0; }
.kpi:first-child { border-left: 0; }
.kpi-ad { font-size: 14px; color: var(--muted); }
.kpi-deger { font-size: var(--fs-kpi); line-height: 32px; font-weight: 600; margin-top: 4px; }
.kpi-deger .birim { font-size: 15px; font-weight: 400; color: var(--muted); }
.kpi-not { font-size: 12px; line-height: 16px; color: var(--muted); margin-top: 4px; }

/* ------------------------------------------------------------------ gönderim şeridi (imza öğe) */
.seritler { display: flex; flex-direction: column; gap: 14px; }
.serit { display: grid; grid-template-columns: 200px minmax(0, 1fr); column-gap: 20px; row-gap: 4px; align-items: center; }
.serit-ad { display: flex; flex-direction: column; min-width: 0; grid-row: span 2; }
.serit-ad b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.serit-ad .num { font-size: 20px; line-height: 28px; font-weight: 600; }
.serit-ad .num .gri { font-size: 14px; font-weight: 400; }
.serit-yol { position: relative; height: 36px; border-radius: 6px; background: var(--raised); }
.tik { position: absolute; top: 6px; bottom: 6px; width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--accent); }
.tik-takip { background: var(--text); }
.tik-sonraki { position: absolute; top: 9px; width: 12px; height: 18px; margin-left: -6px; border: 1.5px dashed var(--accent); border-radius: 3px; }
.simdi { position: absolute; top: -4px; bottom: -4px; width: 1px; background: var(--text); }
.serit-not { font-size: 12px; line-height: 16px; color: var(--muted); }
.saat-ekseni { position: relative; height: 16px; margin-left: 220px; font-size: 12px; color: var(--faint); }
.saat-ekseni span { position: absolute; transform: translateX(-50%); }
.saat-ekseni span:first-child { transform: none; }
.saat-ekseni span:last-child { transform: translateX(-100%); }
.lejant { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-size: 12px; color: var(--muted); }
.lejant span { display: inline-flex; align-items: center; gap: 6px; }
.lejant i { display: inline-block; }
.lj-tik { width: 3px; height: 12px; border-radius: 2px; background: var(--accent); }
.lj-takip { background: var(--text); }
.lj-sonraki { width: 8px; height: 12px; border: 1.5px dashed var(--accent); border-radius: 2px; }
.lj-simdi { width: 1px; height: 14px; background: var(--text); }
.grafik { min-height: 180px; }

/* ------------------------------------------------------------------ sekmeler, araç çubuğu, tablo */
.sekmeler { display: flex; gap: 22px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.sekmeler a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 0; text-decoration: none; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.sekmeler a:hover { color: var(--text); }
.sekmeler a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }
.sekmeler .num { font-weight: 400; color: var(--muted); font-size: 13px; }
.arac { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.arac .ara-kutu { width: 300px; }
.arac .bosluk { flex: 1; }
.arac select.girdi, .arac .girdi { height: 36px; width: auto; }
.arac .ara-kutu .girdi { width: 100%; }

.tablo-kap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-weight: 400; font-size: 12px; color: var(--muted); padding: 12px 16px 8px; white-space: nowrap; }
td { padding: 10px 16px; border-top: 1px solid var(--rule); vertical-align: middle; height: 56px; }
tbody tr:hover td { background: var(--raised); }
td.num, th.num { text-align: right; }
.hucre-iki b { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 380px; }
.hucre-iki span { display: block; font-size: 13px; color: var(--muted); line-height: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 380px; }
.tablo-alt { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 13px; }
.sayfalama { display: flex; gap: 8px; }
.adim-gosterge { display: inline-flex; gap: 3px; vertical-align: middle; }
.adim-gosterge i { width: 14px; height: 6px; border-radius: 3px; background: var(--chart-track); }
.adim-gosterge i.dolu { background: var(--accent); }

/* ------------------------------------------------------------------ gelen kutusu (cevaplar) */
.gelen { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: var(--gap); align-items: start; }
.gelen-liste-kap { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; border-radius: var(--radius-card); }
.gelen-liste { padding: 6px; }
.gelen-satir { display: flex; flex-direction: column; gap: 3px; padding: 12px 12px; border-radius: 6px; text-decoration: none; position: relative; }
.gelen-satir + .gelen-satir { margin-top: 2px; }
.gelen-satir:hover { background: var(--raised); }
.gelen-satir[aria-current="true"] { background: var(--accent-soft); }
.gelen-satir.yeni .satir-ust b { font-weight: 700; }
.gelen-satir.yeni::before { content: ""; position: absolute; left: 3px; top: 19px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.gelen-detay { display: flex; flex-direction: column; gap: 20px; }
.detay-bas { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.detay-bas h2 { font-size: 22px; line-height: 28px; }
.detay-bilgi { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 13px; margin-top: 6px; }
.detay-bilgi a { color: var(--accent-ink); text-decoration: none; display: inline-flex; gap: 4px; align-items: center; }
.detay-bilgi a:hover { text-decoration: underline; }
.mesaj-balon { border: 1px solid var(--border); border-radius: 8px; padding: 16px; background: var(--surface); }
.mesaj-balon.giden { background: var(--raised); border-color: transparent; }
.mesaj-ust { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.mesaj-ust b { color: var(--text); font-weight: 500; }
.mesaj-metin { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 22px; }
.eylem-satiri { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.secim-grubu { display: flex; flex-wrap: wrap; gap: 6px; }
.secim-grubu label { cursor: pointer; }
.secim-grubu input { position: absolute; opacity: 0; pointer-events: none; }
.secim-grubu span { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--control); font-size: 13px; transition: background-color .15s, border-color .15s; }
.secim-grubu input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); font-weight: 500; }
.secim-grubu input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.secim-grubu span:hover { border-color: var(--control-hover); }

/* ------------------------------------------------------------------ mesaj düzenleyici */
.duzenleyici { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); align-items: start; }
.on-izleme { position: sticky; top: 24px; }
.mail-kagit { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.mail-ust { padding: 14px 18px; background: var(--raised); display: grid; grid-template-columns: 56px 1fr; gap: 4px 8px; font-size: 13px; }
.mail-ust dt { color: var(--muted); }
.mail-ust dd { margin: 0; overflow-wrap: anywhere; }
.mail-konu { padding: 16px 18px 0; font-size: 17px; font-weight: 600; line-height: 24px; }
.mail-govde { padding: 12px 18px 20px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 22px; }
.mail-govde a { color: #1a56c4; }
.denetim { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.denetim li { display: flex; gap: 8px; align-items: flex-start; }
.denetim .ikon { margin-top: 2px; }
.denetim .iyi .ikon { color: var(--positive); }
.denetim .kotu .ikon { color: var(--warning); }
.degiskenler { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.degiskenler button { height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--control); background: var(--surface); cursor: pointer; font-size: 13px; }
.degiskenler button:hover { border-color: var(--accent); color: var(--accent-ink); }
.form-alt { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 16px; }
.kayit-damga { font-size: 13px; color: var(--positive); opacity: 0; transition: opacity .2s; }
.kayit-damga.gorunur { opacity: 1; }

/* ------------------------------------------------------------------ ayarlar */
.ayar-bolum { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; padding: 28px 0; border-top: 1px solid var(--border); }
.sekmeler + .ayar-bolum { border-top: 0; padding-top: 8px; }
.ayar-aciklama h2 { font-size: 16px; line-height: 22px; }
.ayar-aciklama p { margin-top: 6px; color: var(--muted); font-size: 14px; line-height: 21px; }
.ayar-aciklama ol, .ayar-aciklama ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 14px; line-height: 21px; }
.ayar-aciklama li + li { margin-top: 4px; }
.ayar-aciklama a { color: var(--accent-ink); }
.panel-kutu { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.alanlar-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.alanlar-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hesap-kart { border: 1px solid var(--border); border-radius: 8px; padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.hesap-bas { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.hesap-bas h3 { font-size: 15px; font-weight: 600; }
.sonuc { font-size: 13px; line-height: 19px; display: flex; gap: 8px; align-items: flex-start; }
.sonuc .ikon { margin-top: 2px; }
.sonuc.iyi { color: var(--pill-positive-ink); }
.sonuc.iyi .ikon { color: var(--positive); }
.sonuc.kotu { color: var(--pill-negative-ink); }
.sonuc.kotu .ikon { color: var(--negative); }
.dns-tablo td { height: auto; padding: 12px 16px; vertical-align: top; }
.dns-tablo td:first-child { width: 120px; font-weight: 500; }
.kod { font-family: var(--mono); font-size: 12.5px; background: var(--raised); padding: 6px 8px; border-radius: 4px; display: block; overflow-wrap: anywhere; margin-top: 6px; }
.tahmin { background: var(--raised); border-radius: 8px; padding: 14px 16px; font-size: 14px; line-height: 22px; }
.tahmin b { font-weight: 600; }
.cikti-kutu { background: var(--raised); border-radius: 8px; padding: 12px 14px; font-size: 13px; line-height: 20px; white-space: pre-wrap; overflow-wrap: anywhere; }

/* ------------------------------------------------------------------ WhatsApp */
.wa-ust { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--gap); align-items: start; }
.hedef-sayi { font-size: 30px; line-height: 36px; font-weight: 600; }
.hedef-sayi .gri { font-size: 16px; font-weight: 400; }
.wa-mesaj { white-space: pre-wrap; font-size: 14px; line-height: 22px; background: var(--raised); border-radius: 8px; padding: 12px 14px; }

.tel-geri { display: none; }
mark { background: var(--accent-soft); color: var(--accent-ink); border-radius: 3px; padding: 0 2px; }
.wa-mesaj mark { background: #fff; }

/* kayıt */
.kayit-liste { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 6px 0; }
.kayit-satir { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 7px 16px; font-size: 13px; line-height: 19px; }
.kayit-satir + .kayit-satir { border-top: 1px solid var(--rule); }
.kayit-satir.vurgu span:last-child { color: var(--accent-ink); font-weight: 500; }
.kayit-satir.hata span:last-child { color: var(--negative); }

/* bilgi kutusu (toast) */
.bilgi-kutusu { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  background: var(--text); color: #fff; padding: 10px 16px; border-radius: 8px; font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.18);
  transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); z-index: 50; }
.bilgi-kutusu.gorunur { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------------------------ görünüm katmanı
   Mürekkep (fil logosunun siyahı) yan menü, fildişi logo kutusu, dişeti pembesi vurgu, mum mavisi takip rengi.
   Başlıklar Bricolage Grotesque, metin Instrument Sans, saat ve etiketler JetBrains Mono. */
body { letter-spacing: -0.003em; }
.mono, th, .kpi-ad, .nav-baslik, .saat-ekseni, .olay > span:first-child, .kayit-satir > span:first-child, .mail-ust dt {
  font-family: var(--mono); font-feature-settings: "zero" 0;
}

/* yan menü */
.yan { background: var(--text); color: #d3cfdb; border-right: 0; gap: 26px; padding: 22px 14px 16px; }
.yan .marka img, .giris-sahne .marka img { background: var(--ivory); border-radius: 10px; padding: 4px; }
.yan .marka b { color: #fff; font-family: var(--display); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.yan .marka small { color: #9590a3; }
.yan .nav-baslik { color: #7f7a8d; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; padding: 0 12px 8px; }
.yan .nav-satir { height: 38px; padding: 0 12px; border-radius: 10px; color: #cbc7d4; font-weight: 500; }
.yan .nav-satir .ikon { color: #8a8598; transition: color .15s; }
.yan .nav-satir:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.yan .nav-satir:hover .ikon { color: #fff; }
.yan .nav-satir.aktif { background: var(--ivory); color: var(--text); font-weight: 600; }
.yan .nav-satir.aktif .ikon { color: var(--accent); }
.yan .motor-satir { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .09); border-radius: 12px; padding: 12px; }
.yan .motor-satir b { color: #fff; }
.yan .motor-satir small { color: #9590a3; }
.yan .motor-acik .nokta { background: #3fd08a; box-shadow: 0 0 0 3px rgba(63, 208, 138, .22); animation: nabiz 2.4s ease-out infinite; }
.yan .motor-bekliyor .nokta { background: #8a8598; }
.yan .motor-kapali .nokta { background: #ff7b7b; }
@keyframes nabiz { 0% { box-shadow: 0 0 0 0 rgba(63, 208, 138, .5); } 70%, 100% { box-shadow: 0 0 0 7px rgba(63, 208, 138, 0); } }
.yan .kullanici-satir { border-top-color: rgba(255, 255, 255, .09); }
.yan .kullanici-ad { color: #b9b4c4; }
.yan .kullanici-ad:hover { color: #fff; }
.yan .btn-metin { color: #f3b1cc; }
.yan .btn-metin:hover, .yan .btn-ikon:hover { background: rgba(255, 255, 255, .09); }
.yan .btn-ikon { color: #fff; }
.yan :focus-visible { outline-color: #f3b1cc; }

/* tuval ve başlıklar */
.tuval { padding: 36px 40px 48px; }
h1 { font-family: var(--display); font-size: var(--fs-title); line-height: 1.15; font-weight: 700; letter-spacing: -0.03em; }
h2, .ray-baslik, .detay-bas h2, .mail-konu { font-family: var(--display); letter-spacing: -0.015em; }
.alt-cumle { margin-top: 8px; }
/* Genel bakış: sayfanın adı küçük etiket, günün bulgusu asıl başlık */
body[data-sayfa="genel"] h1 { font-family: var(--mono); font-size: 11.5px; line-height: 16px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
body[data-sayfa="genel"] .alt-cumle { font-family: var(--display); font-size: 30px; line-height: 1.2; font-weight: 600; letter-spacing: -0.025em; color: var(--text); max-width: 26em; text-wrap: balance; }
body[data-sayfa="genel"] .alt-cumle b { color: var(--accent); font-weight: 700; }

/* düğme, alan, kart */
.btn { font-weight: 600; height: 38px; padding: 0 16px; }
.btn-kucuk { height: 30px; padding: 0 10px; }
.btn-tam { height: 34px; }
.btn-ikon { padding: 0; }
.btn-metin { padding: 0 6px; }
.btn-birincil { box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 6px 14px -6px rgba(184, 51, 106, .55); }
.btn-birincil:disabled { box-shadow: none; }
.girdi, select.girdi { height: 40px; }
.girdi-kucuk, select.girdi-kucuk { height: 32px; }
.kart, .tablo-kap, .panel-kutu, .kayit-liste, .mail-kagit { box-shadow: 0 1px 2px rgba(21, 19, 26, .04), 0 8px 24px -18px rgba(21, 19, 26, .18); }
.kart-liste { padding: 8px 12px 12px; }
.liste-satir, .gelen-satir { border-radius: 10px; }
.pill { height: 22px; font-weight: 600; letter-spacing: 0; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .7; margin-right: 6px; }
th { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; padding: 14px 16px 10px; }
tbody tr:hover td { background: var(--raised); }
.sekmeler a { font-weight: 600; }
.sekmeler a[aria-current="page"] { border-bottom-width: 2px; }
.olay > span:first-child, .kayit-satir > span:first-child { font-size: 11.5px; white-space: nowrap; }
.olay { grid-template-columns: 112px 1fr; }
.kayit-satir { grid-template-columns: 124px 1fr; }

/* sayılar */
.kpi-seridi { overflow: hidden; }
.kpi { padding: 20px 22px 18px; }
.kpi-ad { font-size: 10.5px; letter-spacing: .11em; text-transform: uppercase; }
.kpi-deger { font-family: var(--display); font-size: 36px; line-height: 40px; font-weight: 600; letter-spacing: -0.03em; margin-top: 10px; }
.kpi-deger .birim { font-family: var(--font); font-size: 15px; letter-spacing: 0; }
.kpi-not { margin-top: 6px; }
.kpi:first-child { background: var(--text); color: #fff; }
.kpi:first-child .kpi-ad, .kpi:first-child .kpi-not, .kpi:first-child .birim { color: #a8a3b5; }
.kpi:first-child + .kpi { border-left: 0; }
.hedef-sayi, .serit-ad .num { font-family: var(--display); letter-spacing: -0.02em; }

/* gönderim şeridi: saat çizgili cetvel (imza öğe) */
.seritler { --saat: 9; gap: 18px; }
.serit-yol {
  height: 46px; border-radius: 8px; background-color: var(--raised); box-shadow: inset 0 0 0 1px var(--border);
  background-image:
    linear-gradient(to right, var(--control) 1px, transparent 1px),
    linear-gradient(to right, var(--control) 1px, transparent 1px);
  background-size: calc(100% / var(--saat)) 12px, calc(100% / (var(--saat) * 4)) 5px;
  background-position: 0 100%, 0 100%; background-repeat: repeat-x;
}
.tik { top: 7px; bottom: 15px; width: 4px; margin-left: -2px; transform-origin: 50% 100%; animation: tik-cik .45s cubic-bezier(.2, .8, .2, 1) backwards; }
.tik-takip { background: var(--wax); }
.tik:hover { box-shadow: 0 0 0 3px var(--accent-track); }
.tik-takip:hover { box-shadow: 0 0 0 3px #d9e3fb; }
@keyframes tik-cik { from { transform: scaleY(0); opacity: 0; } }
.tik-sonraki { top: 7px; height: 24px; }
.simdi { top: -6px; bottom: 0; width: 2px; margin-left: -1px; background: var(--accent); border-radius: 1px; }
.simdi::before { content: ""; position: absolute; top: -3px; left: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--surface); }
.lj-takip { background: var(--wax); }
.lj-simdi { width: 2px; background: var(--accent); }
.saat-ekseni { font-size: 11px; }
.adim-gosterge i { height: 7px; }
.ilerleme { height: 10px; border-radius: 5px; }
.ilerleme span { border-radius: 5px; }

/* cevaplar ve mail */
.mesaj-balon { border-radius: 14px 14px 14px 4px; }
.mesaj-balon.giden { border-radius: 14px 14px 4px 14px; }
.bilgi-kutusu { border-radius: 12px; padding: 12px 18px; font-weight: 500; }

/* ------------------------------------------------------------------ dar ekranlar */
@media (max-width: 1240px) {
  .izgara-ray { grid-template-columns: minmax(0, 1fr); }
  .ray { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "cevap sira" "olay olay"; gap: var(--gap); align-items: stretch; }
  .ray > section { display: flex; flex-direction: column; }
  .ray > section > .kart { flex: 1; display: flex; flex-direction: column; }
  .ray .btn-tam { margin-top: auto; }
  .ray .liste-satir:last-of-type { margin-bottom: 8px; }
  .ray > section:nth-child(1) { grid-area: cevap; }
  .ray > section:nth-child(2) { grid-area: sira; }
  .ray > section:nth-child(3) { grid-area: olay; }
  .duzenleyici { grid-template-columns: minmax(0, 1fr); }
  .on-izleme { position: static; }
}
@media (max-width: 1100px) {
  .kabuk { grid-template-columns: minmax(0, 1fr); }
  .ust-cubuk { display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 16px; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; background: var(--ground); }
  .ust-cubuk .marka span { font-weight: 600; }
  .yan { position: fixed; inset: 0 auto 0 0; width: min(320px, 86vw); z-index: 40; transform: translateX(-100%); transition: transform .2s; border-right: 1px solid var(--border); }
  body.menu-acik .yan { transform: none; }
  body.menu-acik .perde { display: block; position: fixed; inset: 0; background: rgba(23, 18, 26, .32); z-index: 30; }
  .yan .yan-kapat { display: inline-flex; }
  .tuval { padding: 24px; }
  .gelen { grid-template-columns: 300px minmax(0, 1fr); }
  .gelen-liste-kap { top: 72px; max-height: calc(100vh - 96px); }
  .ayar-bolum { grid-template-columns: 1fr; gap: 16px; }
  .wa-ust { grid-template-columns: minmax(0, 1fr); }
  .gizle-tel { display: none; }
  td.ana { width: 100%; max-width: 0; }
  .hucre-iki b, .hucre-iki span { max-width: none; }
  td, th { padding-left: 12px; padding-right: 12px; }
}
@media (max-width: 760px) {
  :root { --gap: 16px; --fs-title: 24px; }
  h1 { line-height: 30px; }
  .tuval { padding: 20px 16px 32px; }
  .baslik-satiri { flex-direction: column; align-items: stretch; gap: 14px; }
  .baslik-eylem { align-items: stretch; }
  .baslik-eylem .btn { height: 44px; }
  .baslik-eylem .kucuk { text-align: left; max-width: none; }
  .ray { grid-template-columns: minmax(0, 1fr); grid-template-areas: "cevap" "sira" "olay"; }
  .kart-bas { flex-wrap: wrap; gap: 4px 16px; }
  .kpi-seridi { grid-template-columns: 1fr 1fr; }
  .kpi-deger { font-size: 28px; line-height: 32px; }
  body[data-sayfa="genel"] .alt-cumle { font-size: 23px; }
  .kpi:first-child + .kpi { border-left: 0; }
  .kpi { border-left: 0; border-top: 1px solid var(--border); padding: 14px 16px; }
  .kpi:nth-child(-n+2) { border-top: 0; }
  .kpi:nth-child(2n) { border-left: 1px solid var(--border); }
  .adimlar { grid-template-columns: 1fr; }
  .serit { grid-template-columns: minmax(0, 1fr); }
  .serit-ad { grid-row: auto; flex-direction: row; justify-content: space-between; align-items: baseline; gap: 12px; }
  .saat-ekseni { margin-left: 0; }
  .saat-ekseni .ara { display: none; }
  .arac .ara-kutu { width: 100%; }
  .arac select.girdi { flex: 1; }
  .gelen { grid-template-columns: minmax(0, 1fr); }
  .gelen-liste-kap { position: static; max-height: none; overflow: visible; }
  .gelen.detay-acik .gelen-liste-kap { display: none; }
  .gelen:not(.detay-acik) .gelen-detay { display: none; }
  .tel-geri { display: inline-flex; }
  .alanlar-2, .alanlar-3 { grid-template-columns: 1fr; }
  .tablo-kap { border: 0; background: none; overflow: visible; }
  table.donusen thead { display: none; }
  table.donusen, table.donusen tbody, table.donusen tr, table.donusen td { display: block; width: 100%; }
  table.donusen tr { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; margin-bottom: 8px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  table.donusen td { border: 0; padding: 0; height: auto; }
  table.donusen td.ana { grid-column: 1 / -1; max-width: none; }
  table.donusen td.num { text-align: left; }
  table.donusen td.gizle-tel { display: none; }
  .hucre-iki b, .hucre-iki span { max-width: none; }
  .tablo-alt { border: 0; padding: 8px 0; }
  .kayit-satir { grid-template-columns: 1fr; gap: 2px; }
  .mail-ust { grid-template-columns: 1fr; }
  .mail-ust dt { margin-top: 4px; }
  .detay-bas { flex-direction: column; }
  .olay { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; }
}

/* giriş ekranı ve kullanıcı satırı */
.giris-govde { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--surface); }
.giris-sahne { position: relative; overflow: hidden; background: var(--text); color: #fff; padding: 44px 52px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.giris-sahne .marka b { color: #fff; font-family: var(--display); font-size: 17px; font-weight: 600; }
.giris-sahne .marka small { color: #9590a3; font-size: 13px; }
.giris-soz { font-family: var(--display); font-size: clamp(34px, 3.6vw, 54px); line-height: 1.06; font-weight: 600; letter-spacing: -0.035em; max-width: 11em; text-wrap: balance; }
.giris-soz em { font-style: normal; color: #f3b1cc; }
.giris-cetvel { position: relative; height: 54px; border-radius: 8px; background-color: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
  background-image: linear-gradient(to right, rgba(255, 255, 255, .28) 1px, transparent 1px), linear-gradient(to right, rgba(255, 255, 255, .2) 1px, transparent 1px);
  background-size: calc(100% / 9) 14px, calc(100% / 36) 6px; background-position: 0 100%, 0 100%; background-repeat: repeat-x; }
.giris-cetvel i { position: absolute; top: 9px; bottom: 18px; width: 4px; margin-left: -2px; border-radius: 2px; background: #f08bb3; transform-origin: 50% 100%; animation: tik-cik .6s cubic-bezier(.2, .8, .2, 1) backwards; }
.giris-cetvel i.t { background: #8fb0ff; }
.giris-cetvel-not { margin-top: 10px; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: #8a8598; }
.giris-yan { display: grid; place-items: center; padding: 32px 24px; }
.giris { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 18px; }
.giris h1 { font-size: 30px; line-height: 1.15; }
.giris-marka { display: none; align-items: center; gap: 12px; margin-bottom: 8px; }
.giris-marka img { background: var(--ivory); border-radius: 10px; padding: 4px; }
.giris-marka b { display: block; font-family: var(--display); font-size: 16px; font-weight: 600; line-height: 20px; }
.giris-marka small { display: block; font-size: 13px; line-height: 18px; color: var(--muted); }
.giris-alt, .giris-not { font-size: 14px; line-height: 21px; color: var(--muted); }
.giris-not { font-size: 13px; line-height: 19px; border-top: 1px solid var(--rule); padding-top: 16px; }
.giris-form { display: flex; flex-direction: column; gap: 16px; }
.giris-form .girdi { height: 46px; font-size: 15px; }
.giris-dugme { width: 100%; height: 46px; margin-top: 6px; font-size: 15px; }
@media (max-width: 900px) {
  .giris-govde { grid-template-columns: minmax(0, 1fr); background: var(--ground); }
  .giris-sahne { display: none; }
  .giris-marka { display: flex; }
  .giris { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 28px 22px; }
}
.kullanici-satir { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--rule); }
.kullanici-ad { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; color: var(--muted); text-decoration: none; }
.kullanici-ad:hover { color: var(--text); }
.kullanici-ad span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
}
