:root {
  --bg: #0A0B0E;
  --rail: #0D0F13;
  --surface: #12151B;
  --surface-2: #171A22;
  --raise: #1C202A;
  --line: #232835;
  --line-2: #1A1E27;
  --text: #ECEEF3;
  --text-2: #A4AABA;
  --text-3: #6A7184;
  --accent: #FF6B3D;
  --accent-2: #FF8A5C;
  --accent-soft: rgba(255, 107, 61, .12);
  --accent-line: rgba(255, 107, 61, .45);
  --focus: 0 0 0 3px rgba(255, 107, 61, .28);
  --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 20px 40px -24px rgba(0,0,0,.8);
  --shadow-pop: 0 1px 0 rgba(255,255,255,.05) inset, 0 24px 60px -12px rgba(0,0,0,.75), 0 0 0 1px rgba(0,0,0,.4);

  --s-uncontacted: #7A8196;
  --s-contacted: #6B9BFF;
  --s-replied: #F4B740;
  --s-negotiating: #34CDBE;
  --s-customer: #4ED68A;
  --s-not_interested: #F2666F;

  --sans: "Onest", ui-sans-serif, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r: 10px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 12% -12%, rgba(255,107,61,.07), transparent 60%),
    radial-gradient(900px 500px at 110% 0%, rgba(107,155,255,.05), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 400 14px/1.45 var(--sans);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv05";
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--accent-soft); color: var(--text); }
kbd {
  font: 500 10.5px/1 var(--mono);
  padding: 3px 5px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--surface-2);
  color: var(--text-2);
}
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
.num, .t { font-variant-numeric: tabular-nums; }

/* ---- marka ---- */
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 22px/1 var(--sans);
  letter-spacing: -.03em;
}
.wordmark .mark {
  width: 26px; height: 26px; border-radius: 8px;
  background:
    radial-gradient(circle at 70% 30%, var(--accent-2) 0 3px, transparent 3.5px),
    conic-gradient(from 210deg, rgba(255,107,61,.0), rgba(255,107,61,.55) 25%, rgba(255,107,61,0) 26%),
    var(--raise);
  box-shadow: inset 0 0 0 1px var(--line), 0 0 18px -4px rgba(255,107,61,.5);
  position: relative;
}
.wordmark .mark::after {
  content: ""; position: absolute; inset: 6px; border-radius: 50%;
  border: 1.5px solid rgba(236,238,243,.55);
}
.wordmark.lg { font-size: 30px; }
.wordmark.lg .mark { width: 34px; height: 34px; border-radius: 10px; }
.wordmark.lg .mark::after { inset: 8px; }

/* ---- giriş ---- */
.login { min-height: 100%; display: grid; place-items: center; padding: 24px 16px; }
.login-card {
  width: min(380px, 100%);
  padding: 36px 32px 28px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-pop);
  display: grid; gap: 18px;
  animation: rise .5s cubic-bezier(.2,.7,.2,1) both;
}
.login-sub { margin: -8px 0 6px; color: var(--text-3); font-size: 13px; }
.field { display: grid; gap: 7px; }
.field span { font-size: 12px; color: var(--text-2); font-weight: 500; }
.field input {
  height: 44px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--bg);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus { outline: none; border-color: var(--accent-line); box-shadow: var(--focus); }
.login-err { margin: 0; min-height: 18px; color: var(--s-not_interested); font-size: 13px; }

