/*
 * befcrm.com — etkileşimli sahne kiti (SITE-SAHNELER.md). Tüm sahne paketleri bunun üstüne kurulur.
 * Kök: .scn (visual parçası basar; data-scene, data-variant, data-tint, data-hero). Ölçü em: kök 13px, dar kapta 11.5px.
 * Önekler: .s-* ortak parçalar, .ch-* kanal renkleri. Paketler kendi önekini kullanır (hm-, st-, il-, yz-, pz-, op-, fn-, sk-).
 * Uygulamanın gerçek dili: siyah-beyaz ağırlıklı arayüz, tek vurgu indigo, anlamsal renkler (olumlu / olumsuz / bekleyen).
 */

/* ============================================================ Kök ve belirteçler */
.scn {
  --s-bg: #f8f8f8;
  --s-sf: #ffffff;
  --s-sf2: #fbfbfb;
  --s-line: #ebebeb;
  --s-line2: #d4d7e1;
  --s-ink: #111114;
  --s-ink2: #4a4a54;
  --s-ink3: #72727c;
  --s-pri: #e60000;
  --s-pri-2: #e60000;
  --s-pri-soft: #feefef;
  --s-pri-ink: #b00000;
  --s-ok: #15803d;
  --s-ok-soft: #e8f6ed;
  --s-warn: #b45309;
  --s-warn-soft: #fff4dc;
  --s-bad: #c81e1e;
  --s-bad-soft: #fdecec;
  --s-ai: #18181b;
  --s-ai-soft: #f7f7f7;
  --s-ai-line: #ececec;
  --s-ig: #d62976;
  --s-fb: #1877f2;
  --s-wa: #1a9e4b;
  --s-wa-dark: #008069;
  --s-tg: #229ed9;
  --s-r: 14px;
  --s-r-sm: 9px;
  --s-sh: 0 34px 70px -34px rgba(15, 15, 18, .42), 0 14px 30px -18px rgba(15, 15, 18, .22);
  --s-sh-sm: 0 12px 26px -14px rgba(15, 15, 18, .32), 0 3px 8px -4px rgba(15, 15, 18, .12);
  --s-ease: cubic-bezier(.16, 1, .3, 1);

  position: relative;
  container-type: inline-size;
  container-name: scn;
  min-width: 0;
  font-family: var(--f-sans, "Poppins", system-ui, sans-serif);
  font-size: 13px;
  line-height: 1.42;
  color: var(--s-ink);
  text-align: left;
  font-variant-numeric: tabular-nums;
  -webkit-tap-highlight-color: transparent;
}
@media (max-width: 560px) { .scn { font-size: 11.5px; } }
.scn *, .scn *::before, .scn *::after { box-sizing: border-box; }
:where(.scn) :where(p, h1, h2, h3, h4, h5, ul, ol, dl, dd, figure) { margin: 0; }
:where(.scn) :where(ul, ol) { list-style: none; padding: 0; }
/* Sıfırlamalar sıfır / düşük özgüllükte: kit ve paket sınıfları (tek sınıf) her zaman kazanır */
:where(.scn) svg.ic { width: 1.15em; height: 1.15em; flex: none; }
:where(.scn button) { font: inherit; color: inherit; letter-spacing: inherit; margin: 0; cursor: pointer; -webkit-appearance: none; appearance: none; background: none; border: 0; padding: 0; text-align: inherit; }
.scn :focus-visible { outline: 2px solid var(--s-pri); outline-offset: 2px; border-radius: 6px; }
.scn ::selection { background: #fddada; }
.scn .s-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ============================================================ Uygulama penceresi */
.s-win {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  background: var(--s-sf); border: 1px solid var(--s-line); border-radius: var(--s-r);
  box-shadow: var(--s-sh); overflow: hidden;
}
.s-win--flat { box-shadow: var(--s-sh-sm); }
.s-top { display: flex; align-items: center; gap: .9em; height: 3.15em; padding: 0 1em; border-bottom: 1px solid var(--s-line); background: var(--s-sf); flex: none; }
.s-top__dots { display: flex; gap: .4em; margin-right: .2em; }
.s-top__dots i { width: .72em; height: .72em; border-radius: 50%; background: #e3e4ea; }
.s-top__app { display: flex; align-items: center; gap: .55em; min-width: 0; font-weight: 700; white-space: nowrap; }
.s-top__mark { display: grid; place-items: center; width: 1.8em; height: 1.8em; border-radius: .48em; background: var(--s-ink); color: #fff; flex: none; }
.s-top__mark svg { width: 1.1em; height: 1.1em; }
.s-top__logo { display: block; height: 1.5em; width: auto; max-width: 6.5em; object-fit: contain; }
.s-top__crumb { color: var(--s-ink3); font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.s-top__search { margin-left: auto; display: flex; align-items: center; gap: .5em; width: 15em; max-width: 34%; height: 2.2em; padding: 0 .7em; border: 1px solid var(--s-line); border-radius: .6em; color: var(--s-ink3); background: var(--s-bg); }
.s-top__search kbd { margin-left: auto; font-family: inherit; font-size: .78em; padding: .1em .4em; border-radius: .3em; border: 1px solid var(--s-line2); background: #fff; }
.s-top__bell { position: relative; display: grid; place-items: center; color: var(--s-ink2); }
.s-top__bell.is-dot::after { content: ""; position: absolute; top: -.1em; right: -.15em; width: .5em; height: .5em; border-radius: 50%; background: #e34948; border: 2px solid #fff; }
.s-top__me { display: grid; place-items: center; width: 2em; height: 2em; border-radius: 50%; background: var(--s-ink); color: #fff; font-size: .82em; font-weight: 700; flex: none; }
@container scn (max-width: 520px) { .s-top__search { display: none; } .s-top__dots { display: none; } .s-top__bell { margin-left: auto; } }

.s-body { display: flex; min-height: 0; flex: 1; background: var(--s-bg); }
.s-side { display: flex; flex-direction: column; align-items: center; gap: .35em; width: 3.4em; padding: .7em 0; background: var(--s-sf); border-right: 1px solid var(--s-line); flex: none; }
.s-side__i { position: relative; display: grid; place-items: center; width: 2.35em; height: 2.35em; border-radius: .6em; color: var(--s-ink3); }
.s-side__i.is-on { background: var(--s-ink); color: #fff; }
.s-side__i b { position: absolute; top: .1em; right: .05em; min-width: 1.35em; height: 1.35em; padding: 0 .3em; border-radius: 999px; background: #e34948; color: #fff; font-size: .62em; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
@container scn (max-width: 600px) { .s-side { display: none; } }
.s-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.s-pad { padding: 1em 1.1em; }
.s-head { display: flex; align-items: center; flex-wrap: wrap; gap: .6em; padding: .85em 1.1em; background: var(--s-sf); border-bottom: 1px solid var(--s-line); }
.s-head__t { font-size: 1.12em; font-weight: 700; letter-spacing: -.01em; margin-right: auto; }

/* ============================================================ Telefon */
.s-phone {
  --ph-w: 17.5em;
  position: relative; width: var(--ph-w); max-width: 100%; aspect-ratio: 9 / 18.6;
  padding: .55em; border-radius: 2.6em; background: #0d0d10;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06) inset, var(--s-sh);
  flex: none;
}
.s-phone::before { content: ""; position: absolute; top: 1.05em; left: 50%; width: 5.4em; height: 1.45em; transform: translateX(-50%); border-radius: 999px; background: #0d0d10; z-index: 3; }
.s-phone__screen { position: relative; display: flex; flex-direction: column; height: 100%; border-radius: 2.1em; overflow: hidden; background: #fff; }
.s-phone__status { display: flex; align-items: center; justify-content: space-between; height: 2.55em; padding: .5em 1.6em 0 1.9em; font-size: .88em; font-weight: 650; flex: none; position: relative; z-index: 2; }
.s-phone__status span { display: flex; align-items: center; gap: .3em; }
.s-phone__status svg { width: 1.1em; height: 1.1em; }
.s-phone--sm { --ph-w: 14.5em; }

/* ---------- WhatsApp */
.s-wa { display: flex; flex-direction: column; flex: 1; min-height: 0; background: #efeae2; }
.s-wa .s-phone__status, .s-phone__screen:has(.s-wa) .s-phone__status { background: var(--s-wa-dark); color: #fff; }
.s-wa__head { display: flex; align-items: center; gap: .6em; padding: .45em .8em .6em; background: var(--s-wa-dark); color: #fff; flex: none; }
.s-wa__head .s-av { width: 2.3em; height: 2.3em; }
.s-wa__who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.s-wa__who b { font-weight: 650; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.s-wa__who small { font-size: .8em; opacity: .8; color: inherit; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } /* rengi başlıktan (beyaz) alır: sektör sahnelerindeki :where(.sk) small gri rengi yeşil zeminde okunmuyordu; tek satır */
.s-wa__head .ic { opacity: .9; }
.s-wa__biz { display: inline-grid; place-items: center; width: 1.05em; height: 1.05em; margin-left: .25em; border-radius: 50%; background: #25d366; color: #fff; vertical-align: -.1em; }
.s-wa__biz svg { width: .75em !important; height: .75em !important; stroke-width: 3.2; }
.s-wa__feed {
  flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-start; gap: .38em; padding: .8em .7em; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
  background-color: #efeae2;
  background-image: radial-gradient(rgba(116, 98, 74, .07) 1px, transparent 1.4px), radial-gradient(rgba(116, 98, 74, .05) 1px, transparent 1.4px);
  background-size: 14px 14px, 22px 22px; background-position: 0 0, 7px 9px;
}
.s-wa__day { align-self: center; margin: .2em 0 .35em; padding: .2em .65em; border-radius: .5em; background: #fff; color: #54656f; font-size: .78em; font-weight: 600; box-shadow: 0 1px .5px rgba(11, 20, 26, .13); }
.s-wa__sys { align-self: center; max-width: 88%; padding: .3em .7em; border-radius: .5em; background: #fff8d6; color: #54656f; font-size: .76em; text-align: center; }
.s-wa__msg { position: relative; max-width: 82%; padding: .38em .55em .3em; border-radius: .6em; background: #fff; color: #111b21; box-shadow: 0 1px .5px rgba(11, 20, 26, .13); line-height: 1.38; word-wrap: break-word; }
.s-wa__msg--in { align-self: flex-start; border-top-left-radius: .15em; }
.s-wa__msg--out { align-self: flex-end; background: #d9fdd3; border-top-right-radius: .15em; }
.s-wa__meta { float: right; display: inline-flex; align-items: center; gap: .2em; margin: .35em 0 -.1em .6em; font-size: .7em; color: #667781; line-height: 1; }
.s-wa__meta svg { width: 1.25em; height: 1.25em; color: #53bdeb; }
.s-wa__msg b { font-weight: 650; }
.s-wa__title { display: block; font-weight: 650; margin-bottom: .1em; }
.s-wa__foot { display: block; margin-top: .2em; font-size: .78em; color: #667781; }
.s-wa__media { display: block; margin: -.12em -.27em .35em; border-radius: .45em; overflow: hidden; aspect-ratio: 16 / 9; background: #dfe5e7; }
/* Etkileşimli mesaj düğmeleri (WhatsApp "reply button" / CTA / liste) — mesaj balonunun hemen altında */
.s-wa__btns { align-self: flex-start; display: grid; gap: .25em; width: min(82%, 15em); margin-top: -.12em; }
.s-wa__btns--out { align-self: flex-end; }
.s-wa__btn {
  display: flex; align-items: center; justify-content: center; gap: .4em; min-height: 2.35em; padding: .25em .6em;
  border-radius: .55em; background: #fff; color: #027eb5; font-weight: 600; text-align: center;
  box-shadow: 0 1px .5px rgba(11, 20, 26, .13); transition: background-color .15s, transform .15s var(--s-ease);
}
button.s-wa__btn:hover { background: #f5f6f6; }
button.s-wa__btn:active { transform: scale(.98); }
.s-wa__btn svg { width: 1.1em; height: 1.1em; }
.s-wa__btn.is-picked { background: #e7f6fd; }
.s-wa__btn[disabled] { color: #8696a0; cursor: default; }
.s-wa__compose { display: flex; align-items: center; gap: .45em; padding: .45em .55em .7em; background: #efeae2; flex: none; }
.s-wa__input { flex: 1; min-width: 0; display: flex; align-items: center; gap: .5em; height: 2.6em; padding: 0 .85em; border-radius: 999px; background: #fff; color: #8696a0; box-shadow: 0 1px .5px rgba(11, 20, 26, .13); overflow: hidden; white-space: nowrap; }
.s-wa__send { display: grid; place-items: center; width: 2.6em; height: 2.6em; border-radius: 50%; background: var(--s-wa-dark); color: #fff; flex: none; }
.s-wa__quick { display: flex; gap: .35em; padding: 0 .55em .45em; overflow-x: auto; scrollbar-width: none; flex: none; }
.s-wa__quick::-webkit-scrollbar { display: none; }
.s-wa__qr { flex: none; padding: .38em .75em; border-radius: 999px; background: #fff; color: #027eb5; font-weight: 600; font-size: .9em; box-shadow: 0 1px .5px rgba(11, 20, 26, .13); }

/* ---------- Instagram DM */
.s-ig { display: flex; flex-direction: column; flex: 1; min-height: 0; background: #fff; color: #000; }
.s-ig__head { display: flex; align-items: center; gap: .6em; padding: .4em .85em .65em; border-bottom: 1px solid #efefef; flex: none; }
.s-ig__head .s-av { width: 2.2em; height: 2.2em; }
.s-ig__feed { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-start; gap: .3em; padding: .8em .8em; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.s-ig__msg { max-width: 76%; padding: .5em .8em; border-radius: 1.25em; background: #efefef; line-height: 1.38; }
.s-ig__msg--in { align-self: flex-start; }
.s-ig__msg--out { align-self: flex-end; background: #3797f0; color: #fff; }
.s-ig__story { align-self: flex-start; display: flex; flex-direction: column; gap: .25em; max-width: 55%; font-size: .82em; color: #737373; }
.s-ig__story i { display: block; width: 6.2em; aspect-ratio: 9 / 16; border-radius: .8em; background: linear-gradient(160deg, #f6d1df, #e9b6c9 55%, #c98aa4); }
.s-ig__compose { display: flex; align-items: center; gap: .5em; margin: .4em .7em .8em; height: 2.7em; padding: 0 .9em; border: 1px solid #dbdbdb; border-radius: 999px; color: #8e8e8e; flex: none; }

/* ---------- Messenger */
.s-ms__msg--out { align-self: flex-end; background: #0a7cff; color: #fff; }

/* ---------- Web sohbet balonu (ziyaretçi tarafı) */
.s-wchat { display: flex; flex-direction: column; width: 19em; max-width: 100%; border-radius: 1.1em; overflow: hidden; background: #fff; box-shadow: var(--s-sh); border: 1px solid var(--s-line); }
.s-wchat__head { display: flex; align-items: center; gap: .6em; padding: .85em 1em; background: var(--s-ink); color: #fff; }
.s-wchat__feed { display: flex; flex-direction: column; gap: .4em; padding: .9em; background: var(--s-sf2); min-height: 12em; justify-content: flex-start; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
/* Sohbet akışları: içerik sığarsa alta yaslı (üstte esneyen boşluk), sığmazsa kaydırılır ve core.js en yeni mesaja iner.
   (Eskiden alta yaslı + taşanı gizli idi: uzun mesajın üstü kesiliyordu.) */
.s-wa__feed::before, .s-ig__feed::before, .s-wchat__feed::before { content: ""; flex: 1 1 auto; margin-bottom: -.38em; }
.s-wa__feed::-webkit-scrollbar, .s-ig__feed::-webkit-scrollbar, .s-wchat__feed::-webkit-scrollbar { display: none; }
.s-wchat__msg { max-width: 82%; padding: .5em .75em; border-radius: .95em; background: #fff; border: 1px solid var(--s-line); }
.s-wchat__msg--out { align-self: flex-end; background: var(--s-ink); border-color: var(--s-ink); color: #fff; }
.s-wchat__launcher { display: grid; place-items: center; width: 3.4em; height: 3.4em; border-radius: 50%; background: var(--s-ink); color: #fff; box-shadow: var(--s-sh-sm); }

/* ============================================================ Ortak parçalar */
.s-av { position: relative; flex: none; display: grid; place-items: center; width: 2.6em; height: 2.6em; border-radius: 50%; font-size: .9em; font-weight: 700; color: var(--av-f, #b00000); background: var(--av-b, #fde2e2); }
.s-av--sm { width: 1.95em; height: 1.95em; font-size: .76em; }
.s-av--lg { width: 3.3em; height: 3.3em; font-size: 1.05em; }
.s-av__ch { position: absolute; right: -.25em; bottom: -.2em; display: grid; place-items: center; width: 1.4em; height: 1.4em; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px #fff; }
.s-av__ch svg { width: 1.05em; height: 1.05em; }
.ch-ig { color: var(--s-ig); } .ch-fb { color: var(--s-fb); } .ch-wa { color: var(--s-wa); } .ch-tg { color: var(--s-tg); }
.ch-mail { color: #52525b; } .ch-web { color: var(--s-pri); } .ch-walk { color: #111; } .ch-sms { color: #0e9f6e; } .ch-tt { color: #111; }

.s-chip { display: inline-flex; align-items: center; gap: .35em; height: 1.8em; padding: 0 .62em; border-radius: 999px; font-size: .84em; font-weight: 650; white-space: nowrap; background: #f3f3f3; color: var(--s-ink2); }
.s-chip svg { width: 1.05em; height: 1.05em; }
.s-chip--sm { height: 1.55em; font-size: .76em; padding: 0 .5em; }
.s-chip--ad { background: #fff1e8; color: #b4410f; }
.s-chip--story { background: #fdeef5; color: #a61e5b; }
.s-chip--direct { background: #f3f3f3; color: #3f3f46; }
.s-chip--web { background: var(--s-pri-soft); color: var(--s-pri-ink); }
.s-chip--walk { background: #111; color: #fff; }
.s-chip--hot { background: #fdecec; color: #b42318; }
.s-chip--warm { background: #fff4dc; color: #a15c07; }
.s-chip--cold { background: #eaf2fd; color: #1d5fb8; }
.s-chip--ok { background: var(--s-ok-soft); color: var(--s-ok); }
.s-chip--warn { background: var(--s-warn-soft); color: var(--s-warn); }
.s-chip--bad { background: var(--s-bad-soft); color: var(--s-bad); }
.s-chip--ai { background: var(--s-ai-soft); color: var(--s-ai); }
.s-chip--pri { background: var(--s-pri-soft); color: var(--s-pri-ink); }
.s-chip--ink { background: var(--s-ink); color: #fff; }
.s-chip--line { background: #fff; border: 1px solid var(--s-line); color: var(--s-ink2); }
button.s-chip { cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s; }
button.s-chip--line:hover { border-color: var(--s-ink3); color: var(--s-ink); }
button.s-chip[aria-pressed="true"], button.s-chip.is-on { background: var(--s-ink); border-color: var(--s-ink); color: #fff; }

.s-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .42em; height: 2.35em; padding: 0 .95em;
  border-radius: .6em; border: 1px solid var(--s-line2); background: #fff; color: var(--s-ink);
  font-weight: 650; font-size: .92em; white-space: nowrap; line-height: 1;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s var(--s-ease), box-shadow .15s;
}
button.s-btn:hover { border-color: var(--s-ink3); }
button.s-btn:active { transform: translateY(1px); }
.s-btn--sm { height: 2em; padding: 0 .7em; font-size: .84em; }
.s-btn--lg { height: 2.8em; padding: 0 1.2em; font-size: 1em; }
.s-btn--pri { background: var(--s-pri); border-color: var(--s-pri); color: #fff; }
button.s-btn--pri:hover { background: var(--s-pri-2); border-color: var(--s-pri-2); }
.s-btn--ink { background: var(--s-ink); border-color: var(--s-ink); color: #fff; }
button.s-btn--ink:hover { background: #2a2a31; border-color: #2a2a31; }
.s-btn--ok { background: var(--s-ok); border-color: var(--s-ok); color: #fff; }
.s-btn--bad { background: #fff; border-color: #f3c6c6; color: var(--s-bad); }
.s-btn--ghost { background: transparent; border-color: transparent; color: var(--s-ink2); }
button.s-btn--ghost:hover { background: #f3f3f3; border-color: transparent; color: var(--s-ink); }
.s-btn--ai { background: var(--s-ai-soft); border-color: var(--s-ai-line); color: var(--s-ai); }
.s-btn[disabled], .s-btn.is-disabled { opacity: .45; pointer-events: none; }
.s-btn--block { width: 100%; }

.s-card { position: relative; background: var(--s-sf); border: 1px solid var(--s-line); border-radius: .85em; }
.s-card--pad { padding: .9em 1em; }
.s-card--sh { box-shadow: var(--s-sh-sm); }
.s-label { font-size: .78em; font-weight: 650; color: var(--s-ink3); letter-spacing: .01em; }
.s-muted { color: var(--s-ink3); }
.s-strong { font-weight: 700; }
.s-num { font-variant-numeric: tabular-nums; }
.s-up { color: var(--s-ok); } .s-down { color: var(--s-bad); }
.s-kbd { display: inline-grid; place-items: center; min-width: 1.6em; height: 1.6em; padding: 0 .35em; border: 1px solid var(--s-line2); border-bottom-width: 2px; border-radius: .35em; font-size: .78em; font-weight: 650; color: var(--s-ink2); background: #fff; }
.s-dot { display: inline-block; width: .55em; height: .55em; border-radius: 50%; background: var(--s-ink3); flex: none; }
.s-dot--ok { background: #22a35a; } .s-dot--warn { background: #e8a33d; } .s-dot--bad { background: #e34948; } .s-dot--pri { background: var(--s-pri); } .s-dot--ai { background: var(--s-ai); }
.s-divider { height: 1px; background: var(--s-line); border: 0; margin: 0; }

.s-field { display: flex; flex-direction: column; gap: .3em; min-width: 0; }
.s-input { display: flex; align-items: center; gap: .5em; min-height: 2.45em; padding: 0 .8em; border: 1px solid var(--s-line); border-radius: .6em; background: #fff; color: var(--s-ink); min-width: 0; overflow: hidden; white-space: nowrap; }
.s-input.is-ph { color: var(--s-ink3); }
.s-input.is-focus { border-color: var(--s-pri); box-shadow: 0 0 0 3px var(--s-pri-soft); }
.s-select { justify-content: space-between; }
.s-select::after { content: ""; width: .45em; height: .45em; border-right: 1.5px solid var(--s-ink3); border-bottom: 1.5px solid var(--s-ink3); transform: rotate(45deg) translate(-.1em, -.1em); flex: none; }
.s-caret { display: inline-block; width: 1px; height: 1.1em; margin-left: 1px; background: currentColor; vertical-align: -.15em; animation: s-blink 1s steps(1) infinite; }
@keyframes s-blink { 50% { opacity: 0; } }

/* Anahtar (switch): <button class="s-toggle" aria-pressed="true|false"> */
.s-toggle { position: relative; width: 2.5em; height: 1.45em; border-radius: 999px; background: #d4d7e1; flex: none; transition: background-color .2s; }
.s-toggle::after { content: ""; position: absolute; top: .18em; left: .18em; width: 1.09em; height: 1.09em; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .25s var(--s-ease); }
.s-toggle[aria-pressed="true"], .s-toggle.is-on { background: var(--s-ok); }
.s-toggle[aria-pressed="true"]::after, .s-toggle.is-on::after { transform: translateX(1.05em); }
.s-check { display: inline-grid; place-items: center; width: 1.25em; height: 1.25em; border-radius: .35em; border: 1.5px solid var(--s-line2); background: #fff; color: #fff; flex: none; }
.s-check.is-on, [aria-checked="true"] > .s-check, [aria-pressed="true"] > .s-check { background: var(--s-ink); border-color: var(--s-ink); }
.s-check svg { width: .85em; height: .85em; stroke-width: 3.2; opacity: 0; }
.s-check.is-on svg, [aria-checked="true"] > .s-check svg, [aria-pressed="true"] > .s-check svg { opacity: 1; }

/* Sekmeler ve bölümlü düğme: <div class="s-tabs" role="tablist"><button class="s-tab" role="tab" aria-selected> */
.s-tabs { display: flex; gap: .25em; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.s-tabs::-webkit-scrollbar { display: none; }
.s-tab { flex: none; display: inline-flex; align-items: center; gap: .4em; height: 2.1em; padding: 0 .75em; border-radius: 999px; font-size: .88em; font-weight: 650; color: var(--s-ink3); white-space: nowrap; transition: background-color .15s, color .15s; }
.s-tab:hover { color: var(--s-ink); background: #f3f3f3; }
.s-tab[aria-selected="true"], .s-tab.is-on { background: var(--s-ink); color: #fff; }
.s-tab b { display: inline-grid; place-items: center; min-width: 1.5em; height: 1.5em; padding: 0 .35em; border-radius: 999px; background: rgba(127, 127, 127, .16); font-size: .82em; }
.s-seg { display: inline-flex; padding: .2em; border-radius: .7em; background: #eef0f4; gap: .15em; }
.s-seg > button { height: 2em; padding: 0 .8em; border-radius: .52em; font-size: .86em; font-weight: 650; color: var(--s-ink3); transition: background-color .15s, color .15s, box-shadow .15s; }
.s-seg > button[aria-pressed="true"], .s-seg > button.is-on { background: #fff; color: var(--s-ink); box-shadow: 0 1px 2px rgba(15, 15, 18, .12); }

/* Liste satırı (seçilebilir) */
.s-row { position: relative; display: flex; align-items: center; gap: .75em; width: 100%; padding: .75em 1em; border-bottom: 1px solid #f2f2f2; background: var(--s-sf); text-align: left; transition: background-color .15s; }
button.s-row:hover { background: #fbfbfb; }
.s-row.is-sel, .s-row[aria-current="true"], .s-row[aria-selected="true"] { background: var(--s-pri-soft); }
.s-row.is-sel::before, .s-row[aria-current="true"]::before, .s-row[aria-selected="true"]::before { content: ""; position: absolute; left: 0; top: .55em; bottom: .55em; width: 2.5px; border-radius: 2px; background: var(--s-pri); }

/* Tablo */
.s-table { width: 100%; border-collapse: collapse; font-size: .95em; }
.s-table th { padding: .55em .8em; font-size: .8em; font-weight: 650; color: var(--s-ink3); text-align: left; border-bottom: 1px solid var(--s-line); white-space: nowrap; }
.s-table td { padding: .6em .8em; border-bottom: 1px solid #f2f2f2; white-space: nowrap; }
.s-table .r { text-align: right; }

/* Grafik: çubuklar (yükseklik --v: 0–100%) */
.s-bars { display: flex; align-items: flex-end; gap: .4em; height: 7em; }
.s-bars > i { flex: 1; height: var(--v, 50%); min-height: 3px; border-radius: .3em .3em .1em .1em; background: var(--bar, var(--s-ink)); transition: height .6s var(--s-ease); }
.s-bars > i.is-alt { background: var(--bar-alt, #d7d7d7); }
.s-meter { height: .5em; border-radius: 999px; background: #eceef3; overflow: hidden; }
.s-meter > i { display: block; height: 100%; width: var(--v, 50%); border-radius: inherit; background: var(--bar, var(--s-ink)); transition: width .6s var(--s-ease); }
.s-kpi { display: flex; flex-direction: column; gap: .15em; min-width: 0; }
.s-kpi b { font-size: 1.45em; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }

/* Yüzen kart / bildirim */
.s-float { position: absolute; z-index: 4; background: var(--s-sf); border: 1px solid var(--s-line); border-radius: .9em; box-shadow: var(--s-sh); }
.s-toast { display: flex; align-items: center; gap: .7em; padding: .7em .85em; min-width: 0; background: var(--s-sf); border: 1px solid var(--s-line); border-radius: .9em; box-shadow: var(--s-sh); }
.s-toast__t { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.s-toast__t b { font-weight: 650; }
.s-toast__t span { color: var(--s-ink3); font-size: .9em; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* Yapay zekâ balonu ve yazıyor göstergesi */
.s-aib { padding: .6em .85em; border-radius: .9em; background: var(--s-ai-soft); border: 1px solid var(--s-ai-line); color: #18181b; }
.s-aib__by { display: flex; align-items: center; gap: .35em; margin-bottom: .25em; font-size: .78em; font-weight: 700; color: var(--s-ai); }
.s-typing { display: inline-flex; align-items: center; gap: .26em; padding: .7em .85em; border-radius: 1em; background: #fff; box-shadow: 0 1px .5px rgba(11, 20, 26, .13); }
.s-typing i { width: .42em; height: .42em; border-radius: 50%; background: #8696a0; animation: s-bounce 1.1s infinite ease-in-out; }
.s-typing i:nth-child(2) { animation-delay: .15s; }
.s-typing i:nth-child(3) { animation-delay: .3s; }
.s-typing--ai { background: var(--s-ai-soft); box-shadow: none; }
.s-typing--ai i { background: var(--s-ai); }
@keyframes s-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-.28em); opacity: 1; } }

/* ============================================================ Hareket */
/* JS'in eklediği öğeler: .s-in (giriş). Statik HTML zaten görünür; animasyon yalnız yeni eklenende. */
.s-in { animation: s-in .5s var(--s-ease) both; }
@keyframes s-in { from { opacity: 0; transform: translateY(.55em) scale(.985); } to { opacity: 1; transform: none; } }
.s-in-l { animation: s-in-l .5s var(--s-ease) both; }
@keyframes s-in-l { from { opacity: 0; transform: translateX(-.8em); } to { opacity: 1; transform: none; } }
.s-out { animation: s-out .28s ease both; }
@keyframes s-out { to { opacity: 0; transform: translateY(-.3em) scale(.98); } }
.s-flash { animation: s-flash 1.2s ease; }
@keyframes s-flash { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--s-pri) 45%, transparent); } 100% { box-shadow: 0 0 0 .9em transparent; } }
.s-swap { animation: s-swap .42s var(--s-ease) both; }
@keyframes s-swap { from { opacity: 0; transform: translateY(.35em); } to { opacity: 1; transform: none; } }

/* Etkileşim ipucu: <span class="s-hint">Tıklayın</span> — ilk kullanıcı etkileşiminden sonra söner (.scn.is-touched) */
.s-hint {
  position: absolute; z-index: 6; display: inline-flex; align-items: center; gap: .4em; padding: .38em .7em .38em .55em;
  border-radius: 999px; background: var(--s-ink); color: #fff; font-size: .8em; font-weight: 650; white-space: nowrap;
  box-shadow: 0 10px 24px -10px rgba(15, 15, 18, .55); pointer-events: none;
  animation: s-hint-in .5s var(--s-ease) 1.2s both, s-hint-bob 2.4s ease-in-out 1.7s infinite;
  transition: opacity .3s;
}
.s-hint svg { width: 1.1em; height: 1.1em; }
.scn.is-touched .s-hint { opacity: 0; }
@keyframes s-hint-in { from { opacity: 0; transform: translateY(.4em); } to { opacity: 1; transform: none; } }
@keyframes s-hint-bob { 50% { transform: translateY(-.25em); } }
/* Tıklanabilir öğe vurgusu: .s-pulse (halka) */
.s-pulse { position: relative; }
.s-pulse::after { content: ""; position: absolute; inset: -3px; border-radius: inherit; border: 2px solid var(--s-pri); opacity: 0; animation: s-ring 1.8s ease-out infinite; pointer-events: none; }
.scn.is-touched .s-pulse::after { animation: none; opacity: 0; }
@keyframes s-ring { 0% { opacity: .7; transform: scale(.96); } 100% { opacity: 0; transform: scale(1.12); } }

/* Gösterim imleci (otomatik oynatma): core.js s.point(el) ile hareket eder */
.s-cursor { position: absolute; left: 0; top: 0; z-index: 20; width: 1.6em; height: 1.6em; pointer-events: none; opacity: 0; transform: translate(var(--cx, 50%), var(--cy, 50%)); transition: transform .75s var(--s-ease), opacity .25s; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); }
.s-cursor.is-on { opacity: 1; }
.s-cursor svg { width: 100%; height: 100%; }
.s-cursor::after { content: ""; position: absolute; left: -.55em; top: -.55em; width: 1.3em; height: 1.3em; border-radius: 50%; background: rgba(230, 0, 0, .35); transform: scale(0); opacity: 0; }
.s-cursor.is-click::after { animation: s-click .45s ease-out; }
@keyframes s-click { 0% { transform: scale(.2); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }

/* ============================================================ Kompozisyon yardımcıları */
/* Pencere + telefon: .s-duo > .s-win + .s-phone (telefon sağ alttan pencerenin üstüne biner; dar kapta alt alta) */
.s-duo { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); padding-right: 0; }
.s-duo > .s-phone { position: absolute; right: -1.2em; bottom: -1.6em; --ph-w: 15em; z-index: 3; }
.s-duo > .s-win { margin-right: 9.5em; }
@container scn (max-width: 640px) {
  .s-duo { gap: 1.2em; }
  .s-duo > .s-phone { position: relative; right: auto; bottom: auto; justify-self: center; }
  .s-duo > .s-win { margin-right: 0; }
}
.s-center { display: grid; place-items: center; }
.s-stack { display: flex; flex-direction: column; gap: var(--gap, .6em); min-width: 0; }
.s-hstack { display: flex; align-items: center; gap: var(--gap, .6em); min-width: 0; }
.s-grow { flex: 1; min-width: 0; }
.s-ellipsis { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* JS yoksa etkileşim ipuçları gizli */
html:not(.js) .s-hint, html:not(.js) .s-cursor { display: none; }

/* ============================================================ Kit v2 (24.11.2026) — panelin yeni çerçevesi
 * Üst çubuk: ekran adı Chrome tarzı etkin sekme (gri şerit üstünde beyaz), +, arama, tema / not / bildirim, ayraç, kullanıcı.
 * Sol şerit: gruplar ince çizgiyle ayrılır, Ayarlar en altta, sayaç çipleri (gelen kutusu turuncu, diğerleri nötr).
 * Geri almak: crm-api/writable/backups/site-kit-v1-20261124/RESTORE.sh */
.s-top--v2 { gap: .45em; background: var(--s-bg); }
.s-top--v2 .s-top__app { flex: none; margin-right: .3em; }
.s-top__tab { display: flex; align-items: center; gap: .6em; min-width: 0; max-width: 17em; height: 2.25em; padding: 0 .5em 0 .85em; border: 1px solid var(--s-line); border-radius: .6em; background: var(--s-sf); box-shadow: 0 1px 2px rgba(15, 15, 18, .06); font-weight: 650; color: var(--s-ink); white-space: nowrap; }
.s-top__tabt { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.s-top__tab .s-top__crumb { font-weight: 500; }
.s-top__x { display: grid; place-items: center; color: var(--s-ink3); flex: none; }
.s-top__new { display: grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: .5em; color: var(--s-ink3); flex: none; }
.s-top--v2 .s-top__search { width: 13em; background: var(--s-sf); }
.s-top__tools { display: flex; align-items: center; gap: .1em; margin-left: auto; flex: none; }
.s-top--v2 .s-top__search + .s-top__tools { margin-left: .35em; }
.s-top__tool, .s-top--v2 .s-top__bell { display: grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: .5em; color: var(--s-ink2); }
.s-top--v2 .s-top__bell.is-dot::after { top: .25em; right: .3em; border-color: var(--s-bg); }
.s-top__sep { width: 1px; height: 1.5em; background: var(--s-line2); margin: 0 .25em; flex: none; }
@container scn (max-width: 520px) {
  .s-top--v2 .s-top__search + .s-top__tools { margin-left: auto; }
  .s-top--v2 .s-top__bell { margin-left: 0; }
  .s-top__new, .s-top__tool, .s-top__sep { display: none; }
  .s-top__tab { max-width: 12em; }
}
.s-side__sep { display: block; width: 1.6em; height: 1px; margin: .3em 0; background: var(--s-line); flex: none; }
.s-side__end { margin-top: auto; padding-top: .35em; }
.s-side__i.is-on { border-radius: .65em; }
.s-side__i b { top: -.15em; right: -.35em; min-width: 1.6em; height: 1.45em; padding: 0 .35em; background: #f7f8fb; color: var(--s-ink2); font-size: .6em; border: 2px solid var(--s-sf); }
.s-side__i b.is-wait { background: #fff0e6; color: #c2410c; }
.s-side__i.is-on b { background: #fff; color: var(--s-ink); border-color: var(--s-ink); }
