/* ==========================================================================
   Sezar Çağrı Merkezi — tasarım sistemi v3 · palet A (zümrüt + sıcak nötr)
   Krem/sıcak nötr yüzeyler, tek vurgu rengi koyu zümrüt; altın-siyah logoyla uyumlu.
   Açık ve koyu tema ayrı ayrı ayarlıdır; sol menü dahil her şey temaya uyar.
   ========================================================================== */
:root {
  color-scheme: light;
  --bg: #f5f3ee;
  --surface: #ffffff;
  --surface-2: #faf9f6;
  --surface-3: #f0ede6;
  --border: #e7e3da;
  --border-soft: #efece5;
  --border-strong: #d6d1c6;
  --text: #1c1b17;
  --text-2: #57534a;
  --muted: #8b867b;
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b867b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");

  --accent: #0f6b4f;
  --accent-hover: #0b5a42;
  --accent-soft: #e8f1ec;
  --accent-soft-2: #d0e4d9;
  --accent-text: #0d6247;
  --on-accent: #ffffff;
  --ring: rgba(15, 107, 79, .20);

  --success: #1b7a43;  --success-dot: #2f9e5f;
  --warning: #a8560c;  --warning-dot: #e59a1a;
  --danger: #b4282e;   --danger-dot: #dc4a4f;
  --info: #2554b8;     --info-dot: #4a83e6;
  --violet: #6b3fc7;   --violet-dot: #8d68e0;
  --gray: #5f5b52;     --gray-dot: #b4afa4;

  --series-1: #13805c;
  --series-2: #e5e0d6;
  --grid: #f0ede6;
  --axis: #ddd8cd;

  --hero-bg: radial-gradient(900px 340px at 100% 0%, rgba(226, 204, 146, .20), transparent 60%),
             linear-gradient(118deg, #0a3a2c 0%, #0f5843 52%, #136e50 100%);
  --hero-line: rgba(255, 248, 230, .14);
  --hero-shadow: 0 20px 40px -26px rgba(10, 58, 44, .7);

  --sb-bg: #fbfaf7;
  --sb-border: #e7e3da;
  --sb-text: #57534a;
  --sb-strong: #1c1b17;
  --sb-muted: #948f84;
  --sb-hover: #f2efe9;
  --sb-active: #e8f1ec;
  --sb-active-text: #0d6247;

  --overlay: rgba(22, 20, 15, .44);
  --shadow-xs: 0 1px 1px rgba(28, 27, 23, .03);
  --shadow-sm: 0 1px 2px rgba(28, 27, 23, .05);
  --shadow-card: 0 1px 2px rgba(28, 27, 23, .04), 0 2px 8px -4px rgba(28, 27, 23, .06);
  --shadow: 0 2px 4px rgba(28, 27, 23, .04), 0 10px 24px -12px rgba(28, 27, 23, .16);
  --shadow-lg: 0 24px 48px -16px rgba(28, 27, 23, .26), 0 8px 16px -8px rgba(28, 27, 23, .10);
  --topbar-bg: rgba(245, 243, 238, .82);
  --skel: #ece8e0;
  --skel-hi: #f7f5f1;
  --radius: 14px;
  --radius-sm: 9px;
  --radius-xs: 7px;
  --font: "Inter var", Inter, system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --sidebar-w: 252px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #12110e; --surface: #1a1915; --surface-2: #1e1d18; --surface-3: #24221d;
    --border: #2c2a24; --border-soft: #23211c; --border-strong: #3a372f;
    --text: #ece7da; --text-2: #b3ad9f; --muted: #7d786c;
    --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237d786c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    --accent: #4fbf8e; --accent-hover: #63cc9e; --accent-soft: rgba(79, 191, 142, .12); --accent-soft-2: rgba(79, 191, 142, .22);
    --accent-text: #6fd0a4; --on-accent: #0c1a13; --ring: rgba(79, 191, 142, .28);
    --success: #6dd49a; --success-dot: #3fb873; --warning: #f2c063; --warning-dot: #e5a02a;
    --danger: #f08a85; --danger-dot: #e05a55; --info: #9db8f5; --info-dot: #6290e8;
    --violet: #c7b6f5; --violet-dot: #a58ae8; --gray: #b3ad9f; --gray-dot: #5e594f;
    --series-1: #4fbf8e; --series-2: #322f28; --grid: #23211c; --axis: #34312a;
    --hero-bg: radial-gradient(900px 340px at 100% 0%, rgba(226, 204, 146, .09), transparent 60%),
               linear-gradient(118deg, #0d251d 0%, #133729 52%, #184533 100%);
    --hero-line: rgba(255, 248, 230, .10);
    --hero-shadow: 0 20px 40px -26px rgba(0, 0, 0, .9);
    --sb-bg: #161511; --sb-border: #26241e; --sb-text: #b3ad9f; --sb-strong: #f0ebdf; --sb-muted: #757064;
    --sb-hover: rgba(255, 250, 235, .045); --sb-active: rgba(79, 191, 142, .12); --sb-active-text: #6fd0a4;
    --overlay: rgba(0, 0, 0, .62);
    --shadow-xs: 0 1px 1px rgba(0, 0, 0, .2);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-card: 0 1px 2px rgba(0, 0, 0, .25);
    --shadow: 0 2px 4px rgba(0, 0, 0, .3), 0 10px 24px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 24px 48px -16px rgba(0, 0, 0, .8), 0 8px 16px -8px rgba(0, 0, 0, .5);
    --topbar-bg: rgba(18, 17, 14, .80);
    --skel: #221f1a; --skel-hi: #2c2a24;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #12110e; --surface: #1a1915; --surface-2: #1e1d18; --surface-3: #24221d;
  --border: #2c2a24; --border-soft: #23211c; --border-strong: #3a372f;
  --text: #ece7da; --text-2: #b3ad9f; --muted: #7d786c;
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237d786c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  --accent: #4fbf8e; --accent-hover: #63cc9e; --accent-soft: rgba(79, 191, 142, .12); --accent-soft-2: rgba(79, 191, 142, .22);
  --accent-text: #6fd0a4; --on-accent: #0c1a13; --ring: rgba(79, 191, 142, .28);
  --success: #6dd49a; --success-dot: #3fb873; --warning: #f2c063; --warning-dot: #e5a02a;
  --danger: #f08a85; --danger-dot: #e05a55; --info: #9db8f5; --info-dot: #6290e8;
  --violet: #c7b6f5; --violet-dot: #a58ae8; --gray: #b3ad9f; --gray-dot: #5e594f;
  --series-1: #4fbf8e; --series-2: #322f28; --grid: #23211c; --axis: #34312a;
  --hero-bg: radial-gradient(900px 340px at 100% 0%, rgba(226, 204, 146, .09), transparent 60%),
             linear-gradient(118deg, #0d251d 0%, #133729 52%, #184533 100%);
  --hero-line: rgba(255, 248, 230, .10);
  --hero-shadow: 0 20px 40px -26px rgba(0, 0, 0, .9);
  --sb-bg: #161511; --sb-border: #26241e; --sb-text: #b3ad9f; --sb-strong: #f0ebdf; --sb-muted: #757064;
  --sb-hover: rgba(255, 250, 235, .045); --sb-active: rgba(79, 191, 142, .12); --sb-active-text: #6fd0a4;
  --overlay: rgba(0, 0, 0, .62);
  --shadow-xs: 0 1px 1px rgba(0, 0, 0, .2);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, .25);
  --shadow: 0 2px 4px rgba(0, 0, 0, .3), 0 10px 24px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 24px 48px -16px rgba(0, 0, 0, .8), 0 8px 16px -8px rgba(0, 0, 0, .5);
  --topbar-bg: rgba(18, 17, 14, .80);
  --skel: #221f1a; --skel-hi: #2c2a24;
}

/* ========================================================================== temel */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { -webkit-text-size-adjust: 100%; }
/* Genel arayüz ölçeği: masaüstünde panel bir tık küçük (2026-12-05, kullanıcı istedi). 1 = eski boyut. */
:root { --ui-zoom: .9; }
@media (min-width: 761px) { html { zoom: var(--ui-zoom); } }
body { background: var(--bg); color: var(--text); font: 14px/1.5 var(--font); font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
h1, h2, h3, h4 { margin: 0; color: var(--text); line-height: 1.3; font-weight: 600; letter-spacing: -.012em; }
h1 { font-size: 24px; font-weight: 650; letter-spacing: -.025em; }
h2 { font-size: 15px; }
h3 { font-size: 14.5px; }
h4 { font-size: 13.5px; }
p { margin: 0; }
small, .small { font-size: 12.5px; }
b, strong { font-weight: 600; }
button, input, select, textarea { font-family: inherit; }
img { max-width: 100%; }
::selection { background: var(--accent-soft-2); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.muted { color: var(--muted); }
.text-2 { color: var(--text-2); }
.num { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.grow { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; gap: 8px; }
.row-wrap { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack-sm { display: flex; flex-direction: column; gap: 10px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.no-copy, .no-copy * { -webkit-user-select: none; user-select: none; }
.no-copy input, .no-copy textarea { -webkit-user-select: text; user-select: text; }
.hide-sm { } .show-sm { display: none !important; }
@media (max-width: 760px) { .hide-sm { display: none !important; } .show-sm { display: initial !important; } .rank.show-sm { display: inline-grid !important; } }
.boot { display: grid; min-height: 100vh; align-content: center; justify-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.boot::before { content: ''; width: 28px; height: 28px; border-radius: 50%; border: 2.5px solid var(--border-strong); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--p, var(--success-dot)) 45%, transparent); } 100% { box-shadow: 0 0 0 7px transparent; } }
@keyframes shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }
@keyframes flash { 0% { background: var(--accent-soft-2); } 100% { background: transparent; } }

/* ========================================================================== yerleşim */
.layout { display: flex; min-height: 100vh; }
.sidebar { width: var(--sidebar-w); flex-shrink: 0; background: var(--sb-bg); border-right: 1px solid var(--sb-border); display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; z-index: 40; color: var(--sb-text); transition: transform .22s ease; }
.brand { display: flex; align-items: center; gap: 11px; padding: 16px 16px 12px 18px; min-height: 68px; }
.brand-logo { width: 38px; height: 38px; object-fit: contain; flex-shrink: 0; }
.brand-name { font-weight: 700; font-size: 15px; line-height: 1.2; color: var(--sb-strong); letter-spacing: -.02em; }
.brand-sub { font-size: 12px; color: var(--sb-muted); margin-top: 1px; }
.nav { flex: 1; overflow-y: auto; padding: 4px 12px 12px; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
.nav-group { font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--sb-muted); padding: 14px 10px 5px; }
.nav-group:first-child { padding-top: 4px; }
.nav-item { position: relative; display: flex; align-items: center; gap: 11px; height: 35px; padding: 0 10px; border-radius: 9px; color: var(--sb-text); font-size: 13.5px; font-weight: 500; cursor: pointer; transition: background .12s, color .12s; }
.nav-item + .nav-item { margin-top: 1px; }
.nav-item svg { color: var(--sb-muted); flex-shrink: 0; transition: color .12s; }
.nav-item:hover { background: var(--sb-hover); color: var(--sb-strong); text-decoration: none; }
.nav-item:hover svg { color: var(--sb-text); }
.nav-item.active { background: var(--sb-active); color: var(--sb-active-text); font-weight: 600; }
.nav-item.active svg { color: var(--sb-active-text); }
.nav-badge { margin-left: auto; min-width: 20px; height: 19px; padding: 0 6px; border-radius: 10px; background: var(--danger-dot); color: #fff; font-size: 11px; font-weight: 650; display: inline-grid; place-items: center; font-variant-numeric: tabular-nums; }
.sidebar-foot { padding: 10px 12px 12px; position: relative; border-top: 1px solid var(--sb-border); }
.foot-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; font: inherit; color: var(--sb-text); text-align: left; transition: background .12s; }
.foot-btn:hover, .foot-btn.open { background: var(--sb-hover); }
.foot-btn svg { color: var(--sb-muted); flex-shrink: 0; }
.foot-name { display: block; color: var(--sb-strong); font-size: 13px; font-weight: 600; }
.foot-role { display: block; font-size: 12px; color: var(--sb-muted); }
.menu.menu-up { top: auto; bottom: calc(100% + 2px); left: 12px; right: 12px; min-width: 0; }

.main { flex: 1; margin-left: var(--sidebar-w); min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 60px; display: flex; align-items: center; gap: 6px; padding: 0 32px; background: var(--topbar-bg); -webkit-backdrop-filter: saturate(170%) blur(14px); backdrop-filter: saturate(170%) blur(14px); border-bottom: 1px solid var(--border-soft); position: sticky; top: 0; z-index: 30; }
.topbar-title { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.clock { display: flex; align-items: center; gap: 9px; color: var(--text-2); font-size: 13px; }
.clock b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.clock .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--border-strong); }
.live-pill { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 550; color: var(--text-2); border: 1px solid var(--border); background: var(--surface); margin-left: 8px; }
.live-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--success-dot); --p: var(--success-dot); animation: ping 2s infinite; }
.live-pill.off { color: var(--warning); }
.live-pill.off::before { background: var(--warning-dot); animation: pulse 1.2s infinite; }
.topbar-sep { width: 1px; height: 22px; background: var(--border); margin: 0 6px; }
.content { padding: 28px 32px 56px; flex: 1; width: 100%; max-width: 1480px; margin: 0 auto; }
.content > * { animation: rise .22s ease-out; }
.menu-btn { display: none !important; }
.backdrop { display: none; }
@media (max-width: 1080px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: none; box-shadow: var(--shadow-lg); }
  .main { margin-left: 0; }
  .menu-btn { display: inline-grid !important; }
  .backdrop.open { display: block; position: fixed; inset: 0; background: var(--overlay); z-index: 35; animation: fadein .15s; }
  .content { padding: 20px 16px 40px; }
  .topbar { padding: 0 10px 0 6px; height: 56px; }
}
@media (max-height: 860px) and (min-width: 1081px) {
  .brand { min-height: 60px; padding-top: 12px; padding-bottom: 8px; }
  .nav-item { height: 32px; }
  .nav-group { padding: 10px 10px 4px; }
  .sidebar-foot { padding: 8px 12px; }
}
.imp-banner { background: color-mix(in srgb, var(--violet-dot) 11%, var(--surface)); color: var(--text); border-bottom: 1px solid color-mix(in srgb, var(--violet-dot) 24%, var(--border)); padding: 8px 32px; display: flex; align-items: center; gap: 12px; font-size: 13px; flex-wrap: wrap; }
.imp-banner svg { color: var(--violet); }
.conn-lost { background: color-mix(in srgb, var(--warning-dot) 12%, var(--surface)); color: var(--warning); padding: 7px 16px; font-size: 12.5px; font-weight: 550; border-bottom: 1px solid color-mix(in srgb, var(--warning-dot) 24%, var(--border)); }
@media (max-width: 1080px) { .imp-banner { padding-left: 16px; padding-right: 16px; } }
.only-mobile { display: none !important; }
@media (max-width: 1080px) { .only-mobile { display: flex !important; } .only-desktop { display: none !important; } div.only-mobile.topbar-title { display: block !important; } }

