/* Kuki CRM — tek stil dosyası. Bölümler: Tokenlar · Temel öğeler ve yazı · İskelet: sol menü, üst bar, sayfa başlığı · Düğmeler · Form alanları ve filtreler · Kartlar, listeler, boş durumlar · Rozet, çip, etiket, avatar · Tablolar · Pencereler, bildirimler, komut paleti · Giriş ve kayıt ekranları · Ana ekran · Görevler, pano, takvim, projeler · Mesai ve izin · Raporlar · Satış: müşteri, teklif, sipariş, fırsat · Sohbet · Arama · Ayarlar ve ekip · Geliştirici araçları · Yardımcı sınıflar · Diğer */
/* ── Tokenlar ────────────────────────────────────────────────────────── */
/* Tasarım değişkenleri. Açık ve koyu tema aynı sistemin iki ayrı karşılığıdır (ters çevirme yok).
   Kaynak dil: onaylı "Kuki IBM" referansı (Teklifler V4): gümüş–grafit yüzeyler, IBM Plex Sans, bölüme göre ölçülü vurgu.
   Kontrast: normal metin en az 4.5:1 (WCAG AA). Ölçüm: tools/contrast_audit (scratch). */
:root {
  color-scheme: light;
  /* yazı */
  --font-ui: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: var(--font-ui);
  /* yüzeyler */
  --bg: #eef0f2;            /* sayfa zemini: sakin gümüş */
  --surface: #fbfbfc;       /* kart, tablo, form */
  --surface-2: #f0f2f4;     /* ikincil yüzey, seçili satır, giriş zemini */
  --surface-3: #e4e7ea;     /* basılı, sekme izi */
  --rail: #e4e7eb;          /* sol menü */
  --border: #dcdfe3;
  --border-strong: #c2c7cd;
  --field: #ffffff;           /* giriş alanı: karttan bir ton açık */
  --field-line: var(--border-strong);
  /* yazı renkleri */
  --heading: #1c2228;       /* grafit */
  --text: #323941;
  --muted-strong: #48505a;
  --muted: #58606a;
  --faint: #5b626b;
  --inverse: #262c33;       /* koyu dolgu (ipucu) */
  --on-inverse: #f3f5f7;
  --on-solid: #ffffff;      /* doygun renk dolgusu üstündeki yazı */
  /* vurgu: bulunulan bölümün rengi (aşağıdaki .shell.sec-* kuralları değiştirir); bölümsüz yerlerde iş takibi mavisi */
  --brand: #425f79;         /* dolgu (beyaz yazı 6.6:1) */
  --brand-hover: #38526a;
  --brand-active: #2e455a;
  --brand-tint: #e3eaf1;
  --brand-text: #3a5670;    /* bağlantı ve vurgulu yazı */
  --accent: #425f79;        /* çizgi, nokta, çubuk */
  --on-brand: #ffffff;
  /* arama/filtre alanı: bölüm renginin çok hafif geçişi; seçim kutusu çerçevesi */
  --sec-field-a: #f2f5f8; --sec-field-b: #e5ebf1; --sec-line: #bccad8; --sec-check: #778ea4;
  --danger: #b4233a;        /* hata/silme: bölüm renklerinden ayrışan koyu kırmızı (anlamı sabit) */
  --danger-tint: #f8e2e5;
  --focus: #425f79;
  /* durum çiftleri: zemin / yazı / çizgi / dolgu */
  --b-green-bg: #e3eedb; --b-green: #2f6b2a; --b-green-line: #b9d3ab; --s-green: #4b8a3c;
  --b-amber-bg: #f6ead2; --b-amber: #7a5212; --b-amber-line: #e3c98f; --s-amber: #c48b1d;
  --b-red-bg: #f8e2e5;   --b-red: #a1263a;   --b-red-line: #e9b3bc;   --s-red: #c43a4f;
  --b-blue-bg: #e2e8f1;  --b-blue: #2d5687;  --b-blue-line: #b6c6dc;  --s-blue: #4b72a6;
  --b-purple-bg: #ebe4f3; --b-purple: #5d3f8c; --b-purple-line: #cbbbe2; --s-purple: #7b5ea7;
  --b-teal-bg: #dcefeb;  --b-teal: #20625a;   --b-teal-line: #a9d3ca;  --s-teal: #2f8a7e;
  --b-pink-bg: #f5e1ea;  --b-pink: #97325f;   --b-pink-line: #e3b2c8;  --s-pink: #b4527c;
  --b-gray-bg: #e8eaed;  --b-gray: #4f5660;   --b-gray-line: #cdd1d6;  --s-gray: #858c94;
  /* grafik serileri */
  --c1: #425f79; --c2: #c2703d; --c3: #4b8a3c; --c4: #7b5ea7; --c5: #b4527c; --c6: #2f8a7e; --c7: #c48b1d; --c8: #6f7f95;
  --series-done: #425f79; --series-created: #9aa1a9;
  --st-on_time: #4b8a3c; --st-late: #c48b1d; --st-absent: #c43a4f; --st-leave: #8a867e;
  --pr-high: #c43a4f; --pr-medium: #c48b1d;
  /* bölüm renkleri: menü grubuna göre ölçülü, düşük doygun vurgu. Başarı/hata/gecikme/uyarı renkleri bunlardan bağımsızdır. */
  --sec-work: #425f79;      /* iş takibi: mürekkep mavisi */
  --sec-sales: #665064;     /* satış: dumanlı mürdüm */
  --sec-finance: #3d6867;   /* finans: koyu petrol */
  --sec-time: #6a5a45;      /* İK ve personel: kül kahve */
  --sec-admin: #4d5663;     /* yönetim ve raporlar: arduvaz */
  --sec-ai: var(--sec-work); --sec-chat: var(--sec-work); --sec-me: var(--sec-work); --sec-search: var(--sec-work); --sec-reports: var(--sec-admin);
  /* tablo, kaydırma çubuğu */
  --row-hover: #f3f5f7; --th-bg: transparent;
  --sb-thumb: #c4c9cf; --sb-thumb-hover: #a9b0b8; --sb-track: transparent;
  /* ölçü */
  --radius-sm: 4px; --radius: 8px; --radius-lg: 12px; --radius-xl: 16px;
  --shadow: 0 1px 2px rgb(24 32 40 / .05);
  --shadow-card: 0 1px 2px rgb(24 32 40 / .05);
  --shadow-lift: 0 18px 40px -24px rgb(40 30 20 / .35);
  --shadow-float: 0 24px 60px -20px rgb(30 24 16 / .35), 0 2px 8px rgb(30 24 16 / .08);
  /* hareket */
  --ease: cubic-bezier(.22, .72, .18, 1);
  --dur-micro: 150ms; --dur-layout: 220ms; --dur-detail: 280ms; --dur-detail-out: 200ms; --dur-layer: 550ms;
  /* katman sırası */
  --z-rail: 40; --z-top: 30; --z-pop: 60; --z-dialog: 80; --z-toast: 90;
}
[data-theme=dark] {
  color-scheme: dark;
  --bg: #131518;
  --surface: #1c1f23;
  --surface-2: #24282d;
  --surface-3: #2e3238;
  --rail: #16181b;
  --field: #15171a;           /* giriş alanı: karttan koyu (gömülü) */
  --field-line: #444a52;
  --border: #30353b;
  --border-strong: #474d55;
  --heading: #eceef0;
  --text: #d3d7db;
  --muted-strong: #bfc4c9;
  --muted: #abb0b6;
  --faint: #979da4;
  --inverse: #eceef0;
  --on-inverse: #1c2228;
  --on-solid: #ffffff;
  --brand: #8eaac4;
  --brand-hover: #a3bad0;
  --brand-active: #7a97b2;
  --brand-tint: #1f2933;
  --brand-text: #9fb8cf;
  --accent: #8eaac4;
  --on-brand: #14181c;
  --sec-field-a: #1b2128; --sec-field-b: #212a33; --sec-line: #3d4c5c; --sec-check: #6f879e;
  --danger: #f0868f;
  --danger-tint: #3a1f24;
  --focus: #8eaac4;
  --b-green-bg: #1f2c1d; --b-green: #a4d394; --b-green-line: #34502c; --s-green: #7fb46d;
  --b-amber-bg: #33291a; --b-amber: #e9c47f; --b-amber-line: #5b4724; --s-amber: #d9a648;
  --b-red-bg: #3a1f24;   --b-red: #f2a0aa;   --b-red-line: #66313b;   --s-red: #e0707f;
  --b-blue-bg: #1d2633;  --b-blue: #a5bfe2;  --b-blue-line: #33465f;  --s-blue: #7e9fcc;
  --b-purple-bg: #2a2234; --b-purple: #c8b3e6; --b-purple-line: #4a3a60; --s-purple: #a68bd0;
  --b-teal-bg: #1b2c2a;  --b-teal: #94d3c7;   --b-teal-line: #2f514b;  --s-teal: #5fb3a5;
  --b-pink-bg: #33202a;  --b-pink: #ecaac8;   --b-pink-line: #5a3446;  --s-pink: #d683a8;
  --b-gray-bg: #272b30;  --b-gray: #c1c6cc;   --b-gray-line: #444a52;  --s-gray: #8c939b;
  --c1: #8eaac4; --c2: #d99a6c; --c3: #7fb46d; --c4: #a68bd0; --c5: #d683a8; --c6: #5fb3a5; --c7: #d9a648; --c8: #9aa7b8;
  --series-done: #8eaac4; --series-created: #737a82;
  --st-on_time: #7fb46d; --st-late: #d9a648; --st-absent: #e0707f; --st-leave: #8f8b84;
  --pr-high: #e0707f; --pr-medium: #d9a648;
  --row-hover: #262a2f; --th-bg: transparent;
  --sb-thumb: #444a51; --sb-thumb-hover: #59606a; --sb-track: transparent;
  --shadow: 0 1px 2px rgb(0 0 0 / .3);
  --shadow-card: 0 1px 0 rgb(255 255 255 / .02) inset;
  --shadow-lift: 0 20px 44px -24px rgb(0 0 0 / .7);
  --shadow-float: 0 28px 70px -20px rgb(0 0 0 / .65), 0 2px 10px rgb(0 0 0 / .35);
}
[data-theme=dark] {
  --sec-work: #8eaac4; --sec-sales: #bb9db6; --sec-finance: #84b5b3; --sec-time: #c2ad8d; --sec-admin: #a6b0bd;
}
/* Bölüm kimliği: kabuk (.shell.sec-*) vurgu değişkenlerini bölümün rengine çevirir. Menü yazıları nötr kalır; renk yalnız
   seçili menü satırında, sayfa bölüm etiketinde, ana işlem düğmesinde, seçili sekmede, arama/filtre alanlarında ve seçim kutularında görünür.
   Açık temada dolgu üstünde beyaz yazı en az 6:1; koyu temada dolgu açık, yazı koyu. */
.shell.sec-sales { --brand: #665064; --brand-hover: #594557; --brand-active: #4b3a4a; --brand-tint: #efe8f1; --brand-text: #5e495c; --accent: #665064; --focus: #665064;
  --sec-field-a: #f4eff6; --sec-field-b: #e7dfec; --sec-line: #cdbfd3; --sec-check: #9a849e; }
.shell.sec-finance { --brand: #3d6867; --brand-hover: #345a59; --brand-active: #2b4b4a; --brand-tint: #e2eeed; --brand-text: #355e5d; --accent: #3d6867; --focus: #3d6867;
  --sec-field-a: #eff5f4; --sec-field-b: #dfebe9; --sec-line: #b5cfcc; --sec-check: #6a918f; }
.shell.sec-time { --brand: #6a5a45; --brand-hover: #5c4e3b; --brand-active: #4d4132; --brand-tint: #efe9e1; --brand-text: #5f513e; --accent: #6a5a45; --focus: #6a5a45;
  --sec-field-a: #f6f3ee; --sec-field-b: #ebe5dc; --sec-line: #d2c7b7; --sec-check: #9c8d78; }
.shell.sec-admin, .shell.sec-reports { --brand: #4d5663; --brand-hover: #424a56; --brand-active: #373e48; --brand-tint: #e5e8ec; --brand-text: #474f5b; --accent: #4d5663; --focus: #4d5663;
  --sec-field-a: #f3f4f6; --sec-field-b: #e5e8ec; --sec-line: #c4cad1; --sec-check: #8a939e; }
[data-theme=dark] .shell.sec-sales { --brand: #bb9db6; --brand-hover: #c9b0c5; --brand-active: #a98aa4; --brand-tint: #2c2330; --brand-text: #c9adc4; --accent: #bb9db6; --focus: #bb9db6;
  --sec-field-a: #221c25; --sec-field-b: #2a222e; --sec-line: #4d3f4f; --sec-check: #8f7a8c; }
[data-theme=dark] .shell.sec-finance { --brand: #84b5b3; --brand-hover: #9ac3c1; --brand-active: #70a3a1; --brand-tint: #1c2b2b; --brand-text: #96c2c0; --accent: #84b5b3; --focus: #84b5b3;
  --sec-field-a: #182222; --sec-field-b: #1d2a2a; --sec-line: #35504f; --sec-check: #648f8d; }
[data-theme=dark] .shell.sec-time { --brand: #c2ad8d; --brand-hover: #cfbd9f; --brand-active: #b09b7b; --brand-tint: #2b261e; --brand-text: #cdb999; --accent: #c2ad8d; --focus: #c2ad8d;
  --sec-field-a: #211e19; --sec-field-b: #29251e; --sec-line: #4d4535; --sec-check: #8e7f68; }
[data-theme=dark] .shell.sec-admin, [data-theme=dark] .shell.sec-reports { --brand: #a6b0bd; --brand-hover: #b7c0cb; --brand-active: #939dab; --brand-tint: #23272d; --brand-text: #b3bcc7; --accent: #a6b0bd; --focus: #a6b0bd;
  --sec-field-a: #1c1f23; --sec-field-b: #23272c; --sec-line: #434a53; --sec-check: #7d8693; }

/* ── Temel öğeler ve yazı ────────────────────────────────────────────── */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -.012em;
  font: 400 13px/1.6 var(--font-ui)}
h1, h2, h3 { color: var(--heading); font-weight: 600; margin: 0 0 16px; letter-spacing: -.035em}
h1 { font-size: 24px; line-height: 32px}
h3 { line-height: 24px; font-size: 14px}
@media (min-width: 1024px) {
  h1 { font-size: 30px; line-height: 36px}
}
p { margin: 0 0 12px}
a { color: var(--brand-text); text-decoration: none}
a:hover { text-decoration: underline}
.mute { color: var(--muted)}
.num { font-variant-numeric: tabular-nums}
.sidebar-logo .mark { display: grid; place-items: center; letter-spacing: -.08em}
.main { flex: 1; min-width: 0; display: flex; flex-direction: column}
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px}
.kbd {
  font: 500 11px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  padding: 2px 5px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  color: var(--muted)}
@media (max-width: 640px) {
  .kbd { display: none}
}
.auth .brand .mark {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-lg);
  color: var(--on-solid);
  display: grid;
  place-items: center;
  font-weight: 700;
  background: var(--brand)}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap}
.sim-head .small { color: var(--b-blue-bg)}
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent}
h2 { line-height: 1.4; font-weight: 600}
p, li, dd { overflow-wrap: anywhere}
.eyebrow { display: block; font-weight: 600; margin-bottom: 7px; letter-spacing: .07em}
.icon-btn .dot { position: absolute; padding: 0 5px; border-radius: 99px; color: var(--on-solid); font-weight: 600; text-align: center}
[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 25%, transparent); border-color: var(--danger)}
.sidebar-logo .mark { width: 30px; height: 33px; border-radius: 9px; font-size: 25px; font-weight: 700; line-height: 1}
.list .grow { flex: 1; min-width: 0}
.confirm-card .actions-row > * { min-width: 140px}
.global-search .kbd { border-color: var(--border); min-width: 19px; text-align: center}
.task-line-title>.mute { white-space: nowrap}
td a { color: var(--heading)}
body[data-page="/settings"] .card>p.small { max-width: 760px}
.auth-story-copy .eyebrow { font-size: 10px; margin-bottom: 24px}
.topbar { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--border); display: flex; align-items: center; height: 72px}
.icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  color: var(--muted);
  background: none;
  border: 0;
  cursor: pointer;
  text-decoration: none}
.err, .ok { padding: 12px 16px; border-radius: var(--radius-lg); margin: 0 0 16px}
.dialog-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border)}
.dialog-foot { display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--border)}
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 70;
  max-width: 360px;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  animation: toast 4.5s forwards}
[aria-invalid="true"] { border-color: var(--danger)}
.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 100;
  background: var(--heading);
  color: var(--bg);
  padding: 12px 20px;
  border-radius: 8px}
.skip-link:focus { top: 12px}
@media (max-width:600px) {
  .dashboard-heading .eyebrow { font-size: 8px}
  .page-heading .eyebrow { font-size: 9px}
  .overview-label .small { display: none}
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto}
}
body { font-size: 14px; line-height: 1.65}
.sidebar-logo .mark { background: var(--surface-3); color: var(--b-blue)}
.eyebrow { font-size: 11px}
.overview-label .small { font-size: 12px}
.task-line-title>.mute { font-size: 11px}
.team-summary .small, .team-pills>span { font-size: 12px}
span.err, .inline-err { background: none; padding: 0; margin: 0; color: var(--danger); font-size: 12px}
.field-err { color: var(--danger); font-size: 12px; line-height: 16px; margin: 4px 0 0}
.small, .meta, .hint, .field-err { font-size: 12px}
.auth-story-copy .eyebrow { color: var(--b-blue-bg)}
@media (max-width:600px) {
  .eyebrow, .page-heading .eyebrow, .dashboard-heading .eyebrow { font-size: 10px}
}
.sidebar-user .mute { font-size: 10px; display: block; margin-top: 1px; color: var(--b-blue)}
.eyebrow, .page-heading .eyebrow, .dashboard-heading .eyebrow, .section-head .eyebrow { color: var(--muted-strong)}
.board-col h3 { margin: 6px 4px 17px; font-size: 13px}
.override-list h3 { font-size: 14px; margin: 0 0 8px}
[data-theme=dark] body { background: var(--bg); color: var(--text)}
[data-theme=dark] kbd, [data-theme=dark] .kbd { background: var(--surface-2); color: var(--muted-strong); border-color: var(--border-strong)}
[data-theme=dark] .skip-link { background: var(--heading); color: var(--bg)}
.pre { white-space: pre-line}
.list > li { display: flex; align-items: flex-start; border-bottom: 1px solid var(--border)}
.checklist li { display: flex; align-items: center; gap: 10px; padding: 12px 0}
.list>li { padding: 16px 0; gap: 11px}
@media (max-width:600px) {
  .list>li { padding: 15px 0}
}
.quote-mini li { padding: 12px 24px; gap: 12px}
.match-list li { padding: 10px 0; gap: 12px; align-items: center}
.match-list li.best b { color: var(--brand-text)}
.top-list li { padding: 10px 0}
.eyebrow.eb { display: inline-flex; align-items: center; gap: 7px}
.eyebrow.eb::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); opacity: .9}
mark { background: var(--s-amber); color: inherit; border-radius: 3px; padding: 0 1px}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap}
.qt-meta .small { width: 100%}
.stack span:first-child { border-radius: 4px 2px 2px 4px}
.stack span:last-child { border-radius: 2px 4px 4px 2px}
@media (max-width:820px) {
  .breadcrumb>span:first-child, .crumb-divider { display: none}
}
.saved .chip button { border: 0; background: none; padding: 0 6px; color: var(--faint); font-size: 14px}
.nav a { display: flex; align-items: center; text-decoration: none; transition: background .15s,color .15s}
.sidebar-user a { flex: 1; min-width: 0; color: var(--text); text-decoration: none}
.view-toggle a { text-decoration: none; min-height: 34px}
.hint a, p a:not(.btn):not(.text-link) { text-decoration: underline; text-underline-offset: 2px}
.menu-pop>a, .menu-pop button.link, .menu-pop label {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text);
  text-align: left;
  width: 100%;
  cursor: pointer;
  margin: 0;
  font-weight: 500}
@media (max-width:760px) {
  .chat-side-toggle:not([open])>*:not(summary) { display: none}
}
.swatch span:not(.sr-only) { display: block; width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--border); box-shadow: 0 0 0 1px #c8ced8}
*, *::before, *::after { box-sizing: border-box}
@media (prefers-reduced-motion: reduce) {}
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after { transition: none; animation: none}
}
/* Kart temeli (bileşenler bunu ezebilsin diye erken) */
/* Kart: 24px iç boşluk (dar ekranda 20, telefonda 16), 14px köşe */
.card { margin-bottom: 20px; padding: 24px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow)}
@media (max-width:1200px) {
  .card { padding: 20px}
}
@media (max-width:600px) {
  .card { margin-bottom: 16px; padding: 16px; border-radius: 12px}
}
.dashboard-side .card { padding: 20px}
/* ── İskelet: sol menü, üst bar, sayfa başlığı ───────────────────────── */
.nav svg, .icon { width: 20px; height: 20px; flex-shrink: 0}
.global-search svg { width: 16px; height: 16px; color: var(--muted); flex-shrink: 0}
.nav svg { width: 18px; height: 18px; color: var(--b-blue)}
@media (max-width:1023px) {
  .sidebar-close svg { width: 20px; height: 20px}
}
.shell { display: flex; min-height: 100vh}
.sidebar { flex-shrink: 0; display: flex; flex-direction: column; position: sticky; top: 0; border: 0; height: 100dvh}
.sidebar-logo { font-weight: 600; flex-shrink: 0; border: 0; height: auto}
.sidebar-logo span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap}
.nav { flex: 1; overflow-y: auto; display: flex; flex-direction: column; scrollbar-width: thin; scrollbar-color: var(--muted-strong) transparent}
.nav a.active { border-left-color: var(--brand)}
.sidebar-user { display: flex; align-items: center}
.sidebar-user b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis}
.topbar .title { flex: 1; min-width: 0; font-weight: 600; color: var(--heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis}
.menu-btn { display: none}
.content { width: 100%; margin: 0 auto; max-width: 1540px}
.overlay { display: none}
@media (max-width: 1023px) {
  .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 50; transform: translateX(-100%); transition: transform .2s}
  .shell.open .sidebar { transform: none}
  .shell.open .overlay { display: block; position: fixed; inset: 0; background: rgb(0 0 0 / .4); z-index: 40}
  .menu-btn { display: inline-grid}
}
.topbar h1.title { font-size: 16px; line-height: 24px; margin: 0}
.actions { display: flex; gap: 8px; align-items: center}
.section-head { display: flex; align-items: center; justify-content: space-between}
.auth .brand { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--heading); margin-bottom: 24px}
[hidden] { display: none}
.row > * { flex: 1 1 160px}
.impersonation {
  top: 0;
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  color: var(--b-amber);
  font-size: 13px;
  position: relative}
.impersonation button { padding: 4px 12px; font-size: 13px}
.card > :last-child { margin-bottom: 0}
.confirm-card .actions-row { display: flex; gap: 12px; justify-content: center; margin-top: 24px; flex-wrap: wrap}
.section-head { margin-bottom: 20px; gap: 12px}
.section-head h2 { margin: 0}
.sidebar-logo { text-decoration: none}
.workspace-label { flex-shrink: 0}
.workspace-label div { min-width: 0}
.workspace-label strong { line-height: 1.7}
.workspace-label div>span { line-height: 1.7}
.nav a { border-left: 0}
.nav a.active:after { content: ""; width: 5px; height: 5px; border-radius: 50%; margin-left: auto; background: var(--s-blue); display: none}
.topbar { padding: 0 36px; background: var(--surface); border-color: var(--border); gap: 18px; flex-shrink: 0}
.breadcrumb { display: flex; gap: 13px; align-items: center; flex: 1; min-width: 0; color: var(--muted)}
.breadcrumb strong { font-weight: 600; color: var(--heading); overflow: hidden; text-overflow: ellipsis; white-space: nowrap}
.breadcrumb>span:first-child { white-space: nowrap; max-width: 190px; overflow: hidden; text-overflow: ellipsis}
.crumb-divider { color: var(--faint)}
.global-search { display: flex; align-items: center; gap: 8px; max-width: 260px; width: 25vw}
.global-search input { border: 0; box-shadow: none; background: none; padding: 7px 0; min-width: 0; height: 34px !important}
.content { padding: 32px 36px 20px}
.page-heading, .dashboard-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px}
.page-heading h1, .dashboard-heading h1 { font-size: 30px; line-height: 1.25; font-weight: 600; margin: 0 0 9px}
.page-heading p, .dashboard-heading p { margin: 0}
.page-heading .actions { flex-shrink: 0; align-self: center}
.page-heading>div:first-child { min-width: 0}
.page-heading h1 { overflow-wrap: anywhere}
.attendance-widget .section-head { margin-bottom: 9px}
.attendance-widget .section-head .icon { width: 18px}
.section-nav {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  white-space: nowrap;
  margin: 0 0 24px;
  padding: 5px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  scrollbar-width: thin}
.section-nav a { padding: 9px 14px; border-radius: 6px; color: var(--muted)}
.saved .chip a { color: var(--text); text-decoration: none}
.section-nav a:hover { background: var(--brand-tint); color: var(--brand-text); text-decoration: none}
.person span:last-child { font-weight: 500; color: var(--heading); overflow: hidden; white-space: nowrap}
.auth-split .brand { display: none}
.impersonation { background: var(--b-amber-bg); border-bottom: 1px solid var(--s-amber)}
body:has(.impersonation) .sidebar { top: 0}
@media (min-width:1600px) {
  .content { padding-top: 40px}
}
@media (max-width:1200px) {
  .content { padding: 28px 25px 20px}
  .topbar { padding: 0 25px}
}
@media (max-width:1023px) {
  .sidebar { z-index: 60}
  .shell.open .overlay { z-index: 50; background: rgb(24 38 27 / .45); backdrop-filter: blur(2px)}
  .topbar { height: 64px; padding: 0 22px}
  .content { padding: 26px 22px 18px}
  .global-search { width: 230px}
}
@media (max-width:820px) {
  .page-heading h1 { font-size: 26px}
}
@media (max-width:600px) {
  .topbar { height: 62px; padding: 0 16px; gap: 10px}
  .content { padding: 24px 16px 16px}
  .global-search { display: none}
  .page-heading { align-items: flex-start; flex-wrap: wrap; margin-bottom: 22px; gap: 15px}
  .page-heading h1 { font-size: 25px}
  .page-heading .actions { flex-wrap: wrap}
}
.empty p { font-size: 11px; color: var(--muted); max-width: 340px; margin: 5px auto 15px}
@media (max-width:600px) {
  .dashboard-heading p { font-size: 11px; max-width: 230px}
  .page-heading p { font-size: 11px}
}
.overview-label { margin-bottom: 12px}
@media (max-width:600px) {
  .section-head { margin-bottom: 17px}
  .section-nav a { padding: 10px 12px}
  #schedule .section-head { flex-wrap: wrap}
}
.nav a.active:hover { background: var(--b-blue-bg); color: var(--b-blue)}
.sidebar-user { border-color: var(--muted)}
.breadcrumb, .global-search input { font-size: 12px}
.page-heading p, .dashboard-heading p { font-size: 14px; color: var(--muted)}
.attendance-widget .section-head .icon { color: var(--b-blue)}
.section-nav a { font-size: 13px}
.overview-label h2 { font-size: 16px; font-weight: 600}
.dashboard-side h2, h2 { font-size: 16px}
@media (max-width:600px) {
  .section-head h2 { font-size: 15px}
}
.sidebar-brand-row { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0}
.sidebar-logo { gap: 0; display: flex; align-items: flex-start; flex-direction: column}
.sidebar-logo .wordmark { font-weight: 700; line-height: 1.05}
.sidebar-logo .brand-tagline { font-size: 10px; letter-spacing: .025em; line-height: 1.8; font-weight: 500; margin-top: 3px; color: var(--faint)}
.sidebar-close { display: none}
.workspace-label { border-bottom: 1px solid var(--b-blue-line)}
.workspace-symbol {
  display: grid;
  place-items: center;
  font-weight: 600;
  flex-shrink: 0;
  border-color: var(--muted)}
.workspace-label div>span { font-size: 10px}
.workspace-label strong { font-weight: 600; max-width: 157px}
.nav { padding: 0 0 20px; min-height: 0}
.nav-label { flex-shrink: 0}
.nav-label:first-child { padding-top: 0}
.nav a {
  position: relative;
  flex-shrink: 0;
  line-height: 1.5}
.sidebar a:focus-visible, .sidebar button:focus-visible { outline: 2px solid var(--c1); outline-offset: 3px}
.sidebar-user { gap: 10px; flex-shrink: 0}
.sidebar-user b { font-size: 12px; font-weight: 600}
@media (max-width:1023px) {
  .sidebar { max-width: calc(100vw - 48px)}
  .sidebar-brand-row { height: 82px}
  .sidebar-close { display: grid; place-items: center; width: 36px; height: 36px; min-height: 36px; padding: 8px; border: 0; border-radius: 9px}
  .workspace-label { margin-bottom: 18px}
  .sidebar-user { padding: 15px 3px}
}
@media (max-height:750px) {
  .sidebar-brand-row { height: 73px}
  .workspace-label { margin-top: 0; margin-bottom: 14px; padding-top: 8px; padding-bottom: 13px}
  .nav-label { padding-top: 17px}
  .nav { gap: 2px}
  .sidebar-user { padding-top: 12px; padding-bottom: 12px}
}
.workspace-label { border-bottom-color: var(--muted)}
.workspace-label div>span { color: var(--faint)}
@media (max-width:640px) {
  .section-nav {
    scroll-snap-type: x proximity;
    -webkit-mask-image: linear-gradient(90deg,var(--inverse) 85%,transparent);
    mask-image: linear-gradient(90deg,var(--inverse) 85%,transparent);
    padding-right: 32px}
  .section-nav a { scroll-snap-align: start}
}
[data-theme=dark] .section-nav a { color: var(--muted-strong)}
[data-theme=dark] .page-heading p, [data-theme=dark] .dashboard-heading p, [data-theme=dark] .content p { color: var(--muted-strong)}
.menu-details { position: relative; display: inline-block}
.menu-details>summary { list-style: none; cursor: pointer}
.menu-details>summary::-webkit-details-marker { display: none}
.menu-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgb(15 23 42 / .14);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px}
.menu-pop>a:hover, .menu-pop button.link:hover, .menu-pop label:hover { background: var(--surface-2); text-decoration: none}
.menu-pop form { margin: 0}
@media (max-width:640px) {
  .menu-pop { right: auto; left: 0}
}
[data-theme=dark] .menu-pop { background: var(--surface); border-color: var(--border-strong); box-shadow: 0 10px 30px #0008}
.nav-count {
  margin-left: auto;
  padding: 0 6px;
  border-radius: 99px;
  color: var(--on-solid);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center}
.nav-group { display: flex; flex-direction: column}
button.nav-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  letter-spacing: .065em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--faint);
  padding: 18px 12px 7px;
  border-radius: 6px}
button.nav-label:hover { color: var(--b-blue-bg)}
[data-theme=dark] button.nav-label { background: none; border-color: currentColor}
[data-theme=dark] button.nav-label:hover { background: none}
button.nav-label .chev { width: 14px; height: 14px; transition: transform .15s; opacity: .8}
.nav-group.collapsed .chev { transform: rotate(-90deg)}
.nav-group.collapsed .nav-items { display: none}
.nav-items { display: flex; flex-direction: column}
.nav a .icon { opacity: 1}
.cmdk-btn { font-size: 12px; padding: 6px 10px; border-radius: 8px}
.page-intro { color: var(--muted); margin: -8px 0 24px}
.bottom-link { margin-top: 15px}
/* ── Düğmeler ────────────────────────────────────────────────────────── */
/* İki boy: normal (40px) ve küçük (.sm / .small, 32px). Türler: .primary, .danger, .danger-outline, .link */
button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 9px 15px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 2px rgb(30 40 30 / .03);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  cursor: pointer;
  text-decoration: none;
  transition: background .18s, border-color .18s, box-shadow .18s}
button:hover, .btn:hover { background: var(--surface-2); text-decoration: none}
button:disabled { opacity: .5; cursor: not-allowed}
button.sm, .btn.sm, button.small, .btn.small { min-height: 32px; height: auto; padding: 5px 12px; font-size: 13px; line-height: 20px}
button.primary, .btn.primary { background: var(--brand); border-color: var(--brand); color: var(--on-solid)}
button.primary:hover, .btn.primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); box-shadow: 0 3px 8px rgb(30 60 40 / .13)}
button.primary:active { background: var(--brand-active)}
button.danger { color: var(--danger); border-color: var(--border-strong)}
button.danger:hover { background: var(--danger-tint)}
button.danger-outline { background: var(--surface); color: var(--b-red); border: 1px solid var(--b-red-line)}
button.danger-outline:hover { background: var(--b-red-bg)}
button.link { min-height: 30px; padding: 0; border: 0; background: none; box-shadow: none; color: var(--brand-text)}
button.link:hover { background: none; text-decoration: underline}
button.link.danger { color: var(--b-red)}
[data-theme=dark] button, [data-theme=dark] .btn { background: var(--surface-2); color: var(--heading); border-color: var(--border-strong)}
[data-theme=dark] button.primary, [data-theme=dark] .btn.primary { background: var(--brand); border-color: var(--brand)}
[data-theme=dark] button.primary:hover, [data-theme=dark] .btn.primary:hover { background: var(--brand-hover)}
[data-theme=dark] button.link { background: none; color: var(--brand-text)}
[data-theme=dark] button.danger, [data-theme=dark] button.link.danger { color: var(--danger)}
[data-theme=dark] button.danger-outline { background: transparent}
.icon-btn:hover { background: var(--surface-2); color: var(--heading); text-decoration: none}
.icon-btn { min-width: 40px; min-height: 40px; padding: 9px; box-shadow: none}
.sidebar-user .icon-btn { padding: 5px; border: 0; background: none; width: 34px; height: 36px; border-radius: 8px; color: var(--b-blue)}
.topbar>.icon-btn { border: 1px solid var(--border); border-radius: 11px}
.attendance-widget .btn { justify-content: space-between}
@media (max-width:600px) {
  .topbar>.icon-btn { min-width: 38px; width: 38px}
  .checkin .btn { width: 100%}
}
@media (max-width:600px) {}
@media (max-width:600px) {
  .page-heading .actions .btn { font-size: 13px}
}
.sidebar-user .icon-btn { min-width: 34px}
.sidebar-user .icon-btn:hover { background: var(--s-blue); color: var(--on-solid)}
[data-theme=dark] .icon-btn { background: transparent; color: var(--muted-strong); border-color: var(--border)}
.line-actions .icon-btn { width: 32px; height: 32px; padding: 0}
.quick-replies .btn, .quick-replies button { min-height: 32px}
.cmsg-actions .link { min-height: 24px}
a.danger { color: var(--danger)}
/* ── Form alanları ve filtreler ──────────────────────────────────────── */
/* Tek boy: 42px yükseklik, 14px yazı (telefonda 16px: iOS yakınlaştırmasın). Etiket üstte, 13px kalın. */
label { display: block; margin: 18px 0 7px; color: var(--text); font-size: 13px; font-weight: 600}
label.check { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; margin: 0; font-weight: 400; cursor: pointer}
input, select, textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--heading);
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  transition: box-shadow .15s, border-color .15s}
input:not([type=checkbox]):not([type=radio]), select { height: 42px}
textarea { resize: vertical; min-height: 78px}
input::placeholder, textarea::placeholder { color: var(--faint)}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent)}
input:disabled, select:disabled, textarea:disabled { background: var(--surface-2); color: var(--muted); cursor: not-allowed}
input[type=checkbox], input[type=radio] { flex-shrink: 0; width: 16px; height: 16px; padding: 0; accent-color: var(--brand)}
input[type=file] { padding: 6px; height: auto; font-size: 12px}
input[type=file]::file-selector-button { margin-right: 12px; padding: 7px 11px; border: 0; border-radius: 5px; background: var(--brand-tint); color: var(--brand-text); font-family: inherit; cursor: pointer}
@media (max-width:600px) {
  input, select, textarea { font-size: 16px}
}
[data-theme=dark] input, [data-theme=dark] select, [data-theme=dark] textarea { color: var(--heading); border-color: var(--border-strong)}
[data-theme=dark] label.check { background: var(--surface-2); color: var(--text)}
fieldset { border: 0; padding: 0; margin: 16px 0}
legend { font-weight: 500; margin-bottom: 8px; padding: 0}
.row { display: flex; flex-wrap: wrap; align-items: flex-end}
.row > button { flex: 0 0 auto}
.row label { margin-top: 0}
.err { background: var(--danger-tint); color: var(--danger)}
.checkin { display: flex; align-items: center; gap: 16px; flex-wrap: wrap}
.checkin b { color: var(--heading)}
.filters { display: flex; flex-wrap: wrap; align-items: center; margin-bottom: 16px}
.filters input[type=search] { width: auto}
.filters select { flex: 0 1 180px; width: auto}
details.advanced > summary { font-weight: 500; color: var(--brand-text)}
.dialog-body .row, form.card .row { align-items: flex-start}
.view-toggle { display: inline-flex; overflow: hidden; border: 1px solid var(--border); padding: 3px; border-radius: 9px; background: var(--surface-3)}
.view-toggle a.on { font-weight: 500; background: var(--surface); box-shadow: 0 1px 3px rgb(20 40 20 / .07)}
.saved { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 12px}
.checklist { list-style: none; margin: 0 0 12px; padding: 0}
.checklist li:last-child { border-bottom: 0}
.checklist .done-text { text-decoration: line-through; color: var(--muted)}
.checklist form { margin: 0}
.row { gap: 14px}
.row>* { min-width: 0}
.view-toggle { gap: 3px}
.view-toggle a { display: flex; align-items: center; padding: 6px 18px; border-radius: 6px}
.filters { gap: 10px}
.task-filters { padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; margin: 18px 0}
.task-filters input[type=search] { flex: 1 1 230px}
.filter-details { flex: 0 0 auto}
.filter-details[open] { flex-basis: 100%; border-top: 1px solid var(--border); padding-top: 12px}
.filter-details summary {
  list-style: none;
  font-weight: 500;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 10px;
  font-size: 13px;
  color: var(--muted-strong)}
.filter-details summary::-webkit-details-marker { display: none}
.filter-details[open] summary span { transform: rotate(45deg)}
.stats .card { padding: 20px; color: var(--muted); border: 1px solid var(--border); font-size: 11px; text-decoration: none}
.project-card .filters { padding-top: 13px; border-top: 1px solid var(--border)}
.checkin { padding: 24px}
@media (max-width:600px) {
  .checkin { padding: 16px}
}
details.advanced { padding: 14px; border: 1px solid var(--border); border-radius: 9px; margin-top: 20px; background: var(--surface-2)}
details.advanced summary { font-size: 12px}
@media (max-width:600px) {
  .task-filters { padding: 12px}
  .task-filters>input[type=search] { flex-basis: 100%}
  .task-filters>select { flex: 1; min-width: 0}
  .filter-details { flex-basis: 100%}
  .filter-details summary { justify-content: space-between; font-size: 13px}
  .view-toggle a { padding: 7px 15px}
  .filters select { max-width: 100%}
  .checkin { gap: 15px}
  .task-layout .row>div { flex-basis: 100%}
  .dialog-body .row>div { flex-basis: 100%}
  .row>button { min-height: 42px}
}
@media (max-width:600px) {
  #schedule td input:not([type=checkbox]) { width: 100%; min-width: 0}
  #schedule tr:has(.field-err) { display: block}
}
.view-toggle a { font-size: 13px}
.view-toggle a.on { color: var(--b-blue)}
.missing-card { border-left: 3px solid var(--danger)}
.project-card { padding: 24px; border-top-width: 3px}
.confirm-card { padding: 35px; max-width: 470px; margin: 50px auto}
.checkin { background: var(--b-blue-bg); border-color: var(--b-blue-line)}
@media (max-width:600px) {
  .view-toggle a { font-size: 12px}
}
.view-toggle a { color: var(--muted-strong)}
.auth input { height: 47px; background: var(--surface)}
[data-theme=dark] .view-toggle a { color: var(--muted-strong)}
[data-theme=dark] .view-toggle a.on { background: var(--surface-2); color: var(--heading)}
.overdue td:first-child, .overdue.card, p.overdue { box-shadow: inset 2px 0 0 #c87b66}
.auth .card { padding: 35px; border: 1px solid var(--border); box-shadow: 0 10px 40px rgb(30 45 25 / .04); max-width: 440px; width: 100%}
.stats .card { margin: 0}
.project-grid .card { margin: 0}
.auth-split .card { border: 0; box-shadow: none; background: none; margin: 0; max-width: 450px; padding: 28px}
.metric.featured { background: var(--b-blue-bg); border-color: var(--b-blue-line)}
[data-theme=dark] .card, [data-theme=dark] dialog, [data-theme=dark] .topbar, [data-theme=dark] .section-nav, [data-theme=dark] .view-toggle, [data-theme=dark] .board-card, [data-theme=dark] .toast {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border)}
[data-theme=dark] .task-filters, [data-theme=dark] .attendance-widget, [data-theme=dark] .checkin, [data-theme=dark] .dialog-foot, [data-theme=dark] .dialog-head, [data-theme=dark] details.advanced, [data-theme=dark] .metric.featured, [data-theme=dark] .sim-chat {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text)}
.import-form input[type=file] { position: absolute; width: 1px; opacity: 0}
.import-form:focus-within label { outline: 2px solid var(--brand)}
.notice .row { gap: 8px}
.activity-form .row { align-items: flex-start}
.settings-narrow { max-width: 760px}
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; max-height: 200px; overflow-y: auto}
@media (max-width:760px) {
  .check-grid { grid-template-columns: 1fr}
}
.chip-radio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--border-strong, var(--b-blue-line));
  border-radius: 999px;
  cursor: pointer;
  font-weight: 500;
  margin: 0}
.chip-radio:has(input:checked) { border-color: var(--accent, var(--brand)); background: var(--accent-tint, var(--b-blue-bg))}
.swatch { cursor: pointer; margin: 0; position: relative}
.swatch input { position: absolute; opacity: 0}
.swatch input:checked + span { box-shadow: 0 0 0 2px #1f2430}
.swatch input:focus-visible + span { outline: 2px solid var(--s-blue); outline-offset: 3px}
/* ── Kartlar, listeler, boş durumlar ─────────────────────────────────── */
.card.flush { overflow: hidden; padding: 0}
summary { cursor: pointer; font-weight: 600; color: var(--heading)}
details[open] > summary { margin-bottom: 8px}
.cols { display: grid; gap: 22px; grid-template-columns: minmax(0,1fr) minmax(280px,.46fr)}
.empty { text-align: center; color: var(--muted)}
.qr-box svg { width: 100%; height: auto; display: block}
.empty svg { margin-bottom: 8px; width: 50px}
.empty b { display: block; color: var(--heading); font-weight: 600; margin-bottom: 4px; font-size: 13px; margin-top: 8px}
.list { list-style: none; margin: 0; padding: 0}
.list > li:first-child { padding-top: 0}
.list > li:last-child { border-bottom: 0; padding-bottom: 0}
.list .meta { line-height: 16px; margin-top: 5px; color: var(--muted); font-size: 12px}
dl.details { display: grid; grid-template-columns: auto 1fr; margin: 0}
dl.details dt { color: var(--muted)}
dl.details dd { margin: 0; color: var(--heading); min-width: 0}
.hint { margin: 4px 0 0; margin-top: 7px; color: var(--b-blue)}
.hint, .small, .meta, .field-err { line-height: 1.6}
.stats a.card:hover { border-color: var(--s-blue); box-shadow: 0 3px 10px rgb(30 45 30 / .05)}
.card-heading { padding: 23px 24px 0}
.task-layout>.card, .task-layout>div { min-width: 0}
.task-layout .details { gap: 15px 12px; font-size: 13px}
body[data-page="/settings"] .page>form.card, body[data-page="/settings"] .page>div.card { max-width: none}
body[data-page="/settings"] .card { scroll-margin-top: 95px}
body[data-page="/settings"] .card>h2 { margin-bottom: 20px}
.cal-day {
  min-height: 104px;
  padding: 6px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0}
@media (max-width: 760px) {
  .cal-day { min-height: 0; border-right: 0; padding: 10px 16px}
}
@media (min-width:1600px) {
  .dashboard-side .card { padding: 25px}
}
@media (max-width:820px) {
  .dashboard-side .card { margin: 0}
  .cols { grid-template-columns: 1fr}
}
.dashboard-metrics .metric { padding: 20px 20px 16px}
@media (max-width:1200px) {
  .dashboard-metrics .metric { padding: 17px 15px}
}
@media (max-width:600px) {
  .stats .card, .dashboard-metrics .metric { padding: 16px}
  .card.flush { padding: 0}
  .card-heading { padding: 20px 19px 0}
  .dialog-body .hint { font-size: 11px}
  .auth-split .card { padding: 20px}
  .auth .card { max-width: 440px}
  .dashboard-side>.card { order: 1; margin-bottom: 16px; width: 100%}
}
.kpi-grid .card { margin: 0}
.m-0 { margin: 0}
.card-pad { padding: 20px 24px 12px; margin: 0}
.card-pad-x { padding: 18px 24px 12px; flex-wrap: wrap; gap: 4px 12px}
.stack { display: flex; gap: 2px; height: 10px; min-width: 140px; border-radius: 4px}
.load-track span { display: block; height: 100%; border-radius: 6px}
.story-lines span { display: block; width: 15px; height: 40%; border-radius: 4px; transform: skewY(-15deg)}
.stack span { border-radius: 2px; outline-offset: 2px}
@media (max-width:640px) {
  .card-pad { padding: 16px 16px 8px; flex-wrap: wrap; gap: 8px}
  .card-pad-x { padding: 16px 16px 10px}
  .stack { min-width: 100px}
}
[data-theme=dark] .hint { color: var(--muted-strong)}
.notice { padding: 10px 14px; border-radius: 8px; font-size: 13px; margin: 0 0 16px}
.notice.amber { background: var(--b-amber-bg); color: var(--b-amber)}
.notice.red { background: var(--b-red-bg); color: var(--b-red)}
.notice.green { background: var(--b-green-bg); color: var(--b-green)}
.notice.blue { background: var(--b-blue-bg); color: var(--b-blue)}
.chip form { margin: 0}
.notice form { margin: 0}
.chat-shell>.card { margin: 0}
.chat-main>.notice { margin: 12px 16px}
.cmsg-edit summary { list-style: none; cursor: pointer; color: var(--brand-text)}
.ack-list summary { cursor: pointer}
a.card.kpi { text-decoration: none; color: inherit}
a.card.kpi:hover { box-shadow: 0 0 0 2px var(--brand)}
.sim-people li.sim-on { background: var(--brand-tint); margin: 0 -12px; padding-left: 12px; padding-right: 12px; border-radius: var(--radius)}
.pinned-bar .list li { padding: 6px 0}
.search-groups>.card { margin: 0}
a.card.kpi, a.card { transition: transform .12s, box-shadow .12s}
a.card.kpi:hover, a.card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgb(30 50 90 / .35)}
.empty svg { color: var(--brand-text); background: var(--brand-tint); border-radius: 14px; padding: 9px; height: 50px}
.public-quote .card:first-of-type { border-left: 5px solid var(--pq-accent)}
/* ── Rozet, çip, etiket, avatar ──────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; white-space: nowrap}
.badge.gray { background: var(--b-gray-bg); color: var(--b-gray)}
.badge.blue { background: var(--b-blue-bg); color: var(--b-blue)}
.badge.green { background: var(--b-green-bg); color: var(--b-green)}
.badge.amber { background: var(--b-amber-bg)}
.badge.red { background: var(--b-red-bg); color: var(--b-red)}
.tag { display: inline-block; line-height: 16px; color: var(--muted); margin: 0 4px 0 0; text-decoration: none}
.tag:hover { color: var(--heading); text-decoration: none}
.avatar { flex-shrink: 0; display: inline-grid; place-items: center; font-weight: 600; user-select: none}
.person { display: inline-flex; align-items: center; min-width: 0}
.person span:last-child { text-overflow: ellipsis}
.list li.unread { font-weight: 500}
.list li.unread::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); margin-top: 6px; flex-shrink: 0}
.badge.purple { background: var(--b-purple-bg); color: var(--b-purple)}
.project-chip { align-items: center; gap: 6px; text-decoration: none}
.project-chip::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--chip, var(--brand))}
.saved .chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 4px 3px 10px;
  border-radius: 99px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px}
.badge { font-weight: 600; border-radius: 6px; gap: 5px}
.badge::before { content: ""; width: 4px; height: 4px; background: currentColor; border-radius: 50%; flex-shrink: 0}
.tag { padding: 3px 7px; border: 1px solid var(--border); border-radius: 5px}
.avatar { border-radius: 11px}
.avatar.sm { width: 30px; height: 30px; border-radius: 9px; font-size: 10px}
.person { gap: 10px}
.topbar .icon-btn .dot { background: var(--s-red); color: var(--on-solid); width: auto; font-size: 10px; font-weight: 700; min-width: 18px; height: 18px; line-height: 14px; padding: 0 4px;
  top: 0; right: 0; transform: translate(42%, -42%); border: 2px solid var(--surface); box-sizing: border-box; margin: 0; letter-spacing: -.02em}
.count-pill {
  background: var(--surface-2);
  color: var(--muted);
  padding: 3px 7px;
  border-radius: 5px;
  margin-left: 5px;
  vertical-align: middle;
  font-size: 12px}
.personal-summary {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  padding-top: 15px;
  margin-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 12px}
.task-table td:first-child .project-chip { margin-top: 6px; font-size: 12px}
.task-table td:first-child .badge { padding: 2px 5px}
.task-filters>.badge { order: 10}
@media (max-width:600px) {
  .task-line>.badge { margin-left: 19px}
  .person span:last-child { max-width: 130px}
}
.badge, .task-line>.badge { font-size: 11px; line-height: 17px; padding: 4px 9px}
.task-table td:first-child .badge { font-size: 10px}
.tag { background: var(--surface-2); font-size: 11px}
.badge.green::before {
  content: "✓";
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  font-size: 11px;
  line-height: 1;
  font-weight: 700}
.sidebar-user .avatar { width: 36px; height: 36px; border-radius: 50%; font-size: 11px; border: 1px solid var(--b-blue-line); border-color: var(--s-blue)}
.badge.amber { color: var(--b-amber)}
@media (max-width:640px) {
  .workload-table td:first-child .avatar { display: none}
}
[data-theme=dark] .badge.amber { color: var(--b-amber)}
[data-theme=dark] .tag { background: var(--surface-2); color: var(--text); border-color: var(--border-strong)}
.ok { background: var(--brand-tint); color: var(--brand-text)}
.chip {
  align-items: center;
  gap: 4px;
  margin: 2px 4px 2px 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  line-height: 20px;
  padding: 4px 11px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none}
.chip.ok { background: var(--b-green-bg); border-color: var(--s-green); color: var(--b-green)}
.chip.warn { background: var(--b-amber-bg); border-color: var(--s-amber); color: var(--b-amber)}
.chips { display: flex; flex-wrap: wrap; gap: 2px}
.chip-x { border: 0; background: none; padding: 0 2px; min-height: 0; height: auto; font-size: 11px; color: var(--muted-strong); cursor: pointer}
.cmsg .avatar { flex-shrink: 0; margin-top: 2px}
.cmsg.deleted .avatar { opacity: .5}
.chips-row { display: flex; flex-wrap: wrap; gap: 8px}
.badge.teal { background: var(--b-teal-bg); color: var(--b-teal)}
.badge.pink { background: var(--b-pink-bg); color: var(--b-pink)}
.avatar.av-0 { background: var(--b-blue-bg); color: var(--brand-text)}
.avatar.av-1 { background: var(--b-blue-bg); color: var(--b-blue)}
.avatar.av-2 { background: var(--b-teal-bg); color: var(--b-teal)}
.avatar.av-3 { background: var(--b-purple-bg); color: var(--b-blue)}
.avatar.av-4 { background: var(--b-green-bg); color: var(--b-green)}
.avatar.av-5 { background: var(--surface-3); color: var(--b-red)}
.avatar.av-6 { background: var(--b-amber-bg); color: var(--b-amber)}
.avatar.av-7 { background: var(--b-blue-bg); color: var(--b-blue)}
[data-theme=dark] .avatar.av-0, [data-theme=dark] .avatar.av-1, [data-theme=dark] .avatar.av-2, [data-theme=dark] .avatar.av-3, [data-theme=dark] .avatar.av-4, [data-theme=dark] .avatar.av-5, [data-theme=dark] .avatar.av-6, [data-theme=dark] .avatar.av-7 { filter: saturate(.9)}
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; vertical-align: middle; background: var(--s-blue)}
.dot-blue { background: var(--c8)}
.dot-amber { background: var(--s-amber)}
.dot-green { background: var(--c3)}
.dot-red { background: var(--s-red)}
.dot-purple { background: var(--c4)}
.dot-teal { background: var(--c6)}
.dot-pink { background: var(--c5)}
.dot-gray { background: var(--s-blue)}
.chip { display: inline-flex; border-radius: 99px}
.chip-orange { background: var(--b-amber-bg); color: var(--b-amber)}
.chip-blue { background: var(--b-blue-bg); color: var(--b-blue)}
.chip-pink { background: var(--b-pink-bg); color: var(--b-pink)}
.chip-amber { background: var(--b-amber-bg); color: var(--b-amber)}
.chip-green { background: var(--b-green-bg); color: var(--b-green)}
.chip-purple { background: var(--b-purple-bg); color: var(--b-purple)}
.chip-teal { background: var(--b-teal-bg); color: var(--b-teal)}
.lock-note { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: 12px; margin-top: 8px}
.mention { color: var(--brand-text); font-weight: 600}
.sim-head { background: var(--s-blue); color: var(--on-solid); padding: 12px 16px; display: flex; gap: 8px; align-items: baseline}
.toast {
  background: var(--inverse);
  border: 1px solid var(--s-blue);
  border-left: 3px solid var(--s-blue);
  color: var(--on-inverse);
  box-shadow: 0 8px 30px rgb(25 40 25 / .12);
  font-size: 12px}

.tag-chip {
  --h: 210;
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  background: hsl(var(--h) 70% 92%);
  color: hsl(var(--h) 60% 26%);
  white-space: nowrap}
.board-card .avatar.sm { width: 24px; height: 24px; border-radius: 50%; font-size: 11px; flex: none}
.deal-card .avatar { position: relative; z-index: 1}
.tag.tag-chip {
  border: 0;
  padding: 1px 8px;
  border-radius: 999px;
  background: hsl(var(--h) 70% 92%);
  color: hsl(var(--h) 60% 26%);
  margin: 0 4px 2px 0}
.tag.tag-chip:hover { filter: brightness(.96); text-decoration: underline}
.task-dot { width: 7px; height: 7px; flex-shrink: 0; border: 1.5px solid var(--s-blue); border-radius: 50%; margin-right: 1px}
.task-line.late .task-dot { border-color: var(--danger)}
.compact-list .task-dot { display: none}
.task-dot { border-color: var(--s-blue)}
.amber-dot { background: var(--s-amber)}
.gray-dot { background: var(--faint)}
.green-dot { background: var(--s-blue)}
/* ── Tablolar ────────────────────────────────────────────────────────── */
table { width: 100%; border-collapse: collapse}
th {
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  letter-spacing: .02em;
  font-weight: 600;
  border-color: var(--border);
  font-size: 12px;
  background: var(--surface-2);
  color: var(--b-blue)}
td { border-bottom: 1px solid var(--border); vertical-align: middle; font-size: 13px}
tr:last-child td { border-bottom: 0}
tbody tr:hover td, table tr:hover td { background: color-mix(in srgb, var(--surface-2) 50%, transparent)}
.table-wrap { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--s-blue) transparent}
.matrix th, .matrix td { padding: 8px; text-align: center}
.matrix th:first-child, .matrix td:first-child { text-align: left; white-space: nowrap}
.matrix select { width: auto; min-width: 110px; height: 32px; padding: 4px 8px; font-size: 13px}
th { padding: 12px 20px}
td { padding: 15px 20px; border-color: var(--b-blue-line)}
.table-wrap:focus-visible { outline-offset: -2px}
.task-table table.task-list th:first-child { width: 43%}
.task-table td:first-child>a { font-weight: 600 !important; font-size: 14px}
body[data-page="/settings"] th, body[data-page="/settings"] td { padding: 12px 14px}
@media (max-width:1200px) {
  td, th { padding-left: 15px; padding-right: 15px}
}
@media (max-width:600px) {
  .task-table table { min-width: 0; display: block}
  .task-table thead { position: absolute; clip: rect(0 0 0 0); width: 1px; height: 1px; overflow: hidden}
  .task-table tbody { display: block}
  .task-table tr { display: grid; grid-template-columns: 1fr 1fr; padding: 18px; gap: 13px 10px; border-bottom: 1px solid var(--border)}
  .task-table tr:last-child { border-bottom: 0}
  .task-table td { display: block; padding: 0; border: 0; min-width: 0; background: transparent}
  .task-table td:first-child { grid-column: 1/-1; padding-bottom: 12px; border-bottom: 1px solid var(--border); box-shadow: none}
  .task-table td[data-label]:before { content: attr(data-label); display: block; font-size: 10px; color: var(--muted); margin-bottom: 5px}
  .task-table tr.overdue { border-left: 2px solid var(--s-amber)}
  #schedule table, #schedule tbody { display: block}
  #schedule thead { position: absolute; clip: rect(0 0 0 0); width: 1px; height: 1px; overflow: hidden}
  #schedule tr { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--border)}
  #schedule td { display: block; padding: 0; border: 0}
  #schedule td[data-label]:before { content: attr(data-label); display: block; font-size: 10px; color: var(--muted); margin-bottom: 5px}
  #schedule td[data-label="Çalışılıyor"] { display: flex; align-items: center; justify-content: flex-end; gap: 7px}
  #schedule td[data-label="Çalışılıyor"]:before { margin: 0}
  .task-table .table-wrap, #schedule .table-wrap { overflow: visible}
}
tbody tr:hover td { background: var(--surface-2)}
@media (max-width:600px) {
  .task-table td[data-label]:before, #schedule td[data-label]:before { font-size: 12px}
}
.workload-table td>a { display: inline-flex; align-items: center; min-height: 32px; min-width: 32px}
.th-short { display: none}
@media (max-width:640px) {
  .th-long { display: none}
  .th-short { display: inline}
}
@media (max-width:600px) {
  .workload-card td, .workload-card th { padding: 13px 12px; white-space: nowrap}
}
@media (max-width:640px) {
  .workload-table th, .workload-table td { padding-left: 8px; padding-right: 8px}
}
.theme-btn .icon-sun { display: none}
[data-theme=dark] .theme-btn .icon-sun { display: block}
[data-theme=dark] .theme-btn .icon-moon { display: none}
[data-theme=dark] th, [data-theme=dark] thead th, [data-theme=dark] thead { background: var(--surface-2); color: var(--muted-strong)}
[data-theme=dark] td, [data-theme=dark] th, [data-theme=dark] tr, [data-theme=dark] .list li { border-color: var(--border)}
.lines-table td { vertical-align: top}
.try-match input[type=search] { margin-top: 12px}
.value-table thead th:nth-child(3) { width: 90px}
@media (max-width:640px) {
  .lines-table thead { position: absolute; clip: rect(0 0 0 0); width: 1px; height: 1px; overflow: hidden}
  .lines-table, .lines-table tbody { display: block}
  .lines-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; padding: 14px 16px; border-bottom: 1px solid var(--border)}
  .lines-table td { display: block; padding: 0; border: 0; text-align: left}
  .lines-table td:first-child, .lines-table td.line-actions { grid-column: 1/-1}
  .lines-table td[data-label]:before { content: attr(data-label); display: block; font-size: 12px; color: var(--muted-strong); margin-bottom: 2px}
}
@media (min-width: 901px) {
  .task-table td[data-label="Müşteri"] { min-width: 170px}
}
.task-list tr { cursor: pointer; transition: background .1s}
.task-list tr:hover > td { background: var(--brand-tint)}
.task-list tr:hover td:first-child a { color: var(--brand-text); text-decoration: underline}
.task-table td:first-child a, a.row-title { color: var(--heading)}
.task-list tr td:last-child { position: relative}
@media (min-width: 601px) {
  .task-list tr td:last-child::after {
    content: "›";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: var(--muted);
    opacity: 0;
    transition: opacity .1s}
  .task-list tr:hover td:last-child::after { opacity: 1}
  .task-list tr td:last-child { padding-right: 28px}
}
/* ── Pencereler, bildirimler, komut paleti ───────────────────────────── */
dialog {
  padding: 0;
  background: var(--surface);
  color: var(--text);
  width: min(660px,calc(100vw - 32px));
  border: 1px solid var(--b-blue-line);
  box-shadow: 0 24px 90px rgb(19 33 23 / .2);
  border-radius: 17px}
.dialog-head h2 { margin: 0; font-size: 19px}
.dialog-body label:first-child { margin-top: 8px}
@media (max-width: 640px) {
  .toast { left: 16px; right: 16px; top: 16px; bottom: auto; max-width: none}
}
@media (prefers-reduced-motion: reduce) {
  .toast { animation: none}
}
.confirm-card { text-align: center}
dialog { max-height: calc(100dvh - 40px)}
dialog::backdrop { background: rgb(25 38 29 / .45); backdrop-filter: blur(3px)}
.dialog-head { padding: 22px 26px; background: var(--surface); position: sticky; top: 0; z-index: 2}
.dialog-body { padding: 14px 26px 26px}
.dialog-foot { padding: 17px 26px; position: sticky; bottom: 0; z-index: 2}
@media (max-width:600px) {
  dialog { max-height: calc(100dvh - 24px); width: calc(100vw - 20px); border-radius: 14px}
  .dialog-head { padding: 17px 18px}
  .dialog-body { padding: 12px 18px 20px}
  .dialog-foot { padding: 14px 18px}
  .confirm-card { margin: 20px auto}
}
.dialog-foot { background: var(--surface-2)}
dialog.cmdk {
  width: min(560px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: 14px;
  margin-top: 12vh;
  box-shadow: 0 24px 60px rgb(9 30 66 / .3);
  background: var(--surface, var(--surface));
  color: var(--text)}
dialog.cmdk::backdrop { background: rgb(15 23 42 / .35)}
.chat-search input { width: 220px}
@media (max-width:760px) {
  .chat-search input { width: 140px}
}
.search-bar input { border: 0; box-shadow: none; font-size: 17px; flex: 1; background: transparent}
.cmdk input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--border, var(--b-blue-line));
  border-radius: 0;
  padding: 16px 18px;
  font-size: 16px;
  outline: none;
  background: transparent;
  color: inherit}
.cmdk ul { list-style: none; margin: 0; padding: 6px; max-height: 50vh; overflow: auto}
.request-list>li { flex-wrap: wrap; font-size: 11px}
@media (max-width:640px) {
  .quote-mini li { padding: 12px 16px; flex-wrap: wrap}
}
.compact-list .task-line-title, .request-list>li { font-size: 13px}
.hbars li { display: grid; grid-template-columns: 120px 1fr auto; gap: 12px; align-items: center; font-size: 13px}
.recovery-codes li { background: var(--surface-2); border-radius: 8px; padding: 8px 12px; text-align: center; letter-spacing: .05em}
.cmdk li { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 8px; cursor: pointer}
.cmdk li[aria-selected=true] { background: var(--accent-tint, var(--b-blue-bg))}
.cmdk-k { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; width: 62px; color: var(--muted)}
.cmdk li.k-olustur .cmdk-k { color: var(--b-green)}
.cmdk li.k-ara .cmdk-k { color: var(--brand-text)}
.cmdk-t { font-weight: 500}
.cmdk-foot {
  border-top: 1px solid var(--border, var(--b-blue-line));
  padding: 8px 14px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 6px;
  align-items: center}
[data-tip]:hover::after, [data-tip]:focus-visible::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--s-blue);
  color: var(--on-solid);
  font-size: 12px;
  line-height: 1.4;
  padding: 6px 9px;
  border-radius: 6px;
  white-space: nowrap;
  z-index: 5;
  pointer-events: none;
  box-shadow: 0 4px 12px #0003}
[data-tip] { position: relative}
/* ── Giriş ve kayıt ekranları ────────────────────────────────────────── */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: var(--bg)}
.auth-split { display: grid; grid-template-columns: 44% 56%; padding: 0; align-items: stretch; place-items: stretch}
.auth-story {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 50px 65px;
  position: relative;
  overflow: hidden;
  color: var(--b-blue-bg);
  background: var(--s-blue)}
.auth-wordmark {
  font-size: 38px;
  color: var(--on-solid);
  letter-spacing: -.07em;
  font-weight: 600;
  align-self: flex-start;
  text-decoration: none}
.auth-story-copy { margin: auto 0; padding: 50px 0; position: relative; z-index: 1}
.auth-story-copy h2 {
  font-size: clamp(40px,4.6vw,72px);
  line-height: 1.08;
  letter-spacing: -.065em;
  font-weight: 500;
  margin-bottom: 28px;
  color: var(--on-solid)}
.auth-story-copy p { line-height: 1.9; color: var(--b-blue-bg); font-size: 14px}
.auth-note { font-size: 11px; color: var(--b-blue-bg)}
.auth-form-wrap { display: grid; place-items: center; padding: 40px; width: 100%}
.auth-split h1 { font-size: 30px; letter-spacing: -.05em; line-height: 1.3}
@media (max-width:1023px) {
  .auth-story { padding: 40px}
}
@media (max-width:820px) {
  .auth-split { grid-template-columns: 38% 62%}
  .auth-story { padding: 30px}
  .auth-story-copy h2 { font-size: 43px}
  .auth-form-wrap { padding: 24px}
}
@media (max-width:600px) {
  .auth-split { display: flex; flex-direction: column; min-height: 100dvh}
  .auth-story { min-height: 0; padding: 26px 30px}
  .auth-story-copy, .auth-note { display: none}
  .auth-wordmark { font-size: 30px}
  .auth-form-wrap { padding: 22px 14px; flex: 1}
  .auth-split h1 { font-size: 27px}
}
.auth-wordmark span { color: var(--b-blue)}
/* ── Ana ekran ───────────────────────────────────────────────────────── */
.dashboard-heading { margin-bottom: 24px}
.dashboard-heading h1 { letter-spacing: -.05em; font-size: 32px}
.dashboard-date { display: flex; align-items: center; flex-shrink: 0}
.date-day {
  letter-spacing: -.05em;
  padding-right: 13px;
  border-right: 1px solid var(--border-strong)}
.dashboard-date strong { display: block; font-weight: 600}
.dashboard-date div>span { display: block}
.overview-label h2 { letter-spacing: 0}
.stats { gap: 14px; margin-bottom: 24px; grid-template-columns: repeat(auto-fit,minmax(145px,1fr))}
.dashboard-metrics { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px}
.metric-label { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 600; color: var(--b-blue)}
.metric-arrow { font-size: 17px; line-height: 1}
.stats b {
  display: block;
  color: var(--heading);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.055em;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 500;
  margin: 3px 0 7px}
.metric-caption { display: block; font-size: 11px; color: var(--muted)}
.metric.danger-metric b { color: var(--danger)}
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 22px; align-items: start}
.dashboard-main, .dashboard-side { min-width: 0}
.dashboard-side h2 { letter-spacing: -.02em}
.load-cell { gap: 12px; color: var(--heading)}
.load-cell b { min-width: 20px; font-weight: 500}
.load-track { width: 85px; height: 5px; border-radius: 6px; overflow: hidden; background: var(--b-blue-bg)}
.attendance-widget h2 { margin: 0 0 10px}
.team-summary { display: flex; gap: 10px; align-items: baseline; margin-bottom: 16px}
.team-summary>strong { font-size: 28px; font-weight: 500; letter-spacing: -.04em; color: var(--heading)}
.team-summary strong span { font-size: 16px; font-weight: 400}
.team-pills { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px}
.team-pills>span { color: var(--muted); display: flex; align-items: center; gap: 5px}
.attention-links { border-top: 1px solid var(--border); padding-top: 12px}
.attention-links a { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; color: var(--text); font-size: 12px}
.attention-links b { font-weight: 500; background: var(--surface-2); padding: 1px 7px; border-radius: 5px; font-size: 12px}
.attention-links small { color: var(--muted); font-size: 11px}
.story-lines { display: flex; gap: 13px; height: 90px; align-items: flex-end; margin-top: 30px}
.story-lines span:nth-child(2) { height: 65%}
.story-lines span:nth-child(3) { height: 85%}
.story-lines span:nth-child(4) { height: 100%}
@media (min-width:1600px) {
  .dashboard-grid { grid-template-columns: minmax(0,1fr) 335px}
}
@media (max-width:1200px) {
  .dashboard-grid { gap: 17px}
  .load-track { width: 55px}
}
@media (max-width:1023px) {
  .dashboard-grid { grid-template-columns: minmax(0,1fr) 280px}
}
@media (max-width:820px) {
  .dashboard-side { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; align-items: start}
  .dashboard-metrics { gap: 10px}
}
@media (max-width:600px) {
  .dashboard-heading { align-items: flex-start; gap: 10px}
  .dashboard-date { gap: 0}
  .date-day { border: 0; padding: 0}
  .dashboard-date div { display: none}
  .dashboard-metrics { grid-template-columns: repeat(2,minmax(0,1fr))}
  .dashboard-side { grid-template-columns: 1fr; gap: 16px; display: contents}
  .dashboard-grid { gap: 0; display: flex; flex-direction: column}
  .load-track { width: 45px}
  .dashboard-main { order: 0; width: 100%}
  .dashboard-side>.attendance-widget { order: -1}
}
.dashboard-date strong, .dashboard-date div>span { font-size: 12px}
.metric.featured b { color: var(--b-blue)}
.metric.featured .metric-caption { color: var(--b-blue); border-color: var(--b-blue-line)}
.attendance-widget { background: var(--b-blue-bg); border-color: var(--b-blue-line)}
.load-track span { background: var(--s-blue)}
.story-lines span { background: var(--s-blue)}
.project-card .progress>span { background: var(--s-blue)}
.story-lines span:nth-child(2) { background: var(--s-blue)}
.story-lines span:nth-child(3) { background: var(--s-blue)}
.story-lines span:nth-child(4) { background: var(--s-blue)}
@media (max-width:1200px) {
  .metric-caption { font-size: 11px}
  .dashboard-grid { grid-template-columns: minmax(0,1fr) 290px}
}
@media (max-width:820px) {
  .dashboard-grid { grid-template-columns: 1fr}
  .metric-label { font-size: 12px}
  .metric-caption { font-size: 11px}
}
@media (max-width:600px) {
  .metric-caption { font-size: 11px}
  .dashboard-heading p, .page-heading p { font-size: 13px}
  .workload-card th { font-size: 11px}
}
.team-summary strong>span { color: var(--b-blue)}
.workload-table .load-cell { min-width: 0}
@media (max-width:640px) {
  .workload-table .load-track { display: none}
  .dashboard-date { gap: 8px}
  .dashboard-date div { display: block}
  .dashboard-date strong, .dashboard-date div>span { font-size: 11px}
}
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 16px; margin-bottom: 24px}
.kpi span { display: block; font-size: 12px; color: var(--muted-strong)}
.kpi b { display: block; font-size: 28px; font-weight: 500; letter-spacing: -.03em; color: var(--heading); margin: 6px 0 4px}
.kpi b em { font-style: normal; font-size: 13px; color: var(--muted-strong); letter-spacing: 0}
.kpi small { font-size: 12px; color: var(--muted-strong)}
@media (max-width:640px) {
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 10px}
  .kpi b { font-size: 22px}
}
[data-theme=dark] .team-summary strong { color: var(--heading)}
[data-theme=dark] .team-summary strong>span { color: var(--muted-strong)}
[data-theme=dark] .metric .metric-caption, [data-theme=dark] .featured>.metric-caption { color: var(--muted-strong)}
.u-c-danger { color: var(--danger)}
.project-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden}
.sim-chat { height: 440px; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 6px; background: var(--b-amber-bg)}
.chat-main, .chat-thread { display: flex; flex-direction: column; padding: 0; overflow: hidden}
.u-bc-border { border-color: var(--border)}
.u-bl-4px-solid-danger { border-left: 4px solid var(--danger) !important}
/* ── Görevler, pano, takvim, projeler ────────────────────────────────── */
.comment-body { white-space: pre-line; margin: 4px 0 0}
.status-row { display: grid; grid-template-columns: auto 1fr 120px 170px auto; gap: 8px; align-items: center}
.status-row input, .status-row select { height: 34px}
@media (max-width: 700px) {
  .status-row { grid-template-columns: 1fr 1fr}
}
.project-grid { display: grid}
.board {
  display: grid;
  grid-auto-flow: column;
  overflow-x: auto;
  align-items: start;
  scrollbar-width: thin;
  gap: 17px;
  grid-auto-columns: minmax(265px,1fr);
  padding-bottom: 22px}
.board-col.drop-ok { outline: 2px dashed var(--brand); outline-offset: -2px}
.board-col.drop-no { opacity: .55}
.board-col h3 { display: flex; justify-content: space-between; align-items: center; letter-spacing: 0}
.board-card {
  background: var(--surface);
  cursor: grab;
  margin-bottom: 12px;
  transition: box-shadow .12s, transform .12s}
.board-card[draggable="false"] { cursor: default}
.board-card.dragging { opacity: .4}
.board-card .t { margin-bottom: 6px; font-size: 14px; font-weight: 600; line-height: 1.35; text-decoration: none}
.board-card select { padding: 2px 6px; margin-top: 14px; height: 34px; font-size: 12px}
.calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr))}
.cal-head { padding: 8px; font-size: 12px; font-weight: 500; color: var(--muted); text-align: center; border-bottom: 1px solid var(--border)}
.cal-day:nth-child(7n) { border-right: 0}
.cal-day.out { background: var(--bg)}
.cal-day.today .cal-num { background: var(--brand); color: var(--on-solid); border-radius: 99px; width: 24px; text-align: center}
.cal-num { font-size: 12px; font-weight: 600; color: var(--heading); line-height: 24px}
.cal-full { display: none}
.cal-item {
  display: block;
  font-size: 12px;
  line-height: 16px;
  padding: 2px 6px;
  border-radius: 4px;
  text-decoration: none;
  color: var(--heading);
  background: var(--surface-2);
  border-left: 3px solid var(--c, var(--brand));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis}
.cal-item:hover { text-decoration: none; filter: brightness(.97)}
.cal-item.late { border-left-color: var(--danger); background: var(--danger-tint)}
.cal-item.start { background: none; border-left-style: dashed; color: var(--muted)}
@media (max-width: 760px) {
  .calendar { display: block}
  .cal-head, .cal-day.no-entry, .cal-day.out { display: none}
  .cal-row:not(:has(.cal-day:not(.no-entry):not(.out))) { display: none}
  .cal-full { display: inline; font-weight: 400; color: var(--muted)}
  .cal-item { white-space: normal; padding: 6px 8px; font-size: 13px}
}
.task-line-title { display: flex; align-items: baseline; gap: 7px}
.task-line-title>a { font-weight: 500; color: var(--heading)}
.compact-list .task-line { flex-wrap: wrap; align-items: flex-start}
.board-col { border: 1px solid var(--b-blue-line); padding: 12px; border-radius: 12px; min-height: 260px; background: var(--surface-3); border-color: var(--b-blue-line)}
.board-card { border: 1px solid var(--border)}
.project-grid { gap: 20px; grid-template-columns: repeat(auto-fill,minmax(270px,1fr))}
.project-card h2>a { color: var(--heading)}
.project-desc { min-height: 40px; margin-bottom: 24px}
.task-summary h2 { font-size: 23px; line-height: 1.45}
.task-summary>p { line-height: 1.85}
@media (max-width:600px) {
  .task-line { gap: 7px}
  .project-grid { grid-template-columns: 1fr}
  .task-summary h2 { font-size: 21px}
}
.cal-day.out .cal-num { color: var(--muted-strong)}
.cal-row { display: contents}
@media (max-width:760px) {
  .cal-row:first-child, .cal-row:not(:has(.cal-day:not(.empty):not(.out))) { display: none}
}
@media (hover:hover) and (pointer:fine) {
  .board-card { position: relative}
  .board-card select {
    position: absolute;
    width: auto;
    height: 28px;
    margin: 0;
    padding: 2px 26px 2px 8px;
    font-size: 12px;
    opacity: 0;
    transition: opacity .15s;
    bottom: auto;
    top: 8px;
    right: 8px}
  .board-card:hover select, .board-card:focus-within select, .board-card select:focus { opacity: 1}
}
[data-theme=dark] .board-col, [data-theme=dark] .cal-day.out { border-color: var(--border)}
[data-theme=dark] .cal-day { border-color: var(--border)}
.deal-board .board-card form { margin: 10px 0 0}
.u-mb-12px { margin-bottom: 12px}
.progress {
  display: inline-block;
  width: 90px;
  height: 8px;
  border-radius: 99px;
  background: var(--surface-2);
  overflow: hidden;
  vertical-align: middle;
  margin-right: 6px}
.progress span { display: block; height: 100%; background: var(--brand); border-radius: 99px}
@media (max-width: 600px) {
  .cal-day.today .cal-num { width: auto; background: none; color: var(--heading); border-radius: 0; text-align: left}
  .cal-day.today .cal-num::first-letter { color: var(--brand-text)}
  .cal-day.today { box-shadow: inset 3px 0 0 var(--brand)}
}
.board-col { border-top: 3px solid var(--colc, var(--border))}
.board-col:has(.badge.blue) { --colc: var(--c8)}
.board-col:has(.badge.amber) { --colc: var(--s-amber)}
.board-col:has(.badge.green) { --colc: var(--c3)}
.board-col:has(.badge.purple) { --colc: var(--c4)}
.board-col:has(.badge.red) { --colc: var(--s-red)}
.board-col:has(.badge.teal) { --colc: var(--c6)}
.board-col:has(.badge.pink) { --colc: var(--c5)}
.board-col:has(.badge.gray) { --colc: var(--s-blue)}
.board-card { border-left: 3px solid transparent}
.board-card:hover { border-left-color: var(--brand); transform: translateY(-1px)}
.board-card .t:hover { color: var(--brand-text)}
.board-card { position: relative; border-radius: 10px; box-shadow: 0 1px 0 rgb(9 30 66 / .12), 0 1px 3px rgb(9 30 66 / .08)}
.board-card:hover { box-shadow: 0 4px 14px rgb(9 30 66 / .16)}
.board-card::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0}
.board-card.pr-high::before { background: var(--s-red)}
.board-card.pr-medium::before { background: var(--s-amber)}
.board-card.pr-low::before { background: var(--s-blue)}
.board-card .t { color: var(--text)}
.board-card .t::after { content: ""; position: absolute; inset: 0; border-radius: inherit}
.board-card .bc-foot { position: relative; z-index: 1}
.board-card select { z-index: 2}
.bc-cust { color: var(--muted); margin-top: -3px}
.bc-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px}
.bc-badges { display: flex; flex-wrap: wrap; align-items: center; font-size: 12px}
.bc-b, .bc-due { color: var(--muted); white-space: nowrap}
.bc-b.ok { color: var(--b-green); font-weight: 600}
.bc-due.late { font-weight: 600}
.bc-due.soon { font-weight: 600}
.chat-side-toggle>summary { display: none}
@media (max-width:760px) {
  .chat-side-toggle>summary { display: flex; align-items: center; min-height: 36px; cursor: pointer; font-weight: 600}
}
.rx-pick>summary { list-style: none; cursor: pointer}
.pinned-bar summary { cursor: pointer; font-weight: 600; color: var(--heading)}
.bc-add summary { list-style: none; cursor: pointer; color: var(--muted); padding: 8px 10px; border-radius: 8px; font-weight: 500}
.bc-add summary::-webkit-details-marker { display: none}
.bc-add summary:hover { background: rgb(9 30 66 / .06); color: var(--text)}
.line-actions form { display: inline}
.bc-add form { display: flex; flex-direction: column; gap: 6px; margin-top: 6px}
.bc-add form button { align-self: flex-start}
.deal-board .board-col h3 { margin-bottom: 2px}
@media not ((hover:hover) and (pointer:fine)) {
  .board-card select { position: relative}
}
.board-col.drop-hover { background: rgb(53 102 210 / .08)}
.tick { padding: 0; display: inline-grid; place-items: center; font-size: 13px; width: 26px; height: 26px; min-height: 26px}
.tick.on { background: var(--brand); border-color: var(--brand); color: var(--on-solid)}
.tick { border-radius: 7px}
.sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block}
.sw-done { background: var(--series-done)}
.sw-created { background: var(--series-created)}
.status-steps { padding: 10px}
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; margin: 0}
.steps .step { border-radius: 8px; min-height: 40px; font-size: 13px; background: var(--surface-2); border-color: transparent; color: var(--text)}
.steps .step.on { background: var(--brand); color: var(--on-solid); font-weight: 600}
@media (max-width:640px) {
  .steps { grid-template-columns: 1fr 1fr}
}
[data-theme=dark] .steps .step { background: var(--surface-2); color: var(--text)}
[data-theme=dark] .steps .step.on { background: var(--brand)}
.steps-list { padding-left: 20px}
/* ── Mesai ve izin ───────────────────────────────────────────────────── */
.scope-picker select { max-width: 360px}
.confirm-card .clock { line-height: 48px; font-variant-numeric: tabular-nums; color: var(--brand-text)}
.attendance-times { display: flex; gap: 0; margin: 20px 0}
.attendance-times>div { width: 50%}
.attendance-times>div+div { padding-left: 20px; border-left: 1px solid var(--b-blue-line); border-color: var(--b-blue-line)}
.attendance-times span { display: block; color: var(--b-blue)}
.attendance-times strong { font-size: 25px; font-weight: 500; letter-spacing: -.04em; color: var(--b-blue)}
.confirm-card .clock { font-size: 54px; font-weight: 500; letter-spacing: -.06em; margin: 25px 0}
@media (max-width:600px) {
  .attendance-widget .attendance-times { margin: 13px 0}
  #schedule .schedule-day-name { font-weight: 600; font-size: 13px; align-self: center}
}
.attendance-times span { font-size: 12px}
.schedule-card { max-width: 860px}
[data-theme=dark] .attendance-times span { color: var(--muted-strong)}
[data-theme=dark] .attendance-times strong { color: var(--heading)}
.scope-picker { margin: 4px 0 16px}
.st-on_time { background: var(--st-on_time)}
.st-late { background: var(--st-late)}
.st-absent { background: var(--st-absent)}
.st-leave { background: var(--st-leave)}
/* ── Raporlar ────────────────────────────────────────────────────────── */
.stats { display: grid}
@media (max-width:600px) {
  .stats { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px}
}
.report-period { align-items: center; gap: 8px}
.report-h { font-size: 15px; margin: 8px 0 12px}
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--text)}
.chart-legend span { display: inline-flex; align-items: center; gap: 6px}
.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 200px;
  padding: 12px 0 0;
  border-bottom: 1px solid var(--border);
  margin-top: 16px;
  background: repeating-linear-gradient(to top,transparent 0,transparent 49px,var(--border) 49px,var(--border) 50px);
  margin-bottom: 30px}
.bar-group { flex: 1; height: 100%; display: flex; flex-direction: column; outline-offset: 2px}
.bars { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 2px}
.bar { width: min(18px,40%); border-radius: 4px 4px 0 0; min-height: 0}
.bar.done { background: var(--series-done)}
.bar.created { background: var(--series-created)}
.bar-label {
  font-size: 11px;
  color: var(--muted-strong);
  text-align: center;
  padding-top: 6px;
  height: 22px;
  position: absolute;
  bottom: -26px;
  left: 0;
  right: 0}
.bar-group:hover .bars, .bar-group:focus-visible .bars { background: color-mix(in srgb,var(--brand) 8%,transparent); border-radius: 6px 6px 0 0}
.bar-group[data-tip]:hover::after, .bar-group[data-tip]:focus-visible::after { bottom: auto; top: -8px}
.report-table td a { display: inline-flex; align-items: center; min-height: 32px; min-width: 24px}
@media (max-width:640px) {
  .bar-chart { gap: 4px; height: 160px}
  .bar-label { font-size: 10px}
}
.report-tabs { margin-bottom: 16px; display: inline-flex}
.report-cols { grid-template-columns: 1fr 1fr}
.hbars { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px}
@media (max-width:900px) {
  .report-cols { grid-template-columns: 1fr}
}
@media (max-width:640px) {
  .hbars li { grid-template-columns: 1fr auto}
}
.hb-label { color: var(--text)}
.hb-track { height: 12px; background: var(--surface-2); border-radius: 4px; overflow: hidden}
.hb-fill { display: block; height: 100%; background: var(--series-done); border-radius: 4px; min-width: 0}
.hb-fill.late { background: var(--st-absent)}
.hb-val { white-space: nowrap; color: var(--text)}
@media (max-width:640px) {
  .hb-track { grid-column: 1/-1; grid-row: 2}
}
/* ── Satış: müşteri, teklif, sipariş, fırsat ─────────────────────────── */
.add-lines h3 { font-size: 14px; margin: 0 0 8px}
.option-block h3 { font-size: 14px}
.next-step-box legend { font-weight: 600; color: var(--heading); padding: 0 6px; font-size: 13px}
@media (max-width: 700px) {
  .status-row .order { grid-column: 1 / -1}
}
.quote-head { display: flex; gap: 16px; align-items: center; flex-wrap: wrap}
.quote-title { display: flex; align-items: center; gap: 10px; margin-bottom: 4px}
.quote-total { display: flex; flex-direction: column; align-items: flex-end}
.quote-total b { font-size: 24px; font-weight: 600; color: var(--heading); letter-spacing: -.02em}
.totals { display: flex; justify-content: flex-end; border-top: 1px solid var(--border)}
.totals dl { display: grid; grid-template-columns: auto auto; gap: 6px 0; margin: 0; min-width: 280px}
.totals dd { padding-left: 24px; margin: 0; text-align: right; font-size: 13px; color: var(--heading)}
.totals dt { color: var(--muted-strong); font-size: 13px}
.totals .grand { font-size: 15px; font-weight: 600; color: var(--heading); border-top: 1px solid var(--border-strong); padding-top: 8px}
.public-quote { max-width: 860px; margin: 0 auto; padding: 24px 16px 48px; --pq-accent: #3566d2}
.pq-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; gap: 12px}
.pq-seller { font-size: 16px; color: var(--heading)}
.public-quote h1 { font-size: 26px; margin: 4px 0 6px}
.pq-respond { border: 2px solid var(--brand)}
@media (max-width:640px) {
  .quote-total { align-items: flex-start}
  .line-actions { text-align: left}
  .totals dl { min-width: 0; width: 100%}
}
.rx-pick { position: relative}
.rx-pick>summary::-webkit-details-marker { display: none}
.customer-chip { --chip: var(--b-gray)}
.margin-low { color: var(--danger)}
.margin-box { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--border)}
.margin-box dt { font-size: 13px}
.delivery-qty { max-width: 160px}
.qt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px}
.qt-card { display: flex; flex-direction: column; gap: 10px; padding: 12px; margin: 0}
.qt-card.is-current { outline: 2px solid var(--accent, var(--brand))}
.qt-thumb {
  --qt: #3566d2;
  display: flex;
  flex-direction: column;
  gap: 6px;
  aspect-ratio: 210/170;
  background: var(--surface);
  border: 1px solid var(--border, var(--b-blue-line));
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 1px 3px rgb(0 0 0 / .06);
  transition: transform .12s, box-shadow .12s}
.qt-thumb:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgb(0 0 0 / .1)}
.qt-thumb span { display: block; border-radius: 3px; background: var(--b-blue-bg); height: 6px}
.qt-thumb .w60 { width: 60%}
.qt-thumb .w40 { width: 40%}
.qt-thumb .w80 { width: 80%}
.qt-thumb .w30 { width: 30%}
.qt-thumb .qt-band { height: 4px; background: var(--qt)}
.qt-thumb .qt-tbl { height: 10px; border-bottom: 2px solid var(--qt); background: transparent; border-radius: 0; margin-top: 6px}
.qt-thumb.qt-modern .qt-band { height: 22px}
.qt-thumb.qt-modern .qt-tbl { background: var(--qt); border: 0; border-radius: 3px}
.qt-thumb.qt-minimal .qt-band { height: 1px; background: var(--s-blue)}
.qt-thumb.qt-minimal .qt-tbl { border-bottom: 1px solid var(--s-blue)}
.qt-meta { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center}
.qt-actions { display: flex; gap: 6px; flex-wrap: wrap}
.qt-actions form { margin: 0}
.qt-new {
  align-items: center;
  justify-content: center;
  min-height: 200px;
  border: 2px dashed var(--border-strong, var(--b-blue-line));
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  text-decoration: none}
.rx span { font-size: 12px; font-weight: 600}
.qt-new span { font-size: 32px; line-height: 1}
.qt-new:hover { border-color: var(--accent, var(--brand)); color: var(--accent, var(--brand-text))}
.qt-choice { border: 0; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px 14px}
.qt-choice legend { font-weight: 600; font-size: 13px; margin-bottom: 6px; padding: 0}
.public-quote .pq-head { border-top: 5px solid var(--pq-accent); padding-top: 14px}
.dc-sum { font-weight: 700; font-size: 13px; color: var(--muted); margin: 0 0 10px 2px}
.deal-card::before { background: var(--s-green)}
.deal-card .dc-cust { color: var(--muted); margin-top: -4px}
.dc-row { display: flex; justify-content: space-between; align-items: center}
.dc-val { font-size: 15px}
.dc-step { color: var(--muted)}
.dc-step.late { color: var(--b-red); font-weight: 600}
.dc-ico {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface-3);
  font-size: 10px;
  font-weight: 700}
.dc-step.late .dc-ico { background: var(--b-red-bg)}
.dc-rot { color: var(--b-red); font-weight: 600}
.deal-card.rotting { background: var(--b-red-bg); box-shadow: 0 0 0 1px #f6c9c9, 0 1px 3px rgb(164 22 26 / .1)}
.deal-card.rotting::before { background: var(--s-red)}
[data-theme=dark] .deal-card.rotting { box-shadow: 0 0 0 1px #6b3434}
.history-item .meta .via { margin-left: 6px}
.dup-list { margin: 6px 0 8px; padding-left: 18px}
.add-lines { border-top: 1px solid var(--border)}
.match-add { display: flex; gap: 6px; align-items: center; margin: 0}
.option-block { border-top: 1px solid var(--border); padding-top: 14px; margin-top: 14px}
.value-row { display: grid; grid-template-columns: minmax(80px,1fr) minmax(120px,2fr) 90px auto; gap: 8px; align-items: center; padding: 6px 0}
.value-actions { display: flex; gap: 4px}
@media (max-width:640px) {
  .value-row { grid-template-columns: 1fr 1fr}
}
.next-step-box { border: 1px solid var(--border); border-radius: 10px; padding: 4px 14px 12px; margin: 14px 0 4px}
.target-input { width: 120px; text-align: right; padding: 6px 8px}
/* ── Sohbet ──────────────────────────────────────────────────────────── */
.attach-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer}
.bubble { max-width: 82%; box-shadow: 0 1px 1px rgb(0 0 0 / .12)}
.bubble.in { align-self: flex-end; background: var(--b-blue-bg)}
.bubble.out { align-self: flex-start; background: var(--surface)}
.bubble-text { white-space: pre-line}
.bubble-meta { display: block; text-align: right; font-size: 11px; opacity: .65; margin-top: 2px}
.sim-options { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; border-top: 1px solid var(--border); padding-top: 8px}
.sim-options form { margin: 0}
[data-theme=dark] .bubble.out { background: var(--surface-2); color: var(--text)}
.chat { max-width: 860px; display: flex; flex-direction: column}
.chat-log {
  list-style: none;
  margin: 0;
  padding: 0 0 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: calc(100dvh - 330px);
  min-height: 280px;
  overflow-y: auto}
.msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 82%}
.msg.user { align-self: flex-end; align-items: flex-end}
.msg .bubble {
  padding: 10px 14px;
  border-radius: 14px 14px 14px 4px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 14px;
  line-height: 1.55}
.msg.user .bubble { background: var(--brand); color: var(--on-solid); border-radius: 14px 14px 4px 14px}
/* Sohbet kabarcığı içeriğe göre genişlesin: "anywhere" kabarcığı en kısa kelimeye göre daraltıp kısa mesajı alt satıra atıyordu */
.msg .bubble p, .msg .bubble { overflow-wrap: break-word}
/* genel .bubble { max-width: 82% } (WhatsApp ekranı) burada kabarcığı kendi kapsayıcısının %82’sine sıkıştırıyordu */
.msg .bubble { max-width: 100%}
.quick-replies { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px}
.quick-replies form { margin: 0}
.chat-input { display: flex; gap: 8px; align-items: flex-end; border-top: 1px solid var(--border); padding-top: 12px; margin-top: 8px}
.chat-input textarea { flex: 1; resize: vertical; min-height: 44px}
@media (max-width:640px) {
  .msg { max-width: 94%}
  .chat-log { max-height: calc(100dvh - 300px)}
}
[data-theme=dark] .content .msg.bot .bubble p { color: var(--text)}
.chat-shell { display: grid; grid-template-columns: 230px minmax(0,1fr); gap: 16px; align-items: start}
.chat-shell.with-thread { grid-template-columns: 230px minmax(0,1fr) minmax(280px,360px)}
.chat-side { padding: 12px; position: sticky; top: 88px}
.chat-side-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted-strong);
  margin: 12px 8px 4px}
.chat-side-label:first-child { margin-top: 0}
.chat-side-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 8px;
  border-radius: 7px;
  color: var(--text);
  font-size: 14px}
.chat-side-list a:hover { background: var(--surface-2); text-decoration: none}
.chat-side-list a.active { background: var(--brand-tint); color: var(--brand-text); font-weight: 600}
.chat-side-list a.has-unread { font-weight: 700; color: var(--heading)}
.chat-side-icon { width: 18px; text-align: center; color: var(--muted-strong); font-size: 13px}
.chat-side-actions { display: flex; gap: 6px; margin-top: 12px; border-top: 1px solid var(--border); padding-top: 12px}
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--border)}
.chat-head h2 { font-size: 16px}
.chat-msgs { list-style: none; margin: 0; padding: 8px 0; overflow-y: auto; height: calc(100dvh - 360px); min-height: 300px}
.chat-thread .chat-msgs { height: calc(100dvh - 330px)}
.cmsg { display: flex; gap: 10px; padding: 8px 20px}
.cmsg:hover { background: color-mix(in srgb,var(--surface-2) 60%,transparent)}
.cmsg-body { min-width: 0; flex: 1}
.cmsg-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap}
.cmsg-head b { color: var(--heading); font-size: 14px}
.cmsg-text { font-size: 14px; line-height: 1.55; color: var(--text); overflow-wrap: break-word}
.cmsg-text a { text-decoration: underline}
.cmsg-img img { max-width: min(320px,100%); max-height: 240px; border-radius: 8px; margin-top: 6px; border: 1px solid var(--border); display: block}
.cmsg-file {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin-top: 6px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px}
.cmsg-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 4px; min-height: 24px}
.cmsg-edit[open] { flex-basis: 100%}
.chat-day, .chat-new { display: flex; align-items: center; gap: 10px; margin: 10px 20px; font-size: 12px; color: var(--muted-strong)}
.chat-day::before, .chat-day::after, .chat-new::before, .chat-new::after { content: ""; flex: 1; height: 1px; background: var(--border)}
.chat-new { color: var(--b-red); font-weight: 600}
.chat-new::before, .chat-new::after { background: var(--s-red)}
.chat-empty { padding: 40px 20px; text-align: center}
.chat-main>.chat-input, .chat-thread>.chat-input { margin: 0; padding: 12px 16px; border-top: 1px solid var(--border)}
.chat-members { min-width: 280px; max-height: 60vh; overflow-y: auto; padding: 10px}
.chat-members form { margin-top: 8px}
@media (max-width:1100px) {
  .chat-shell.with-thread { grid-template-columns: 200px minmax(0,1fr)}
  .chat-shell.with-thread .chat-main { display: none}
}
@media (max-width:760px) {
  .chat-shell, .chat-shell.with-thread { grid-template-columns: 1fr; gap: 10px}
  .chat-side { position: static; padding: 8px 12px}
  .chat-msgs { height: calc(100dvh - 330px)}
  .cmsg { padding: 8px 12px}
  .chat-head { padding: 12px}
}
.typing { min-height: 20px; padding: 0 20px; font-size: 12px; color: var(--muted-strong); font-style: italic}
.presence { width: 5px; height: 5px; border-radius: 50%; display: inline-block}
.attach-btn { position: relative; overflow: hidden; cursor: pointer}
.pinned-bar {
  border-bottom: 1px solid var(--border);
  padding: 8px 20px;
  font-size: 13px;
  background: color-mix(in srgb,var(--brand-tint) 60%,transparent)}
.pin-mark { color: var(--muted-strong)}
/* ── Arama ───────────────────────────────────────────────────────────── */
.search-groups { display: grid; grid-template-columns: repeat(auto-fit,minmax(320px,1fr)); gap: 16px}
.search-bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 18px}
.search-bar input:focus { outline: none; box-shadow: none}
.search-bar:focus-within { box-shadow: 0 0 0 3px var(--brand-tint), 0 0 0 1px var(--brand)}
.search-ic { width: 22px; height: 22px; color: var(--brand-text); flex: none; margin-left: 4px}
.search-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; color: var(--text)}
.sg-orange { --sg: var(--c2); --sgbg: var(--b-amber-line)}
.sg-blue { --sg: var(--c1); --sgbg: var(--b-blue-bg)}
.sg-pink { --sg: var(--c5); --sgbg: var(--b-pink-bg)}
.sg-amber { --sg: var(--c7); --sgbg: var(--b-amber-bg)}
.sg-green { --sg: var(--c3); --sgbg: var(--b-green-bg)}
.sg-purple { --sg: var(--c4); --sgbg: var(--b-purple-bg)}
.sg-teal { --sg: var(--c6); --sgbg: var(--b-teal-bg)}
.sg-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border)}
.sg-head h2 { margin: 0; font-size: 15px}
.sg-ic { width: 32px; height: 32px; border-radius: 9px; background: var(--sgbg); color: var(--sg); display: grid; place-items: center}
.sg-ic svg { width: 18px; height: 18px}
.sg-count { background: var(--sgbg); color: var(--sg); font-weight: 700; font-size: 12px; border-radius: 99px; padding: 1px 9px}
.sg-more { margin-left: auto}
.sg-list { list-style: none; margin: 0; padding: 4px 0}
.sg-list a {
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 10px 16px;
  text-decoration: none;
  color: var(--text);
  border-left: 3px solid transparent}
.sg-list a:hover { background: var(--sgbg); border-left-color: var(--sg)}
.sg-title { font-weight: 600; color: var(--heading); grid-column: 1}
.sg-sub { font-size: 13px; color: var(--muted); grid-column: 1}
.sg-go { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 20px; color: var(--muted)}
/* ── Ayarlar ve ekip ─────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .task-table td.team-actions { grid-column: 1/-1}
}
.settings-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px}
.settings-links form { margin: 0; display: contents}
.settings-links a, .settings-links form button {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  cursor: pointer;
  box-shadow: none;
  height: auto;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  background: var(--surface)}
.settings-links a:hover, .settings-links form button:hover { border-color: var(--brand); background: var(--surface)}
.settings-links b { display: block; color: var(--heading); margin-bottom: 2px}
.settings-links span { font-size: 13px; color: var(--muted)}
@media (max-width: 600px) {
  .settings-links { grid-template-columns: 1fr}
}
.qr-box { width: 220px; max-width: 100%; background: var(--surface); padding: 8px; border-radius: 10px; border: 1px solid var(--border); margin: 8px 0}
/* ── Geliştirici araçları ────────────────────────────────────────────── */
.sim { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 16px; align-items: start}
@media (max-width: 860px) {
  .sim { grid-template-columns: 1fr}
}
.sim-phone { max-width: 460px; width: 100%}
.sim-input { padding: 10px 12px; border-top: 1px solid var(--border)}
.sim-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px}
/* ── Yardımcı sınıflar ───────────────────────────────────────────────── */
.auth button.full { height: 46px; margin-top: 5px}
@media (max-width: 640px) {
  /* Yardımcı sınıf: daha sonra tanımlanan .cmdk-btn/.fx-chip gibi display kurallarını da ezebilmesi için */
  .hide-sm { display: none}
}
.show-sm { display: none}
@media (max-width: 640px) {
  .show-sm { display: inline}
}
.text-link {
  font-weight: 600;
  white-space: normal;
  align-items: center;
  font-size: 12px;
  color: var(--brand-text);
  display: inline-flex;
  min-height: 32px}
.compact-list .task-line .grow { flex-basis: 100%}
.checkin .grow { min-width: 0; flex: 1 1 190px}
@media (max-width:600px) {
  .task-line .grow { flex: 1 1 calc(100% - 24px)}
  .checkin .grow { flex-basis: 100%}
}
.checklist .grow { flex: 1}
.card-heading .text-link { white-space: nowrap}
.mt-8 { margin-top: 8px}
.mt-12 { margin-top: 12px}
.mt-16 { margin-top: 16px}
.fw-400 { font-weight: 400}
.w-220 { flex: 0 1 220px}
.w-120 { flex: 0 1 120px}
.w-160 { flex: 0 1 160px}
.nowrap { white-space: nowrap}
.center { text-align: center}
.r { text-align: right}
.quote-head>.grow { flex: 1; min-width: 240px}
.lines-table th.r { text-align: right}
.chat-head>.grow { flex: 1; min-width: 0}
.reactions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px}
.rx {
  min-height: 26px;
  height: 26px;
  padding: 0 8px;
  border-radius: 99px;
  font-size: 13px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text)}
.rx.mine { background: var(--brand-tint); border-color: var(--brand); color: var(--brand-text)}
.rx-menu {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 0;
  z-index: 20;
  display: flex;
  gap: 2px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  box-shadow: 0 6px 20px rgb(0 0 0 / .15)}
.rx-opt { min-height: 32px; width: 32px; padding: 0; border: 0; background: none; font-size: 17px; border-radius: 50%}
.rx-opt:hover { background: var(--surface-2)}
[data-theme=dark] .rx-menu { background: var(--surface-2)}
.u-ai-baseline { align-items: baseline}
.u-bb-1px-solid-border { border-bottom: 1px solid var(--border)}
.u-bc-rgb-255-255-255-5 { border-color: rgb(255 255 255 / .5)}
.u-bg-surface-2 { background: var(--surface-2)}
.u-bt-1px-solid-border { border-top: 1px solid var(--border)}
.u-c-heading { color: var(--heading)}
.u-c-inherit { color: inherit}
.u-d-block { display: block !important}
.u-d-flex { display: flex}
.u-d-inline { display: inline}
.u-flex-0-0-auto { flex: 0 0 auto}
.u-flex-0-1-120px { flex: 0 1 120px}
.u-flex-0-1-130px { flex: 0 1 130px}
.u-flex-0-1-140px { flex: 0 1 140px}
.u-flex-0-1-160px { flex: 0 1 160px}
.u-flex-0-1-170px { flex: 0 1 170px}
.u-flex-0-1-180px { flex: 0 1 180px}
.u-flex-0-1-190px { flex: 0 1 190px}
.u-flex-0-1-220px { flex: 0 1 220px}
.u-flex-0-1-240px { flex: 0 1 240px}
.u-fs-24px { font-size: 24px}
.u-fw-400 { font-weight: 400}
.u-fw-500 { font-weight: 500}
.u-fw-600 { font-weight: 600}
.u-fwrap-nowrap { flex-wrap: nowrap}
.u-fwrap-wrap { flex-wrap: wrap}
.u-gap-6px { gap: 6px}
.u-gap-6px-16px { gap: 6px 16px}
.u-jc-space-between { justify-content: space-between}
.u-lh-32px { line-height: 32px}
.u-liststyle-none { list-style: none}
.u-m-0 { margin: 0}
.u-m-0-6px { margin: 0 6px}
.u-m-10px-0 { margin: 10px 0}
.u-m-12px-0-0 { margin: 12px 0 0}
.u-m-24px { margin: 24px}
.u-m-4px-0 { margin: 4px 0}
.u-m-4px-0-8px { margin: 4px 0 8px}
.u-m-8px-0-0 { margin: 8px 0 0}
.u-maxw-320px { max-width: 320px}
.u-maxw-640px { max-width: 640px}
.u-maxw-720px { max-width: 720px}
.u-mb-0 { margin-bottom: 0}
.u-mb-16px { margin-bottom: 16px}
.u-mb-4px { margin-bottom: 4px}
.u-mb-8px { margin-bottom: 8px}
.u-minw-220px { min-width: 220px}
.u-ml-auto { margin-left: auto}
.u-mt-12px { margin-top: 12px !important}
.u-mt-16px { margin-top: 16px !important}
.u-mt-24px { margin-top: 24px}
.u-mt-4px { margin-top: 4px}
.u-mt-6px { margin-top: 6px}
.u-mt-8px { margin-top: 8px !important}
.u-p-0-24px-16px { padding: 0 24px 16px !important}
.u-p-12px-16px { padding: 12px 16px}
.u-p-16px-24px { padding: 16px 24px}
.u-p-16px-24px-0 { padding: 16px 24px 0}
.u-p-8px-16px { padding: 8px 16px}
.u-position-relative { position: relative}
.u-pt-16px { padding-top: 16px}
.u-ta-center { text-align: center}
.u-ta-right { text-align: right !important}
.u-w-180px { width: 180px}
.u-w-240px { width: 240px !important}
.u-w-40px { width: 40px}
.u-w-auto { width: auto !important}
.u-ws-nowrap { white-space: nowrap}
.u-ws-pre-line { white-space: pre-line}
.recovery-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; list-style: none; padding: 0; font-size: 16px}
@media (max-width: 600px) {
  .task-table td.r, .task-table td.u-ta-right { text-align: left}
}
.u-flex-gap { display: flex; gap: 8px; flex-wrap: wrap; align-items: center}
.qt-thumb .r { margin-left: auto; background: var(--qt)}
.u-flex-1 { flex: 1; min-width: 0}
.full { width: 100%}
.align-end { align-items: flex-end}
.w-auto { width: auto}
.w-num { width: 70px}
.inline { display: inline}
.p-0 { padding: 0}
@media (max-width:640px) {
  .value-row .w-num, .value-actions { grid-column: auto}
}
.small-h { font-size: 13px; margin: 16px 0 4px; color: var(--muted-strong); font-weight: 600}
.w-full { width: 100%; justify-content: center}
@keyframes toast { 0% { opacity: 0; transform: translateY(8px)} 6%, 88% { opacity: 1; transform: none} 100% { opacity: 0; visibility: hidden} }
/* ── Ana ekran: Başlarken kartı ─────────────────────────────────────── */
.ob-head { display: flex; justify-content: space-between; align-items: center; gap: 16px}
.ob-head h2 { margin: 2px 0 0}
.ob-ring {
  --p: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--brand) calc(var(--p) * 1%), var(--surface-2) 0)}
.ob-ring b { display: grid; place-items: center; border-radius: 50%; background: var(--surface); color: var(--heading)}
.ob-steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px}
.ob-steps a {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  height: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s, transform .15s}
.ob-steps a:hover { border-color: var(--brand); box-shadow: 0 4px 12px rgb(30 60 120 / .08); transform: translateY(-1px)}
.ob-check { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--brand-tint); color: var(--brand-text); font-weight: 700; font-size: 13px}
.ob-txt { display: flex; flex-direction: column; gap: 2px}
.ob-txt b { color: var(--heading); font-weight: 600}
.ob-txt span { font-size: 12.5px; color: var(--muted)}
.ob-steps li.done a { background: var(--surface-2)}
.ob-steps li.done .ob-check { background: var(--s-green); color: var(--on-solid)}
.ob-steps li.done .ob-txt b { color: var(--muted); text-decoration: line-through}
.ob-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px}
.ob-foot form { margin: 0}
.ob-hide { margin-left: auto !important}
/* ── Telefon: alt sekme çubuğu, kaydırmalı panolar ─────────────────── */
.tabbar { display: none}
@media (max-width:760px) {
  .tabbar {
    position: fixed;
    z-index: 40;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    border-top: 1px solid var(--border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px)}
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; color: var(--muted); font-size: 10.5px; font-weight: 600; text-decoration: none}
  .tabbar a svg { width: 23px; height: 23px}
  .tabbar a.on { color: var(--brand-text)}
  .tabbar .tab-add {
    justify-self: center;
    width: 48px;
    height: 48px;
    min-height: 48px;
    padding: 0;
    margin-top: -18px;
    border: 0;
    border-radius: 50%;
    background: var(--brand);
    color: var(--on-solid);
    box-shadow: 0 6px 16px color-mix(in srgb, var(--brand) 45%, transparent)}
  .tabbar .tab-add svg { width: 24px; height: 24px}
  .main:has(.tabbar) .content { padding-bottom: calc(84px + env(safe-area-inset-bottom))}
  /* top:auto şart: ≤640px kuralı top:16 veriyor; onsuz toast hem üstten hem alttan sabitlenip tüm ekranı kaplıyordu */
  body:has(.tabbar) .toast { top: auto; bottom: calc(80px + env(safe-area-inset-bottom))}
  /* panolar: sütunlar ekran genişliğinde, parmakla yana kaydırılır ve yerine oturur */
  .board { grid-auto-columns: 86vw; gap: 12px; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 16px; scroll-padding: 0 16px}
  .board-col { scroll-snap-align: start; min-height: 0}
  .board-card { cursor: default}
  /* liste satırları dokunmaya uygun yükseklikte */
  .list li > a, .task-list tr { min-height: 48px}
}
[data-theme=dark] .tabbar { background: color-mix(in srgb, var(--surface) 92%, transparent)}
.ob-steps:empty { display: none}
.ob-done { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0}
.onboard .ob-done a { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: var(--b-green-bg); color: var(--b-green); font-size: 12px; font-weight: 600; text-decoration: none}
.ob-done a span { font-weight: 700}
/* ── Detay ekranları (özet + akış düzeni) ──────────────────────────── */
.c-hero { padding: 20px 24px}
.c-hero-top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap}
.c-avatar { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 16px; font-size: 20px; font-weight: 700}
.c-meta { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 6px}
.c-chips { display: flex; flex-wrap: wrap; gap: 6px}
.c-quick { display: flex; flex-wrap: wrap; gap: 6px}
.c-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 18px -24px -20px; border-top: 1px solid var(--border); background: var(--border); border-radius: 0 0 14px 14px; overflow: hidden}
.c-kpis a { display: flex; flex-direction: column; gap: 2px; padding: 14px 20px; background: var(--surface); color: var(--text); text-decoration: none}
.c-kpis a:hover { background: var(--surface-2); text-decoration: none}
.c-kpis span { font-size: 12px; color: var(--muted); font-weight: 600}
.c-kpis b { font-size: 19px; color: var(--heading); letter-spacing: -.02em}
.c-kpis small { font-size: 12px; color: var(--muted)}
.detail-layout { display: grid; grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); gap: 20px; align-items: start}
.detail-side { position: sticky; top: 88px; max-height: calc(100vh - 100px); overflow: auto; scrollbar-width: thin; padding-bottom: 8px}
.detail-side .card { padding: 20px}
.detail-main { min-width: 0}
.detail-tabs { display: flex; gap: 4px; margin: 0 0 14px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none}
.detail-tabs button { min-height: 42px; padding: 8px 14px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; box-shadow: none; color: var(--muted); font-weight: 600; white-space: nowrap}
.detail-tabs button:hover { background: none; color: var(--heading)}
.detail-tabs button[aria-selected=true] { color: var(--brand-text); border-bottom-color: var(--brand)}
.detail-tabs button span { margin-left: 4px; padding: 0 7px; border-radius: 999px; background: var(--surface-2); font-size: 11.5px; color: var(--muted)}
[data-theme=dark] .detail-tabs button { background: none}
.composer { padding: 16px 18px}
.composer-kinds { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; padding: 0; border: 0}
.composer-kinds .chip-radio { padding: 4px 12px; font-size: 13px}
.composer textarea { min-height: 70px}
.composer-foot { display: flex; justify-content: flex-end; margin-top: 10px}
.feed { list-style: none; margin: 0; padding: 0 0 0 4px; position: relative}
.feed::before { content: ""; position: absolute; left: 21px; top: 8px; bottom: 8px; width: 2px; background: var(--border)}
.feed li { position: relative; display: flex; gap: 12px; padding: 0 0 14px}
.feed-ic {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid var(--bg);
  background: var(--surface-3);
  color: var(--b-blue);
  font-size: 15px}
.feed-body { flex: 1; min-width: 0; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface)}
.feed-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; margin-bottom: 3px}
.feed-head b { font-size: 13px}
.fk-call .feed-ic { background: var(--b-green-bg); color: var(--b-green)}
.fk-meeting .feed-ic { background: var(--b-purple-bg); color: var(--b-purple)}
.fk-email .feed-ic { background: var(--b-blue-bg); color: var(--brand-text)}
.fk-whatsapp .feed-ic { background: var(--b-green-bg); color: var(--b-green)}
.fk-deal .feed-ic, .fk-order .feed-ic { background: var(--b-amber-bg); color: var(--b-amber)}
.fk-won .feed-ic { background: var(--s-green); color: var(--on-solid)}
.fk-lost .feed-ic { background: var(--b-red-bg); color: var(--b-red)}
.fk-task .feed-ic { background: var(--b-teal-bg); color: var(--b-teal)}
[data-theme=dark] .feed-ic { border-color: var(--bg); filter: saturate(.8) brightness(.9)}
@media (max-width:1023px) {
  .detail-layout { grid-template-columns: 1fr}
  .detail-side { position: static; max-height: none; overflow: visible; order: 2}
  .c-kpis { grid-template-columns: repeat(2, 1fr)}
}
@media (max-width:600px) {
  .c-hero { padding: 16px}
  .c-kpis { margin: 16px -16px -16px}
  .c-kpis a { padding: 12px 14px}
  .c-kpis b { font-size: 16px}
  .c-avatar { width: 46px; height: 46px; font-size: 17px}
}
.deal-hero { padding: 20px 24px 16px}
.dh-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap}
.dh-main { display: flex; flex-direction: column; gap: 8px; min-width: 0}
.dh-badges { display: flex; gap: 6px; flex-wrap: wrap}
.dh-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px}
.dh-value { font-size: 26px; font-weight: 700; color: var(--heading); letter-spacing: -.03em}
.dh-cust { font-weight: 600}
.dh-owner { display: inline-flex; align-items: center; gap: 6px; font-size: 13px}
.dh-owner .avatar.sm { width: 24px; height: 24px; border-radius: 50%; font-size: 11px}
.dh-result { display: flex; gap: 8px}
.dh-result form { margin: 0}
button.won-btn { background: var(--s-green); border-color: var(--s-green); color: var(--on-solid); min-width: 116px}
button.won-btn:hover { background: var(--s-green); border-color: var(--s-green)}
button.lost-btn { background: var(--surface); border-color: var(--b-red-line); color: var(--b-red); min-width: 116px}
button.lost-btn:hover { background: var(--b-red-bg)}
[data-theme=dark] button.lost-btn { background: transparent}
.pipeline { display: flex; margin: 16px 0 0; gap: 3px}
.pipeline .pl-step {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  padding: 6px 10px 6px 18px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: var(--surface-3);
  color: var(--b-blue);
  font-size: 12.5px;
  flex-direction: column;
  gap: 0;
  line-height: 1.2;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%, 10px 50%)}
.pipeline .pl-step:first-child { clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%); border-radius: 8px 0 0 8px; padding-left: 12px}
.pipeline .pl-step:last-child { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 10px 50%); border-radius: 0 8px 8px 0}
.pipeline .pl-step span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%}
.pipeline .pl-step small { font-size: 11px}
.pipeline .pl-step.done { background: var(--s-green); color: var(--b-green)}
.pipeline .pl-step.on { background: var(--s-green); color: var(--on-solid); font-weight: 700}
.pipeline .pl-step:hover:not(:disabled):not(.on) { background: var(--b-blue-bg)}
.pipeline .pl-step:disabled { opacity: 1; cursor: default}
@media (max-width:600px) {
  .deal-hero { padding: 16px}
  .dh-value { font-size: 22px}
  .pipeline { overflow-x: auto; scrollbar-width: none}
  .pipeline .pl-step { flex: 0 0 auto; min-width: 104px}
  .dh-result { width: 100%}
  .dh-result > * { flex: 1}
  .dh-result button { width: 100%}
}
.chip-radio input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none}
.chip-radio { position: relative}
.chip-radio:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px}
.detail-side .details { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 8px 12px; margin: 0}
.detail-side .details dt { color: var(--muted); font-size: 13px; margin: 0}
.detail-side .details dd { margin: 0; overflow-wrap: anywhere}
.avatar.c-avatar { width: 56px; height: 56px; border-radius: 16px; font-size: 20px}
@media (max-width:600px) {
  .avatar.c-avatar { width: 46px; height: 46px; font-size: 17px}
}
/* ── Son ayarlar: sade kartlar, arama, pano boş durumu, menü ikonları ── */
/* Başlarken kartı: adımlar ve tamamlananlar yan yana, boşluk yok */
.onboard { padding-top: 18px; padding-bottom: 16px}
.ob-ring { width: 48px; height: 48px}
.ob-ring b { width: 36px; height: 36px; font-size: 12px}
.ob-body { display: flex; flex-wrap: wrap}
.ob-body .ob-steps { margin: 0}
.ob-body .ob-done { margin: 0}
.ob-done a { font-size: 12.5px; padding: 4px 10px}
.ob-foot:not(:has(form:not(.ob-hide))) { margin-top: 4px}
/* Sayı kartları: süs daireleri yok, sıfırlar sönük */
/* Arama kutusu görünür sınırlarla */
.global-search { border: 1px solid var(--border); border-radius: 9px; padding: 0 10px; background: var(--surface-2)}
.global-search:focus-within { border-color: var(--brand)}
/* Pano: boş sütun */
.col-empty {
  margin: 18px 4px;
  padding: 18px 10px;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
  border: 1px dashed var(--border-strong);
  border-radius: 10px}
.board-col:has(.board-card) .col-empty { display: none}
/* Yan menü ikonları tek renk; seçili sayfada beyaz */
/* Telefonda karşılama kutusu küçük */
@media (max-width:600px) {
  .dashboard-heading { border-radius: 14px}
  .dashboard-heading h1 { font-size: 22px; margin: 0}
  .dashboard-heading .eyebrow { display: none}
  .date-day { font-size: 20px}
}
/* Anlık bildirim kartı (Profil > Bildirimler) */
.push-card { margin-bottom: 16px}
.push-card h2 { margin: 0 0 4px}
.push-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0}
/* Profil: takvim bağlantısı */
.cal-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px}
.cal-actions form { margin: 0}
/* Müşteri portalı */
.portal-balance { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 8px}
.portal-balance div { display: flex; flex-direction: column}
.portal-balance b { font-size: 24px; color: var(--heading)}
/* Üst çubuk: arama kutusu koyu temada tek parça; "Yeni" düğmesi */
[data-theme=dark] .global-search input, .global-search input { background: transparent !important; border: 0 !important}
.cmdk-btn { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--heading)}
.cmdk-btn svg { width: 15px; height: 15px}
/* Sohbet mesaj işlemleri: bağlantı ve düğmeler aynı boy, aynı satırda */
.cmsg-actions > form, .cmsg-actions > details { margin: 0; display: inline-flex; align-items: center}
.cmsg-actions .link, .cmsg-actions button.link, .cmsg-actions summary.link { font-size: 13px; font-weight: 500; line-height: 24px; height: 24px; min-height: 24px; padding: 0; margin: 0; vertical-align: middle}
.cmsg-actions .cmsg-edit[open] { display: block; flex-basis: 100%}
/* Görev düzenleme penceresi: geniş, iki sütun */
dialog.dialog-wide { width: min(920px, calc(100vw - 32px)); max-width: none}
.edit-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 8px 28px}
.edit-grid textarea { min-height: 180px}
.edit-side fieldset { border: 1px solid var(--border); border-radius: 10px; padding: 4px 14px 14px; margin: 8px 0 12px}
.edit-side legend { font-size: 12px; font-weight: 700; color: var(--muted-strong); text-transform: uppercase; letter-spacing: .04em; padding: 0 6px}
.edit-side .row { gap: 10px}
.edit-note { grid-column: 1 / -1}
@media (max-width: 760px) {
  .edit-grid { grid-template-columns: 1fr}
}
/* Görev detayında durum seçimi */
/* Pano kartı: başlık, bağlam (proje, müşteri, etiket), alt satır; durum seçimi kartın altında, içeriğin üstüne binmez */
.board-card { display: flex; flex-direction: column; gap: 8px; padding: 12px 12px 10px 16px}
.board-card .t { margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden}
.bc-meta { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; position: relative; z-index: 1; font-size: 12px}
.bc-meta .bc-cust { margin: 0; color: var(--muted)}
.bc-badges { gap: 4px 10px}
.bc-num { color: var(--muted); font-variant-numeric: tabular-nums}
.bc-b { background: none !important; padding: 0 !important}
.bc-due { padding: 1px 7px; border-radius: 999px; background: var(--surface-2); color: var(--muted-strong); font-size: 11.5px}
.bc-due.late { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger)}
.bc-due.soon { background: color-mix(in srgb, var(--s-amber) 18%, transparent); color: var(--b-amber)}
.board-card .bc-move { display: block; margin: 2px 0 0; position: relative; z-index: 2}
.board-card .bc-move select, .board-card select {
  position: static !important;
  opacity: 1 !important;
  width: 100%;
  height: 30px;
  margin: 0;
  padding: 2px 8px;
  font-size: 12px;
  color: var(--muted-strong);
  background-color: transparent;
  border: 1px dashed var(--border-strong);
  box-shadow: none}
.board-card .bc-move select:hover, .board-card .bc-move select:focus { border-style: solid; border-color: var(--brand); color: var(--text)}
/* Proje etiketi: renkli, belirgin */
.project-chip:not(.customer-chip) {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--chip, var(--brand));
  background: color-mix(in srgb, var(--chip, var(--brand)) 13%, transparent);
  width: fit-content}
.project-chip:not(.customer-chip)::before { border-radius: 50%}
.task-table td:first-child .project-chip { display: inline-flex; margin: 6px 6px 0 0}
/* Teklif asistanı: sayfayı dolduran sohbet kartı */
.assistant-chat { max-width: none; height: calc(100dvh - 210px); min-height: 460px}
.assistant-chat .chat-log { flex: 1; max-height: none; min-height: 0; padding: 4px 4px 12px}
.assistant-chat .msg { max-width: min(720px, 86%)}
.assistant-chat .chat-input textarea { min-height: 52px}
@media (max-width:640px) {
  .assistant-chat { height: calc(100dvh - 190px)}
}
/* Telefon: alt sekme çubuğu varken sohbet kartı ekrana sığsın; yazı kutusu çubuğun arkasında kalmasın
   (üst çubuk + sayfa başlığı ≈ 230px, alt çubuk ≈ 72px + güvenli alan) */
@media (max-width:760px) {
  body:has(.tabbar) .assistant-chat { height: calc(100dvh - 318px - env(safe-area-inset-bottom)); min-height: 340px}
  /* yazı alanı tam genişlikte üstte; dosya, ses ve Gönder altında tek satırda */
  .assistant-chat .chat-input { flex-wrap: wrap; gap: 8px; align-items: center}
  .assistant-chat .chat-input textarea { order: -1; flex: 1 0 100%; min-height: 48px; font-size: 16px}   /* 16px: iOS'ta odaklanınca yakınlaşmasın */
  .assistant-chat .chat-input .asst-tool { width: 40px; height: 40px; min-height: 40px}
  .assistant-chat .chat-input > button.primary { margin-left: auto}
}
/* ── Ekran denetimi düzeltmeleri ─────────────────────────────── */
/* Bir kutunun hemen altındaki satırın etiketleri yapışmasın */
input + .row, select + .row, textarea + .row, .row + .row, .err + .row, .hint + .row, fieldset + .row { margin-top: 18px}
/* Üst sayfaya dönüş: bölüm etiketinin yerinde */
.page-heading .back-link a { color: var(--brand-text, var(--brand)); text-decoration: none}
.breadcrumb .crumb-parent a { color: inherit; text-decoration: none}
.breadcrumb .crumb-parent a:hover { color: var(--heading); text-decoration: underline}
/* Görev listesi: proje ve müşteri her zaman başlığın altında, aynı satırda */
.row-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px}
.row-chips .project-chip { margin: 0}
/* Görev detayı: durum düğmeleri tek yerde */
/* Teklif kalemleri: düğmeler her satırda aynı yerde */
.line-actions { white-space: nowrap; text-align: right; vertical-align: middle}
.line-actions .line-menu { display: inline-block; position: relative; vertical-align: middle; margin-left: 4px}
.line-actions .line-menu summary { list-style: none; width: 32px}
.line-actions .line-menu summary::-webkit-details-marker { display: none}
.line-actions .line-menu .menu-pop { right: 0; left: auto; min-width: 160px; text-align: left}
/* Teklif toplamları: kâr bilgisi ayrı satırda */
.totals { flex-wrap: wrap}
.totals .margin-box { flex-basis: 100%; display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--border)}
.totals .margin-box dd { padding: 0}
/* Müşteri: KVKK sade bir satır */
.kvkk-box { padding: 12px 16px; border: 1px dashed var(--border-strong); border-radius: 10px; color: var(--muted-strong); font-size: 13px}
.kvkk-box summary { cursor: pointer}
.kvkk-box[open] { background: var(--surface)}
/* Fırsat panosu: sütunlar ekrana sığsın */
.deal-board { grid-auto-columns: minmax(220px, 1fr)}
/* Dosya seçme düğmesi */
.file-pick { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap}
.file-pick input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0}
.file-pick .file-btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); color: var(--heading); font-size: 14px; font-weight: 500; cursor: pointer}
.file-pick .file-btn:hover { border-color: var(--brand)}
.file-pick input[type=file]:focus-visible + .file-btn { box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent)}
.file-pick .file-name { color: var(--muted); font-size: 13px}
/* Ekip: departman seçimi okunur genişlikte */
.dept-select { min-width: 160px}
/* Telefon: alttaki menü içeriğin üstüne binmesin */
@media (max-width: 760px) { .content { padding-bottom: 96px} }
.chat-side-search { margin: 0 0 12px}
.chat-side-search input { width: 100%; height: 36px; font-size: 13px}
/* Ayarlar: sekmeler gerçek sekme, tüm kartlar aynı genişlikte */
.settings-tabs a.active { background: var(--brand-tint); color: var(--brand-text, var(--brand)); font-weight: 600}
#company, #schedule, #more, #permissions, #reminders, #holidays, #delivery, .settings-tabs { max-width: 960px !important}
.var-chip { display: inline-flex; height: 26px; padding: 0 10px; margin: 2px 4px 2px 0; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface); color: var(--brand-text, var(--brand)); font-size: 12px; font-weight: 500; cursor: pointer}
.var-chip:hover { border-color: var(--brand)}
@media (min-width: 900px) { .lines-wrap { overflow: visible} }

/* ── Sürüm 6: sade renk dili, sıkı yan menü, sakin ana ekran ──────────── */
/* Yan menü: koyu nötr zemin, kısa satırlar, tek renk ikonlar; seçili sayfa yumuşak vurgu + mavi çizgi */
.sidebar { width: 236px; padding: 0 12px}
.sidebar-brand-row { height: 60px; padding: 0 2px}
.sidebar-logo { padding: 0 8px}
.sidebar-logo .wordmark { font-size: 24px; letter-spacing: -.06em}
.sidebar-logo .brand-tagline { display: none}
.workspace-label { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; padding: 8px; border: 1px solid var(--s-blue) !important; border-radius: 10px}
.workspace-symbol { width: 26px; height: 26px; border-radius: 7px; font-size: 12px; background: var(--brand); border: 0; color: var(--on-solid)}
.workspace-label div>span { display: none}
.workspace-label strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block}
.nav { gap: 1px; padding-bottom: 12px}
.nav-items { gap: 1px}
button.nav-label { padding: 16px 10px 6px; font-size: 10.5px; letter-spacing: .07em; }
.nav-group:first-child button.nav-label { padding-top: 6px}
.nav a { min-height: 34px; padding: 6px 10px; gap: 10px; border-radius: 7px; font-size: 13px; font-weight: 500; box-shadow: none}
.nav a .icon, .nav svg { width: 17px; height: 17px}
.nav a.active, .nav a.active:hover { font-weight: 600}
.nav-count { height: 18px; min-width: 18px; font-size: 10.5px; background: var(--brand)}
.sidebar-user { border-top: 1px solid var(--s-blue); padding: 12px 4px}
@media (max-width:1023px) {
  .sidebar { width: 272px; padding: 0 14px}
  .nav a { min-height: 42px; font-size: 14px}
}
/* Ana ekran başlığı: degrade kutu yerine sade başlık */
.dashboard-heading { background: none; box-shadow: none; padding: 0; border-radius: 0; color: inherit}
.dashboard-heading h1 { margin: 2px 0 0}
.greeting-dot { color: var(--brand-text)}
/* Sayı kartları: renkli üst çizgi yok; sadece dikkat isteyen sayı renkli */
.dashboard-metrics > * { border-top: 1px solid var(--border) !important}
.metric.featured, [data-theme=dark] .metric.featured { background: var(--surface); border-color: var(--border)}
.metric b, .metric.featured b { color: var(--heading); font-weight: 600; letter-spacing: -.03em}
.metric.zero b { color: var(--faint) !important}
.metric.danger-metric:not(.zero) { border-color: color-mix(in srgb, var(--danger) 35%, var(--border)) !important}
.metric.danger-metric:not(.zero) b { color: var(--danger)}
.metric-arrow { color: var(--faint); transition: color .15s, transform .15s}
.metric:hover { border-color: var(--border-strong) !important; text-decoration: none}
.metric:hover .metric-arrow { color: var(--brand-text); transform: translate(1px,-1px)}
.metric-caption { border-top: 0; padding-top: 0}
.metric b { margin: 8px 0 4px; font-size: 30px}
/* Boş kartlar fazla yer kaplamasın */
/* Telefon: sayılar tek bakışta, kompakt ızgara */
@media (max-width:600px) {
  .dashboard-heading { padding: 0; margin-bottom: 16px}
  .dashboard-metrics { gap: 8px}
  .dashboard-metrics .metric { padding: 12px 14px}
  .metric-label { font-size: 12px; line-height: 1.35}
  .metric b { font-size: 24px; margin: 6px 0 0}
  .metric-caption { display: none}
}
/* ── Sürüm 7: açık yan menü + daraltılabilir ikon rayı ─────────────────── */
.sidebar { background: var(--surface); border-right: 1px solid var(--border); color: var(--text); transition: width .18s ease}
.sidebar-logo { color: var(--heading)}
.sidebar-logo .brand-dot { color: var(--brand-text)}
.workspace-label { background: var(--surface-2); border-color: var(--border) !important}
.workspace-label strong { color: var(--heading)}
button.nav-label, [data-theme=dark] button.nav-label { color: var(--muted)}
button.nav-label:hover, [data-theme=dark] button.nav-label:hover { color: var(--heading)}
.nav a { color: var(--text)}
.nav a .icon { color: var(--faint) !important}
.nav a:hover { background: var(--surface-2); color: var(--heading)}
.nav a:hover .icon { color: var(--muted-strong) !important}
.nav a.active, .nav a.active:hover { background: var(--brand-tint); color: var(--brand-text); box-shadow: none}
.nav a.active .icon, .nav a[aria-current] .icon { color: var(--brand-text) !important}
.sidebar-user { border-top-color: var(--border)}
.sidebar-user b { color: var(--heading)}
.sidebar-close { background: var(--surface-2); color: var(--muted-strong)}
.sidebar-close:hover { background: var(--border); color: var(--heading)}
.sidebar a:focus-visible, .sidebar button:focus-visible { outline-color: var(--brand)}
.topbar, [data-theme=dark] .topbar { background: var(--surface)}
.sidebar-rail-btn { display: grid; place-items: center; width: 30px; height: 30px; min-height: 30px; padding: 0; border: 0; border-radius: 7px; background: none; color: var(--faint); cursor: pointer}
.sidebar-rail-btn:hover { background: var(--surface-2); color: var(--heading)}
.sidebar-rail-btn svg { width: 18px; height: 18px}
.rail-chev { transition: transform .18s; transform-origin: 14.5px 12px}
@media (max-width:1023px) {
  .sidebar-rail-btn { display: none}
}
/* Daraltılmış hal: sadece ikonlar, üzerine gelince ad (title) */
@media (min-width:1024px) {
  [data-rail] .sidebar { width: 64px; padding: 0 10px}
  [data-rail] .sidebar-brand-row { flex-direction: column; justify-content: center; gap: 6px; height: auto; padding: 14px 0 10px}
  [data-rail] .sidebar-logo { padding: 0; align-items: center}
  [data-rail] .sidebar-logo .wordmark { font-size: 0}
  [data-rail] .sidebar-logo .wordmark::before { content: "k"; font-size: 24px}
  [data-rail] .sidebar-logo .brand-dot { font-size: 24px}
  [data-rail] .rail-chev { transform: scaleX(-1)}
  [data-rail] .workspace-label { justify-content: center; padding: 0 !important; background: none; border: 0 !important; margin-bottom: 6px}
  [data-rail] .workspace-label > div { display: none}
  [data-rail] .workspace-symbol { width: 32px; height: 32px}
  [data-rail] button.nav-label { display: none}
  [data-rail] .nav-group.collapsed .nav-items { display: flex}
  [data-rail] .nav-group + .nav-group { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 6px}
  [data-rail] .nav { scrollbar-width: none}
  [data-rail] .nav a { justify-content: center; padding: 0; min-height: 38px; font-size: 0; gap: 0}
  [data-rail] .nav a .icon { width: 19px; height: 19px}
  [data-rail] .nav-count { position: absolute; top: 3px; right: 3px; height: 16px; min-width: 16px; padding: 0 4px; font-size: 10px}
  [data-rail] .sidebar-user { flex-direction: column; justify-content: center; gap: 6px; padding: 10px 0}
  [data-rail] .sidebar-user > a { display: none}
}
button.nav-label { min-height: 0; }
button.nav-label, [data-theme=dark] button.nav-label { background: none; box-shadow: none; border: 0; }
/* ── Sürüm 7.1: sakin başlarken kartı, sade tarih, menü balonu ─────────── */
/* Başlarken: tamamlananlar tek satır özet, tıklayınca açılır */
.onboard { padding: 16px 20px}
.onboard .ob-head h2 { font-size: 15px; margin-bottom: 0}
.onboard .ob-ring { width: 40px; height: 40px}
.onboard .ob-ring b { width: 31px; height: 31px; font-size: 11px}
.ob-body { margin-top: 12px}
.ob-body .ob-done { flex: 0 1 auto}
.ob-done summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--muted-strong); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border)}
.ob-done summary::-webkit-details-marker { display: none}
.ob-done summary:hover { color: var(--heading); border-color: var(--border-strong)}
.ob-done-check { color: var(--b-green); font-weight: 700}
.ob-done-list { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; font-size: 12.5px}
.onboard .ob-done-list a { padding: 0; background: none; color: var(--muted-strong); font-weight: 500}
.onboard .ob-done-list a::before { content: "✓ "; color: var(--b-green)}
.ob-foot { margin-top: 8px}
/* Tarih: başlıkla yarışmayan sakin bir hap */
.dashboard-date { gap: 8px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); align-self: center}
.date-day { font-size: 14px !important; font-weight: 600; line-height: 1; padding: 0 !important; border: 0 !important; color: var(--heading)}
.dashboard-date > div { display: flex !important; gap: 4px; align-items: baseline}
.dashboard-date strong, .dashboard-date div > span { font-size: 13px; font-weight: 500; color: var(--muted-strong)}
.dashboard-date div > span::before { content: "· "}
@media (max-width:600px) {
  .dashboard-date div > span { display: none !important}
}
/* Dar menü: özel isim balonu */
.rail-tip { position: fixed; z-index: 100; pointer-events: none; padding: 5px 9px; border-radius: 6px; background: var(--inverse); color: var(--on-solid); font-size: 12px; font-weight: 500; white-space: nowrap; box-shadow: 0 4px 14px rgb(0 0 0 / .18); opacity: 0; transform: translateX(-4px); transition: opacity .1s, transform .1s}
.rail-tip.show { opacity: 1; transform: none}
.rail-tip::before { content: ""; position: absolute; left: -4px; top: 50%; margin-top: -4px; border: 4px solid transparent; border-left: 0; border-right-color: var(--muted)}
.ob-body { flex-direction: column; align-items: stretch; gap: 10px}
.ob-body .ob-steps { flex: none; width: 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px}
/* width: dikey flex içinde otomatik sütunlu ızgara genişliğini bilmeden yükseklik hesaplıyordu; 6 adımda kutular ~230px uzuyordu */
.ob-body .ob-done { align-self: flex-start}
.onboard { position: relative}
.ob-foot .ob-hide { position: absolute; right: 20px; bottom: 16px}
.ob-foot:not(:has(form:not(.ob-hide))) { margin: 0}
.nav button.nav-label { padding: 16px 10px 6px}
.nav .nav-group:first-child button.nav-label { padding-top: 6px}
.sidebar-user .mute { color: var(--muted)}
/* ── Türkçe tarih/saat alanları ─────────────────────────────────────────── */
.trd { position: relative; display: inline-flex; align-items: center; width: 100%; vertical-align: middle}
.trd.w-auto, .trd.u-w-auto { width: auto}
.trd-date .trd-text { min-width: 0; width: 100%; padding-right: 36px}
.trd.w-auto .trd-text, .trd.u-w-auto .trd-text { width: 9.5em}
.trd-time.w-auto .trd-text, .trd-time .trd-text { padding-right: 36px}
.trd-month .trd-text { padding-right: 36px}
.trd-text { font-variant-numeric: tabular-nums}
.trd-btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 28px; height: 28px; min-height: 28px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--faint); cursor: pointer}
.trd-btn:hover { background: var(--surface-2); color: var(--brand-text)}
.trd-btn svg { width: 17px; height: 17px}
.trd-native { position: absolute !important; right: 0; bottom: 0; width: 32px !important; height: 100% !important; opacity: 0 !important; pointer-events: none; padding: 0 !important; border: 0 !important}
/* ── Canlılık: ilerleme çubuğu, meşgul düğme, yeni mesaj girişi ──────────── */
.nav-progress { position: fixed; z-index: 200; top: 0; left: 0; height: 2px; width: 0; background: var(--brand); box-shadow: 0 0 8px color-mix(in srgb, var(--brand) 60%, transparent); opacity: 0; pointer-events: none}
.nav-progress.run { opacity: 1; animation: nav-progress 6s cubic-bezier(.1,.7,.2,1) forwards}
.nav-progress.end { animation: none; width: 100%; opacity: 0; transition: width .2s ease, opacity .3s ease .15s}
@keyframes nav-progress { 0% { width: 0} 10% { width: 35%} 100% { width: 88%} }
button.is-busy { position: relative; color: transparent !important; pointer-events: none}
button.is-busy > * { visibility: hidden}
button.is-busy::after { content: ""; position: absolute; inset: 0; margin: auto; width: 15px; height: 15px; border-radius: 50%; border: 2px solid currentColor; border-color: var(--busy-c, var(--heading)); border-right-color: transparent; animation: busy-spin .6s linear infinite}
button.primary.is-busy, .btn.primary.is-busy { --busy-c: var(--border)}
button.danger.is-busy { --busy-c: var(--danger)}
button.link.is-busy::after { width: 12px; height: 12px}
@keyframes busy-spin { to { transform: rotate(360deg)} }
.cmsg { transition: opacity .25s ease, transform .25s ease, background-color 1.2s ease}
.cmsg.htmx-added { opacity: 0; transform: translateY(6px)}
.board-card, .card, .btn, button, .nav a, .metric { transition-property: background-color, border-color, color, box-shadow, transform, opacity; transition-duration: .15s}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important}
  .nav-progress.run { width: 60%}
  button.is-busy::after { animation: none; border-right-color: currentColor; opacity: .5}
}
/* Boş durumlar: bağlama uygun ikon, yumuşak daire */
.empty { padding: 36px 20px}
.empty-ic { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--brand-tint); color: var(--brand-text); box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand-tint) 45%, transparent); margin-bottom: 6px}
.empty-ic svg { width: 22px; height: 22px; margin: 0; padding: 0; background: none; border-radius: 0}
.empty b { font-size: 14px; margin-top: 10px}
.empty p { font-size: 12.5px; line-height: 1.55; max-width: 380px}
.review-card .empty { padding: 12px; display: flex; align-items: center; gap: 12px; text-align: left}
.review-card .empty-ic { width: 36px; height: 36px; box-shadow: none; margin: 0; flex: none}
.review-card .empty-ic svg { width: 18px; height: 18px}
.review-card .empty b { margin: 0}
.review-card .empty p { margin: 2px 0 0}
.review-card .empty { display: grid; grid-template-columns: auto 1fr; column-gap: 12px}
.review-card .empty-ic { grid-row: span 2}
/* Rapor grafiği: değer etiketi, sıfır çizgisi, seyrek veri notu */
.bar { position: relative; border-radius: 5px 5px 2px 2px; transition: height .4s cubic-bezier(.2,.8,.2,1), opacity .15s}
.bar.zero { height: 2px !important; background: var(--border-strong); border-radius: 1px}
.bar[data-v]::before { content: attr(data-v); position: absolute; left: 50%; bottom: calc(100% + 3px); transform: translateX(-50%); font-size: 10.5px; font-weight: 600; color: var(--muted-strong); font-variant-numeric: tabular-nums}
.bar-group:hover .bar:not(.zero), .bar-group:focus-visible .bar:not(.zero) { opacity: .85}
.bar-chart { padding-top: 18px}
.bar-chart.sparse { height: 140px}
.chart-sparse { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 8px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); color: var(--muted-strong); font-size: 12.5px; line-height: 1.5}
.chart-sparse b { color: var(--heading)}
.chart-sparse-ic { flex: none; display: grid; place-items: center; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: var(--brand-tint); color: var(--brand-text); font: 700 11px/1 Georgia, serif; font-style: italic}
/* Pano: dolu sütunlar genişler, boş sütunlar dar ve kısa kalır (yine bırakma hedefi) */
.board { display: flex; align-items: flex-start}
.board > .board-col { flex: 1 0 265px; min-width: 0}
.board > .board-col:not(:has(.board-card)) { flex: 0 0 210px; min-height: 150px}
.board-col:not(:has(.board-card)) .col-empty { margin: 8px 0 0; padding: 22px 8px}
/* Klavye kısayolları penceresi */
dialog.kbd-help { width: min(640px, calc(100vw - 32px))}
.kbd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 28px; padding: 4px 2px 6px}
.kbd-grid h3 { margin: 10px 0 6px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted)}
.kbd-grid dl { margin: 0}
.kbd-grid dl > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--border)}
.kbd-grid dl > div:last-child { border-bottom: 0}
.kbd-grid dt { order: 2; display: flex; align-items: center; gap: 3px; flex: none}
.kbd-grid dd { margin: 0; font-size: 13px; color: var(--text)}
.kbd-help kbd { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 5px; background: var(--surface); color: var(--heading); font: 600 11.5px/1 var(--font-ui)}
.kbd-plus { color: var(--faint); font-size: 11px}
@media (max-width: 600px) { .kbd-grid { grid-template-columns: 1fr} }
.sidebar-user .kbd-help-btn { margin-left: auto; color: var(--faint)}
.sidebar-user .kbd-help-btn:hover { color: var(--heading)}
.sidebar-user form { margin: 0}
@media (min-width:1024px) { [data-rail] .sidebar-user .kbd-help-btn { margin: 0} }
.kbd-grid { padding: 6px 24px 22px}
/* Telefon: "Müdahale bekleyenler" başlığı ve hızlı düğmeler alt alta */
@media (max-width:600px) {
  .overview-label { flex-wrap: wrap; gap: 10px}
}
/* ── Sürüm 8: proje kartları ───────────────────────────────────────────── */
/* Kartın tamamı tıklanır (başlık bağlantısı kartı kaplar); alt satır her kartta aynı hizada */
.project-grid { align-items: start}   /* kısa kart en uzun karta göre uzamasın */
.project-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 20px; border-top: 1px solid var(--border) !important; transition: border-color .15s, box-shadow .15s, transform .15s}
.project-card:hover { border-color: color-mix(in srgb, var(--pc) 45%, var(--border)) !important; box-shadow: 0 8px 24px -14px color-mix(in srgb, var(--pc) 55%, transparent); transform: translateY(-1px)}
.project-card:focus-within { border-color: var(--pc) !important}
.pc-head { display: flex; align-items: flex-start; gap: 12px}
.pc-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--pc-bg); color: var(--pc)}
.pc-ic svg { width: 21px; height: 21px}
.pc-title { flex: 1; min-width: 0}
.pc-title h2 { margin: 0 0 2px; font-size: 16px; line-height: 1.35}
.pc-link { color: var(--heading); text-decoration: none !important}
.pc-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit}
.pc-link:focus-visible { outline: none}
.pc-link:focus-visible::after { outline: 2px solid var(--brand); outline-offset: 2px}
.project-card .project-desc { margin: 0; min-height: 3.1em}
.pc-foot { margin-top: auto; display: flex; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--border)}
.pc-owner { flex: 1; min-width: 0; overflow: hidden}
.pc-act { position: relative; z-index: 1; margin: 0}
.pc-act svg, .pc-foot .btn svg { width: 15px; height: 15px}
.pc-foot .btn { display: inline-flex; align-items: center; gap: 6px}
.pc-foot button.icon-only { display: grid; place-items: center; width: 32px; height: 32px; min-height: 32px; padding: 0; border-radius: 8px; color: var(--muted)}
.pc-foot button.icon-only:hover { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, var(--border))}
.pc-foot button.icon-only svg { width: 16px; height: 16px}
/* ── Sürüm 8: görev listesi ─────────────────────────────────────────────── */
/* Sütun genişlikleri filtreden bağımsız sabit: tablo içeriğe göre yeniden dağılmaz */
.task-list { table-layout: fixed; width: 100%}
.task-list .c-status { width: 150px}
.task-list .c-prio { width: 116px}
.task-list .c-owner { width: 200px}
.task-list .c-due { width: 128px}
.task-list td { overflow-wrap: anywhere}
.task-list td:first-child { min-width: 0 !important}
.task-list td:first-child > a { color: var(--heading)}
.task-list .person > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap}
@media (max-width:1200px) { .task-list .c-owner { width: 170px} .task-list .c-status { width: 140px} }
/* Öncelik: renkli nokta + yazı (hap kalabalığı yerine); yüksek öncelikli satır çok açık kırmızı zemin */
.prio { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--muted-strong)}
.prio i { width: 8px; height: 8px; border-radius: 50%; background: var(--faint)}
.prio-medium i { background: var(--s-amber)}
.prio-high i { background: var(--danger); box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 18%, transparent)}
.task-list tbody tr { transition: background-color .15s}
.task-list tbody tr:hover { background: color-mix(in srgb, var(--brand) 4%, var(--surface))}
.task-list tr.overdue td:first-child { box-shadow: inset 3px 0 0 var(--danger)}
.task-list td { background: transparent}
@media (max-width:600px) {
  .task-list { table-layout: auto}
}
/* ── Sürüm 8: görev aşamaları (adım çubuğu) ─────────────────────────────── */
.status-flow { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border)}
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; counter-reset: step}
.step form { margin: 0; height: 100%}
.step-btn { position: relative; width: 100%; height: 100%; min-height: 64px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px;
  padding: 10px 12px 10px 34px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; text-align: left}
.step-dot { position: absolute; left: 12px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; border: 2px solid var(--border-strong); background: var(--surface)}
.step-name { font-size: 13px; font-weight: 600; color: var(--heading); line-height: 1.3}
.step-act { font-size: 11.5px; color: var(--muted)}
.step-current .step-btn { border-color: var(--brand); background: var(--brand-tint); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent)}
.step-current .step-dot { border-color: var(--brand); background: var(--brand); box-shadow: inset 0 0 0 2px var(--brand-tint)}
.step-current .step-act { color: var(--brand-text); font-weight: 600}
.step-past .step-btn { background: var(--surface-2)}
.step-past .step-dot { border-color: var(--b-green); background: var(--b-green)}
.step-next button.step-btn { cursor: pointer; border-style: dashed; border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); transition: background .15s, border-color .15s, transform .15s}
.step-next button.step-btn:hover { border-style: solid; border-color: var(--brand); background: color-mix(in srgb, var(--brand) 6%, var(--surface)); transform: translateY(-1px)}
.step-next .step-act { color: var(--brand-text); font-weight: 600}
.step-next .step-act::after { content: " →"}
.step-locked .step-btn { opacity: .6; cursor: help}
.step-locked .step-dot { border-style: dashed}
.step-hint { margin: 8px 0 0}
.status-more { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px}
.status-more form { margin: 0}
@media (max-width:700px) {
  .steps { grid-auto-flow: row; grid-auto-columns: auto}
  .step-btn { min-height: 48px}
}
.offday-form.is-focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent)}
/* ── Sürüm 8: çalışanın mesai takvimi ───────────────────────────────────── */
.att-month { display: flex; align-items: center; gap: 12px}
.att-cal { padding: 8px 16px 4px}
.att-cal-head, .att-cal-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px}
.att-cal-head span { padding: 6px 4px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); text-align: center}
.att-cal-row { margin-bottom: 6px}
.att-day { --c: var(--border-strong); position: relative; min-height: 84px; padding: 8px 9px 8px 12px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); display: flex; flex-direction: column; gap: 3px; overflow: hidden}
.att-day::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c); opacity: .9}
.att-num { font-size: 12.5px; font-weight: 700; color: var(--heading)}
.att-times { display: flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--text)}
.att-times b { font-weight: 600; color: var(--heading)}
.att-tag { font-size: 11px; color: var(--muted-strong); line-height: 1.3}
.att-day.out::before { display: none}
.att-day.is-today { border-color: var(--brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 18%, transparent)}
.att-day.is-today .att-num { color: var(--brand-text)}
.st-on_time { --c: var(--st-on_time)}
.st-extra { --c: var(--s-purple)}
.st-late { --c: var(--st-late)}
.st-absent { --c: var(--st-absent)}
.st-leave { --c: var(--s-blue)}
.st-holiday, .st-off { --c: transparent}
.st-future, .st-none, .st-waiting { --c: transparent}
.att-day.st-on_time { background: color-mix(in srgb, var(--st-on_time) 6%, var(--surface))}
.att-day.st-late { background: color-mix(in srgb, var(--st-late) 8%, var(--surface))}
.att-day.st-absent { background: color-mix(in srgb, var(--st-absent) 7%, var(--surface))}
.att-day.st-leave { background: color-mix(in srgb, var(--s-blue) 7%, var(--surface))}
.att-day.st-extra { background: color-mix(in srgb, var(--s-purple) 7%, var(--surface))}
.att-day.st-off, .att-day.st-holiday { background: repeating-linear-gradient(135deg, var(--surface-2) 0 6px, var(--surface) 6px 12px)}
.att-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 8px 16px 16px; color: var(--muted-strong)}
.att-legend span { display: inline-flex; align-items: center; gap: 6px}
.att-legend .lg { width: 10px; height: 10px; border-radius: 3px; background: var(--c)}
.att-legend .lg.st-holiday { background: repeating-linear-gradient(135deg, var(--border-strong) 0 3px, var(--surface) 3px 6px)}
@media (max-width:700px) {
  .att-cal { padding: 6px 8px 2px}
  .att-cal-head, .att-cal-row { gap: 3px}
  .att-day { min-height: 54px; padding: 5px 4px 5px 7px}
  .att-times b + span, .att-tag { display: none}
  .att-times { flex-direction: column; align-items: flex-start; gap: 0; font-size: 10.5px}
}
.sec-ai { --sec: var(--sec-ai)} .sec-work { --sec: var(--sec-work)} .sec-sales { --sec: var(--sec-sales)} .sec-time { --sec: var(--sec-time)}
.sec-admin { --sec: var(--sec-admin)} .sec-reports { --sec: var(--sec-reports)} .sec-chat { --sec: var(--sec-chat)}
.sec-me { --sec: var(--sec-me)} .sec-search { --sec: var(--sec-search)}
/* Sayfanın üstünde bölüm renginde çok hafif bir ışıma: düz beyaz/gri yerine canlı ama yormayan zemin */
/* Sayfa başlığı: renkli ikon kutucuğu + bölüm adı + başlık */
.page-heading { align-items: center; gap: 16px}
.page-ic { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; color: var(--on-solid);
  background: linear-gradient(140deg, color-mix(in srgb, var(--sec) 82%, var(--surface)), var(--sec));
  box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--sec) 80%, transparent), inset 0 1px 0 rgb(255 255 255 / .25)}
.page-ic svg { width: 26px; height: 26px}
.page-title { flex: 1; min-width: 0}
.page-title h1 { margin: 0}
.eyebrow.eb::before { background: var(--sec) !important}
@media (max-width:600px) { .page-ic { width: 42px; height: 42px; border-radius: 12px} .page-ic svg { width: 21px; height: 21px} }
/* Sol menü: her grubun ikonu kendi bölüm renginde (seçili sayfa yine markada) */
.nav-group[data-group=work] { --sec: var(--sec-work)}
.nav-group[data-group=sales] { --sec: var(--sec-sales)}
.nav-group[data-group=time] { --sec: var(--sec-time)}
.nav-group[data-group=admin] { --sec: var(--sec-admin)}
.nav-group .nav a .icon, .nav-group a .icon { color: color-mix(in srgb, var(--sec) 80%, var(--muted)) !important}
.nav-group a:hover .icon { color: var(--sec) !important}
.nav-group a.active, .nav-group a.active:hover { background: color-mix(in srgb, var(--sec) 11%, var(--surface)); color: color-mix(in srgb, var(--sec) 75%, var(--heading))}
.nav-group a.active .icon { color: var(--sec) !important}
/* Kartlarda bölüm rengi: bağlantılar ve ilerleme çubukları aynı aileden */
/* Ana ekran sayı kartları: renkli ikon kutucuğu (sıfırda da renkli, sayı sönük kalır) */
.metric { --tone: var(--brand)}
.metric.tone-red { --tone: var(--danger)} .metric.tone-blue { --tone: var(--sec-work)} .metric.tone-amber { --tone: var(--sec-time)}
.metric.tone-purple { --tone: var(--sec-admin)} .metric.tone-teal { --tone: var(--sec-chat)}
.metric-label { align-items: center; justify-content: flex-start}
.metric-label .metric-arrow { margin-left: auto}
.metric-ic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; margin-right: 10px;
  background: color-mix(in srgb, var(--tone) 13%, var(--surface)); color: var(--tone)}
.metric-ic svg { width: 19px; height: 19px}
.metric:not(.zero) { background: linear-gradient(160deg, color-mix(in srgb, var(--tone) 6%, var(--surface)), var(--surface) 55%)}
.metric:hover { border-color: color-mix(in srgb, var(--tone) 40%, var(--border)) !important; box-shadow: 0 10px 24px -16px color-mix(in srgb, var(--tone) 70%, transparent)}
@media (max-width:600px) { .metric-ic { width: 28px; height: 28px; margin-right: 8px} .metric-ic svg { width: 16px; height: 16px} }
/* Ana ekran karşılaması da iş takibi renginden hafif bir ışıma alır */
.dashboard-heading h1 .greeting-dot { color: var(--sec-work)}
/* Yazı olarak kullanılan bölüm rengi koyulaştırılır (WCAG AA); ikon ve zeminler canlı kalır */
.eyebrow.eb { color: color-mix(in srgb, var(--sec) 72%, var(--heading))}
.content .card .section-head .eyebrow { color: color-mix(in srgb, var(--sec, var(--brand)) 62%, var(--heading))}
.nav-group a.active, .nav-group a.active:hover { color: color-mix(in srgb, var(--sec) 62%, var(--heading))}
.metric:not(.zero) b { color: color-mix(in srgb, var(--tone) 62%, var(--heading))}
/* Kontrast: soluk görünüm saydamlıkla değil okunur gri tonla */
.att-day.out { opacity: 1; background: transparent; border-style: dashed}
.att-day.out .att-num { color: var(--muted); font-weight: 500}
.step-locked .step-btn { opacity: 1; background: var(--surface-2); border-style: dashed}
.step-locked .step-name { color: var(--muted-strong)}
.step-locked .step-act { color: var(--muted)}
/* Görev listesi: satır zemini durumun renginden (Durumlar ekranından açık/koyu/beyaz seçilir);
   yüksek öncelik kırmızı sol çizgi + kırmızı noktayla gösterilir, durum rengiyle karışmaz */
.task-list tr.pr-high { background: transparent}
.task-list tr.pr-high:hover { background: color-mix(in srgb, var(--brand) 4%, var(--surface))}
.task-list tr.tint-strong { background: color-mix(in srgb, var(--sc) 17%, var(--surface))}
.task-list tr.tint-strong:hover { background: color-mix(in srgb, var(--sc) 22%, var(--surface))}
[data-theme=dark] .task-list tr.tint-soft { background: color-mix(in srgb, var(--sc) 5%, var(--surface))}
[data-theme=dark] .task-list tr.tint-strong { background: color-mix(in srgb, var(--sc) 11%, var(--surface))}
.task-list tr.tint-strong .badge { background: var(--surface)}
.task-list tbody tr + tr td { border-top-color: color-mix(in srgb, var(--border) 80%, transparent)}
/* Durumlar ekranında zemin önizlemesi */
.status-row { grid-template-columns: auto 1fr 120px 150px 170px auto}
.tint-preview { display: inline-flex; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--border)}
.tint-preview.tint-strong { background: color-mix(in srgb, var(--sc) 17%, var(--surface))}
.tint-preview.tint-strong .badge { background: var(--surface)}
@media (max-width:900px) { .status-row { grid-template-columns: 1fr 1fr} }
.task-list tbody td { background: transparent !important}
.task-list tr.tint-soft { background: color-mix(in srgb, var(--sc) 10%, var(--surface))}
.task-list tr.tint-soft:hover { background: color-mix(in srgb, var(--sc) 14%, var(--surface))}
.tint-preview.tint-soft { background: color-mix(in srgb, var(--sc) 10%, var(--surface))}
/* ── Sürüm 9: sakin üst alan ve ana ekran ───────────────────────────────── */
/* Sayfa üstündeki renk ışıması kaldırıldı: renk sadece ikon kutusunda, zemin düz ve temiz */
.content, [data-theme=dark] .content { background: none}
/* Ana ekran başlığı diğer sayfalarla aynı: ikon kutusu · selam · (tarih + hızlı işlemler) */
.dashboard-heading.page-heading { margin-bottom: 22px; flex-wrap: wrap}
.dash-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end}
.dash-actions .dashboard-date { margin-right: 4px}
.btn-ic { width: 16px; height: 16px; flex: none}
.btn:has(.btn-ic), button:has(.btn-ic) { display: inline-flex; align-items: center; gap: 7px}
.overview-label.eyebrow { margin: 0 0 10px; font-size: 11px; color: var(--muted-strong)}
.overview-label + .dashboard-metrics, .dashboard-metrics { margin-bottom: 22px}
@media (max-width:600px) {
  .dash-actions { width: 100%; justify-content: flex-start}
  .dash-actions .btn { flex: 1; justify-content: center}
  .dash-actions .dashboard-date { width: 100%; justify-content: flex-start}
}
/* Ekip raporu */
.team-report th { white-space: nowrap}
.tr-person { display: flex; flex-direction: column; align-items: flex-start; gap: 4px}
.att-chip { --c: var(--border-strong); display: inline-flex; align-items: center; gap: 5px; margin-left: 40px; padding: 1px 8px; border-radius: 99px; font-size: 11px; font-weight: 600;
  color: var(--muted-strong); background: var(--surface-2)}
.att-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c)}
.att-chip.st-on_time, .att-chip.st-extra { --c: var(--st-on_time); color: var(--b-green); background: var(--b-green-bg)}
.att-chip.st-late { --c: var(--st-late); color: var(--b-amber); background: var(--b-amber-bg)}
.att-chip.st-absent { --c: var(--st-absent); color: var(--b-red); background: var(--b-red-bg)}
.att-chip.st-leave { --c: var(--s-blue); color: var(--b-blue); background: var(--b-blue-bg)}
.load-track.seg { display: inline-flex; width: auto; min-width: 6px; max-width: 120px; height: 8px; gap: 2px; background: none}
.team-report .load-cell { gap: 10px; width: 160px}
.team-report .load-track.seg { flex: none}
.seg-prog, .tr-legend .seg-prog { background: var(--sec-work) !important}
.seg-rev, .tr-legend .seg-rev { background: var(--s-amber) !important}
.seg-wait, .tr-legend .seg-wait { background: var(--border-strong) !important}
.load-track.seg > span { display: block; height: 100%; border-radius: 3px; min-width: 0}
.cnt { display: inline-grid !important; place-items: center; min-width: 28px !important; min-height: 24px !important; padding: 0 7px; border-radius: 99px; font-weight: 700; font-size: 12.5px; text-decoration: none !important}
.cnt-red { background: var(--b-red-bg); color: var(--b-red)}
.cnt-amber { background: var(--b-amber-bg); color: var(--b-amber)}
.rate { --rc: var(--st-on_time); display: inline-flex; align-items: center; gap: 8px}
.rate.mid { --rc: var(--s-amber)} .rate.bad { --rc: var(--danger)}
.rate-bar { width: 56px; height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden}
.rate-bar > span { display: block; height: 100%; background: var(--rc); border-radius: 6px}
.tr-legend { display: flex; gap: 16px; padding: 10px 24px 16px; color: var(--muted-strong)}
.tr-legend span { display: inline-flex; align-items: center; gap: 6px}
.tr-legend i { width: 10px; height: 10px; border-radius: 3px}
@media (max-width:900px) {
  .team-report th:nth-child(4), .team-report td:nth-child(4), .team-report th:nth-child(6), .team-report td:nth-child(6) { display: none}
}
@media (max-width:600px) {
  .team-report th:nth-child(5), .team-report td:nth-child(5), .team-report th:nth-child(7), .team-report td:nth-child(7) { display: none}
  .att-chip { margin-left: 0}
  .team-report .load-cell { width: auto}
}
.att-chip { white-space: nowrap}
/* ── Sürüm 9: görev listesi — durum zemini + öncelik şeridi ve ikonu ─────── */
/* Öncelik: dolgusuz, okunaklı metin + küçük simge (renk tek başına anlam taşımaz; metin her zaman görünür) */
.prio { display: inline-flex; align-items: center; gap: 5px; padding: 0; border-radius: 0; background: none; font-size: 12.5px; font-weight: 500; line-height: 1.2}
.prio i { display: none}
.prio svg { width: 14px; height: 14px; flex: none}
.prio-high { color: var(--b-red)}
.prio-medium { color: var(--b-amber)}
.prio-low { color: var(--muted)}
/* Filtreler: üst satır (arama · durum · bitiş aralığı · ara) ve düzenli "diğer filtreler" paneli */
.task-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px}
.task-filters > input[type=search] { flex: 1 1 260px}
.task-filters > select { flex: 0 1 200px}
.due-range { display: inline-flex; align-items: center; gap: 6px; padding: 0 4px 0 10px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface)}
.due-range-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted-strong)}
.due-range .trd { width: auto}
.due-range .trd-text { width: 8.6em; border: 0; box-shadow: none; background: transparent; padding-left: 4px}
.filter-search { display: inline-flex; align-items: center; gap: 6px}
.task-filters .filter-details { flex: 1 1 100%; margin: 0}
.task-filters .filter-details > summary { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted-strong); padding: 4px 2px; list-style: none}
.task-filters .filter-details > summary::-webkit-details-marker { display: none}
.task-filters .filter-details[open] > summary { color: var(--brand-text)}
.filter-panel { margin-top: 10px; padding: 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border)}
.filter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px 14px}
.filter-grid .fg { display: flex; flex-direction: column; gap: 4px; margin: 0; font-size: 12px; font-weight: 600; color: var(--muted-strong)}
.filter-grid .fg select { width: 100%; background-color: var(--surface)}
.filter-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border)}
.filter-checks { display: flex; flex-wrap: wrap; gap: 8px}
.filter-checks .check { margin: 0; padding: 6px 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border)}
.filter-checks .check:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); color: var(--brand-text)}
.filter-tools { display: flex; gap: 8px; margin-left: auto}
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted-strong)}
.btn-ic.xl { color: var(--b-green)}
@media (max-width:640px) { .due-range { flex: 1 1 100%} .filter-tools { margin-left: 0} }
/* Takvim: gün numarası o günün görevlerini listeler */
a.cal-num { display: inline-flex; align-items: center; gap: 6px; padding: 2px 6px; margin: -2px -6px 2px; border-radius: 7px; color: inherit; text-decoration: none}
a.cal-num:hover { background: var(--brand-tint); color: var(--brand-text); text-decoration: none}
.cal-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--brand); color: var(--on-solid); font-size: 10.5px; font-weight: 700}
.cal-count:empty { display: none}

/* Sürüm 9 · proje kartları: boyut seçici ve zengin içerik */
.grid-size { display: flex; justify-content: flex-end; gap: 4px; margin: 0 0 14px auto; width: max-content; padding: 3px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface)}
.grid-size button { display: grid; place-items: center; width: 34px; height: 30px; min-height: 30px; padding: 0; border: 0; border-radius: 7px; background: none; color: var(--muted)}
.grid-size button svg { width: 18px; height: 18px}
.grid-size button[aria-pressed="true"] { background: var(--brand-bg, var(--surface-2)); color: var(--brand-text)}
.project-grid[data-size="lg"] { grid-template-columns: repeat(2, minmax(0, 1fr))}
.project-grid[data-size="md"] { grid-template-columns: repeat(3, minmax(0, 1fr))}
.project-grid[data-size="sm"] { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px}
.project-grid[data-size="lg"] .project-card { padding: 26px; min-height: 340px}
.project-grid[data-size="sm"] .project-card { padding: 14px; gap: 9px}
.project-grid[data-size="sm"] .project-desc, .project-grid[data-size="sm"] .pc-next, .project-grid[data-size="sm"] .pc-team, .project-grid[data-size="sm"] .pc-chips { display: none}
.project-grid[data-size="sm"] .pc-ic { width: 32px; height: 32px}
@media (max-width: 1200px) { .project-grid[data-size="sm"] { grid-template-columns: repeat(3, minmax(0, 1fr))} }
@media (max-width: 900px) { .project-grid[data-size] { grid-template-columns: repeat(2, minmax(0, 1fr))} }
@media (max-width: 600px) { .project-grid[data-size] { grid-template-columns: 1fr} .grid-size { display: none} }
.pc-meter { display: flex; align-items: center; gap: 2px}
.pc-meter > span { height: 7px; border-radius: 4px; min-width: 0}
.pc-meter::before { content: ""}
.m-done { background: var(--pc)} .m-prog { background: color-mix(in srgb, var(--pc) 45%, var(--surface-2))} .m-wait { background: var(--surface-2)}
.pc-meter b { margin-left: 8px; font-size: 12.5px; color: var(--heading)}
.pc-meter:not(:has(span)) { height: 7px}
.pc-chips { display: flex; flex-wrap: wrap; gap: 6px}
.pc-chips:empty { display: none}
.pcc { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 600}
.pcc svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.2}
.pcc-blue { background: var(--b-blue-bg); color: var(--b-blue)}
.pcc-amber { background: var(--b-amber-bg); color: var(--b-amber)}
.pcc-red { background: var(--b-red-bg); color: var(--b-red)}
.pc-next { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px}
.pc-task { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 7px; color: var(--text); text-decoration: none !important; font-size: 13px}
.pc-task:hover { background: var(--surface-2)}
.pc-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--c)}
.pc-tt { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis}
.pc-due { flex: none; font-size: 12px; color: var(--muted)}
.pc-due.late { color: var(--b-red); font-weight: 600}
.pc-team { display: inline-flex}
.pc-team > * { margin-left: -6px; box-shadow: 0 0 0 2px var(--surface); border-radius: 50%}
.pc-more { display: grid; place-items: center; width: 24px; height: 24px; font-size: 11px; background: var(--surface-2); color: var(--muted)}

/* Sürüm 9 · müşteriler: sınıf, filtre, özel not */
.cust-filters .filter-main { display: flex; gap: 8px}
.cust-filters .filter-main input { flex: 1}
.tier-dot { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 6px; font-size: 11.5px; font-weight: 700; vertical-align: 1px; background: var(--surface-2); color: var(--muted)}
.tier-A { background: var(--b-red-bg); color: var(--b-red)}
.tier-B { background: var(--b-amber-bg); color: var(--b-amber)}
.tier-C { background: var(--b-blue-bg); color: var(--b-blue)}
.cust-tags { display: inline-flex; flex-wrap: wrap; gap: 4px}
.ctag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--text); white-space: nowrap}
.ctag svg { width: 13px; height: 13px}
.stage-lead { background: var(--b-purple-bg); color: var(--b-purple)}
.stage-active { background: var(--b-green-bg); color: var(--b-green)}
.stage-passive { background: var(--surface-2); color: var(--muted)}
.stage-lost { background: var(--b-red-bg); color: var(--b-red)}
.ctag.private { background: var(--b-amber-bg); color: var(--b-amber)}
.cust-row.cust-lost .row-title, .cust-row.cust-passive .row-title { color: var(--muted)}
.private-check { display: inline-flex; align-items: center; gap: 6px; margin-right: auto; font-size: 13px}
.private-check svg { width: 15px; height: 15px}
.composer-foot { display: flex; align-items: center; gap: 10px}
.feed li.fk-private .feed-body { border-left: 3px solid var(--b-amber); padding-left: 10px}
.cust-filters { display: block}
.cust-filters > * { width: 100%}
.cust-filters .filter-grid { margin-top: 12px}
.cust-filters .filter-grid .fg select { height: auto; flex: none}
.cust-row td.num { white-space: nowrap}
@media (max-width:640px) { .due-range { min-width: 0; flex-wrap: nowrap} .due-range .trd { flex: 1 1 0; min-width: 0} .due-range .trd-text { width: 100%; min-width: 0} .due-range-label { font-size: 0; gap: 0} .due-range-label svg { font-size: 12px} }

/* Sürüm 10 · onay penceresi */
dialog.kuki-confirm { width: min(420px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); color: var(--text); box-shadow: 0 24px 60px -20px rgba(15,23,42,.45)}
dialog.kuki-confirm::backdrop { background: rgba(15,23,42,.45); backdrop-filter: blur(2px)}
.kc-body { display: flex; gap: 14px; padding: 22px 22px 8px}
.kc-ic { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--b-red-bg); color: var(--b-red)}
.kc-ic svg { width: 22px; height: 22px}
.kc-body h2 { margin: 2px 0 6px; font-size: 16.5px; color: var(--heading)}
.kc-msg { margin: 0; font-size: 14px; color: var(--muted-strong); line-height: 1.5}
.kc-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 22px 20px}

/* Sürüm 10 · sayfa başlığı: renkli parıltı kendi kutusunun içinde */
.page-heading, .dashboard-heading { position: relative}
.page-heading h1, .dashboard-heading h1 { margin-bottom: 0}
@media (max-width: 640px) { .page-heading, .dashboard-heading { padding: 16px; border-radius: 14px} }
/* geri bağlantısı: küçük yazı yerine belirgin bir düğme */
.page-heading .back-link { text-transform: none; letter-spacing: 0; margin-bottom: 6px}
.page-heading .back-link a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 9px; border-radius: 99px; font-size: 13.5px; font-weight: 600;
  background: color-mix(in srgb, var(--sec, var(--brand)) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--sec, var(--brand)) 25%, var(--border))}
.page-heading .back-link a:hover { text-decoration: none; background: color-mix(in srgb, var(--sec, var(--brand)) 20%, var(--surface))}
.page-heading .back-link a::before { content: ""; width: 15px; height: 15px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M11 6l-6 6 6 6'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M11 6l-6 6 6 6'/%3E%3C/svg%3E") center/contain no-repeat}
/* görev satırı: öncelik çizgisi daha kalın ve belirgin */
.task-list tr[class*="pr-"] > td:first-child { padding-left: 22px}

/* Sürüm 10 · müşteri sağlığı */
.health { display: inline-flex; align-items: center; gap: 7px; --hc: var(--b-green)}
.health.h-watch, .health-panel.h-watch { --hc: var(--s-amber)} .health.h-risk, .health-panel.h-risk { --hc: var(--b-red)}
.health-bar { width: 54px; height: 6px; border-radius: 4px; background: var(--surface-2); overflow: hidden}
.health-bar > span { display: block; height: 100%; background: var(--hc); border-radius: 4px}
.health b { font-size: 12.5px; color: var(--hc)}
.health-panel { --hc: var(--b-green); display: flex; align-items: center; gap: 14px; margin: 14px 0 4px; padding: 12px 16px; border-radius: 12px;
  background: color-mix(in srgb, var(--hc) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--hc) 28%, var(--border))}
.hp-score { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; font-weight: 700; font-size: 16px; color: var(--hc);
  background: conic-gradient(var(--hc) calc(var(--p, 0) * 1%), transparent 0), var(--surface); border: 3px solid color-mix(in srgb, var(--hc) 35%, transparent)}
.health-panel b { color: var(--heading)}

/* Sürüm 10 · ana ekran: ekip raporu tam genişlik, iş dağılımı açıklaması */
.dashboard-metrics + .workload-card, .workload-card { margin-bottom: 22px}
.tr-name { color: inherit; text-decoration: none !important; border-radius: 8px}
.tr-name:hover .person, .tr-name:hover { color: var(--brand-text, var(--brand))}
.load-wrap { position: relative}
.load-tip { position: absolute; z-index: 30; left: 0; top: calc(100% + 8px); width: 300px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 18px 40px -16px rgba(15,23,42,.35); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .14s, transform .14s, visibility .14s; pointer-events: none; text-align: left; white-space: normal}
.load-wrap:hover .load-tip, .load-wrap:focus-within .load-tip { opacity: 1; visibility: visible; transform: none}
.lt-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13.5px; color: var(--heading); margin-bottom: 8px}
.lt-head .mute { font-size: 12px}
.lt-counts { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12.5px; font-weight: 600; color: var(--text); padding-bottom: 8px; border-bottom: 1px solid var(--border)}
.lt-counts i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; vertical-align: -1px}
.lt-late { color: var(--b-red)}
.lt-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 5px}
.lt-list li { display: flex; align-items: center; gap: 8px; font-size: 12.5px}
.lt-t { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis}
.lt-d { color: var(--muted); font-size: 11.5px} .lt-d.late { color: var(--b-red); font-weight: 600}
.lt-more { margin: 8px 0 0; font-size: 11.5px; color: var(--muted)}
.workload-wrap { overflow: visible}
.calls-card .call-list li { display: flex; align-items: center; gap: 10px}
.calls-card .tier-dot { margin: 0; flex: none}
.calls-card .btn-ic { width: 14px; height: 14px}

/* Sürüm 10 · kişi raporu */
.pr-hero { display: flex; align-items: center; gap: 16px}
.pr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px}
.pr-grid > .card { margin: 0}
@media (max-width: 900px) { .pr-grid { grid-template-columns: 1fr} }
.pr-att { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px}
.pr-att > div { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2)}
.pr-att b { font-size: 18px; color: var(--heading)}
.pr-list li { display: flex; align-items: center; gap: 8px}
.pr-list li.late { box-shadow: inset 3px 0 0 var(--b-red)}
.ok-text { color: var(--b-green); font-weight: 600}
.seg-toggle { display: inline-flex; gap: 4px}
.avatar.lg { width: 56px; height: 56px; font-size: 18px}
.team-report .load-cell { display: flex; align-items: center; gap: 8px; white-space: nowrap; min-width: 150px}
.team-report .load-track { flex: none; max-width: 110px}
.team-report tr:has(.load-wrap:hover), .team-report tr:has(.load-wrap:focus-within) { position: relative; z-index: 40}
.team-report td:has(.load-wrap:hover), .team-report td:has(.load-wrap:focus-within) { position: relative; z-index: 41}
.load-tip, .load-tip * { white-space: normal}
.lt-list li { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto}
.lt-t { white-space: nowrap !important}
.pr-list { padding: 0 24px 12px}
.pr-sub { margin: -12px 0 18px}

/* Sürüm 11 · müşteri kartı: sol sütun kendi içinde kaymaz, sağdaki sekme alanı sol sütunla aynı boya uzar */
.cust-layout { align-items: stretch}
.cust-layout .detail-side { position: static; max-height: none; overflow: visible}
.cust-layout .detail-main { display: flex; flex-direction: column; min-height: 100%}
.cust-layout .tab-pane:not([hidden]) { flex: 1; display: flex; flex-direction: column; gap: 16px}
.cust-layout .tab-pane:not([hidden]) > :last-child { flex: 1; margin-bottom: 0}
.cust-layout .tab-pane > .card, .cust-layout .tab-pane > section { margin-top: 0}
.class-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px}
.class-form label { display: flex; flex-direction: column; gap: 4px; margin: 0; font-size: 12px; font-weight: 600; color: var(--muted-strong)}
.class-form select, .class-form input { width: 100%; min-width: 0}

/* Sürüm 11 · teklif asistanı: sohbet + canlı taslak */
.asst-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start}
.asst-layout .assistant-chat { margin: 0}
@media (max-width: 1100px) { .asst-layout { grid-template-columns: 1fr} .asst-draft { position: static} }
.asst-welcome { list-style: none; max-width: 620px; margin: 24px auto; text-align: center}
.asst-welcome h2 { margin: 12px 0 6px; font-size: 20px; color: var(--heading)}
.asst-ic { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--b-green-bg); color: var(--b-green)}
.asst-ic svg { width: 28px; height: 28px}
.asst-examples { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px}
.asst-examples button.example { border-radius: 99px; font-weight: 500; background: var(--surface-2); border: 1px solid var(--border); white-space: normal; text-align: left}
.asst-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 0 4px}
.asst-chips button { border-radius: 99px}
.asst-draft { position: sticky; top: 88px; padding: 20px; margin: 0}
.ad-head h2 { margin: 2px 0 2px; font-size: 17px; color: var(--heading)}
.ad-lines { list-style: none; margin: 14px 0 8px; padding: 0; display: grid; gap: 4px}
.ad-lines li { display: flex; align-items: flex-start; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--border)}
.ad-lines li .num { font-size: 13px; white-space: nowrap; padding-top: 2px}
.ad-pos { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: var(--surface-2); font-size: 12px; font-weight: 700; color: var(--muted-strong)}
.ad-lines li.todo .ad-pos { background: var(--b-amber-bg); color: var(--b-amber)}
.ad-todo { display: inline-block; margin-top: 4px; padding: 1px 8px; border-radius: 99px; font-size: 11.5px; font-weight: 600; background: var(--b-amber-bg); color: var(--b-amber)}
.ad-lines .icon-only { width: 26px; height: 26px; min-height: 26px; padding: 0; color: var(--muted)}
.ad-totals { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin: 10px 0 14px; font-size: 13.5px}
.ad-totals dt { color: var(--muted-strong); margin: 0} .ad-totals dd { margin: 0; text-align: right}
.ad-totals .ad-grand { font-weight: 700; font-size: 15.5px; color: var(--heading); padding-top: 6px; border-top: 1px solid var(--border)}
.asst-draft form.inline:has(button.full) { display: block} .asst-draft button.full { width: 100%}
.ad-help { margin-top: 14px} .ad-help summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--brand-text, var(--brand))}
.ad-help ul { padding-left: 18px; margin: 8px 0 0; display: grid; gap: 6px}
.ad-ai { margin: 12px 0 0; padding: 8px 10px; border-radius: 9px; background: var(--surface-2); color: var(--muted)}
.ad-ai.on { background: var(--b-green-bg); color: var(--b-green)}
.ad-lines .grow { flex: 1; min-width: 0} .ad-lines li > form { margin-left: auto}

/* Sürüm 12 · filtre panelindeki seçim kutuları dikey uzamasın (üst kuraldaki flex-basis yükseklik oluyordu) */
.filter-grid .fg select, .filter-grid .fg input { flex: none !important; height: auto; min-height: 40px}
/* koyu tema: başlık kutusu parıltısı açık temadaki kadar belirgin */
[data-theme=dark] .page-heading, [data-theme=dark] .dashboard-heading {
  background:
    radial-gradient(640px 240px at 0% 0%, color-mix(in srgb, var(--sec, var(--brand)) 42%, transparent), transparent 72%),
    radial-gradient(480px 220px at 100% 130%, color-mix(in srgb, var(--sec, var(--brand)) 26%, transparent), transparent 70%),
    linear-gradient(120deg, color-mix(in srgb, var(--sec, var(--brand)) 12%, var(--surface)), var(--surface));
  border-color: color-mix(in srgb, var(--sec, var(--brand)) 35%, var(--border))}

/* Sürüm 12 · telefon: başlık düğmeleri alt satıra sarsın; görev kartında öncelik şeridi tek kez (kart kenarı) */
@media (max-width: 760px) {
  .page-heading { flex-wrap: wrap}
  .page-heading .actions { flex-wrap: wrap; width: 100%}
  .page-heading .actions > * { flex: 1 1 auto}
  .task-list tr[class*="pr-"] > td:first-child { box-shadow: none !important; background-image: none; padding-left: 16px}
}

/* Sürüm 13 · teklif asistanı: dosya, ses, sürükle-bırak */
.asst-layout { position: relative}
.chat-input .asst-tool { flex: none; width: 42px; height: 42px; min-height: 42px; padding: 0; display: grid; place-items: center; border-radius: 12px; color: var(--muted-strong)}
.chat-input .asst-tool svg { width: 20px; height: 20px}
.chat-input .asst-tool.on { background: var(--b-red-bg); color: var(--b-red); border-color: color-mix(in srgb, var(--b-red) 40%, var(--border)); animation: asst-pulse 1.4s ease-in-out infinite}
@keyframes asst-pulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--b-red) 18%, transparent)} }
.asst-drop { display: none; position: absolute; inset: 0; z-index: 20; place-items: center; border: 2px dashed var(--brand); border-radius: 18px;
  background: color-mix(in srgb, var(--brand) 10%, var(--surface)); color: var(--brand-text, var(--brand)); font-weight: 600; font-size: 16px; pointer-events: none}
.asst-layout.dragging .asst-drop { display: grid}
/* Sürüm 13 · satış */
.collect-kpis { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr))}
.collect-cal { margin-bottom: 20px}
.collect-day-total { font-size: 13px; color: var(--heading)}
.collect-late > li { padding: 14px 24px; align-items: center; flex-wrap: wrap}
.collect-late > li:first-child { padding-top: 14px}
.collect-late > li:last-child { padding-bottom: 14px}
.collect-late .grow { min-width: 220px}
.collect-actions { display: flex; flex-wrap: wrap; gap: 6px}
.stock-warn { display: inline-block; margin-top: 4px; padding: 1px 8px; border-radius: 99px; font-size: 12px; font-weight: 600;
  background: var(--b-amber-bg); color: var(--b-amber)}
.followup-line { margin: -4px 0 14px}
.target-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; margin: 4px 0 14px}
.target-figs span { display: block; font-size: 12px; color: var(--muted)}
.target-figs b { font-size: 18px; color: var(--heading)}
.prim-card { margin-top: 20px}
@media (max-width: 760px) {
  .collect-late > li { padding: 14px 16px}
  .collect-actions { width: 100%}
}
.target-card .progress { width: 100%; max-width: none}
/* Sürüm 13 · yönetim */
/* Ana ekranı düzenleme */
.dash-edit-btn[aria-current] { background: var(--brand-tint); border-color: var(--brand); color: var(--brand-text)}
.dash-edit { border-color: var(--brand)}
.dash-edit .section-head { align-items: flex-start; gap: 12px}
.dash-edit-zones { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 4px}
.dash-edit-zone .small-h { margin: 0 0 6px}
.dash-edit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px}
.dash-edit-list li { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface)}
.dash-edit-list li.is-hidden { background: var(--surface-2)}
.dash-edit-list li.is-hidden .de-name { color: var(--muted-strong)}
.de-name { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; color: var(--heading)}
.de-actions { display: flex; gap: 4px; margin: 0; flex: none}
.de-actions .de-move { min-width: 34px; padding-left: 0; padding-right: 0; justify-content: center}
.de-actions .de-toggle { min-width: 70px; justify-content: center}
.de-actions button:disabled { opacity: .45; cursor: default}
.dash-edit-reset { margin-top: 12px}

/* Erişim alanları (ekip sayfası) */
.access-areas summary { cursor: pointer}

/* Haftalık özet önizlemesi */
.digest-info { display: flex; align-items: center; gap: 12px; flex-wrap: wrap}
.digest-info .grow { flex: 1; min-width: 220px}
.digest-mail { overflow-x: auto; border-radius: var(--radius-lg)}
.digest-mail th { background: none !important; color: var(--muted-strong) !important; text-transform: none; letter-spacing: 0; position: static}
.digest-mail td, .digest-mail th { white-space: normal}
.digest-text summary { cursor: pointer; font-weight: 600; color: var(--heading)}
.digest-text pre { white-space: pre-wrap; word-break: break-word; margin: 12px 0 0; font-size: 13px; line-height: 1.55; color: var(--text); background: var(--surface-2); padding: 12px; border-radius: var(--radius)}

/* Hızlı işlemler (/hizli) */
.quick { display: grid; gap: 14px; max-width: 640px}
.quick .card { margin: 0}
.quick-att-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px}
.quick-att-head h2 { margin: 0}
.quick-clock { font-size: 28px; font-weight: 700; color: var(--heading); letter-spacing: -.02em}
.quick-att-state { margin: 6px 0 8px; color: var(--text)}
.quick-big { display: flex; width: 100%; min-height: 56px; margin-top: 12px; align-items: center; justify-content: center; font-size: 17px; font-weight: 700; border-radius: var(--radius-lg)}
.quick-stop { background: var(--b-red-bg); border-color: transparent; color: var(--b-red)}
.quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px}
.quick-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-height: 92px; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); color: var(--heading); font-weight: 600; font-size: 15px; text-decoration: none; box-shadow: var(--shadow)}
.quick-tile:hover, .quick-tile:focus-visible { border-color: var(--brand); color: var(--brand-text)}
.quick-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--brand-tint); color: var(--brand-text)}
.quick-ic svg { width: 20px; height: 20px}
.quick-tasks .section-head { margin-bottom: 4px}
.quick-list { list-style: none; margin: 0; padding: 0}
.quick-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--border)}
.quick-list li:first-child { border-top: 0}
.quick-list li.late .quick-task-title { color: var(--b-red)}
.quick-task-main { flex: 1 1 200px; min-width: 0}
.quick-task-title { display: block; font-weight: 600; color: var(--heading); text-decoration: none; overflow-wrap: anywhere}
.quick-task-main .meta { margin-top: 4px}
.quick-task-actions { display: flex; gap: 8px; flex: none}
.quick-task-actions form { margin: 0}
.quick-tap { min-height: 44px; min-width: 96px; justify-content: center; font-weight: 600}
@media (max-width:760px) {
  .tabbar { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr}
  .quick-task-actions { width: 100%}
  .quick-task-actions form, .quick-task-actions .quick-tap { flex: 1; width: 100%}
  .dash-edit .section-head { flex-wrap: wrap}
  .de-actions .de-toggle { min-width: 62px}
}
/* Sürüm 13 · ekip */
.badge.dep-badge, .bc-b.dep-badge { background: var(--b-purple-bg); color: var(--b-purple)}
.dep-note { margin: 0 0 12px; padding: 8px 12px; border-radius: var(--radius); background: var(--b-purple-bg); color: var(--b-purple); font-size: 13.5px}
.dep-title { margin: 14px 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-strong)}
#dependencies h2 + .dep-title, #dependencies .dep-note + .dep-title { margin-top: 0}
.timer-form { display: inline; margin: 0}
.timer-live { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: var(--b-green-bg); color: var(--b-green); font-size: 13px; font-weight: 600; white-space: nowrap}
.timer-live b { font-variant-numeric: tabular-nums}
.timer-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--b-green); vertical-align: middle; animation: timer-pulse 1.6s ease-in-out infinite}
@keyframes timer-pulse { 50% { opacity: .35} }
@media (prefers-reduced-motion: reduce) { .timer-dot { animation: none} }
.time-total { font-size: 17px; color: var(--heading)}
.time-bar { height: 4px; margin-top: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; max-width: 320px}
.time-bar span { display: block; height: 100%; border-radius: inherit; background: var(--series-done)}
.leave-balance { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 99px; background: var(--b-green-bg); color: var(--b-green); font-size: 12.5px; white-space: nowrap}
.leave-balance.low { background: var(--b-red-bg); color: var(--b-red)}
.leave-cell { display: grid; gap: 4px; justify-items: start}
.leave-input { width: 84px}
a.card.leave-stat { color: inherit; text-decoration: none}
a.card.leave-stat:hover { border-color: var(--border-strong)}
.leave-line b { color: var(--heading)}
.swap-incoming { border-left: 4px solid var(--b-teal)}
@media (max-width: 640px) {
  .page-heading:has(.timer-form) { flex-wrap: wrap}
  .page-heading:has(.timer-form) .actions { flex-shrink: 1; display: flex; flex-wrap: wrap; gap: 8px}
  .timer-live { padding: 4px 10px; font-size: 12px}
  .leave-balance { white-space: normal}
}

/* Sade görünüm (varsayılan): her şey biraz büyük, menüde sadece temel sayfalar. Profil > Görünüm'den kapatılır. */
@media (min-width: 721px) { html.simple-view body { zoom: 1.14} }
/* Telefonda büyütme yan kaydırma yapar; sadece metin büyür */
@media (max-width: 720px) { html.simple-view body { font-size: 16px} }
html.simple-view .nav-core .nav-items a { font-size: 15px; font-weight: 600; padding-top: 10px; padding-bottom: 10px}
html.simple-view .nav-more > button.nav-label { font-size: 12px; text-transform: none; letter-spacing: 0}
html.simple-view .nav-more .nav-group button.nav-label { padding-top: 12px; padding-left: 20px}
html.simple-view .nav-more .nav-group .nav-items a { padding-left: 20px}
.view-mode { border: 1px solid var(--border, var(--b-blue-line)); border-radius: 10px; padding: 12px 14px}
.view-mode legend { padding: 0 6px}
.view-mode .check { align-items: flex-start; gap: 8px}
.view-mode input[type=radio] { margin-top: 4px}

/* Ana sayfa: "Bugün ne yapmalıyım?" – her satır tek tıkla ilgili listeyi açar */
.today-card h2 { margin: 0 0 12px; font-size: 20px}
.today-card .today-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px}
.today-card .today-list li { list-style: none; margin: 0; padding: 0}
.today-card .today-list li::before, .today-card .today-list li::marker { content: none}
.today-card a.today-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px;
  text-decoration: none; color: var(--text); font-size: 16px; font-weight: 600; background: var(--surface, var(--surface))}
.today-card a.today-item:hover, .today-card a.today-item:focus-visible { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 6%, transparent)}
.today-n { min-width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 20px}
.today-blue .today-n { background: var(--b-blue-bg); color: var(--b-blue)}
.today-red .today-n { background: var(--b-red-bg); color: var(--b-red)}
.today-amber .today-n { background: var(--b-amber-bg); color: var(--b-amber)}
.today-go { margin-left: auto; font-size: 20px; color: var(--brand-text)}
.today-empty { font-size: 16px; margin: 0}

/* İlk giriş soruları: büyük, tek tıkla seçilen cevaplar */
.view-quiz { max-width: 560px; width: calc(100% - 32px)}
.view-quiz .vq-intro { font-size: 16px; margin: 0 0 8px}
.view-quiz .vq-q { border: 0; padding: 0; margin: 18px 0 0}
.view-quiz .vq-q legend { font-size: 16px; font-weight: 600; color: var(--heading); margin-bottom: 10px; display: flex; gap: 10px; align-items: flex-start}
.view-quiz .vq-num { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: var(--on-solid); display: inline-flex; align-items: center; justify-content: center; font-size: 14px}
.view-quiz .vq-opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 0 0 8px; border: 1px solid var(--border); border-radius: 10px; font-size: 15px; cursor: pointer}
.view-quiz .vq-opt:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, transparent)}
.view-quiz .vq-opt input { width: 20px; height: 20px; margin: 0; flex: none}
/* "Devam et" DOM'da önde: Enter'a basınca formun varsayılan düğmesi o olsun, "Şimdilik geç" değil. Görünüşte sağda kalır. */
.view-quiz .vq-foot { flex-direction: row-reverse; justify-content: flex-start}

/* Firma askıda / deneme doldu sayfası */
.blocked-card { text-align: center}
.blocked-ic { display: inline-flex; width: 56px; height: 56px; border-radius: 16px; align-items: center; justify-content: center;
  background: var(--b-amber-bg, var(--b-amber-bg)); color: var(--b-amber, var(--b-amber)); margin: 8px 0 4px}
.blocked-ic svg { width: 28px; height: 28px}

/* Kuki Yönetim duyurusu: tüm firmalarda sayfanın üstünde ince şerit */
.announce { display: flex; align-items: center; gap: 10px; padding: 9px 16px; font-size: 14px; font-weight: 600;
  background: var(--b-blue-bg); color: var(--b-blue); border-bottom: 1px solid var(--b-blue-line)}
.announce-warning { background: var(--b-amber-bg); color: var(--b-amber); border-bottom-color: var(--s-amber)}
.announce-text { flex: 1; min-width: 0}
.announce-x { background: none; border: 0; color: inherit; cursor: pointer; font-size: 15px; padding: 4px 8px; border-radius: 6px; opacity: .75}
.announce-x:hover { opacity: 1; background: rgba(0, 0, 0, .06)}
.access-areas fieldset.access-group { border: 0; margin: 0 0 10px; padding: 0; display: grid; gap: 4px}
.access-areas .access-group legend { padding: 0; margin-bottom: 4px; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted)}
.access-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 3px 0}
.access-preset { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 2px 0 4px; font-weight: 600}
.access-preset select { width: auto; min-width: 220px; font-weight: 400}
.access-name { font-size: 13px; color: var(--text)}
.seg3 { display: inline-flex; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; background: var(--surface); flex: none}
.seg3 label { margin: 0; cursor: pointer}
.seg3 input { position: absolute; opacity: 0; pointer-events: none}
.seg3 span { display: block; padding: 4px 10px; font-size: 12px; font-weight: 600; color: var(--muted-strong)}
.seg3 label + label span { border-left: 1px solid var(--border)}
.seg3 input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: -2px}
.seg3 .seg3-on input:checked + span { background: var(--b-green-bg); color: var(--b-green)}
.seg3 .seg3-ro input:checked + span { background: var(--b-amber-bg); color: var(--b-amber)}
.seg3 .seg3-off input:checked + span { background: var(--b-red-bg, var(--b-red-bg)); color: var(--b-red)}
.readonly-banner { display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 16px; border-radius: 12px;
  background: var(--b-amber-bg); color: var(--b-amber); font-size: 13.5px; font-weight: 600}

/* Cari hesap */
.ledger-intro { margin: -8px 0 16px}
.ledger-kpis { margin-bottom: 16px}
.ledger-aging { margin-bottom: 20px}
.ledger-aging .h-sm, .ledger-side .h-sm { margin: 0 0 10px; font-size: 15px; color: var(--heading)}
.aging-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 0}
.aging-cell { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border-left: 3px solid var(--border)}
.aging-cell dt { font-size: 12px; color: var(--muted-strong)} .aging-cell dd { margin: 2px 0 0; font-weight: 700; color: var(--heading); font-size: 15px}
.aging-current { border-left-color: var(--b-green)} .aging-d30 { border-left-color: var(--b-amber)}
.aging-d60, .aging-d90, .aging-d90p { border-left-color: var(--b-red)}
.ledger-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start}
.ledger-side { display: grid; gap: 16px} .ledger-side .card { margin: 0}
.ledger-st-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap}
.ledger-st-head .filters { margin: 0; gap: 8px} .ledger-st-head label { display: inline-flex; align-items: center; gap: 6px; margin: 0}
.ledger-table td, .ledger-table th { white-space: normal}
.ledger-carry td { background: var(--surface-2); font-weight: 600}
.ledger-form { display: grid; gap: 10px} .ledger-form label { display: grid; gap: 4px; margin: 0; font-size: 12.5px; font-weight: 600; color: var(--muted-strong)}
.ledger-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px}
.ledger-form .row2 > [hidden] { display: none}
.seg-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; border: 0; margin: 0; padding: 0}
.seg-pick label { display: block !important; margin: 0; cursor: pointer}
.seg-pick input { position: absolute; opacity: 0; pointer-events: none}
.seg-pick span { display: block; text-align: center; padding: 7px 8px; border: 1px solid var(--border); border-radius: 9px; font-size: 12.5px; font-weight: 600; color: var(--muted-strong)}
.seg-pick input:checked + span { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, var(--surface)); color: var(--brand-text, var(--brand))}
.seg-pick input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 1px}
.rc-list li { gap: 10px}
.limit-meter { display: inline-block; vertical-align: middle; width: 90px; height: 8px; border-radius: 4px; background: var(--surface-3, var(--surface-2)); overflow: hidden; margin-right: 6px}
.limit-meter span { display: block; height: 100%; background: var(--b-amber); border-radius: 0 4px 4px 0}
.limit-meter.over span { background: var(--b-red)}
.ledger-side .limit-meter { width: 100%}
.cust-ledger { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 0 0 10px}
.cust-ledger div { padding: 10px 12px; border-radius: 10px; background: var(--surface-2)}
.cust-ledger span { display: block; font-size: 12px; color: var(--muted-strong)} .cust-ledger b { font-size: 16px; color: var(--heading)}
@media (max-width: 1100px) { .ledger-layout { grid-template-columns: minmax(0, 1fr)} }
@media (max-width: 760px) { .aging-row { grid-template-columns: repeat(2, minmax(0, 1fr))} }
.pc-fin { display: grid; gap: 4px; padding: 10px 12px; margin: 0 0 12px; border-radius: 10px; background: var(--surface-2)}
.pc-fin-row { display: flex; justify-content: space-between; font-size: 13px} .pc-fin-row span { color: var(--muted-strong)}
.pc-fin .limit-meter { width: 100%; margin: 4px 0 0}
.ledger-table td.num, .ledger-table th.u-ta-right { white-space: nowrap}
.ledger-table td[data-label="Açıklama"] { min-width: 180px}
@media (max-width: 760px) { .ledger-table td:empty { display: none} .ledger-st-head label { width: 100%}
  /* telefonda satır iki sütunlu kart: tek satıra zorlanan uzun açıklama bağlantısı yan hücrenin (vade, alacak) üstüne taşıyordu;
     açıklama kartın tüm genişliğini alır ve kırılır */
  .ledger-table td[data-label="Açıklama"] { grid-column: 1/-1; min-width: 0}
  .ledger-table td[data-label="Açıklama"] a { white-space: normal; overflow-wrap: anywhere} }
.stars { font-size: 18px; letter-spacing: 1px; color: var(--border)} .stars .on { color: var(--b-amber)}
.row-btns { display: flex; flex-wrap: wrap; gap: 6px}
.c-rating { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted-strong)}
.survey-page h1 { font-size: 22px; margin: 0 0 6px}
.stars-lg { font-size: 34px}
.survey-stars { border: 0; margin: 12px 0 16px; padding: 0; display: inline-flex; flex-direction: row-reverse; gap: 4px}
.survey-stars legend { font-weight: 600; margin-bottom: 6px; color: var(--heading); width: 100%}
.survey-stars input { position: absolute; opacity: 0}
.survey-stars label { font-size: 40px; line-height: 1; cursor: pointer; color: var(--border); margin: 0; transition: color .1s}
.survey-stars input:checked ~ label, .survey-stars label:hover, .survey-stars label:hover ~ label { color: var(--b-amber)}
.survey-stars input:focus-visible + label { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px}
.fb-kinds { grid-template-columns: repeat(3, 1fr); margin: 12px 0 4px}
.meet-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; margin-bottom: 16px; border-radius: 12px;
  background: color-mix(in srgb, var(--brand) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--border)); color: var(--heading); font-size: 14px}
.meet-bar .grow { flex: 1; min-width: 0} .meet-bar .icon { color: var(--brand-text); flex: none}
.meet-intro { margin: -8px 0 16px}
.meet-list li { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap}
.meet-when { flex: none; width: 64px; text-align: center; padding: 8px 4px; border-radius: 12px; background: var(--surface-2)}
.meet-when b { display: block; font-size: 17px; color: var(--heading); font-variant-numeric: tabular-nums} .meet-when span { font-size: 12px; color: var(--muted-strong)}
.meet-when.live { background: var(--b-green-bg)} .meet-when.live b { color: var(--b-green)}
.meet-people { display: flex; gap: 4px; margin: 6px 0 2px}
.meet-act { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; max-width: 420px} .meet-act form { margin: 0}
.meet-prov { grid-template-columns: repeat(3, 1fr); margin-top: 14px} .meet-prov legend { font-weight: 600; margin-bottom: 6px; font-size: 13px}
.meet-att { border: 0; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 2px 12px}
.meet-att legend { font-weight: 600; font-size: 13px; margin-bottom: 4px}
@media (max-width: 760px) { .meet-act { justify-content: flex-start; max-width: none; width: 100%; padding-left: 80px} }
/* Birleşik takvim */
.cal-nav { align-items: center; flex-wrap: wrap} .cal-month { font-size: 17px; color: var(--heading); min-width: 130px; text-align: center}
.cal-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 0 auto; padding: 0; font-size: 13px; color: var(--muted-strong)}
.cal-legend li { display: inline-flex; align-items: center; gap: 6px} .cal-legend b { color: var(--heading)}
.cal-dot { width: 9px; height: 9px; border-radius: 3px; display: inline-block; flex: none}
.cal-blue { background: var(--b-blue)} .cal-purple { background: var(--b-purple)} .cal-amber { background: var(--b-amber)}
.cal-green { background: var(--b-green)} .cal-red { background: var(--b-red)}
.cal-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; align-items: start} .cal-wrap .card { margin: 0}
.uc-item { display: block; font-size: 11.5px; line-height: 1.35; padding: 2px 6px; margin-top: 3px; border-radius: 5px; color: var(--heading);
  text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-left: 3px solid}
.uc-item:hover { filter: brightness(.96); text-decoration: none}
.uc-blue { background: var(--b-blue-bg); border-color: var(--b-blue)} .uc-purple { background: var(--b-purple-bg); border-color: var(--b-purple)}
.uc-amber { background: var(--b-amber-bg); border-color: var(--b-amber)} .uc-green { background: var(--b-green-bg); border-color: var(--b-green)}
.uc-red { background: var(--b-red-bg); border-color: var(--b-red)}
.cal-agenda .ag-day { margin-bottom: 12px} .cal-agenda .ag-day > b { font-size: 13px; color: var(--heading)}
.cal-agenda ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px}
.cal-agenda li { display: flex; gap: 8px; align-items: baseline; font-size: 13px} .cal-agenda li .cal-dot { transform: translateY(1px)}
@media (max-width: 1100px) { .cal-wrap { grid-template-columns: minmax(0, 1fr)} .cal-legend { margin-left: 0; width: 100%} }
.sub-now { display: flex; justify-content: space-between; align-items: center}
.sub-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-bottom: 12px}
.sub-plan { margin: 0; display: flex; flex-direction: column; gap: 10px} .sub-plan.current { border-color: var(--b-green)}
.sub-plan h3 { margin: 0; font-size: 18px; color: var(--heading)}
.sub-price { margin: 0} .sub-price b { font-size: 28px; color: var(--heading)}
.sub-feat { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 14px; flex: 1}
.sub-period { grid-template-columns: 1fr 1fr}
.sector-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; margin-top: 10px}
.sector-pick button { text-align: left; padding: 12px 14px; height: auto; white-space: normal}
.ref-row { display: flex; gap: 8px; flex-wrap: wrap} .ref-row input { flex: 1; min-width: 220px}

/* Yalnız telefonda görünen menü bağlantısı (ör. Hızlı işlemler) */
.nav a.mobile-only { display: none}
@media (max-width: 820px) { .nav a.mobile-only { display: flex} }

/* Form alanının hemen altındaki düğme alana yapışmasın (ör. İzin iste, Talep gönder) */
form:not(.filters):not(.inline):not(.chat-input) > :is(input:not([type=hidden]), select, textarea, .field-err, .hint) + :is(button, .btn) { margin-top: 16px}
.project-grid { grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr))}
.project-grid > * { min-width: 0; overflow-wrap: anywhere}

/* Canlı demo: deneme hesabı şeridi */
.demo-banner { background: var(--b-amber-bg); color: var(--b-amber); border-bottom: 1px solid var(--s-amber); padding: 6px 16px; font-size: 13px; text-align: center}
.demo-banner a { color: inherit; font-weight: 600; text-decoration: underline}
[data-theme=dark] .demo-banner { background: var(--s-amber); color: var(--b-amber-bg); border-color: var(--s-amber)}

/* Performans karnesi ve kur uyarısı */
.karne-table td { white-space: nowrap}
.karne-trend { font-size: .75em; margin-left: 2px}
.karne-trend.iyi { color: var(--green, var(--b-green))}
.karne-trend.kotu { color: var(--red, var(--b-red))}
.karne-late { color: var(--red, var(--b-red))}
.fx-warn { margin-left: 6px}

/* Saha: ziyaret, imza, fotoğraf küçük resmi, telefon ipuçları */
.field-hint { display: flex; gap: 12px; align-items: flex-start}
.visit-box summary, .sign-box summary { list-style: none; cursor: pointer; display: inline-flex; min-height: 44px; align-items: center}
.visit-box summary::-webkit-details-marker, .sign-box summary::-webkit-details-marker { display: none}
.visit-box form { display: grid; gap: 8px; margin-top: 12px}
.visit-box button[type=submit] { min-height: 44px}
.sign-pad { display: block; width: 100%; max-width: 480px; height: 180px; margin: 8px 0; border: 1px dashed var(--line, var(--border-strong)); border-radius: 8px; background: var(--surface); touch-action: none}
.file-thumb img { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; display: block}
.visit-filter { gap: 12px; align-items: flex-end; flex-wrap: wrap}
/* Kenar çubuğundaki kullanıcı adı kesilmesin: düğmeler dar, ad esnek */
.sidebar-user .icon-btn { width: 30px; flex: none}
.sidebar-user > a { flex: 1 1 auto; min-width: 0}
/* Pano: kalabalık sütun sayfayı aşağı uzatmasın; sütun kendi içinde kayar */
@media (min-width: 900px) {
  .board-col { max-height: calc(100dvh - 230px); overflow-y: auto; overscroll-behavior: contain}
  .board-col h3 { position: sticky; top: -12px; z-index: 1; background: inherit; padding: 6px 0; margin-top: 0}
}
/* "Durumu değiştir" yalnızca dokunmatikte hep görünür; farede kart üzerine gelince ya da klavyeyle odakta */
@media (hover: hover) and (pointer: fine) and (min-width: 900px) {
  .board-card .bc-move { height: 0; margin: 0; overflow: hidden; opacity: 0}
  .board-card:hover .bc-move, .board-card:focus-within .bc-move { height: auto; margin: revert-layer; overflow: visible; opacity: 1}
}/* Koyu temada satır üzerine gelince hücre açık griye dönmesin */

/* Görev listesi: üzerine gelince sadece renk; alt çizgi ve kenarda kesilen ok yok */
.task-list tr:hover td:first-child a { text-decoration: none}
.task-list tr td:last-child::after { display: none}
.task-list tr td:last-child { padding-right: 16px}

/* ── Paketler (plans.py): menü etiketi, kilitli sayfa, abonelik karşılaştırması, WhatsApp'tan mesai ── */
.plan-tag, .nav-plan { display: inline-block; padding: 1px 6px; border-radius: 999px; font-size: 10.5px; font-weight: 600; line-height: 16px;
  color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); vertical-align: middle; white-space: nowrap}
.nav-plan { margin-left: auto}
a.nav-locked { opacity: .78}
.plan-locked { max-width: 560px; margin: 24px auto; text-align: center; display: grid; gap: 6px; justify-items: center}
.plan-locked h1 { margin: 0; font-size: 22px; color: var(--heading)}
.plan-locked p { margin: 0}
.plan-locked-ic { display: inline-flex; width: 52px; height: 52px; border-radius: 16px; align-items: center; justify-content: center;
  background: var(--b-blue-bg); color: var(--b-blue)}
.plan-locked-ic svg { width: 26px; height: 26px}
.sub-now { gap: 16px; flex-wrap: wrap}
.sub-usage { display: grid; gap: 2px; text-align: right}
.sub-toggle { max-width: 360px; margin: 4px 0 4px}
.sub-vat { margin: 0 0 10px}
.sub-plans-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr))}
.sub-plan { position: relative}
.sub-plan.popular { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand)}
.sub-plan.soon { opacity: .85}
.sub-ribbon { position: absolute; top: -10px; left: 16px; padding: 2px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600;
  background: var(--brand); color: var(--on-solid)}
.sub-plans .p-year { display: none}
.sub-plans[data-period="year"] .p-year { display: inline}
.sub-plans[data-period="year"] .p-month { display: none}
.sub-plan .notice { padding: 8px 10px}
.wa-only-hint { margin: 0; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--b-blue-bg); color: var(--text); font-size: 13.5px}
.wa-only-hint a { font-weight: 600; white-space: nowrap}
.seat-notice { margin: 10px 0 0}
.seat-notice .check { display: flex; gap: 6px; align-items: center}
.extra-confirm { display: inline-flex; gap: 4px; align-items: center; margin-right: 6px}
@media (max-width: 600px) {
  .sub-usage { text-align: left}
  .sub-toggle { max-width: none}
}
.sub-feat { align-content: start}   /* kart uzayınca maddeler arası açılmasın */
.sub-warn summary { cursor: pointer; font-weight: 600} .sub-warn p { margin-top: 6px}

/* Banka hareketi eşleştirme (/ledger/bank) */
.bank-upload { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 16px}
.bank-table select { max-width: 240px; width: 100%}
.bank-done td { opacity: .6}
.bank-conf-sure { background: var(--ok-bg, var(--surface-3)); color: var(--ok, var(--b-green))}
.bank-conf-likely { background: var(--warn-bg, var(--b-amber-bg)); color: var(--warn, var(--b-amber))}
.bank-conf-none { background: var(--muted-bg, var(--surface-3)); color: var(--muted, var(--muted-strong))}

/* Kartla ödeme linki (/pay/...) */
.paylink-page { max-width: 640px; margin: 0 auto}
.paylink-head { text-align: center}
.paylink-logo { max-height: 64px; max-width: 200px; margin: 0 auto 8px; display: block}
.paylink-amount { font-size: 2rem; font-weight: 700; margin: 8px 0 0}
.paylink-share { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px}

/* ── Ön muhasebe: kasa/banka, tedarikçi, çek/senet, nakit akışı ── */
.inline-form { display: inline}
.cheque-actions summary { cursor: pointer; list-style: none; color: var(--brand-text)}
.cheque-actions[open] summary { margin-bottom: 6px}
.cheque-menu { display: grid; gap: 8px; min-width: 220px; text-align: left; padding: 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2)}
.cheque-menu .ledger-form { display: grid; gap: 4px}
tr.cheque-late td:first-child { box-shadow: inset 3px 0 0 var(--b-red)}
tr.cheque-soon td:first-child { box-shadow: inset 3px 0 0 var(--b-amber, #c98a00)}
.cashflow-bars .hb-fill.late { background: var(--b-red)}
.kdv-card .aging-row { margin: 8px 0}
.cash-card .attention-links b { white-space: nowrap}
.sec-finance { --sec: var(--sec-finance)} .nav-group[data-group=finance] { --sec: var(--sec-finance)}
/* Rapor sekmeleri çoğaldı: dar ekranda sayfayı taşırmasın, kendi içinde kaysın */
.report-tabs { max-width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none}
.report-tabs::-webkit-scrollbar { display: none}
.report-tabs > a { flex: none; white-space: nowrap}
/* Fırsat kartı: "Aşamayı değiştir" masaüstünde kart üzerine gelince / odakta görünür (görev panosuyla aynı) */
@media (hover: hover) and (pointer: fine) and (min-width: 900px) {
  .dc-move { height: 0; margin: 0; overflow: hidden; opacity: 0}
  :is(article, li, div):hover > .dc-move, :is(article, li, div):focus-within > .dc-move { height: auto; margin: revert-layer; overflow: visible; opacity: 1}
}

/* ── Görünüm tercihleri: sütun seçici, sık kullanılanlar, örnek veri, profil sekmeleri, fırsat şeridi ── */
.list-tools { display: flex; justify-content: flex-end; margin: -6px 0 8px}
.col-chooser .menu-pop { right: 0; left: auto; min-width: 210px}
.col-form { display: grid; gap: 6px; padding: 4px 2px}
.col-form .check { margin: 0}
.col-form button { justify-self: start; margin-top: 4px}
.prod-extra { margin-top: 2px; max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap}
.page-title h1 { display: inline-block; vertical-align: middle}
.fav-form { display: inline-block; vertical-align: middle; margin: 0 0 0 6px}
.fav-star { background: none; border: 0; padding: 4px; min-height: 0; color: var(--faint); cursor: pointer; border-radius: 6px; box-shadow: none}
.fav-star svg { width: 18px; height: 18px; display: block; fill: none}
.fav-star:hover { color: var(--b-amber); background: var(--surface-2)}
.fav-star.on { color: var(--b-amber)}
.fav-star.on svg { fill: currentColor}
.nav-favs .icon { color: var(--b-amber)}
.empty-start { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; margin-top: 10px}
.empty-start form { margin: 0}
.empty-start .start-import label.btn { cursor: pointer; margin: 0}
.sample-strip { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--brand-tint); color: var(--text)}
.sample-strip form { margin: 0}
.ptabs:not(:has(:target)) > .ptab:not(:first-child) { display: none}
.ptabs:has(:target) > .ptab:not(:target):not(:has(:target)) { display: none}
.profile-tabs { margin-bottom: 14px; max-width: 100%; overflow-x: auto}
.profile-tabs a { padding: 6px 14px; white-space: nowrap}
.ptab { scroll-margin-top: 80px}
.win-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding: 9px 14px; margin: 0 0 14px; font-size: 13px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface)}
.win-strip .ws-label { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted)}
.win-strip .ws-rate { display: inline-flex; align-items: center; gap: 8px; margin-left: auto}
.ws-bar { display: inline-block; width: 110px; height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden}
.ws-bar span { display: block; height: 100%; background: var(--s-green); border-radius: 3px}
[data-theme=dark] .sample-strip { background: var(--surface-2)}
/* Telefonda müşteri ve sipariş listesi: uzun kart yerine sıkı satır (ad + ana bilgi tek satırda, diğerleri altta soluk) */
@media (max-width: 640px) {
  .task-table.cust-table tr, .task-table.ord-table tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 10px 14px}
  .task-table.cust-table td, .task-table.ord-table td { order: 3; font-size: 12px; color: var(--muted)}
  .task-table.cust-table td[data-label]:before, .task-table.ord-table td[data-label]:before { content: none}
  .task-table.cust-table td:first-child, .task-table.ord-table td:first-child { order: 0; flex: 1 1 0; min-width: 0; padding: 0; border: 0; color: var(--text); font-size: inherit}
  .task-table.cust-table td:first-child .small { display: none}
  .task-table.cust-table td[data-label="Durum ve büyüklük"], .task-table.ord-table td[data-label="Toplam"] { order: 1; color: var(--text); font-size: 13px}
  .task-table.cust-table tr:after, .task-table.ord-table tr:after { content: ""; order: 2; flex-basis: 100%; height: 0}
  .task-table.cust-table td[data-label="Risk oranı"] .health-bar { display: none}
  .task-table.cust-table td .mute:only-child { display: none}
}

/* Satış ekleri: ürün görseli, sürümler, görüntülenme */
.line-thumb { width: 32px; height: 32px; object-fit: cover; border-radius: 6px; vertical-align: middle; margin-right: 8px; float: left}
.product-image { max-width: 100%; max-height: 220px; border-radius: 8px; display: block; margin-bottom: 8px}
.diff-list { margin: 6px 0 0; padding-left: 18px}
.view-track span { display: inline-block; margin-right: 12px}

/* Ekip genel: sayaç rozeti, toplu işlem çubuğu, içe aktarma, Bugün */
.timer-chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 999px; background: var(--surface-2, var(--surface-2)); font-size: 13px}
.timer-chip form { margin: 0}
.bulk-cell { width: 32px}
.bulk-bar { position: sticky; bottom: 0; z-index: 20; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 12px; margin-top: 8px; background: var(--surface, var(--surface)); border: 1px solid var(--border, var(--b-blue-line)); border-radius: 10px; box-shadow: 0 -4px 12px rgba(0,0,0,.08)}
.bulk-bar[hidden] { display: none}
.bulk-grp { display: inline-flex; gap: 4px; align-items: center}
.bulk-grp select, .bulk-grp input { width: auto}
.import-steps { display: flex; gap: 12px; list-style: none; padding: 0; margin: 0 0 12px}
.import-steps li { color: var(--mute, var(--b-blue))}
.import-steps li.on { font-weight: 600; color: inherit}
.import-map select { min-width: 120px; font-size: 12px}
.import-err td { background: rgba(220, 38, 38, .08)}
.today-add { display: flex; gap: 8px}
.today-add input { flex: 1}
@media (max-width: 640px) { .timer-chip a { display: none} .bulk-bar { bottom: 64px} }
/* Sayfa başlığı: üst etiket başlığın üstünde kalsın (yıldız başlığın yanında) */
.page-title > .eyebrow { display: block}
/* Toplu seçim kutucuğu: ilk sütun genişlik kuralları (ör. %43) kutucuğa değil başlık sütununa uygulansın */
.task-table th.bulk-cell, .task-table td.bulk-cell, th.bulk-cell, td.bulk-cell { width: 40px !important; min-width: 40px; max-width: 40px; padding-right: 0}
.task-table th.bulk-cell + th { width: 43%}
@media (max-width: 640px) {
  .task-table td.bulk-cell { grid-column: auto; padding: 0; border: 0; box-shadow: none; position: absolute; right: 12px; top: 12px; width: auto !important}
  .task-table tr:has(td.bulk-cell) { position: relative}
  .task-table td.bulk-cell + td { grid-column: 1/-1; padding-bottom: 12px; border-bottom: 1px solid var(--border); padding-right: 40px}
}
.u-underline { text-decoration: underline}
.sidebar { background: linear-gradient(180deg, var(--wash-side-1) 0, var(--wash-side-2) 200px, var(--surface) 440px) no-repeat, var(--surface); border-right-color: var(--wash-line)}
.workspace-label { background: var(--glass-strong); border-color: transparent !important; box-shadow: var(--lift)}
.nav a:hover { background: var(--glass)}
.nav a.active, .nav a.active:hover { background: var(--glass-strong); box-shadow: var(--lift)}
.content .card { box-shadow: var(--lift)}

.dash-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr); gap: 20px; align-items: center; margin-bottom: 26px}
.dash-hero .eyebrow { text-transform: uppercase; color: var(--brand-text); font-size: 11px}
.dash-hero h1 { font-size: 28px; line-height: 1.25; font-weight: 600; letter-spacing: -.02em; margin: 0}
.dash-hero-sub { margin: 6px 0 0; color: var(--muted-strong)}
.dash-hero-late { color: var(--danger, var(--b-red)); font-weight: 600; text-decoration: none}
.dash-hero-late:hover { text-decoration: underline}
.dash-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px}
.dash-hero-actions .btn:not(.primary) { background: var(--glass-strong)}
.dash-hero-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px}
.hero-tile { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; min-height: 124px; border-radius: 14px; background: var(--glass); border: 1px solid color-mix(in srgb, var(--surface) 80%, transparent); box-shadow: var(--lift); color: var(--text); text-decoration: none !important; transition: background .15s, transform .15s}
.hero-tile:hover { background: var(--glass-strong); transform: translateY(-1px)}
.ht-label { font-size: 12px; color: var(--muted)}
.ht-value { display: flex; align-items: center; gap: 8px; font-size: 24px; font-weight: 600; color: var(--heading); margin-top: 6px}
.ht-value small { font-size: 13px; font-weight: 500; color: var(--muted)}
.ht-note { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap}
.ht-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--s-green); box-shadow: 0 0 0 3px color-mix(in srgb, #16a34a 22%, transparent)}
.ht-dot.off { background: var(--faint); box-shadow: none}
.ht-bar { display: block; height: 4px; border-radius: 4px; background: color-mix(in srgb, var(--brand) 14%, transparent); margin: 4px 0 2px; overflow: hidden}
.ht-bar i { display: block; height: 100%; background: var(--brand); border-radius: 4px}
@media (max-width: 1100px) { .dash-hero { grid-template-columns: 1fr} }
@media (max-width: 640px) {
  .dash-hero h1 { font-size: 22px}
  .dash-hero-tiles { grid-template-columns: repeat(2, minmax(0, 1fr))}
  .hero-tile { min-height: 0; padding: 12px 14px}
  .hero-tile:last-child:nth-child(odd) { grid-column: 1 / -1}
  .ht-value { font-size: 20px}
}
.hero-tile.ht-att { position: relative; padding: 0}
.hero-tile.ht-att .ht-link { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; flex: 1; color: inherit; text-decoration: none; border-radius: inherit}
.ht-value small { margin-left: 2px}
.ht-btn { position: absolute; top: 12px; right: 12px; font-size: 12px; font-weight: 600; padding: 4px 10px; min-height: 28px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--glass-strong); border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent); color: var(--brand-text); text-decoration: none !important}
.ht-btn:hover { background: var(--surface)}
.ht-btn.go { background: var(--brand); border-color: var(--brand); color: var(--on-solid)}
.ht-btn.go:hover { background: color-mix(in srgb, var(--brand) 88%, var(--inverse))}
@media (max-width: 640px) { .hero-tile.ht-att .ht-link { padding: 12px 14px} }
.sec-finance { --sec: var(--sec-finance)}
.shell { --sec-c: var(--sec, var(--brand))}

.page-heading::before, .page-heading::after { content: none !important}

/* Sürüm 14.1 · üst çubukta TCMB kurları, teklifte kur seçimi */
.fx-chip { position: relative}
.fx-chip > summary { list-style: none; display: inline-flex; gap: 10px; align-items: center; height: 36px; padding: 0 12px; border-radius: 10px; background: var(--glass-strong); border: 1px solid var(--wash-line); font-size: 12.5px; color: var(--text); cursor: pointer}
.fx-chip > summary::-webkit-details-marker { display: none}
.fx-chip > summary b { color: var(--muted); font-weight: 600; margin-right: 2px}
.fx-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: 300px; max-height: 70vh; overflow: auto; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 16px 40px -16px rgba(15,23,42,.35)}
.fx-pop-head { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 6px}
.fx-table { width: 100%; font-size: 13px; border-collapse: collapse}
.fx-table th, .fx-table td { padding: 5px 0; border-bottom: 1px solid var(--border); font-weight: 500; text-align: left}
.fx-table td { text-align: right}
.fx-table th .mute { font-weight: 400; font-size: 12px; margin-left: 4px}
.rate-box { border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px 6px; margin: 4px 0 12px}
.rate-box legend { font-size: 13px; font-weight: 600; padding: 0 4px}
.rate-opt { display: flex; align-items: center; gap: 8px; font-weight: 500; margin: 4px 0}
.rate-opt input { width: auto; margin: 0}
.rate-box #qh-rate { max-width: 200px; margin: 4px 0 0 26px}
.u-mt-4 { margin-top: 4px}

/* ── Sürüm 14.1 · giriş ve kayıt ─────────────────────────────────────────── */
.auth-v2 .auth-story { background: radial-gradient(620px 420px at 0% 0%, rgba(79,120,240,.55), transparent 70%), radial-gradient(520px 420px at 100% 100%, rgba(124,92,255,.38), transparent 70%), var(--s-blue); color: var(--b-blue-bg)}
.auth-v2 .auth-wordmark:hover { opacity: .85}
.auth-v2 .auth-story-copy { max-width: 520px; padding: 36px 0}
.auth-v2 .auth-story-copy h2 { font-weight: 600; font-size: clamp(38px, 4vw, 60px); margin-bottom: 18px}
.auth-v2 .auth-story-copy > p { font-size: 16px; line-height: 1.7; color: var(--b-blue-bg); margin: 0 0 22px}
.auth-v2 .auth-story-copy .eyebrow { color: var(--b-blue-bg); font-size: 11px}
.auth-points { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 10px}
.auth-points li { display: flex; align-items: center; gap: 10px; color: var(--on-solid); font-weight: 500; font-size: 15px}
.auth-points svg { width: 18px; height: 18px; flex: none; color: var(--b-green-bg)}
.auth-preview { max-width: 400px; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(6px); box-shadow: 0 20px 50px -20px rgba(0,0,0,.5)}
.ap-head { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--on-solid); margin-bottom: 8px}
.ap-head i { font-style: normal; color: var(--b-blue-bg); font-weight: 500}
.ap-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; color: var(--b-blue-bg)}
.ap-row span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap}
.ap-row em { font-style: normal; font-size: 12px; color: var(--b-blue-bg)}
.ap-dot { width: 8px; height: 8px; border-radius: 50%; flex: none}
.ap-dot.blue { background: var(--s-blue)} .ap-dot.amber { background: var(--s-amber)} .ap-dot.green { background: var(--s-green)}
.auth-v2 .auth-note { color: var(--b-blue-bg)} .auth-v2 .auth-note a { color: inherit}
.auth-v2 .auth-form-wrap { background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 9%, var(--bg)) 0, var(--bg) 360px)}
.auth-v2 .card { max-width: 420px}
.auth-v2 .card h1 { margin-bottom: 4px}
.auth-v2 .card > .mute { margin-top: 0}
.auth-form label { margin-top: 14px}
.pw-wrap { position: relative}
.pw-wrap input { padding-right: 46px}
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; min-height: 0; padding: 0; display: grid; place-items: center; border: 0; background: none; color: var(--muted); border-radius: 8px; cursor: pointer}
.pw-toggle:hover { color: var(--heading); background: var(--surface-2)}
.pw-toggle svg { width: 19px; height: 19px}
.pw-toggle .eye-off, .pw-toggle.on .eye { display: none} .pw-toggle.on .eye-off { display: block}
.caps-warn { color: var(--danger); margin: 6px 0 0}
.pw-meter { height: 4px; border-radius: 4px; background: var(--border); margin-top: 8px; overflow: hidden}
.pw-meter i { display: block; height: 100%; width: 0; border-radius: 4px; transition: width .2s, background .2s; background: var(--danger)}
.pw-meter i.ok { background: var(--s-amber)} .pw-meter i.good { background: var(--s-green)}
.auth-or { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; color: var(--muted); font-size: 12px}
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--border)}
.auth-alt { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--surface)}
.auth-alt svg { width: 18px; height: 18px; color: var(--brand-text)}
.auth-switch { margin-top: 22px !important; padding-top: 18px; border-top: 1px solid var(--border)}
.auth-badge { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 18px; background: color-mix(in srgb, var(--brand) 12%, var(--surface)); color: var(--brand-text)}
.auth-badge svg { width: 26px; height: 26px}
@media (max-width: 820px) { .auth-preview { display: none} }

/* ── Sürüm 14.2 · menü altında kullanıcı: isim tam genişlik, işlemler açılır menüde ── */
.user-menu { position: relative; display: block; padding: 10px 0}
.user-menu > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; cursor: pointer}
.user-menu > summary::-webkit-details-marker { display: none}
.user-menu > summary:hover, .user-menu[open] > summary { background: var(--glass, var(--surface-2))}
.um-who { flex: 1; min-width: 0; line-height: 1.3}
.user-menu .um-who b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; overflow: hidden; overflow-wrap: anywhere; font-size: 12.5px}
.um-chev { width: 16px; height: 16px; flex: none; color: var(--faint); transition: transform .15s}
.user-menu[open] .um-chev { transform: rotate(180deg)}
.um-pop { position: absolute; left: 0; right: 0; bottom: calc(100% + 4px); z-index: 70; padding: 6px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 16px 40px -16px rgba(15,23,42,.35)}
.um-pop a, .um-pop button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 36px; padding: 6px 10px; border: 0; border-radius: 8px; background: none; color: var(--text); font: inherit; font-size: 13px; text-align: left; text-decoration: none; cursor: pointer}
.um-pop a:hover, .um-pop button:hover { background: var(--surface-2); color: var(--heading)}
.um-pop .icon { width: 18px; height: 18px; color: var(--muted)}
.um-pop form { margin: 0; border-top: 1px solid var(--border); padding-top: 4px; margin-top: 4px}
.um-pop .um-out, .um-pop .um-out .icon { color: var(--danger)}
@media (min-width:1024px) {
  [data-rail] .user-menu > summary { justify-content: center; padding: 6px 0}
  [data-rail] .user-menu .um-who, [data-rail] .um-chev { display: none}
  [data-rail] .um-pop { right: auto; width: 220px}
}

/* ── Sürüm 14.2 · pano: iç kaydırma yok; kalabalık sütunda ilk 6 kart, gerisi "daha göster" ile ── */
@media (min-width: 900px) { .board-col { max-height: none; overflow: visible} .board-col h3 { position: static} }
.board-col:not(.expanded) .board-card.bc-more { display: none}
.bc-expand { display: block; width: 100%; margin: 4px 0 8px; min-height: 36px; padding: 6px 10px; border-radius: 10px; border: 1px dashed color-mix(in srgb, var(--colc, var(--brand)) 45%, var(--border)); background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--muted-strong); font-size: 12.5px; font-weight: 600; cursor: pointer}
.bc-expand:hover { background: var(--surface); color: var(--heading); border-style: solid}
.board { scrollbar-color: color-mix(in srgb, var(--sec-c, var(--brand)) 35%, transparent) transparent}
.board::-webkit-scrollbar { height: 8px} .board::-webkit-scrollbar-thumb { border-radius: 8px; background: color-mix(in srgb, var(--sec-c, var(--brand)) 35%, transparent)}
.task-list tr[class*="pr-"] > td:first-child { box-shadow: none !important; background-image: none !important; padding-left: 18px}
.task-list tr > td:first-child { position: relative}
.task-list tr.tint-soft { background: color-mix(in srgb, var(--sc) 5%, var(--surface))}
.task-list tr.tint-strong { background: color-mix(in srgb, var(--sc) 9%, var(--surface))}
.task-list tr.tint-soft:hover, .task-list tr.tint-strong:hover { background: color-mix(in srgb, var(--brand) 5%, var(--surface))}
[data-theme=dark] .task-list tr.tint-soft { background: color-mix(in srgb, var(--sc) 6%, var(--surface))}
[data-theme=dark] .task-list tr.tint-strong { background: color-mix(in srgb, var(--sc) 10%, var(--surface))}
.task-list tr.tint-strong .badge { background: revert-layer}
.board-card { border-left: 1px solid var(--border) !important}
.board-card::before { top: 12px; bottom: 12px; width: 3px; background: none}
.board-card.pr-high::before { background: var(--pr-high)} .board-card.pr-medium::before { background: var(--pr-medium)} .board-card.pr-low::before { background: none}
.dep-badge, .bc-b.dep-badge { color: var(--muted-strong) !important; background: var(--surface-2) !important; border: 1px solid var(--border); border-radius: 99px; padding: 1px 8px; font-weight: 500}
@media (max-width: 760px) {
  .task-list tr.pr-high, .task-list tr.pr-medium, .task-list tr.pr-low { border-left: 0 !important}
  .task-list tr.tint-soft, .task-list tr.tint-strong, [data-theme=dark] .task-list tr.tint-soft, [data-theme=dark] .task-list tr.tint-strong { background: var(--surface)}
}

/* ── Sürüm 14.2 · müşteri sınıfları ve grupları ── */
.tier-dot.tc-blue { background: var(--b-blue-bg); color: var(--b-blue)} .tier-dot.tc-green { background: var(--b-green-bg); color: var(--b-green)}
.tier-dot.tc-amber { background: var(--b-amber-bg); color: var(--b-amber)} .tier-dot.tc-purple { background: var(--b-purple-bg); color: var(--b-purple)}
.tier-dot.tc-teal { background: var(--b-teal-bg); color: var(--b-teal)} .tier-dot.tc-pink { background: var(--b-pink-bg); color: var(--b-pink)}
.tier-dot.tc-red { background: var(--b-red-bg); color: var(--b-red)} .tier-dot.tc-gray { background: var(--surface-2); color: var(--muted)}
.tier-dot.tier-none { background: var(--surface-2); color: var(--muted)}
.cust-groups { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px}
.cust-groups .badge, .group-chip { font-size: 11.5px}
a.group-chip { text-decoration: none}
.group-pick { border: 0; padding: 0; margin: 8px 0 6px}
.group-pick legend { font-size: 12px; font-weight: 600; color: var(--muted-strong); margin-bottom: 6px; padding: 0}
.group-pick { display: flex; flex-wrap: wrap; gap: 6px}
.gp-opt { display: inline-flex !important; align-items: center; margin: 0 !important; cursor: pointer}
.gp-opt input { position: absolute; opacity: 0; width: 1px; height: 1px}
.gp-opt span { display: inline-flex; align-items: center; min-height: 30px; padding: 4px 12px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); font-size: 12.5px; font-weight: 500; color: var(--text)}
.gp-opt input:checked + span { border-color: transparent; background: var(--gp-bg, var(--brand-tint)); color: var(--gp-fg, var(--brand-text)); font-weight: 600}
.gp-opt input:checked + span::before { content: "✓"; margin-right: 6px}
.gp-opt input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px}
.gp-blue { --gp-bg: var(--b-blue-bg); --gp-fg: var(--b-blue)} .gp-green { --gp-bg: var(--b-green-bg); --gp-fg: var(--b-green)}
.gp-amber { --gp-bg: var(--b-amber-bg); --gp-fg: var(--b-amber)} .gp-purple { --gp-bg: var(--b-purple-bg); --gp-fg: var(--b-purple)}
.gp-teal { --gp-bg: var(--b-teal-bg); --gp-fg: var(--b-teal)} .gp-pink { --gp-bg: var(--b-pink-bg); --gp-fg: var(--b-pink)}
.gp-red { --gp-bg: var(--b-red-bg); --gp-fg: var(--b-red)} .gp-gray { --gp-bg: var(--surface-2); --gp-fg: var(--heading)}
.cc-intro { max-width: 760px; margin: 0 0 18px}
.cc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: start}
.cc-list { list-style: none; margin: 8px 0 12px; padding: 0; display: grid; gap: 6px}
.cc-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px; padding: 6px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface)}
.cc-edit { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 6px; margin: 0}
.cc-edit input[name=label] { width: 100%; min-width: 0; height: 34px; margin: 0}
.cc-edit select, .cc-tools button { margin: 0}
.cc-use { white-space: nowrap}
.cc-tools { display: flex; gap: 2px} .cc-tools form { margin: 0}
.cc-color { width: 52px !important; height: 34px; padding: 0 4px; font-size: 16px; margin: 0}
.cc-use { min-width: 22px; text-align: right}
.cc-blue { color: var(--b-blue)} .cc-green { color: var(--b-green)} .cc-amber { color: var(--b-amber)} .cc-purple { color: var(--b-purple)}
.cc-teal { color: var(--b-teal)} .cc-pink { color: var(--b-pink)} .cc-red { color: var(--b-red)} .cc-gray { color: var(--muted)}
.cc-add { display: flex; gap: 8px; margin: 0} .cc-add input[name=label] { flex: 1}
@media (max-width: 640px) { .cc-use { display: none} }

/* ── Kasa ve banka: üstte toplamlar tek satır, hesaplar tek kartta türe göre gruplu satırlar (hesap sayısına uyar) ── */
.acc-summary { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0; padding: 0; margin: 0 0 16px; overflow: hidden}
.acc-total, .acc-sub { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 14px 20px; min-width: 0}
.acc-total { flex: 1 1 220px; border-right: 1px solid var(--border)}
.acc-total span, .acc-sub span { font-size: 12.5px; font-weight: 600; color: var(--muted-strong)}
.acc-total b { font: 600 26px/1.15 var(--font-display); letter-spacing: -.02em; color: var(--heading)}
.acc-total small { font-size: 12px; color: var(--muted)}
.acc-sub { flex: 0 1 auto; color: var(--text); text-decoration: none; border-right: 1px solid var(--border)}
.acc-sub:last-child { border-right: 0}
.acc-sub b { font-size: 15px; color: var(--heading)}
.acc-sub:hover { background: var(--row-hover)}
.acc-list { margin: 0}
.acc-group { --ac: var(--b-blue)}
.acc-cash { --ac: var(--b-green)} .acc-pos { --ac: var(--b-teal)} .acc-credit_card { --ac: var(--b-red)} .acc-partner { --ac: var(--b-purple)} .acc-other { --ac: var(--muted)}
.acc-group + .acc-group { border-top: 1px solid var(--border)}
.acc-group-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px 8px}
.acc-group-head h2 { font-size: 14.5px; margin: 0}
.acc-group-head .acc-hint { flex: 1 1 200px; min-width: 0}
.acc-group-head .btn { margin-left: auto; white-space: nowrap}
.acc-ic { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 9px; background: color-mix(in srgb, var(--ac) 13%, var(--surface)); color: var(--ac)}
.acc-ic svg { width: 18px; height: 18px}
.acc-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 160px) minmax(120px, auto) 16px; align-items: center; gap: 16px;
  min-height: 56px; padding: 8px 16px 8px 58px; color: var(--text); text-decoration: none; border-top: 1px solid var(--border)}
.acc-row:hover { background: var(--row-hover)}
.acc-row.off { opacity: .6}
.ar-name { display: flex; flex-direction: column; min-width: 0}
.ar-name b { font-weight: 600; color: var(--heading); overflow: hidden; text-overflow: ellipsis; white-space: nowrap}
.ar-name small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap}
.ar-spark { color: var(--ac); min-width: 0}
.ar-spark svg { width: 100%; height: 28px; display: block}
.ar-spark .spark polyline { stroke: var(--ac)}
.ar-bal { text-align: right; font-size: 16px; color: var(--heading); white-space: nowrap}
.ar-bal.neg { color: var(--danger)}
.ar-go { color: var(--faint); font-size: 18px; line-height: 1}
.acc-empty { margin: 0; padding: 10px 16px 14px 58px}
@media (max-width: 640px) {
  .acc-total { flex-basis: 100%; border-right: 0; border-bottom: 1px solid var(--border)}
  .acc-sub { flex: 1 1 45%}
  .acc-row { grid-template-columns: minmax(0, 1fr) auto 12px; padding-left: 16px; gap: 10px}
  .ar-spark { display: none}
  .acc-empty { padding-left: 16px}
}

/* ── Sürüm 14.2 · masraf türleri: ana başlık > kalem ── */
.xc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 16px; align-items: start}
.xc-group { margin: 0; padding: 16px; border-top: 3px solid color-mix(in srgb, var(--sec-c, var(--brand)) 60%, var(--border))}
.xc-group.off { opacity: .6}
.xc-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px}
.xc-name { display: flex; gap: 6px; flex: 1 1 220px; margin: 0}
.xc-name input { flex: 1; min-width: 0; font-weight: 600; font-size: 15px; height: 36px}
.xc-tools { display: flex; align-items: center; gap: 2px} .xc-tools form { margin: 0}
.xc-list { list-style: none; margin: 0 0 10px; padding: 0 0 0 12px; border-left: 2px solid var(--border); display: grid; gap: 6px}
.xc-list li { display: flex; align-items: center; gap: 6px; flex-wrap: wrap}
.xc-list li.off { opacity: .6}
.xc-item { display: grid; grid-template-columns: minmax(0, 1fr) 150px 24px; align-items: center; gap: 6px; flex: 1 1 260px; margin: 0; min-width: 0}
.xc-item input[name=name] { width: 100%; min-width: 0; height: 34px; margin: 0}
.xc-item select { width: 100%; height: 34px; font-size: 12px; margin: 0}
.xc-used { text-align: right}
.xc-name input { margin: 0}
.xc-add { display: flex; gap: 8px; margin: 0} .xc-add input { flex: 1; min-width: 0}
.xc-new { margin: 0; padding: 16px; display: grid; gap: 8px; border-style: dashed}
@media (max-width: 640px) { .xc-item { grid-template-columns: minmax(0, 1fr) 24px} .xc-item select { grid-column: 1 / -1; grid-row: 2} }
.cc-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr))}
.cc-tools .icon-btn { width: 28px; min-width: 28px; height: 30px; min-height: 30px; padding: 0}

/* Sürüm 15 · A (ana ekran, takvim, sohbet, kaydırma) */
/* Ana ekran: sade, düzenli ızgara; kartlar sıkı */
.dash-chip { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; padding: 1px 10px; border-radius: 99px; font-size: 12px; font-weight: 600;
  background: var(--b-amber-bg); color: var(--b-amber); text-decoration: none; white-space: nowrap; vertical-align: 1px}
.dash-chip::before { content: ""; width: 6px; height: 6px; border-radius: 99px; background: currentColor}
.dash-chip:hover { text-decoration: none; filter: brightness(.96)}
.dashboard-grid { gap: 18px}
.dashboard-main { display: grid; gap: 18px; align-content: start}
.dashboard-main > .card, .dashboard-side > .card { margin: 0}
.dashboard-side { display: grid; gap: 18px; align-content: start}
.dashboard-main > .card { padding: 18px 20px}
.dashboard-side .card { padding: 16px 18px}
.dashboard-grid.no-main { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr))}   /* kartlar satırı doldursun, sağda boşluk kalmasın */
.dashboard-grid.no-main .dashboard-side { display: contents}
.dashboard-metrics { margin-bottom: 18px}
.dashboard-metrics + .workload-card, .workload-card { margin-bottom: 18px}
/* Ekip raporu: sayı sütunları ortalı */
.team-report th:nth-child(n+3), .team-report td:nth-child(n+3) { text-align: center}
.team-report td:nth-child(n+3) > a { justify-content: center}
.team-report td:nth-child(7) .rate { justify-content: center}

/* Takvim: gün numarası kutunun ortasında */
/* (.cal-day.no-entry genel .empty kuralının 36px dolgusunu alıyordu; boş günlerde numara aşağı kayıyordu) */
.uc-cal .cal-day, .uc-cal .cal-day.no-entry { padding: 6px; color: inherit}
.uc-cal .uc-item { text-align: left}
@media (min-width: 761px) {
  .uc-cal .cal-day { text-align: center}
  .uc-cal .cal-num { display: inline-grid; place-items: center; align-self: center; min-width: 24px; height: 24px; padding: 0 5px; border-radius: 99px; line-height: 1; font-variant-numeric: tabular-nums}
  .uc-cal .cal-day.today .cal-num { width: auto}
}
/* Takvim sayfası: yan sütun takvimin boyunu geçmez, içinde kayar; sonrası altta yatay şerit */
.cal-wrap { align-items: stretch}
.cal-agenda { position: relative; display: flex; flex-direction: column; min-height: 240px; padding: 16px 0 0}
.cal-agenda > h2 { margin: 0 18px 8px}
.cal-agenda .ag-scroll { position: absolute; inset: 48px 0 0; overflow-y: auto; padding: 0 18px 12px; overscroll-behavior: contain}
.cal-agenda .ag-day { padding: 10px 0; margin: 0; border-top: 1px solid var(--border)}
.cal-agenda .ag-day:first-child { border-top: 0; padding-top: 2px}
.cal-agenda ul { grid-template-columns: minmax(0, 1fr)}
.cal-agenda li a { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap}
.ag-high { flex: none; margin-left: auto; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 99px; background: var(--b-red-bg); color: var(--b-red); font-size: 11px; font-weight: 700}
.ag-more { display: inline-block; margin-top: 4px; font-weight: 600}
.ag-none { margin: 4px 0 0}
.cal-later { grid-column: 1 / -1; margin: 0; padding: 14px 0 12px; min-width: 0}
.cal-later > h2 { margin: 0 18px 8px}
.cal-later .later-strip { list-style: none; margin: 0; padding: 2px 18px 6px; display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 18px; scrollbar-width: thin}
.later-strip > li { flex: none; scroll-snap-align: start}
.later-item { display: flex; flex-direction: column; gap: 2px; width: 190px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); color: var(--heading); text-decoration: none; font-size: 12.5px}
.later-item:hover { border-color: var(--brand); text-decoration: none}
.later-day { font-size: 11.5px; color: var(--muted); font-weight: 600}
.later-text { display: flex; gap: 6px; align-items: baseline; min-width: 0}
.later-text > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap}
.later-more { align-self: center; padding: 0 8px; white-space: nowrap}
@media (max-width: 1100px) {
  .cal-agenda { min-height: 0; max-height: 420px}
  .cal-agenda .ag-scroll { position: static}
}

/* Açılır özet kartı (data-pop) */
.kpop { position: fixed; z-index: 1000; max-width: min(300px, calc(100vw - 16px)); padding: 10px 12px; border-radius: 12px; background: var(--surface); color: var(--text);
  border: 1px solid var(--border); box-shadow: 0 18px 40px -16px rgba(15,23,42,.35); pointer-events: none; font-size: 12.5px; line-height: 1.45; text-align: left}
.kpop[hidden] { display: none}
.kpop-t { display: block; color: var(--heading); font-size: 13px; margin-bottom: 4px; overflow-wrap: anywhere}
.kpop dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; margin: 0}
.kpop dt { color: var(--muted)}
.kpop dd { margin: 0; color: var(--heading); overflow-wrap: anywhere}
[data-theme=dark] .kpop { box-shadow: 0 18px 40px -16px rgba(0,0,0,.7)}

/* Sohbet: ekrana sığan sabit kutu, mesajlar içinde kayar */
.chat-shell { height: var(--chat-h, calc(100dvh - 200px)); grid-template-rows: minmax(0, 1fr); align-items: stretch}
.chat-shell > .card { min-height: 0}
.chat-side { position: static; overflow-y: auto}
.chat-msgs, .chat-thread .chat-msgs { flex: 1 1 auto; height: auto; min-height: 0}
@media (max-width: 760px) {
  .chat-shell, .chat-shell.with-thread { grid-template-rows: auto minmax(0, 1fr)}
  .chat-side { max-height: 40vh}
  .chat-msgs { height: auto}
}
/* --- A sonu --- */

/* Sürüm 15 · B (görevler) */
/* Geri bağlantısı: başlığın üstünde, içerikle aynı hizada küçük ve sade bir "← Üst sayfa" bağlantısı (tüm ekranlarda) */
.page-back { display: flex; margin: 0 0 6px; font-size: 13.5px; line-height: 1.4; min-width: 0}
.page-back a { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; max-width: 100%; color: var(--muted-strong, var(--muted)); font-weight: 500; text-decoration: none; border-radius: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap}
.page-back a::before { content: ""; flex: none; width: 15px; height: 15px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M11 6l-6 6 6 6'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M11 6l-6 6 6 6'/%3E%3C/svg%3E") center/contain no-repeat; transition: transform .15s}
.page-back a:hover { color: var(--brand-text, var(--brand)); text-decoration: none}
.page-back a:hover::before { transform: translateX(-2px)}
.page-back a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px}
.page-back + .page-heading { margin-top: 0}
@media (max-width: 760px) { .page-back { margin-bottom: 2px} }

/* Pano: üstte eş kaydırma çubuğu */
/* Hızlı ekleme ilk sütunun üstünde */
.board-col > .bc-add { margin: 0 0 10px}
.board-col > .bc-add summary { border: 1px dashed var(--border-strong); background: var(--surface); text-align: center}
.board-col > .bc-add[open] summary { margin-bottom: 4px}

/* Takvim: gün numarası ve sayaç aynı satırda, bugün dairesi sadece sayıyı sarar */
.calendar a.cal-num { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin: 0 0 2px; padding: 2px; line-height: 1; border-radius: 99px}
.calendar .cal-d { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 4px; border-radius: 99px; font-variant-numeric: tabular-nums}
.calendar .cal-day.today .cal-num { width: auto; background: none; color: var(--heading); text-align: left}
.calendar .cal-day.today .cal-d { background: var(--brand); color: var(--on-solid)}
.calendar .cal-count { height: 18px; min-width: 18px; line-height: 1; background: color-mix(in srgb, var(--brand) 14%, var(--surface)); color: var(--brand-text, var(--brand))}
.calendar .cal-full { line-height: 1.2}
.calendar .cal-item { background: var(--cb, var(--surface-2)); border-left: 4px solid var(--c, var(--brand)); color: var(--heading); font-weight: 500}
.calendar .cal-item:hover { filter: none; box-shadow: inset 0 0 0 1px var(--c, var(--brand))}
.calendar .cal-item.late { background: var(--cb, var(--surface-2)); border-left-color: var(--c); box-shadow: inset 0 0 0 1.5px var(--danger)}
.calendar .cal-item.start { background: transparent; border-left-style: dashed; color: var(--muted-strong, var(--muted))}
/* Boş gün: genel .empty kuralının (36px dolgu, ortalı metin) etkisini kaldır */
.calendar .cal-day.no-entry { padding: 6px; text-align: left; color: inherit}
@media (max-width: 760px) { .calendar .cal-day.no-entry { padding: 10px 16px} }
.task-cal-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 10px 16px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--muted-strong, var(--muted))}
.task-cal-legend li { display: inline-flex; align-items: center; gap: 6px}
.tcl-sw { width: 16px; height: 12px; border-radius: 3px; background: var(--cb); border-left: 4px solid var(--c); flex: none}
.tcl-sw.tcl-late { --c: var(--b-gray); --cb: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--danger)}
.tcl-sw.tcl-start { --c: var(--b-gray); --cb: transparent; border-left-style: dashed; box-shadow: inset 0 0 0 1px var(--border-strong)}
@media (max-width: 600px) {
  .calendar .cal-day.today .cal-d { background: var(--brand); color: var(--on-solid)}
  .calendar .cal-day.today .cal-num::first-letter { color: inherit}
}

/* Liste: satır ayırıcı çizgi belirgin */
.task-list tbody tr + tr td { border-top: 1px solid var(--border-strong)}
@media (max-width: 760px) { .task-table tr { border-bottom: 1px solid var(--border-strong)} .task-table tr:last-child { border-bottom: 0} }

/* Gerekçe penceresi açıklaması */
.move-why { margin: 0 0 12px; padding: 10px 12px; border-radius: 8px; background: var(--surface-2); color: var(--text); font-size: 13.5px; line-height: 1.5}

/* Dosyalar: ekleme düğmeleri tek satırda (telefonda alta kayar) */
.file-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; margin-bottom: 6px}
.file-actions > form { margin: 0}
.file-actions .sign-box summary { min-height: 38px; height: 38px; margin: 0}
.file-actions .sign-box[open] { flex: 1 1 100%}
.file-actions .sign-box[open] summary { margin-bottom: 8px}

/* Görev durumları ayarı */
.card .status-row { grid-template-columns: auto minmax(0, 1fr) 130px 150px 170px}
.card .status-row > .badge { grid-column: auto}
.status-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px}
.status-tools > form { margin: 0}
.status-deact { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; margin: 0}
.status-deact > *, .status-tools > * { margin: 0}
.status-deact select { width: auto; height: 34px; min-width: 0; padding-top: 0; padding-bottom: 0; line-height: 32px; font-size: 14px}
.status-tools button.sm { height: 34px}
.status-tools .status-save { margin-left: auto}
@media (max-width: 900px) {
  .card .status-row { grid-template-columns: 1fr 1fr}
  .status-deact { flex-wrap: wrap}
}
@media (max-width: 480px) { .status-tools .status-save { margin-left: 0; width: 100%} }
/* --- B sonu --- */

/* Sürüm 15 · C (müşteri, demo) */
/* Müşteri kartı: bilgi kartları yatay kaydırmalı şerit */
.cx { margin: 16px 0 20px}
.cx-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 10px}
.cx-title { margin: 0; font-size: 15px; font-weight: 600}
.cx-pos { font-variant-numeric: tabular-nums}
.cx-nav { margin-left: auto; display: flex; gap: 6px}
.cx-nav .icon-btn { width: 36px; min-width: 36px; height: 36px; min-height: 36px; padding: 0; border-radius: 999px; display: inline-grid; place-items: center;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgb(15 23 42 / .06)}
.cx-nav .icon-btn svg { width: 18px; height: 18px}
.cx-nav .icon-btn:hover:not(:disabled) { background: var(--surface-2)}
.cx-nav .icon-btn:disabled { opacity: .4; cursor: default; box-shadow: none}
.cx-track { display: flex; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 2px;
  padding: 2px 2px 10px; scrollbar-width: thin; -webkit-overflow-scrolling: touch}
.cx-track:focus-visible { outline: 2px solid var(--brand, currentColor); outline-offset: 4px; border-radius: 12px}
.cx-track > .card { flex: 0 0 clamp(280px, calc((100% - 32px) / 3), 400px); scroll-snap-align: start; margin: 0; padding: 20px;
  max-height: 460px; overflow-y: auto; scrollbar-width: thin}
.cx-track > .card h2 { font-size: 15px; margin: 0 0 12px}
.cx-track .details { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px 12px; margin: 0}
.cx-track .details dt { color: var(--muted); font-size: 13px; margin: 0}
.cx-track .details dd { margin: 0; overflow-wrap: anywhere}
@media (max-width: 900px) { .cx-track > .card { flex-basis: calc((100% - 16px) / 2)} }
@media (max-width: 640px) {
  .cx-track { gap: 12px}
  .cx-track > .card { flex-basis: 86%; max-height: none; padding: 16px}
  .cx-nav .icon-btn { width: 40px; min-width: 40px; height: 40px; min-height: 40px}
}
@media (prefers-reduced-motion: reduce) { .cx-track { scroll-behavior: auto} }
[data-theme=dark] .cx-nav .icon-btn { border-color: var(--border-strong); box-shadow: none}
.cx-tabs-wrap > .tab-pane:not([hidden]) { display: flex; flex-direction: column; gap: 16px}
.cx-tabs-wrap > .tab-pane > .card, .cx-tabs-wrap > .tab-pane > section { margin-top: 0}
/* Sekme içerikleri: sade satır tablosu */
.cx-pane-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid var(--border)}
.cx-pane-head h2 { font-size: 16px}
.cx-pane-links { display: inline-flex; align-items: center; gap: 12px}
.cx-rows { display: flex; flex-direction: column}
.cx-row { display: grid; grid-template-columns: minmax(0, 1fr) 110px 140px 130px; gap: 12px; align-items: center; padding: 10px 20px; border-bottom: 1px solid var(--border); min-height: 52px}
.cx-rows-5 .cx-row { grid-template-columns: minmax(0, 1fr) 100px 130px 120px 120px}
.cx-row:last-child { border-bottom: 0}
.cx-row:not(.cx-th):hover { background: var(--surface-2)}
.cx-th { min-height: 0; padding-top: 8px; padding-bottom: 8px; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; background: var(--surface-2)}
.cx-main { min-width: 0; display: flex; flex-direction: column; gap: 2px}
.cx-main a { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap}
.cx-main small { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap}
.cx-main small:empty { display: none}
.cx-date { color: var(--muted); font-size: 13px; white-space: nowrap}
.cx-amt { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums}
.cx-who { font-size: 13px; overflow: hidden; text-overflow: ellipsis}
.cx-st { text-align: right}
.cx-due { color: var(--danger, var(--b-red)); font-weight: 600}
.cx-pane .empty { padding: 32px 20px}
.cx-empty-act { margin: 12px 0 0; display: flex; justify-content: center}
@media (max-width: 640px) {
  .cx-th { display: none}
  .cx-row, .cx-rows-5 .cx-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "m s" "d a"; gap: 4px 12px; padding: 12px 16px}
  .cx-main { grid-area: m} .cx-st { grid-area: s} .cx-date { grid-area: d} .cx-row > .cx-amt:nth-child(3) { grid-area: a}
  .cx-rows-5 .cx-row > .cx-amt:nth-child(3) { display: none}
  .cx-rows-5 .cx-row > .cx-amt:nth-child(4) { grid-area: a}
  .cx-pane-head { padding: 14px 16px}
}
.cx-more .menu-pop { min-width: 240px}
@media (max-width: 640px) { .cx-more .menu-pop { left: auto; right: 0} }
/* --- C sonu --- */

/* Sürüm 15 · D (teklif, sipariş, ürün) */
/* Stok: miktar ve rozet üst üste binmez; dar ekranda alt satıra geçer */
.stock-cell { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px 8px; max-width: 100%}
td.r .stock-cell { justify-content: flex-end}
dd .stock-cell { justify-content: flex-start}
.stock-cell .badge { white-space: nowrap; flex: none}

/* Teklif asistanı: aranabilir seçici */
.asst-picker { display: flex; gap: 6px; align-items: center; flex: 1 1 260px; min-width: 0; margin: 0}
.asst-picker input[name=text] { flex: 1; min-width: 0; margin: 0}
.quick-replies:has(.asst-picker) { align-items: center}

/* Sipariş durum akışı */
.order-flow .section-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px}
.of-track { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px}
.of-track li { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 10px 10px 10px 12px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--surface); min-width: 0}
.of-track li b { font-size: 13px; color: var(--heading)}
.of-track li .small { line-height: 1.35}
.of-track .of-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--border-strong); background: var(--surface); margin-bottom: 4px}
.of-track li.done .of-dot { background: var(--brand); border-color: var(--brand)}
.of-track li.on { border-color: var(--brand); background: var(--brand-tint)}
.of-track li.on .of-dot { background: var(--brand); border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint)}
.of-form { border-top: 1px solid var(--border); padding-top: 12px}
.of-moves { border: 0; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 8px}
.of-moves legend { padding: 0; margin-bottom: 6px}
.of-move { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--border-strong); border-radius: 999px;
  cursor: pointer; font-size: 13px; margin: 0; background: var(--surface)}
.of-move input { margin: 0}
.of-move:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); color: var(--brand-text)}
.of-move.revert, .of-move.reopen { border-style: dashed}
.of-help dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 8px 0}
.of-help dt { font-weight: 600; color: var(--heading)}
.of-help dd { margin: 0}
.of-history { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column}
.of-history li { display: grid; grid-template-columns: 120px 1fr; gap: 2px 10px; padding: 7px 0 7px 10px; border-left: 2px solid var(--border)}
.of-history li.back { border-left-color: var(--b-amber)}
.of-history .of-why { grid-column: 2}
@media (max-width: 720px) {
  .of-track { grid-template-columns: repeat(2, minmax(0, 1fr))}
  .of-history li { grid-template-columns: 1fr}
  .of-history .of-why { grid-column: 1}
}

/* Teklif ayarları: bölümlü düzen */
.qs-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; align-items: start}
.qs-nav { position: sticky; top: 12px; display: flex; flex-direction: column; gap: 2px; padding: 8px; margin: 0}
.qs-nav a { padding: 7px 10px; border-radius: var(--radius); color: var(--text); text-decoration: none; font-size: 14px}
.qs-nav a:hover { background: var(--surface-2); color: var(--heading)}
.qs-nav .qs-nav-ext { margin-top: 6px; border-top: 1px solid var(--border); border-radius: 0; padding-top: 10px; color: var(--brand-text)}
.qs-form { min-width: 0; display: flex; flex-direction: column; gap: 16px}
.qs-form > .card { margin: 0}
.qs-section { scroll-margin-top: 16px}
.qs-section > header { margin-bottom: 10px}
.qs-section > header h2 { margin: 0 0 2px}
.qs-section > header p { margin: 0}
.qs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 4px 16px; align-items: start}
.qs-grid > div { min-width: 0}
.qs-grid .span-2 { grid-column: 1 / -1}
.qs-sample { display: flex; flex-direction: column; gap: 2px; padding-top: 26px}
.qs-save { position: sticky; bottom: 0; z-index: 2; display: flex; justify-content: flex-end; padding: 10px 0;
  background: linear-gradient(to top, var(--bg, var(--surface-2)) 70%, transparent)}
@media (max-width: 860px) {
  .qs-layout { grid-template-columns: 1fr}
  .qs-nav { position: static; flex-direction: row; overflow-x: auto; padding: 6px}
  .qs-nav a { white-space: nowrap}
  .qs-nav .qs-nav-ext { margin: 0; border: 0; padding-top: 7px}
}

/* Teklif görünümü: format kartları, özelleştirme ve canlı önizleme */
.ql-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 20px; align-items: start}
.ql-controls { min-width: 0; display: flex; flex-direction: column; gap: 14px}
.ql-formats, .ql-group { border: 0; padding: 0; margin: 0; min-width: 0}
.ql-formats legend, .ql-group legend { font-weight: 600; font-size: 13px; padding: 0; margin-bottom: 8px; color: var(--heading)}
.ql-formats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px}
.ql-format { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 8px; margin: 0; border: 1px solid var(--border);
  border-radius: var(--radius); cursor: pointer; background: var(--surface)}
.ql-format input { position: absolute; opacity: 0; pointer-events: none}
.ql-format:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-tint)}
.ql-format:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px}
.ql-format .qt-thumb { pointer-events: none}
.ql-format-name { display: flex; flex-direction: column; gap: 2px; font-size: 13px}
.ql-format-name .small { line-height: 1.3}
.qt-thumb.qt-corporate .qt-band { height: 18px; background: var(--s-blue); border-bottom: 3px solid var(--qt)}
.qt-thumb.qt-corporate .qt-tbl { border: 1px solid var(--s-blue); border-bottom: 2px solid var(--qt); background: var(--surface-3)}
.qt-thumb.qt-compact { gap: 3px}
.qt-thumb.qt-compact span { height: 4px}
.qt-thumb.qt-compact .qt-band { height: 2px}
.qt-thumb.qt-compact .qt-tbl { height: 6px; margin-top: 3px}
.ql-swatches { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px}
.ql-swatch { width: 26px; height: 26px; min-height: 0; padding: 0; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--border-strong); cursor: pointer}
.ql-swatch:hover { box-shadow: 0 0 0 2px var(--brand)}
.ql-color { display: flex; gap: 6px; align-items: center}
.ql-color input[type=color] { width: 40px; height: 38px; padding: 2px; margin: 0; flex: none}
.ql-color input[name=accent] { margin: 0; font-family: ui-monospace, monospace}
.ql-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0 12px}
.ql-checks legend { grid-column: 1 / -1}
.ql-preview-col { position: sticky; top: 12px; display: flex; flex-direction: column; gap: 6px; min-width: 0}
/* önizleme kâğıdı: baskı gibi her temada beyaz */
.ql-paper { --ink: #1f2430; --mut: #5c6472; --line: #d9dee7; background: var(--surface); color: var(--ink); border: 1px solid var(--border-strong);
  border-radius: 4px; padding: 16px 16px 12px; font: 10px/1.4 var(--font-ui); box-shadow: 0 6px 20px rgb(0 0 0 / .08);
  aspect-ratio: 1 / 1.3; overflow: hidden; border-top: 4px solid var(--qt); display: flex; flex-direction: column; gap: 7px}
.ql-paper.ql-font-serif { font-family: "IBM Plex Serif", Georgia, "Times New Roman", serif}
.ql-paper.ql-font-mono { font-family: "IBM Plex Mono", ui-monospace, monospace}
.ql-paper b { color: var(--ink)}
.qp-header-text, .qp-footer { text-align: center; color: var(--mut); font-size: 8.5px}
.qp-footer { margin-top: auto; border-top: 1px solid var(--line); padding-top: 4px}
.qp-logo { display: inline-grid; place-items: center; width: 44px; height: 18px; border-radius: 3px; background: var(--surface-3); color: var(--mut); font-size: 7px; font-weight: 700; letter-spacing: .06em}
.ql-paper img { max-height: 18px; max-width: 70px}
.qp-logo-row { display: none}
.ql-logo-center .qp-logo-row, .ql-logo-right .qp-logo-row { display: flex; justify-content: center}
.ql-logo-right .qp-logo-row { justify-content: flex-end}
.ql-logo-center .qp-logo-inline, .ql-logo-right .qp-logo-inline, .ql-logo-none .qp-logo-inline { display: none}
.qp-head { display: flex; justify-content: space-between; gap: 8px}
.qp-seller, .qp-no { display: flex; flex-direction: column; gap: 1px}
.qp-seller span:not(.qp-logo):not(.qp-logo-inline), .qp-no span { color: var(--mut); font-size: 8.5px}
.qp-no { text-align: right}
.qp-no b { font-size: 14px; color: var(--qt)}
.qp-buyer { display: flex; flex-direction: column; padding: 6px 8px; background: var(--surface-2); border: 1px solid var(--line); border-left: 3px solid var(--qt)}
.qp-buyer span, .qp-bank span, .qp-sign span { color: var(--mut); font-size: 7.5px; font-weight: 700; letter-spacing: .04em}
.qp-intro { margin: 0}
.qp-table { width: 100%; border-collapse: collapse; font-size: 9px}
.qp-table th { text-align: left; color: var(--mut); font-size: 7.5px; border-bottom: 1.5px solid var(--qt); padding: 3px 2px}
.qp-table td { border-bottom: 1px solid var(--line); padding: 3px 2px; vertical-align: top; color: var(--ink)}
.qp-table .r { text-align: right}
.qp-table small { display: block; color: var(--mut); font-size: 7.5px}
.qp-img { display: inline-block; width: 12px; height: 12px; border-radius: 2px; background: var(--b-blue-bg); margin-right: 4px; vertical-align: -2px}
.qp-totals { display: grid; grid-template-columns: 1fr auto; gap: 1px 10px; margin: 0 0 0 auto; min-width: 55%; text-align: right}
.qp-totals dt { color: var(--mut)}
.qp-totals dd { margin: 0}
.qp-totals .qp-grand { font-weight: 700; color: var(--ink); border-top: 1px solid var(--ink); padding-top: 2px}
.qp-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 10px}
.qp-sign span { border-bottom: 1px solid var(--line); padding-bottom: 14px}
.qp-bank { display: flex; flex-direction: column; font-size: 8.5px}
.ql-paper [hidden] { display: none !important}
/* format farkları */
.ql-modern .qp-head { background: var(--qt); color: var(--on-solid); margin: 0 -16px; padding: 8px 16px}
.ql-modern .qp-head b, .ql-modern .qp-head span { color: var(--on-solid) !important}
.ql-modern .qp-table th { background: var(--qt); color: var(--on-solid); border: 0}
.ql-modern .qp-table tbody tr:nth-child(even) td { background: var(--surface-2)}
.ql-minimal { border-top-width: 1px; border-top-color: var(--border-strong)}
.ql-minimal .qp-buyer { background: none; border: 0; border-top: 1px solid var(--line); padding: 4px 0}
.ql-minimal .qp-no b { color: var(--ink)}
.ql-minimal .qp-table th { border-bottom-color: var(--ink); border-bottom-width: 1px}
.ql-corporate { border-top-width: 1px}
.ql-corporate .qp-head { background: var(--s-blue); margin: -16px -16px 0; padding: 10px 16px; border-bottom: 3px solid var(--qt)}
.ql-corporate .qp-head b, .ql-corporate .qp-head span { color: var(--on-solid) !important}
.ql-corporate .qp-seller span { color: var(--b-blue-bg) !important}
.ql-corporate .qp-buyer { background: none; border: 1px solid var(--ink)}
.ql-corporate .qp-table { border: 1px solid var(--ink)}
.ql-corporate .qp-table th { background: var(--surface-3)}
.ql-compact { gap: 4px; font-size: 8.6px; padding: 12px 14px 10px}
.ql-compact .qp-table td, .ql-compact .qp-table th { padding: 1.5px 2px}
.ql-compact .qp-buyer { background: none; border: 0; border-top: 1px solid var(--line); padding: 3px 0}
@media (max-width: 1100px) {
  .ql-wrap { grid-template-columns: 1fr}
  .ql-preview-col { position: static; max-width: 420px}
}

/* Ürün varyantları */
.variants .section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px}
.var-option { border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; margin-top: 12px; scroll-margin-top: 16px}
.var-option:target { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-tint)}
.var-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px}
.var-head form { margin: 0}
.var-rename { display: flex; gap: 6px; align-items: center; flex: 1 1 220px; max-width: 360px}
.var-rename input { margin: 0; font-weight: 600}
.var-grid { display: flex; flex-direction: column}
.var-row { display: grid; grid-template-columns: minmax(90px, 1fr) minmax(90px, 1fr) minmax(110px, 1.4fr) 110px; gap: 6px 8px;
  align-items: center; padding: 5px 0; border-bottom: 1px solid var(--border); margin: 0}
.var-grid.editable .var-row { grid-template-columns: minmax(90px, 1fr) minmax(90px, 1fr) minmax(110px, 1.4fr) 100px auto}
.var-row:last-child { border-bottom: 0}
.var-row input { margin: 0; min-width: 0; width: 100%}
.var-row .r, .var-row input.r { text-align: right}
.var-th { font-size: 12px; color: var(--muted); font-weight: 600; padding-top: 0}
.var-actions { display: flex; gap: 4px; justify-content: flex-end; white-space: nowrap}
.var-add { display: flex; gap: 6px; align-items: center; margin: 8px 0 0}
.var-add input { margin: 0; flex: 1; min-width: 0}
.var-empty { display: flex; flex-direction: column; gap: 2px; padding: 14px; border: 1px dashed var(--border-strong); border-radius: var(--radius); text-align: center}
@media (max-width: 720px) {
  .var-th { display: none}
  .var-row, .var-grid.editable .var-row { grid-template-columns: 1fr 1fr; padding: 8px 0}
  .var-row [data-label]::before { content: attr(data-label); display: block; font-size: 11px; color: var(--muted)}
  .var-actions { grid-column: 1 / -1; justify-content: flex-start}
}
.np-more { margin-top: 10px}
/* --- D sonu --- */

/* Sürüm 16 */
/* Ana ekran: hero bildirimleri tek tip çip */
.hero-notes { display: flex; flex-wrap: wrap; gap: 8px}
.hero-note { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 99px; font-size: 13px; font-weight: 500;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; white-space: nowrap}
.hero-note::before { content: ""; width: 7px; height: 7px; border-radius: 99px; background: var(--brand)}
.hero-note b { font-weight: 700; color: var(--heading)}
.hero-note:hover { text-decoration: none; border-color: var(--border-strong)}
.hero-note.tone-red { background: var(--b-red-bg); border-color: transparent; color: var(--b-red)}
.hero-note.tone-amber { background: var(--b-amber-bg); border-color: transparent; color: var(--b-amber)}
.hero-note.tone-red::before, .hero-note.tone-amber::before { background: currentColor}
.hero-note.tone-red b, .hero-note.tone-amber b { color: inherit}
p.dash-hero-sub a.hero-note, p.dash-hero-sub a.hero-note:hover { text-decoration: none}
p.dash-hero-sub:has(.hero-notes) { margin-top: 10px}

/* Takvim: "Daha sonra" gün kartı karuseli */
.cal-later.cx { grid-column: 1 / -1; margin: 0; padding: 0; min-width: 0}
.later-track > .later-day-card { padding: 16px; max-height: 300px}
.later-day-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--border); font-size: 14px; font-weight: 600; color: var(--heading)}
.later-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px}
.later-list li { display: flex; gap: 8px; align-items: baseline; min-width: 0; font-size: 13.5px}
.later-list a { min-width: 0; color: var(--heading); text-decoration: none; overflow-wrap: anywhere}
.later-list a:hover { text-decoration: underline}
.later-list b { color: var(--muted); font-weight: 600; margin-right: 2px}
.cal-later .later-more { margin: 6px 0 0}

/* Sohbet: kutu görünür yüksekliği doldurur (yükseklik chat.html'de üst öğelerin alt dolgusuna göre hesaplanır) */
@media (max-width: 760px) { body:not(:has(.tabbar)) .content.sec-chat { padding-bottom: 12px} }
.board { scrollbar-width: thin; scrollbar-color: var(--sb-thumb) var(--sb-track)}
.board.sb-custom { scrollbar-width: none; padding-bottom: 4px}
.board.sb-custom::-webkit-scrollbar { display: none}
.board-sbar { position: relative; height: 8px; margin: 0 0 10px; border-radius: 99px; background: var(--sb-track); cursor: pointer; touch-action: none}
.board-sbar.sb-bottom { margin: 6px 0 0}
.board-sbar[hidden] { display: none}
.board-sbar-thumb { position: absolute; top: 0; left: 0; height: 100%; border-radius: 99px; background: var(--sb-thumb); cursor: grab; transition: background .15s}
.board-sbar:hover .board-sbar-thumb, .board-sbar.drag .board-sbar-thumb { background: var(--sb-thumb-hover)}
.board-sbar.drag .board-sbar-thumb { cursor: grabbing}
@media (max-width: 760px) { .board-sbar { height: 6px} }

/* Toplantılar: saat bloğu | başlık, bilgi, katılımcılar | Katıl + ••• menüsü */
.meet-list > li.meet-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 16px; align-items: start; flex-wrap: nowrap; padding: 16px 20px}
.meet-body { min-width: 0; display: flex; flex-direction: column; gap: 4px}
.meet-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 15px; overflow-wrap: anywhere}
.meet-body .meta { margin: 0; overflow-wrap: anywhere}
.meet-people { margin: 2px 0 0; flex-wrap: wrap}
.meet-notes { overflow-wrap: anywhere}
.meet-row .meet-act { display: flex; flex-wrap: nowrap; gap: 8px; align-items: center; justify-content: flex-end; max-width: none; width: auto; padding: 0; align-self: center}
.meet-more > summary { min-width: 40px; letter-spacing: 1px}
.meet-more .menu-pop { min-width: 210px; right: 0; left: auto}
.meet-more .menu-pop button.link { width: 100%; justify-content: flex-start; font-weight: 500}
@media (max-width: 640px) {
  .meet-list > li.meet-row { grid-template-columns: 56px minmax(0, 1fr); gap: 8px 12px; padding: 14px 16px}
  .meet-row .meet-act { grid-column: 2; justify-content: flex-start}
  .meet-row .meet-when { width: 56px}
  .meet-more .menu-pop { right: auto; left: 0}
}

/* Saha ziyaretleri: kart içinde dolgulu, düzenli satırlar */
.visit-card { overflow: hidden}
.visit-card > .section-head { border-bottom: 1px solid var(--border)}
.visit-list { margin: 0; padding: 0; list-style: none}
.visit-list > li.visit-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 14px 20px; border-bottom: 1px solid var(--border)}
.visit-list > li.visit-row:last-child { border-bottom: 0}
.visit-list > li.visit-row:hover { background: var(--surface-2)}
.visit-pin { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--b-blue-bg); color: var(--b-blue)}
.visit-pin svg { width: 18px; height: 18px}
.visit-body { min-width: 0; display: flex; flex-direction: column; gap: 3px}
.visit-name { font-weight: 600; color: var(--heading); overflow-wrap: anywhere}
a.visit-name { text-decoration: none} a.visit-name:hover { text-decoration: underline}
.visit-body .meta { margin: 0}
.visit-note { color: var(--text); overflow-wrap: anywhere; margin-top: 2px}
.visit-act { align-self: center; white-space: nowrap}
@media (max-width: 640px) {
  .visit-list > li.visit-row { grid-template-columns: 32px minmax(0, 1fr); gap: 6px 12px; padding: 12px 16px}
  .visit-pin { width: 32px; height: 32px}
  .visit-act { grid-column: 2; align-self: start}
}

/* Görev şablonu düzenleme: açılır pencere; JS yoksa sayfada kart gibi görünür */
.tpl-dialog { width: min(780px, calc(100vw - 32px))}
.tpl-dialog:not(:modal) { position: static; display: block; width: auto; max-height: none; margin: 0 0 16px; box-shadow: none}
.tpl-edit-h { min-width: 0}
.tpl-edit-h p { overflow-wrap: anywhere}
.tpl-dialog fieldset { margin-top: 14px}

/* Sürüm 17 · G */
/* Yatay kaydırma çubukları: ince, yuvarlak, tema renginde (görev panosundaki --sb-* değişkenleri) */
.table-wrap, .cx-track, .later-strip, .fin-cx .cx-track { scrollbar-width: thin; scrollbar-color: var(--sb-thumb) transparent}
:is(.table-wrap, .cx-track, .later-strip, .board, .tm-list)::-webkit-scrollbar { height: 8px; width: 8px}
:is(.table-wrap, .cx-track, .later-strip, .board, .tm-list)::-webkit-scrollbar-track { background: transparent; border-radius: 99px}
:is(.table-wrap, .cx-track, .later-strip, .board, .tm-list)::-webkit-scrollbar-thumb { background: var(--sb-thumb); border-radius: 99px; border: 2px solid transparent; background-clip: padding-box}
:is(.table-wrap, .cx-track, .later-strip, .board, .tm-list)::-webkit-scrollbar-thumb:hover { background-color: var(--sb-thumb-hover)}
.cx-track { padding-bottom: 12px}
/* gizli (sr-only) başlıklar kaydırılan tablonun dışına taşıp sayfayı yana kaydırmasın */
.table-wrap { position: relative}

/* Finans tabloları: tarih dar, tür rozeti sabit genişlikte, tutarlar sağa yaslı ve eşit rakam genişliğinde */
.fin-filter, .filters:has(> label > input[type=date]) { align-items: flex-end}
.fin-filter > label, .filters:has(> label > input[type=date]) > label { display: grid; gap: 4px; margin: 0}
.fin-filter > button, .filters:has(> label > input[type=date]) > :is(button, .btn) { height: 42px; min-height: 42px}
.ledger-st-head .filters:has(> label > input[type=date]) > :is(button, .btn) { height: 42px}
.fin-table { table-layout: auto}
.fin-table th.ft-date, .fin-table td:first-child { width: 1%; white-space: nowrap}
.fin-table .ft-kind { width: 1%; white-space: nowrap}
.fin-table td.ft-text { min-width: 200px; max-width: 520px}
.fin-table td.num, .fin-table th.u-ta-right { width: 1%; white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; padding-left: 20px}
.fin-table td.ft-in:not(:empty) { color: var(--b-green)}
.fin-table td.ft-out:not(:empty) { color: color-mix(in srgb, var(--b-red) 80%, var(--text))}
.badge.txk { min-width: 76px; justify-content: center; font-size: 12px}
.txk-payment_in, .txk-manual_in, .txk-sup-payment { background: var(--b-green-bg); color: var(--b-green)}
.txk-payment_out, .txk-manual_out, .txk-sup-purchase { background: var(--b-red-bg); color: var(--b-red)}
.txk-expense { background: var(--b-amber-bg); color: var(--b-amber)}
.txk-transfer { background: var(--b-blue-bg); color: var(--b-blue)}
.txk-opening, .txk-adjust, .txk-sup-opening { background: var(--b-gray-bg); color: var(--b-gray)}
@media (max-width: 760px) { .fin-table td.ft-text { min-width: 0; max-width: none} .fin-table td, .fin-table th { width: auto} }

/* Cari / tedarikçi: yan kartlar ekstrenin üstünde yatay şeritte */
.fin-cx { margin: 0 0 18px}
.fin-cx .cx-track { display: flex; align-items: stretch}
.fin-cx .cx-track > .card { max-height: none; overflow: visible}
.fin-cx .cx-track > .card h2 { font-size: 15px}

/* Personel maaşı: ödeme hücresinde seçim ve düğme yan yana */
.staff-pay td.num, .staff-pay td.r { white-space: nowrap; font-variant-numeric: tabular-nums}
.sp-pay { white-space: nowrap; width: 1%}
.staff-pay-form { display: inline-flex; align-items: center; gap: 6px; flex-wrap: nowrap; margin: 0}
.staff-pay-form select { height: 32px; width: auto; max-width: 170px; padding: 4px 28px 4px 10px; font-size: 13px}
.staff-pay-form button { white-space: nowrap}
.sp-paid { display: inline-flex; align-items: center; gap: 8px}
.sp-paid form { margin: 0}
@media (max-width: 760px) { .sp-pay { white-space: normal} .staff-pay-form select { max-width: 60vw} }

/* Ekip: satır ızgarası, küçük seçimler, ayrıntılar satırın altında tam genişlikte, işlemler ••• menüsünde */
.tm-list { padding: 0}
.tm-row { display: grid; grid-template-columns: minmax(190px, 1.5fr) minmax(120px, .8fr) minmax(175px, 1fr) minmax(140px, 1fr) minmax(130px, .9fr) 72px 44px;
  align-items: center; gap: 8px 14px; padding: 12px 20px; border-top: 1px solid var(--border)}
.tm-row.tm-head { border-top: 0; padding-top: 14px; padding-bottom: 10px; font-size: 12px; font-weight: 600; color: var(--muted)}
.tm-row > form, .tm-cell { margin: 0; min-width: 0}
.tm-row select.sm { height: 34px; padding: 4px 26px 4px 10px; font-size: 13px; width: 100%; text-overflow: ellipsis}
.tm-id { display: grid; min-width: 0}
.tm-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap}
.tm-mail { overflow: hidden; text-overflow: ellipsis; white-space: nowrap}
.tm-person .person { min-width: 0}
.tm-act { justify-self: end}
.tm-menu .menu-pop { right: 0; left: auto; min-width: 190px}
.tm-more { grid-column: 1 / -1; margin: -2px 0 0}
.tm-more > summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 2px 14px; list-style: none; padding-left: 44px}
.tm-more > summary::-webkit-details-marker { display: none}
.tm-more > summary::before { content: "▸"; margin-right: -8px}
.tm-more[open] > summary::before { content: "▾"}
.tm-more > summary span + span::before { content: "·"; margin-right: 14px}
.tm-panels { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin: 10px 0 4px 44px}
.tm-panel { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: var(--surface-2); display: grid; gap: 8px; align-content: start; margin: 0}
.tm-panel h3 { font-size: 13px; margin: 0; color: var(--heading)}
.tm-panel > button { justify-self: start}
.tm-inline { display: flex; align-items: center; gap: 8px}
.tm-inline input { width: 110px; height: 34px}
@media (max-width: 1100px) {
  .tm-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); position: relative}
  .tm-row.tm-head { display: none}
  .tm-person { grid-column: 1 / -1; padding-right: 52px}
  .tm-act { position: absolute; top: 12px; right: 14px}
  .tm-cell[data-label]::before, .tm-row > form[data-label]::before { content: attr(data-label); display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 3px}
  .tm-more { grid-column: 1 / -1}
  .tm-more > summary, .tm-panels { padding-left: 0; margin-left: 0}
}
@media (max-width: 640px) {
  .tm-row { padding: 12px 14px}
  .tm-panels { grid-template-columns: minmax(0, 1fr)}
}
/* --- G sonu --- */

/* Sürüm 17 · F */
/* Rapor kataloğu */
.report-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-bottom: 8px}
.report-cards .report-card { margin: 0; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; min-height: 96px}
.report-cards .report-card b { color: var(--heading); font-size: 15px}
.kpi b.kpi-text { font-size: 17px; line-height: 1.3; overflow-wrap: anywhere}
.rb-bars { display: flex; flex-direction: column; gap: 10px}
.rb-row { display: grid; grid-template-columns: minmax(110px, 180px) 1fr auto; gap: 12px; align-items: center; font-size: 13px}
.rb-track { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden}
.rb-track > span { display: block; height: 100%; border-radius: inherit; background: var(--brand)}
@media (max-width: 640px) { .rb-row { grid-template-columns: 1fr auto} .rb-track { grid-column: 1 / -1; grid-row: 2} }
/* Ürün ekranı: özet şerit + sekmeler + iki sütun */
.prod-summary { margin-bottom: 14px}
.prod-summary .kpi small a { color: inherit}
.prod-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; align-items: start}
.prod-grid > div > .card:first-child, .prod-grid > .card { margin-top: 0}
.prod-grid > div { display: flex; flex-direction: column; gap: 16px}
.prod-grid > div > .card { margin: 0}
#pane-buy .prod-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr)}
#pane-buy .prod-grid > .card { margin: 0}
#pane-info form .row + datalist + .row, #pane-info form .row + .row { margin-top: 12px}
@media (max-width: 900px) { .prod-grid, #pane-buy .prod-grid { grid-template-columns: 1fr} }
/* Teklif listesi: siparişe dönüştür */
.to-order-strip { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap}
.bulk-order { display: flex; align-items: center; gap: 12px; flex-wrap: wrap}
.bulk-order .check { margin: 0}
.w-check { width: 36px}
/* --- F sonu --- */

/* Sürüm 18 · H */
/* Alış faturası ve alış listesi */
.pur-lines { margin: 6px 0 0; padding-left: 16px}
.pur-lines li { margin: 2px 0}
.pur-table tfoot td { border-top: 1px solid var(--border-strong)}
@media (max-width: 640px) { .pur-line { grid-template-columns: 1fr 1fr} .pur-line select[name=line_product] { grid-column: 1 / -1} }
/* Aylık eğilim grafikleri */
.trend-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; margin-bottom: 12px}
.trend-card { display: grid; gap: 6px}
.trend-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap}
.trend-svg { width: 100%; height: auto; display: block}
.trend-bar { fill: color-mix(in srgb, var(--brand) 38%, transparent)}
.trend-bar.now { fill: var(--brand)}
.trend-axis { stroke: var(--border); stroke-width: 1}
.trend-lbl { fill: var(--muted); font-size: 9px}
.trend-up { color: var(--b-green)}
.trend-down { color: var(--danger)}
/* Hesap satırında bakiye çizgisi */
.spark { width: 100%; height: 26px; display: block}
.spark polyline { stroke: var(--brand); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round}
/* Ekip: seçim, gruplama, toplu işlem, yetki geçmişi */
.tm-pick { margin: 0 8px 0 0; flex: none}
.tm-person { display: flex; align-items: center}
.tm-group { margin: 0; padding: 10px 16px 4px; border-top: 1px solid var(--border)}
.tm-bulk { display: flex; align-items: center; gap: 10px; flex-wrap: wrap}
.perm-trail .meta { margin-top: 2px}
/* Personel: hepsini öde; teklif: kayıp nedeni */
.sp-all { display: flex; align-items: center; gap: 10px; flex-wrap: wrap}
.loss-prompt { align-items: center}
/* --- H sonu --- */
/* Sürüm 19 · K */
/* Faturalar, KDV özeti dökümü, resmi bilgiler kontrol listesi */
.k-checklist { margin: 6px 0 12px; padding-left: 0; list-style: none; display: grid; gap: 4px}
.k-checklist li { position: relative; padding-left: 22px; font-size: .9rem; color: var(--text)}
.k-checklist li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 10px; height: 10px; border-radius: 3px;
  border: 1.5px solid var(--b-amber); background: var(--b-amber-bg)}
.k-legal-missing { border-left: 3px solid var(--b-amber)}
.notice.k-legal-missing { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 12px}
.k-vat-table { margin: 12px 0 6px}
.k-vat-months { margin-top: 10px}
.k-vat-months > summary { cursor: pointer; color: var(--muted-strong)}
.k-invoice-form .table-wrap { margin: 10px 0 14px}
.k-qty { width: 7.5em; max-width: 100%; text-align: right}
.k-tax { margin: 12px 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2)}
.k-tax > summary { cursor: pointer; font-weight: 600; color: var(--heading)}
.k-invoice { display: grid; gap: 14px}
.k-invoice-head .details { margin-top: 10px}
.k-invoice-head .details dt { padding-right: 14px; white-space: nowrap}
.k-totals { margin: 0 0 0 auto; max-width: 440px; display: grid; gap: 2px}
.k-totals > div { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0}
.k-totals dt { color: var(--muted-strong)}
.k-totals dd { margin: 0; text-align: right; white-space: nowrap}
.k-totals .k-total-last { border-top: 1.5px solid var(--border-strong); margin-top: 4px; padding-top: 8px; font-weight: 700; color: var(--heading)}
.k-invoice-cancel { display: flex; flex-wrap: wrap; align-items: center; gap: 10px}
.k-invoice-table tr.k-cancelled td { color: var(--muted); text-decoration: line-through}
.k-invoice-table tr.k-cancelled td:last-child, .k-invoice-table tr.k-cancelled td:nth-child(4) { text-decoration: none}
.k-order-invoices .list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px}
@media (max-width: 640px) {
  .k-totals { max-width: none}
  .k-qty { width: 100%}
}
/* --- K sonu --- */

/* Sürüm 19 · J */
.finance-grant .check { align-items: flex-start; gap: 8px; line-height: 1.4}
.finance-grant .check input { margin-top: 3px; flex: none}
.notice.mail-off, .notice.mail-queued { line-height: 1.5}
.notice.mail-off a, .notice.mail-queued a { font-weight: 600; white-space: nowrap}
/* --- J sonu --- */

/* Sürüm 18 · Kimlik — Kuki marka dili: "ısırık" köşe, kırıntı noktası. Yazı tipi tek aile: IBM Plex Sans (ui.css). */
:root {
  --font-display: var(--font-ui); --crumb-tint: var(--b-amber-line);
  --crumb: var(--s-amber);   /* kırıntı vurgusu (bildirim simgesi, marka noktası, odak halkası); koyu temada --s-amber kendi değerini alır */
  --bite: 4px; --r-card: 18px; --r-ctl: 10px;
  --hair-in: inset 0 1px 0 rgb(255 255 255 / .9);
  --ease: cubic-bezier(.2, .8, .2, 1)}
[data-theme=dark] {
  --hair-in: inset 0 1px 0 rgb(255 255 255 / .04)}
/* Yazı: başlıklar ve büyük sayılar aynı aileden (IBM Plex Sans 600/700); para ve sayılar eş genişlikte */
h1, h2, .page-heading h1, .dashboard-heading h1, .wordmark, .metric b, .ht-value, .c-kpis b, .card > h2, .card-head h2, .section-head h2 {
  font-family: var(--font-display); font-optical-sizing: auto}
.page-heading h1, .dashboard-heading h1 { font-weight: 600; letter-spacing: -.02em}
h2 { font-weight: 600; letter-spacing: -.01em}
.num, .metric b, .ht-value, .c-kpis b, td.num, .money { font-variant-numeric: tabular-nums}
.metric b, .ht-value, .c-kpis b { font-weight: 600; letter-spacing: -.01em}
.wordmark { font-weight: 700; letter-spacing: -.04em}
.sidebar-logo .brand-dot, .brand-dot { color: var(--crumb) !important}
/* İmza köşe: sol üst "ısırık" — kartta, düğmede, rozette aynı oran */
.card, .hero-tile, .metric, .c-hero, .empty, .workspace-label, .menu-pop, dialog {
  border-radius: var(--bite) var(--r-card) var(--r-card) var(--r-card) !important}
button, .btn, .icon-btn, input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea {
  border-radius: var(--bite) var(--r-ctl) var(--r-ctl) var(--r-ctl)}
.badge, .tag-chip, .chip { border-radius: 3px 8px 8px 8px}
/* Kartlar: gölge yerine ince çizgi + iç ışık */
.card, .hero-tile, .metric { border: 1px solid var(--border); box-shadow: var(--hair-in), var(--shadow) !important; background-color: var(--surface)}
/* Zemin: bölüm rengi + kurabiye kırıntısı nokta deseni, aşağı doğru solar */
.main { position: relative; isolation: isolate}
.shell {}
/* Sayfa başlığı: kırıntı noktalı üst satır */
.eyebrow { letter-spacing: .09em}
.page-heading .eyebrow, .dashboard-heading .eyebrow, .dash-hero .eyebrow { display: flex; align-items: center; gap: 7px}
.page-heading .eyebrow::before, .dashboard-heading .eyebrow::before, .dash-hero .eyebrow::before {
  content: ""; width: 7px; height: 7px; flex: none; border-radius: 2px 50% 50% 50%; background: var(--accent)}
/* Menü: etkin öğede soldan kırıntı çentiği */
.nav a { position: relative; border-radius: var(--bite) var(--r-ctl) var(--r-ctl) var(--r-ctl)}
.nav a.active::before { content: ""; position: absolute; left: -6px; top: 50%; width: 4px; height: 16px; margin-top: -8px;
  border-radius: 0 4px 4px 0; background: var(--sec, var(--brand))}
.nav-group a.active, .nav-group a.active:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sec) 22%, transparent)}
/* Odak halkası: marka çizgisi + kırıntı haresi */
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 5px color-mix(in srgb, var(--focus) 22%, transparent)}
/* Düğmeler: hafif basma */
button, .btn { transition: background-color .15s var(--ease), border-color .15s var(--ease), transform .12s var(--ease), box-shadow .15s var(--ease)}
button:active:not(:disabled), .btn:active { transform: translateY(1px) scale(.985)}
button.primary, .btn.primary { box-shadow: inset 0 1px 0 rgb(255 255 255 / .18), 0 1px 0 rgb(30 25 80 / .15)}
a.card.metric, a.hero-tile { transition: border-color .18s var(--ease), transform .18s var(--ease)}
a.card.metric:hover, a.hero-tile:hover { border-color: color-mix(in srgb, var(--sec-c, var(--brand)) 40%, var(--border)); transform: translateY(-1px)}
/* Boş durum: iç boşluk (zemin ve çizgi tasarım sistemi v2'de) */
.empty { padding: 28px 20px}
.empty-ic { color: var(--brand-text); background: var(--brand-tint); border-radius: 4px 50% 50% 50% !important}
@media (prefers-reduced-motion: reduce) {
  button, .btn, a.card.metric, a.hero-tile { transition: none}
  button:active:not(:disabled), .btn:active, a.card.metric:hover, a.hero-tile:hover { transform: none}
}

/* Ana ekran ekip raporu: departmana göre açılır gruplar */
.wl-groups { display: flex; flex-direction: column}
.wl-group { border-top: 1px solid var(--border)}
.wl-group > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 24px; cursor: pointer; list-style: none}
.wl-group > summary::-webkit-details-marker { display: none}
.wl-group > summary::before { content: "▸"; color: var(--muted); margin-right: 8px; transition: transform .15s}
.wl-group[open] > summary::before { transform: rotate(90deg)}
.wl-group > summary:hover { background: var(--hover, rgba(0,0,0,.03))}
.wl-name { font-weight: 600; margin-right: auto}
.wl-meta { display: flex; gap: 14px; align-items: center; font-size: 13px; color: var(--muted); flex-wrap: wrap}
.wl-meta b { color: var(--heading)}

/* "Bugün yapman gerekenler": kompakt çip satırı (büyük satırlar yerine) */
.today-card { padding: 14px 18px}
.today-card h2 { margin: 0 0 10px; font-size: 15px}
.today-card .today-list { display: flex; flex-wrap: wrap; gap: 8px}
.today-card a.today-item { gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; font-size: 14px}
.today-card a.today-item:not(:has(.today-n)) { padding-left: 12px}
.today-card .today-n { min-width: 26px; height: 26px; border-radius: 999px; font-size: 13px; padding: 0 6px}
.today-card .today-go { font-size: 14px; margin-left: 2px}
.today-card .today-empty { margin: 0; font-size: 14px}

/* Üst çubuk görev sayacı: ne olduğu yazsın, uzun süre açıksa uyarsın */
.timer-chip { padding: 3px 4px 3px 10px; background: color-mix(in srgb, var(--b-green) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--b-green) 35%, transparent)}
.timer-label { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--b-green)}
.timer-task { max-width: 190px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--heading)}
.timer-chip.long { background: color-mix(in srgb, var(--s-amber) 14%, var(--surface)); border-color: color-mix(in srgb, var(--s-amber) 45%, transparent)}
.timer-chip.long .timer-dot { background: var(--s-amber)}
.timer-chip.long .timer-label { color: var(--b-amber)}
@media (max-width: 900px) { .timer-task, .timer-label { display: none} }

/* Tahsilatlar: ay gezinme, sorumlu ve özet tek satırda */
.collect-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 18px}
.collect-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap}
.collect-nav form { margin: 0 0 0 8px}
.collect-month { min-width: 96px; text-align: center; font-size: 15px}
.collect-stats { display: flex; gap: 28px; flex-wrap: wrap}
.collect-stats > div { display: flex; flex-direction: column; align-items: flex-end}
.collect-stats span { font-size: 12px; color: var(--muted)}
.collect-stats b { font-size: 20px; color: var(--heading)}
.collect-stats small { font-size: 11px; color: var(--muted)}
@media (max-width: 640px) { .collect-stats > div { align-items: flex-start} }

/* Sayfa çubuğu */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid var(--border)}
.pager-pages { display: flex; gap: 4px; align-items: center; flex-wrap: wrap}
.pager-pages .btn.on { background: var(--brand); border-color: var(--brand); color: var(--on-solid)}
.pager-gap { padding: 0 4px; color: var(--muted)}
.pager-per { display: flex; gap: 2px; align-items: center}
.pager-per .mute { margin-right: 6px}
.pager-per a { padding: 3px 9px; border-radius: 999px; color: var(--text)}
.pager-per a.on { background: var(--brand-tint); color: var(--brand-text); font-weight: 600}

/* Toplu seçim sütunu sabit dar: görev başlığı sütunu sıkışmasın */
col.c-bulk { width: 44px}

/* Ürün süzgeçleri */
.prod-filters { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px}
.prod-filters .pf-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end}
.prod-filters .pf-row > input[type=search] { flex: 1 1 260px}
.prod-filters .pf-row > select { flex: 0 1 200px}
.prod-filters .pf-row label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); flex: 0 1 160px}
.prod-filters .pf-more > summary { cursor: pointer; font-size: 13px; color: var(--brand-text); font-weight: 600}
.prod-filters .pf-more[open] > .pf-row { margin-top: 10px}
.prod-filters .pf-links { display: flex; gap: 14px}
.prod-filters .pf-links a.on { font-weight: 700}

/* Pano: "daha göster" açılınca sütun sayfayı uzatmaz, kendi içinde kayar */
@media (min-width: 900px) {
  .board-col.expanded { max-height: calc(100dvh - 190px); overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable}
  .board-col.expanded .bc-expand { position: sticky; bottom: 0; z-index: 2; background: var(--surface); box-shadow: 0 -8px 16px -8px rgb(0 0 0 / .18)}
}

/* Takvim tuşu her tarayıcıda açılsın: görünmez yerel tarih alanı tuşun üstünde, tıklamayı o alır
   (showPicker desteklemeyen tarayıcıda da yerel seçici kendiliğinden açılır) */
.trd-native { pointer-events: auto !important; right: 4px !important; top: 50% !important; bottom: auto !important;
  transform: translateY(-50%); width: 28px !important; height: 28px !important; z-index: 1; cursor: pointer}
.trd-native::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; cursor: pointer}
.trd-native:disabled { pointer-events: none !important}

/* Toplantılar: ••• menüsü kart kenarında kesilmesin; geçmiş bölümü yaklaşanlarla aynı düzen */
.card.meet-up, .card.meet-past { overflow: visible}
.menu-details.menu-up .menu-pop { top: auto; bottom: calc(100% + 6px)}
.meet-past-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; cursor: pointer; list-style: none}
.meet-past-head::-webkit-details-marker { display: none}
.meet-past-head h2 { font-size: 16px}
.meet-past-chev { width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s; margin-right: 4px}
.meet-past details[open] .meet-past-chev { transform: rotate(-135deg)}
.meet-past .meet-list { border-top: 1px solid var(--border)}
.meet-row.cancelled .meet-title b { text-decoration: line-through; color: var(--muted)}
.meet-row.cancelled .meet-when { opacity: .6}

/* Filtre panelleri: seçimler satırı boydan boya doldursun; onay kutuları tik işaretli çip */
.filter-grid { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr))}
.filter-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap}
.filter-checks, .prod-filters .pf-row:has(.check-pill) { gap: 8px}
.filter-checks .check, label.check-pill {
  display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 7px 14px 7px 10px; border-radius: 99px;
  background: var(--surface); border: 1px solid var(--border); font-size: 13.5px; font-weight: 500; color: var(--text);
  cursor: pointer; user-select: none; transition: border-color .15s, background-color .15s; flex: 0 0 auto}
.filter-checks .check:hover, label.check-pill:hover { border-color: var(--border-strong)}
.filter-checks .check input, label.check-pill input {
  appearance: none; -webkit-appearance: none; width: 18px; height: 18px; margin: 0; flex: none; border-radius: 50%;
  border: 1.5px solid var(--border-strong); background: var(--surface); display: grid; place-items: center; cursor: pointer}
.filter-checks .check input::after, label.check-pill input::after {
  content: ""; width: 5px; height: 9px; border: solid var(--border); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); opacity: 0}
.filter-checks .check input:checked, label.check-pill input:checked { background: var(--brand); border-color: var(--brand)}
.filter-checks .check input:checked::after, label.check-pill input:checked::after { opacity: 1}
.filter-checks .check:has(input:checked), label.check-pill:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); color: var(--brand-text)}
.filter-checks .check input:focus-visible, label.check-pill input:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px}
.prod-filters .pf-row label.check-pill { flex-direction: row; align-self: flex-end; font-size: 13.5px; color: var(--text); flex: 0 0 auto}

/* Teklif: katalogdan ekleme satırı */
.add-catalog { display: grid; grid-template-columns: minmax(220px, 1fr) 90px 150px 90px auto; gap: 10px; align-items: end}
.add-catalog label { font-size: 12px}
@media (max-width: 760px) { .add-catalog { grid-template-columns: 1fr 1fr} .add-catalog .ac-product { grid-column: 1 / -1} }
.line-menu > summary.btn { width: auto !important; min-width: 0; height: auto; padding: 5px 12px; font-size: 13px; white-space: nowrap}

/* Alış faturası formu */
.pur-form { display: grid; gap: 16px; max-width: 1100px}
.pur-card { display: grid; gap: 12px}
.pur-card .h-sm { margin: 0}
.pur-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 16px}
.pur-grid label { display: grid; gap: 4px; margin: 0}
.pur-grid .pur-wide { grid-column: 1 / -1}
.pur-grid [hidden] { display: none}
.pur-head { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; padding: 16px 20px 4px}
.pur-items td { padding: 6px 8px; vertical-align: middle}
.pur-items input, .pur-items select { width: 100%; margin: 0}
.pur-items td:nth-child(2) input, .pur-items td:nth-child(3) input { text-align: right}
.pur-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 12px 20px 18px; border-top: 1px solid var(--border)}
.pur-totals { display: grid; grid-template-columns: auto auto; gap: 4px 24px; margin: 0; text-align: right}
.pur-totals dt { color: var(--muted)}
.pur-totals dd { margin: 0}
.pur-actions { display: flex; justify-content: flex-end; gap: 10px}
/* Filtre satırında tarih/ay kutuları tam genişliğe yayılmasın */
.filters input[type=month], .filters input[type=date] { width: auto; flex: 0 1 auto; min-width: 0}
.filters label.small { display: inline-flex; align-items: center; gap: 6px; margin: 0}
/* Çek/senet bordro çubuğu */
.chq-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 12px 20px; border-bottom: 1px solid var(--border)}
.chq-bar input { flex: 1 1 260px; max-width: 420px; margin: 0}
.chq-bar .small { margin-right: auto}
col.c-check { width: 44px}
.filters .trd { width: auto; flex: 0 1 auto; min-width: 0; max-width: 100%}
.filters .trd .trd-text { width: 10.5em; max-width: 100%}
@media (min-width: 761px) { .chq-table { table-layout: fixed; width: 100%} }
.timer-chip b { white-space: nowrap}
@media (max-width: 640px) { .timer-chip .timer-label { display: none} .timer-chip { gap: 4px; padding-left: 8px} }
@media (max-width: 760px) {
  .pur-items colgroup, .pur-items thead { display: none}
  .pur-items, .pur-items tbody { display: block; width: 100%}
  .pur-items tr.pur-row { display: grid; grid-template-columns: 1fr 1.3fr 84px 36px; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--border)}
  .pur-items td { display: block; padding: 0; border: 0}
  .pur-items td:first-child { grid-column: 1 / -1}
  .pur-items td[data-line-total] { grid-column: 1 / -1; order: 9; text-align: right; color: var(--muted); font-size: 13px}
  .pur-items td[data-line-total]::before { content: "Tutar: "}
}
/* Barkod okutma */
.scan-field { display: flex; gap: 6px; align-items: stretch}
.scan-field input { flex: 1 1 auto; min-width: 0; margin: 0}
.scan-btn { flex: 0 0 auto; display: inline-grid; place-items: center; padding: 0 10px; min-width: 42px}
.pf-search { flex: 1 1 260px}
.scan-dialog { width: min(440px, calc(100vw - 32px))}
.scan-view { position: relative; border-radius: 12px; overflow: hidden; background: var(--inverse); aspect-ratio: 4 / 3}
.scan-view video { width: 100%; height: 100%; object-fit: cover; display: block}
.scan-view[hidden] { display: none}
.scan-frame { position: absolute; inset: 22% 12%; border: 2px solid rgba(255, 255, 255, .9); border-radius: 10px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .35)}
.scan-manual { display: flex; gap: 8px; margin-top: 10px}
.scan-manual input { flex: 1; margin: 0}
.count-scan { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--border)}
.count-scan input { flex: 1 1 220px; max-width: 360px; margin: 0}
tr.scan-hit td { background: var(--brand-tint); transition: background .3s}
.receipt-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px; margin-bottom: 12px; border: 1px dashed var(--border); border-radius: 12px; background: var(--surface-2, transparent)}
.receipt-btn { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; margin: 0}
.visit-running { display: flex; flex-wrap: wrap; align-items: center; gap: 8px}
.visit-chip { text-decoration: none; color: inherit; padding-right: 10px}
.visit-finish .sign-pad { width: 100%; height: 160px; margin: 6px 0}
.visit-kpis { margin-bottom: 16px}
.portal-recon { display: grid; gap: 8px; border-left: 4px solid var(--brand)}
.portal-st-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px}
.portal-st-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center}
.portal-st-form label { display: inline-flex; align-items: center; gap: 6px; margin: 0}
.portal-st-form input { width: auto; margin: 0}
.cf-filter { justify-content: space-between}
.cf-items summary { cursor: pointer; list-style: none}
.cf-items summary::-webkit-details-marker { display: none}
.cf-items summary::after { content: " ▾"; color: var(--muted); font-size: 11px}
.cf-items ul { margin: 6px 0 0; padding: 0; list-style: none; text-align: left; font-size: 12px}
.cf-items li { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; border-top: 1px dashed var(--border)}
.cf-items li span { color: var(--muted); white-space: normal}
.prim-base { border: 0; padding: 0; margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 4px 18px}
.prim-base legend { font-weight: 600; margin-bottom: 4px}
.prim-payout { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border)}
.badge.sla-ok { background: var(--brand-tint); color: var(--brand-text)}
.badge.sla-risk { background: color-mix(in srgb, var(--s-amber) 16%, var(--surface)); color: var(--b-amber)}
.badge.sla-late, .badge.sla-missed { background: var(--danger-tint); color: var(--danger)}
.badge.sla-met { background: color-mix(in srgb, var(--b-green) 14%, var(--surface)); color: var(--b-green)}
.sla-table input { width: 120px; text-align: right; margin: 0}
/* Masaüstü uygulamasında PDF / yazdırma görüntüleyicisi (app-shell.js) */
.app-viewer { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; background: var(--surface)}
.app-viewer-bar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--border); background: var(--surface)}
.app-viewer-bar b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap}
.app-viewer-hint { color: var(--muted); font-size: 12px}
.app-viewer iframe { flex: 1; width: 100%; border: 0; background: var(--surface)}
.app-viewer-msg { position: absolute; top: 50%; left: 0; right: 0; text-align: center; color: var(--muted)}

/* Müşteri kartı: WhatsApp kutusu */
.wa-box { display: grid; gap: 8px}
.wa-box .wa-open { color: var(--green, var(--b-green))}
.wa-form { display: flex; gap: 8px; align-items: flex-end}
.wa-form textarea { flex: 1; min-width: 0}

/* Platform: test şirketi formu */
.pf-test-co { position: relative}
.pf-test-form { display: grid; gap: 10px; margin-top: 8px; max-width: 420px}

/* ── Uygulamalar sayfası (PWA kurulum + indirme) ─────────────────────── */
.app-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 820px}
@media (max-width: 720px) { .app-cards { grid-template-columns: 1fr} }
.app-card { display: flex; flex-direction: column; gap: 12px}
.app-card-head { display: flex; align-items: center; gap: 12px}
.app-card-head h2 { margin: 0; font-size: 17px}
.app-card-head p { margin: 0}
.app-ic { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-tint, color-mix(in srgb, var(--brand) 14%, var(--surface))); color: var(--brand-text)}
.app-ic svg { width: 22px; height: 22px}
.app-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 7px; color: var(--muted-strong)}
.app-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto}
/* .btn display'i [hidden]'ı ezdiği için: kurulum düğmesi ancak tarayıcı destekliyorsa (JS açar) görünür */
.app-actions [data-pwa-install][hidden] { display: none}

/* Profil: takvime tek tıkla abone ol */
.cal-subscribe { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px}

/* ── Kullanım rehberi (/rehber) ─────────────────────────────────────── */
.guide-intro { max-width: 720px; margin: 0 0 14px}
.guide-search { position: relative; max-width: 560px; margin-bottom: 12px}
.guide-search svg { position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); pointer-events: none}
.guide-search input { width: 100%; padding-left: 38px; min-height: 44px; font-size: 15px}
.guide-toc { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px}
.guide-toc a { padding: 5px 11px; border: 1px solid var(--border); border-radius: 999px; font-size: 13px; color: var(--text); text-decoration: none; background: var(--surface)}
.guide-toc a:hover { border-color: var(--border-strong)}
.guide { display: grid; gap: 14px; max-width: 820px}
.guide-sec { scroll-margin-top: 80px}
.guide-sec h2 { margin: 0 0 2px; font-size: 17px}
.guide-sec > p { margin: 0 0 8px}
.guide-topic { border-top: 1px solid var(--border)}
.guide-topic summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 2px; cursor: pointer; font-weight: 600; list-style: none; min-height: 44px}
.guide-topic summary::-webkit-details-marker { display: none}
.guide-topic summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 18px; margin-left: auto}
.guide-topic[open] summary::after { content: "–"}
.guide-topic summary .badge { margin-left: auto}
.guide-topic ol { margin: 0 0 10px; padding-left: 22px; display: grid; gap: 6px; color: var(--muted-strong, var(--text))}
.guide-topic .btn { margin: 0 0 12px}
.guide-tip { background: var(--surface-2, var(--bg)); border-radius: 8px; padding: 8px 10px; margin: 0 0 10px}

/* ── Tanıtım turu (static/tour.js) ──────────────────────────────────── */
.tour-layer { position: fixed; inset: 0; z-index: 9000}
.tour-layer.dim { background: rgb(15 18 25 / .55)}
.tour-hole { position: fixed; z-index: 9001; border-radius: 10px; pointer-events: none;
  box-shadow: 0 0 0 9999px rgb(15 18 25 / .55), 0 0 0 2px var(--brand, #3566d2); transition: all .18s ease}
.tour-card { position: fixed; z-index: 9002; width: min(340px, calc(100vw - 32px)); background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px 12px; box-shadow: 0 12px 32px rgb(0 0 0 / .22)}
.tour-card h2 { margin: 4px 0 6px; font-size: 16px}
.tour-card p { margin: 0 0 12px; font-size: 14px; line-height: 1.5}
.tour-head { display: flex; align-items: center; justify-content: space-between; gap: 8px}
.tour-foot { display: flex; align-items: center; gap: 8px; justify-content: flex-end}
.tour-foot .tour-link { margin-right: auto}
.tour-card button { min-height: 36px}
.tour-card [hidden] { display: none}
@media (prefers-reduced-motion: reduce) { .tour-hole { transition: none} }

/* ── Müşteri seçici (çok müşterili firmada yazdıkça arar) ──────────── */
.cpick { position: relative}
.cpick-q { width: 100%}
.cpick-list { position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 4px); max-height: 260px; overflow-y: auto;
  margin: 0; padding: 4px; list-style: none; background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius, 8px); box-shadow: 0 8px 24px rgb(0 0 0 / .14)}
.cpick-list li { padding: 8px 10px; border-radius: 6px; cursor: pointer; min-height: 36px}
.cpick-list li.on, .cpick-list li[role=option]:hover { background: var(--brand-tint, var(--bg)); color: var(--text)}
.cpick-list .cpick-none { color: var(--muted); cursor: default}

/* Yetkili iletişim izinleri */
.consent-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 4px}
.consent-row .inline-form { display: inline; margin: 0}
.consent-row .link { padding: 0 2px; min-height: 0}

/* ── Çevrimdışı kuyruk (static/offline.js) ─────────────────────────── */
.offline-chip { position: relative}
.offline-chip > summary { list-style: none; cursor: pointer; font-size: 12.5px; font-weight: 600; padding: 6px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--s-amber) 16%, var(--surface)); color: var(--text); white-space: nowrap; min-height: 32px; display: flex; align-items: center}
.offline-chip > summary::-webkit-details-marker { display: none}
.offline-chip > summary.bad { background: color-mix(in srgb, var(--s-red) 16%, var(--surface))}
.offline-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 70; width: min(320px, calc(100vw - 32px)); padding: 12px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius, 8px); box-shadow: 0 10px 28px rgb(0 0 0 / .16)}
.offline-pop ul { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; font-size: 13px}
.offline-pop li { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center}
.offline-toast { position: fixed; left: 50%; bottom: 88px; transform: translateX(-50%); z-index: 9500; max-width: min(520px, calc(100vw - 32px));
  background: var(--text); color: var(--surface); padding: 10px 14px; border-radius: 10px; font-size: 14px; box-shadow: 0 8px 24px rgb(0 0 0 / .2)}

/* ── Bildirim merkezi ──────────────────────────────────────────────── */
.notif-page { max-width: 940px; margin: 0 auto}
.notif-card { padding: 0; overflow: hidden}
.notif-tabs { display: flex; gap: 2px; padding: 0 12px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none}
.notif-tabs::-webkit-scrollbar { display: none}
.notif-tabs a { position: relative; flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 15px 12px 13px; color: var(--muted-strong); font-size: 14px; font-weight: 600; text-decoration: none}
.notif-tabs a:hover { color: var(--heading); text-decoration: none}
.notif-tabs a.on { color: var(--heading); font-weight: 600}
.notif-tabs a.on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--brand)}
.notif-count { min-width: 20px; padding: 0 6px; border-radius: 99px; font-size: 11.5px; font-weight: 700; line-height: 19px; text-align: center; background: var(--surface-2); color: var(--muted-strong)}
.notif-count.hot { background: var(--brand); color: var(--on-solid)}
.notif-bar { position: sticky; top: 72px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px;
  border-bottom: 1px solid var(--border); background: var(--surface)}
.notif-card.has-sel .notif-bar { background: color-mix(in srgb, var(--brand) 7%, var(--surface))}
.notif-bar-l, .notif-bar-r, .notif-sel-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px}
.notif-bar .icon { width: 16px; height: 16px}
.notif-bar button { display: inline-flex; align-items: center; gap: 6px}
.notif-bar button:disabled { opacity: .45; cursor: default}
.notif-all { display: inline-flex; align-items: center; gap: 9px; min-width: 112px; padding: 6px 10px 6px 8px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--heading); cursor: pointer}
.notif-all:hover { background: var(--surface-2)}
.notif-card input[type=checkbox] { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--brand); cursor: pointer}
.notif-seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--surface-2)}
.notif-seg a { padding: 4px 12px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--muted-strong); text-decoration: none}
.notif-seg a.on { background: var(--surface); color: var(--heading); box-shadow: 0 1px 2px rgb(15 23 42 / .12)}
.notif-seg a b { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 3px; border-radius: 99px; font-size: 11px; line-height: 17px; text-align: center; background: var(--brand); color: var(--on-solid)}
.notif-pick { display: grid; place-items: center; width: 34px; height: 34px; margin: -4px -4px -4px -6px; flex: none; border-radius: 9px; cursor: pointer}
.notif-pick:hover { background: var(--surface-2)}
.notif-help { margin: 12px 18px 0}
.notif-day { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 0; padding: 16px 18px 6px}
.notif-list { list-style: none; margin: 0; padding: 0 8px 6px}
.notif-item { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 10px; border-radius: 12px; transition: background .12s; cursor: default}
.notif-item + .notif-item { margin-top: 2px}
.notif-item:hover { background: var(--surface-2)}
.notif-item.sel { background: color-mix(in srgb, var(--brand) 8%, var(--surface))}
.notif-item.unread { background: color-mix(in srgb, var(--brand) 4.5%, var(--surface))}
.notif-item.unread:hover { background: color-mix(in srgb, var(--brand) 8%, var(--surface))}
.notif-item.unread::after { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand)}
.notif-ic { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 11px}
.notif-ic svg { width: 19px; height: 19px}
.notif-ic.blue { background: var(--b-blue-bg); color: var(--b-blue)} .notif-ic.green { background: var(--b-green-bg); color: var(--b-green)}
.notif-ic.amber { background: var(--b-amber-bg); color: var(--b-amber)} .notif-ic.violet { background: var(--b-purple-bg); color: var(--b-purple)}
.notif-ic.gray { background: var(--surface-2); color: var(--muted-strong)}
.notif-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: inherit}
.notif-main:hover { text-decoration: none}
.notif-main:hover .notif-text { color: var(--brand-text)}
.notif-text { color: var(--text); font-size: 14px; line-height: 1.45; overflow-wrap: anywhere}
.notif-item.unread .notif-text { color: var(--heading); font-weight: 600}
.notif-meta { color: var(--muted); font-size: 12px}
.notif-row-acts { display: flex; gap: 2px; flex: none; opacity: 0; transition: opacity .12s}
.notif-item:hover .notif-row-acts, .notif-item:focus-within .notif-row-acts, .notif-item.sel .notif-row-acts { opacity: 1}
.notif-row-acts .icon-btn { width: 34px; height: 34px; min-width: 34px; min-height: 34px; padding: 0; border: 0; background: none; border-radius: 9px; color: var(--muted-strong)}
.notif-row-acts .icon-btn .icon { width: 17px; height: 17px}
.notif-row-acts .icon-btn:hover { background: var(--surface); color: var(--brand-text); box-shadow: 0 0 0 1px var(--border)}
.notif-row-acts .icon-btn.del:hover { color: var(--danger)}
.notif-card .filters { padding: 0 18px 16px}
.notif-card .empty { margin: 24px 18px}
@media (hover: none), (max-width: 760px) { .notif-row-acts { opacity: 1} }
@media (max-width: 760px) {
  .notif-bar { padding: 10px 12px} .notif-sel-acts button { padding-inline: 9px}
  .notif-list { padding: 0 4px 4px} .notif-item { gap: 10px; padding: 10px 8px; align-items: flex-start}
  .notif-ic { width: 34px; height: 34px} .notif-day { padding: 14px 12px 6px} .notif-bar { top: 64px}
  .notif-bar-l, .notif-bar-r { width: 100%} .notif-bar-r { justify-content: space-between}
  .notif-row-acts { flex-direction: column} .notif-row-acts .icon-btn { width: 32px; height: 32px; min-width: 32px; min-height: 32px}
}
.campaign-body { white-space: pre-wrap; font: inherit; margin: 8px 0 0; color: var(--text)}

/* ── Hazır teklif paketleri ────────────────────────────────────────── */
.lib-sectors { flex-wrap: wrap; margin-bottom: 14px}
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 16px}
.lib-kit { display: flex; flex-direction: column; gap: 8px}
.lib-kit .lib-use { margin-top: auto; display: grid; gap: 6px}

/* ── Oyunlaştırma (gamify.py) ─────────────────────────────────────────── */
.game-emoji { font-size: 26px; line-height: 1}
.game-top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px}
.game-streak { display: flex; gap: 12px; align-items: center; margin: 0}
.game-streak b { display: block; font-size: 22px}
.game-summary { font-size: 16px; line-height: 1.6; margin: 0}
.game-badges { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px}
.game-badges li { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: 12px}
.game-badges li.locked { opacity: .55}
.game-badges li.got { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); background: color-mix(in srgb, var(--brand) 6%, transparent)}
.game-badge-list, .game-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px}
.game-badge-list li { display: grid; grid-template-columns: 36px 1fr; column-gap: 8px; align-items: center}
.game-badge-list li .small { grid-column: 2}
.game-points li { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 6px 0}
tr.game-me td { font-weight: 600; background: color-mix(in srgb, var(--brand) 7%, transparent)}
.game-empty { padding: 16px; margin: 0}
.game-card { display: flex; gap: 14px; align-items: center; flex-wrap: wrap}
.game-card .game-pill { display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 999px; background: var(--soft, rgba(0,0,0,.04)); font-weight: 600; text-decoration: none; color: inherit}
@media (max-width: 760px) { .game-top { grid-template-columns: 1fr} }
.confetti-piece { position: fixed; top: -12px; width: 9px; height: 14px; z-index: 9999; pointer-events: none; border-radius: 2px;
  animation: confetti-fall 2.6s ease-in forwards}
@keyframes confetti-fall { to { transform: translateY(105vh) rotate(720deg); opacity: .9} }
@media (prefers-reduced-motion: reduce) { .confetti-piece { display: none} }

/* Satır içi bağlantılar yalnız renkle ayrışmasın (WCAG 1.4.1) */
.meta a, .details a, p a:not(.btn) { text-decoration: underline; text-underline-offset: 2px}

/* Sayfa başlığı: düğmeler çoksa başlık sıkışmasın, düğmeler alt satıra geçsin (tablette "Görevler" harf harf kırılıyordu) */
.page-heading { flex-wrap: wrap}
.page-heading > div:first-child { flex: 1 1 280px}
.page-heading .actions { flex-shrink: 1; max-width: 100%; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end}
.page-heading h1 { overflow-wrap: normal; word-break: normal}
@media (max-width: 1100px) { .page-heading .actions { flex-basis: 100%; justify-content: flex-start} }

/* Tablolar: numara ve tutar bölünmesin; sağa kaydırılabilen tabloda sağ kenarda gölge ipucu */
td.num, th.num, .num, .money, .doc-no, .amount { white-space: nowrap}
td a[href^="/quotes/"], td a[href^="/orders/"], td a[href^="/invoices/"] { white-space: nowrap}
.table-wrap { background:
  linear-gradient(90deg, var(--surface) 30%, transparent) left / 24px 100% no-repeat local,
  linear-gradient(270deg, var(--surface) 30%, transparent) right / 24px 100% no-repeat local,
  radial-gradient(farthest-side at 0 50%, rgb(0 0 0 / .16), transparent) left / 10px 100% no-repeat scroll,
  radial-gradient(farthest-side at 100% 50%, rgb(0 0 0 / .16), transparent) right / 10px 100% no-repeat scroll}
.metric b, .kpi b, .stat b { white-space: nowrap}

/* Kaydırılabilir sekme şeritleri: sağ kenarda solma (daha fazla sekme olduğu belli olsun) */
@media (max-width: 1100px) {
  .tabs-scroll, .report-tabs, .settings-tabs, nav.tabs { -webkit-mask-image: linear-gradient(90deg, var(--inverse) 88%, transparent); mask-image: linear-gradient(90deg, var(--inverse) 88%, transparent)}
}

/* Telefonda kart dizileri (müşteri kartı, cari işlemleri) yana kaydırılmaz, alt alta dizilir: içerik ve formlar kesilmesin */
@media (max-width: 760px) {
  .cx-track { flex-direction: column; overflow: visible; scroll-snap-type: none}
  .cx-track > .card { flex: 1 1 auto; width: 100%}
  .cx-nav, .cx-pos { display: none}
}
/* Dar ekranda yan yana form alanları tek sütun */
@media (max-width: 480px) {
  .row { flex-direction: column; align-items: stretch}
  .row > * { width: 100%; min-width: 0}
  input[type=date], select { min-width: 0; width: 100%}
}
.karne-me { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px}
.karne-me .card { display: flex; flex-direction: column; gap: 4px; margin: 0}
.karne-me b { font-size: 22px}

/* Üst çubuk yol göstergesi: dar ekranda sadece bulunulan sayfa, tek satırda kısaltılır */
.breadcrumb { min-width: 0; white-space: nowrap; overflow: hidden}
.breadcrumb > * { white-space: nowrap}
.breadcrumb > :last-child { overflow: hidden; text-overflow: ellipsis; min-width: 0}
@media (max-width: 1100px) { .breadcrumb > :not(:last-child) { display: none} }
.chip-more { display: inline-block; position: relative}
.chip-more > summary { cursor: pointer; list-style: none}
.chip-more > summary::-webkit-details-marker { display: none}
.chip-more[open] .chip-more-list { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-left: 6px; vertical-align: middle}
/* Uzun detay sayfalarında bölüm şeridi (telefon ve tablet) */
.jump-nav { display: none}
@media (max-width: 1100px) {
  .jump-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; position: sticky; top: 56px; z-index: 5; margin: 0 -16px 12px; padding: 8px 16px;
    background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px)}
  .jump-nav::-webkit-scrollbar { display: none}
  .jump-nav a { flex: none; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-size: 13.5px; font-weight: 600; color: var(--text); text-decoration: none}
  :target { scroll-margin-top: 120px}
}
/* Telefonda pano: her seferinde tam bir sütun, üstte sütun şeridi (yarım sütunlar okunmuyordu) */
.board-tabs { display: none}
@media (max-width: 760px) {
  .board-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 10px; padding: 0 16px}
  .board-tabs::-webkit-scrollbar { display: none}
  .board-tabs a { flex: none; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-size: 13.5px; font-weight: 600; color: var(--text); text-decoration: none}
  .board { scroll-snap-type: x mandatory; grid-auto-columns: calc(100% - 12px)}
  .board > .board-col { scroll-snap-align: start}
}
.cmsg-more { display: inline-block; position: relative}
.cmsg-more > summary { list-style: none; cursor: pointer; padding: 0 6px}
.cmsg-more > summary::-webkit-details-marker { display: none}

/* ── Giriş ekranları v3: sosyal giriş, zengin tanıtım paneli, güven satırı ───────────── */
.auth-v3 .auth-story { background: radial-gradient(700px 480px at -10% -10%, rgba(88,128,255,.6), transparent 65%), radial-gradient(600px 460px at 110% 110%, rgba(140,100,255,.45), transparent 65%), linear-gradient(160deg, var(--s-blue), var(--s-blue)); position: relative; overflow: hidden}
.auth-v3 .auth-story::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg, transparent, var(--inverse) 30%, var(--inverse) 70%, transparent); pointer-events: none}
.auth-v3 .auth-story > * { position: relative; z-index: 1}
.auth-v3 .auth-story-copy h2 { font-weight: 700; letter-spacing: -.035em; line-height: 1.08}
.auth-v3 .auth-preview { max-width: 440px; padding: 16px 18px}
.ap-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 10px}
.ap-kpis div { background: rgba(255,255,255,.07); border-radius: 10px; padding: 9px 10px}
.ap-kpis small { display: block; font-size: 10.5px; color: var(--b-blue-bg)}
.ap-kpis b { display: block; color: var(--on-solid); font-size: 15px; margin-top: 2px; white-space: nowrap}
.ap-kpis i { font-style: normal; font-size: 11px; color: var(--b-blue-bg)} .ap-kpis i.up { color: var(--b-green)} .ap-kpis i.up::before { content: "▲ "; font-size: 8px}
.ap-chart { display: block; width: 100%; height: 56px; margin: 4px 0 12px}
.auth-trust { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 12px; color: var(--b-blue-bg)}
.auth-trust span { display: inline-flex; align-items: center; gap: 6px} .auth-trust svg { width: 14px; height: 14px; color: var(--b-green-bg)}
.auth-v3 .auth-form-wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px}
.auth-v3 .card { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 24px 60px -28px rgba(30,50,110,.35); padding: 36px 36px 28px}
.auth-v3 .card h1 { font-size: 26px !important; line-height: 1.25 !important; letter-spacing: -.03em; margin: 0 0 6px}
.auth-v3 .card > .mute { margin: 0 0 22px}
.auth-v3 .auth-form input { min-height: 46px; border-radius: 11px}
.auth-v3 .auth-submit { min-height: 48px; border-radius: 11px; font-size: 15.5px; font-weight: 600}
.auth-social { display: grid; gap: 10px}
.auth-provider { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; border-radius: 11px; background: var(--surface); border: 1px solid var(--border); color: var(--heading); font-weight: 600; text-decoration: none; transition: border-color .15s, background .15s, box-shadow .15s}
.auth-provider:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); background: var(--surface-2); box-shadow: 0 6px 16px -10px rgba(30,50,110,.4)}
.auth-provider svg { width: 20px; height: 20px; flex: none} .auth-provider svg.apple { color: var(--heading)}
.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px}
.auth-steps { list-style: none; padding: 0; margin: 4px 0 16px; display: grid; gap: 10px}
.auth-steps li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px}
.auth-steps b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 12px; background: color-mix(in srgb, var(--brand) 12%, var(--surface)); color: var(--brand-text)}
.auth-v3 .auth-badge svg { width: 26px; height: 26px}
.auth-legal { color: var(--muted); margin: 0} .auth-legal a { color: inherit}
@media (max-width: 820px) { .auth-trust { display: none} .auth-v3 .card { padding: 26px 20px 22px; border-radius: 16px} .auth-row { grid-template-columns: 1fr; gap: 0} }
/* masaüstünde giriş ekranı tek ekrana sığar, sayfa kaymaz; uzun form kendi içinde kayar */
@media (min-width: 821px) {
  .auth-v3 { height: 100dvh; min-height: 0; overflow: hidden}
  .auth-v3 .auth-story { height: 100dvh; overflow: hidden; display: flex; flex-direction: column; padding-top: 36px; padding-bottom: 28px}
  .auth-v3 .auth-story-copy { padding: 20px 0}
  .auth-v3 .auth-form-wrap { height: 100dvh; overflow-y: auto; justify-content: safe center; padding-top: 24px; padding-bottom: 24px}
}
@media (min-width: 821px) and (max-height: 860px) {
  .auth-v3 .auth-story-copy h2 { font-size: clamp(34px, 3.4vw, 48px); margin-bottom: 12px}
  .auth-v3 .auth-story-copy > p { margin-bottom: 14px}
  .auth-v3 .auth-points { margin-bottom: 18px; gap: 7px}
  .auth-v3 .ap-chart { display: none}
}
@media (min-width: 821px) and (max-height: 720px) { .auth-v3 .auth-preview { display: none} }

/* ── Kuki AI: menünün en üstünde ayrı, vurgulu giriş ─────────────────── */
.nav a.nav-ai { display: flex; align-items: center; gap: 10px; min-height: 0; margin: 2px 0 14px; padding: 10px 12px; border-radius: 12px;
  color: var(--on-solid); text-decoration: none; background: linear-gradient(135deg, var(--brand), var(--brand));
  box-shadow: 0 8px 20px -10px rgb(43 47 158 / .7), inset 0 1px 0 rgb(255 255 255 / .18); border: 0}
.nav a.nav-ai:hover { filter: brightness(1.12); color: var(--on-solid); background: linear-gradient(135deg, var(--brand), var(--brand))}
.nav a.nav-ai.active { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px #6f73e0, 0 8px 20px -10px rgb(43 47 158 / .7)}
.nav a.nav-ai.active::after { display: none}
.nav-ai-ic { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; background: rgb(255 255 255 / .18)}
.nav a.nav-ai .nav-ai-ic svg { width: 22px; height: 22px; color: var(--on-solid); opacity: 1; stroke: none}
.nav-ai-txt { display: grid; line-height: 1.2; min-width: 0}
.nav-ai-txt b { font-size: 14px; font-weight: 700; letter-spacing: -.01em}
.nav-ai-txt small { font-size: 11.5px; font-weight: 500; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis}
.eb-ai { color: var(--sec-ai)}
@media (min-width:1024px) {
  [data-rail] .nav a.nav-ai { padding: 0; margin: 2px 0 10px; min-height: 40px; justify-content: center; border-radius: 10px}
  [data-rail] .nav-ai-txt { display: none}
  [data-rail] .nav-ai-ic { width: 40px; height: 40px; background: none}
}

/* ── Tasarım düzeltmeleri (ekran incelemesi) ─────────────────────────── */
/* Rozet şeridi: az bilgi için tam genişlikte kocaman kart olmasın */
.game-card { padding: 8px 10px !important; gap: 8px; box-shadow: none}
.game-card .game-pill { padding: 5px 11px; font-size: 13px}
/* Müşteri kartı: kapalıyken "Ziyaret kaydet" tek başına kart içinde durmasın, düğme olarak görünsün */
.visit-box:not([open]) { background: none; border: 0; box-shadow: none; padding: 0; margin: 0 0 14px}
/* Zaman akışı: "Özel" etiketi başlığın yanında, kişi ve saat sağda */
.feed-head > .ctag { margin-right: auto}
/* Telefon: görev listesi kompakt satırlar (ekrana 3 yerine ~7 görev sığsın) */
@media (max-width:600px) {
  .task-table table.task-list tr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 12px 14px}
  .task-table table.task-list td { width: auto}
  .task-table table.task-list td[data-label]:before { content: none}
  .task-table table.task-list td:first-child { flex: 1 0 100%; padding: 0 0 2px; border: 0}
  .task-table table.task-list td[data-label="Sorumlu"] { margin-left: auto; font-size: 12.5px}
  .task-table table.task-list td[data-label="Bitiş"] { font-size: 12.5px; color: var(--muted)}
  .task-table table.task-list td[data-label="Bitiş"] .inline-err { display: inline; margin-left: 4px}
  /* teklif listesi siparişlerdeki kompakt düzeni kullanır; tutar öne çıksın */
  .task-table.ord-table td[data-label="Tutar (KDV dahil)"] { order: 1; color: var(--text); font-size: 13px; font-weight: 600}
}

/* ── Kuki AI: sohbet sekmeleri (en fazla 5) ─────────────────────────── */
.asst-chats { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px solid var(--border)}
.asst-chat { display: inline-flex; align-items: center; max-width: 220px; border: 1px solid var(--border); border-radius: 99px; background: var(--surface)}
.asst-chat form { margin: 0; min-width: 0; display: flex}
.asst-chat-open { border: 0; background: none; min-height: 32px; padding: 0 4px 0 12px; font-size: 13px; font-weight: 500; color: var(--text);
  max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; box-shadow: none}
.asst-chat-x { border: 0; background: none; width: 26px; height: 26px; min-height: 26px; margin-right: 3px; border-radius: 99px; color: var(--muted); box-shadow: none}
.asst-chat-x:hover { background: var(--surface-2); color: var(--text)}
.asst-chat.on { border-color: var(--sec-ai); background: color-mix(in srgb, var(--sec-ai) 10%, var(--surface))}
.asst-chat.on .asst-chat-open { color: var(--heading); font-weight: 600}
.asst-chat-new { min-height: 32px; border-radius: 99px; font-size: 13px; padding: 0 12px}
.asst-chat-count { margin-left: auto}
@media (max-width: 640px) { .asst-chats { flex-wrap: nowrap; overflow-x: auto} .asst-chat, .asst-chat-new { flex: none} }
.asst-typing .bubble { padding: 12px 16px}
.asst-typing .dots { display: inline-flex; gap: 4px}
.asst-typing .dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: asst-dot 1.1s infinite ease-in-out}
.asst-typing .dots i:nth-child(2) { animation-delay: .15s} .asst-typing .dots i:nth-child(3) { animation-delay: .3s}
@keyframes asst-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0)} 40% { opacity: 1; transform: translateY(-3px)} }
@media (prefers-reduced-motion: reduce) { .asst-typing .dots i { animation: none; opacity: .6} }
/* Kuki AI: lacivert, dolu ikon; sayfa başlığı ikonu ve karşılama ikonu da aynı renkte */
.sec-ai .page-heading .page-ic { background: linear-gradient(135deg, var(--brand), var(--brand)); color: var(--on-solid); border-color: transparent}
.sec-ai .page-heading .page-ic svg { width: 28px; height: 28px; stroke: none}
.asst-ic { background: linear-gradient(135deg, var(--brand), var(--brand)); color: var(--on-solid)}
.nav a.nav-ai .nav-ai-ic svg.ai-spark, .nav a.nav-ai.active .nav-ai-ic svg.ai-spark { color: var(--on-solid); fill: var(--surface); stroke: none; opacity: 1}

/* ── Giriş / kayıt (sürüm 4): arkada bulanık panel, solda Kuki AI'ın karşılaması, sağda form kartı ───────── */
.auth-v4 { position: relative; display: block; min-height: 100dvh; padding: 0; overflow: hidden; background: var(--s-blue)}
.auth-v4 .av4-bg { position: absolute; inset: -40px; background: url(/static/img/auth-bg.webp) center top / cover; filter: blur(9px) saturate(1.1); transform: scale(1.04)}
[data-theme=dark] .auth-v4 .av4-bg { background-image: url(/static/img/auth-bg-koyu.webp)}
.auth-v4::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(120deg, rgb(14 19 44 / .9), rgb(31 43 107 / .75) 50%, rgb(100 72 220 / .6))}
.av4-wrap { position: relative; z-index: 2; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: 56px; align-items: center;
  max-width: 1180px; margin: 0 auto; padding: 40px 32px}
.auth-v4:has(.auth-row) .av4-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 540px)}
.av4-story { color: var(--b-blue-bg); display: flex; flex-direction: column; gap: 30px}
.auth-v4 .auth-wordmark { color: var(--on-solid); text-decoration: none}
.auth-v4 .auth-wordmark span { color: var(--b-blue-bg)}
.av4-chat { display: grid; gap: 12px; max-width: 520px}
.av4-who { display: flex; align-items: center; gap: 11px; margin-bottom: 4px}
.av4-av { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: var(--on-solid); background: linear-gradient(135deg, var(--s-blue), var(--s-purple)); box-shadow: 0 10px 24px -8px #7c5cff}
.av4-av svg { width: 20px; height: 20px}
.av4-who b { display: block; color: var(--on-solid); font-size: 16px}
.av4-who small { display: flex; align-items: center; gap: 6px; color: var(--b-green-bg); font-size: 12.5px; font-weight: 600}
.av4-who small::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--s-green); animation: av4Live 1.6s ease-in-out infinite}
@keyframes av4Live { 50% { box-shadow: 0 0 0 5px rgb(95 212 154 / .22)} }
.av4-b { justify-self: start; max-width: 92%; margin: 0; padding: 13px 17px; border-radius: 18px 18px 18px 6px; background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .16);
  backdrop-filter: blur(14px); color: var(--b-blue-bg); font-size: 15px; line-height: 1.5; animation: av4In .5s cubic-bezier(.2, .8, .2, 1) both}
.av4-b:nth-child(3) { animation-delay: .5s} .av4-b:nth-child(4) { animation-delay: 1.1s} .av4-b:nth-child(5) { animation-delay: 1.7s}
@keyframes av4In { from { opacity: 0; transform: translateY(10px)} }
.av4-b.big { padding: 0 0 6px; background: none; border: 0; backdrop-filter: none; color: var(--on-solid); font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; letter-spacing: -.03em; line-height: 1.15}
.av4-b.me { justify-self: end; background: var(--surface); color: var(--b-blue); font-weight: 600; border: 0; border-radius: 18px 18px 6px 18px}
.av4-list { display: grid; gap: 7px; margin-top: 10px}
.av4-list span { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 11px; background: rgb(255 255 255 / .08); font-size: 14px}
.av4-list em { margin-left: auto; padding: 2px 9px; border-radius: 99px; font-style: normal; font-size: 12px; font-weight: 700; white-space: nowrap; background: rgb(143 168 255 / .2); color: var(--b-blue-bg)}
.av4-list em.r { background: rgb(255 139 128 / .2); color: var(--b-red-bg)} .av4-list em.g { background: rgb(95 212 154 / .2); color: var(--b-green-bg)}
.av4-typing { justify-self: start; display: flex; gap: 5px; padding: 14px 16px; border-radius: 18px 18px 18px 6px; background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .16); animation: av4In .5s 1.4s both}
.av4-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--b-blue-bg); animation: av4Dot 1s infinite}
.av4-typing i:nth-child(2) { animation-delay: .15s} .av4-typing i:nth-child(3) { animation-delay: .3s}
@keyframes av4Dot { 50% { opacity: .35; transform: translateY(-3px)} }
.auth-v4 .auth-trust { color: var(--b-blue-bg)}
.auth-v4 .auth-form-wrap { display: flex; flex-direction: column; align-items: stretch; gap: 16px; padding: 0; background: none}
.auth-v4 .card { width: 100%; max-width: none; margin: 0; padding: 34px 34px 28px; border: 0; border-radius: 24px; background: var(--surface); box-shadow: 0 50px 100px -30px rgb(0 0 0 / .7)}
.auth-v4 .card h1 { font-size: 26px; letter-spacing: -.03em; margin: 0 0 4px}
.auth-v4 .card input:not([type=checkbox]):not([type=radio]) { min-height: 46px; border-radius: 12px}
.auth-v4 .card input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent)}
.auth-v4 .auth-social { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr))}
.auth-v4 .auth-submit { min-height: 48px; border-radius: 12px; font-size: 15.5px; box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--brand) 80%, transparent)}
.auth-v4 .auth-legal { text-align: center; color: var(--b-blue-bg)}
.pw-rules { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px; margin-top: 9px}
.pw-rules span { min-height: 0 !important; height: auto; line-height: 1.5}
.pw-rules span { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--muted-strong); transition: background .2s, color .2s}
.pw-rules span::before { content: "•"}
.pw-rules span.ok { background: color-mix(in srgb, var(--s-green) 14%, var(--surface)); color: var(--b-green)}
.pw-rules span.ok::before { content: "✓"}
@media (max-width: 960px) {
  .av4-wrap, .auth-v4:has(.auth-row) .av4-wrap { grid-template-columns: 1fr; gap: 20px; padding: 22px 14px 28px; align-content: start}
  .av4-story { gap: 14px}
  .av4-chat > :not(.av4-who):not(.big), .auth-v4 .auth-trust { display: none}
  .av4-who { display: none}
  .av4-b.big { font-size: 22px; padding: 0}
  .auth-v4 .card { padding: 24px 18px 20px; border-radius: 18px}
}
@media (prefers-reduced-motion: reduce) { .av4-b, .av4-typing, .av4-typing i, .av4-who small::before { animation: none} }
/* açık temada giriş kartı saf beyaz (panelin krem yüzeyi koyu zeminde sarımsı duruyordu); koyu tema aynı kalır */
[data-theme=light] .auth-v4 .card, :root:not([data-theme]) .auth-v4 .card { background: var(--surface)}
[data-theme=light] .auth-v4 .card input:not([type=checkbox]):not([type=radio]), :root:not([data-theme]) .auth-v4 .card input:not([type=checkbox]):not([type=radio]) { background: var(--surface)}
[data-theme=light] .auth-v4 .card .check, :root:not([data-theme]) .auth-v4 .card .check { background: var(--surface-2)}

/* ── Başarılarım (yeniden) ───────────────────────────────────────────────── */
.ach-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: 26px 28px; margin-bottom: 18px; border-radius: 20px; color: var(--b-blue-bg);
  background: radial-gradient(420px 260px at 0% 0%, rgb(91 127 240 / .55), transparent 70%), radial-gradient(380px 260px at 100% 100%, rgb(138 92 255 / .5), transparent 70%), var(--s-blue);
  box-shadow: 0 24px 50px -30px rgb(23 32 74 / .8)}
.ach-me { display: flex; align-items: center; gap: 16px}
.ach-av { display: grid; place-items: center; width: 64px; height: 64px; flex: none; border-radius: 18px; font-weight: 700; font-size: 22px; color: var(--on-solid);
  background: linear-gradient(135deg, var(--s-blue), var(--s-purple)); box-shadow: 0 0 0 4px rgb(255 255 255 / .12)}
.ach-av.sm { width: 40px; height: 40px; border-radius: 12px; font-size: 14px; box-shadow: none}
.ach-month { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--b-blue-bg)}
.ach-points { display: block; color: var(--on-solid); font-size: 40px; line-height: 1.1; letter-spacing: -.03em}
.ach-points small { font-size: 16px; font-weight: 600; color: var(--b-blue-bg); letter-spacing: 0}
.ach-rank { font-size: 14px; color: var(--b-blue-bg)} .ach-rank b { color: var(--on-solid)}
.ach-next { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .14)}
.ach-next .small { color: var(--b-blue-bg)} .ach-next b { display: block; color: var(--on-solid); font-size: 16px; margin: 1px 0 7px}
.ach-next-ic { display: grid; place-items: center; width: 48px; height: 48px; flex: none; font-size: 26px; border-radius: 14px; background: rgb(255 255 255 / .12)}
.ach-bar { height: 8px; border-radius: 99px; background: rgb(255 255 255 / .16); overflow: hidden; margin-bottom: 6px}
.ach-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--s-green), var(--s-green)); transition: width .6s ease}
.ach-bar.sm { height: 6px; background: var(--surface-2); margin: 6px 0 4px}
.ach-bar.sm i { background: linear-gradient(90deg, var(--brand), var(--s-purple))}
.ach-stats { display: flex; gap: 10px}
.ach-stats div { display: grid; justify-items: center; min-width: 86px; padding: 10px 12px; border-radius: 14px; background: rgb(255 255 255 / .08); text-align: center}
.ach-stats span { font-size: 20px} .ach-stats b { color: var(--on-solid); font-size: 20px; line-height: 1.2} .ach-stats small { color: var(--b-blue-bg); font-size: 11.5px; line-height: 1.3}
.ach-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; margin-bottom: 18px; align-items: start}
.ach-grid > .card { margin: 0}
.ach-break ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px}
.ach-break li { display: flex; gap: 12px; align-items: center}
.ach-k { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 10px; background: var(--surface-2); font-size: 17px}
.ach-row { display: flex; align-items: baseline; gap: 10px; font-size: 14px; color: var(--heading)}
.ach-row span:first-child { flex: 1} .ach-row b { min-width: 34px; text-align: right}
.ach-board h2 { margin-bottom: 0}
.ach-podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; align-items: end; margin: 14px 0 4px}
.ach-podium > div { position: relative; display: grid; justify-items: center; gap: 4px; padding: 14px 8px 12px; border-radius: 14px 14px 6px 6px; background: var(--surface-2); text-align: center}
.ach-podium .p1 { padding-top: 26px; background: linear-gradient(180deg, color-mix(in srgb, var(--s-amber) 22%, var(--surface)), var(--surface-2))}
.ach-podium .p2 { padding-top: 18px}
.ach-podium .me { box-shadow: inset 0 0 0 2px var(--brand)}
.ach-podium b { color: var(--heading); font-size: 14px} .ach-podium small { color: var(--muted); font-size: 12px}
.ach-podium i { position: absolute; top: -12px; font-style: normal; font-size: 22px}
.ach-rest { margin: 10px 0 0; padding: 0 0 0 22px; display: grid; gap: 6px; font-size: 14px}
.ach-rest li span { display: inline-block; min-width: 70%} .ach-rest li.me { color: var(--brand-text); font-weight: 600}
.ach-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px}
.ach-badges { list-style: none; margin: 14px 0 16px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px}
.ach-badges li { display: flex; flex-direction: column; gap: 3px; padding: 16px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface)}
.ach-badges li b { color: var(--heading); font-size: 15px} .ach-badges li b em { font-style: normal; color: var(--brand-text); font-size: 13px}
.ach-medal { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 8px; border-radius: 50%; font-size: 26px; background: var(--surface-2)}
.ach-badges li.got { border-color: color-mix(in srgb, var(--s-amber) 45%, var(--border)); background: linear-gradient(180deg, color-mix(in srgb, var(--s-amber) 10%, var(--surface)), var(--surface))}
.ach-badges li.got .ach-medal { background: radial-gradient(circle at 35% 30%, var(--b-amber-bg), var(--s-amber) 70%); box-shadow: 0 8px 18px -8px rgb(214 150 20 / .7)}
.ach-badges li.locked .ach-medal { filter: grayscale(1); opacity: .55}
.ach-date { margin-top: auto; padding-top: 6px; color: var(--b-amber); font-weight: 600}
@media (max-width: 1100px) { .ach-hero { grid-template-columns: 1fr; gap: 16px} .ach-stats div { flex: 1} }
@media (max-width: 860px) { .ach-grid { grid-template-columns: 1fr} .ach-badges { grid-template-columns: 1fr 1fr} .ach-hero { padding: 20px 18px} .ach-points { font-size: 32px} }
.ach-break .grow, .ach-next .grow { flex: 1; min-width: 0}
.notif-card > * { margin-top: 0; margin-bottom: 0}
.notif-bar { padding: 10px 14px}
.notif-bar .notif-sel-acts { padding-left: 8px; border-left: 1px solid var(--border)}
@media (max-width: 760px) {
  .notif-bar .lbl { display: none}
  .notif-bar button { padding-inline: 10px; min-width: 38px; justify-content: center}
  .notif-bar-l, .notif-bar-r { width: auto} .notif-bar { gap: 8px}
  .notif-all { min-width: 0}
}
.notif-card { display: block}
.notif-bar { position: relative; top: auto}
.ach-medal { position: relative}
.ach-lock { position: absolute; right: -4px; bottom: -4px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 11px; font-style: normal; background: var(--surface); box-shadow: 0 1px 3px rgb(15 23 42 / .2); filter: none}
.ach-badges li.locked .ach-medal { filter: none; opacity: 1}
.ach-badges li.locked .ach-medal { color: transparent; text-shadow: 0 0 0 rgb(120 130 150 / .55)}

/* Müşteri listesi: ad sütunu daralıp 3 satıra kırılmasın; risk yoksa boş çubuk yerine "Sağlıklı" */
.cust-table td:has(> .row-title) { min-width: 250px}
.cust-table .row-title { white-space: nowrap}
@media (max-width: 760px) { .cust-table td:has(> .row-title) { min-width: 0} .cust-table .row-title { white-space: normal} }
.health-ok { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap;
  background: color-mix(in srgb, var(--s-green) 12%, var(--surface)); color: var(--b-green)}
.health-ok::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor}

/* Ayarlar: içerik sola yaslı ve kartlar farklı genişlikteydi; tek genişlikte ortalı */
body[data-page="/settings"] .content .card, body[data-page="/settings"] .settings-tabs,
body[data-page="/settings"] #company, body[data-page="/settings"] #schedule, body[data-page="/settings"] #more, body[data-page="/settings"] #permissions,
body[data-page="/settings"] #reminders, body[data-page="/settings"] #holidays, body[data-page="/settings"] #delivery { max-width: none !important}

/* Üst çubuktaki sayaç sade: nokta, süre, Durdur. Görevin adı üzerine gelince açılır; uzun süre açık kalan sayacın uyarısı hep görünür */
.topbar .timer-chip:not(.visit-chip):not(.long) .timer-label { display: none}
.topbar .timer-chip .timer-task { display: inline-block; max-width: 0; overflow: hidden; white-space: nowrap; vertical-align: bottom; opacity: 0;
  transition: max-width .25s ease, opacity .2s}
.topbar .timer-chip:hover .timer-task, .topbar .timer-chip:focus-within .timer-task { max-width: 220px; opacity: 1}
.topbar .timer-chip { gap: 7px}
.topbar .timer-chip button.sm { min-height: 26px; padding: 2px 10px; font-size: 12.5px}

/* ── İşe alım (recruit.py) ───────────────────────────────────────────────── */
.rc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px}
@media (max-width: 640px) { .rc-row { grid-template-columns: 1fr; gap: 0} }
.rc-hint { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; padding: 14px 18px; border-color: color-mix(in srgb, var(--brand) 30%, var(--border)); background: color-mix(in srgb, var(--brand) 5%, var(--surface))}
.rc-jobs { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 10px; margin-bottom: 6px; scrollbar-width: thin}
.rc-job { flex: none; display: grid; gap: 3px; min-width: 190px; max-width: 260px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none}
.rc-job b { color: var(--heading); font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis}
.rc-job:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); text-decoration: none}
.rc-job.on { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: color-mix(in srgb, var(--brand) 5%, var(--surface))}
.rc-job .small { display: inline-flex; align-items: center; gap: 6px; color: var(--muted)}
.rc-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted)}
.rc-job.st-open .rc-dot { background: var(--s-green)} .rc-job.st-closed .rc-dot { background: var(--s-amber)}
.rc-job.rc-new { border-style: dashed}
.rc-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 4px 0 14px}
.rc-tools input[type=search] { flex: 1 1 260px; max-width: 380px; margin: 0}
.rc-tools .check { margin: 0}
@media (min-width: 761px) { .board.rc-board { grid-auto-columns: minmax(196px, 1fr); gap: 12px} .board.rc-board > .board-col { flex: 1 0 196px} }
.rc-board .board-col { min-height: 200px}
.rc-card { display: grid; gap: 4px}
.rc-card .t { font-weight: 600; color: var(--heading)}
.rc-stars { color: var(--b-amber); letter-spacing: 1px}
.rc-icons { display: flex; gap: 6px} .rc-icons span { padding: 0 6px; border-radius: 5px; background: var(--surface-2); color: var(--muted-strong); font-weight: 600}
.rc-move select { width: 100%; min-height: 30px; height: 30px; padding: 2px 8px; font-size: 12.5px; margin-top: 4px}
.rc-empty { text-align: center; padding: 40px 24px} .rc-empty p { max-width: 560px; margin-inline: auto}
.rc-steps { list-style: none; margin: 16px 0 6px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px}
.rc-steps form { margin: 0}
.rc-step { width: 100%; display: grid; justify-items: center; gap: 6px; padding: 10px 4px; border: 0; background: none; color: var(--muted); font-size: 12.5px; font-weight: 600; cursor: pointer; border-radius: 10px}
.rc-step:hover { background: var(--surface-2)}
.rc-step i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-style: normal; font-size: 13px; border: 2px solid var(--border-strong); background: var(--surface)}
.rc-steps li.done .rc-step { color: var(--heading)} .rc-steps li.done .rc-step i { border-color: var(--brand); background: var(--brand-tint); color: var(--brand-text)}
.rc-steps li.on .rc-step { color: var(--brand-text)} .rc-steps li.on .rc-step i { border-color: var(--brand); background: var(--brand); color: var(--on-solid); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent)}
.rc-reject { margin-top: 10px} .rc-reject summary { cursor: pointer; color: var(--muted-strong); font-size: 13.5px}
.rc-rejected { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--surface-2)}
.rc-hire { margin-top: 14px; padding: 14px; border-radius: 12px; background: color-mix(in srgb, var(--s-green) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--s-green) 25%, var(--border))}
.rc-cover { white-space: pre-line; margin: 0}
.rc-noteform { display: grid; gap: 8px; justify-items: start; margin-bottom: 16px} .rc-noteform textarea { width: 100%}
.rc-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px}
.rc-timeline li { display: flex; gap: 12px}
.rc-tl-dot { flex: none; width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--border-strong)}
.rc-timeline .k-stage .rc-tl-dot { background: var(--brand)} .rc-timeline .k-note .rc-tl-dot { background: var(--s-amber)}
.rc-rate { display: flex; gap: 4px; margin-bottom: 6px}
.rc-rate button { border: 0; background: none; padding: 0 2px; min-height: 0; font-size: 26px; line-height: 1; color: var(--border-strong); cursor: pointer}
.rc-rate button.on { color: var(--b-amber)} .rc-rate button:hover { transform: scale(1.1)}
.rc-status { display: flex; flex-wrap: wrap; gap: 8px}
.rc-li { display: inline-flex; align-items: center; gap: 8px} .rc-li b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 5px; background: var(--s-blue); color: var(--on-solid); font-size: 12px}
@media (max-width: 760px) { .rc-steps { grid-template-columns: repeat(5, minmax(0, 1fr))} .rc-step span { font-size: 11px} }

/* ── Masraf / avans talepleri (claims.py) ────────────────────────────────── */
.claim-queue { border-color: color-mix(in srgb, var(--s-amber) 35%, var(--border))}
.claim-queue .section-head { flex-wrap: wrap; gap: 4px 12px}
.claim-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 0}
.claim-item { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--border)}
.claim-item:first-child { border-top: 0}
.claim-who { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; min-width: 0; flex: 1 1 320px}
.claim-who .small { flex-basis: 100%}
.claim-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center}
.claim-acts form.inline { display: inline-flex; gap: 6px; align-items: center; margin: 0}
.claim-acts select, .claim-acts input { margin: 0; width: auto; min-height: 32px; height: 32px; padding: 2px 30px 2px 10px; font-size: 13px}
.claim-acts input { padding-right: 10px}
.claim-reject { position: relative} .claim-reject[open] summary { display: none}
.claim-reject input { min-width: 200px}
.claim-nofile { color: var(--b-amber)}
.claim-form .view-toggle { margin-bottom: 14px}
@media (max-width: 640px) { .claim-acts { width: 100%} .claim-acts select { flex: 1; min-width: 0}
  .claim-acts form.inline:has(select) { flex: 1 1 100%} .claim-reject[open] { flex: 1 1 100%} .claim-reject input { flex: 1; min-width: 0} }

/* ── Özlük dosyası (personnel.py) ────────────────────────────────────────── */
.pf-form .card h2 { margin-bottom: 4px}
.pf-missing { margin: 8px 0 4px; padding: 8px 12px; border-radius: 10px; background: color-mix(in srgb, var(--s-amber) 10%, var(--surface)); color: var(--text)}
.pf-docs { list-style: none; margin: 10px 0 0; padding: 0}
.pf-docs li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--border)}
.pf-docs li:first-child { border-top: 0}
.pf-docs li .small { flex: 1 1 100%; order: 2}
.pf-docs li form { margin: 0 0 0 auto}
.pf-doc-t { font-weight: 600; color: var(--heading)}
.pf-docs li.st-expired .pf-doc-t { color: var(--b-red)}
.pf-upload { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border)}
.pf-upload .h-sm { margin: 0 0 4px}
.claim-hint { display: flex; text-decoration: none; color: var(--text); margin-bottom: 16px}
.claim-hint:hover { text-decoration: none; border-color: var(--brand)}
.asset-act { margin-top: 10px} .asset-act .h-sm { margin: 4px 0}

/* ── Destek talepleri (tickets.py) ───────────────────────────────────────── */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden}
.tk-table tr.tk-breached td:first-child { box-shadow: inset 3px 0 0 #dc2626}
.tk-table tr.tk-risk td:first-child { box-shadow: inset 3px 0 0 #d97706}
.tk-table td .badge { margin-left: 6px}
.tk-badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center}
.tk-thread { display: grid; gap: 12px}
.tk-msg { max-width: 86%; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2)}
.tk-msg.tk-staff { justify-self: end; background: color-mix(in srgb, var(--brand) 7%, var(--surface)); border-color: color-mix(in srgb, var(--brand) 25%, var(--border))}
.tk-msg.tk-int { justify-self: end; background: color-mix(in srgb, var(--s-amber) 9%, var(--surface)); border-color: color-mix(in srgb, var(--s-amber) 30%, var(--border)); border-style: dashed}
.tk-msg .small { margin-bottom: 4px}
.tk-contact { border: 1px solid var(--border); border-radius: 12px; padding: 4px 14px 12px; margin: 16px 0 0}
.tk-contact legend { padding: 0 6px}
.tk-ok { margin: 12px 0 0; padding: 10px 14px; border-radius: 10px; background: color-mix(in srgb, var(--s-green) 10%, var(--surface))}
@media (max-width: 640px) { .tk-msg { max-width: 100%} }
/* ── Sözleşmeler (contracts.py) ──────────────────────────────────────────── */
.ct-doc p { margin: 0 0 12px; line-height: 1.6}
.ct-hash { font-size: 12px}
.ct-done { border-color: color-mix(in srgb, var(--s-green) 40%, var(--border)); background: color-mix(in srgb, var(--s-green) 6%, var(--surface))}
.u-maxw-900px { max-width: 900px}

/* ═══════════════════════════════════════════════════════════════════════
   TASARIM SİSTEMİ v2 — tek yerde: tokenlar, zemin, başlık paneli, ana ekran,
   özet kutuları, görünüm seçici, boş durumlar, üst çubuk.
   Kural: renk/gölge/köşe değerleri buradaki tokenlardan gelir; sayfaya özel
   düzeltme bu bölüme değil, ilgili modül bölümüne yazılır.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Tokenlar ── */
.shell {                 /* başlık panelini koyulaştıran mürekkep */
  --on-panel: var(--surface);
  --r-panel: 22px; --r-bar: 16px; --r-chip: 9px;
  --tuck: 52px;                          /* bir sonraki öğenin başlık paneline binme payı */
}
/* Anlamsal tonlar: zemin + yazı çifti (kırmızı sorun, turuncu bekleyen, yeşil iyi, mavi nötr, mor izin, camgöbeği stok/hak) */
[data-tone=blue], .metric.tone-blue     { --tone-bg: var(--b-blue-bg); --tone-fg: var(--b-blue)}
[data-tone=red], .metric.tone-red       { --tone-bg: var(--b-red-bg); --tone-fg: var(--b-red)}
[data-tone=amber], .metric.tone-amber   { --tone-bg: var(--b-amber-bg); --tone-fg: var(--b-amber)}
[data-tone=purple], .metric.tone-purple { --tone-bg: var(--b-purple-bg); --tone-fg: var(--b-purple)}
[data-tone=teal], .metric.tone-teal     { --tone-bg: var(--b-teal-bg); --tone-fg: var(--b-teal)}
[data-tone=green], .metric.tone-green   { --tone-bg: var(--b-green-bg); --tone-fg: var(--b-green)}
/* Bölüm rengi ana alana taşınır (zemin geçişi ve paneller bunu kullanır) */
.main:has(> .content.sec-ai) { --sec: var(--sec-ai)}
.main:has(> .content.sec-work) { --sec: var(--sec-work)}
.main:has(> .content.sec-sales) { --sec: var(--sec-sales)}
.main:has(> .content.sec-time) { --sec: var(--sec-time)}
.main:has(> .content.sec-admin) { --sec: var(--sec-admin)}
.main:has(> .content.sec-reports) { --sec: var(--sec-reports)}
.main:has(> .content.sec-chat) { --sec: var(--sec-chat)}
.main:has(> .content.sec-me) { --sec: var(--sec-me)}
.main:has(> .content.sec-search) { --sec: var(--sec-search)}
.main:has(> .content.sec-finance) { --sec: var(--sec-finance)}

/* ── Zemin: bölüm renginde yumuşak üst geçiş, aşağı doğru açılır (sol menüye dokunulmaz) ── */
.main { background: radial-gradient(1100px 420px at 30% -60px, color-mix(in srgb, var(--sec, var(--brand)) 22%, transparent), transparent 75%),
  linear-gradient(180deg, color-mix(in srgb, var(--sec, var(--brand)) 13%, var(--page-bg)) 0, var(--page-bg) 560px) no-repeat, var(--page-bg) !important}
[data-theme=dark] .main { background: radial-gradient(1100px 420px at 30% -60px, color-mix(in srgb, var(--sec, var(--brand)) 20%, transparent), transparent 75%),
  linear-gradient(180deg, color-mix(in srgb, var(--sec, var(--brand)) 12%, var(--page-bg)) 0, var(--page-bg) 560px) no-repeat, var(--page-bg) !important}
.card, .metric { box-shadow: var(--shadow-card) !important}
.overview-label { text-transform: uppercase; font-size: 11px; color: var(--muted)}
/* Düz zeminde ölçülen kontrast düzeltmeleri */
.page-heading .eyebrow.eb { color: color-mix(in srgb, var(--sec-c) 62%, var(--heading))}
.health-ok { color: var(--b-green)}
.notice a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px}

/* ── Üst çubuk: yarı saydam; arama, kur ve düğmeler aynı beyaz dilde ── */
.topbar, [data-theme=dark] .topbar { background: color-mix(in srgb, var(--page-bg) 55%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom-color: color-mix(in srgb, var(--sec, var(--brand)) 14%, transparent)}
.topbar .global-search, .topbar .fx-chip > summary, .topbar .cmdk-btn, .topbar .icon-btn {
  background: color-mix(in srgb, var(--surface) 72%, transparent) !important; border: 1px solid color-mix(in srgb, var(--sec, var(--brand)) 14%, var(--border)) !important; box-shadow: 0 1px 2px rgb(16 24 40 / .04)}
.topbar .global-search:focus-within { background: var(--surface) !important; border-color: color-mix(in srgb, var(--sec, var(--brand)) 40%, var(--border)) !important}
.topbar .global-search input { background: transparent !important}

/* ── Başlık paneli (her sayfa) ve ana ekran paneli: bölüm renginin koyu tonu ── */
.page-heading, .dash-hero { --hc: var(--sec, var(--brand)); color: var(--b-blue-bg);
  background: radial-gradient(560px 240px at 100% 0, color-mix(in srgb, var(--hc) 55%, transparent), transparent 70%),
    linear-gradient(135deg, color-mix(in srgb, var(--hc) 52%, var(--panel-ink)), color-mix(in srgb, var(--hc) 78%, var(--panel-ink))) !important;
  box-shadow: 0 24px 60px -28px color-mix(in srgb, var(--hc) 75%, transparent), 0 2px 6px -2px color-mix(in srgb, var(--hc) 30%, transparent) !important}
[data-theme=dark] .page-heading, [data-theme=dark] .dash-hero {
  background: radial-gradient(560px 240px at 100% 0, color-mix(in srgb, var(--hc) 35%, transparent), transparent 70%),
    linear-gradient(135deg, color-mix(in srgb, var(--hc) 30%, var(--panel-ink)), color-mix(in srgb, var(--hc) 48%, var(--panel-ink))) !important}
.page-heading h1, .dash-hero h1 { color: var(--on-panel)}
.page-heading p, .dash-hero-sub { color: var(--on-panel-2)}
.page-heading .eyebrow, .page-heading .eyebrow.eb, .dash-hero .eyebrow { color: var(--on-panel-3)}
.page-heading :focus-visible, .dash-hero :focus-visible { outline-color: var(--border)}
/* panel üzerindeki düğmeler: ikincil yarı saydam, birincil beyaz (yazısı bölüm renginde) */
.page-heading .actions > .btn:not(.primary), .page-heading .actions > button:not(.primary), .page-heading .actions > form > button:not(.primary),
.page-heading .actions > details > summary.btn, .dash-hero-actions .btn:not(.primary) { background: var(--glass-1); color: var(--on-solid); border-color: var(--glass-line)}
.page-heading .actions > .btn:not(.primary):hover, .page-heading .actions > button:not(.primary):hover, .dash-hero-actions .btn:not(.primary):hover { background: var(--glass-2)}
.page-heading .actions .btn.primary, .page-heading .actions button.primary, .dash-hero-actions .btn.primary, .dash-hero .ht-btn {
  background: var(--surface); border-color: var(--border); color: color-mix(in srgb, var(--hc) 60%, var(--panel-ink))}
.page-heading .actions .btn.primary:hover, .page-heading .actions button.primary:hover, .dash-hero-actions .btn.primary:hover { background: var(--b-blue-bg)}

.page-heading { --ph-tuck: 0px; border: 0; padding: 24px 28px calc(24px + var(--ph-tuck)); border-radius: var(--bite) var(--r-panel) var(--r-panel) var(--r-panel) !important; overflow: visible}
.page-heading .page-ic { background: rgb(255 255 255 / .1); color: var(--on-solid); box-shadow: none; border: 1px solid rgb(255 255 255 / .14)}
.page-heading a:not(.btn) { color: var(--on-solid)}
.page-heading .fav-btn, .page-heading form button.link, .page-heading [class*="fav"] { color: var(--on-panel-2)}
.page-heading .menu-pop, .page-heading dialog, .page-heading .menu-pop a { color: var(--text)}
.page-heading .back-link a { background: rgb(255 255 255 / .1); border-color: var(--glass-line); color: var(--on-solid)}
@media (max-width: 640px) { .page-heading { padding: 16px 16px calc(16px + var(--ph-tuck)); gap: 12px; flex-wrap: wrap} .page-heading .actions { min-width: 0} }

/* Binme: panelin hemen altındaki tam genişlikte kart/tablo/özet satırı panelin alt kenarına biner.
   Zeminsiz araç çubuğu (.filters) binerken beyaz, yüzen bir şeride dönüşür. Dar öğede binme kapanır (actions.js → .no-tuck). */
.page-heading:has(+ .card, + .kpi-grid, + .stats, + .table-wrap) { --ph-tuck: var(--tuck); margin-bottom: calc(-1 * var(--ph-tuck) + 6px)}
.page-heading:has(+ .filters) { --ph-tuck: 40px; margin-bottom: calc(-1 * var(--ph-tuck) + 6px)}
.page-heading:has(+ .card, + .kpi-grid, + .stats, + .table-wrap) + * { position: relative; z-index: 1; margin-inline: 16px}
.page-heading + .filters { position: relative; z-index: 1; margin: 0 16px 20px; padding: 10px 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--bite) var(--r-bar) var(--r-bar) var(--r-bar);
  box-shadow: 0 16px 36px -22px color-mix(in srgb, var(--sec, var(--brand)) 70%, transparent), 0 1px 2px rgb(16 24 40 / .05)}
.page-heading + .filters .cal-month { color: var(--heading)}
.page-heading + .filters .view-toggle { box-shadow: none}
.page-heading + .filters > .btn.sm { min-height: 36px; padding: 0 16px; font-weight: 600; border-radius: var(--r-chip)}
.page-heading + .filters > .btn.sm.primary { background: color-mix(in srgb, var(--sec, var(--brand)) 72%, var(--panel-ink)); border-color: transparent; color: var(--on-solid)}
[data-theme=dark] .page-heading + .filters > .btn.sm.primary { background: color-mix(in srgb, var(--sec, var(--brand)) 45%, var(--panel-ink))}
.page-heading.no-tuck { --ph-tuck: 0px !important; margin-bottom: 24px !important}
.page-heading.no-tuck + * { margin-inline: 0 !important}
@media (max-width: 640px) {
  .page-heading:has(+ .card, + .kpi-grid, + .stats, + .table-wrap) { --ph-tuck: 36px}
  .page-heading:has(+ .filters) { --ph-tuck: 28px}
  .page-heading + * { margin-inline: 0 !important} }

/* ── Ana ekran paneli: selamlama + günün kutuları; "İlgilenmen gerekenler" panelin alt kenarına biner ── */
.dash-hero { --hero-tuck: 60px; position: relative; z-index: 0; padding: 20px 24px calc(10px + var(--hero-tuck)); row-gap: 14px; margin-bottom: calc(-1 * var(--hero-tuck) + 6px);
  border-radius: var(--bite) var(--r-panel) var(--r-panel) var(--r-panel)}
.dash-hero ~ * { position: relative; z-index: 1}
.dash-hero .hero-tile, :root:not([data-theme=dark]) .dash-hero .hero-tile { box-shadow: none !important}
.dash-hero a.hero-tile:hover { background: rgb(255 255 255 / .12); border-color: rgb(255 255 255 / .24)}
.dash-hero .ht-label, .dash-hero .ht-note { color: var(--b-blue-bg)}
.dash-hero .ht-value, .dash-hero .ht-value small { color: var(--on-solid)}
.dash-hero .ht-bar { background: rgb(255 255 255 / .16)}
.dash-hero .ht-bar i { background: var(--on-panel-3)}
/* kompakt: başlık ve kutular daha az dikey yer kaplar */
.dash-hero h1 { font-size: 26px}
.dash-hero-actions { margin-top: 12px}
.dash-hero .hero-tile { min-height: 0; padding: 12px 16px; gap: 2px}
.dash-hero .hero-tile.ht-att { padding: 0}
.dash-hero .hero-tile.ht-att .ht-link { padding: 12px 16px; gap: 2px}
.dash-hero .ht-value { margin-top: 2px}
.dash-hero .eyebrow { margin-bottom: 4px}
.dash-hero .ht-value { font-size: 24px}
/* toplantı ve iş yokken iki boş kutu yerine iki kutu genişliğinde "Sakin bir gün" */
.dash-hero .ht-calm { grid-column: span 2}
.dash-hero .ht-calm .ht-value { font-size: 22px}
.ht-links { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap}
.ht-links a { padding: 5px 12px; border-radius: 99px; font-size: 12.5px; font-weight: 600; color: var(--on-solid) !important; background: rgb(255 255 255 / .12); border: 1px solid rgb(255 255 255 / .18); text-decoration: none !important}
.ht-links a:hover { background: rgb(255 255 255 / .2)}
.dash-hero + .overview-label { margin: 0 24px 10px; color: var(--on-solid); font-size: 12.5px; font-weight: 700; letter-spacing: .08em; display: flex; align-items: center; gap: 8px}
.dash-hero + .overview-label::before { content: ""; width: 8px; height: 8px; border-radius: 2px 50% 50% 50%; background: var(--crumb)}
.dash-hero + :not(.overview-label), .dash-hero + .overview-label + .dashboard-metrics { margin-inline: 18px}
.dash-hero + .overview-label + .dashboard-metrics .metric { box-shadow: 0 14px 30px -20px rgb(16 24 64 / .55) !important}
@media (max-width: 760px) {
  .dash-hero { --hero-tuck: 52px; padding: 18px 16px calc(16px + var(--hero-tuck))}
  .dash-hero .ht-calm { grid-column: 1 / -1}
  .dash-hero + .overview-label { margin-inline: 20px}
  .dash-hero + :not(.overview-label), .dash-hero + .overview-label + .dashboard-metrics { margin-inline: 10px} }

/* ── Ana ekran metrik kartları (İlgilenmen gerekenler): ton zemini, iri sayı, etiket üstte ── */
.dashboard-metrics .metric { padding-top: 14px}
.dashboard-metrics .metric .metric-label { font-size: 14px; font-weight: 600; color: var(--heading)}
.dashboard-metrics .metric b { margin-top: 10px}
.metric[class*="tone-"] { border-color: transparent !important; box-shadow: none !important}
:root .metric.metric[class*="tone-"] { background: var(--tone-bg)}
.metric[class*="tone-"] b, .metric.featured[class*="tone-"] b { font-size: 44px; line-height: 1; color: var(--tone-fg)}
.metric[class*="tone-"] .metric-ic { background: rgb(255 255 255 / .65)}
.metric.tone-teal .metric-caption { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden}
.dashboard-metrics:has(> :nth-child(5)) { grid-template-columns: repeat(5, minmax(0, 1fr))}
@media (min-width: 1281px) { .dashboard-metrics:has(> :nth-child(5)) .metric-label { font-size: 13px; white-space: nowrap}
  .dashboard-metrics:has(> :nth-child(5)) .metric-ic { margin-right: 8px} }
@media (max-width: 1280px) { .dashboard-metrics:has(> :nth-child(5)) { grid-template-columns: repeat(3, minmax(0, 1fr))} }
@media (max-width: 760px) { .dashboard-metrics:has(> :nth-child(5)) { grid-template-columns: repeat(2, minmax(0, 1fr))} }
@media (max-width: 600px) { .metric[class*="tone-"] b { font-size: 32px} }

/* ── Ana ekran düzeni: sağ sütun ana sütunla aynı boya uzar ── */
.dashboard-grid { align-items: start}
.dashboard-side { display: flex; flex-direction: column}
.dashboard-side > .card { margin-bottom: 22px}
.dashboard-side > .card:last-child { margin-bottom: 0}
/* yalnız iki kart yan yana dizildiğinde (sol sütun boş) boyları eşit; uzun ana sütunun yanında son kart boşuna uzamaz */
.dashboard-grid.no-main { align-items: stretch}
.dashboard-main > .card:last-child { margin-bottom: 0}

/* ── Ekibin durumu: ekip özeti + departman satırları ── */
.wl-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0 24px 18px; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--surface-2)}
.wl-kpi { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; background: var(--surface)}
.wl-kpi + .wl-kpi { border-left: 1px solid var(--border)}
.wl-k { font-size: 12px; color: var(--muted-strong)}
.wl-kpi b { font-size: 26px; line-height: 1.1; font-weight: 600; color: var(--heading); letter-spacing: -.02em}
.wl-kpi b small { font-size: 15px; color: var(--muted); font-weight: 600}
.wl-kpi.is-bad b { color: var(--b-red)}
.wl-s { font-size: 12px; color: var(--muted)}
.wl-meter { display: block; height: 6px; border-radius: 6px; background: color-mix(in srgb, var(--st-on_time) 14%, var(--surface-2)); overflow: hidden}
.wl-meter i { display: block; height: 100%; border-radius: 6px; background: var(--st-on_time)}
.wl-kpi .wl-meter { margin-top: 4px}
.wl-rate { font-weight: 600; font-variant-numeric: tabular-nums}
.wl-rate.good { color: var(--b-green)} .wl-rate.mid { color: var(--b-amber)} .wl-rate.bad { color: var(--b-red)} .wl-rate.none { color: var(--muted)}
.wl-cols, .wl-group > summary { display: grid; grid-template-columns: minmax(200px, 1.5fr) 130px minmax(160px, 1.7fr) 110px 80px; gap: 20px; align-items: center}
.wl-cols { padding: 8px 24px 8px 46px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-top: 1px solid var(--border)}
.wl-cols > :nth-child(n+4), .wl-group > summary > :nth-child(n+4) { justify-self: end}
.wl-group > summary { padding: 14px 24px; position: relative}
.wl-group > summary::before { position: absolute; left: 24px; top: 50%; margin: -9px 0 0}
.wl-group > summary > .wl-name { margin: 0 0 0 22px; display: flex; flex-direction: column; gap: 6px; min-width: 0}
.wl-name b { color: var(--heading); font-size: 15px}
.wl-avs { display: flex; align-items: center}
.wl-avs .avatar.sm { width: 28px; height: 28px; border-radius: 50%; font-size: 10px; box-shadow: 0 0 0 2px var(--surface)}
.wl-avs .avatar.sm + .avatar.sm { margin-left: -4px}
.wl-more { background: var(--surface-2); color: var(--muted-strong)}
.wl-n { margin-left: 10px; font-size: 12px; color: var(--muted)}
.wl-att { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted-strong)}
.wl-att .wl-meter { flex: 1; max-width: 70px}
.wl-load { display: flex; align-items: center; gap: 12px}
.wl-track { flex: 1; height: 10px; border-radius: 6px; background: color-mix(in srgb, var(--border) 45%, transparent); overflow: hidden}
.wl-track .seg { display: flex; height: 100%; border-radius: 6px; overflow: hidden; gap: 2px}
.wl-track .seg-wait { background: var(--s-blue) !important}
.wl-load b { min-width: 24px; text-align: right; color: var(--heading)}
.wl-ok { font-size: 13px; color: var(--muted)}
.wl-group.has-late { box-shadow: inset 3px 0 0 var(--b-red)}
.workload-card .tr-legend { border-top: 1px solid var(--border); padding-top: 12px}
/* departman satırı 5 sütun ister: ~1280 pikselin altında (sağ sütunlu düzende içerik dar) kısa düzene geçer */
@media (max-width: 1280px) {
  .wl-cols { display: none}
  .wl-group > summary { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "name att late" "load load load"; gap: 10px 18px}
  .wl-group > summary > .wl-name { grid-area: name; flex-direction: row; align-items: center; gap: 12px}
  .wl-group > summary > .wl-load { grid-area: load; margin-left: 22px}
  .wl-group > summary > .wl-att { grid-area: att}
  .wl-group > summary > .wl-late { grid-area: late}
  .wl-group > summary > .wl-rate { display: none} }
@media (max-width: 900px) {
  .wl-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-inline: 16px}
  .wl-kpi:nth-child(3) { border-left: 0} .wl-kpi:nth-child(n+3) { border-top: 1px solid var(--border)}
  .wl-cols { display: none}
  .wl-group > summary { grid-template-columns: 1fr auto; grid-template-areas: "name name" "load load" "att late"; gap: 10px 14px; padding: 14px 16px}
  .wl-group > summary::before { left: 16px; top: 26px}
  .wl-group > summary > .wl-name { grid-area: name; flex-direction: row; align-items: center; justify-content: space-between}
  .wl-group > summary > .wl-load { grid-area: load; margin-left: 22px}
  .wl-group > summary > .wl-att { grid-area: att; margin-left: 22px}
  .wl-group > summary > .wl-late { grid-area: late}
  .wl-group > summary > .wl-rate { display: none} }

/* ── Özet kutuları (KPI, mesai özetleri): anlamına göre ton zemini ── */
.kpi-grid > .card.kpi, .kpi-grid > .kpi, .stats:not(.dashboard-metrics) > .card { border-color: transparent !important; box-shadow: var(--shadow-lift) !important}
:root :is(.kpi-grid > .kpi, .stats:not(.dashboard-metrics) > .card)[data-tone] { background: var(--tone-bg)}
:root :is(.kpi-grid > .kpi, .stats:not(.dashboard-metrics) > .card)[data-tone] b { color: var(--tone-fg)}
.kpi-grid > .kpi b { font-size: 30px; font-weight: 600}
.kpi-grid > .kpi span:first-child { font-size: 13px; font-weight: 600; color: var(--heading)}
@media (max-width: 640px) { .kpi-grid > .kpi { min-width: 0} .kpi-grid > .kpi b { font-size: 22px; overflow-wrap: anywhere} }

/* ── Görünüm seçici (Liste / Pano / Takvim, rapor sekmeleri…): seçili olan bölüm renginin koyu tonunda dolu ── */
.view-toggle { gap: 4px; padding: 4px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2)}
.view-toggle a { min-height: 38px; padding: 8px 16px; border-radius: var(--r-chip); font-size: 14px; font-weight: 600; color: var(--muted-strong);
  display: inline-flex; align-items: center; gap: 8px; transition: background .15s, color .15s}
.view-toggle a:hover { background: color-mix(in srgb, var(--sec, var(--brand)) 10%, var(--surface)); color: var(--heading); text-decoration: none}
.view-toggle a.on, .view-toggle a.on:hover { background: color-mix(in srgb, var(--sec, var(--brand)) 72%, var(--panel-ink)); color: var(--on-solid); font-weight: 600;
  box-shadow: 0 6px 14px -8px color-mix(in srgb, var(--sec, var(--brand)) 80%, transparent)}
[data-theme=dark] .view-toggle a.on, [data-theme=dark] .view-toggle a.on:hover { background: color-mix(in srgb, var(--sec, var(--brand)) 45%, var(--panel-ink))}
/* yalnız görünüm (view=) bağlantılarında ikon */
.view-toggle a[href*="view="] { padding-left: 13px}
.view-toggle a[href*="view="]::before { content: ""; width: 16px; height: 16px; flex: none; background: currentColor; -webkit-mask: var(--vt-ic) center/contain no-repeat; mask: var(--vt-ic) center/contain no-repeat}
.view-toggle a { --vt-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M8 6h12M8 12h12M8 18h12M4 6h.01M4 12h.01M4 18h.01'/%3E%3C/svg%3E")}
.view-toggle a[href*="view=board"] { --vt-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='3.5' y='4' width='5' height='16' rx='1.5'/%3E%3Crect x='9.5' y='4' width='5' height='10' rx='1.5'/%3E%3Crect x='15.5' y='4' width='5' height='13' rx='1.5'/%3E%3C/svg%3E")}
.view-toggle a[href*="view=calendar"] { --vt-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3.5' y='5' width='17' height='15' rx='2.5'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4'/%3E%3C/svg%3E")}

/* ── Boş durumlar: büyük kutu yerine bölüm tonunda sakin alanlar ── */
.empty { border: 1px solid color-mix(in srgb, var(--sec, var(--brand)) 14%, var(--border)); background: color-mix(in srgb, var(--sec, var(--brand)) 5%, var(--surface))}
/* tek satır çağrı (ör. ekip yokken davet) */
.dash-nudge { display: flex; align-items: center; gap: 14px; margin: 0 24px 20px; padding: 14px 16px; border-radius: 14px;
  background: color-mix(in srgb, var(--sec, var(--brand)) 7%, var(--surface)); border: 1px solid color-mix(in srgb, var(--sec, var(--brand)) 16%, var(--border))}
.dash-nudge-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: color-mix(in srgb, var(--sec, var(--brand)) 14%, var(--surface)); color: var(--brand-text)}
.dash-nudge-ic svg { width: 21px; height: 21px}
.dash-nudge-t { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0}
.dash-nudge-t b { color: var(--heading)}
.dash-nudge-t span { font-size: 13px; color: var(--muted-strong)}
@media (max-width: 640px) { .dash-nudge { flex-wrap: wrap; margin-inline: 16px} .dash-nudge .btn { width: 100%} }
/* kart içinde "yok" bilgisi: tikli tek satır */
.dash-calm { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 0; font-size: 13.5px; color: var(--muted-strong)}
.dash-calm b { color: var(--heading); font-weight: 600}
.dash-calm-ic { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 12px; font-weight: 700; color: var(--b-green); background: var(--b-green-bg)}

/* ── Başlarken: sektör seçimi düğmeleri (başlık üstte, örnekler altında) ── */
.sector-pick button { display: block; line-height: 1.35} .sector-pick button b { display: block; margin-bottom: 4px} .sector-pick button br { display: none}

/* ── Katmanlar: modal, onay penceresi, açılır menü, bildirim — aynı perde, gölge, çizgi ve açılış hareketi ── */
.shell, dialog { --overlay: rgb(14 18 40 / .42); --shadow-pop: 0 24px 60px -20px rgb(15 23 42 / .38), 0 2px 6px rgb(15 23 42 / .06)}
[data-theme=dark] :is(.shell, dialog) { --overlay: rgb(0 0 0 / .6); --shadow-pop: 0 24px 60px -16px rgb(0 0 0 / .7), 0 0 0 1px rgb(255 255 255 / .04)}
dialog, dialog.kuki-confirm { border: 1px solid var(--border); box-shadow: var(--shadow-pop)}
dialog::backdrop, dialog.kuki-confirm::backdrop, dialog.cmdk::backdrop { background: var(--overlay); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px)}
.dialog-head { background: var(--surface)}
.menu-pop, [data-theme=dark] .menu-pop { box-shadow: var(--shadow-pop); border-color: var(--border)}
/* bildirim: koyu gri kutu yerine yüzey + bölüm renginde şerit ve ikon */
.toast { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px 12px 14px; background: var(--surface); color: var(--heading); font-size: 13.5px; line-height: 1.45;
  border: 1px solid var(--border); border-left: 4px solid color-mix(in srgb, var(--sec, var(--brand)) 80%, var(--panel-ink, var(--muted))); box-shadow: var(--shadow-pop)}
.toast::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 1px; background: color-mix(in srgb, var(--sec, var(--brand)) 80%, var(--panel-ink, var(--inverse)));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8 12.5 2.5 2.5L16 9.5'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8 12.5 2.5 2.5L16 9.5'/%3E%3C/svg%3E") center/contain no-repeat}
[data-theme=dark] .toast { background: var(--surface-2); color: var(--heading)}
/* açılış hareketi: kısa ve hafif; hareket azaltma tercihinde yok */
@keyframes pop-in { from { opacity: 0; transform: translateY(6px) scale(.98)} to { opacity: 1; transform: none} }
@keyframes fade-in { from { opacity: 0} to { opacity: 1} }
dialog[open] { animation: pop-in .16s ease-out}
dialog[open]::backdrop { animation: fade-in .16s ease-out}
details[open] > .menu-pop, .menu-pop:not([hidden]) { animation: pop-in .12s ease-out}
@media (prefers-reduced-motion: reduce) { dialog[open], dialog[open]::backdrop, details[open] > .menu-pop, .menu-pop:not([hidden]) { animation: none} }
/* başlıktaki açılır menü açıkken panel, üstüne binen şeridin önüne çıkar (yoksa menü şeridin arkasında kalır) */
.dash-hero:has(details[open]) { z-index: 3}
.dashboard-grid.no-main .dashboard-side > .card { margin-bottom: 0}

/* ── Ana ekran ince ayar 2: metrik satırı daha alçak, "Ekibini ekle" kartın içinde boşlukla durur ── */
.dashboard-metrics .metric { padding: 12px 16px 12px}
.dashboard-metrics .metric b, .dashboard-metrics .metric.featured b { font-size: 34px; margin: 6px 0 2px}
.dashboard-metrics .metric-caption { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden}
.dashboard-metrics .metric-ic { width: 30px; height: 30px}
.workload-card:has(.dash-nudge) { padding-bottom: 20px}
.workload-card .dash-nudge { margin-bottom: 0}
@media (max-width: 600px) { .dashboard-metrics .metric b { font-size: 28px} }
/* Ton verilmemiş özet kutusu boyanana kadar nötr zeminde durur (renk sonradan "atlamaz") */
:root :is(.kpi-grid > .kpi, .stats:not(.dashboard-metrics) > .card):not([data-tone]) { --tone-bg: var(--surface-2); --tone-fg: var(--heading); background: var(--tone-bg)}

/* ═══ Tasarım sistemi v2 · nötr tonlar, tablolar, rozetler, formlar ═══
   Ana alanın nötr renkleri serin ve temiz (krem/bej yerine beyaz ve açık gri); sol menü eski sıcak tonlarını korur. */
.main {}

/* Tablolar: daha sık satır, sakin başlık satırı, bölüm tonunda üzerine gelme */
.content th { background: var(--th-bg); color: var(--muted); font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 11px 18px; border-bottom: 1px solid var(--border)}
.content td { padding: 12px 18px; font-size: 13.5px; border-bottom: 1px solid color-mix(in srgb, var(--border) 75%, transparent)}
.content tbody tr:hover td, .content table tr:hover td { background: var(--row-hover)}
.content td > a:first-child:not(.btn) { font-weight: 600}
.content td.num, .content td.r, .content th.r { font-variant-numeric: tabular-nums}
@media (max-width: 1200px) { .content td, .content th { padding-left: 14px; padding-right: 14px} }
/* tablo satırındaki küçük düğmeler: hayalet görünüm, birincil olan dolu kalır */
.content td .btn.sm:not(.primary), .content td button.sm:not(.primary) { background: transparent; border-color: var(--border)}
.content td .btn.sm:not(.primary):hover, .content td button.sm:not(.primary):hover { background: var(--surface-2); border-color: var(--border-strong)}

/* Rozetler: bir tık iri, kalın ve okunur; nokta işareti korunur */
.main .badge { font-size: 11.5px; font-weight: 600; padding: 3px 9px; line-height: 18px}

/* Formlar: etiket başlık renginde, alanlar 40 px, net odak halkası, hata durumu görünür */
.main label { color: var(--heading); margin: 16px 0 6px}
.main input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]), .main select { height: 40px}
.main input, .main select, .main textarea { background: var(--surface); border-color: var(--border-strong)}
.main input:hover:not(:focus):not(:disabled), .main select:hover:not(:focus):not(:disabled), .main textarea:hover:not(:focus):not(:disabled) { border-color: color-mix(in srgb, var(--sec, var(--brand)) 30%, var(--border-strong))}
.main input:focus, .main select:focus, .main textarea:focus { border-color: color-mix(in srgb, var(--sec, var(--brand)) 70%, var(--panel-ink, var(--muted)));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sec, var(--brand)) 20%, transparent)}
.main input[aria-invalid=true], .main select[aria-invalid=true], .main textarea[aria-invalid=true], .main :is(input, select, textarea):has(+ .field-err) { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 4%, var(--surface))}
.main .field-err { display: inline-flex; align-items: center; gap: 5px; font-weight: 600}
.main .field-err::before { content: "!"; display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: var(--danger); color: var(--on-solid); font-size: 10px; font-weight: 700}
.main .hint, .main .field-hint { color: var(--muted)}
/* uzun formlar: kart içindeki alan grupları (fieldset) ayrılır, başlıkları belirgin */
.main .card fieldset + fieldset { border-top: 1px solid var(--border); padding-top: 14px}
.main legend { font-size: 13px; font-weight: 700; color: var(--heading); margin-bottom: 4px}

/* ═══ Tasarım sistemi v2 · sol menü tonu, geniş ekran, telefonda tablo kartları, uzun formlar ═══ */
/* Sol menü: yapısı aynı; nötr tonları ana alanla aynı serin aileye geçer (krem yerine beyaz/açık gri), bölüm rengi üstte hafif yıkama */
.sidebar {}

/* Geniş ekran: içerik 1540 px'te sıkışmaz, büyük monitörde alanı kullanır */
@media (min-width: 1800px) { .content { max-width: 1720px} }

/* Telefonda tablolar: hücre etiketi (data-label) olan her tablo satırı karta dönüşür; yatay kaydırma gerekmez */
@media (max-width: 640px) {
  .main .table-wrap table:has(td[data-label]) { display: block; min-width: 0 !important}
  .main .table-wrap table:has(td[data-label]) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0)}
  .main .table-wrap table:has(td[data-label]) :is(tbody, tfoot) { display: block}
  .main .table-wrap table:has(td[data-label]) tr { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; padding: 14px 16px; border-bottom: 1px solid var(--border)}
  .main .table-wrap table:has(td[data-label]) td { display: block; padding: 0; border: 0; min-width: 0 !important; background: transparent !important}
  .main .table-wrap table:has(td[data-label]) td:first-child { grid-column: 1 / -1}
  .main .table-wrap table:has(td[data-label]) td:empty { display: none}
  .main .table-wrap table:has(td[data-label]) td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 3px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted)}
  .main .table-wrap table:has(td[data-label]) td.r, .main .table-wrap table:has(td[data-label]) td.num { text-align: left}
  .main .table-wrap:has(table td[data-label]) { overflow: visible}
}

/* Uzun ayar formları: alanlar okunur genişlikte kalır, ekran boyu gerilmez; kısa alanlar (sayı, saat, tarih) dar */
:is(body[data-page^="/settings"], body[data-page^="/quotes-settings"], body[data-page^="/profile"]) .main form:not(.filters):not(.inline) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea):not(.u-w-full) { max-width: 640px}
:is(body[data-page^="/settings"], body[data-page^="/quotes-settings"], body[data-page^="/profile"]) .main form:not(.filters):not(.inline) :is(.hint, .field-hint, p.small) { max-width: 720px}
.main .card form :is(input[type=number], input[type=time], input[type=date]):not(.u-w-full) { max-width: 220px}
/* Kaydırılan alanlar görünmez ekran-okuyucu etiketlerine konum bağlamı olur: etiket alanın dışına kaçıp sayfayı uzatmaz
   (Kuki AI'da her ürün listesi cevabı sayfanın altına krem bir boşluk ekliyordu) */
.chat-log, .table-wrap, .cx-track { position: relative}
/* Gövde zemini de sayfa zemini: herhangi bir taşmada altta eski krem renk görünmez */
html, body { background: var(--surface-2)}
.cpick .mute { color: var(--muted-strong)}

/* Ayar formlarında alan grupları: küçük başlıklı bölümler, aralarında ince çizgi */
.main .set-group { margin: 0; padding: 4px 0 18px}
.main .set-group + .set-group { border-top: 1px solid var(--border); padding-top: 16px}
.main .set-group > legend { padding: 0; margin-bottom: 2px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted)}
.main .set-group > legend + .row > div > label:first-child, .main .set-group > legend + label { margin-top: 10px}
/* Telefonda bildirim sayısı rozeti ekranın sağ kenarından taşmasın (her sayfada 5 px yatay kaydırma yapıyordu) */
@media (max-width: 640px) { .topbar .icon-btn .dot { transform: translate(15%, -42%)} }
/* Çok uzun adlar: sayfa başlığı en çok 2 satır (telefonda daha küçük yazı); liste başlıkları telefonda en çok 3 satır */
.page-heading h1 { display: -webkit-inline-box; vertical-align: middle; max-width: calc(100% - 44px); -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden}
@media (max-width: 640px) { .page-heading h1 { font-size: 22px; line-height: 1.25} }
@media (max-width: 640px) { .main .task-table td:first-child > a, .main td:first-child > a:not(.btn) { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden} }

/* ═══ Kuki imzası: enerjik, modern, kurabiye motifli ═══
   Kırıntı (--crumb, sıcak turuncu) vurgu rengi; bölüm rengi ana renk. Hareketler kısa ve yaylı; hareket azaltma tercihinde kapalı. */
.shell { --spring: cubic-bezier(.34, 1.56, .64, 1)}

/* Boş durum: ısırılmış kurabiye çizimi, üstünde konuya özel küçük ikon rozeti; kırıntılar hafifçe sallanır */
.empty-art { position: relative; display: inline-block; width: 76px; height: 76px; margin-bottom: 8px}
.empty-cookie { width: 76px; height: 76px; overflow: visible}
.ec-body { fill: color-mix(in srgb, var(--crumb) 30%, var(--surface)); stroke: color-mix(in srgb, var(--crumb) 60%, transparent); stroke-width: 1.5}
.ec-chip { fill: color-mix(in srgb, var(--sec, var(--brand)) 75%, var(--inverse))}
.ec-crumb { fill: var(--crumb); transform-box: fill-box; transform-origin: center; animation: crumb-bob 2.6s ease-in-out infinite}
.ec-crumb + .ec-crumb { animation-delay: .4s}
@keyframes crumb-bob { 0%, 100% { transform: translateY(0)} 50% { transform: translateY(-3px)} }
.empty-art .empty-ic { position: absolute; right: -6px; bottom: -4px; width: 32px !important; height: 32px !important; border-radius: 50% !important; margin: 0;
  background: var(--surface); color: color-mix(in srgb, var(--sec, var(--brand)) 80%, var(--panel-ink, var(--heading))); box-shadow: 0 0 0 3px var(--surface), 0 6px 14px -6px rgb(16 24 40 / .35)}
.empty-art .empty-ic svg { width: 17px; height: 17px}
[data-theme=dark] .ec-body { fill: color-mix(in srgb, var(--crumb) 22%, var(--surface))}
.review-card .empty-art { width: 44px; height: 44px} .review-card .empty-cookie { width: 44px; height: 44px} .review-card .empty-art .empty-ic { display: none}

/* Kurulum ilerlemesi: kurabiye halkası — tamamlanan kısım bölüm renginde, kalan kısım kurabiye hamuru, üstünde kırıntılar */
.ob-ring { background: radial-gradient(circle at 30% 28%, var(--crumb-2) 0 2.5px, transparent 3px), radial-gradient(circle at 72% 70%, var(--crumb-2) 0 2px, transparent 2.5px),
  conic-gradient(color-mix(in srgb, var(--sec, var(--brand)) 85%, var(--panel-ink, var(--inverse))) calc(var(--p) * 1%), color-mix(in srgb, var(--crumb) 32%, var(--surface)) 0)}

/* Grafikler: yuvarlak uçlu, bölüm renginde geçişli çubuklar; bu ayın çubuğunun üstünde kırıntı; çubuklar sırayla yükselir */
.trend-bar { fill: color-mix(in srgb, var(--sec, var(--brand)) 30%, transparent); transform-box: fill-box; transform-origin: bottom; animation: bar-up .5s var(--spring) both; animation-delay: calc(var(--i, 0) * 30ms)}
.trend-bar.now { fill: color-mix(in srgb, var(--sec, var(--brand)) 85%, var(--panel-ink, var(--inverse)))}
.trend-card:hover .trend-bar:not(.now) { fill: color-mix(in srgb, var(--sec, var(--brand)) 42%, transparent)}
.trend-crumb { fill: var(--crumb)}
@keyframes bar-up { from { transform: scaleY(0)} to { transform: scaleY(1)} }

/* Yükleme: sayfa ve parça yüklenirken üstte kırıntı renginde ince, akan çubuk */
body::after { content: ""; position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 9999; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent, var(--crumb), color-mix(in srgb, var(--sec, var(--brand)) 80%, var(--surface)), transparent); background-size: 50% 100%; background-repeat: no-repeat}
body.kuki-loading::after { opacity: 1; animation: load-run 1s linear infinite; transition: opacity .15s .1s}
@keyframes load-run { from { background-position: -50% 0} to { background-position: 150% 0} }

/* Bildirim: yaylı giriş, kurabiye ikonlu */
.toast { animation: toast-in .45s var(--spring) both, toast 4.5s .45s forwards}
.toast::before { background: var(--crumb); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 9.9 11.7 2.5 2.5 0 0 1-3-2.6 2.5 2.5 0 0 1-2.7-3.1A2.5 2.5 0 0 1 14 2.2 10 10 0 0 0 12 2zM8 8.5a1.3 1.3 0 1 1 0 2.6 1.3 1.3 0 0 1 0-2.6zm3 6a1.4 1.4 0 1 1 0 2.8 1.4 1.4 0 0 1 0-2.8zm5 1a1.1 1.1 0 1 1 0 2.2 1.1 1.1 0 0 1 0-2.2z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 9.9 11.7 2.5 2.5 0 0 1-3-2.6 2.5 2.5 0 0 1-2.7-3.1A2.5 2.5 0 0 1 14 2.2 10 10 0 0 0 12 2zM8 8.5a1.3 1.3 0 1 1 0 2.6 1.3 1.3 0 0 1 0-2.6zm3 6a1.4 1.4 0 1 1 0 2.8 1.4 1.4 0 0 1 0-2.8zm5 1a1.1 1.1 0 1 1 0 2.2 1.1 1.1 0 0 1 0-2.2z'/%3E%3C/svg%3E") center/contain no-repeat}
@keyframes toast-in { from { opacity: 0; transform: translateY(18px) scale(.94)} to { opacity: 1; transform: none} }

/* Enerji: tıklanabilir kartlar üzerine gelince yaylı kalkar ve ton gölgesi alır; birincil düğmede ışık süzülür */
a.card.metric, .dash-hero a.hero-tile, .kpi-grid > a.kpi, .settings-links a { transition: transform .25s var(--spring), box-shadow .25s ease, background-color .2s}
a.card.metric:hover { transform: translateY(-3px); box-shadow: 0 18px 30px -18px color-mix(in srgb, var(--tone-fg, var(--brand)) 60%, transparent) !important}
a.card.metric:hover .metric-ic { transform: rotate(-8deg) scale(1.08)}
.metric-ic { transition: transform .3s var(--spring)}
.dash-hero a.hero-tile:hover, .kpi-grid > a.kpi:hover, .settings-links a:hover { transform: translateY(-2px)}
button.primary, .btn.primary { background-image: linear-gradient(100deg, transparent 30%, rgb(255 255 255 / .22) 50%, transparent 70%); background-size: 250% 100%; background-position: 120% 0; background-repeat: no-repeat}
button.primary:hover, .btn.primary:hover { background-position: -20% 0; transition: background-position .6s ease, background-color .15s}
/* ana ekran paneli: köşedeki parıltı yavaşça süzülür, sayılar girişte hafifçe yükselir */
.dash-hero { background-size: 100% 100%, 100% 100%}
.dash-hero::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(380px 200px at var(--gx, 85%) -10%, color-mix(in srgb, var(--crumb) 22%, transparent), transparent 70%); animation: glow-drift 14s ease-in-out infinite alternate}
@keyframes glow-drift { from { --gx: 85%; opacity: .7} to { --gx: 55%; opacity: 1} }
@property --gx { syntax: "<percentage>"; inherits: false; initial-value: 85%}
.dashboard-metrics .metric b, .kpi-grid > .kpi b { animation: num-in .5s var(--spring) both}
@keyframes num-in { from { opacity: 0; transform: translateY(6px)} to { opacity: 1; transform: none} }

@media (prefers-reduced-motion: reduce) {
  .ec-crumb, .trend-bar, .toast, .dash-hero::after, .dashboard-metrics .metric b, .kpi-grid > .kpi b, body.kuki-loading::after { animation: none !important}
  a.card.metric:hover, .dash-hero a.hero-tile:hover, .kpi-grid > a.kpi:hover, .settings-links a:hover, a.card.metric:hover .metric-ic { transform: none}
}
/* eski genel ".empty svg" kuralları (kare zemin, dolgu, sabit boy) kurabiye çizimine ve rozet ikonuna uygulanmaz */
.empty .empty-art svg { margin: 0; padding: 0; background: none; border-radius: 0; height: auto}
.empty .empty-art .empty-cookie { width: 76px; height: 76px}
.empty .empty-art .empty-ic svg { width: 17px; height: 17px; color: inherit}
.empty .empty-art { display: block; margin: 0 auto 8px}

/* Giriş ekranı ve hata sayfası: Kuki kurabiyesi */
.av4-story { position: relative}
.av4-cookie { position: absolute; top: -6px; right: 4px; width: 92px; height: 92px; overflow: visible; transform: rotate(-12deg); filter: drop-shadow(0 12px 22px rgb(0 0 0 / .25)); animation: cookie-float 6s ease-in-out infinite}
.av4-cookie .ec-body { fill: var(--s-amber); stroke: var(--s-amber)}
.av4-cookie .ec-chip { fill: var(--s-amber)}
@keyframes cookie-float { 0%, 100% { transform: rotate(-12deg) translateY(0)} 50% { transform: rotate(-6deg) translateY(-6px)} }
@media (max-width: 760px) { .av4-cookie { width: 56px; height: 56px; top: 0} }
.err-cookie { display: block; width: 84px; height: 84px; margin: 18px 0 6px; overflow: visible}
.err-quip { margin: 0 0 4px; font-weight: 600; color: var(--heading)}
@media (prefers-reduced-motion: reduce) { .av4-cookie { animation: none} }
.auth:not(.auth-v4) { background: var(--surface-2)}

/* ═══ Geri bağlantısı: başlık panelinin içinde, sol üstte belirgin cam düğme (panelin üstünde yüzmez) ═══ */
.page-back { position: relative; z-index: 2; margin: 0 0 calc(-1 * 46px) 22px; height: 46px; display: flex; align-items: flex-end}
.page-back a { min-height: 32px; padding: 0 14px 0 10px; border-radius: 99px; font-size: 13px; font-weight: 600; color: var(--on-solid);
  background: rgb(255 255 255 / .14); border: 1px solid rgb(255 255 255 / .24); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .15s}
.page-back a:hover { color: var(--on-solid); background: rgb(255 255 255 / .24)}
.page-back a:focus-visible { outline-color: var(--border)}
.page-back + .page-heading { padding-top: 58px}
@media (max-width: 640px) { .page-back { margin-left: 14px} .page-back + .page-heading { padding-top: 54px} }

/* ═══ Telefon ve tablet: başlıklar ve ana ekran sıkı; düğmeler tek satırda kayar, bloklar küçülür ═══ */
@media (max-width: 760px) {
  /* sayfa başlığı: ikon küçük, düğmeler tam genişlik bloklar yerine tek satırda yatay kayan küçük düğmeler */
  .page-heading { padding: 14px 14px calc(14px + var(--ph-tuck)); gap: 10px}
  .page-heading .page-ic { width: 38px; height: 38px; border-radius: 11px}
  .page-heading .page-ic svg { width: 19px; height: 19px}
  .page-heading .eyebrow { margin-bottom: 2px; font-size: 10px}
  .page-heading h1 { font-size: 21px}
  .page-heading .actions { flex: 1 1 100%; flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; gap: 6px; justify-content: flex-start !important; padding-bottom: 2px}
  .page-heading .actions::-webkit-scrollbar { display: none}
  .page-heading .actions > * { flex: none !important; width: auto !important}
  .page-heading .actions .btn, .page-heading .actions button, .page-heading .actions summary.btn { min-height: 34px; height: 34px; padding: 0 12px; font-size: 13px; white-space: nowrap}
  .page-heading:has(+ .card, + .kpi-grid, + .stats, + .table-wrap) { --ph-tuck: 26px}
  .page-heading:has(+ .filters) { --ph-tuck: 22px}

  /* ana ekran paneli: selam ve düğmeler tek satır, günün kutuları yatay kayan sıra, metrikler kısa */
  .dash-hero { --hero-tuck: 40px; padding: 16px 14px calc(10px + var(--hero-tuck)); row-gap: 10px}
  .dash-hero h1 { font-size: 21px}
  .dash-hero .eyebrow { font-size: 10px}
  .dash-hero-actions { margin-top: 10px; gap: 6px}
  .dash-hero-actions .btn { min-height: 34px; height: 34px; padding: 0 12px; font-size: 13px}
  .dash-hero-tiles { display: flex !important; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -14px; padding: 0 14px 2px}
  .dash-hero-tiles::-webkit-scrollbar { display: none}
  .dash-hero-tiles > * { flex: 0 0 auto; width: 168px; scroll-snap-align: start; grid-column: auto !important}
  .dash-hero .ht-calm { width: 240px}
  .dash-hero .hero-tile, .dash-hero .hero-tile.ht-att .ht-link { padding: 10px 12px}
  .dash-hero .ht-value { font-size: 19px}
  .dash-hero .ht-label, .dash-hero .ht-note { font-size: 11.5px}
  .dash-hero .ht-note { white-space: nowrap; overflow: hidden; text-overflow: ellipsis}
  .dash-hero + .overview-label { margin: 0 14px 8px; font-size: 11px}
  .dash-hero + :not(.overview-label), .dash-hero + .overview-label + .dashboard-metrics { margin-inline: 6px}
  .dashboard-metrics { gap: 8px !important}
  .dashboard-metrics .metric { padding: 10px 12px !important; min-height: 0}
  .dashboard-metrics .metric .metric-label { font-size: 12.5px; line-height: 1.25}
  .dashboard-metrics .metric-ic { width: 26px; height: 26px; margin-right: 6px}
  .dashboard-metrics .metric-ic svg { width: 15px; height: 15px}
  .dashboard-metrics .metric b, .dashboard-metrics .metric.featured b { font-size: 26px !important; margin: 4px 0 0}
  .dashboard-metrics .metric-caption { display: none}
  .dashboard-metrics .metric-arrow { display: none}
}
/* tablet: başlık düğmeleri sarılır ama blok olmaz; ana ekran kutuları 3'lü kalır */
@media (min-width: 761px) and (max-width: 1100px) {
  .page-heading .actions > * { flex: none !important}
  .dash-hero { --hero-tuck: 52px; padding: 18px 20px calc(12px + var(--hero-tuck))}
  .dash-hero-tiles { grid-template-columns: repeat(3, minmax(0, 1fr))}
}
@media (max-width: 760px) {
  /* özet kutuları: sıkı, açıklama tek satır */
  .kpi-grid { gap: 8px !important}
  .kpi-grid > .kpi { padding: 12px !important}
  .kpi-grid > .kpi span:first-child { font-size: 12px}
  .kpi-grid > .kpi b { font-size: 20px !important; margin: 4px 0 2px}
  .kpi-grid > .kpi small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11.5px}
  /* etiketli filtre seçimleri (fg) telefonda ikişer yan yana */
  .main :has(> label.fg + label.fg) { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px 10px}
  .main label.fg { margin: 0; min-width: 0}
  .main label.fg select { width: 100%; min-width: 0}
}
@media (min-width: 761px) and (max-width: 1100px) { .kpi-grid:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr))} }
@media (max-width: 640px) {
  /* telefon tablo kartı: ilk sütun yalnız seçim kutusuysa sağ üst köşeye; kartın başlığı (2. sütun) en üstte tam genişlik */
  .main .table-wrap table:has(td[data-label]) tr { position: relative}
  .main .table-wrap table:has(td[data-label]) td:first-child:has(> input[type=checkbox]:only-child) { position: absolute; top: 14px; right: 16px; grid-column: auto}
  .main .table-wrap table:has(td[data-label]) td:first-child:has(> input[type=checkbox]:only-child) + td { grid-column: 1 / -1; grid-row: 1; padding-right: 28px; font-size: 15px}
  .main .table-wrap table:has(td[data-label]) td:first-child:has(> input[type=checkbox]:only-child) + td::before { display: none}
}

/* Kurabiye nokta: "kuki." kelime işaretindeki nokta ve bölüm başlıklarındaki turuncu işaret küçük bir ısırılmış kurabiye */
.shell, .auth, body { --cookie-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 2.2a9.8 9.8 0 1 0 9.66 11.45 2.45 2.45 0 0 1-2.9-2.56 2.45 2.45 0 0 1-2.66-3.01A2.45 2.45 0 0 1 14 2.4 9.8 9.8 0 0 0 12 2.2zM8 7.7a1.3 1.3 0 1 0 0 2.6 1.3 1.3 0 0 0 0-2.6zm2.8 5.8a1.45 1.45 0 1 0 0 2.9 1.45 1.45 0 0 0 0-2.9zm5.2 1.5a1.1 1.1 0 1 0 0 2.2 1.1 1.1 0 0 0 0-2.2z'/%3E%3C/svg%3E")}
.page-heading .eyebrow::before, .dashboard-heading .eyebrow::before, .dash-hero .eyebrow::before, .dash-hero + .overview-label::before {
  width: 11px !important; height: 11px !important; border-radius: 0 !important; background: var(--accent) !important;
  -webkit-mask: var(--cookie-mask) center/contain no-repeat; mask: var(--cookie-mask) center/contain no-repeat}
.wordmark .brand-dot, .auth-wordmark > span, .kuki-dot { display: inline-block; width: .34em; height: .34em; margin-left: .05em; vertical-align: baseline; font-size: inherit; color: transparent !important; overflow: hidden;
  background: var(--crumb); -webkit-mask: var(--cookie-mask) center/contain no-repeat; mask: var(--cookie-mask) center/contain no-repeat}

/* ═══ Bildirimler v2: tam genişlik; geniş ekranda solda kategori menüsü, sağda liste; okunmamış satır vurgulu ═══ */
.notif-page { max-width: none}
.notif-card { display: grid !important; grid-template-columns: 220px minmax(0, 1fr); grid-auto-rows: auto; align-items: start}
.notif-card > input[type=hidden] { display: none}
.notif-card > .notif-tabs { grid-column: 1; grid-row: 1 / span 99; display: flex; flex-direction: column; gap: 2px; padding: 14px 10px; border-right: 1px solid var(--border); border-bottom: 0; align-self: stretch; overflow: visible}
.notif-card > .notif-tabs a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; border-radius: 10px; border: 0 !important; font-weight: 600; color: var(--muted-strong); text-decoration: none; white-space: nowrap}
.notif-card > .notif-tabs a:hover { background: var(--surface-2); color: var(--heading)}
.notif-card > .notif-tabs a.on { background: color-mix(in srgb, var(--sec, var(--brand)) 10%, var(--surface)); color: color-mix(in srgb, var(--sec, var(--brand)) 80%, var(--panel-ink, var(--heading))); font-weight: 600; box-shadow: inset 3px 0 0 color-mix(in srgb, var(--sec, var(--brand)) 80%, var(--panel-ink, #0a0f24))}
.notif-card > .notif-tabs a::after { display: none !important}
.notif-card > .notif-bar { grid-column: 2; grid-row: 1; background: var(--surface)}
.notif-card > .notif-help { grid-column: 2}
.notif-card > :is(.notif-day, .notif-list, .filters, .empty) { grid-column: 2}
.notif-item { border-radius: 12px; transition: background .15s, transform .15s}
.notif-item:hover { background: var(--surface-2)}
.notif-item.unread { background: color-mix(in srgb, var(--sec, var(--brand)) 5%, var(--surface))}
.notif-item.unread .notif-text { font-weight: 600}
.notif-day { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted)}
.notif-all { padding: 6px 10px; border-radius: 9px; border: 1px solid var(--border)}
.notif-card.has-sel .notif-all { border-color: color-mix(in srgb, var(--sec, var(--brand)) 40%, var(--border)); background: color-mix(in srgb, var(--sec, var(--brand)) 8%, var(--surface))}
@media (max-width: 900px) {
  .notif-card { grid-template-columns: minmax(0, 1fr)}
  .notif-card > .notif-tabs { grid-row: auto}
  .notif-card > .notif-bar, .notif-card > .notif-help { grid-column: 1; grid-row: auto}
  .notif-card > .notif-tabs { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--border); padding: 8px; scrollbar-width: none}
  .notif-card > .notif-tabs a { flex: none}
  .notif-card > :is(.notif-day, .notif-list, .filters, .empty) { grid-column: 1}
}

/* Üst çubuk: "Firma / Sayfa" yolu yerine sade firma rozeti; telefonda yok (sayfa adı başlık panelinde) */
.topbar-ctx { gap: 0}
.tb-company { display: inline-flex; align-items: center; gap: 8px; max-width: 260px; height: 34px; padding: 0 12px 0 5px; border-radius: 99px; font-size: 13px; font-weight: 600; color: var(--heading);
  background: color-mix(in srgb, var(--surface) 72%, transparent); border: 1px solid color-mix(in srgb, var(--sec, var(--brand)) 14%, var(--border)); white-space: nowrap}
.tb-company > i { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-style: normal; font-size: 11px; font-weight: 700; color: var(--on-solid);
  background: color-mix(in srgb, var(--sec, var(--brand)) 80%, var(--panel-ink, var(--inverse)))}
.tb-company > span { overflow: hidden; text-overflow: ellipsis}
@media (max-width: 760px) { .topbar-ctx { display: none} }

/* Takvim: bugün belirgin (bölüm renginde çerçeve, açık zemin, dolu gün numarası, "Bugün" etiketi);
   hafta satırları eşit yükseklikte (her gün en çok 3 kayıt, fazlası "+n daha") */
.uc-cal .cal-day.today { background: color-mix(in srgb, var(--sec, var(--brand)) 7%, var(--surface)) !important;
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--sec, var(--brand)) 70%, var(--panel-ink, #0a0f24)); border-radius: 10px; position: relative; z-index: 1}
.uc-cal .cal-day.today .cal-num { display: inline-grid !important; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 99px;
  background: color-mix(in srgb, var(--sec, var(--brand)) 80%, var(--panel-ink, var(--inverse))) !important; color: var(--on-solid) !important; font-weight: 700}
.uc-cal .cal-day.today::before { content: "Bugün"; position: absolute; top: 14px; right: 10px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: color-mix(in srgb, var(--sec, var(--brand)) 80%, var(--panel-ink, var(--heading)))}
.uc-cal .cal-day.out { background: color-mix(in srgb, var(--surface-2) 70%, transparent)}
.uc-cal .cal-day.out .cal-num { color: var(--faint)}
@media (min-width: 761px) { .uc-cal .cal-row:not(:first-child) { grid-auto-rows: 1fr} .uc-cal .cal-day { min-height: 148px} }

/* Saha ziyaretleri: filtre şeridi, durum rozetleri, not kutuları */
.visit-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; padding: 14px 16px}
.visit-filter .vf-q { flex: 1 1 260px; min-width: 200px; height: 40px}
.visit-filter label.fg { display: flex; flex-direction: column; gap: 4px; margin: 0; font-size: 12px; font-weight: 600; color: var(--muted)}
.visit-filter label.fg :is(input, select) { height: 40px; min-width: 150px}
.visit-filter .vf-acts { display: flex; gap: 8px}
.visit-row { align-items: flex-start}
.visit-body .badge { margin: 6px 6px 0 0}
.visit-note { margin: 8px 0 0; padding: 8px 12px; border-radius: 10px; border-left: 3px solid color-mix(in srgb, var(--sec, var(--brand)) 60%, transparent);
  background: var(--surface-2); font-size: 13.5px; line-height: 1.5; white-space: pre-line; color: var(--text)}
.visit-note.work { border-left-color: color-mix(in srgb, var(--b-green) 60%, transparent)}
.vn-l { display: block; margin-bottom: 2px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted)}
@media (max-width: 760px) { .visit-filter .vf-q { flex-basis: 100%} .visit-filter label.fg { flex: 1 1 calc(50% - 6px)} .visit-filter label.fg :is(input, select) { min-width: 0; width: 100%} }
/* Müşteri kartı: saha ziyareti kaydetme çağrısı belirgin bir kart */
.visit-box:not([open]) { margin: 0 0 14px}
.visit-cta { display: flex !important; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border-radius: 4px 16px 16px 16px; list-style: none; cursor: pointer;
  background: linear-gradient(135deg, color-mix(in srgb, var(--sec, var(--brand)) 10%, var(--surface)), var(--surface)); border: 1px solid color-mix(in srgb, var(--sec, var(--brand)) 22%, var(--border));
  box-shadow: 0 10px 24px -20px color-mix(in srgb, var(--sec, var(--brand)) 70%, transparent); transition: transform .2s var(--spring, ease), box-shadow .2s}
.visit-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -20px color-mix(in srgb, var(--sec, var(--brand)) 80%, transparent)}
.vc-ic { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: var(--on-solid); background: color-mix(in srgb, var(--sec, var(--brand)) 80%, var(--panel-ink, var(--inverse)))}
.vc-ic svg { width: 22px; height: 22px}
.vc-t { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0}
.vc-t b { color: var(--heading); font-size: 15px}
.vc-t small { color: var(--muted); font-size: 12.5px}
.vc-go { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-size: 20px; font-weight: 600; color: color-mix(in srgb, var(--sec, var(--brand)) 80%, var(--panel-ink, var(--heading))); background: color-mix(in srgb, var(--sec, var(--brand)) 12%, var(--surface)); transition: transform .2s}
.visit-box[open] .vc-go { transform: rotate(45deg)}
.visit-box[open] { padding: 0 0 16px} .visit-box[open] form { padding: 0 16px}

/* Toplantılar: gün grupları, sağlayıcı rozeti, saat bloğu */
.meet-group { display: flex; align-items: center; gap: 8px; margin: 0; padding: 14px 20px 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); border-top: 1px solid var(--border)}
.meet-group:first-of-type { border-top: 0}
.meet-group span { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--surface-2); color: var(--muted-strong); font-size: 11px; letter-spacing: 0}
.meet-when { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 62px; padding: 8px 6px; border-radius: 12px;
  background: color-mix(in srgb, var(--sec, var(--brand)) 9%, var(--surface)); color: color-mix(in srgb, var(--sec, var(--brand)) 80%, var(--panel-ink, var(--heading)))}
.meet-when b { font-size: 17px; font-variant-numeric: tabular-nums} .meet-when span { font-size: 11.5px; color: var(--muted-strong)}   /* opaklık kontrastı 4,32:1'e düşürüyordu */
.meet-when.live { background: color-mix(in srgb, var(--b-green) 14%, var(--surface)); color: var(--b-green); box-shadow: 0 0 0 2px color-mix(in srgb, var(--b-green) 40%, transparent)}
.meet-prov { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: var(--heading)}
.meet-prov::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted)}
.meet-prov.prov-meet::before { background: var(--s-blue)} .meet-prov.prov-zoom::before { background: var(--s-blue)} .meet-prov.prov-teams::before { background: var(--s-blue)} .meet-prov.prov-jitsi::before { background: var(--s-blue)}
.meet-row { transition: background .15s} .meet-row:hover { background: var(--surface-2)}

/* ═══ Görev panosu v2 (Linear/Trello tarzı): renkli sütun başlığı, sade kart, öncelik ve tarih rozetleri, ilerleme çubuğu ═══ */
.board { gap: 14px; padding-bottom: 6px}
.board-col { background: color-mix(in srgb, var(--surface-2) 70%, transparent) !important; border: 1px solid var(--border) !important; border-radius: 4px 16px 16px 16px !important; padding: 10px !important; border-top: 0 !important; box-shadow: none !important}
.board-col > h3.bc-head { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 8px 10px; border-radius: 10px; background: var(--surface); font-size: 13.5px; font-weight: 700; color: var(--heading);
  box-shadow: inset 0 3px 0 var(--colc, var(--brand)), 0 1px 2px rgb(16 24 40 / .05)}
.bc-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--colc, var(--brand)); flex: none}
.bc-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap}
.bc-count { min-width: 24px; height: 22px; padding: 0 7px; display: inline-grid; place-items: center; border-radius: 99px; font-size: 12px; font-weight: 700;
  background: color-mix(in srgb, var(--colc, var(--brand)) 14%, var(--surface)); color: color-mix(in srgb, var(--colc, var(--brand)) 85%, var(--panel-ink, var(--heading)))}
.board-card { position: relative; padding: 11px 12px 10px !important; border: 1px solid var(--border) !important; border-left: 1px solid var(--border) !important; border-radius: 12px !important;
  background: var(--surface) !important; box-shadow: 0 1px 2px rgb(16 24 40 / .05) !important; transition: transform .18s var(--spring, ease), box-shadow .18s, border-color .18s}
.board-card::before { display: none !important}
.board-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--sec, var(--brand)) 30%, var(--border)) !important; box-shadow: 0 12px 24px -16px rgb(16 24 40 / .35) !important}
.board-card.overdue { border-color: color-mix(in srgb, var(--b-red) 35%, var(--border)) !important}
.board-card.dragging { opacity: .55; transform: rotate(2deg) scale(.98)}
.bc-top { display: flex; align-items: center; gap: 6px; margin-bottom: 4px}
.bc-top .bc-num { margin-left: auto; font-size: 11.5px; color: var(--faint); font-variant-numeric: tabular-nums}
.bc-pr { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px; border-radius: 99px; font-size: 11px; font-weight: 700}
.bc-pr::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor}
.bc-pr.high { background: var(--b-red-bg); color: var(--b-red)} .bc-pr.low { background: var(--b-gray-bg); color: var(--b-gray)}
.board-card .t { display: block; font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--heading); text-decoration: none}
.board-card .t:hover { color: color-mix(in srgb, var(--sec, var(--brand)) 80%, var(--panel-ink, var(--heading)))}
.board-card .bc-meta { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px 6px}
.board-card .bc-cust { font-size: 12px; color: var(--muted)}
.board-card .bc-foot { margin-top: 10px; padding-top: 8px; border-top: 1px dashed color-mix(in srgb, var(--border) 80%, transparent); display: flex; align-items: center; gap: 8px}
.bc-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; flex: 1; min-width: 0}
.bc-due { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600; background: var(--surface-2); color: var(--muted-strong)}
.bc-due::before { content: ""; width: 12px; height: 12px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Crect x='3.5' y='5' width='17' height='15' rx='2.5'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Crect x='3.5' y='5' width='17' height='15' rx='2.5'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4'/%3E%3C/svg%3E") center/contain no-repeat}
.bc-due.late { background: var(--b-red-bg); color: var(--b-red)} .bc-due.soon { background: var(--b-amber-bg); color: var(--b-amber)}
.bc-check { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--muted-strong)}
.bc-prog { display: block; width: 36px; height: 5px; border-radius: 99px; background: var(--surface-2); overflow: hidden}
.bc-prog > i { display: block; height: 100%; border-radius: inherit; background: color-mix(in srgb, var(--sec, var(--brand)) 70%, transparent)}
.bc-check.ok { color: var(--b-green)} .bc-check.ok .bc-prog > i { background: var(--b-green)}
.bc-who .avatar.sm { width: 26px; height: 26px; border-radius: 50%; font-size: 10.5px}
.bc-who.none { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px dashed var(--border-strong); font-size: 12px; font-weight: 700; color: var(--faint)}
.board-col .bc-add summary { border-radius: 10px !important; background: transparent !important; border: 1.5px dashed var(--border-strong) !important; color: var(--muted-strong); font-weight: 600}
.board-col .bc-add summary:hover { border-color: color-mix(in srgb, var(--sec, var(--brand)) 50%, var(--border)) !important; color: color-mix(in srgb, var(--sec, var(--brand)) 80%, var(--panel-ink, var(--heading)))}
.board-col.drop-ok { outline: 2px dashed color-mix(in srgb, var(--sec, var(--brand)) 60%, transparent) !important; background: color-mix(in srgb, var(--sec, var(--brand)) 6%, var(--surface)) !important}
.board-card .bc-move select { height: 30px; font-size: 12px}

/* ═══ Sohbet v2 (WhatsApp mantığı): solda son mesaja göre liste, sağda balonlu konuşma, yuvarlak yazma alanı; telefonda liste ↔ konuşma ═══ */
.chat-shell { gap: 0 !important; height: var(--chat-h, 70vh); grid-template-columns: 320px minmax(0, 1fr) !important}
.chat-shell.with-thread { grid-template-columns: 300px minmax(0, 1fr) 340px !important}
@media (max-width: 1100px) { .chat-shell { grid-template-columns: 270px minmax(0, 1fr) !important} }
.chat-shell > .card { border-radius: 0 !important; margin: 0 !important}
.chat-shell > .chat-side { border-radius: 4px 0 0 18px !important; border-right: 0 !important; display: flex; flex-direction: column; min-height: 0; padding: 0 !important}
.chat-shell > .chat-main { border-radius: 0 18px 18px 0 !important}
.wa-side-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 8px; font-size: 17px; color: var(--heading)}
.wa-side-acts { display: flex; gap: 4px}
.wa-search { position: relative; margin: 0 12px 8px}
.wa-search svg { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; margin-top: -8px; color: var(--muted); pointer-events: none}
.wa-search input { height: 38px !important; padding-left: 36px !important; border-radius: 99px !important; background: var(--surface-2) !important; border-color: transparent !important}
.wa-list { flex: 1; min-height: 0; overflow-y: auto; padding: 0 6px 8px; display: block !important}
.wa-list .chat-side-label { padding: 12px 10px 4px; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted)}
.wa-item { display: flex !important; align-items: center; gap: 11px; width: 100%; padding: 9px 10px !important; border-radius: 12px !important; border: 0; background: none; text-align: left; text-decoration: none !important; color: var(--text); cursor: pointer; font: inherit}
.wa-item:hover { background: var(--surface-2)}
.wa-item.active { background: color-mix(in srgb, var(--sec, var(--brand)) 11%, var(--surface)) !important}
.wa-person { margin: 0} .wa-person[hidden], .wa-item[hidden] { display: none !important}
.wa-av { flex: none; position: relative}
.wa-av .avatar, .wa-av.wa-ch { width: 44px !important; height: 44px !important; border-radius: 50% !important; font-size: 14px !important}
.wa-av.wa-ch { display: grid; place-items: center; font-size: 19px !important; font-weight: 700; color: color-mix(in srgb, var(--sec, var(--brand)) 80%, var(--panel-ink, var(--heading))); background: color-mix(in srgb, var(--sec, var(--brand)) 13%, var(--surface))}
.wa-av.wa-ch svg { width: 21px; height: 21px}
.wa-av.wa-ch.ann { color: var(--b-amber); background: var(--b-amber-bg)}
.wa-av.wa-ch.sm { width: 36px !important; height: 36px !important; font-size: 16px !important}
.wa-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px}
.wa-name { font-size: 14.5px; font-weight: 600; color: var(--heading); overflow: hidden; text-overflow: ellipsis; white-space: nowrap}
.wa-prev { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap}
.wa-item.has-unread .wa-prev { color: var(--heading); font-weight: 600}
.wa-end { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px}
.wa-time { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums}
.wa-item.has-unread .wa-time { color: color-mix(in srgb, var(--b-green) 90%, var(--heading)); font-weight: 600}
.wa-badge { min-width: 20px; height: 20px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 99px; font-size: 11px; font-weight: 700; color: var(--on-solid); background: var(--s-green)}
.wa-new { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 17px; font-weight: 600; color: color-mix(in srgb, var(--sec, var(--brand)) 80%, var(--panel-ink, var(--heading))); background: color-mix(in srgb, var(--sec, var(--brand)) 11%, var(--surface))}
.wa-msgsearch { padding: 8px 12px 12px; border-top: 1px solid var(--border)} .wa-msgsearch input { height: 34px; font-size: 13px}
.wa-back { display: none !important}

/* konuşma alanı: duvar kâğıdı gibi hafif desenli zemin, mesaj balonları */
.chat-main .chat-head { gap: 10px; padding: 10px 16px !important}
.chat-main .chat-head .avatar { width: 38px; height: 38px; border-radius: 50%}
.chat-main .chat-msgs { background: color-mix(in srgb, var(--sec, var(--brand)) 4%, var(--surface-2)); padding: 14px 6% !important}
.cmsg { gap: 8px !important; padding: 2px 0 !important; border: 0 !important; background: none !important}
.cmsg > .avatar { width: 30px; height: 30px; border-radius: 50%; align-self: flex-end}
.cmsg-body { max-width: min(560px, 78%); padding: 7px 11px 6px; border-radius: 4px 14px 14px 14px; background: var(--surface); box-shadow: 0 1px 1px rgb(16 24 40 / .08)}
.cmsg.mine { flex-direction: row-reverse}
.cmsg.mine > .avatar { display: none}
.cmsg.mine .cmsg-body { margin-left: auto; border-radius: 14px 4px 14px 14px; background: color-mix(in srgb, var(--sec, var(--brand)) 16%, var(--surface))}
.cmsg.mine .cmsg-head b { display: none}
.cmsg-head { display: flex; align-items: baseline; gap: 6px; font-size: 12.5px}
.cmsg-head b { color: color-mix(in srgb, var(--sec, var(--brand)) 80%, var(--panel-ink, var(--heading)))}
.cmsg-head time { margin-left: auto; order: 9; font-size: 11px}
.cmsg-text { font-size: 14px; line-height: 1.45; color: var(--heading)}
.cmsg-actions { gap: 10px; margin-top: 2px; opacity: 0; transition: opacity .15s}
.cmsg:hover .cmsg-actions, .cmsg:focus-within .cmsg-actions { opacity: 1}
.cmsg-img img { max-width: 280px; border-radius: 10px; display: block; margin-top: 4px}
.cmsg-file { display: flex !important; align-items: center; gap: 10px; margin-top: 4px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); text-decoration: none; color: var(--heading); font-weight: 600}
.chat-day span { background: var(--surface) !important; box-shadow: 0 1px 1px rgb(16 24 40 / .08); border-radius: 8px !important; font-size: 11.5px}
/* yazma alanı */
.chat-input { display: flex !important; align-items: flex-end; gap: 8px; padding: 10px 12px !important; background: var(--surface); border-top: 1px solid var(--border)}
.chat-input textarea { flex: 1; min-height: 44px; max-height: 140px; padding: 11px 16px !important; border-radius: 22px !important; background: var(--surface-2) !important; border-color: transparent !important; resize: none}
.chat-input .attach-btn { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; color: var(--muted-strong)}
.chat-input .attach-btn:hover { background: var(--surface-2); color: var(--heading)}
.chat-input .attach-btn input { position: absolute; width: 1px; height: 1px; opacity: 0}
.chat-input .wa-send, .chat-input > button.primary { flex: none; width: 44px; height: 44px; min-height: 44px; padding: 0 !important; border-radius: 50% !important; display: grid; place-items: center}
.chat-input .wa-send svg { width: 20px; height: 20px; margin-left: 2px}
.wa-file { align-self: center; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; padding: 4px 10px; border-radius: 99px; background: var(--surface-2); color: var(--heading)}

/* telefon: liste ve konuşma ayrı ekran (WhatsApp gibi); konuşmada geri tuşu */
@media (max-width: 760px) {
  .page-heading:has(+ .chat-shell) { display: none}
  .chat-shell { display: block !important; height: var(--chat-h, calc(100dvh - 140px)) !important; margin: -8px -16px 0 !important}
  .chat-shell > .chat-main .chat-input { margin-top: auto}
  .chat-shell > .chat-side { display: none !important}
  .chat-shell > .chat-main { height: 100%; border-radius: 0 !important; border: 0 !important; display: flex; flex-direction: column}
  .chat-main .chat-msgs { flex: 1; padding: 10px 10px !important}
  .wa-back { display: inline-grid !important}
  .cmsg-body { max-width: 86%}
  .cmsg-actions { opacity: 1}
  .chat-shell.list-only > .chat-side { display: flex !important; height: 100%; border-radius: 0 !important; border: 0 !important}
  .chat-shell.list-only .wa-list { flex: 1}
  .chat-shell.list-only > .chat-main { display: none !important}
}
@media (max-width: 760px) {
  /* telefonda sohbet: üst çubuk ile alt sekme çubuğu arasını tam doldurur */
  .chat-shell { height: calc(100dvh - 62px - 76px - env(safe-area-inset-bottom)) !important}
  .chat-shell.list-only > .chat-side { min-height: 100%}
  .chat-shell.list-only .wa-list { flex: 1 1 auto; min-height: 0}
}

/* kontrast (axe): takvimde ay dışı günler ve bugün; bildirim kategori menüsünde seçili öğe (koyu tema) */
.uc-cal .cal-day.out .cal-num { color: var(--muted-strong)}
.uc-cal .cal-day.today .cal-num { background: color-mix(in srgb, var(--sec, var(--brand)) 70%, var(--panel-ink, var(--inverse))) !important}
[data-theme=dark] .notif-card > .notif-tabs a.on { background: color-mix(in srgb, var(--sec, var(--brand)) 30%, var(--surface))}

/* Destek talepleri: görünüm şeridi (sayı + ad tek satır) ve konu sütunu geniş */
.tk-views { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px}
.tk-views a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); color: var(--muted-strong); font-size: 13.5px; font-weight: 600; text-decoration: none}
.tk-views a b { font-size: 15px; color: var(--heading)}
.tk-views a small { font-size: 11.5px; font-weight: 500; color: var(--muted)}
.tk-views a:hover { border-color: var(--border-strong)}
.tk-views a.on { border-color: var(--heading); color: var(--heading); background: var(--bg)}
.tk-views a.tk-bad b { color: var(--danger)}
.tk-views a.tk-warn b { color: var(--b-amber)}
.tk-table th:nth-child(1) { width: 38%} .tk-table th:nth-child(2) { width: 15%} .tk-table th:nth-child(3) { width: 12%}
.tk-table th:nth-child(4) { width: 9%} .tk-table th:nth-child(5) { width: 15%} .tk-table th:nth-child(6) { width: 11%}
.tk-table td .badge { white-space: nowrap}
.tk-table td:first-child a { display: inline}
.tk-table td:first-child .badge { margin-left: 6px}
@media (max-width: 640px) { .tk-views { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none} .tk-views a { flex: none} }

/* Teklif ayrıntısı (düzenlenebilir): ürün tablosu tam genişlik; teklif bilgileri üstte tek satır özet, "Düzenle" ile açılır */
.task-layout.q-wide { grid-template-columns: minmax(0, 1fr)}
.q-meta { margin: 0 0 16px; padding: 0}
.q-meta > summary { display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; list-style: none}
.q-meta > summary::-webkit-details-marker { display: none}
.q-meta-sum { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font-size: 13.5px; color: var(--muted-strong)}
.q-meta-sum b { color: var(--heading); font-size: 14px}
.q-meta[open] > summary { border-bottom: 1px solid var(--border)}
.q-meta[open] .q-meta-edit { visibility: hidden}
.q-meta > form { padding: 4px 16px 16px; max-width: 760px}
.q-wide .lines-table th:first-child { width: 44%}
.q-wide .lines-table td:first-child b { overflow-wrap: anywhere}

/* Takvim: hücreler sıkı (bugün ve ay sonu ilk ekranda); yan panel geniş, başlıklar iki satıra kadar; seçili gün tam başlıkla */
.cal-wrap { grid-template-columns: minmax(0, 1fr) 340px}
@media (max-width: 1100px) { .cal-wrap { grid-template-columns: minmax(0, 1fr)} }
@media (min-width: 761px) { .uc-cal .cal-day { min-height: 108px} }
.uc-cal .cal-day.today::before { content: none}   /* "Bugün" yazısı numaranın üstüne biniyordu; vurgulu numara ve zemin yeterli */
.uc-cal .cal-day .cal-num { color: inherit; text-decoration: none}
.uc-cal .cal-day a.cal-num:hover { text-decoration: underline}
.uc-cal .cal-day.sel { box-shadow: inset 0 0 0 2px var(--heading)}
.cal-agenda .ag-scroll { position: static; inset: auto; flex: 1 1 0; min-height: 0}
.cal-agenda li a { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.35}
.ag-sel { margin: 0 18px 10px; padding: 0 0 12px; border-bottom: 1px solid var(--border)}
.ag-sel h2 { display: flex; align-items: baseline; gap: 8px; margin: 0 0 6px}
.ag-sel .ag-clear { margin-left: auto; color: var(--muted); text-decoration: none}
.ag-sel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px}
.ag-sel li { display: flex; align-items: baseline; gap: 8px}
.cal-agenda .ag-sel li a { display: inline; -webkit-line-clamp: unset; overflow: visible}