/* ---- butonlar ---- */
.btn {
  height: 38px; padding: 0 16px;
  border-radius: var(--r); border: 1px solid transparent;
  font-weight: 600; font-size: 13px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none;
  transition: transform .08s, background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn-accent {
  height: 44px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: #1A0B05;
  box-shadow: 0 8px 24px -10px rgba(255,107,61,.8), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-accent:hover { box-shadow: 0 10px 28px -8px rgba(255,107,61,.9), inset 0 1px 0 rgba(255,255,255,.3); }
.btn-ghost { border-color: var(--line); background: var(--surface); color: var(--text-2); }
.btn-ghost:hover { border-color: #353B4B; color: var(--text); background: var(--surface-2); }
.link-btn { border: 0; background: none; padding: 0; color: var(--text-3); font-size: 13px; }
.link-btn:hover { color: var(--accent); }

/* ---- düzen ---- */
.app { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100%; }
.rail {
  position: sticky; top: 0; height: 100vh;
  padding: 22px 14px 18px;
  background: rgba(13,15,19,.82);
  backdrop-filter: blur(10px);
  border-right: 1px solid var(--line-2);
  display: flex; flex-direction: column; gap: 22px;
}
.rail-head { display: flex; align-items: center; justify-content: space-between; padding: 0 8px; }
.rail-tag { font: 500 10.5px/1 var(--mono); color: var(--text-3); letter-spacing: .04em; white-space: nowrap; }

.kind-switch {
  display: grid; grid-template-columns: 1fr 1fr;
  padding: 3px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 11px;
}
.kind-switch button {
  height: 32px; border: 0; border-radius: 8px;
  background: none; color: var(--text-3);
  font-weight: 600; font-size: 12.5px;
  transition: background .15s, color .15s, box-shadow .15s;
}
.kind-switch button:hover { color: var(--text-2); }
.kind-switch button.on { background: var(--raise); color: var(--text); box-shadow: inset 0 0 0 1px var(--line), 0 4px 12px -6px rgba(0,0,0,.8); }

.views { display: grid; gap: 2px; }
.view {
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  height: 36px; padding: 0 10px 0 12px;
  border: 0; border-radius: 8px;
  background: none; text-align: left;
  color: var(--text-2); font-weight: 500; font-size: 13.5px;
  position: relative;
  transition: background .12s, color .12s;
}
.view:hover { background: var(--surface); color: var(--text); }
.view.on { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.view.on::before {
  content: ""; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 3px;
  background: var(--accent); border-radius: 0 3px 3px 0;
  box-shadow: 0 0 12px rgba(255,107,61,.7);
}
.view .n { font: 500 11.5px/1 var(--mono); color: var(--text-3); }
.view.hot .n { background: var(--accent); color: #1A0B05; padding: 4px 7px; border-radius: 20px; font-weight: 600; }
.view-sep { height: 1px; background: var(--line-2); margin: 8px 8px; }

.rail-foot { margin-top: auto; display: grid; gap: 14px; padding: 0 8px; }
.keys { display: grid; gap: 7px; font-size: 12px; color: var(--text-3); }
.keys kbd { margin-right: 2px; }

.main { min-width: 0; padding: 26px 32px 120px; }

/* ---- başlık ---- */
.top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 24px; margin-bottom: 20px; }
.eyebrow { margin: 0 0 8px; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.view-title {
  margin: 0;
  font: 700 34px/1.05 var(--sans);
  letter-spacing: -.035em;
  display: flex; align-items: baseline; gap: 12px;
}
.view-count {
  font: 500 13px/1 var(--mono);
  color: var(--text-2);
  padding: 5px 8px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 7px;
  letter-spacing: 0;
}
.tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.search {
  display: flex; align-items: center; gap: 10px;
  height: 40px; width: 340px; max-width: 100%;
  padding: 0 8px 0 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.search:focus-within { border-color: var(--accent-line); box-shadow: var(--focus); background: var(--surface-2); }
.search svg { width: 16px; height: 16px; fill: none; stroke: var(--text-3); stroke-width: 1.7; flex: none; }
.search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; height: 100%; }
.search input::placeholder { color: var(--text-3); }
.search input::-webkit-search-cancel-button { display: none; }
.chip-toggle {
  height: 40px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); color: var(--text-2);
  font-size: 13px; font-weight: 600;
  transition: all .15s;
}
.chip-toggle:hover { color: var(--text); border-color: #353B4B; }
.chip-toggle[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-2); border-color: var(--accent-line); }
.select { position: relative; }
.select select {
  appearance: none;
  height: 40px; padding: 0 34px 0 14px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); color: var(--text-2);
  font-size: 13px; font-weight: 600;
}
.select select:hover { color: var(--text); border-color: #353B4B; }
.select::after {
  content: ""; position: absolute; right: 14px; top: 16px;
  width: 6px; height: 6px;
  border-right: 1.5px solid var(--text-3); border-bottom: 1.5px solid var(--text-3);
  transform: rotate(45deg); pointer-events: none;
}
.tools .btn-ghost { height: 40px; }

/* ---- durum şeridi ---- */
.ledger {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}
.led {
  --c: var(--text);
  position: relative;
  padding: 12px 14px 13px;
  border: 1px solid var(--line-2); border-radius: 12px;
  background: var(--surface);
  text-align: left;
  display: grid; gap: 8px;
  overflow: hidden;
  transition: border-color .15s, background .15s, transform .1s;
}
.led:hover { border-color: var(--line); background: var(--surface-2); }
.led:active { transform: translateY(1px); }
.led.on { border-color: color-mix(in srgb, var(--c) 55%, transparent); background: color-mix(in srgb, var(--c) 8%, var(--surface)); }
.led .lbl { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 500; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.led .lbl i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); flex: none; box-shadow: 0 0 8px color-mix(in srgb, var(--c) 70%, transparent); }
.led .num { font: 600 22px/1 var(--mono); letter-spacing: -.02em; }
.led .bar { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--c); opacity: .9; transition: width .5s cubic-bezier(.2,.7,.2,1); }

/* ---- tablo ---- */
.table {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.thead, .row {
  display: grid;
  grid-template-columns: 22px minmax(220px, 2.1fr) 150px 132px 84px 84px 104px minmax(140px, 1.6fr);
  align-items: center;
  gap: 14px;
  padding: 0 18px;
}
.thead {
  height: 40px;
  border-bottom: 1px solid var(--line-2);
  background: rgba(10,11,14,.55);
  font: 500 10.5px/1 var(--mono);
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-3);
  position: sticky; top: 0; z-index: 2;
  backdrop-filter: blur(8px);
}
.row {
  min-height: 60px;
  border-bottom: 1px solid var(--line-2);
  cursor: pointer;
  position: relative;
  transition: background .1s;
  animation: fade .3s cubic-bezier(.2,.7,.2,1) both;
  animation-delay: calc(var(--i, 0) * 12ms);
}
.row:last-child { border-bottom: 0; }
.row:hover { background: var(--surface-2); }
.row.cur { background: var(--raise); }
.row.cur::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--accent); box-shadow: 0 0 10px rgba(255,107,61,.8); }
.row.sel { background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.row.sel:hover { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }

.chk {
  appearance: none; margin: 0;
  width: 16px; height: 16px;
  border: 1.5px solid #3A4152; border-radius: 5px;
  background: var(--bg);
  display: grid; place-items: center;
  cursor: pointer;
  transition: background .12s, border-color .12s;
}
.chk:hover { border-color: var(--text-3); }
.chk:checked { background: var(--accent); border-color: var(--accent); }
.chk:checked::after { content: ""; width: 8px; height: 4px; border-left: 2px solid #1A0B05; border-bottom: 2px solid #1A0B05; transform: translateY(-1px) rotate(-45deg); }
.chk:indeterminate { background: var(--accent); border-color: var(--accent); }
.chk:indeterminate::after { content: ""; width: 8px; height: 2px; background: #1A0B05; }

.cell-name { min-width: 0; display: grid; gap: 4px; }
.cell-name b { font-weight: 600; font-size: 14px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell-name .dom { font: 400 12px/1.2 var(--mono); color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag {
  display: inline-block; margin-left: 7px;
  font: 500 10px/1 var(--mono); letter-spacing: .03em;
  padding: 3px 6px; border-radius: 5px;
  color: var(--text-2); background: var(--raise); border: 1px solid var(--line);
  vertical-align: 2px;
}
.tag.warn { color: var(--s-not_interested); background: rgba(242,102,111,.08); border-color: rgba(242,102,111,.3); }
.tag.acc { color: var(--accent-2); background: var(--accent-soft); border-color: var(--accent-line); }
.t { font: 400 12.5px/1.2 var(--mono); color: var(--text-2); white-space: nowrap; }
.t.mute { color: var(--text-3); }
.t.due { color: var(--accent-2); font-weight: 500; }
.note-prev { font-size: 13px; color: var(--text-2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.note-prev.blank { color: var(--text-3); opacity: .5; }

.pill {
  --c: var(--s-uncontacted);
  display: inline-flex; align-items: center; gap: 7px;
  height: 26px; padding: 0 10px 0 9px;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
  background: color-mix(in srgb, var(--c) 10%, transparent);
  color: color-mix(in srgb, var(--c) 85%, white);
  font-size: 12px; font-weight: 600;
  white-space: nowrap;
  transition: transform .08s, border-color .15s, background .15s;
}
button.pill:hover { border-color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); }
button.pill:active { transform: scale(.97); }
.pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); box-shadow: 0 0 6px var(--c); }
.pill.st-uncontacted i { background: none; box-shadow: inset 0 0 0 1.5px var(--c); }

.contacts { display: flex; gap: 5px; flex-wrap: wrap; }
.ct {
  height: 24px; min-width: 26px; padding: 0 6px;
  display: inline-grid; place-items: center;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  font: 600 10.5px/1 var(--mono);
  color: var(--text-2);
  text-decoration: none;
  transition: border-color .12s, color .12s, background .12s, transform .08s;
}
.ct:hover { border-color: var(--text-3); color: var(--text); background: var(--raise); }
.ct:active { transform: translateY(1px); }
.ct.tg { color: #5EB8F2; border-color: rgba(94,184,242,.25); }
.ct.wa { color: #4ED68A; border-color: rgba(78,214,138,.25); }
.none { color: var(--text-3); opacity: .5; font-size: 13px; }

/* ---- boş / yükleniyor ---- */
.empty { padding: 72px 24px; display: grid; place-items: center; gap: 10px; text-align: center; }
.empty h3 { margin: 0; font: 700 22px/1.2 var(--sans); letter-spacing: -.02em; }
.empty p { margin: 0; color: var(--text-3); max-width: 360px; }
.empty .btn { margin-top: 6px; }
.skel { height: 60px; border-bottom: 1px solid var(--line-2); padding: 0 18px; display: flex; align-items: center; gap: 16px; }
.skel span { height: 9px; border-radius: 4px; background: linear-gradient(90deg, var(--surface-2), var(--raise), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 4px 0; }
.pager .t { color: var(--text-3); }
.pager-btns { display: flex; gap: 8px; }
.pager button { height: 34px; padding: 0 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--text-2); font-size: 13px; font-weight: 600; }
.pager button:disabled { opacity: .35; cursor: default; }
.pager button:not(:disabled):hover { border-color: #353B4B; color: var(--text); }

/* ---- toplu işlem çubuğu ---- */
.bulkbar {
  position: fixed; left: calc(252px + (100vw - 252px) / 2); bottom: 22px; z-index: 15;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px;
  padding: 7px 7px 7px 16px;
  background: rgba(28,32,42,.92);
  backdrop-filter: blur(14px);
  border: 1px solid #2E3443;
  border-radius: 14px;
  box-shadow: var(--shadow-pop);
  animation: barin .22s cubic-bezier(.2,.75,.2,1) both;
  max-width: calc(100vw - 32px);
  overflow-x: auto;
}
.bulkbar .cnt { font: 600 13px/1 var(--mono); color: var(--accent-2); padding-right: 8px; white-space: nowrap; }
.bulkbar .sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; flex: none; }
.bulkbar button {
  height: 34px; padding: 0 12px;
  border: 1px solid transparent; border-radius: 9px;
  background: none; color: var(--text-2);
  font-size: 12.5px; font-weight: 600; white-space: nowrap;
  transition: background .12s, color .12s, border-color .12s;
}
.bulkbar button:hover { background: var(--raise); color: var(--text); border-color: var(--line); }
.bulkbar button.danger:hover { color: var(--s-not_interested); border-color: rgba(242,102,111,.35); background: rgba(242,102,111,.08); }
.bulkbar button.x { color: var(--text-3); }

/* ---- kart çekmecesi ---- */
.scrim { position: fixed; inset: 0; background: rgba(4,5,7,.5); z-index: 20; animation: fadein .2s both; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(560px, 100%);
  background: linear-gradient(180deg, var(--surface-2), var(--surface) 240px);
  border-left: 1px solid var(--line);
  box-shadow: -30px 0 80px -30px rgba(0,0,0,.9);
  z-index: 21;
  overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(104%);
  transition: transform .32s cubic-bezier(.2,.75,.2,1);
  outline: none;
}
.drawer.open { transform: none; }
.d-head {
  position: sticky; top: 0; z-index: 3;
  padding: 22px 24px 18px;
  background: rgba(23,26,34,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-2);
  display: grid; grid-template-columns: 1fr auto; gap: 6px 14px;
}
.d-kind { font: 500 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.d-name { margin: 2px 0 0; font: 700 28px/1.1 var(--sans); letter-spacing: -.03em; word-break: break-word; grid-column: 1; }
.d-close {
  grid-row: 1 / span 2; grid-column: 2; align-self: start;
  width: 34px; height: 34px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--surface);
  display: grid; place-items: center;
}
.d-close:hover { border-color: #353B4B; background: var(--raise); }
.d-close svg { width: 14px; height: 14px; stroke: var(--text); stroke-width: 1.8; }
.d-dom { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.d-dom code { font: 400 12.5px/1 var(--mono); color: var(--text-2); padding: 8px 10px; background: var(--bg); border: 1px solid var(--line-2); border-radius: 8px; }
.mini {
  height: 30px; padding: 0 11px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--text-2);
  font-size: 12.5px; font-weight: 600;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  transition: border-color .12s, color .12s, background .12s;
}
.mini:hover { border-color: #353B4B; color: var(--text); background: var(--raise); }
.mini:active { transform: translateY(1px); }
.mini.on { background: var(--accent-soft); color: var(--accent-2); border-color: var(--accent-line); }
.mini.danger:hover { color: var(--s-not_interested); border-color: rgba(242,102,111,.35); background: rgba(242,102,111,.08); }

.d-body { padding: 22px 24px 40px; display: grid; gap: 26px; }
.sec h4 {
  margin: 0 0 10px;
  font: 500 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-3);
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
}
.sec h4 small { letter-spacing: 0; text-transform: none; font: 400 12px/1 var(--sans); color: var(--text-3); }

.shot { display: block; aspect-ratio: 16 / 10; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); overflow: hidden; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform .4s; }
.shot:hover img { transform: scale(1.015); }

.seg { display: inline-grid; grid-auto-flow: column; padding: 3px; background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; }
.seg button { height: 32px; padding: 0 14px; border: 0; border-radius: 7px; background: none; color: var(--text-3); font-size: 12.5px; font-weight: 600; }
.seg button:hover { color: var(--text-2); }
.seg button.on { background: var(--raise); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.cls { display: grid; gap: 12px; }
.cls-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cls-note { font-size: 12px; color: var(--text-3); }
.hidden-box {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(242,102,111,.3); border-radius: 10px;
  background: rgba(242,102,111,.06);
  font-size: 13px; color: var(--text-2);
}
.hidden-box b { color: var(--s-not_interested); font-weight: 600; }

.st-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.st-btn {
  --c: var(--s-uncontacted);
  height: 44px; padding: 0 12px;
  border: 1px solid var(--line-2); border-radius: 10px;
  background: var(--surface);
  text-align: left;
  display: flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 600; color: var(--text-2);
  transition: border-color .12s, background .12s, color .12s, transform .08s;
}
.st-btn:hover { border-color: color-mix(in srgb, var(--c) 50%, transparent); color: var(--text); }
.st-btn:active { transform: scale(.98); }
.st-btn i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; box-shadow: 0 0 8px color-mix(in srgb, var(--c) 70%, transparent); }
.st-btn kbd { margin-left: auto; opacity: .55; }
.st-btn.on { background: color-mix(in srgb, var(--c) 12%, var(--surface)); border-color: color-mix(in srgb, var(--c) 70%, transparent); color: var(--text); }
.st-btn.on kbd { opacity: 1; }

.fu { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fu-now { margin: 10px 0 0; font-size: 13px; color: var(--text-2); }
.fu-now b { font-weight: 600; color: var(--text); }
.fu-now.due b { color: var(--accent-2); }

.note-wrap { position: relative; }
.note {
  width: 100%; min-height: 120px; resize: vertical;
  padding: 13px 14px 30px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg);
  line-height: 1.55;
  transition: border-color .15s, box-shadow .15s;
}
.note::placeholder { color: var(--text-3); }
.note:focus { outline: none; border-color: var(--accent-line); box-shadow: var(--focus); }
.note-state { position: absolute; right: 12px; bottom: 10px; font: 400 11px/1 var(--mono); color: var(--text-3); transition: color .2s; }
.note-state.ok { color: var(--s-customer); }
.note-state.err { color: var(--s-not_interested); }

.clist { display: grid; gap: 6px; }
.citem {
  display: grid; grid-template-columns: 34px 1fr auto auto; align-items: center; gap: 10px;
  padding: 8px 8px 8px 10px;
  border: 1px solid var(--line-2); border-radius: 10px;
  background: var(--bg);
}
.citem .ct { pointer-events: none; }
.citem .v { font: 400 13px/1.3 var(--mono); overflow-wrap: anywhere; color: var(--text); }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; }
.fact { background: var(--surface); padding: 11px 13px; display: grid; gap: 5px; }
.fact dt { font-size: 11.5px; color: var(--text-3); }
.fact dd { margin: 0; font: 400 12.5px/1.35 var(--mono); color: var(--text); overflow-wrap: anywhere; }

.dlist { display: grid; }
.ditem { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.ditem:last-child { border-bottom: 0; }
.ditem code { font: 400 12.5px/1.3 var(--mono); overflow-wrap: anywhere; color: var(--text-2); }
.ditem .s { font: 400 11.5px/1 var(--mono); color: var(--text-3); white-space: nowrap; }
.ditem .s.ok { color: var(--s-customer); }
.ditem a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); }
.ditem a:hover { border-color: var(--accent); color: var(--accent-2); }
.arrow { color: var(--text-3); padding: 0 6px; }
.d-empty { margin: 0; color: var(--text-3); font-size: 13px; }
.d-loading { padding: 80px 24px; color: var(--text-3); }

/* ---- hızlı durum menüsü ---- */
.popover {
  position: fixed; z-index: 30;
  min-width: 196px; padding: 5px;
  background: rgba(28,32,42,.96);
  backdrop-filter: blur(12px);
  border: 1px solid #2E3443;
  border-radius: 12px;
  box-shadow: var(--shadow-pop);
  animation: pop .14s cubic-bezier(.2,.7,.2,1) both;
}
.popover button {
  width: 100%; height: 34px; padding: 0 10px;
  border: 0; border-radius: 7px; background: none;
  display: flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 500; color: var(--text-2); text-align: left;
}
.popover button:hover, .popover button.on { background: var(--raise); color: var(--text); }
.popover button i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 6px var(--c); }
.popover button kbd { margin-left: auto; }

.toast {
  position: fixed; left: 50%; top: 20px; z-index: 40;
  transform: translate(-50%, -12px);
  padding: 10px 16px;
  background: var(--raise); color: var(--text);
  border: 1px solid #2E3443;
  border-radius: 10px;
  box-shadow: var(--shadow-pop);
  font-size: 13px; font-weight: 500;
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .25s cubic-bezier(.2,.7,.2,1);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { border-color: rgba(242,102,111,.5); color: var(--s-not_interested); }

.st-uncontacted { --c: var(--s-uncontacted); }
.st-contacted { --c: var(--s-contacted); }
.st-replied { --c: var(--s-replied); }
.st-negotiating { --c: var(--s-negotiating); }
.st-customer { --c: var(--s-customer); }
.st-not_interested { --c: var(--s-not_interested); }

@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes fade { from { opacity: 0; transform: translateY(3px); } }
@keyframes fadein { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
@keyframes barin { from { opacity: 0; transform: translate(-50%, 12px); } }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---- dar ekran ---- */
@media (max-width: 1180px) {
  .thead, .row { grid-template-columns: 22px minmax(200px, 2fr) 146px 120px 84px 100px minmax(120px, 1.4fr); }
  .thead span:nth-child(6), .row > :nth-child(6) { display: none; }
}
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; height: auto; padding: 14px 16px 10px; gap: 12px; border-right: 0; border-bottom: 1px solid var(--line-2); }
  .rail-head { padding: 0; }
  .rail-foot { display: none; }
  .views { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 4px; }
  .views::-webkit-scrollbar { display: none; }
  .view { flex: none; gap: 8px; height: 32px; border: 1px solid var(--line-2); background: var(--surface); }
  .view.on { background: var(--accent-soft); color: var(--accent-2); box-shadow: none; border-color: var(--accent-line); }
  .view.on::before { display: none; }
  .view-sep { display: none; }
  .main { padding: 20px 16px 120px; }
  .view-title { font-size: 28px; }
  .tools { width: 100%; }
  .search { width: 100%; order: -1; }
  .search kbd { display: none; }
  .ledger { grid-template-columns: repeat(7, minmax(108px, 1fr)); overflow-x: auto; scrollbar-width: none; }
  .ledger::-webkit-scrollbar { display: none; }
  .thead { display: none; }
  .row {
    grid-template-columns: 22px 1fr auto;
    grid-template-areas: "chk name st" ". ct due" ". note note";
    gap: 10px 12px; padding: 14px 16px;
  }
  .row > :nth-child(1) { grid-area: chk; align-self: start; margin-top: 2px; }
  .row > :nth-child(2) { grid-area: name; }
  .row > :nth-child(3) { grid-area: st; justify-self: end; }
  .row > :nth-child(4) { grid-area: ct; }
  .row > :nth-child(5), .row > :nth-child(6) { display: none; }
  .row > :nth-child(7) { grid-area: due; justify-self: end; }
  .row > :nth-child(8) { grid-area: note; }
  .row .note-prev.blank { display: none; }
  .bulkbar { left: 50%; bottom: 14px; }
  .d-head, .d-body { padding-left: 18px; padding-right: 18px; }
  .d-name { font-size: 24px; }
  .st-grid { grid-template-columns: 1fr 1fr; }
  .st-btn kbd { display: none; }
  .facts { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