/* ========================================================================== sayfa başlığı */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head > div:first-child { min-width: 0; }
.page-head p { color: var(--text-2); margin-top: 5px; font-size: 13.5px; max-width: 680px; }
.page-head .actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.page-head .actions .input { width: auto; max-width: 100%; }
@media (max-width: 760px) {
  .page-head { flex-direction: column; align-items: stretch; margin-bottom: 18px; gap: 12px; }
  h1 { font-size: 21px; }
  .page-head .actions > * { flex: 1 1 auto; }
  .page-head .actions .date-range { flex: 1 1 100%; }
}

/* ========================================================================== kart */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-card); min-width: 0; }
.card-head { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--border); min-height: 56px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; }
.card-head .sub { font-size: 12.5px; color: var(--muted); }
.card-head .count { font-size: 12.5px; color: var(--muted); font-weight: 500; margin-left: 6px; font-variant-numeric: tabular-nums; }
.card-body { padding: 20px; }
.card-body.tight { padding: 0; }
.card-foot { padding: 12px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; align-items: center; gap: 8px; flex-wrap: wrap; background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); }
.card-intro { padding: 18px 20px 16px; border-bottom: 1px solid var(--border); }
.card-intro h2 { font-size: 15px; display: flex; align-items: center; gap: 8px; }
.card-intro p { color: var(--text-2); font-size: 13px; margin-top: 3px; }
.card > .table-wrap:last-child, .card > .pager:last-child { border-radius: 0 0 var(--radius) var(--radius); }
.card > .table-wrap:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.card > .table-wrap:only-child { border-radius: var(--radius); }
.grid { display: grid; gap: 20px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-21 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.g-side { grid-template-columns: minmax(0, 1fr) 340px; }
.g-side-l { grid-template-columns: 370px minmax(0, 1fr); }
.align-start { align-items: start; }
@media (max-width: 1240px) { .g-side, .g-side-l, .g-21 { grid-template-columns: minmax(0, 1fr); } .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .g-2, .g-3 { grid-template-columns: minmax(0, 1fr); } .grid { gap: 16px; } }
.section-title { font-size: 12.5px; font-weight: 600; color: var(--text-2); margin: 2px 0 10px; }
.icon-chip { width: 32px; height: 32px; border-radius: 9px; display: inline-grid; place-items: center; flex-shrink: 0; color: var(--t, var(--accent-text)); background: color-mix(in srgb, var(--t, var(--accent)) 12%, transparent); }

/* ========================================================================== rakam kartları */
.tiles { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1240px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .tiles { gap: 12px; } }
.tile { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 18px 20px 18px; display: flex; flex-direction: column; min-width: 0; color: var(--text); transition: border-color .15s, box-shadow .15s, transform .15s; }
a.tile:hover { border-color: color-mix(in srgb, var(--t, var(--accent)) 40%, var(--border)); box-shadow: var(--shadow); text-decoration: none; transform: translateY(-1px); }
.tile-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tile-icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; color: var(--t); background: color-mix(in srgb, var(--t) 12%, transparent); }
.tile-label { font-size: 13px; color: var(--text-2); font-weight: 550; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-go { margin-left: auto; color: var(--muted); opacity: 0; transition: opacity .15s, transform .15s; }
a.tile:hover .tile-go { opacity: 1; transform: translateX(2px); }
.tile-value { font-size: 28px; font-weight: 650; line-height: 1.1; margin-top: 16px; letter-spacing: -.035em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-sub { font-size: 12.5px; color: var(--muted); margin-top: 7px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-height: 19px; }
.tile-bar { height: 5px; border-radius: 4px; background: var(--surface-3); overflow: hidden; margin-top: 12px; }
.tile-bar span { display: block; height: 100%; background: var(--t); border-radius: 4px; transition: width .4s ease; }
.t-primary { --t: var(--accent); } .t-success { --t: var(--success-dot); } .t-warning { --t: var(--warning-dot); }
.t-danger { --t: var(--danger-dot); } .t-violet { --t: var(--violet-dot); } .t-info { --t: var(--info-dot); } .t-gray { --t: var(--gray-dot); }
.delta { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; font-size: 12px; padding: 1px 7px 1px 5px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.delta.up { color: var(--success); background: color-mix(in srgb, var(--success-dot) 13%, transparent); }
.delta.down { color: var(--danger); background: color-mix(in srgb, var(--danger-dot) 12%, transparent); }
.delta.flat { color: var(--muted); background: var(--surface-3); padding: 1px 7px; }
@media (max-width: 520px) {
  .tile { padding: 14px 15px; } .tile-value { font-size: 23px; margin-top: 12px; } .tile-icon { width: 26px; height: 26px; }
  .tile-top { min-height: 32px; gap: 9px; } .tile-go { display: none; }
  .tile-label { font-size: 12.5px; line-height: 1.25; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}

/* özet şeridi: tek kartta yan yana küçük rakamlar (ayırıcılar satır kayınca da bozulmaz) */
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-card); overflow: hidden; }
/* ayırıcı çizgiler her hücrenin sol/üst kenarında; kenardakiler kırpılır, satır kayınca boş alan gri görünmez */
.strip > * { margin: -1px 0 0 -1px; box-shadow: inset 1px 0 0 var(--border), inset 0 1px 0 var(--border); background: var(--surface); padding: 15px 20px; min-width: 0; display: flex; flex-direction: column; gap: 2px; color: var(--text); }
.strip > a { transition: background .12s; }
.strip > a:hover { background: var(--surface-2); text-decoration: none; }
.strip span { font-size: 12.5px; color: var(--text-2); display: flex; align-items: center; gap: 7px; font-weight: 500; }
.strip span svg { color: var(--muted); }
.strip b { font-size: 22px; font-weight: 650; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.3; }
.strip b small { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.strip small { font-size: 12px; color: var(--muted); }
.strip .on b { color: var(--accent-text); }
.strip .warn b { color: var(--warning); }
.strip.in-card { border: 0; border-radius: 0; box-shadow: none; border-bottom: 1px solid var(--border); }
@media (max-width: 760px) { .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } .strip > * { padding: 13px 15px; } .strip b { font-size: 19px; } }

/* ========================================================================== düğmeler */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: inherit; font-weight: 550; font-size: 13.5px; cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s, box-shadow .12s, color .12s, transform .06s; box-shadow: var(--shadow-xs); text-decoration: none; -webkit-tap-highlight-color: transparent; }
.btn:hover { background: var(--surface-2); border-color: color-mix(in srgb, var(--border-strong) 70%, var(--text-2)); text-decoration: none; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn svg { flex-shrink: 0; }
.btn-primary, .btn-success { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: 0 1px 2px rgba(0, 0, 0, .08), inset 0 1px 0 rgba(255, 255, 255, .14); }
.btn-primary:hover, .btn-success:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.btn-primary:disabled, .btn-success:disabled { opacity: .45; }
.btn-danger { background: var(--danger-dot); border-color: var(--danger-dot); color: #fff; }
.btn-danger:hover { background: color-mix(in srgb, var(--danger-dot) 86%, #000); border-color: color-mix(in srgb, var(--danger-dot) 86%, #000); }
.btn-soft-danger { color: var(--danger); }
.btn-soft-danger:hover { background: color-mix(in srgb, var(--danger-dot) 8%, var(--surface)); border-color: color-mix(in srgb, var(--danger-dot) 38%, var(--border-strong)); color: var(--danger); }
.btn-soft { background: var(--accent-soft); border-color: transparent; color: var(--accent-text); box-shadow: none; }
.btn-soft:hover { background: var(--accent-soft-2); border-color: transparent; }
.btn-ghost { border-color: transparent; background: transparent; box-shadow: none; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-3); color: var(--text); border-color: transparent; }
.btn-link { border: 0; background: none; box-shadow: none; padding: 0; height: auto; color: var(--accent-text); font-weight: 550; }
.btn-link:hover { background: none; text-decoration: underline; }
.btn-sm { height: 32px; padding: 0 11px; font-size: 13px; gap: 6px; }
.btn-xs { height: 28px; padding: 0 9px; font-size: 12.5px; gap: 5px; border-radius: var(--radius-xs); }
.btn-lg { height: 44px; padding: 0 20px; font-size: 14.5px; gap: 9px; border-radius: 11px; }
.btn-block { width: 100%; }
.btn-icon { width: 36px; padding: 0; }
.btn-sm.btn-icon { width: 32px; }
.btn-xs.btn-icon { width: 28px; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius-sm); border: 0; background: transparent; color: var(--text-2); cursor: pointer; position: relative; transition: background .12s, color .12s; flex-shrink: 0; -webkit-tap-highlight-color: transparent; }
.icon-btn:hover { background: var(--surface-3); color: var(--text); }
.icon-btn:disabled { opacity: .4; cursor: not-allowed; background: transparent; }
.icon-btn.sm { width: 30px; height: 30px; border-radius: var(--radius-xs); }
.icon-btn .dot-count { position: absolute; top: 2px; right: 1px; background: var(--danger-dot); color: #fff; font-size: 10px; font-weight: 700; min-width: 17px; height: 17px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; border: 2px solid var(--bg); line-height: 1; font-variant-numeric: tabular-nums; }
.spinner { width: 15px; height: 15px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; display: inline-block; flex-shrink: 0; }

/* ========================================================================== form */
label.field, .field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text); font-weight: 550; min-width: 0; }
.field .hint { font-weight: 400; color: var(--muted); font-size: 12px; order: 3; line-height: 1.45; }
.field .err { font-weight: 500; color: var(--danger); font-size: 12px; order: 4; }
.input, select.input, textarea.input { height: 36px; padding: 0 11px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font: inherit; font-size: 13.5px; font-weight: 400; width: 100%; min-width: 0; transition: border-color .12s, box-shadow .12s, background .12s; box-shadow: var(--shadow-xs); }
.input:hover:not(:disabled):not(:focus) { border-color: color-mix(in srgb, var(--border-strong) 65%, var(--text-2)); }
textarea.input { height: auto; padding: 9px 11px; resize: vertical; min-height: 72px; line-height: 1.5; }
select.input { -webkit-appearance: none; appearance: none; padding-right: 32px; background-image: var(--select-arrow); background-repeat: no-repeat; background-position: right 11px center; background-size: 12px; cursor: pointer; text-overflow: ellipsis; }
select.input-sm { padding-right: 28px; background-position: right 9px center; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.input:disabled { background: var(--surface-2); color: var(--muted); cursor: not-allowed; box-shadow: none; }
.input::placeholder { color: var(--muted); opacity: 1; }
.input.invalid { border-color: var(--danger-dot); }
.input.invalid:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger-dot) 22%, transparent); }
.input-sm { height: 32px; font-size: 13px; padding: 0 10px; }
input[type="date"].input, input[type="datetime-local"].input { padding-right: 8px; }
input[type="date"]::-webkit-calendar-picker-indicator, input[type="datetime-local"]::-webkit-calendar-picker-indicator { opacity: .55; cursor: pointer; }
:root[data-theme="dark"] input[type="date"]::-webkit-calendar-picker-indicator, :root[data-theme="dark"] input[type="datetime-local"]::-webkit-calendar-picker-indicator { filter: invert(1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) input[type="date"]::-webkit-calendar-picker-indicator, :root:not([data-theme="light"]) input[type="datetime-local"]::-webkit-calendar-picker-indicator { filter: invert(1); } }
input[type="number"].input { -moz-appearance: textfield; }
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
.form-grid.one { grid-template-columns: minmax(0, 1fr); }
.form-grid > .field-check { align-self: end; min-height: 36px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.input-affix { position: relative; display: flex; }
.input-affix .input { padding-right: 56px; flex: 1; }
.input-affix em { position: absolute; right: 1px; top: 1px; bottom: 1px; display: grid; place-items: center; padding: 0 11px; font-style: normal; font-size: 12px; font-weight: 600; color: var(--muted); border-left: 1px solid var(--border); background: var(--surface-2); border-radius: 0 calc(var(--radius-sm) - 1px) calc(var(--radius-sm) - 1px) 0; pointer-events: none; }
.input-icon { position: relative; display: flex; }
.input-icon > svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon .input { padding-left: 38px; }
.check { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--text); cursor: pointer; font-weight: 400; line-height: 1.4; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; flex-shrink: 0; cursor: pointer; }
.switch { position: relative; display: inline-block; width: 36px; height: 20px; flex-shrink: 0; cursor: pointer; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; background: var(--border-strong); border-radius: 20px; transition: background .18s; }
.switch span::before { content: ''; position: absolute; width: 16px; height: 16px; left: 2px; top: 2px; background: #fff; border-radius: 50%; transition: transform .18s; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::before { transform: translateX(16px); }
.switch input:focus-visible + span { box-shadow: 0 0 0 3px var(--ring); }
.switch input:disabled + span { opacity: .5; cursor: not-allowed; }
.switch-row { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text-2); }

