:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --border: #e2e4e9;
  --text: #1a1d23;
  --text-muted: #6b7280;
  --primary: #2f6fed;
  --primary-hover: #2558c4;
  --success: #16a34a;
  --success-bg: #e8f8ee;
  --warning: #b45309;
  --warning-bg: #fef3c7;
  --danger: #dc2626;
  --danger-bg: #fdecec;
  --neutral-bg: #eef0f3;
  --radius: 10px;
  --sidebar-w: 230px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.5;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { margin: 0 0 4px; font-weight: 650; }
h1 { font-size: 22px; }
h2 { font-size: 17px; }
h3 { font-size: 15px; }
p { margin: 0 0 8px; color: var(--text-muted); }

/* ---------- Layout shell ---------- */
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  background: #14161c;
  color: #cfd3dc;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 20px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar .brand {
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  padding: 0 10px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar .brand .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--primary); display: inline-block; }

.sidebar nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }

.sidebar nav a {
  color: #b7bcc7;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar nav a:hover { background: #1f232c; color: #fff; }
.sidebar nav a.active { background: var(--primary); color: #fff; }

.nav-section { display: flex; flex-direction: column; }
.nav-toggle {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; text-align: left; background: none; border: none;
  color: #b7bcc7; padding: 10px 12px; border-radius: 8px;
  font-size: 13.5px; font-weight: 500; cursor: pointer;
}
.nav-toggle span:first-child { display: flex; align-items: center; gap: 10px; }
.nav-toggle .chev { font-size: 11px; color: #7d8391; }
.nav-toggle:hover, .nav-toggle.active { background: #1f232c; color: #fff; }
.nav-sub { padding: 4px 4px 10px 12px; display: flex; flex-direction: column; gap: 6px; }
/* display:flex, HTML hidden özelliğini eziyordu — liste hep açık kalıp "Yükleniyor..." gösteriyordu. */
.nav-sub[hidden] { display: none; }
.nav-sub input[type="search"] {
  background: #1f232c; border: 1px solid #2b303b; color: #fff;
  font-size: 12.5px; padding: 7px 10px; border-radius: 7px;
}
.nav-sub input[type="search"]::placeholder { color: #6f7583; }
.nav-sub-list { max-height: 220px; overflow-y: auto; display: flex; flex-direction: column; }
.nav-sub-list a {
  color: #9aa0ad; font-size: 12.5px; padding: 6px 8px; border-radius: 6px;
  text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nav-sub-list a:hover { background: #1f232c; color: #fff; }
.nav-sub-loading, .nav-sub-empty { color: #6f7583; font-size: 12px; padding: 6px 8px; }
.nav-sub-all { color: var(--primary) !important; font-size: 12px; font-weight: 650; padding: 4px 8px; }

.sidebar .footer-user {
  border-top: 1px solid #262b35;
  padding-top: 14px;
  margin-top: 10px;
  font-size: 12.5px;
}
.sidebar .footer-user .name { color: #fff; font-weight: 600; }
.sidebar .footer-user .role { color: #8b90a0; text-transform: uppercase; font-size: 10.5px; letter-spacing: .04em; }
.sidebar .footer-user button {
  margin-top: 10px;
  width: 100%;
  background: #1f232c;
  color: #cfd3dc;
  border: 1px solid #2b303b;
}
.sidebar .footer-user button:hover { background: #2b303b; }
.sidebar .footer-user .push-box { margin-top: 4px; }
.sidebar .footer-user .push-box [hidden] { display: none; }
.sidebar .footer-user .push-opt { display: flex; gap: 6px; align-items: center; margin-top: 8px; color: #cfd3dc; font-size: 12px; cursor: pointer; }
.sidebar .footer-user .push-opt input { width: auto; margin: 0; }
.sidebar .footer-user button.push-link { background: none; border: none; color: #8fb3ff; padding: 4px 0 0; margin-top: 4px; text-align: left; font-size: 12px; }
.sidebar .footer-user .push-hint { color: #8b90a0; font-size: 11.5px; margin-top: 6px; line-height: 1.4; }

.main-area { flex: 1; min-width: 0; }
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.page-content { padding: 24px 28px 60px; max-width: 1100px; }

/* ---------- Buttons ---------- */
button, .btn {
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 9px 16px;
  cursor: pointer;
  transition: background .12s;
}
button:hover, .btn:hover { background: var(--neutral-bg); }
button.primary, .btn.primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
button.primary:hover, .btn.primary:hover { background: var(--primary-hover); }
button.danger { color: var(--danger); border-color: #f3c6c6; }
button.danger:hover { background: var(--danger-bg); }
button:disabled { opacity: .55; cursor: not-allowed; }
button.small { padding: 5px 10px; font-size: 12.5px; }

/* ---------- Cards / tables ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 18px;
}
.card-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }

.client-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: block;
  color: var(--text);
}
.client-card:hover { border-color: var(--primary); text-decoration: none; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.client-card .name { font-weight: 650; font-size: 15px; margin-bottom: 6px; }
.client-card .meta { font-size: 12.5px; color: var(--text-muted); display: flex; flex-direction: column; gap: 2px; }
.client-card .perms { margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }

.ig-media-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.ig-media-card img, .ig-media-card video {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  background: var(--neutral-bg);
}
.ig-media-card .ig-media-body { padding: 10px 12px; }
.ig-media-card .ig-media-caption {
  font-size: 12.5px;
  color: var(--text);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ig-media-card .ig-media-meta { font-size: 11.5px; color: var(--text-muted); margin-bottom: 8px; }
.ig-media-card .ig-media-actions { display: flex; gap: 6px; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 13.5px; }
th { color: var(--text-muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
tr:last-child td { border-bottom: none; }

/* ---------- Badges ---------- */
.badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 650;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--neutral-bg);
  color: var(--text-muted);
}
.badge.success { background: var(--success-bg); color: var(--success); }
.badge.warning { background: var(--warning-bg); color: var(--warning); }
.badge.danger { background: var(--danger-bg); color: var(--danger); }
.badge.primary { background: #e8effe; color: var(--primary); }

/* 2026-10-06: "hidden" özniteliği her zaman gizlesin — .badge { display: inline-block } gibi kurallar
   onu eziyordu (cari başlığındaki "Sadece tasarım" rozeti designOnly=false carilerde de görünüyordu). */
[hidden] { display: none !important; }

/* ---------- Forms ---------- */
label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-muted); margin-bottom: 5px; }
input, select, textarea {
  font-family: inherit;
  font-size: 13.5px;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 100%;
  background: #fff;
  color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: 2px solid #cfe0fd; border-color: var(--primary); }
.field { margin-bottom: 14px; }
.field-row { display: flex; gap: 12px; }
.field-row .field { flex: 1; }
.checkbox-row { display: flex; align-items: center; gap: 8px; }
.checkbox-row input { width: auto; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.tabs button {
  border: none;
  border-radius: 0;
  background: none;
  padding: 10px 6px;
  margin-right: 18px;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 2px solid transparent;
}
.tabs button.active { color: var(--primary); border-bottom-color: var(--primary); }
.tabs button:hover { background: none; color: var(--text); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------- Misc ---------- */
.empty-state { text-align: center; padding: 50px 20px; color: var(--text-muted); }
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--text);
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 13.5px;
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
  z-index: 3000; /* 2026-10-08: pencerelerin (1000-1100) ÜSTÜNDE */
  max-width: 360px;
}
.toast.error { background: var(--danger); }
.toast.success { background: var(--success); }

.modal-backdrop {
  position: fixed; inset: 0; background: rgba(20,22,28,.45);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 60px 16px; z-index: 100; overflow-y: auto;
}
.modal { background: #fff; border-radius: var(--radius); padding: 24px; width: 100%; max-width: 460px; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.modal-header button { border: none; background: none; font-size: 18px; padding: 2px 6px; }

.hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ---------- Paylaşım oluşturma (tip seçici + önizleme) ---------- */
.post-editor { display: flex; gap: 22px; align-items: flex-start; }
.post-editor-form { flex: 1; min-width: 0; }
.post-editor-preview {
  width: 280px; flex-shrink: 0; position: sticky; top: 20px;
  border: 1px dashed var(--border); border-radius: var(--radius);
  background: var(--neutral-bg); padding: 14px; text-align: center;
}
.post-editor-preview .placeholder { color: var(--text-muted); font-size: 12.5px; padding: 40px 8px; }
.post-editor-preview img, .post-editor-preview video { max-width: 100%; max-height: 360px; border-radius: 8px; display: block; margin: 0 auto; }
.post-editor-preview .file-name { margin-top: 8px; font-size: 11.5px; color: var(--text-muted); word-break: break-all; }

.type-btn-row { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.type-btn {
  flex: 1; min-width: 90px; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 12px 8px; border: 1.5px solid var(--border); border-radius: 10px;
  background: #fff; color: var(--text-muted); font-weight: 650; font-size: 12.5px;
}
.type-btn .emoji { font-size: 18px; }
.type-btn:hover { background: var(--neutral-bg); }
.type-btn.active { border-color: var(--primary); color: var(--primary); background: #eef3fe; }

.cmp-toggle-row { display: flex; align-items: center; gap: 8px; margin: 4px 0 14px; }
.cmp-toggle-row input { width: auto; }
.cmp-toggle-row label { margin: 0; }
.cmp-subfields {
  border: 1px solid var(--border); border-radius: 10px; padding: 14px;
  margin-bottom: 14px; background: var(--neutral-bg);
}

@media (max-width: 900px) {
  .post-editor { flex-direction: column; }
  .post-editor-preview { width: 100%; position: static; }
}

/* ---------- Yayın Kuyruğu ---------- */
.failure-text { color: var(--danger); font-size: 12px; margin-top: 4px; max-width: 320px; }
.filters-row { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.filters-row select { width: auto; }
.client-search-row { margin-bottom: 16px; max-width: 320px; }

/* ---------- Takvim ---------- */
.calendar-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.calendar-header .month-label { font-size: 16px; font-weight: 650; min-width: 160px; text-align: center; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; width: 100%; }
/* Uzun "@hesap · Cari · tür" etiketleri sütunu genişletmesin (2026-10-01). */
.calendar-cell { min-width: 0; overflow: hidden; }
.calendar-dow { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-chip { max-width: 100%; min-width: 0; box-sizing: border-box; }
.calendar-dow { text-align: center; font-size: 11.5px; font-weight: 650; color: var(--text-muted); text-transform: uppercase; padding-bottom: 4px; }
.calendar-cell {
  min-height: 92px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface); padding: 6px; display: flex; flex-direction: column; gap: 3px;
}
.calendar-cell.other-month { background: var(--neutral-bg); opacity: .55; }
.calendar-cell.today { border-color: var(--primary); }
.calendar-cell .day-num { font-size: 12px; font-weight: 650; color: var(--text-muted); margin-bottom: 2px; }
.cal-chip {
  font-size: 10.5px; padding: 2px 6px; border-radius: 6px; text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block;
  background: var(--neutral-bg); color: var(--text);
}
.cal-chip-btn {
  border: none; width: 100%; text-align: left; font-family: inherit; cursor: pointer; margin-bottom: 2px;
}
.cal-chip:hover { text-decoration: none; filter: brightness(0.95); }
.cal-chip.st-SCHEDULED { background: #e8effe; color: var(--primary); }
.cal-chip.st-PUBLISHED { background: var(--success-bg); color: var(--success); }
.cal-chip.st-FAILED { background: var(--danger-bg); color: var(--danger); }
.cal-chip.st-DRAFT { background: var(--neutral-bg); color: var(--text-muted); }
.cal-more { font-size: 10.5px; color: var(--text-muted); padding: 1px 6px; }

@media (max-width: 760px) {
  .calendar-cell { min-height: 62px; }
  .calendar-dow span { display: none; }
}

/* ---------- Login page ---------- */
.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #14161c, #22262f 60%, #2f6fed 160%);
}
.login-card {
  background: #fff;
  border-radius: 14px;
  padding: 36px 32px;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.login-card .brand { text-align: center; margin-bottom: 22px; }
.login-card .brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--primary); display: inline-block; margin-right: 6px; }
.login-card .brand span { font-weight: 700; font-size: 17px; }
.login-card button.primary { width: 100%; margin-top: 6px; padding: 11px; }
.login-error { color: var(--danger); font-size: 13px; margin-bottom: 12px; display: none; }

/* ---------- Reklam hesabı özeti ---------- */
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.stat-tile { background: var(--neutral-bg); border-radius: 8px; padding: 12px 14px; }
.stat-tile .stat-label { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.stat-tile .stat-value { font-size: 18px; font-weight: 650; }

/* ---------- Tekrarlayan hikâye + token uyarısı ---------- */
.series-badge { display: inline-block; margin-left: 6px; font-size: 11px; padding: 1px 7px; border-radius: 6px; background: #efe9ff; color: #5b3fc4; white-space: nowrap; }
.alert-danger { background: var(--danger-bg); color: var(--danger); border: 1px solid #f3c6c6; border-radius: 8px; padding: 10px 12px; margin-top: 10px; font-size: 13px; }
.alert-danger div + div { margin-top: 6px; }
.inline-check { display: flex; gap: 8px; align-items: center; font-weight: 600; cursor: pointer; }
.inline-check input { width: auto; margin: 0; }
.repeat-box .field-row { gap: 10px; margin-top: 8px; }

/* ---------- Cari → Hesap (Aşama 2) ---------- */
.avatar { border-radius: 50%; object-fit: cover; flex: 0 0 auto; display: inline-block; vertical-align: middle; background: var(--neutral-bg); aspect-ratio: 1 / 1; max-width: none; border: 1px solid var(--border); box-sizing: border-box; }
img.avatar { object-fit: cover; object-position: center; }
.avatar-fallback { display: inline-flex; align-items: center; justify-content: center; background: #e8effe; color: var(--primary); font-weight: 700; }
.avatar-stack { display: flex; align-items: center; margin: 4px 0 8px; }
.avatar-stack .avatar { border: 1px solid var(--border); box-shadow: 0 0 0 2px var(--surface); margin-left: -4px; width: 28px !important; height: 28px !important; min-width: 28px; min-height: 28px; box-sizing: border-box; }
.avatar-stack .avatar:first-child { margin-left: 0; }
.account-heading { display: inline-flex; align-items: center; gap: 10px; }
.acc-inline { display: inline-flex; align-items: center; gap: 4px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; }
.company-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.account-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.account-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.account-card.clickable { cursor: pointer; }
.account-card.clickable:hover, .account-card.clickable:focus { border-color: var(--primary); box-shadow: 0 2px 10px rgba(0,0,0,.05); outline: none; }
.account-card.inactive { opacity: .6; }
.account-card-top { display: flex; align-items: center; gap: 12px; }
.account-card-title { min-width: 0; }
.account-card-name { font-weight: 650; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-card-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.account-card-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.account-open { margin-left: auto; color: var(--primary); font-weight: 650; font-size: 13px; }
.sidebar .nav-sub-list a.nav-cari { color: #cfd3dc; font-weight: 600; }
.sidebar .nav-sub-list a.nav-acc { padding-left: 20px; display: flex; align-items: center; gap: 6px; font-size: 12px; }
.sidebar .nav-sub-list a.nav-acc.active { color: #fff; background: #1f232c; }
.filter-select { width: auto; }
.qp-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
/* 2026-10-04: onay penceresi her formun (Reklam Ver: z-index 1000) üstünde açılır. Tur: 9000. */
.confirm-target-backdrop { z-index: 2000; }
.confirm-target { max-width: 420px; }
.confirm-target-lead { margin: 0 0 10px; color: var(--text); font-weight: 600; }
.confirm-target-account { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); }
.confirm-target-name { font-weight: 700; font-size: 16px; }
.confirm-target-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

/* ---------- Kuyruk / Takvim bileşenleri + ekip raporu (Aşama 2b) ---------- */
.text-danger { color: var(--danger); }
.w-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.w-seg { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.w-seg button { border: none; border-radius: 0; padding: 7px 12px; font-size: 12.5px; background: var(--surface); }
.w-seg button + button { border-left: 1px solid var(--border); }
.w-seg button.active { background: var(--primary); color: #fff; }
.w-toggle { padding: 7px 12px; font-size: 12.5px; }
.w-toggle.active { background: var(--danger-bg); color: var(--danger); border-color: #f3c6c6; }
.w-custom { gap: 6px; align-items: center; }
.w-custom input { width: auto; padding: 6px 8px; }
.w-summary { margin-bottom: 12px; }
.w-group { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; background: var(--surface); overflow: hidden; }
.w-group-problem { border-color: #f3c6c6; }
.w-group-head { display: flex; width: 100%; align-items: center; gap: 10px; border: none; border-radius: 0; background: var(--neutral-bg); padding: 11px 14px; text-align: left; }
.w-group-problem .w-group-head { background: var(--danger-bg); }
.w-group-name { font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-group-counts { font-size: 12.5px; color: var(--text-muted); white-space: nowrap; }
.w-group-body { display: none; padding: 8px 14px 12px; }
.w-group.open .w-group-body { display: block; }
.w-group-meta { margin: 2px 0 8px; }
.w-empty { padding: 6px 0; }
.w-list { display: flex; flex-direction: column; }
.w-row { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--border); }
.w-row:last-child { border-bottom: none; }
.w-row-problem { background: linear-gradient(90deg, var(--danger-bg), transparent 60%); }
.w-row-highlight { outline: 2px solid var(--primary); border-radius: 6px; }
.w-when { font-weight: 650; font-size: 13px; }
.w-main { min-width: 0; }
.w-title { font-weight: 600; }
.w-acc, .w-caption { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-status { white-space: nowrap; }
.w-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.w-day-modal { max-width: 640px; }
.w-day-group { margin-bottom: 12px; }
.w-day-group-title { font-weight: 700; margin-bottom: 4px; }
.calendar-cell.has-items { cursor: pointer; }
.calendar-cell.has-items:hover { border-color: var(--primary); }
.cal-count { display: block; font-size: 10.5px; padding: 2px 6px; border-radius: 6px; background: #e8effe; color: var(--primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
.cal-count.has-bad { background: var(--danger-bg); color: var(--danger); }
.cal-total { float: right; font-size: 10.5px; background: var(--neutral-bg); border-radius: 6px; padding: 0 5px; color: var(--text); }
.responsible-card { padding: 14px 16px; }
.responsible-form { gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-top: 10px; }
.responsible-form .field { margin: 0; min-width: 220px; }
.table-scroll { overflow-x: auto; }
.team-table td, .team-table th { white-space: nowrap; }
/* Ekip raporu > Sorumluluklar: kişi (ad + e-posta) ve cari listeleri ayrı sütun; uzun e-posta/cari listesi taşmaz. */
.team-resp-list { display: flex; flex-direction: column; }
.team-resp-row { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 2fr); gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--border); align-items: start; }
.team-resp-row:last-child { border-bottom: none; }
.team-resp-person, .team-resp-clients { min-width: 0; overflow-wrap: anywhere; }
.team-resp-clients > div + div { margin-top: 4px; }
/* Hesap sayfası başlığı: asenkron dolarken sekme çubuğunu kaydırmasın (2026-10-01). */
#client-name { min-height: 44px; display: flex; align-items: center; }
#client-meta { min-height: 1.6em; }

/* ---------- Mobil / PWA ---------- */
/* Üst çubuk, alt sekme çubuğu ve çekmece arka planı masaüstünde gizli. */
.mobile-topbar, .bottom-nav, .sidebar-backdrop { display: none; }

@media (max-width: 760px) {
  .app-shell { flex-direction: column; }
  .page-content { padding: 16px 14px calc(84px + env(safe-area-inset-bottom)); }
  .field-row { flex-direction: column; }

  /* Sidebar: soldan açılan çekmece ("Menü" butonu) */
  .sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; height: auto; width: 270px; max-width: 82vw;
    z-index: 60; transform: translateX(-100%); transition: transform .22s ease;
    padding-top: calc(20px + env(safe-area-inset-top)); overflow-y: auto;
  }
  .sidebar.open { transform: translateX(0); box-shadow: 8px 0 30px rgba(0,0,0,.3); }
  .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 55;
                      opacity: 0; pointer-events: none; transition: opacity .22s ease; }
  .sidebar-backdrop.open { opacity: 1; pointer-events: auto; }

  .mobile-topbar {
    display: flex; align-items: center; position: sticky; top: 0; z-index: 40;
    background: #14161c; color: #fff; padding: calc(12px + env(safe-area-inset-top)) 16px 12px;
  }
  .mobile-topbar .brand { font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 8px; }
  .mobile-topbar .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--primary); display: inline-block; }

  .bottom-nav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: var(--surface); border-top: 1px solid var(--border);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .bottom-nav a, .bottom-nav button {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
    background: none; border: none; padding: 4px 0; color: var(--text-muted);
    font-size: 11px; font-family: inherit; text-decoration: none; cursor: pointer;
  }
  .bottom-nav .bn-icon { font-size: 20px; line-height: 1.2; }
  .bottom-nav a.active { color: var(--primary); font-weight: 650; }
  .bottom-nav a.accent .bn-icon {
    background: var(--primary); color: #fff; border-radius: 50%; width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center; font-size: 18px; margin-top: -14px;
    box-shadow: 0 4px 12px rgba(47,111,237,.4);
  }

  .toast { left: 14px; right: 14px; max-width: none; bottom: calc(80px + env(safe-area-inset-bottom)); }
  .modal-backdrop { padding: 24px 10px; }

  /* Yayın Kuyruğu: tablo yerine kart listesi */
  .queue-table thead { display: none; }
  .queue-table, .queue-table tbody, .queue-table tr, .queue-table td { display: block; width: 100%; }
  .queue-table tr { border-bottom: 1px solid var(--border); padding: 12px 2px; }
  .queue-table td { border: none; padding: 2px 0; }
  .queue-table td[data-label]::before {
    content: attr(data-label); display: inline-block; min-width: 78px;
    color: var(--text-muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .03em;
  }
  .queue-table td.q-content { font-weight: 600; font-size: 14.5px; }
  .queue-table td.q-actions:empty { display: none; }
  .queue-table td.q-actions button { margin-top: 8px; width: 100%; padding: 10px; }
  .filters-row select { width: 100%; }
}

/* ---------- Hızlı paylaşım (müşteri seçimi) ---------- */
.qp-list { display: flex; flex-direction: column; gap: 8px; }
.qp-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; color: var(--text); text-decoration: none;
}
.qp-item:hover { border-color: var(--primary); text-decoration: none; }
.qp-item .qp-name { font-weight: 650; }
.qp-item .qp-sub { color: var(--text-muted); font-size: 12.5px; }
.qp-item .qp-go { color: var(--primary); font-size: 18px; }

@media (max-width: 760px) {
  .account-grid { grid-template-columns: 1fr; }
  .company-actions { width: 100%; }
  .company-actions .primary { flex: 1; }
  .confirm-target-actions { flex-direction: column-reverse; }
  .confirm-target-actions button { width: 100%; padding: 12px; }
  .filters-row { flex-wrap: wrap; }
  .filter-select { width: 100%; }
  .account-heading .avatar { width: 32px !important; height: 32px !important; }
}

@media (max-width: 760px) {
  /* 2026-10-06: kaydırma yerine alt alta sarılır (filtreler ekran dışında kalıyordu). */
  .w-toolbar { flex-wrap: wrap; overflow: visible; padding-bottom: 0; }
  .w-toolbar > * { flex: 0 1 auto; max-width: 100%; }
  .w-seg { max-width: 100%; flex-wrap: wrap; }
  .w-seg button { flex: 1 1 auto; padding: 8px 10px; }
  .w-custom { flex: 1 1 100% !important; width: 100%; gap: 6px; }
  .w-custom input { flex: 1 1 0; min-width: 0; width: auto; }
  .w-group-head { flex-wrap: wrap; gap: 4px 10px; }
  .w-group-counts { width: 100%; order: 3; font-size: 13px; }
  .w-row { grid-template-columns: 56px minmax(0, 1fr); }
  .w-status, .w-actions { grid-column: 2; justify-content: flex-start; }
  .w-actions button { padding: 8px 12px; }
  .cal-count { font-size: 9.5px; padding: 1px 4px; }
  .cal-total { float: none; display: inline-block; margin-left: 2px; }
  .responsible-form .field { min-width: 0; width: 100%; }
  .team-table thead { display: none; }
  .team-table, .team-table tbody, .team-table tr, .team-table td { display: block; width: 100%; white-space: normal; }
  .team-table tr { border-bottom: 1px solid var(--border); padding: 8px 0; }
  .team-table td { border: none; padding: 2px 0; }
  .team-table td[data-label]:not(:first-child)::before { content: attr(data-label) ": "; color: var(--text-muted); font-size: 12px; }
}

/* ---------- Meta Hesap Havuzu (2026-10-02) ---------- */
.pool-note { margin: -6px 0 14px; }
.pool-toolbar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.pool-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.pool-toolbar input[type="search"] { flex: 1 1 220px; max-width: 340px; }
.pool-bulk { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 10px; margin-bottom: 10px; background: #e8effe; border-radius: var(--radius); }
.pool-table { width: 100%; border-collapse: collapse; }
.pool-table th, .pool-table td { padding: 8px 6px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.pool-table tr.selected td { background: #f3f7ff; }
.pool-acc { display: flex; gap: 10px; align-items: center; min-width: 0; }
.pool-acc .hint { word-break: break-all; }
.pool-actions { white-space: nowrap; text-align: right; }
.pool-actions button { margin-left: 4px; }
a.badge { text-decoration: none; }
.pool-client-list { max-height: 300px; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius); margin: 10px 0; }
.pool-client { display: block; width: 100%; text-align: left; border: none; border-bottom: 1px solid var(--border); border-radius: 0; background: none; padding: 9px 12px; }
.pool-client:last-child { border-bottom: none; }
.pool-client:hover { background: var(--neutral-bg); }
.pool-newclient #pa-new { gap: 8px; margin-top: 8px; }
.pool-newclient #pa-new input { flex: 1; }
.pool-pick-list { max-height: 320px; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius); margin: 8px 0 12px; }
.pool-pick { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-bottom: 1px solid var(--border); cursor: pointer; }
.pool-pick:last-child { border-bottom: none; }
.pool-pick:hover { background: var(--neutral-bg); }
.pool-pick.taken { opacity: .6; }
@media (max-width: 700px) {
  .pool-table thead { display: none; }
  .pool-table tr { display: grid; grid-template-columns: 28px 1fr; gap: 4px 8px; padding: 10px 0; border-bottom: 1px solid var(--border); }
  .pool-table td { border: none; padding: 2px 0; grid-column: 2; }
  .pool-table td:first-child { grid-column: 1; grid-row: 1 / span 4; }
  .pool-actions { text-align: left; white-space: normal; }
  .pool-actions button { margin: 4px 4px 0 0; }
  .pool-toolbar input[type="search"] { max-width: none; }
}

/* ---------- Cari bilgileri (2026-10-02) ---------- */
.text-warning { color: var(--warning); }
@media (max-width: 560px) { #add-client-form .field-row, #info-form .field-row { flex-direction: column; gap: 0; } }
.info-grid { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; }
.info-grid dt { color: var(--text-muted); }
.info-grid dd { margin: 0; white-space: pre-line; word-break: break-word; }
@media (max-width: 560px) { .info-grid { grid-template-columns: 1fr; gap: 2px; } .info-grid dd { margin-bottom: 8px; } }

/* ---------- Aşama A: çalışanlar / giriş kartı (2026-10-03) ---------- */
.perm-list { display: flex; flex-direction: column; gap: 6px; }
.perm-item { display: flex; gap: 8px; align-items: flex-start; font-weight: normal; }
.perm-item input { margin-top: 3px; }
.users-actions { white-space: nowrap; text-align: right; }
.users-actions button { margin: 2px 0 2px 4px; }
.login-card { border: 1px dashed var(--border); border-radius: var(--radius); padding: 16px; background: var(--surface); }
.login-card-brand { font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.login-card-pw { font-size: 18px; letter-spacing: 1px; font-weight: 700; }
.client-tabs { margin-bottom: 14px; }
@media (max-width: 700px) {
  .users-table thead { display: none; }
  .users-table tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--border); }
  .users-table td { display: block; border: none; padding: 2px 0; }
  .users-table td[data-label]::before { content: attr(data-label) ": "; color: var(--text-muted); }
  .users-actions { text-align: left; white-space: normal; }
}

/* Toplu giriş kartı (2026-10-03) */
.login-cards-modal { max-width: 820px; }
.login-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.bulk-card-list { max-height: 50vh; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 10px; }

/* =====================================================================
   2026-10-03 — Cari/hesap sayfası düzeni + mobil yatay taşma düzeltmeleri
   ===================================================================== */

/* Hiçbir sayfa yatay taşmasın: taşan iç öğe sayfayı genişletmez (sticky üst
   şerit bozulmasın diye overflow:hidden değil clip). Uzun link/kod kırılır. */
html, body { max-width: 100%; }
.main-area { max-width: 100%; overflow-x: clip; }
.page-content { min-width: 0; }
.page-content img, .page-content video { max-width: 100%; }
.page-content p, .hint, .alert-danger, dd, .mono, h1 { overflow-wrap: anywhere; }

/* Sekme satırları: sığmazsa kendi içinde yatay kayar, kaydırma çubuğu gizli. */
.tabs { position: relative; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: 0 0 auto; white-space: nowrap; }
.lbl-short { display: none; }

/* ---------- Cari bilgileri kartı: sıkı ızgara ---------- */
.info-card { padding: 12px 16px; }
.info-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.info-toggle {
  flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 10px;
  border: none; background: none; padding: 0; text-align: left; cursor: default; color: var(--text); font-weight: normal;
}
.info-toggle:hover { background: none; }
.info-title { font-size: 14px; font-weight: 650; white-space: nowrap; }
.info-chev { display: none; transition: transform .15s; }
.info-summary { display: none; }
.info-cells { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 18px; margin-top: 8px; }
.info-cell { min-width: 0; }
.info-cell.wide { grid-column: 1 / -1; }
.info-label { font-size: 11px; color: var(--text-muted); line-height: 1.3; }
.info-value { font-size: 13px; line-height: 1.4; white-space: pre-line; overflow-wrap: anywhere; }
.info-empty { grid-column: 1 / -1; font-size: 13px; color: var(--text-muted); }
.info-card #info-form { margin-top: 10px; }
@media (max-width: 1100px) { .info-cells { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Sorumlu / yedek: tek satır ---------- */
.responsible-card { padding: 10px 14px; }
.responsible-form { margin-top: 0; gap: 8px 14px; align-items: center; }
.responsible-form .field { display: flex; align-items: center; gap: 6px; min-width: 0; flex: 0 1 260px; }
.responsible-form .field label { margin: 0; white-space: nowrap; }
.responsible-form select { padding-top: 6px; padding-bottom: 6px; }

/* ---------- Başlıklar ---------- */
.company-head-title, .client-head-title { min-width: 0; flex: 1; }

/* ---------- Instagram gönderileri: iskelet + oynat ---------- */
.ig-media-thumb { position: relative; height: 160px; background: var(--neutral-bg); overflow: hidden; }
.ig-media-thumb img, .ig-media-thumb video { width: 100%; height: 160px; object-fit: cover; display: block; transition: opacity .2s; }
.ig-media-thumb.loading img { opacity: 0; }
.ig-media-thumb.loading::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent);
  animation: ig-shimmer 1.2s ease-in-out infinite;
}
@keyframes ig-shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .ig-media-thumb.loading::after { animation: none; } }
.ig-media-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%; border: none; padding: 0;
  background: rgba(0, 0, 0, .55); color: #fff; font-size: 17px;
}
.ig-media-play:hover { background: rgba(0, 0, 0, .7); }
.ig-media-fallback {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 10px; text-align: center; font-size: 12px; color: var(--text-muted);
}

/* Toplu giriş kartları dar ekranda taşmasın. */
.login-cards { grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }

/* ---------- Telefon (≤760px) ---------- */
@media (max-width: 760px) {
  .card-row { flex-wrap: wrap; }
  .card-row > * { min-width: 0; }

  .lbl-long { display: none; }
  .lbl-short { display: inline; }
  .tabs button { margin-right: 12px; padding: 10px 4px; }

  /* Cari başlığı: düğmeler adın altında, tek satır, küçük; "Cariyi sil" en sağda. */
  .company-head { flex-direction: column; align-items: stretch; gap: 8px; }
  .company-head-actions { flex-wrap: nowrap; gap: 6px; width: 100%; }
  .company-head-actions > * { flex: 0 0 auto; padding: 5px 10px; font-size: 12.5px; }
  .company-head-actions .primary { flex: 0 0 auto; }
  .company-head-actions #delete-company-btn { margin-left: auto; }

  /* Hesap başlığı: "Hesabı pasifleştir" küçük, sağ altta. */
  .client-head { flex-direction: column; align-items: stretch; gap: 6px; }
  .client-head #deactivate-account-btn { align-self: flex-end; padding: 4px 10px; font-size: 12px; }

  /* Cari bilgileri: 2 sütun; varsayılan kapalı, başlığa dokununca açılır. */
  .info-cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .info-toggle { cursor: pointer; flex-direction: column; gap: 0; }
  .info-chev { display: inline-block; }
  .info-card:not(.collapsed) .info-chev { transform: rotate(90deg); }
  .info-card.collapsed .info-cells { display: none; }
  .info-card.collapsed .info-summary {
    display: block; max-width: 100%; font-size: 12px; color: var(--text-muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }

  .responsible-form .field { flex: 1 1 100%; }
  .responsible-form select { flex: 1; min-width: 0; }

  /* Ekip raporu sorumluluk satırları: tek sütun. */
  .team-resp-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

/* =====================================================================
   Giriş kartı YAZDIRMA (2026-10-03 düzeltme). Kartlar modalın içinden değil,
   body'nin doğrudan çocuğu olan #print-sheet'ten basılır (normal akış, sabit
   konum / kaydırma yok). Baskıda sadece o görünür; kartlar 2 sütun, her A4'te
   4 satır = 8 kart, sayfalara doğal dağılır (10 kart = 2 sayfa).
   ===================================================================== */
#print-sheet { display: none; }
@media print {
  @page { size: A4; margin: 12mm; }
  body.print-login-card { background: #fff !important; margin: 0 !important; padding: 0 !important; }
  body.print-login-card { position: static !important; top: auto !important; overflow: visible !important; } /* pencere kilidi (2026-10-05) yazdırmayı kaydırmasın */
  body.print-login-card > *:not(#print-sheet) { display: none !important; }
  body.print-login-card #print-sheet {
    display: flex !important; flex-wrap: wrap; align-content: flex-start; gap: 4mm;
    position: static; width: auto; height: auto; overflow: visible; transform: none;
  }
  .print-card {
    box-sizing: border-box; width: calc(50% - 2mm); height: 63mm; padding: 5mm 6mm;
    border: 0.3mm dashed #666; /* kesme çizgisi; kartlar arası 4mm kesme payı */
    break-inside: avoid; page-break-inside: avoid;
    font-family: Arial, Helvetica, sans-serif; color: #000; font-size: 10pt; line-height: 1.35;
  }
  .print-card .pc-brand { font-weight: 700; font-size: 11pt; margin-bottom: 3mm; }
  .print-card .pc-row { display: flex; gap: 3mm; margin-bottom: 1.6mm; }
  .print-card .pc-label { width: 24mm; flex: 0 0 24mm; color: #444; }
  .print-card .pc-value { flex: 1; min-width: 0; overflow-wrap: anywhere; }
  .print-card .pc-mono { font-family: "DejaVu Sans Mono", Consolas, Menlo, "Courier New", monospace; }
  .print-card .pc-pw { font-size: 14pt; font-weight: 700; letter-spacing: 1.2pt; }
  .print-card .pc-note { margin-top: 3mm; font-size: 8pt; color: #444; }
}
.login-card { position: relative; }
.login-card-pdf { position: absolute; top: 10px; right: 10px; }

/* ---------- Toparlama (geçici, 2026-10-03) ---------- */
.design-badge { background: #efe9ff; color: #5b3fc4; }
.w-seg button.active { background: var(--primary); color: #fff; }
.tp-intro { max-width: 760px; }
.tp-toolbar { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 10px 0 6px; }
.tp-toolbar input[type="search"] { flex: 1 1 240px; max-width: 380px; }
.tp-filters { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; }
.tp-filters button { white-space: nowrap; }
.tp-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.tp-card, .tp-free-row { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; min-width: 0; }
.tp-card.conflict, .tp-free-row.conflict { border-color: #f3c6c6; background: linear-gradient(90deg, var(--danger-bg), var(--surface) 40%); }
.tp-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tp-name { font-weight: 650; min-width: 0; overflow-wrap: anywhere; }
.tp-head button { flex: 0 0 auto; }
.tp-sub { font-size: 12px; margin-top: 2px; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.tp-sub:empty { display: none; }
.tp-accs { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 6px; font-size: 12.5px; }
.tp-acc { display: inline-flex; align-items: center; gap: 5px; min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.tp-flags { display: flex; flex-wrap: wrap; gap: 2px 16px; margin-top: 6px; }
.tp-flag { display: flex; align-items: flex-start; gap: 6px; font-size: 12.5px; font-weight: normal; color: var(--text); margin: 0; cursor: pointer; }
.tp-flag input { width: auto; margin-top: 2px; }
.tp-notes { margin-top: 6px; font-size: 12.5px; }
.tp-note { padding: 3px 0; border-top: 1px dashed var(--border); overflow-wrap: anywhere; }
.tp-note-meta { color: var(--text-muted); font-size: 11.5px; }
.tp-note-add { display: flex; gap: 6px; margin-top: 6px; }
.tp-note-add input { flex: 1; min-width: 0; padding-top: 6px; padding-bottom: 6px; font-size: 13px; }
.tp-link { border: none; background: none; padding: 0 2px; color: var(--primary); font-size: 12px; font-weight: 600; text-decoration: underline; }
.tp-link:hover { background: none; }
.tp-section-title { margin-top: 26px; }
.tp-free-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tp-free-main { display: flex; gap: 10px; align-items: flex-start; min-width: 0; flex: 1; }
.tp-free-text { min-width: 0; }
.tp-free-text .hint { overflow-wrap: anywhere; }
.tp-camp-icon { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; flex: 0 0 32px; }
.tp-prop { font-size: 12.5px; margin-top: 2px; }
.tp-prop.conflict { color: var(--danger); }
.tp-free-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: 0 0 auto; }
.pool-client.chosen { background: #e8effe; font-weight: 650; }
.tp-owner-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.tp-osec h2 { font-size: 15px; }
.tp-orow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--border); }
.tp-orow:last-child { border-bottom: none; }
.tp-orow-text { min-width: 0; overflow-wrap: anywhere; font-size: 13px; }
.tp-orow-actions { display: flex; gap: 6px; flex: 0 0 auto; }
.tp-ogroup { border: 1px solid #f3c6c6; border-radius: 8px; padding: 6px 10px; margin-bottom: 8px; }
.tp-ogroup-title { font-size: 13px; margin-bottom: 2px; }
.tp-chip { display: inline-block; font-size: 12px; background: var(--neutral-bg); border-radius: 6px; padding: 2px 8px; margin: 2px 4px 2px 0; }
.tp-table td, .tp-table th { padding: 5px 8px; border-bottom: 1px solid var(--border); text-align: left; font-size: 13px; }
.notes-card { padding: 12px 16px; }
.notes-title { font-size: 14px; margin-bottom: 6px; }
.note-item { padding: 5px 0; border-top: 1px dashed var(--border); }
.note-item:first-child { border-top: none; }
.note-meta { font-size: 11px; color: var(--text-muted); }
.note-text { font-size: 13px; white-space: pre-line; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .tp-toolbar input[type="search"] { max-width: none; flex-basis: 100%; }
  .tp-free-row { flex-direction: column; align-items: stretch; }
  .tp-free-actions { flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px; }
  .tp-orow { flex-direction: column; align-items: stretch; gap: 6px; }
  .tp-orow-actions button { flex: 1; }
}

/* ---------- Gelen yeni cari (2026-10-03) ---------- */
.sidebar nav a.nav-accent { background: #e8effe; color: var(--primary); font-weight: 700; }
.sidebar nav a.nav-accent.active, .sidebar nav a.nav-accent:hover { background: var(--primary); color: #fff; }
.nav-badge { display: inline-block; min-width: 18px; padding: 0 6px; margin-left: 4px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.nav-badge[hidden] { display: none; }
.lead-form-card { max-width: 560px; }
/* 16px: iOS Safari odaklanınca yakınlaştırmasın. */
#lead-form input, #lead-form textarea, #lead-form select { font-size: 16px; padding: 12px; }
#lead-form label { font-size: 13px; }
.lead-stepper { display: flex; align-items: stretch; gap: 8px; max-width: 220px; }
.lead-stepper button { width: 52px; font-size: 22px; padding: 0; line-height: 1; }
.lead-stepper input { text-align: center; flex: 1; min-width: 0; }
.lead-segs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.lead-seg button { font-size: 14px; padding: 10px 14px; }
.lead-submit { width: 100%; padding: 14px; font-size: 16px; margin-top: 4px; }
.lead-cancel { width: 100%; margin-top: 8px; border: none; background: none; color: var(--text-muted); }
.lead-done { text-align: center; padding: 18px 0 6px; }
.lead-done-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--success-bg); color: var(--success); font-size: 30px; line-height: 56px; margin: 0 auto 10px; }
.lead-done-text { font-size: 17px; font-weight: 650; margin-bottom: 14px; }
.lead-filters { margin: 4px 0 10px; max-width: 100%; overflow-x: auto; flex-wrap: nowrap; }
.lead-filters button { white-space: nowrap; }
.lead-list { display: flex; flex-direction: column; gap: 10px; }
.lead-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; min-width: 0; }
.lead-card.lead-highlight { outline: 2px solid var(--primary); }
.lead-card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.lead-name { font-weight: 700; font-size: 15px; min-width: 0; overflow-wrap: anywhere; }
.lead-facts { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; margin: 6px 0; }
.lead-note { font-size: 13px; white-space: pre-line; overflow-wrap: anywhere; background: var(--neutral-bg); border-radius: 8px; padding: 8px 10px; margin-bottom: 6px; }
.lead-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
@media (max-width: 760px) {
  .lead-form-card { max-width: none; }
  .lead-seg { flex: 1 1 100%; }
  .lead-seg button { flex: 1; }
  .lead-actions > * { flex: 1 1 auto; }
}

/* =====================================================================
   Tanıtım turları (2026-10-04)
   ===================================================================== */
#tour-root { position: fixed; inset: 0; z-index: 9000; pointer-events: none; }
.tour-blocker { position: fixed; inset: 0; pointer-events: auto; background: rgba(15, 18, 25, .12); z-index: 9001; }
.tour-stage { position: fixed; left: 50%; top: 42%; transform: translate(-50%, -50%); width: min(420px, calc(100vw - 24px)); z-index: 9002; pointer-events: none; }
.tour-demo-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px; box-shadow: 0 18px 50px rgba(0,0,0,.25); }
.tour-demo-card input:disabled, .tour-demo-card button:disabled { opacity: 1; cursor: default; color: var(--text); }
.tour-demo-card .primary:disabled { color: #fff; }
.tour-demo-label { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.tour-demo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.tour-demo-mini { border: 1px solid var(--border); border-radius: 8px; padding: 10px 6px; font-size: 12px; text-align: center; }
.tour-modal { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 9003; pointer-events: none; padding: 16px; }
.tour-modal[hidden] { display: none; }
.tour-modal-box { pointer-events: auto; background: var(--surface); border-radius: 16px; padding: 26px 24px; max-width: 440px; width: 100%; text-align: center; box-shadow: 0 24px 70px rgba(0,0,0,.35); animation: tour-pop .25s ease-out; }
.tour-modal-title { font-size: 20px; margin-bottom: 8px; }
.tour-modal-text { color: var(--text-muted); font-size: 15px; line-height: 1.55; margin: 0 0 18px; }
.tour-modal-next { padding: 11px 26px; font-size: 15px; }
@keyframes tour-pop { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
.tour-balloon { position: fixed; z-index: 9004; pointer-events: none; background: #14161c; color: #fff; border-radius: 12px; padding: 12px 14px; box-shadow: 0 14px 40px rgba(0,0,0,.35); animation: tour-pop .22s ease-out; }
.tour-balloon[hidden] { display: none; }
.tour-balloon-title { font-weight: 700; font-size: 14px; margin-bottom: 3px; }
.tour-balloon-text { font-size: 13.5px; line-height: 1.5; color: #e4e6eb; }
.tour-cursor { position: fixed; left: 0; top: 0; z-index: 9005; pointer-events: none; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); transform-origin: 2px 2px; }
.tour-cursor.press path { fill: #dbe6ff; }
.tour-cursor.press { scale: .85; }
.tour-ripple { position: fixed; z-index: 9005; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; pointer-events: none; opacity: 0; }
.tour-ripple.go { animation: tour-ripple .6s ease-out; }
@keyframes tour-ripple { 0% { opacity: .9; box-shadow: 0 0 0 0 rgba(47,111,237,.6); background: rgba(47,111,237,.5); } 100% { opacity: 0; box-shadow: 0 0 0 26px rgba(47,111,237,0); background: rgba(47,111,237,0); } }
.tour-glow { outline: 3px solid var(--primary) !important; outline-offset: 3px; border-radius: 8px; animation: tour-glow 1.4s ease-in-out infinite; }
@keyframes tour-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(47,111,237,.45); } 50% { box-shadow: 0 0 0 10px rgba(47,111,237,0); } }
.tour-controls {
  position: fixed; right: 16px; bottom: 16px; z-index: 9006; pointer-events: auto;
  display: flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 6px 8px; box-shadow: 0 10px 30px rgba(0,0,0,.2);
}
.tour-controls button { padding: 7px 11px; font-size: 13px; }
.tour-controls .tour-auto.on { background: #e8effe; color: var(--primary); border-color: var(--primary); }
.tour-count { font-size: 12.5px; color: var(--text-muted); padding: 0 4px; min-width: 42px; text-align: center; }
@media (prefers-reduced-motion: reduce) { .tour-glow, .tour-modal-box, .tour-balloon { animation: none; } }
@media (max-width: 760px) {
  .tour-controls { left: 8px; right: 8px; bottom: calc(70px + env(safe-area-inset-bottom)); justify-content: space-between; }
  .tour-controls button { padding: 9px 10px; }
  .tour-stage { top: 38%; }
}

/* Telefon çizimi (Telefona ekle turu) */
.tour-phone { width: 230px; height: 400px; margin: 0 auto; border-radius: 34px; background: #111; padding: 12px; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.tour-phone-notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 80px; height: 18px; border-radius: 10px; background: #000; z-index: 2; }
.tour-phone-screen { position: relative; width: 100%; height: 100%; border-radius: 24px; background: #f4f5f7; overflow: hidden; font-size: 12px; color: #1a1d23; }
.tp-safari-page { padding: 40px 14px; }
.tp-fake-title { font-weight: 700; font-size: 16px; margin-bottom: 12px; }
.tp-fake-line { height: 10px; border-radius: 5px; background: #dfe2e8; margin-bottom: 8px; }
.tp-fake-line.short { width: 60%; }
.tp-safari-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 52px; background: #fafafa; border-top: 1px solid #ddd; display: flex; justify-content: space-around; align-items: center; font-size: 18px; color: #2f6fed; }
.tp-share { font-size: 20px; padding: 4px 8px; }
.tp-sheet { position: absolute; left: 8px; right: 8px; bottom: 8px; background: #fff; border-radius: 14px; overflow: hidden; }
.tp-sheet-row { padding: 11px 12px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; }
.tp-sheet-row:last-child { border-bottom: none; }
.tp-dialog-top { display: flex; justify-content: space-between; align-items: center; padding: 34px 12px 10px; background: #fff; border-bottom: 1px solid #eee; }
.tp-add { color: #2f6fed; font-weight: 700; padding: 2px 6px; }
.tp-app-preview { display: flex; gap: 10px; align-items: center; padding: 14px 12px; background: #fff; margin-top: 10px; }
.tp-app-icon { width: 46px; height: 46px; border-radius: 12px; background: #14161c; color: #fff; font-weight: 800; font-size: 20px; display: flex; align-items: center; justify-content: center; }
.tp-chrome-bar { display: flex; align-items: center; gap: 8px; padding: 34px 10px 8px; background: #fff; border-bottom: 1px solid #eee; }
.tp-url { flex: 1; background: #f1f3f4; border-radius: 14px; padding: 5px 10px; font-size: 11px; }
.tp-dots { font-size: 20px; padding: 0 6px; }
.tp-chrome-menu { position: absolute; right: 8px; top: 64px; width: 175px; background: #fff; border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.tp-home { padding: 60px 0 0 20px; }
.tp-home-label { font-size: 11px; color: #1a1d23; margin-top: 4px; width: 46px; text-align: center; }

/* Tanıtım sayfası */
.tour-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.tour-card { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.tour-card.off { opacity: .6; }
.tour-card-icon { font-size: 30px; flex: 0 0 auto; }
.tour-card-body { flex: 1; min-width: 0; }
.tour-card-title { font-weight: 700; }
.tour-card-actions { display: flex; flex-direction: column; gap: 6px; flex: 0 0 auto; }
.tour-link { display: flex; gap: 6px; margin-top: 6px; }
.tour-link input { flex: 1; min-width: 0; font-size: 12px; padding: 5px 8px; }
@media (max-width: 760px) {
  .tour-card { flex-wrap: wrap; }
  .tour-card-actions { flex-direction: row; width: 100%; }
  .tour-card-actions button { flex: 1; }
}

/* ---------- Kayıtlı hedefler + ilgi alanları (2026-10-04) ---------- */
.interest-suggestions { border: 1px solid var(--border); border-radius: 8px; margin-top: 4px; max-height: 220px; overflow-y: auto; background: var(--surface); }
.interest-suggestion { display: block; width: 100%; text-align: left; border: none; border-bottom: 1px solid var(--border); border-radius: 0; background: none; padding: 8px 10px; font-weight: normal; }
.interest-suggestion:last-child { border-bottom: none; }
.interest-suggestion:hover { background: var(--neutral-bg); }
.interest-suggestion .hint { display: block; font-size: 11px; }
.interest-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.interest-chip { display: inline-flex; align-items: center; gap: 4px; background: #e8effe; color: var(--primary); border-radius: 14px; padding: 3px 4px 3px 10px; font-size: 12.5px; max-width: 100%; }
.interest-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.interest-chip button { border: none; background: none; padding: 0 6px; color: var(--primary); font-size: 14px; line-height: 1; }
.st-list { display: flex; flex-direction: column; }
.st-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.st-row:last-child { border-bottom: none; }
.st-main { min-width: 0; flex: 1; }
.st-name { font-weight: 650; font-size: 13.5px; overflow-wrap: anywhere; }
.st-sum { font-size: 12px; color: var(--text-muted); overflow-wrap: anywhere; }
.st-warn { font-size: 11.5px; color: var(--warning); }
.st-actions { display: flex; gap: 4px; flex: 0 0 auto; }
.st-import-row { display: flex; gap: 8px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--border); }
.st-import-row input[type="text"] { font-size: 13px; padding: 5px 8px; margin-bottom: 3px; }
.st-import-row input[type="checkbox"] { width: auto; margin-top: 8px; }
@media (max-width: 760px) { .st-row { flex-direction: column; } .st-actions { width: 100%; } }

/* ---------- Telefon: yatay taşma + açılır pencereler (2026-10-05) ---------- */
body { overflow-x: hidden; }
#page-root, .main, .card { min-width: 0; max-width: 100%; }
img, video, iframe { max-width: 100%; }
.mono { overflow-wrap: anywhere; word-break: break-all; }
/* Hesap kartları: dar ekranda 260px sütun sayfayı birkaç piksel taşırıyordu. */
.account-grid { grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }
.account-card, .account-card-top { min-width: 0; max-width: 100%; }
.account-card-title { flex: 1; min-width: 0; }
.account-card-title .hint, .account-card-meta .hint { overflow-wrap: anywhere; }
/* Pencereler: sadece dikey kayar, kendi içinde kayar (arka sayfaya geçmez). */
.modal-backdrop, .modal-overlay {
  overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
}
.modal, .modal-overlay > .card { max-width: 100%; min-width: 0; overflow-x: hidden; box-sizing: border-box; }
.modal-overlay > .card { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.modal-sheet { width: 92%; max-width: 440px; max-height: 88vh; max-height: 88dvh; overflow-y: auto; }
.modal .field, .modal-overlay .field, .modal-overlay .card-row { min-width: 0; max-width: 100%; }
.modal :is(input, select, textarea, table, pre), .modal-overlay :is(input, select, textarea, table, pre) { max-width: 100%; }
.modal :is(p, .hint, label, a, span), .modal-overlay :is(p, .hint, label, a, span) { overflow-wrap: anywhere; }
#boost-modal-post-info { word-break: break-all; }
.boost-radius-row { display: flex; gap: 10px; align-items: flex-start; }
.boost-radius-row .field { flex: 1; min-width: 0; }
.boost-radius-row button { margin-top: 23px; flex: 0 0 auto; }
.boost-saved-empty { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--text-muted); }
body.modal-open { overflow: hidden; }
@media (max-width: 760px) {
  /* iOS, 16px'ten küçük alana dokununca sayfayı yakınlaştırıyor. */
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea { font-size: 16px !important; }
  .modal-sheet { width: calc(100% - 20px); }
  .boost-radius-row { flex-direction: column; gap: 0; }
  .boost-radius-row .field { width: 100%; }
  .boost-radius-row button { margin: 0 0 12px; width: 100%; padding: 10px; }
}
.grid { grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); }
.login-cards { grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }
.table-scroll { max-width: 100%; -webkit-overflow-scrolling: touch; }
.tp-table { display: block; max-width: 100%; overflow-x: auto; }
.confirm-danger { margin-top: 12px; border-width: 2px; border-color: var(--danger); font-size: 13.5px; }

/* ---------- 2026-10-05: karusel sırası, Reels kapağı, gönderiden hikaye ---------- */
.carousel-order { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; text-align: left; }
.carousel-item { display: flex; align-items: center; gap: 8px; padding: 6px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); cursor: grab; min-width: 0; }
.carousel-item.dragging { opacity: .5; }
.carousel-item img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; }
.carousel-no { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.carousel-name { flex: 1; min-width: 0; font-size: 12px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.carousel-move { display: flex; gap: 4px; flex: 0 0 auto; }
.carousel-move button { min-width: 34px; padding: 6px 0; }
.seg-radio { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 6px; }
.seg-radio .inline-check { font-weight: 500; color: var(--text); }
#p-cover-video { width: 100%; max-height: 220px; border-radius: 8px; background: #000; display: block; margin-bottom: 6px; }
#p-cover-range { width: 100%; padding: 0; }
.story-from-post-chip { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 6px; border: 1px solid var(--border); border-radius: 10px; font-size: 13px; flex-wrap: wrap; }
.story-from-post-chip img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; }
.story-pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(110px, 30%), 1fr)); gap: 6px; max-height: 60vh; overflow-y: auto; }
.story-pick { position: relative; padding: 0; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; aspect-ratio: 1; background: var(--neutral-bg); }
.story-pick img { width: 100%; height: 100%; object-fit: cover; display: block; }
.story-pick.loading { outline: 3px solid var(--primary); opacity: .6; }
.story-pick-tag { position: absolute; top: 4px; right: 4px; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; border-radius: 4px; padding: 1px 5px; }
.campaign-reason { max-width: 260px; overflow-wrap: anywhere; }
.pin-note { margin-top: -4px; }
.acc-resp { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; min-width: 0; }
.acc-resp-select { width: auto; max-width: 100%; flex: 1 1 180px; padding: 6px 8px; font-size: 13px; }
/* 2026-10-06: Instagram girişi */
.iglogin-steps { margin: 6px 0 10px; padding-left: 20px; font-size: 14px; line-height: 1.6; }
.iglogin-tester-note { font-size: 13px; }
.iglogin-actions { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.iglogin-badge { background: #fdf0e3; color: #b25b00; }

/* ---------- 2026-10-06: telefon görünümü düzeltmeleri (390px) ---------- */
/* 1) Kampanyalar: masaüstünde tablo, 640px altında kart */
.campaigns-table .c-actions { white-space: nowrap; }
.campaigns-table .c-actions button + button { margin-left: 6px; }
@media (max-width: 640px) {
  .campaigns-table thead { display: none; }
  .campaigns-table, .campaigns-table tbody, .campaigns-table tr, .campaigns-table td { display: block; width: 100%; }
  .campaigns-table tr.campaign-row { border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; background: var(--surface); }
  .campaigns-table td { border: none; padding: 3px 0; min-width: 0; overflow-wrap: anywhere; }
  .campaigns-table td.c-name { font-weight: 700; font-size: 15px; padding-bottom: 6px; }
  .campaigns-table td[data-label]:not(.c-name):not(.c-actions)::before { content: attr(data-label) ": "; color: var(--text-muted); font-size: 12px; }
  .campaigns-table td.c-actions { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 8px; white-space: normal; }
  .campaigns-table .c-actions button + button { margin-left: 0; }
  .campaigns-table .c-actions button { flex: 1 1 auto; padding: 9px 10px; }
  .campaign-reason { max-width: none; }
}
.failure-detail { display: inline; font-size: 11.5px; color: var(--text-muted); }
.failure-detail summary { display: inline; cursor: pointer; text-decoration: underline; }
.failure-detail[open] { display: block; margin-top: 2px; overflow-wrap: anywhere; }
/* 4) Takvim: telefonda sayı + renkli noktalar */
.cal-dots { display: none; }
@media (max-width: 640px) {
  .calendar-cell .cal-count, .calendar-cell .cal-chip, .calendar-cell .cal-more, .calendar-cell .cal-total { display: none !important; }
  .cal-dots { display: flex; flex-wrap: wrap; gap: 3px; align-items: center; margin-top: 2px; }
  .cal-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: var(--text-muted); }
  .cal-dot.ok { background: var(--success); }
  .cal-dot.bad { background: var(--danger); }
  .cal-dot.plan { background: var(--primary); }
  .cal-dots-more { font-size: 10px; color: var(--text-muted); line-height: 1; }
  .calendar-cell { min-height: 48px; }
}
/* 5) Kuyruk kartı: seri etiketi, hesap ve açıklama taşmasın */
.series-badge { white-space: normal; max-width: 100%; overflow-wrap: anywhere; vertical-align: middle; }
.w-acc .acc-inline { max-width: 100%; min-width: 0; }
.w-title { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .w-title .series-badge { display: block; width: fit-content; margin: 3px 0 0; }
  .w-acc { white-space: normal; overflow-wrap: anywhere; }
  .w-acc .acc-inline { display: inline; }
  .w-caption { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
}
/* 6) Arama kutuları telefonda tam genişlik */
@media (max-width: 760px) { .client-search-row { max-width: none; } .client-search-row input { width: 100%; } }
/* 7) Kaydırılabilir sekme satırlarında kenar solması */
.tabs.fade-r, .lead-filters.fade-r, .tp-filters.fade-r { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); }
.tabs.fade-l, .lead-filters.fade-l, .tp-filters.fade-l { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 32px), transparent); }
.tabs.fade-l.fade-r, .lead-filters.fade-l.fade-r, .tp-filters.fade-l.fade-r { -webkit-mask-image: linear-gradient(to right, transparent, #000 32px, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(to right, transparent, #000 32px, #000 calc(100% - 32px), transparent); }
/* 8) Yeni Paylaşım: Türkçe dosya seçici + telefonda 2x2 tür düğmeleri */
.file-input-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; opacity: 0; }
.file-pick { position: relative; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 500; color: var(--text); cursor: pointer; min-width: 0; margin: 0; }
.file-pick-btn { flex: 0 0 auto; }
.file-pick-name { font-size: 13px; color: var(--text-muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1 1 120px; }
.file-pick:focus-within .file-pick-btn { outline: 2px solid #cfe0fd; }
@media (max-width: 640px) {
  .type-btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .type-btn-row .type-btn { width: 100%; }
}
/* 9) Hesap kartı: yedek bağlantı ve bağlı Sayfa ayrı satırlarda */
.account-card-meta .acc-line { flex: 1 1 100%; min-width: 0; overflow-wrap: anywhere; }
/* 10) Meta Hesapları: telefonda "takipçi" eki, "Meta'dan yenile" tek satır */
.m-only { display: none; }
#pool-sync, #pool-csv { white-space: nowrap; }
@media (max-width: 760px) {
  .m-only { display: inline; color: var(--text-muted); font-size: 12px; }
  #pool-last-sync { flex: 1 1 100%; }
}
/* 11) Sayfa sonundaki hesap işlemleri */
.danger-zone { margin-top: 24px; border-color: #f3c6c6; }
.danger-zone-title { font-size: 14px; margin: 0 0 4px; color: var(--danger); }

/* 2026-10-06: Geçmiş Paylaşımlar — 640px altında kart (üstte tür + durum, altında hata/açıklama, zaman, en altta Sil) */
@media (max-width: 640px) {
  .posts-table thead { display: none; }
  .posts-table, .posts-table tbody { display: block; width: 100%; }
  .posts-table tr.post-row {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: start;
    grid-template-areas: "type badge" "fail fail" "caption caption" "time time" "actions actions";
    border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; background: var(--surface);
  }
  .posts-table td { display: block; border: none; padding: 0; min-width: 0; overflow-wrap: anywhere; }
  .posts-table td.p-type { grid-area: type; font-weight: 700; }
  .posts-table td.p-status { display: contents; }
  .posts-table td.p-status > .badge { grid-area: badge; justify-self: end; }
  .posts-table td.p-status > .failure-text { grid-area: fail; max-width: none; margin-top: 2px; }
  .posts-table td.p-caption { grid-area: caption; color: var(--text-muted); font-size: 13px; }
  .posts-table td.p-time { grid-area: time; font-size: 12.5px; color: var(--text-muted); }
  .posts-table td.p-actions { grid-area: actions; display: flex; flex-wrap: wrap; gap: 6px; padding-top: 6px; }
  .posts-table td.p-actions:empty { display: none; }
  .posts-table td.p-actions button { margin-left: 0 !important; flex: 1 1 auto; padding: 9px 10px; }
}

/* 2026-10-06: Sonuçlar penceresi — etiket sarılmaz, değer sarılır; telefonda alt alta */
.stat-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.stat-row-label { color: var(--text-muted); white-space: nowrap; flex-shrink: 0; }
.stat-row-value { font-weight: 600; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.results-range { margin: 4px 0 8px; }
.results-empty { padding: 12px; margin: 8px 0; border-radius: 8px; background: var(--neutral-bg); color: var(--text-muted); font-size: 13.5px; text-align: center; }
@media (max-width: 640px) {
  .stat-row { flex-direction: column; gap: 2px; }
  .stat-row-value { text-align: left; }
  .results-range { display: flex; }
  .results-range button { flex: 1 1 0; }
}

/* 2026-10-06: hikaye önizlemesi (9:16) — gönderiden hikaye ve "Sığdır" */
.story-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.story-frame { position: relative; margin: 0; aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; background: #111; max-width: 240px; width: 100%; margin-inline: auto; }
.story-preview-grid .story-frame { max-width: none; }
.story-frame > img, .story-frame > video { width: 100%; height: 100%; max-height: none; border-radius: 0; margin: 0; object-fit: contain; display: block; }
.story-frame.is-crop > img.story-fg { object-fit: cover; }
.story-frame.is-fit > img.story-bg { position: absolute; inset: 0; object-fit: cover; filter: blur(14px) brightness(.75); transform: scale(1.1); }
.story-frame.is-fit > img.story-fg { position: relative; object-fit: contain; }
.story-frame.is-crop > video.story-fg { object-fit: cover; }
.story-frame.is-fit > video.story-fg { background: radial-gradient(circle at 50% 50%, #333, #111); }
.story-split-note { font-weight: 600; color: var(--text); margin-bottom: 4px; }
.story-frame figcaption { position: absolute; left: 6px; bottom: 6px; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; padding: 2px 6px; border-radius: 6px; }
.story-frames-tools { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.story-frames-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(96px, 30%), 1fr)); gap: 6px; max-height: 50vh; overflow-y: auto; }
.story-frame-pick { position: relative; display: block; aspect-ratio: 1; border-radius: 8px; overflow: hidden; border: 2px solid var(--border); cursor: pointer; margin: 0; }
.story-frame-pick img { width: 100%; height: 100%; object-fit: cover; display: block; }
.story-frame-pick input { position: absolute; top: 6px; left: 6px; width: 20px; height: 20px; z-index: 1; }
.story-frame-pick:has(input:checked) { border-color: var(--primary); }
.story-frame-pick:has(input:not(:checked)) img { opacity: .45; }

/* ---------- 2026-10-06: küçük önizlemeler + paylaşım önizleme penceresi ---------- */
.post-thumb { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 8px; overflow: hidden; background: var(--neutral-bg); border: 1px solid var(--border); vertical-align: middle; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-thumb-ph { font-size: 18px; line-height: 1; opacity: .7; }
.post-thumb-badge { position: absolute; right: 2px; bottom: 2px; background: rgba(0,0,0,.65); color: #fff; font-size: 9px; line-height: 1; padding: 2px 3px; border-radius: 4px; }
.post-thumb-badge + .post-thumb-badge { right: auto; left: 2px; }
/* Kuyruk satırı: solda küçük resim */
.w-main { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 10px; align-items: start; }
.w-main > .w-thumb { grid-row: 1 / span 4; }
.w-main > :not(.w-thumb) { grid-column: 2; }
.w-row[data-post-id] { cursor: pointer; }
.w-row[data-post-id]:hover { background: var(--neutral-bg); }
/* Takvim (masaüstü) çipinde saatin yanında küçük kare */
.cal-chip-btn { display: flex; align-items: center; gap: 4px; text-align: left; }
.cal-thumb { width: 18px; height: 18px; border-radius: 4px; border: none; }
.cal-thumb .post-thumb-badge { font-size: 7px; padding: 1px 2px; }
.cal-thumb .post-thumb-ph { font-size: 11px; }
.cal-chip-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Hesap sayfası tablosu */
.p-type-wrap { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.p-thumb { width: 36px; height: 36px; }
.posts-table tr.is-clickable { cursor: pointer; }
.posts-table tr.is-clickable:hover td { background: var(--neutral-bg); }
/* Önizleme penceresi */
.pp-modal { max-width: 480px; }
.pp-note { margin: -6px 0 8px; }
.pp-frame { position: relative; width: 100%; margin: 0 auto; border-radius: 10px; overflow: hidden; background: #111; aspect-ratio: 4 / 5; display: flex; }
.pp-frame.pp-vertical { aspect-ratio: 9 / 16; max-width: min(100%, calc(62vh * 9 / 16)); }
.pp-frame .pp-media { width: 100%; height: 100%; object-fit: cover; flex: 0 0 100%; display: block; }
.pp-frame.pp-carousel { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.pp-frame.pp-carousel .pp-media { scroll-snap-align: center; }
.pp-empty { margin: auto; color: #aaa; }
.pp-count { text-align: center; margin-top: 4px; }
.pp-info { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; margin: 12px 0 0; font-size: 13.5px; }
.pp-info dt { color: var(--text-muted); white-space: nowrap; }
.pp-info dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.pp-caption { white-space: pre-line; max-height: 30vh; overflow-y: auto; }
.pp-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 14px; }
.pp-actions:empty { display: none; }
@media (max-width: 640px) {
  .pp-info { grid-template-columns: 1fr; gap: 2px; }
  .pp-info dd { margin-bottom: 6px; }
  .pp-actions button { flex: 1 1 auto; padding: 10px; }
  .w-main { grid-template-columns: 36px minmax(0, 1fr); }
  .w-thumb { width: 36px; height: 36px; }
  .posts-table td.p-type .p-type-wrap { gap: 8px; }
}

/* 2026-10-07: mesaj reklamı sonuçları + WhatsApp karşılama mesajı */
.msg-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.msg-bar .w-seg { max-width: 100%; }
.campaign-msg { margin-top: 4px; font-size: 12px; color: var(--text); line-height: 1.4; }
.campaign-msg strong { font-weight: 600; }
.alert-warn { background: var(--warning-bg); color: var(--warning); border-radius: 8px; padding: 8px 10px; font-size: 12.5px; margin: 10px 0 6px; line-height: 1.45; }
#boost-welcome-fields textarea, #campaign-welcome-modal textarea { width: 100%; resize: vertical; }
@media (max-width: 420px) {
  .msg-bar .w-seg button { padding: 7px 9px; }
}

/* 2026-10-07: kayıtlı hedefler reklam hesabına göre gruplu */
.st-group { margin-bottom: 14px; }
.st-group-title { font-weight: 600; font-size: 13.5px; padding: 6px 0; border-bottom: 2px solid var(--border); display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.st-group-title .mono { font-size: 11px; word-break: break-all; }
#boost-acct { max-width: 100%; }

/* 2026-10-07 (Eslem): karusel sıralama — büyük 4:5 kart ızgarası, Instagram şeridi, büyük önizleme */
.post-editor-preview.is-carousel { width: 360px; }
.carousel-ig { margin-bottom: 12px; }
.carousel-ig-title { font-size: 12.5px; font-weight: 600; text-align: left; margin-bottom: 6px; }
.carousel-ig-frame { aspect-ratio: var(--car-ratio, 0.8); max-width: 100%; }
.carousel-ig-frame .pp-media { object-fit: cover; max-height: none; border-radius: 0; margin: 0; width: 100%; height: 100%; }
.carousel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; flex-direction: initial; }
.carousel-card { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 6px; }
.carousel-card .carousel-thumb { padding: 0; border: 0; background: #111; border-radius: 8px; overflow: hidden; cursor: zoom-in; display: block; width: 100%; aspect-ratio: var(--car-ratio, 0.8); }
.carousel-card .carousel-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; max-height: none; margin: 0; }
.carousel-card .carousel-no { position: absolute; top: 10px; left: 10px; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.carousel-card .carousel-x { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; padding: 0; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; font-size: 14px; line-height: 28px; cursor: pointer; }
.carousel-card .carousel-x:hover { background: var(--danger, #c0392b); }
.carousel-label { font-size: 12.5px; font-weight: 600; text-align: center; }
.carousel-card .carousel-move { justify-content: center; }
.carousel-card .carousel-move button { min-width: 44px; padding: 6px 0; }
.carousel-card.dragging { opacity: .45; outline: 2px dashed var(--primary); }
/* Büyük önizleme */
.carousel-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 1100; display: none; align-items: center; justify-content: center; padding: 12px; }
.carousel-lb-modal { width: min(560px, 100%); max-height: 94vh; overflow: auto; }
.clb-stage { display: flex; align-items: center; gap: 8px; }
.clb-frame { flex: 1; min-width: 0; aspect-ratio: var(--car-ratio, 0.8); max-height: 70vh; background: #111; border-radius: 10px; overflow: hidden; display: flex; align-items: center; justify-content: center; margin: 0 auto; }
.clb-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel-lightbox.clb-full .clb-frame img { object-fit: contain; }
.clb-nav { flex: 0 0 auto; width: 40px; height: 56px; font-size: 28px; line-height: 1; padding: 0; border-radius: 10px; }
.clb-nav:disabled { opacity: .3; }
.clb-hint { text-align: center; margin: 8px 0; overflow-wrap: anywhere; }
.clb-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
@media (max-width: 900px) {
  .post-editor-preview.is-carousel { width: 100%; }
}
@media (max-width: 420px) {
  .carousel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .clb-nav { width: 32px; font-size: 22px; }
  .clb-actions button { flex: 1 1 45%; }
}

/* 2026-10-08: Instagram DM hazır sorular */
.ice-list { display: grid; gap: 6px; }
.ice-list input { width: 100%; }

/* 2026-10-08: Reklam Ver hata kutusu — pencerenin üstünde sabit */
.boost-error { position: sticky; top: 0; z-index: 5; margin: 0 0 10px; white-space: pre-line; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.boost-start .inline-check { display: flex; gap: 6px; align-items: flex-start; margin: 4px 0; }
.campaign-status-reason { font-size: 12px; margin-top: 3px; }

/* 2026-10-08: Eksikler raporu */
.health-list { margin-top: 10px; display: flex; flex-direction: column; gap: 12px; }
.health-group-title { font-weight: 600; font-size: 13px; margin-bottom: 4px; }
.health-item { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 6px 0; border-top: 1px solid var(--border, #e5e7eb); font-size: 13px; }
.health-item .health-text { flex: 1 1 260px; min-width: 0; }
.client-card .health-badge { margin-left: 6px; }

/* 2026-10-09: IG hesabı varsayılan reklam hesabı */
.acc-defad { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 6px; }
.acc-defad-select { max-width: 100%; font-size: 12px; }

/* 2026-10-10: çalışan anketi (tam ekran, telefona uygun) */
.survey-body { background: var(--bg, #f5f6f8); margin: 0; }
.survey-shell { min-height: 100vh; display: flex; justify-content: center; padding: 16px; box-sizing: border-box; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.survey-card { width: 100%; max-width: 680px; background: var(--card, #fff); border-radius: 14px; padding: 22px 18px; box-shadow: 0 2px 12px rgba(0,0,0,.06); box-sizing: border-box; }
.sv-preview-note { background: #fff4d6; color: #7a5600; border: 1px solid #f0d78c; border-radius: 8px; padding: 8px 10px; font-size: 12px; margin-bottom: 14px; }
.sv-hello { font-size: 22px; margin: 0 0 4px; }
.sv-title { font-size: 16px; margin: 0 0 10px; font-weight: 600; }
.sv-intro { font-size: 14px; line-height: 1.5; margin: 0 0 18px; }
.sv-q { margin: 0 0 16px; }
.sv-label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.sv-req { color: var(--danger, #c0392b); }
.sv-opt { display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px; border: 1px solid var(--border, #e3e5ea); border-radius: 8px; margin: 0 0 6px; font-size: 14px; cursor: pointer; }
.sv-opt input { margin-top: 2px; flex: 0 0 auto; width: 18px; height: 18px; }
.sv-q input[type="text"], .sv-q input[type="date"], .sv-q textarea, .sv-q select { width: 100%; box-sizing: border-box; font-size: 16px; padding: 9px 10px; border: 1px solid var(--border, #d6d9df); border-radius: 8px; }
.sv-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sv-row input[type="date"] { width: auto; flex: 1 1 160px; }
.sv-row .sv-opt { margin: 0; }
.sv-other { margin-top: 4px; }
.sv-nopw { font-size: 11px; margin-top: 3px; }
.sv-account { border: 1px solid var(--border, #e3e5ea); border-radius: 12px; padding: 14px 12px 4px; margin: 0 0 14px; position: relative; min-width: 0; }
.sv-account legend { font-weight: 700; padding: 0 6px; }
.sv-remove { position: absolute; top: 8px; right: 8px; }
.sv-add { width: 100%; margin: 0 0 18px; padding: 12px; font-weight: 600; }
.sv-files { margin-top: 8px; }
.sv-file-btn { display: inline-block; cursor: pointer; }
.sv-file { display: flex; align-items: center; gap: 6px; font-size: 13px; margin-top: 4px; word-break: break-all; }
.sv-section { border-top: 1px solid var(--border, #e3e5ea); padding-top: 14px; }
.sv-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.sv-actions button { flex: 1 1 200px; padding: 12px; font-size: 15px; }
/* Sonuç sayfası */
.sv-res-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sv-res-table th, .sv-res-table td { border-bottom: 1px solid var(--border, #e3e5ea); padding: 6px 8px; text-align: left; vertical-align: top; }
.sv-res-wrap { overflow-x: auto; }
.sv-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; margin: 2px; cursor: pointer; }

/* 2026-10-12: Bugün ekranı (telefon öncelikli) */
.td-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.td-head h1 { margin: 0; }
.td-head-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.td-head-actions select { max-width: 100%; font-size: 15px; padding: 8px; }
.td-viewing { background: #fff4d6; color: #7a5600; border: 1px solid #f0d78c; border-radius: 8px; padding: 8px 10px; font-size: 13px; margin-bottom: 10px; }
.td-sec-title { font-weight: 700; font-size: 15px; margin-bottom: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.td-sub-title { font-weight: 600; font-size: 13px; margin: 12px 0 4px; }
.td-count { background: var(--neutral-bg, #eef0f3); border-radius: 999px; padding: 1px 9px; font-size: 13px; }
.td-kinds { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.td-kind { border: 1px solid var(--border, #e3e5ea); border-radius: 8px; padding: 4px 8px; font-size: 13px; }
.td-kind.zero { opacity: .45; }
.td-acc { border-top: 1px solid var(--border, #e3e5ea); padding: 8px 0; }
.td-acc summary { display: flex; justify-content: space-between; gap: 8px; cursor: pointer; list-style: none; font-size: 14px; }
.td-acc summary::-webkit-details-marker { display: none; }
.td-pills { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.td-pill { font-size: 12px; border-radius: 6px; padding: 2px 6px; background: var(--neutral-bg, #eef0f3); }
.td-pill.done { background: var(--success-bg, #e3f6ea); }
.td-pill.bad { background: var(--danger-bg, #fde8e8); }
.td-line { font-size: 14px; padding: 4px 0; }
.td-camp { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--border, #eef0f3); font-size: 14px; }
.td-camp-name { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.td-camp-sp { font-weight: 700; white-space: nowrap; }
.td-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 10px; display: inline-block; background: #bbb; }
.td-dot.ok { background: #2ea44f; } .td-dot.warn { background: #e0a100; } .td-dot.bad { background: #d73a49; }
#td-note { width: 100%; box-sizing: border-box; font-size: 16px; padding: 9px; border-radius: 8px; border: 1px solid var(--border, #d6d9df); }
.td-note-ro { white-space: pre-wrap; font-size: 14px; }
.td-table-wrap { overflow-x: auto; }
.td-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.td-table th, .td-table td { border-bottom: 1px solid var(--border, #e3e5ea); padding: 7px 6px; text-align: left; vertical-align: top; }
.td-click { cursor: pointer; }
.td-click:hover { background: var(--neutral-bg, #f4f5f7); }
.td-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.td-chip { border: 1px solid var(--border, #e3e5ea); border-radius: 999px; padding: 3px 9px; font-size: 13px; }
@media (max-width: 600px) { .td-head-actions { width: 100%; } .td-head-actions > * { flex: 1 1 100%; } }

/* 2026-10-12: harcama dökümü + makbuz talepleri */
.sp-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 12px; }
.sp-field { display: flex; flex-direction: column; gap: 3px; flex: 1 1 200px; min-width: 0; }
.sp-field select { width: 100%; font-size: 15px; padding: 8px; }
.sp-total { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: baseline; background: var(--neutral-bg, #f1f3f6); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
.sp-total strong { font-size: 20px; }
.sp-table-wrap { overflow-x: auto; }
.sp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sp-table th, .sp-table td { border-bottom: 1px solid var(--border, #e3e5ea); padding: 6px 8px; text-align: left; vertical-align: top; }
.sp-table .num { text-align: right; white-space: nowrap; }
.sp-table tfoot th { font-size: 15px; }
.sp-camps summary { cursor: pointer; font-size: 12px; color: var(--muted, #667); }
.sp-camp { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; padding: 2px 0; }
.sp-camp span:first-child { min-width: 0; overflow-wrap: anywhere; }
.sp-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sp-receipt-form { margin-top: 10px; }
.sp-receipt-form textarea { width: 100%; box-sizing: border-box; font-size: 16px; padding: 8px; border-radius: 8px; border: 1px solid var(--border, #d6d9df); margin-top: 6px; }
.rc-card { border: 1px solid var(--border, #e3e5ea); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.rc-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; align-items: baseline; }
.rc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: center; }
.rc-instr { background: #fff4d6; border: 1px solid #f0d78c; border-radius: 8px; padding: 8px 10px; margin-top: 8px; font-size: 13px; }
.rc-instr pre { white-space: pre-wrap; font-family: inherit; margin: 6px 0; }
.td-receipt { display: block; text-decoration: none; color: inherit; background: #eef6ff; border: 1px solid #c9defa; }
.rc-yn { display: inline-flex; gap: 4px; align-items: center; font-size: 12px; }
.cmp-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 8px 0 12px; } .cmp-filters input[type=date] { font-size: 15px; padding: 7px; }
/* 2026-10-12: duyurular */
.ann-overlay { position: fixed; inset: 0; background: rgba(15, 18, 25, .55); z-index: 2500; display: flex; align-items: center; justify-content: center; padding: 16px; box-sizing: border-box; }
.ann-modal { background: var(--card, #fff); color: inherit; border-radius: 14px; max-width: 620px; width: 100%; max-height: calc(100vh - 32px); overflow-y: auto; padding: 22px 18px; box-sizing: border-box; box-shadow: 0 10px 40px rgba(0,0,0,.25); }
.ann-modal h2 { margin: 4px 0 10px; font-size: 19px; }
.ann-kicker { font-size: 12px; font-weight: 700; color: var(--primary, #2b6cb0); }
.ann-body p { margin: 0 0 8px; line-height: 1.5; font-size: 14px; }
.ann-body ul { margin: 0 0 8px 18px; padding: 0; font-size: 14px; }
.ann-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.ann-actions button { flex: 1 1 160px; padding: 11px; font-size: 15px; }
.td-ann { border-left: 4px solid var(--primary, #2b6cb0); }
.ann-item { border: 1px solid var(--border, #e3e5ea); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.ann-recips { display: flex; flex-wrap: wrap; gap: 4px 12px; max-height: 260px; overflow-y: auto; border: 1px solid var(--border, #e3e5ea); border-radius: 8px; padding: 8px; }
.ann-recips label { display: flex; gap: 6px; align-items: center; font-size: 13px; min-width: 200px; }
.ann-form input[type=text], .ann-form textarea { width: 100%; box-sizing: border-box; font-size: 15px; padding: 8px; border-radius: 8px; border: 1px solid var(--border, #d6d9df); }
/* 2026-10-12: ekip adı / WhatsApp grubu / başlangıç */
.company-names { margin: 2px 0 0; font-size: 13px; }
.acc-labels { margin-top: 6px; font-size: 13px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.acc-labels input { flex: 1 1 160px; min-width: 0; font-size: 14px; padding: 6px 8px; }
.lb-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.lb-table th, .lb-table td { border-bottom: 1px solid var(--border, #e3e5ea); padding: 5px 6px; text-align: left; vertical-align: middle; }
.lb-table input { width: 100%; min-width: 140px; box-sizing: border-box; font-size: 13px; padding: 5px 6px; }
.lb-table input.saved { border-color: #2ea44f; }
.lb-table input.err { border-color: #d73a49; }

/* 2026-10-12: sol menü taşması — liste kendi içinde kayar, alt bölüm (kullanıcı/Ayarlar/Çıkış) her zaman görünür */
.sidebar { overflow: hidden; }
.sidebar .brand { flex-shrink: 0; }
.sidebar nav > a, .sidebar nav > * { flex-shrink: 0; }
.sidebar nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #2b303b transparent; margin-right: -6px; padding-right: 6px; }
.sidebar nav::-webkit-scrollbar { width: 6px; }
.sidebar nav::-webkit-scrollbar-thumb { background: #2b303b; border-radius: 3px; }
.sidebar .footer-user { flex-shrink: 0; padding-top: 10px; margin-top: 8px; }
.sidebar .footer-user .fu-who { display: flex; flex-direction: column; }
.sidebar .footer-user .fu-settings { margin-top: 8px; }
.sidebar .footer-user .fu-settings > summary { cursor: pointer; color: #cfd3dc; font-size: 12.5px; list-style: none; padding: 4px 0; user-select: none; }
.sidebar .footer-user .fu-settings > summary::-webkit-details-marker { display: none; }
.sidebar .footer-user .fu-settings[open] > summary { color: #fff; }
.sidebar .footer-user .fu-settings .push-box { max-height: 40vh; overflow-y: auto; margin-top: 2px; }
.sidebar .footer-user #logout-btn { margin-top: 8px; }
@media (max-height: 760px) and (min-width: 761px) {
  .sidebar { padding-top: 14px; padding-bottom: 12px; }
  .sidebar .brand { padding-bottom: 12px; }
  .sidebar nav a { padding-top: 7px; padding-bottom: 7px; }
}
@media (max-width: 760px) {
  .sidebar { overflow: hidden; display: flex; flex-direction: column; }
  .sidebar .footer-user { padding-bottom: env(safe-area-inset-bottom); }
}
/* ---------- Gelen yeni cari belgeleri (2026-10-13) ---------- */
.lead-docs { margin-top: 10px; border-top: 1px dashed var(--border, #e3e6ea); padding-top: 10px; }
.lead-docs-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lead-doc-pick { cursor: pointer; }
.lead-doc-pending { margin: 8px 0; display: flex; flex-direction: column; gap: 6px; }
.lead-doc-row { display: grid; grid-template-columns: 1fr auto; gap: 6px; background: #f5f6f8; border-radius: 8px; padding: 8px; }
.lead-doc-row .lead-doc-name { grid-column: 1 / 2; overflow-wrap: anywhere; }
.lead-doc-row [data-doc="drop"] { grid-column: 2; grid-row: 1; }
.lead-doc-row select, .lead-doc-row input[type="text"] { grid-column: 1 / -1; width: 100%; }
.lead-doc-row.has-err { background: var(--danger-bg, #fdecec); }
.lead-doc-err { grid-column: 1 / -1; color: var(--danger, #c62828); font-size: 13px; }
.lead-doc-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.lead-doc-item { background: #f5f6f8; border-radius: 8px; padding: 8px 10px; overflow-wrap: anywhere; }
/* ---------- Reklam Ver platform seçimi (2026-10-14) ---------- */
.boost-platforms { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 4px 0; }
.boost-platforms label { display: inline-flex; align-items: center; gap: 6px; font-weight: normal; cursor: pointer; }
.boost-platforms label.is-disabled { opacity: .5; cursor: not-allowed; }
/* ---------- Hesap sayfası Reklamlar tablosu: gönderi küçük resmi + kaynak (2026-10-14) ---------- */
.ig-camp-thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; display: inline-block; background: #eef0f3; vertical-align: middle; }
.ig-camp-thumb-empty { line-height: 44px; text-align: center; color: #999; }
.ig-camp-src { font-weight: normal; }
/* ---------- Sonuçlar → Paylaş kartı (2026-10-14) ---------- */
.share-panel { margin-top: 12px; border-top: 1px dashed var(--border, #e3e6ea); padding-top: 10px; }
.share-panel img { display: block; width: 100%; max-height: 60vh; object-fit: contain; border-radius: 8px; margin: 8px 0; background: #f5f6f8; }
/* 2026-10-14: platform / iyileştirme kutucukları — genel input genişliği etiketi sıkıştırıyordu */
.boost-platforms input[type="checkbox"] { width: auto; flex: 0 0 auto; margin: 0; padding: 0; }
.boost-platforms label { white-space: nowrap; margin: 0; font-size: 13.5px; color: var(--text, inherit); }
@media (max-width: 560px) { .boost-platforms { flex-direction: column; gap: 8px; } .boost-platforms label { white-space: normal; } }
/* 2026-10-15: "Facebook'ta da paylaş" kutusu etiketin solunda; paylaşım onayında FB satırı */
.acc-fbx { margin-top: 6px; }
.acc-fbx-lbl { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; color: var(--text, inherit); cursor: pointer; }
.acc-fbx-lbl input[type="checkbox"] { width: auto; margin: 0; padding: 0; flex: 0 0 auto; }
.confirm-target-fb { margin: 10px 0 0; padding: 8px 10px; background: #eef4ff; border: 1px solid #c9dafc; border-radius: 8px; color: #1d3f8a; font-size: 13px; }
/* 2026-10-15: duyuru başlıkları ve rozet örnekleri */
.ann-body h3 { font-size: 15.5px; margin: 14px 0 6px; padding-bottom: 4px; border-bottom: 1px solid var(--border, #e3e5ea); }
.ann-body h3:first-child { margin-top: 2px; }
.ann-body li { margin: 3px 0; line-height: 1.5; }
.ann-body .badge { font-size: 12px; vertical-align: 1px; }
@media (max-width: 560px) { .ann-body p, .ann-body ul { font-size: 15px; } .ann-body h3 { font-size: 16.5px; } .ann-modal { padding: 18px 14px; } }
/* 2026-10-15: zorunlu "Okudum" — devre dışı düğme ve kaydırma notu */
#ann-read:disabled { opacity: .5; cursor: not-allowed; }
.ann-scroll-note { text-align: center; margin-top: 6px; }
.ann-modal { -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
/* 2026-10-15: duyuru yönetimi — yalnız okumayanlar */
.ann-unread { margin-top: 6px; color: var(--danger, #c62828); font-weight: 600; font-size: 13.5px; overflow-wrap: anywhere; }
.ann-allread { margin-top: 6px; color: var(--success, #1e7d3a); font-weight: 600; font-size: 13.5px; }
/* 2026-10-15: duyuru yönetimi — içerik açılır bölümü, satır içi form, sıfırlama kutusu */
.ann-content summary { cursor: pointer; font-weight: 600; font-size: 13px; color: var(--primary, #2b6cb0); }
.ann-content-body { margin-top: 8px; padding: 10px 12px; background: #f7f8fa; border-radius: 8px; }
.ann-reset-lbl { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; }
.ann-reset-lbl input[type="checkbox"] { width: auto; margin: 0; }

/* 2026-10-16 (74): sonuç kartı penceresi — 390 px telefonda taşmaz */
.rc-modal { width: calc(100vw - 24px); max-width: 520px; max-height: 92vh; overflow: auto; box-sizing: border-box; }
.rc-controls { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 4px 0 10px; }
.rc-controls select { max-width: 100%; }
.rc-custom { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rc-custom input { max-width: 150px; }
.rc-toggle { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; }
.rc-preview { display: block; width: 100%; height: auto; border: 1px solid var(--border, #e3e5ea); border-radius: 10px; margin: 6px 0 10px; }
.rc-modal .rc-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
/* 2026-10-16 (75): sarı uyarı kutusu (Bugün — yedek gecikmesi) */
.alert-warning { background: #fff7e0; color: #7a5600; border: 1px solid #f0d78c; border-radius: 8px; padding: 10px 12px; font-size: 14px; }

/* 2026-10-16 (79): Önceki açıklamalar — telefon önce (390 px), tam ekran alt pencere */
.cap-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.cap-prev-btn { min-height: 36px; }
body.cap-open { overflow: hidden; }
.cap-overlay { position: fixed; inset: 0; z-index: 1200; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; justify-content: center; }
.cap-sheet { background: var(--card-bg, #fff); width: 100%; max-width: 640px; height: 92vh; height: 92dvh; border-radius: 16px 16px 0 0; display: flex; flex-direction: column; box-sizing: border-box; padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); position: relative; }
.cap-top { display: flex; align-items: center; justify-content: space-between; font-size: 17px; padding: 4px 4px 10px; }
.cap-x { min-width: 44px; min-height: 44px; font-size: 18px; background: transparent; border: none; }
.cap-tools { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.cap-tools input[type="search"] { flex: 1 1 200px; min-width: 0; font-size: 16px; padding: 10px 12px; border: 1px solid var(--border, #d6d9df); border-radius: 10px; box-sizing: border-box; }
.cap-all { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; min-height: 44px; }
.cap-all input { width: 20px; height: 20px; }
.cap-sub { margin: 6px 4px; }
.cap-list { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; gap: 8px; padding: 4px 0; }
.cap-item { display: flex; gap: 10px; align-items: flex-start; text-align: left; width: 100%; min-height: 64px; padding: 10px; border: 1px solid var(--border, #e3e5ea); border-radius: 12px; background: var(--card-bg, #fff); box-sizing: border-box; }
.cap-item:active { background: #f1f5f9; }
.cap-thumb { width: 56px; height: 56px; flex: 0 0 56px; border-radius: 8px; object-fit: cover; background: #f1f5f9; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; }
.cap-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 auto; }
.cap-meta { font-size: 12px; color: #6b7280; }
.cap-text { font-size: 14px; line-height: 1.35; white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.cap-empty { padding: 20px 4px; text-align: center; }
.cap-choice { position: absolute; left: 0; right: 0; bottom: 0; background: var(--card-bg, #fff); border-top: 1px solid var(--border, #e3e5ea); border-radius: 16px 16px 0 0; padding: 14px 12px calc(14px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; box-shadow: 0 -6px 20px rgba(0,0,0,.12); }
.cap-choice[hidden] { display: none; }
.cap-choice-title { font-weight: 600; margin-bottom: 4px; }
.cap-big { min-height: 48px; font-size: 16px; width: 100%; }
.w-copy-cap { margin-top: 4px; }
@media (min-width: 700px) { .cap-overlay { align-items: center; } .cap-sheet { height: 80vh; border-radius: 16px; } }
/* 2026-10-19 (115): programlar anketi — katlanır program grupları + tek seçimde "Seçimi kaldır" */
.sv-group { border: 1px solid var(--border, #e3e5ea); border-radius: 10px; padding: 10px 12px; margin: 0 0 12px; }
.sv-group > summary { cursor: pointer; margin: 0; list-style-position: inside; }
.sv-group[open] > summary { margin-bottom: 10px; }
.sv-clear { margin-top: 2px; font-size: 12px; }
.sv-res-sum td, .sv-res-sum th { white-space: nowrap; }
/* 2026-10-20 (104): hikâye toplu seçim — kart köşesinde işaret kutusu, seçim çubuğu */
.story-pick-wrap { position: relative; }
.story-pick-wrap .story-pick { width: 100%; display: block; }
.story-pick-chk { position: absolute; top: 4px; left: 4px; z-index: 2; background: rgba(255,255,255,.92); border-radius: 6px; padding: 4px; line-height: 0; cursor: pointer; }
.story-pick-chk input { width: 20px; height: 20px; margin: 0; }
.story-multi { border-top: 1px solid var(--border); margin-top: 10px; padding-top: 10px; }
.story-interval select { margin-left: 6px; }
/* 2026-10-20 (111): sonradan görsel ekleme — bırakma alanı, çoklu not, Tümünü kaldır */
.file-drop-over { outline: 2px dashed var(--primary, #2b6cb0); outline-offset: 2px; }
.multi-note { font-size: 13px; margin: 0 0 8px; padding: 6px 10px; border-radius: 8px; background: var(--neutral-bg, #f1f5f9); }
#p-file-clear { margin-top: 6px; }
/* 2026-10-20 (120): reklam talepleri + talep formu */
.ar-head { display: flex; gap: 12px; align-items: flex-start; }
.ar-thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; }
.ar-cap { margin-top: 4px; overflow-wrap: anywhere; }
.ar-settings { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; background: var(--neutral-bg, #f1f5f9); border-radius: 8px; padding: 8px 10px; margin: 10px 0; }
.ar-focus { outline: 2px solid var(--primary, #2b6cb0); }
.adreq-post { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.adreq-post img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.adreq-row { display: flex; gap: 10px; flex-wrap: wrap; }
.adreq-row .field { flex: 1 1 140px; min-width: 0; }
.adreq-modal input, .adreq-modal select, .adreq-modal textarea { width: 100%; box-sizing: border-box; }
.bs-ads-toggle { margin-top: 6px; }
/* 2026-10-21 (117): Nan Hesap menü bağlantısı (Ayarlar'ın üstünde) */
.sidebar .footer-user .fu-hesap { display: block; margin-top: 8px; padding: 6px 8px; border-radius: 6px; color: #fff; background: rgba(255,255,255,.08); text-decoration: none; font-size: 13.5px; }
.sidebar .footer-user .fu-hesap:hover { background: rgba(255,255,255,.16); }

/* 161: duyurularda görsel / video (yalnız /duyuru/ klasörü) */
.ann-media { margin: 10px 0; }
.ann-media img, .ann-media video { display: block; max-width: 100%; max-height: 70vh; border-radius: 10px; border: 1px solid var(--border); background: #000; }
.ann-media img { background: #fff; }
.ann-media figcaption { font-size: 12.5px; color: var(--text-muted); margin-top: 4px; }

/* 168: Reklam hesapları sağlığı — «Ödeme yap ↗» tek satır, hücreye sığar, dikey ortalı */
.ah-table td { vertical-align: middle; }
.ah-table td.ah-pay { white-space: nowrap; width: 1%; text-align: right; }
.ah-pay-btn { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; min-width: 118px; line-height: 1.2; }
@media (max-width: 640px) { .ah-table td.ah-pay { width: auto; text-align: left; } .ah-pay-btn { width: 100%; } }

/* 168: duyuru alıcıları — her satır [kutu] Ad Soyad · rol rozeti; masaüstünde 2–3 sütun, telefonda tek sütun */
.ann-recips { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 4px 14px; }
.ann-recips label { display: flex !important; flex-direction: row; align-items: center; gap: 8px; min-width: 0; margin: 0; padding: 4px 2px; font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.ann-recips label input[type="checkbox"] { width: auto; flex: none; margin: 0; }
.ann-recips .ann-rname { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ann-recips .ann-role { flex: none; font-size: 11.5px; padding: 1px 8px; border-radius: 999px; background: var(--neutral-bg, #eef0f3); color: var(--text-muted, #6b7280); }
@media (max-width: 640px) { .ann-recips { grid-template-columns: 1fr; } }
/* 168: telefonda reklam sağlığı tablosu kart düzeninde (yana kaydırma yok; «Ödeme yap» altta tam genişlik) */
@media (max-width: 640px) {
  .ah-table, .ah-table tbody { display: block; width: 100%; }
  .ah-table thead { display: none; }
  .ah-table tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--border, #e2e4e9); }
  .ah-table td { display: grid; grid-template-columns: 84px 1fr; column-gap: 12px; align-items: start; padding: 4px 0; border: 0; text-align: right; }
  .ah-table td > * { grid-column: 2; text-align: right; justify-self: end; }
  .ah-table td::before { content: attr(data-label); grid-column: 1; grid-row: 1; color: var(--text-muted, #6b7280); font-size: 12.5px; text-align: left; }
  .ah-table td:first-child, .ah-table td:first-child .hint { display: block; text-align: left !important; }
  .ah-table td:first-child::before { content: none; }
  .ah-table td:first-child > * { text-align: left; justify-self: start; }
  .ah-table td.ah-pay { display: block; padding-top: 8px; }
  .ah-table td.ah-pay::before { content: none; }
}
/* 169: çalışanlar — yetki detayı açılır */
.perm-more { margin-top: 4px; font-size: 13px; }
.perm-more summary { cursor: pointer; color: var(--primary); font-size: 12.5px; }
.perm-more .badge { margin: 2px 2px 0 0; }

/* ---------- P-4 (2.11): ⛔ Hizmeti sonlandır ---------- */
.badge.end-badge, .badge.onhold { background: #e9eaee; color: #4a4f5c; }
.closing-badge { margin-left: 6px; }
.end-actions { border-top: 1px dashed var(--border, #e3e5ea); padding-top: 8px; margin-top: 8px; }
.end-modal { max-width: 560px; }
.end-list { margin: 0 0 12px; padding-left: 18px; display: grid; gap: 8px; font-size: 14px; }
.end-sub { margin: 6px 0 0; padding-left: 16px; display: grid; gap: 3px; font-size: 13px; max-height: 220px; overflow-y: auto; }
.end-sub .end-shared { color: var(--text-muted); }
.end-warn { font-weight: 650; }
.end-nh { margin: 10px 0; font-size: 14px; }
.end-confirm-lbl { display: block; margin: 12px 0 4px; font-size: 13.5px; }
.end-confirm-in { width: 100%; letter-spacing: .08em; font-weight: 650; }
.end-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.end-log { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.end-step { display: flex; gap: 6px; align-items: flex-start; }
.end-ic { font-weight: 700; min-width: 1.2em; text-align: center; }
.end-ok .end-ic, .end-step.end-ok .end-ic { color: var(--success); }
.end-step.end-pending .end-ic { color: var(--warning); }
.end-step.end-fail .end-ic { color: var(--danger); }
.alert-success { background: var(--success-bg); color: var(--success); border: 1px solid #bfe3cb; border-radius: 8px; padding: 10px 12px; font-size: 14px; }
.jb-hold-note { margin: 8px 0; }
.end-service-link { margin-left: 8px; }
.end-note { margin-bottom: 10px; }
.end-sharednote { margin-top: 6px; }
.end-fail-txt { color: var(--danger); font-weight: 650; }
.end-step.end-todo { color: var(--text-muted); }
.end-recur-lbl { display: flex; gap: 6px; align-items: flex-start; cursor: pointer; }
.end-recur-lbl input { margin-top: 3px; }
.end-warns { margin-top: 8px; }
