/* ORIN — Your Second Mind | Arayüz prototipi
   Palet: logodan mavi → mor gradyan, ferah beyaz zemin, koyu lacivert metin */

:root {
  --grad: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
  --grad-soft: linear-gradient(135deg, rgba(59,130,246,.10), rgba(139,92,246,.10));
  --blue: #3B82F6;
  --purple: #8B5CF6;
  --ink: #0F172A;
  --ink-2: #475569;
  --ink-3: #94A3B8;
  --line: #E8ECF3;
  --bg: #F6F7FB;
  --card: #FFFFFF;
  --red: #EF4444;
  --amber: #F59E0B;
  --green: #10B981;
  --shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px rgba(15,23,42,.06);
  --shadow-lg: 0 12px 40px rgba(15,23,42,.12);
  --radius: 16px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

html, body { overflow-x: hidden; max-width: 100%; }
/* NOT: touch-action/overscroll/user-select gibi "uygulama hissi" kuralları yalnız mobilde
   (aşağıdaki @media) uygulanır — masaüstünde fare orta-tık otomatik kaydırmasını bozmasın. */
.app { display: flex; min-height: 100vh; }

/* ---------- Giriş & PIN kilit overlay ---------- */
.overlay { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-overlay { background: var(--bg); }
.lock-overlay { background: linear-gradient(150deg, #1E293B 0%, #312E81 55%, #6D28D9 100%); }
.lockbtn { background: var(--card); border: 1px solid var(--line); border-radius: 50%; width: 38px; height: 38px; font-size: 15px; cursor: pointer; line-height: 1; }
.lockbtn:hover { border-color: var(--purple); }

.auth-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 34px 30px; width: 100%; max-width: 380px; display: flex; flex-direction: column; }
.auth-logo { width: 140px; align-self: center; margin-bottom: 6px; }
.auth-account { display: flex; justify-content: center; padding-top: 12px; margin: 4px 0 20px; border-top: 1px solid var(--line); }
.auth-lio { width: 150px; height: auto; }
.auth-l { font-size: 12px; font-weight: 600; color: var(--ink-2); margin: 12px 0 5px; }
.auth-in { width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 15px; font-family: inherit; outline: none; color: var(--ink); }
.auth-in:focus { border-color: var(--purple); }
.auth-btn { width: 100%; margin-top: 20px; padding: 13px; font-size: 15px; }
.auth-foot { text-align: center; font-size: 13px; color: var(--ink-3); margin-top: 16px; cursor: pointer; }
.auth-err { color: var(--red); font-size: 13px; margin-top: 10px; min-height: 16px; text-align: center; }
.auth-remembered { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--bg-soft, #f5f5f7); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 9px 12px; margin-bottom: 4px; }
.auth-remembered-em { font-size: 14px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-switch { font-size: 12px; color: var(--purple); cursor: pointer; white-space: nowrap; }
.auth-remember { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); margin-top: 14px; cursor: pointer; user-select: none; }
.auth-remember input { width: 16px; height: 16px; accent-color: var(--purple); cursor: pointer; }
/* GitHub bölümü — temiz repo çipleri + hizalı commit satırları */
.gh-repos { display: flex; flex-wrap: wrap; gap: 6px; }
.gh-repo { display: inline-flex; align-items: center; gap: 4px; background: var(--bg-soft, #f1f5f9); color: var(--ink-2); border: 1px solid var(--line); border-radius: 7px; padding: 4px 9px; font-size: 12px; text-decoration: none; white-space: nowrap; }
.gh-repo:hover { border-color: var(--purple); color: var(--ink); }
.gh-repo b { color: var(--purple); font-weight: 600; }
.gh-commit { display: grid; grid-template-columns: 78px 140px 1fr; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 12.5px; }
.gh-c-date { color: var(--ink-3); white-space: nowrap; }
.gh-c-repo { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gh-c-msg { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gh-c-msg a { color: var(--ink-2); text-decoration: none; }
.gh-c-msg a:hover { text-decoration: underline; }
@media (max-width: 640px){ .gh-commit { grid-template-columns: 60px 1fr; } .gh-c-repo { display: none; } }
@keyframes shake { 0%,100%{transform:translateX(0)} 20%,60%{transform:translateX(-8px)} 40%,80%{transform:translateX(8px)} }
.lock-inner.shake { animation: shake .4s; }

.lock-inner { display: flex; flex-direction: column; align-items: center; color: #fff; }
.lock-liobadge { background: #fff; border-radius: 14px; padding: 12px 18px; margin-bottom: 22px; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.lock-liobadge img { width: 160px; height: auto; display: block; }
.lock-av { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 24px; box-shadow: 0 6px 20px rgba(0,0,0,.3); }
.lock-name { font-size: 18px; font-weight: 700; margin-top: 12px; }
.lock-hint { font-size: 14px; opacity: .8; margin-top: 4px; }
.pin-dots { display: flex; gap: 16px; margin: 24px 0; }
.pin-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,.6); transition: .15s; }
.pin-dot.on { background: #fff; border-color: #fff; }
.pin-pad { display: grid; grid-template-columns: repeat(3, 72px); gap: 16px; }
.pin-key { height: 72px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; font-size: 26px; font-weight: 600; cursor: pointer; transition: .12s; }
.pin-key:hover { background: rgba(255,255,255,.18); }
.pin-key.empty { border: none; background: none; cursor: default; }
.lock-demo { font-size: 11px; opacity: .55; margin-top: 18px; }
.lock-foot { font-size: 14px; font-weight: 600; opacity: .85; margin-top: 8px; cursor: pointer; }

/* ---------- Sidebar ---------- */
.sidebar {
  width: 248px;
  background: var(--card);
  border-right: 1px solid var(--line);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.brand { display: flex; align-items: center; justify-content: center; padding: 14px 6px 26px; }
.brand img { width: 92%; height: auto; max-width: 200px; object-fit: contain; }
.nav-group-label {
  font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-3); padding: 16px 12px 6px;
}
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  color: var(--ink-2); font-size: 14px; font-weight: 500;
  cursor: pointer; transition: all .15s ease; text-decoration: none;
}
.nav-item .ico { width: 20px; text-align: center; font-size: 16px; opacity: .85; }
.nav-item:hover { background: var(--bg); color: var(--ink); }
.nav-item.active { background: var(--grad-soft); color: var(--blue); font-weight: 600; }
.nav-item.active .ico { opacity: 1; }
.nav-badge {
  margin-left: auto; font-size: 11px; font-weight: 700;
  background: var(--red); color: #fff; border-radius: 20px; padding: 1px 7px;
}
.sidebar-foot { margin-top: auto; }
.sidebar-lio { display: flex; align-items: center; gap: 8px; padding: 8px 10px; margin-bottom: 8px; }
.sidebar-lio img { width: 84px; height: auto; }
.sidebar-lio span { font-size: 10px; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.user-chip {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: var(--radius-sm); background: var(--bg);
}
.avatar {
  width: 32px; height: 32px; border-radius: 50%; background: var(--grad);
  color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px;
}
.user-chip .meta { font-size: 13px; }
.user-chip .meta b { display: block; font-weight: 600; }
.user-chip .meta span { color: var(--ink-3); font-size: 11px; }

/* ---------- Main ---------- */
.main { flex: 1; min-width: 0; padding: 26px 32px 48px; }
.main-inner { max-width: 1320px; margin: 0 auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.topbar .date { color: var(--ink-3); font-size: 13px; font-weight: 500; }
.topbar h1 { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.top-actions { display: flex; gap: 10px; align-items: center; }
.role-switch {
  display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2);
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 7px 14px; cursor: pointer;
}

/* ORIN voice strip */
.orin-strip {
  display: flex; align-items: center; gap: 16px;
  background: var(--grad); color: #fff; border-radius: var(--radius);
  padding: 18px 22px; margin-bottom: 22px; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.orin-strip::after {
  content: ''; position: absolute; right: -40px; top: -40px;
  width: 180px; height: 180px; border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.orin-orb {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,255,255,.22); display: grid; place-items: center; font-size: 22px;
  box-shadow: 0 0 0 6px rgba(255,255,255,.10);
}
.orin-strip .said { font-size: 15px; font-weight: 500; z-index: 1; }
.orin-strip .said b { font-weight: 700; }
.orin-strip .said .tag { opacity: .85; font-size: 12px; display: block; margin-top: 2px; }
.orin-cta {
  margin-left: auto; z-index: 1; background: #fff; color: var(--blue);
  border: none; border-radius: 20px; padding: 9px 20px; font-weight: 700; font-size: 14px; cursor: pointer;
  white-space: nowrap;
}

/* Grid */
.grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; }
.col { display: flex; flex-direction: column; gap: 18px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px 12px;
}
.card-head h3 { font-size: 13px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.card-head .count { font-size: 12px; font-weight: 600; color: var(--ink-3); background: var(--bg); border-radius: 20px; padding: 2px 9px; }
.card-head .link { font-size: 12px; color: var(--blue); cursor: pointer; font-weight: 600; }
.card-body { padding: 4px 18px 16px; }

/* Focus list */
.focus-item { display: flex; align-items: center; gap: 13px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.focus-item:last-child { border-bottom: none; }
.focus-num { width: 24px; height: 24px; border-radius: 7px; background: var(--grad-soft); color: var(--blue); font-weight: 700; font-size: 13px; display: grid; place-items: center; flex-shrink: 0; }
.focus-item .t { font-size: 14px; font-weight: 500; }
.focus-item .meta { margin-left: auto; font-size: 12px; color: var(--ink-3); }
.checkbox { width: 19px; height: 19px; border: 2px solid var(--line); border-radius: 6px; cursor: pointer; flex-shrink: 0; transition: .15s; }
.checkbox:hover { border-color: var(--blue); }

/* Capture box */
.capture { background: var(--card); border: 1px solid var(--line); }
.capture .card-body { padding-top: 14px; }
.mic-row { display: flex; gap: 12px; align-items: center; }
.mic-btn {
  width: 52px; height: 52px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--grad); color: #fff; font-size: 22px; flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(124,92,252,.35); transition: transform .12s;
}
.mic-btn:active { transform: scale(.92); }
.mic-btn.rec { animation: pulse 1.2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(139,92,246,.5)} 100%{box-shadow:0 0 0 16px rgba(139,92,246,0)} }
.capture-input {
  flex: 1; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px 15px; font-size: 14px; font-family: inherit; resize: none; outline: none; color: var(--ink);
}
.capture-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59,130,246,.12); }
.capture-hint { font-size: 12px; color: var(--ink-3); margin-top: 10px; }

/* Captured note card (anlık) */
.note-card {
  margin-top: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--grad-soft); padding: 13px 15px; animation: slideIn .25s ease;
}
@keyframes slideIn { from{opacity:0; transform:translateY(-6px)} to{opacity:1; transform:none} }
.note-card .badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 7px; }
.badge { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 20px; background: #fff; color: var(--blue); border: 1px solid rgba(59,130,246,.25); }
.badge.green { color: var(--green); border-color: rgba(16,185,129,.3); }
.note-card .quote { font-size: 13px; color: var(--ink-2); font-style: italic; }
.note-actions { display: flex; gap: 8px; margin-top: 11px; }
.cap-confirm .cap-head { font-size: 13px; font-weight: 600; color: var(--ink-1); margin-bottom: 10px; }
.cap-row { display: flex; gap: 8px; align-items: flex-start; padding: 8px 0; border-top: 1px dashed var(--line); }
.cap-row:first-of-type { border-top: none; }
.cap-text { flex: 1; min-width: 0; font-size: 13px; line-height: 1.4; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink-1); resize: vertical; font-family: inherit; }
.cap-route { display: flex; flex-direction: column; gap: 5px; flex: 0 0 150px; }
.cap-sel, .cap-target { font-size: 12px; padding: 6px 7px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink-2); width: 100%; cursor: pointer; }
@media (max-width: 560px) { .cap-row { flex-direction: column; } .cap-route { flex-basis: auto; width: 100%; } }
.mini-btn { font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; }
.mini-btn.primary { background: var(--grad); color: #fff; border: none; }
.mini-btn.warn { color: var(--amber); border-color: rgba(245,158,11,.35); }

/* Follow-ups / overdue */
.row-item { display: flex; align-items: center; gap: 11px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.row-item:last-child { border-bottom: none; }
.dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.dot.red { background: var(--red); } .dot.amber { background: var(--amber); } .dot.green { background: var(--green); } .dot.blue { background: var(--blue); }
.row-item .meta { margin-left: auto; font-size: 12px; font-weight: 600; }
.meta.late { color: var(--red); }
.pill { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px; }
.pill.red { background: rgba(239,68,68,.1); color: var(--red); }
.pill.blue { background: rgba(59,130,246,.12); color: var(--blue); }
.pill.amber { background: rgba(245,158,11,.14); color: #b45309; }

/* Calendar */
.cal-item { display: flex; gap: 13px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cal-item:last-child { border-bottom: none; }
.cal-time { font-size: 13px; font-weight: 700; color: var(--blue); width: 48px; }
.cal-item .t { font-size: 14px; }

/* Team pulse */
.team-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.team-row:last-child { border-bottom: none; }
.t-avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; flex-shrink: 0; }
.t-name { font-weight: 600; font-size: 14px; }
.t-status { font-size: 12px; color: var(--ink-3); }
.t-meta { margin-left: auto; text-align: right; font-size: 12px; color: var(--ink-2); }
.status-tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px; margin-left: 6px; }
.status-tag.active { background: rgba(16,185,129,.12); color: var(--green); }
.status-tag.stuck { background: rgba(245,158,11,.14); color: var(--amber); }
.status-tag.field { background: rgba(59,130,246,.12); color: var(--blue); }

/* Forgot bar */
.forgot {
  display: flex; align-items: center; gap: 12px; margin-top: 18px;
  background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 14px 20px; font-size: 13px; color: var(--ink-2);
}
.forgot .ico { font-size: 18px; }
.forgot b { color: var(--ink); }

/* ---------- Üye ekranı ek bileşenleri ---------- */
.role-banner {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600;
  color: var(--ink-2); background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; padding: 6px 14px;
}
.role-banner .dotc { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

.stat-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; box-shadow: var(--shadow); }
.tile .n { font-size: 24px; font-weight: 700; letter-spacing: -.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.tile .l { font-size: 12px; color: var(--ink-3); margin-top: 2px; }

.task-line { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.task-line:last-child { border-bottom: none; }
.task-line .t { font-size: 14px; font-weight: 500; }
.task-line .meta { margin-left: auto; font-size: 12px; color: var(--ink-3); }
.task-line .meta.late { color: var(--red); font-weight: 600; }

.report-box {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px 15px; font-size: 14px; font-family: inherit; resize: none; outline: none; min-height: 92px;
}
.report-box:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59,130,246,.12); }
.btn { border: none; border-radius: var(--radius-sm); padding: 11px 18px; font-weight: 600; font-size: 14px; cursor: pointer; font-family: inherit; }
.btn.primary { background: var(--grad); color: #fff; }
.btn.ghost { background: var(--card); border: 1px solid var(--line); color: var(--ink-2); }
.btn-row { display: flex; gap: 10px; margin-top: 12px; align-items: center; }

.visit-line { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.visit-line:last-child { border-bottom: none; }
.visit-check { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; flex-shrink: 0; color: #fff; }
.visit-check.done { background: var(--green); }
.visit-check.planned { background: var(--bg); border: 2px solid var(--line); color: var(--ink-3); }

.coach {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--grad-soft); border: 1px solid rgba(124,92,252,.18);
  border-radius: var(--radius); padding: 16px 18px; margin-top: 18px;
}
.coach .orb { width: 36px; height: 36px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.coach .txt { font-size: 14px; color: var(--ink-2); }
.coach .txt b { color: var(--ink); }

/* ---------- Kullanıcı değiştirici ---------- */
.userswitch { position: relative; }
.userswitch-btn {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 6px 14px 6px 7px;
  font-size: 13px; font-weight: 600; color: var(--ink);
}
.userswitch-btn .av { width: 28px; height: 28px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.userswitch-btn .car { color: var(--ink-3); font-size: 11px; }
.userswitch-menu {
  position: absolute; right: 0; top: 46px; width: 240px; z-index: 50;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 8px; display: none;
}
.userswitch-menu.open { display: block; animation: slideIn .15s ease; }
.userswitch-menu .grp { font-size: 11px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; padding: 8px 10px 4px; }
.uitem { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; cursor: pointer; }
.uitem:hover { background: var(--bg); }
.uitem.cur { background: var(--grad-soft); }
.uitem .av { width: 30px; height: 30px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.uitem .nm { font-size: 13px; font-weight: 600; }
.uitem .rl { font-size: 11px; color: var(--ink-3); }
.preview-tag { font-size: 11px; font-weight: 600; color: var(--purple); background: rgba(139,92,246,.1); border-radius: 20px; padding: 2px 9px; margin-left: 6px; }

/* ---------- Filtre çubuğu ---------- */
.filterbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 20px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); cursor: pointer; }
.chip.active { background: var(--grad); color: #fff; border-color: transparent; }

/* Section title */
.sec-ttl { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); margin: 18px 2px 8px; }
.sec-ttl.red { color: var(--red); }

/* Görüşme zaman çizgisi */
.timeline { position: relative; padding-left: 18px; }
.timeline::before { content: ''; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding: 10px 0 10px 0; }
.tl-item::before { content: ''; position: absolute; left: -18px; top: 14px; width: 9px; height: 9px; border-radius: 50%; background: var(--grad); border: 2px solid #fff; }
.tl-date { font-size: 12px; font-weight: 700; color: var(--blue); }
.tl-text { font-size: 14px; color: var(--ink-2); margin-top: 2px; }

/* Yönetim tablosu */
.mgmt-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mgmt-row:last-child { border-bottom: none; }
.mgmt-row .who { font-weight: 600; font-size: 14px; min-width: 130px; }
.mgmt-row .role-tag { font-size: 12px; color: var(--ink-2); background: var(--bg); border-radius: 20px; padding: 3px 11px; }
.mgmt-row .tech { font-size: 12px; color: var(--ink-3); margin-left: auto; }
.mgmt-row .tech b { color: var(--ink-2); font-weight: 600; }

/* Kafamın içi */
.brain-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px 16px; margin-bottom: 10px; box-shadow: var(--shadow); }
.brain-item .bq { font-size: 14px; }
.brain-item .bm { font-size: 12px; color: var(--ink-3); margin-top: 4px; }

.fullcard { grid-column: 1 / -1; }

/* Formlar */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.input { border: 1px solid var(--line); border-radius: 10px; padding: 10px 13px; font-size: 14px; font-family: inherit; outline: none; color: var(--ink); }
.input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59,130,246,.12); }
.input::placeholder { color: var(--ink-3); }
.cond { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); }
.cond-ttl { font-size: 12px; font-weight: 700; color: var(--purple); margin-bottom: 12px; }
.codebox { background: #0F172A; color: #cbd5e1; border-radius: 10px; padding: 14px 16px; font-family: 'SF Mono', Consolas, monospace; font-size: 12px; line-height: 1.7; white-space: pre; overflow-x: auto; margin-top: 12px; }
.codebox .k { color: #7dd3fc; } .codebox .s { color: #a7f3d0; } .codebox .c { color: #64748b; }

/* Repo kartı */
.repo-line { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.repo-line:last-child { border-bottom: none; }
.repo-ico { width: 32px; height: 32px; border-radius: 8px; background: var(--grad-soft); color: var(--blue); display: grid; place-items: center; font-size: 15px; flex-shrink: 0; }
.repo-line .nm { font-weight: 600; font-size: 14px; }
.repo-line .sub { font-size: 12px; color: var(--ink-3); }
.repo-line .pr { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--ink-2); text-align: right; }

/* Setup durum rozeti */
.setup-badge { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.setup-badge.ok { background: rgba(16,185,129,.12); color: var(--green); }
.setup-badge.wait { background: rgba(245,158,11,.14); color: var(--amber); }

/* ---------- Yakala: yakalanan satır + dağıtım ---------- */
.cap-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.cap-row .cap-q { font-size: 14px; color: var(--ink); flex: 1; min-width: 0; }
.cap-routes { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; flex-shrink: 0; }
.cap-tag { font-size: 11px; font-weight: 600; color: var(--ink-2); display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.cap-tag.soft { color: var(--ink-3); }
.cap-row .cap-time { font-size: 11px; color: var(--ink-3); width: 40px; text-align: right; flex-shrink: 0; }
.route-legend { display: flex; flex-direction: column; }
.route-item { display: flex; gap: 11px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.route-item:last-child { border-bottom: none; }
.route-ico { font-size: 18px; line-height: 1.2; }
.route-name { font-size: 13px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 7px; }
.route-tag { font-size: 10px; font-weight: 600; color: var(--purple); background: var(--grad-soft); border-radius: 20px; padding: 2px 8px; }
.route-desc { font-size: 12px; color: var(--ink-3); margin-top: 2px; }

/* ---------- Görevler: ekleme satırı, sekmeler, atanan, stok ---------- */
.addtask { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px 14px; }
.addtask-ico { font-size: 18px; color: var(--purple); }
.addtask-input { flex: 1; border: none; outline: none; font-size: 14px; font-family: inherit; color: var(--ink); background: transparent; }
.seg { display: inline-flex; background: var(--bg); border-radius: 10px; padding: 3px; }
.seg-opt { font-size: 12px; font-weight: 600; color: var(--ink-3); padding: 5px 12px; border-radius: 8px; cursor: pointer; }
.seg-opt.active { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.tabbar { display: flex; gap: 6px; border-bottom: 1px solid var(--line); }
.tab { font-size: 14px; font-weight: 600; color: var(--ink-3); padding: 10px 16px; cursor: pointer; border-bottom: 2px solid transparent; display: inline-flex; align-items: center; gap: 7px; }
.tab.active { color: var(--ink); border-bottom-color: var(--purple); }
.tab-badge { font-size: 11px; font-weight: 700; background: var(--bg); border-radius: 20px; padding: 1px 8px; color: var(--ink-2); }
.empty-hint { font-size: 13px; color: var(--ink-3); padding: 8px 2px; }
.task-line.assign { background: var(--grad-soft); border-radius: var(--radius-sm); padding: 11px 14px; border-bottom: none; margin-bottom: 8px; }
.from-tag { font-weight: 700; color: var(--purple); }

/* ---------- Hedeflerim ---------- */
.goal-card { margin-bottom: 16px; }
.goal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.goal-title { font-size: 16px; font-weight: 700; color: var(--ink); }
.goal-sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.goal-pct { font-size: 18px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.goal-bar { height: 7px; background: var(--bg); border-radius: 20px; margin: 12px 0 16px; overflow: hidden; }
.goal-bar span { display: block; height: 100%; background: var(--grad); border-radius: 20px; }
.goal-detail-ttl { font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.goal-days { display: flex; flex-direction: column; gap: 2px; }
.goal-day { display: flex; align-items: flex-start; gap: 9px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.goal-day:last-child { border-bottom: none; }
.goal-day .dot { margin-top: 6px; }
.goal-day-date { font-size: 12px; font-weight: 700; color: var(--ink-2); width: 52px; flex-shrink: 0; }
.goal-day-text { color: var(--ink-2); }

/* ---------- Günlük rapor / Kişisel kartları ---------- */
.report-card { margin-bottom: 12px; }
.report-head { display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.report-date { font-size: 15px; font-weight: 700; color: var(--ink); }
.report-meta { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.report-toggle { color: var(--ink-3); font-size: 13px; }
.report-points { list-style: none; margin-top: 0; max-height: 0; overflow: hidden; transition: max-height .2s ease; }
.report-card.open .report-points { max-height: 400px; margin-top: 12px; }
.report-points li { font-size: 14px; color: var(--ink-2); padding: 7px 0 7px 18px; position: relative; border-bottom: 1px solid var(--line); }
.report-points li:last-child { border-bottom: none; }
.report-points li::before { content: '—'; position: absolute; left: 0; color: var(--purple); }

/* ---------- Ar-Ge ---------- */
.arge-card { margin-bottom: 14px; }
.arge-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.arge-kind { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--purple); background: var(--grad-soft); border-radius: 20px; padding: 3px 10px; }
.arge-date { font-size: 11px; color: var(--ink-3); }
.arge-title { font-size: 15px; font-weight: 700; color: var(--ink); }
.arge-desc { font-size: 13px; color: var(--ink-2); margin: 4px 0 12px; }
.arge-actions { display: flex; gap: 8px; }

/* ---------- Ofis: Arama modülü ---------- */
.upload-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--grad-soft); border: 1px dashed var(--purple); border-radius: var(--radius); padding: 16px 18px; }
.upload-main { display: flex; align-items: center; gap: 13px; }
.upload-ico { font-size: 26px; }
.upload-ttl { font-size: 15px; font-weight: 700; color: var(--ink); }
.upload-sub { font-size: 12px; color: var(--ink-2); margin-top: 2px; max-width: 460px; }
.upload-act { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hp-note { margin-top: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 16px; font-size: 13px; color: var(--ink-2); }
.dup-banner { background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.35); color: #9a6700; border-radius: var(--radius-sm); padding: 10px 13px; font-size: 13px; margin-bottom: 14px; }
.call-card { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; }
.call-name { font-size: 17px; font-weight: 700; color: var(--ink); display: flex; align-items: baseline; gap: 10px; }
.call-row { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.call-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.call-fields > div { display: flex; flex-direction: column; gap: 2px; }
.cf-l { font-size: 11px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .03em; }
.cf-v { font-size: 14px; font-weight: 600; color: var(--ink); }
.cf-v.big { font-size: 20px; font-weight: 800; color: var(--purple); }
.chip.tag-randevu { background: rgba(16,185,129,.12); color: var(--green); border-color: rgba(16,185,129,.3); }
.chip.tag-neg { background: rgba(239,68,68,.10); color: var(--red); border-color: rgba(239,68,68,.3); }
.calllist { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 10px; cursor: pointer; transition: .15s; }
.calllist:hover { border-color: var(--purple); }
.calllist.active { border-color: var(--purple); background: var(--grad-soft); }
.cl-top { display: flex; align-items: center; justify-content: space-between; }
.cl-name { font-size: 14px; font-weight: 700; color: var(--ink); }
.cl-open { font-size: 12px; font-weight: 600; color: var(--purple); }
.cl-sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.cl-meta { font-size: 12px; color: var(--ink-2); }

/* ---------- Saha: ofisten gelenler, ziyaret, evrak, müşteri ---------- */
.lead-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 8px; cursor: pointer; background: var(--grad-soft); transition: .15s; }
.lead-row:hover { border-color: var(--purple); }
.lead-name { font-size: 14px; font-weight: 700; color: var(--ink); }
.lead-sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.lead-act { text-align: right; font-size: 12px; color: var(--ink-2); display: flex; flex-direction: column; gap: 3px; align-items: flex-end; }
.lead-go { font-weight: 700; color: var(--purple); }
.capture-row2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cap-btn { border-style: dashed !important; }
.loc-got { font-size: 12px; color: var(--green); }
.chip.ghostchip { border-style: dashed; color: var(--purple); }
.cust-result { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 8px; cursor: pointer; }
.cust-result:hover { border-color: var(--purple); }
.cust-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.cust-sub { font-size: 12px; color: var(--ink-3); }
.cust-tag { font-size: 11px; font-weight: 600; color: var(--purple); background: var(--grad-soft); border-radius: 20px; padding: 3px 10px; white-space: nowrap; }
.visit-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.visit-row:last-child { border-bottom: none; }
.vr-name { font-size: 14px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 7px; }
.vr-photo { font-size: 13px; }
.vr-meta { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.vr-status { font-size: 12px; font-weight: 600; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.evrak-card { margin-bottom: 12px; }
.evrak-head { display: flex; align-items: flex-start; justify-content: space-between; }
.evrak-name { font-size: 15px; font-weight: 700; color: var(--ink); }
.evrak-sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.evrak-status { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-top: 8px; display: flex; align-items: center; gap: 7px; }

/* ---------- Inline form (elle kişi / not ekleme) ---------- */
.inline-form { background: var(--grad-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; margin-bottom: 14px; }
.inline-form .input { width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 9px 12px; font-size: 14px; font-family: inherit; outline: none; color: var(--ink); background: #fff; }
.inline-form .field { display: flex; flex-direction: column; gap: 5px; }
.inline-form .field label { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.inline-form .field.full { grid-column: 1 / -1; }
.inline-form .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- Mobilden test QR (owner sidebar) ---------- */
.mobile-qr { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; text-align: center; margin-bottom: 12px; background: var(--grad-soft); }
.mqr-ttl { font-size: 12px; font-weight: 700; color: var(--ink-2); margin-bottom: 8px; }
.mobile-qr img { width: 100%; max-width: 150px; height: auto; border-radius: 8px; background: #fff; padding: 6px; }
.mqr-url { font-size: 12px; font-weight: 700; color: var(--purple); margin-top: 8px; font-family: ui-monospace, monospace; }
.mqr-hint { font-size: 10.5px; color: var(--ink-3); margin-top: 5px; line-height: 1.4; }

/* ---------- Mobil alt navigasyon (sadece mobil) ---------- */
.mobile-nav { display: none; }

@media (max-width: 980px) {
  /* Mobil "uygulama hissi" — yalnız dokunmatik ekranlar için */
  body { touch-action: manipulation; }
  html, body { overscroll-behavior: none; }
  .nav-item, .mnav-item, .btn, .mini-btn, .icon-btn, .tab, .seg-opt, .chip, .rtb, .pin-key, .userswitch-btn {
    -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  }
  .sidebar { display: none; }
  .grid { grid-template-columns: 1fr; }
  /* Satır-içi grid'li ana sayfa/hasat düzenleri mobilde tek sütuna insin (inline stili ez) */
  .home-wrap { grid-template-columns: 1fr !important; }
  .hasat-wrap { grid-template-columns: 1fr !important; }
  .main { padding: 16px 14px 96px; }   /* alt navbar için boşluk */
  .main-inner { max-width: 100%; }
  .stat-tiles { grid-template-columns: 1fr 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }      /* form alanları tek sütun */
  .call-fields { grid-template-columns: 1fr 1fr; }
  .topbar { flex-wrap: wrap; gap: 10px; }
  .topbar h1 { font-size: 22px; }
  .upload-bar { flex-direction: column; align-items: stretch; }
  .upload-act { justify-content: stretch; }
  .upload-act .input { max-width: none !important; flex: 1; }
  .cap-routes { align-items: flex-start; }

  /* iOS odak yakınlaştırmasını engelle: form alanları en az 16px */
  input, textarea, select, .input, .addtask-input, .capture-input, .auth-in { font-size: 16px; }

  /* Yoğun satırlar mobilde taşmasın */
  .addtask { flex-wrap: wrap; }
  .addtask-input { flex: 1 1 100%; order: -1; }      /* girdi tam satır, seçenek+buton altına */
  .addtask .seg { flex: 0 0 auto; }
  .tabbar { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .tabbar::-webkit-scrollbar { display: none; }
  .tab { padding: 10px 12px; white-space: nowrap; flex: 0 0 auto; }
  /* Görev satırı: başlık üstte, aksiyon ikonları alta sarsın */
  .task-line { flex-wrap: wrap; }
  .task-line .meta { flex-wrap: wrap; }
  .icon-btn { min-width: 34px; min-height: 34px; display: inline-flex; align-items: center; justify-content: center; }

  /* Alt tab bar — uygulama hissi */
  .mobile-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
    background: var(--card); border-top: 1px solid var(--line);
    box-shadow: 0 -4px 20px rgba(15,23,42,.08);
    padding: 7px 4px calc(7px + env(safe-area-inset-bottom));
    overflow-x: auto;
  }
  .mnav-item {
    flex: 1 0 auto; min-width: 60px; display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 7px 9px; border-radius: 12px; text-decoration: none; color: var(--ink-3); cursor: pointer;
  }
  .mnav-item.active { color: var(--purple); background: var(--grad-soft); }
  .mnav-item .mico { font-size: 24px; line-height: 1; }
  .mnav-item .mlbl { font-size: 10.5px; font-weight: 600; white-space: nowrap; }

  /* Dokunma hedeflerini büyüt */
  .btn, .mini-btn, .chip { min-height: 38px; display: inline-flex; align-items: center; }
  .seg-opt { min-height: 34px; }
}

@media (max-width: 560px) {
  .stat-tiles { grid-template-columns: 1fr 1fr; }
  .call-fields { grid-template-columns: 1fr; }
  .topbar h1 { font-size: 20px; }
}

/* ---- Zenginleştirilmiş metin editörü (notlar + proje detayı) ---- */
.rich-wrap { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--card); }
.rich-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 7px 8px; border-bottom: 1px solid var(--line); background: var(--bg); }
.rtb { border: 1px solid transparent; background: transparent; color: var(--ink-2); font-family: inherit; font-size: 13px; padding: 5px 9px; border-radius: 7px; cursor: pointer; line-height: 1; }
.rtb:hover { background: var(--card); border-color: var(--line); color: var(--ink); }
.rtb b, .rtb i { font-size: 14px; }
.rtb-sep { width: 1px; align-self: stretch; background: var(--line); margin: 2px 4px; }
.rich-editor { min-height: 220px; padding: 16px 18px; font-size: 15px; line-height: 1.6; color: var(--ink); outline: none; }
.rich-editor:empty:before { content: attr(data-ph); color: var(--ink-3); }
.rich-editor h2 { font-size: 20px; font-weight: 700; margin: 14px 0 8px; color: var(--ink); }
.rich-editor h3 { font-size: 16px; font-weight: 600; margin: 12px 0 6px; color: var(--ink); }
.rich-editor p { margin: 6px 0; }
.rich-editor ul { margin: 6px 0; padding-left: 22px; }
.rich-editor li { margin: 3px 0; }
.rich-editor .ck { display: flex; align-items: flex-start; gap: 9px; margin: 5px 0; }
.rich-editor .ckbox { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; border: 2px solid var(--line); border-radius: 5px; cursor: pointer; background: var(--card); }
.rich-editor .ckbox:hover { border-color: var(--purple); }
.rich-editor .ck.done .ckbox { background: linear-gradient(135deg, #3B82F6, #8B5CF6); border-color: transparent; position: relative; }
.rich-editor .ck.done .ckbox:after { content: "✓"; position: absolute; inset: 0; color: #fff; font-size: 12px; display: grid; place-items: center; }
.rich-editor .ck.done { color: var(--ink-3); text-decoration: line-through; }
.note-title-input { flex: 1; border: none; outline: none; background: transparent; font-family: inherit; font-size: 18px; font-weight: 700; color: var(--ink); padding: 2px 0; }
.note-title-input:focus { border-bottom: 1px solid var(--purple); }

/* ---- Görev tamamlama notu + döküman ekleri ---- */
.task-note { font-size: 12.5px; color: var(--ink-2); background: var(--bg); border-left: 3px solid var(--green); border-radius: 6px; padding: 6px 9px; margin-top: 6px; }
.attach-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.attach-chip { display: inline-flex; align-items: center; gap: 5px; max-width: 230px; font-size: 12px; color: var(--ink-2); background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 3px 10px; cursor: pointer; }
.attach-chip:hover { border-color: var(--purple); color: var(--ink); }
.attach-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attach-x { color: var(--ink-3); font-weight: 700; font-size: 11px; cursor: pointer; padding: 0 2px; }
.attach-x:hover { color: #EF4444; }

/* ---- Saha: toast, durum çipleri, foto önizleme, müşteri kartı ---- */
.app-toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 16px);
  background: #0F172A; color: #fff; font-size: 13.5px; font-weight: 600; padding: 11px 18px;
  border-radius: 12px; box-shadow: 0 8px 30px rgba(15,23,42,.28); z-index: 4000;
  opacity: 0; pointer-events: none; transition: opacity .22s, transform .22s; max-width: 86vw; text-align: center;
}
.app-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Ziyaret durumu çipleri — başta nötr, seçilince renkli */
.chip[data-vstatus="olumlu"].active,    .chip[data-cestatus="olumlu"].active    { background:#10B98122; color:#0E9F6E; border-color:#10B98155; }
.chip[data-vstatus="daha_sonra"].active,.chip[data-cestatus="daha_sonra"].active { background:#F59E0B22; color:#B45309; border-color:#F59E0B55; }
.chip[data-vstatus="olumsuz"].active,   .chip[data-cestatus="olumsuz"].active   { background:#EF444422; color:#DC2626; border-color:#EF444455; }

.photo-prev { display: inline-flex; align-items: center; gap: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; }
.photo-prev img { width: 46px; height: 46px; object-fit: cover; border-radius: 8px; }
.photo-prev span { font-size: 12px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 200px; }
.cap-btn.on { border-color: var(--green); color: var(--green); }

.cust-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.cust-card.editing { border-color: var(--purple); box-shadow: 0 4px 16px rgba(139,92,246,.08); }
.cust-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.cust-actions { display: flex; gap: 4px; flex-shrink: 0; }
.cust-edit { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.cust-notes { margin-top: 7px; display: flex; flex-direction: column; gap: 4px; }
.cust-note-row { font-size: 12px; color: var(--ink-2); background: var(--bg); border-radius: 7px; padding: 5px 9px; display: flex; align-items: baseline; gap: 7px; }
.cust-note-row .cn-date { font-size: 11px; font-weight: 600; color: var(--purple); flex-shrink: 0; }
.cust-note-row .attach-x { margin-left: auto; }

/* ---- Ödeal Lead paneli (gömülü iframe) ---- */
.odeal-embed { display: flex; flex-direction: column; height: calc(100vh - 150px); min-height: 480px; }
.odeal-embed iframe { flex: 1; width: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.odeal-foot { font-size: 11.5px; color: var(--ink-3); text-align: right; padding: 6px 2px 0; }
.odeal-foot a { color: var(--purple); text-decoration: none; }
@media (max-width: 980px) { .odeal-embed { height: calc(100vh - 130px); } }