/* araç çubuğu (filtreler) */
.filters, .toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filters { margin-bottom: 16px; }
.toolbar { padding: 12px 20px; border-bottom: 1px solid var(--border); }
.filters .input, .toolbar .input { width: auto; max-width: 100%; }
.toolbar .spacer, .filters .spacer { flex: 1; }
.toolbar .count { font-size: 12.5px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.search { position: relative; min-width: 0; }
.search > svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search .input { padding-left: 34px; width: 250px; max-width: 100%; }
.search.grow .input, .search.full .input { width: 100%; }
@media (max-width: 760px) {
  .toolbar { padding: 12px 14px; }
  .toolbar > .search, .filters > .search { flex: 1 1 100%; }
  .toolbar > .search .input, .filters > .search .input { width: 100%; }
  .toolbar select.input, .filters select.input { flex: 1 1 140px; }
  .toolbar .spacer { display: none; }
}
.date-range { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.date-range input { width: 146px !important; }
@media (max-width: 760px) { .date-range { width: 100%; } .date-range select.input { flex: 1 1 100%; } .date-range input { flex: 1 1 120px; width: auto !important; } }

/* ========================================================================== tablo */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
table.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.table th { text-align: left; font-weight: 550; color: var(--muted); font-size: 12px; padding: 9px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; background: var(--surface-2); }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
.table th:first-child, .table td:first-child { padding-left: 20px; }
.table th:last-child, .table td:last-child { padding-right: 20px; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .1s; }
.table tbody tr:hover td { background: var(--surface-2); }
.table tfoot td { border-top: 1px solid var(--border-strong); background: var(--surface-2); font-weight: 600; }
.table td.actions, .table th.actions { text-align: right; white-space: nowrap; width: 1%; }
.table td.actions > * + * { margin-left: 4px; }
.table td.actions .row { justify-content: flex-end; }
/* işlem sütunu taşmada sağda sabit kalır */
.table-wrap .table td.actions, .table-wrap .table th.actions { position: sticky; right: 0; z-index: 1; }
.table-wrap .table td.actions { background: var(--surface); }
.table-wrap .table tbody tr:hover td.actions { background: var(--surface-2); }
.table .r { text-align: right; }
.table .c { text-align: center; }
.table tr.highlight td { animation: flash 2.5s ease-out; }
.table tr.muted-row td { color: var(--muted); }
.table tr.muted-row .cell-main { color: var(--text-2); }
.table tr.clickable { cursor: pointer; }
.table th.sortable { cursor: pointer; user-select: none; }
.table th.sortable:hover { color: var(--text); }
.table th.sorted { color: var(--accent-text); }
.table td.col-sorted { font-weight: 650; color: var(--text); }
.table tr.audio-row td { background: var(--surface-2); }
.table tr.audio-row audio { width: 100%; max-width: 520px; height: 36px; display: block; }
.table tr.row-warn td { background: color-mix(in srgb, var(--danger-dot) 5%, transparent); }
.table.compact td { padding: 9px 14px; }
.table.compact th:first-child, .table.compact td:first-child { padding-left: 16px; }
.table.compact th:last-child, .table.compact td:last-child { padding-right: 16px; }
.table .wrap { white-space: normal; min-width: 220px; }
.cell-main { font-weight: 550; color: var(--text); }
.cell-sub { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.cell-user { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cell-user .cell-main { white-space: nowrap; }
.rank { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--surface-3); font-weight: 650; font-size: 12.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.rank.r1 { background: color-mix(in srgb, #e4b23b 22%, transparent); color: #a07408; }
.rank.r2 { background: color-mix(in srgb, #98a2ad 24%, transparent); color: var(--text-2); }
.rank.r3 { background: color-mix(in srgb, #c98a54 22%, transparent); color: #9a5c26; }
:root[data-theme="dark"] .rank.r1 { color: #f0c44f; } :root[data-theme="dark"] .rank.r3 { color: #e0a272; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rank.r1 { color: #f0c44f; } :root:not([data-theme="light"]) .rank.r3 { color: #e0a272; } }
.pager { display: flex; align-items: center; justify-content: space-between; padding: 11px 20px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-2); gap: 8px; flex-wrap: wrap; }
.pager .row { gap: 6px; }

/* mobil: tablo satırları kart olur (td'lerde data-label) */
@media (max-width: 760px) {
  .table.rt thead { display: none; }
  .table.rt, .table.rt tbody, .table.rt tr, .table.rt td { display: block; width: 100%; }
  .table.rt tr { padding: 12px 16px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; }
  .table.rt td.rt-title { order: -1; }
  .table.rt td.actions { order: 99; }
  .table.rt tbody tr:last-child { border-bottom: 0; }
  .table.rt tbody tr:hover td { background: none; }
  .table.rt td { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 4px 0 !important; border: 0; text-align: right; min-height: 28px; }
  .table.rt td > * { min-width: 0; }
  .table.rt td::before { content: attr(data-label); color: var(--muted); font-size: 12.5px; text-align: left; flex-shrink: 0; font-weight: 500; }
  .table.rt td:not([data-label])::before, .table.rt td[data-label=""]::before { display: none; }
  .table.rt td.rt-title { display: block; text-align: left; padding-bottom: 6px !important; }
  .table.rt td.rt-title::before { display: none; }
  .table.rt td.r { text-align: right; }
  .table.rt td.actions { position: static; justify-content: flex-start; padding-top: 10px !important; width: 100%; background: none !important; flex-wrap: wrap; }
  .table.rt td.actions::before { display: none; }
  .table.rt td.actions > * + * { margin-left: 0; }
  .table.rt td.actions { gap: 6px; }
  .table.rt td.hide-rt { display: none; }
  .table.rt tr.audio-row { padding-top: 0; }
  .table.rt tfoot { display: none; }
  .table-wrap:has(> .table.rt) { overflow-x: visible; }
}

/* ========================================================================== rozet / durum */
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 550; background: var(--surface-3); color: var(--text-2); white-space: nowrap; vertical-align: middle; line-height: 1; }
.badge svg { flex-shrink: 0; }
.badge[class*="b-"] { color: var(--bt); background: color-mix(in srgb, var(--bd) 13%, transparent); }
.badge .dot { width: 6px; height: 6px; background: currentColor; }
.b-primary { --bt: var(--info); --bd: var(--info-dot); }
.b-info { --bt: var(--accent-text); --bd: var(--accent); }
.b-success { --bt: var(--success); --bd: var(--success-dot); }
.b-warning { --bt: var(--warning); --bd: var(--warning-dot); }
.b-danger { --bt: var(--danger); --bd: var(--danger-dot); }
.b-violet { --bt: var(--violet); --bd: var(--violet-dot); }
.b-gray { --bt: var(--text-2); --bd: var(--gray-dot); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; background: var(--gray-dot); }
.dot.lg { width: 10px; height: 10px; }
.s-ready { background: var(--success-dot); } .s-in_call { background: var(--info-dot); } .s-break { background: var(--warning-dot); }
.s-wrapup { background: var(--violet-dot); } .s-offline { background: var(--gray-dot); }
.pulse { animation: pulse 1.6s infinite; }
.status { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font: inherit; font-size: 13px; cursor: pointer; color: var(--text-2); font-weight: 500; transition: background .12s, border-color .12s, color .12s; white-space: nowrap; }
.chip:hover { border-color: var(--border-strong); color: var(--text); }
.chip.active { background: var(--text); border-color: var(--text); color: var(--surface); }
.chip .cnt, .chip i { font-style: normal; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.chip.active .cnt, .chip.active i { color: color-mix(in srgb, var(--surface) 70%, transparent); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-static { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border: 1px solid var(--border); border-radius: 999px; font-size: 13px; color: var(--text-2); background: var(--surface); white-space: nowrap; }
.avatar { --av: var(--accent); width: 34px; height: 34px; border-radius: 50%; background: color-mix(in srgb, var(--av) 15%, var(--surface)); color: color-mix(in srgb, var(--av) 80%, var(--text)); display: grid; place-items: center; font-weight: 650; font-size: 12.5px; flex-shrink: 0; letter-spacing: .01em; position: relative; }
.avatar.sm { width: 30px; height: 30px; font-size: 11.5px; }
.avatar.lg { width: 48px; height: 48px; font-size: 16px; }
.avatar.xl { width: 68px; height: 68px; font-size: 23px; }
.avatar .st { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--surface); }
.progress { height: 6px; background: var(--surface-3); border-radius: 3px; overflow: hidden; min-width: 60px; }
.progress > span { display: block; height: 100%; background: var(--accent); border-radius: 3px; transition: width .3s; }

/* ========================================================================== sekmeler */
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--border); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; padding: 11px 0 12px; border: 0; background: none; color: var(--text-2); font: inherit; font-weight: 550; font-size: 13.5px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; transition: color .12s; flex-shrink: 0; }
.tab svg { color: var(--muted); }
.tab::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px 2px 0 0; background: transparent; transition: background .15s; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); }
.tab.active svg { color: var(--accent-text); }
.tab.active::after { background: var(--accent); }
.tab .cnt { color: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; background: var(--surface-3); padding: 1px 7px; border-radius: 999px; font-weight: 600; }
.tab.active .cnt { color: var(--accent-text); background: var(--accent-soft); }
.tabs.in-card { margin: 0; padding: 0 20px; gap: 20px; }
@media (max-width: 760px) { .tabs { gap: 18px; } .tabs.in-card { padding: 0 14px; } }
.seg { display: inline-flex; background: var(--surface-3); border-radius: 10px; padding: 3px; gap: 2px; max-width: 100%; overflow-x: auto; scrollbar-width: none; flex-shrink: 0; }
.seg::-webkit-scrollbar { display: none; }
.seg button { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px; border: 0; border-radius: 7px; background: none; font: inherit; font-size: 13px; font-weight: 550; color: var(--text-2); cursor: pointer; white-space: nowrap; transition: background .12s, color .12s, box-shadow .12s; }
.seg button:hover { color: var(--text); }
.seg button.active, .seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 0 0 1px var(--border); }
.seg button svg { color: var(--muted); }
.seg button.active svg, .seg button.on svg { color: var(--accent-text); }
.seg i { font-style: normal; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.seg.sm button { height: 26px; padding: 0 10px; font-size: 12.5px; }

/* ========================================================================== modal */
.modal-backdrop { position: fixed; inset: 0; background: var(--overlay); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 8vh 16px 16px; overflow-y: auto; }
.modal { background: var(--surface); border-radius: 16px; width: 100%; max-width: 520px; display: flex; flex-direction: column; max-height: 84vh; border: 1px solid var(--border); box-shadow: var(--shadow-lg); animation: pop .18s ease-out; }
.modal-sm { max-width: 420px; } .modal-lg { max-width: 760px; } .modal-xl { max-width: 1040px; }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 16px 16px 14px 22px; border-bottom: 1px solid var(--border); }
.modal-head h3 { flex: 1; font-size: 16px; font-weight: 650; letter-spacing: -.015em; }
.modal-body { padding: 22px; overflow-y: auto; }
.modal-foot { padding: 12px 22px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; background: var(--surface-2); border-radius: 0 0 16px 16px; }
@media (max-width: 640px) {
  .modal-backdrop { padding: 10px 0 0; align-items: flex-end; }
  .modal { max-height: 94vh; border-radius: 18px 18px 0 0; border-bottom: 0; animation: sheet .22s ease-out; }
  .modal-body { padding: 18px; }
  .modal-foot { border-radius: 0; padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  .modal-foot .btn { flex: 1; }
}
@keyframes sheet { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
.fade-enter-active, .fade-leave-active { transition: opacity .15s; }
.fade-enter-from, .fade-leave-to { opacity: 0; }

/* ========================================================================== uyarı, toast, boş durum, iskelet */
.alert { display: flex; gap: 11px; padding: 12px 14px; border-radius: 11px; font-size: 13.5px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); align-items: flex-start; line-height: 1.5; }
.alert > svg { flex-shrink: 0; margin-top: 1px; color: var(--accent-text); }
.alert.info, .alert:not(.warning):not(.danger):not(.success) { background: color-mix(in srgb, var(--accent) 6%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 20%, var(--border)); }
.alert.warning { background: color-mix(in srgb, var(--warning-dot) 9%, var(--surface)); border-color: color-mix(in srgb, var(--warning-dot) 30%, var(--border)); }
.alert.warning > svg { color: var(--warning); }
.alert.danger { background: color-mix(in srgb, var(--danger-dot) 8%, var(--surface)); border-color: color-mix(in srgb, var(--danger-dot) 30%, var(--border)); }
.alert.danger > svg { color: var(--danger); }
.alert.success { background: color-mix(in srgb, var(--success-dot) 8%, var(--surface)); border-color: color-mix(in srgb, var(--success-dot) 28%, var(--border)); }
.alert.success > svg { color: var(--success); }
.toasts { position: fixed; top: 14px; right: 14px; z-index: 200; display: flex; flex-direction: column; gap: 8px; width: 360px; max-width: calc(100vw - 28px); pointer-events: none; }
.toast { pointer-events: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow-lg); display: flex; gap: 11px; align-items: flex-start; font-size: 13.5px; animation: slidein .2s ease-out; cursor: pointer; color: var(--text); }
.toast-ic { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; color: #fff; background: var(--t); margin-top: 0; }
.toast.success { --t: var(--success-dot); } .toast.error { --t: var(--danger-dot); } .toast.warning { --t: var(--warning-dot); } .toast.info { --t: var(--accent); }
.toast .t-title { font-weight: 650; margin-bottom: 1px; }
.toast .t-msg { color: var(--text-2); }
.toast .t-title + .t-msg { font-size: 13px; }
@keyframes slidein { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 640px) { .toasts { top: auto; bottom: 12px; right: 12px; left: 12px; width: auto; max-width: none; } }
.empty { text-align: center; padding: 44px 20px; color: var(--muted); font-size: 13px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.empty-ic { width: 46px; height: 46px; border-radius: 14px; background: var(--surface-3); color: var(--muted); display: grid; place-items: center; margin-bottom: 8px; }
.empty-t { color: var(--text); font-weight: 600; font-size: 14px; }
.empty-s { max-width: 420px; line-height: 1.5; }
.empty .btn { margin-top: 10px; }
.empty.sm { padding: 26px 16px; }
.empty.sm .empty-ic { width: 38px; height: 38px; border-radius: 11px; margin-bottom: 4px; }
.empty.sm .empty-t { font-size: 13.5px; }
.skel { background: linear-gradient(90deg, var(--skel) 0, var(--skel-hi) 40%, var(--skel) 80%); background-size: 800px 100%; animation: shimmer 1.3s linear infinite; border-radius: 8px; }
.skel-page { display: flex; flex-direction: column; gap: 20px; }
.skel-row { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.skel-card { height: 112px; border-radius: var(--radius); }
.skel-big { height: 300px; border-radius: var(--radius); }
.skel-lines { display: flex; flex-direction: column; gap: 12px; padding: 20px; }
.skel-line { height: 14px; }
@media (max-width: 760px) { .skel-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 36px 16px; color: var(--muted); font-size: 13px; }
.loading .spinner { width: 18px; height: 18px; color: var(--accent); }

/* ========================================================================== açılır menü */
.dropdown { position: relative; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); min-width: 220px; padding: 5px; z-index: 60; animation: pop .14s ease-out; color: var(--text); }
.menu-item { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: 7px; font-size: 13.5px; cursor: pointer; color: var(--text); border: 0; background: none; width: 100%; text-align: left; font-family: inherit; font-weight: 450; white-space: nowrap; }
.menu-item svg { color: var(--muted); flex-shrink: 0; }
.menu-item:hover { background: var(--surface-3); text-decoration: none; }
.menu-item.active { color: var(--accent-text); font-weight: 550; }
.menu-item.active svg { color: var(--accent-text); }
.menu-item .check-ic { margin-left: auto; color: var(--accent-text); }
.menu-item.danger { color: var(--danger); }
.menu-item.danger svg { color: var(--danger); }
.menu-sep { height: 1px; background: var(--border); margin: 5px -5px; }
.menu-label { font-size: 11.5px; color: var(--muted); padding: 7px 10px 4px; font-weight: 550; }
.menu-user { padding: 8px 10px 9px; display: flex; align-items: center; gap: 10px; }
.theme-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; background: var(--surface-3); border-radius: 9px; padding: 3px; margin: 2px 4px 4px; }
.theme-seg button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 28px; border: 0; background: none; border-radius: 7px; font: inherit; font-size: 12.5px; font-weight: 550; color: var(--text-2); cursor: pointer; }
.theme-seg button:hover { color: var(--text); }
.theme-seg button.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 0 0 1px var(--border); }
.notif-list { width: 380px; max-width: calc(100vw - 24px); max-height: min(520px, 75vh); overflow-y: auto; padding: 0; }
.notif-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 16px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); z-index: 1; border-radius: 12px 12px 0 0; }
.notif { display: flex; gap: 11px; padding: 12px 16px; border-bottom: 1px solid var(--border-soft); cursor: pointer; font-size: 13.5px; }
.notif:last-child { border-bottom: 0; }
.notif:hover { background: var(--surface-2); }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; background: transparent; margin-top: 6px; flex-shrink: 0; }
.notif.unread .notif-dot { background: var(--accent); }
.status-btn { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); font: inherit; font-size: 13px; font-weight: 550; cursor: pointer; color: var(--text); box-shadow: var(--shadow-xs); }
.status-btn:hover:not(:disabled) { background: var(--surface-2); }
.status-btn:disabled { cursor: default; }
.status-btn svg { color: var(--muted); }
@media (max-width: 560px) { .status-btn .st-time { display: none; } .status-btn { padding: 0 10px; } }
@media (max-width: 640px) { .dropdown .menu:not(.menu-up) { position: fixed; top: 60px; right: 10px; left: 10px; width: auto; max-width: none; } }

/* ========================================================================== giriş */
.login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); background: var(--bg); }
.login-art { position: relative; overflow: hidden; isolation: isolate; color: #efeadc; display: flex; flex-direction: column; justify-content: space-between; padding: 36px 44px; background: #0b0f0c; }
.login-art::before { content: ''; position: absolute; inset: -30%; z-index: -2;
  background: radial-gradient(38% 34% at 28% 26%, rgba(30, 140, 100, .30), transparent 70%),
              radial-gradient(34% 30% at 78% 76%, rgba(12, 90, 66, .40), transparent 70%),
              radial-gradient(30% 28% at 70% 18%, rgba(212, 175, 92, .16), transparent 70%);
  animation: drift 26s ease-in-out infinite alternate; }
.login-art::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 15, 12, 0) 40%, rgba(11, 15, 12, .72) 100%); }
@keyframes drift { 0% { transform: translate3d(0, 0, 0) rotate(0); } 100% { transform: translate3d(4%, -3%, 0) rotate(8deg); } }
.login-art-top { display: flex; align-items: center; gap: 10px; font-size: 13px; color: rgba(239, 234, 220, .7); font-weight: 500; }
.login-art-top .dot { background: #4fbf8e; box-shadow: 0 0 0 4px rgba(79, 191, 142, .18); }
.login-art-mid { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.login-mark { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; background: var(--accent); color: var(--on-accent); }
.login-mark.lg { width: 88px; height: 88px; border-radius: 24px; background: rgba(79, 191, 142, .14); color: #4fbf8e; border: 1px solid rgba(79, 191, 142, .28); box-shadow: 0 22px 44px rgba(0, 0, 0, .4); }
.login-art-mid h2 { font-size: 26px; color: #f6f2e7; letter-spacing: -.03em; font-weight: 650; line-height: 1.25; }
.login-art-mid p { color: rgba(239, 234, 220, .62); font-size: 14.5px; max-width: 360px; margin: 8px auto 0; line-height: 1.55; }
.login-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.login-feats > div { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .08); font-size: 12.5px; color: rgba(239, 234, 220, .8); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); min-width: 0; }
.login-feats svg { color: #d9bf7e; flex-shrink: 0; }
.login-side { display: flex; flex-direction: column; padding: 28px 28px 24px; background: var(--surface); position: relative; min-height: 100vh; }
.login-side-top { display: flex; justify-content: flex-end; }
.login-center { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px 0; }
.login-card { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 18px; animation: rise .3s ease-out; }
.login-card .lc-head { margin-bottom: 6px; }
.login-card .lc-mark { width: 44px; height: 44px; margin-bottom: 18px; display: block; }
.login-card h1 { font-size: 26px; letter-spacing: -.03em; }
.login-card .lead { color: var(--text-2); margin-top: 6px; font-size: 14px; }
.login-card .input { height: 46px; font-size: 14.5px; border-radius: 11px; }
.login-card .input-icon .input { padding-left: 42px; }
.login-card .input-icon > svg { left: 14px; }
.login-card .btn-lg { height: 46px; margin-top: 4px; }
.login-mobile-brand { display: none; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 48px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }
.caps { display: flex; align-items: center; gap: 6px; color: var(--warning); font-size: 12.5px; font-weight: 500; order: 5; }
.login-foot { display: flex; align-items: center; justify-content: center; gap: 7px; color: var(--muted); font-size: 12.5px; }
.login-copy { text-align: center; color: var(--muted); font-size: 12px; }
.otp { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.otp input { height: 54px; width: 100%; text-align: center; font-size: 22px; font-weight: 650; font-variant-numeric: tabular-nums; border: 1px solid var(--border-strong); border-radius: 11px; background: var(--surface); color: var(--text); transition: border-color .12s, box-shadow .12s; padding: 0; caret-color: var(--accent); }
.otp input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.otp.sm input { height: 44px; font-size: 18px; border-radius: 9px; }
.otp.sm { max-width: 320px; gap: 6px; }
@media (max-width: 1000px) {
  .login-page { grid-template-columns: minmax(0, 1fr); }
  .login-art { display: none; }
  .login-side { padding: 18px 20px; }
  .login-mobile-brand { display: flex; justify-content: center; margin-bottom: 6px; }
  .login-card .lc-mark { display: none; }
  .login-card h1 { font-size: 23px; text-align: center; }
  .login-card .lead { text-align: center; }
}
.logo-on-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-on-light { display: none; } :root:not([data-theme="light"]) .logo-on-dark { display: block; } }
:root[data-theme="dark"] .logo-on-light { display: none; }
:root[data-theme="dark"] .logo-on-dark { display: block; }

/* ========================================================================== karşılama alanı (Dashboard / Ana sayfa) */
.hero { position: relative; overflow: hidden; isolation: isolate; border-radius: 18px; padding: 28px 32px; background: var(--hero-bg); color: #fff; display: flex; gap: 28px; align-items: center; justify-content: space-between; flex-wrap: wrap; box-shadow: var(--hero-shadow); }
.hero-laurel { position: absolute; z-index: -1; right: -40px; top: 50%; width: 360px; transform: translateY(-50%); color: var(--hero-line); pointer-events: none; }
.hero::after { content: ''; position: absolute; z-index: -1; inset: 0; border-radius: inherit; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), inset 0 0 0 1px rgba(255, 255, 255, .04); pointer-events: none; }
.hero-main { min-width: 0; max-width: 620px; flex: 1 1 360px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 550; color: rgba(255, 255, 255, .82); background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .14); padding: 3px 10px; border-radius: 999px; }
.hero h1 { color: #fff; font-size: 28px; font-weight: 700; letter-spacing: -.035em; margin-top: 12px; line-height: 1.2; }
.hero p { color: rgba(255, 255, 255, .78); margin-top: 7px; font-size: 14.5px; line-height: 1.55; }
.hero p b { color: #fff; }
.hero-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.btn-hero { background: #fffdf8; color: #0a3d2e; border-color: transparent; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .5); font-weight: 600; }
.btn-hero:hover { background: #f4efe2; border-color: transparent; color: #08332a; }
.btn-hero:disabled { opacity: .6; }
.btn-hero svg { color: #0f6b4f; }
.btn-hero-ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .22); box-shadow: none; }
.btn-hero-ghost:hover { background: rgba(255, 255, 255, .15); border-color: rgba(255, 255, 255, .3); color: #fff; }
.hero-side { display: flex; flex-direction: column; gap: 8px; flex: 0 1 360px; min-width: 260px; }
.hero-todo { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 13px; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .13); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background .15s, transform .15s; }
a.hero-todo:hover { background: rgba(255, 255, 255, .15); text-decoration: none; transform: translateX(2px); }
.hero-todo .ic { width: 36px; height: 36px; border-radius: 10px; background: rgba(255, 255, 255, .14); display: grid; place-items: center; flex-shrink: 0; }
.hero-todo b { font-size: 18px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hero-todo span { font-size: 13.5px; }
.hero-todo small { display: block; color: rgba(255, 255, 255, .7); font-size: 12.5px; margin-top: 1px; }
.hero-todo > svg:last-child { margin-left: auto; opacity: .7; flex-shrink: 0; }
.hero-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.hero-stats > * { padding: 12px 14px; border-radius: 13px; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .13); color: #fff; transition: background .15s; }
.hero-stats > a:hover { background: rgba(255, 255, 255, .16); text-decoration: none; }
.hero-stats small { display: block; font-size: 12.5px; color: rgba(255, 255, 255, .74); }
.hero-stats b { display: block; font-size: 23px; font-weight: 700; letter-spacing: -.03em; margin-top: 1px; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .hero { padding: 22px 18px; border-radius: 16px; gap: 18px; }
  .hero h1 { font-size: 22px; }
  .hero p { font-size: 14px; }
  .hero-side { min-width: 0; flex-basis: 100%; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-laurel { width: 260px; right: -90px; top: 30%; }
}

/* ========================================================================== softphone */
.softphone { position: fixed; right: 24px; bottom: 24px; z-index: 50; width: 336px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; animation: pop .2s ease-out; }
.sp-head { padding: 11px 14px 11px 16px; display: flex; align-items: center; gap: 10px; font-size: 13.5px; background: color-mix(in srgb, var(--info-dot) 9%, var(--surface)); border-bottom: 1px solid var(--border); }
.sp-head .sp-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--info-dot); animation: pulse 1.2s infinite; }
.sp-head.answered { background: color-mix(in srgb, var(--success-dot) 10%, var(--surface)); }
.sp-head.answered .sp-dot { background: var(--success-dot); animation: ping 1.8s infinite; --p: var(--success-dot); }
.sp-head.ended { background: var(--surface-2); }
.sp-head.ended .sp-dot { background: var(--gray-dot); animation: none; }
.sp-body { padding: 16px; }
.sp-timer { font-size: 30px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.03em; line-height: 1; }
@media (max-width: 640px) { .softphone { left: 10px; right: 10px; width: auto; bottom: 10px; } }

/* sonuç kodu seçimi */
.code-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 520px) { .code-grid { grid-template-columns: minmax(0, 1fr); } }
.code-btn { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 8px 13px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); cursor: pointer; font: inherit; font-size: 13.5px; font-weight: 550; color: var(--text); text-align: left; transition: border-color .12s, background .12s, box-shadow .12s; }
.code-btn:hover { border-color: var(--border-strong); background: var(--surface-2); }
.code-btn.active { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.quick { display: flex; gap: 6px; flex-wrap: wrap; }
.call-sum { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }

/* ========================================================================== canlı takip */
.live-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.live-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 16px; display: flex; flex-direction: column; gap: 13px; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.live-card::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gray-dot); opacity: .5; }
.live-card.st-ready::before { background: var(--success-dot); opacity: 1; }
.live-card.st-in_call::before { background: var(--info-dot); opacity: 1; }
.live-card.st-break::before { background: var(--warning-dot); opacity: 1; }
.live-card.st-wrapup::before { background: var(--violet-dot); opacity: 1; }
.live-card.st-in_call { border-color: color-mix(in srgb, var(--info-dot) 35%, var(--border)); }
.live-card.st-offline { background: var(--surface-2); box-shadow: none; }
.live-card.st-offline .avatar { filter: grayscale(1); opacity: .65; }
.live-card .status-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; }
.live-call { background: color-mix(in srgb, var(--info-dot) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--info-dot) 22%, var(--border)); border-radius: 10px; padding: 9px 12px; font-size: 13px; }
.live-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; border-top: 1px solid var(--border-soft); padding-top: 12px; }
.live-stats div { text-align: center; min-width: 0; }
.live-stats b { display: block; font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.live-stats span { font-size: 11.5px; color: var(--muted); }
.live-foot { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); }

/* ekip durumu */
.segbar { display: flex; height: 8px; border-radius: 6px; overflow: hidden; background: var(--surface-3); gap: 2px; }
.segbar span { display: block; height: 100%; min-width: 3px; }
.legend-list { display: flex; flex-direction: column; gap: 1px; }
.legend-list a, .legend-list > div { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin: 0 -10px; border-radius: 8px; color: var(--text); font-size: 13.5px; }
.legend-list a:hover { background: var(--surface-2); text-decoration: none; }
.legend-list b { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 600; }
.legend-list .zero { color: var(--muted); }
.legend-list .zero b { color: var(--muted); font-weight: 500; }
.big-num { font-size: 32px; font-weight: 700; letter-spacing: -.04em; font-variant-numeric: tabular-nums; line-height: 1; }

/* ========================================================================== grafik */
.chart { position: relative; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart .gridline { stroke: var(--grid); stroke-width: 1; }
.chart .baseline { stroke: var(--axis); stroke-width: 1; }
.chart .tick { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .hit { fill: transparent; cursor: default; }
.chart .hover-band { fill: var(--surface-3); opacity: .8; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.chart-tip { position: absolute; pointer-events: none; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); border-radius: 10px; padding: 9px 12px; font-size: 12.5px; z-index: 5; white-space: nowrap; transform: translate(-50%, calc(-100% - 12px)); }
.chart-tip .tv { font-weight: 650; color: var(--text); font-variant-numeric: tabular-nums; }
.chart-tip .tk { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 7px; vertical-align: middle; }
.chart-tip > div + div { margin-top: 2px; }
.hbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 6px; align-items: center; font-size: 13px; padding: 6px 0; }
.hbar-track { grid-column: 1 / -1; height: 5px; position: relative; background: var(--surface-3); border-radius: 4px; overflow: hidden; }
.hbar-fill { height: 100%; background: var(--series-1); border-radius: 4px; min-width: 3px; transition: width .4s ease; }

/* podyum */
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: end; }
.podium .card { padding: 22px 16px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 3px; position: relative; overflow: hidden; }
.podium .p1 { border-color: color-mix(in srgb, #e4b23b 45%, var(--border)); background: linear-gradient(180deg, color-mix(in srgb, #e4b23b 9%, var(--surface)), var(--surface) 65%); padding-top: 30px; }
.medal { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; margin-bottom: 6px; box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .35); }
.m1 { background: linear-gradient(135deg, #f0c44f, #c9921d); } .m2 { background: linear-gradient(135deg, #c3cad2, #8b949e); } .m3 { background: linear-gradient(135deg, #dda172, #a8693a); }
.podium .avatar { margin: 4px 0 8px; }
.podium-value { font-size: 26px; font-weight: 700; letter-spacing: -.035em; font-variant-numeric: tabular-nums; margin-top: 8px; }
@media (max-width: 760px) { .podium { grid-template-columns: 1fr; gap: 10px; } .podium .card { flex-direction: row; text-align: left; padding: 14px 16px; gap: 12px; } .podium .p1 { padding-top: 14px; } .podium .medal { margin: 0; } .podium .avatar { margin: 0; } .podium-value { margin: 0 0 0 auto; font-size: 20px; } .podium .pd-label { display: none; } }

/* yükleme alanı ve diğerleri */
.dropzone { border: 1.5px dashed var(--border-strong); border-radius: var(--radius); padding: 28px; text-align: center; cursor: pointer; color: var(--text-2); background: var(--surface-2); display: block; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.over { border-color: var(--accent); background: var(--accent-soft); }
.dropzone svg { color: var(--muted); }
.dropzone-lg { padding: 40px 24px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.dropzone-lg .dz-ic { width: 50px; height: 50px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); display: grid; place-items: center; margin-bottom: 6px; box-shadow: var(--shadow-sm); }
.dropzone-lg.filled { border-style: solid; border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); background: var(--accent-soft); }
.dropzone-lg.filled svg { color: var(--accent-text); }
.dz-title { font-size: 14.5px; font-weight: 600; color: var(--text); }
.user-pick { border: 1px solid var(--border); border-radius: 11px; max-height: 260px; overflow-y: auto; background: var(--surface); }
.user-pick label { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--border-soft); cursor: pointer; font-size: 13.5px; transition: background .1s; }
.user-pick label:last-child { border-bottom: 0; }
.user-pick label:hover { background: var(--surface-2); }
.user-pick input { accent-color: var(--accent); width: 15px; height: 15px; margin: 0; }
.kv { display: grid; grid-template-columns: 136px 1fr; gap: 10px 14px; font-size: 13.5px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; min-width: 0; }
@media (max-width: 480px) { .kv { grid-template-columns: 112px 1fr; } }
.timeline { display: flex; flex-direction: column; gap: 12px; }
.timeline .t-item { border-left: 2px solid var(--accent-soft-2); padding-left: 12px; font-size: 13.5px; }
.timeline .t-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.color-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.color-pick button { width: 28px; height: 28px; border-radius: 50%; border: 0; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); transition: transform .1s; }
.color-pick button:hover { transform: scale(1.08); }
.color-pick button.active { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--text); }
.code-block { background: var(--surface-3); color: var(--text); border: 1px solid var(--border); padding: 12px 14px; border-radius: 10px; font-family: var(--mono); font-size: 12.5px; overflow-x: auto; white-space: pre; line-height: 1.6; }
.watermark { position: fixed; inset: 0; pointer-events: none; z-index: 9999; background-repeat: repeat; opacity: .055; }
audio { width: 100%; height: 40px; }
.divider { height: 1px; background: var(--border); margin: 2px 0; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; background: var(--surface); transition: border-color .12s, background .12s; }
.choice:hover { border-color: var(--border-strong); }
.choice input { margin-top: 3px; accent-color: var(--accent); }
.choice.active { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
kbd { display: inline-block; min-width: 20px; padding: 1px 6px; border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 5px; background: var(--surface); font: 11.5px/1.5 var(--font); color: var(--text-2); text-align: center; margin-right: 4px; }

/* basit liste */
.list { display: flex; flex-direction: column; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 11px 20px; border-bottom: 1px solid var(--border-soft); min-width: 0; }
.list-row:last-child { border-bottom: 0; }
button.list-row { width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; font: inherit; color: var(--text); text-align: left; cursor: pointer; font-size: 13.5px; transition: background .12s; }
button.list-row:hover:not(:disabled) { background: var(--surface-2); }
button.list-row:disabled { cursor: default; color: var(--text-2); }
button.list-row.active { background: var(--accent-soft); }
button.list-row.active b { color: var(--accent-text); }
a.list-row { color: var(--text); transition: background .12s; }
a.list-row:hover { background: var(--surface-2); text-decoration: none; }
.table-wrap.bordered { border: 1px solid var(--border); border-radius: 12px; }
.map-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .map-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ========================================================================== ayar satırları */
.settings-card { max-width: 820px; }
.profile-head { display: flex; align-items: center; gap: 18px; padding: 22px 24px; flex-wrap: wrap; }
.set-group + .set-group { border-top: 1px solid var(--border); }
.set-group-head { padding: 18px 22px 4px; }
.set-group-head h3 { font-size: 14px; }
.set-group-head p { color: var(--muted); font-size: 12.5px; margin-top: 2px; line-height: 1.5; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 22px; }
.set-row + .set-row { border-top: 1px solid var(--border-soft); }
.set-row .set-t { font-weight: 550; font-size: 13.5px; }
.set-row .set-d { color: var(--muted); font-size: 12.5px; margin-top: 2px; line-height: 1.45; }
.set-row > :first-child { min-width: 0; }
.set-row .input { max-width: 320px; }
.set-row > .input { width: 260px; flex-shrink: 0; }
.set-row > .input-affix { flex-shrink: 0; }
.set-body { padding: 8px 22px 20px; }
@media (max-width: 640px) { .set-row { flex-direction: column; align-items: stretch; gap: 10px; padding: 14px 16px; } .set-row .switch { align-self: flex-start; } .set-row .input { max-width: none; } .set-row > .input { width: 100%; } .set-group-head { padding: 16px 16px 2px; } .set-body { padding: 8px 16px 18px; } }
.settings-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: start; max-width: 1160px; }
.settings-nav { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 84px; }
.settings-nav button { display: flex; gap: 11px; align-items: center; text-align: left; padding: 10px 12px; border-radius: 11px; border: 1px solid transparent; background: none; cursor: pointer; font: inherit; color: var(--text-2); transition: background .12s, border-color .12s; }
.settings-nav .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; background: var(--surface-3); color: var(--muted); transition: background .12s, color .12s; }
.settings-nav b { display: block; color: var(--text); font-size: 13.5px; font-weight: 600; }
.settings-nav small { display: block; color: var(--muted); font-size: 12px; margin-top: 1px; line-height: 1.35; }
.settings-nav button:hover { background: var(--surface-3); }
.settings-nav button.active { background: var(--surface); border-color: var(--border); box-shadow: var(--shadow-card); }
.settings-nav button.active .ic { background: var(--accent-soft); color: var(--accent-text); }
.settings-layout .settings-card { max-width: none; }
.settings-pane-head { padding: 18px 22px 16px; border-bottom: 1px solid var(--border); }
.settings-pane-head h2 { font-size: 16px; font-weight: 650; letter-spacing: -.02em; }
.settings-pane-head p { color: var(--muted); font-size: 13px; margin-top: 2px; }
@media (max-width: 960px) {
  .settings-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .settings-nav { flex-direction: row; overflow-x: auto; position: static; scrollbar-width: none; gap: 6px; }
  .settings-nav::-webkit-scrollbar { display: none; }
  .settings-nav button { flex-shrink: 0; padding: 6px 12px 6px 6px; border-color: var(--border); background: var(--surface); }
  .settings-nav small { display: none; }
  .settings-nav .ic { width: 28px; height: 28px; border-radius: 8px; }
}

/* ========================================================================== data yükleme sihirbazı */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-card); overflow: hidden; }
.step { display: flex; align-items: center; gap: 12px; padding: 13px 18px; color: var(--muted); position: relative; min-width: 0; }
.step + .step { border-left: 1px solid var(--border); }
.step-n { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--border-strong); display: grid; place-items: center; font-weight: 650; font-size: 12.5px; flex-shrink: 0; color: var(--text-2); background: var(--surface); }
.step-k { font-size: 12px; color: var(--muted); }
.step-t { font-size: 13.5px; font-weight: 550; color: var(--text-2); }
.step-arrow { display: none; }
.step.active { background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
.step.active .step-n { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 4px var(--ring); }
.step.active .step-t { color: var(--text); font-weight: 650; }
.step.done .step-n { background: var(--accent-soft); border-color: transparent; color: var(--accent-text); }
.step.done .step-t { color: var(--text); }
@media (max-width: 800px) { .step { padding: 10px 12px; gap: 8px; } .step-k { display: none; } .step-t { font-size: 12.5px; line-height: 1.3; } .step-n { width: 24px; height: 24px; font-size: 11.5px; } }
@media (max-width: 440px) { .step:not(.active) .step-t { display: none; } .step:not(.active) { justify-content: center; } }
.pstats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.pstats > div { padding: 12px 16px; background: var(--surface); margin: -1px 0 0 -1px; box-shadow: inset 1px 0 0 var(--border), inset 0 1px 0 var(--border); }
.pstats b { display: block; font-size: 20px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.pstats > div:nth-child(2) b { color: var(--accent-text); }
.pstats span { font-size: 12.5px; color: var(--text-2); }
@media (max-width: 800px) { .pstats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ========================================================================== manuel arama */
.dial-grid { align-items: start; }
.dialer { padding: 0; overflow: hidden; }
.dial-display { padding: 26px 22px 6px; text-align: center; }
.dial-input { width: 100%; border: 0; background: none; outline: none; text-align: center; font: inherit; font-size: 30px; font-weight: 600; letter-spacing: .01em; color: var(--text); font-variant-numeric: tabular-nums; padding: 6px 0 8px; }
.dial-input::placeholder { color: var(--muted); font-weight: 450; opacity: .75; }
.dial-hint { font-size: 12.5px; color: var(--muted); min-height: 19px; }
.dial-hint.bad { color: var(--warning); }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px 28px 6px; }
.key { height: 58px; border: 1px solid var(--border); background: var(--surface-2); border-radius: 14px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; color: var(--text); font: inherit; transition: background .1s, border-color .1s, transform .05s; -webkit-tap-highlight-color: transparent; }
.key:hover { background: var(--surface-3); border-color: var(--border-strong); }
.key:active { transform: scale(.97); background: var(--accent-soft); }
.key b { font-size: 22px; font-weight: 550; line-height: 1.1; }
.key small { font-size: 9.5px; letter-spacing: .16em; color: var(--muted); min-height: 12px; font-weight: 600; }
.dial-actions { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 14px 28px 22px; }
.dial-side { border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 6px; font: inherit; font-size: 12.5px; color: var(--text-2); cursor: pointer; }
.dial-side span { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface-2); display: grid; place-items: center; transition: background .1s; }
.dial-side:hover span { background: var(--surface-3); }
.dial-side:disabled { opacity: .45; cursor: default; }
.dial-call { width: 64px; height: 64px; border-radius: 50%; border: 0; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 22px -8px color-mix(in srgb, var(--accent) 70%, transparent); transition: transform .1s, background .12s; }
.dial-call:hover { background: var(--accent-hover); }
.dial-call:active { transform: scale(.96); }
.dial-call:disabled { background: var(--surface-3); color: var(--muted); cursor: not-allowed; box-shadow: none; }
.dial-call.hang { background: var(--danger-dot); color: #fff; box-shadow: 0 10px 22px -8px color-mix(in srgb, var(--danger-dot) 70%, transparent); }
.dial-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 22px; border-top: 1px solid var(--border); background: var(--surface-2); font-size: 13px; color: var(--text-2); }
.dial-note svg { color: var(--muted); flex-shrink: 0; margin-top: 2px; }
.dial-note.warn { color: var(--warning); background: color-mix(in srgb, var(--warning-dot) 8%, var(--surface)); }
.dial-note.warn svg { color: var(--warning); }
.dial-keys { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 14px; padding: 13px 18px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.search-kbd { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); margin: 0; pointer-events: none; }
@media (max-width: 1080px) { .dial-keys, .search-kbd { display: none; } }

/* giriş IP kayıtları */
.shared-ip:not(.ok) { border-color: color-mix(in srgb, var(--danger-dot) 38%, var(--border)); }
.shared-ip:not(.ok) .card-intro h2 svg { color: var(--danger); }
.shared-ip.ok .card-intro { border-bottom: 0; }
.shared-ip.ok .card-intro h2 svg { color: var(--success); }

/* personel seçim kartları (İş havuzu) */
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.pick-card { display: flex; flex-direction: column; gap: 16px; padding: 18px; text-align: left; font: inherit; color: inherit; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.pick-card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); transform: translateY(-2px); box-shadow: var(--shadow); }
.pick-head { display: flex; align-items: center; gap: 12px; }
.pick-arrow { color: var(--muted); transition: transform .15s, color .15s; flex-shrink: 0; }
.pick-card:hover .pick-arrow { color: var(--accent-text); transform: translateX(2px); }
.pick-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px 0; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.pick-stats small { display: block; font-size: 12px; color: var(--muted); }
.pick-stats b { display: block; font-size: 19px; font-weight: 650; letter-spacing: -.02em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.pick-foot { display: flex; align-items: center; gap: 12px; }

/* sıradaki data kartı */
.next-lead { display: flex; align-items: center; gap: 14px; padding: 16px 20px; flex-wrap: wrap; }
.next-lead .nl-main { flex: 1; min-width: 180px; }
.next-lead .nl-name { font-size: 15px; font-weight: 600; }

/* yazdırma ve hareket azaltma */
@media print { .sidebar, .topbar, .softphone, .toasts { display: none !important; } .main { margin: 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* ========================================================================== prim (2026-12-05) */
.bonus-table .t-warn { color: var(--warning); font-weight: 550; }
@media (min-width: 761px) { .bonus-table th:not(:first-child), .bonus-table td:not(:first-child) { padding-left: 10px; padding-right: 10px; } }
.bonus-table .warn-cell { gap: 4px; max-width: 150px; }
.bonus-table .net { font-size: 14px; color: var(--text-2); }
.bonus-table .net.pos { color: var(--accent-text); }
.next-tier { display: flex; flex-direction: column; gap: 2px; white-space: nowrap; line-height: 1.45; color: var(--text-2); }
.next-tier b { color: var(--text); font-weight: 600; }
.ftd-pick { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; background: var(--surface-2); transition: border-color .12s, background .12s; }
.ftd-pick.on { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.ftd-pick .check { align-items: flex-start; }
.ftd-pick .check input { margin-top: 2px; }
.ftd-hint { display: flex; gap: 7px; align-items: flex-start; color: var(--text-2); padding-left: 25px; }
.ftd-hint svg { flex-shrink: 0; margin-top: 2px; color: var(--muted); }
.ftd-hint.warn, .ftd-hint.warn svg { color: var(--warning); }
.rules-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; line-height: 1.55; color: var(--text-2); }
.rules-list b { color: var(--text); }
.warn-items { border: 1px solid var(--border-soft); border-radius: var(--radius-sm); }
.warn-items .list-row { padding: 9px 12px; align-items: flex-start; }
.rules-tables { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.rules-tier { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.rules-tier-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 11px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 600; color: var(--text); }
.rules-tier-head small { font-size: 12px; font-weight: 500; color: var(--muted); }
.rules-tier-row { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; padding: 0 16px; font-size: 13.5px; color: var(--text-2); }
.rules-tier-row + .rules-tier-row { border-top: 1px solid var(--border-soft); }
.rules-tier-row b { color: var(--text); font-weight: 650; }
@media (max-width: 640px) { .rules-tables { grid-template-columns: minmax(0, 1fr); } }
