/* Global maskot gezinme: --gm-wx/--gm-wy yumuşak geçiş (ışınlanma hissi azalır) */
@property --gm-wx {
  syntax: '<length>';
  inherits: true;
  initial-value: 0px;
}
@property --gm-wy {
  syntax: '<length>';
  inherits: true;
  initial-value: 0px;
}
/* ============================================================
PALETTES
============================================================ */
/* --- BLUE (default) --- */
[data-palette="blue"] {
--accent:       #2563eb;
--accent-2:     #1d4ed8;
--accent-soft:  #2563eb18;
--accent-text:  #2563eb;
}
/* --- GOLD (Montblanc) --- */
[data-palette="gold"] {
--accent:       #b8860b;
--accent-2:     #8b6508;
--accent-soft:  #b8860b18;
--accent-text:  #b8860b;
}
/* --- GREEN --- */
[data-palette="green"] {
--accent:       #059669;
--accent-2:     #047857;
--accent-soft:  #05966918;
--accent-text:  #059669;
}
/* --- ROSE --- */
[data-palette="rose"] {
--accent:       #e11d48;
--accent-2:     #be123c;
--accent-soft:  #e11d4818;
--accent-text:  #e11d48;
}
/* --- VIOLET --- */
[data-palette="violet"] {
--accent:       #7c3aed;
--accent-2:     #6d28d9;
--accent-soft:  #7c3aed18;
--accent-text:  #7c3aed;
}
/* ============================================================
LIGHT THEME (default)
============================================================ */
[data-theme="light"] {
--bg:           #f5f6fa;
--bg-2:         #ffffff;
--bg-3:         #f0f2f8;
--bg-4:         #e8ebf4;
--border:       #e2e5f0;
--border-2:     #d0d5e8;
--text:         #111827;
--text-1:       #111827;
--text-2:       #4b5563;
--text-3:       #6b7280;
--shadow:       0 1px 3px #0000000f, 0 4px 16px #0000000a;
--shadow-md:    0 4px 24px #00000014;
--topbar-bg:    #ffffff;
--sidebar-bg:   #ffffff;
--input-bg:     #f5f6fa;
color-scheme:   light;
}
/* ============================================================
DARK THEME
============================================================ */
[data-theme="dark"] {
--sidebar-aurora-base: #080c14;
--bg:           #0d0f14;
--bg-2:         #13161e;
--bg-3:         #1a1e2a;
--bg-4:         #222736;
--border:       #ffffff1c;
--border-2:     #ffffff2e;
--text:         #f4f6fb;
--text-1:       #f4f6fb;
--text-2:       #d5dcec;
--text-3:       #b7c0d4;
--shadow:       0 1px 3px #00000040, 0 4px 16px #00000030;
--shadow-md:    0 4px 24px #00000060;
--topbar-bg:    #13161e;
--sidebar-bg:   #13161e;
--input-bg:     #1a1e2a;
color-scheme:   dark;
}
/* ============================================================
SHARED TOKENS
============================================================ */
:root {
/* Sol menü + logo kutusu tabanı (aynı düz renk) */
--sidebar-aurora-base: #0f172a;
/* Üst logo + sol menüdeki marka ön planı — tek ton */
--brand-chrome-fg:     rgba(255, 255, 255, 0.93);
--brand-chrome-frost:  rgba(255, 255, 255, 0.15);
--brand-chrome-border: rgba(255, 255, 255, 0.28);
--green:        #16a34a;
--green-soft:   #16a34a15;
--yellow:       #d97706;
--yellow-soft:  #d9770615;
--red:          #dc2626;
--red-soft:     #dc262615;
--purple:       #7c3aed;
--purple-soft:  #7c3aed15;
--sidebar-w:    248px;
--topbar-h:     54px;
--radius:       12px;
--radius-sm:    8px;
--radius-xs:    5px;
--transition:   0.18s cubic-bezier(0.4,0,0.2,1);
--font:         'Plus Jakarta Sans', sans-serif;
--mono:         'JetBrains Mono', monospace;
}
/* ============================================================
RESET
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; -webkit-tap-highlight-color: transparent; }
body {
font-family: var(--font);
background: var(--bg);
color: var(--text);
height: 100%;
overflow: hidden;
font-size: 14px;
line-height: 1.5;
transition: background var(--transition), color var(--transition);
}
button { font-family: var(--font); cursor: pointer; border: none; outline: none; background: none; }
input, select, textarea { font-family: var(--font); }
a { color: inherit; text-decoration: none; }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 3px; }
/* ============================================================
APP SHELL
============================================================ */
#app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
/* ── TOPBAR ── */
#topbar {
height: var(--topbar-h);
min-height: var(--topbar-h);
background: var(--topbar-bg);
border-bottom: 1px solid var(--border);
display: flex;
align-items: center;
padding: 0 10px;
gap: 8px;
z-index: 100;
box-shadow: 0 1px 0 var(--border);
position: relative;
overflow: hidden;
flex-wrap: nowrap;
flex-shrink: 0;
width: 100%;
min-width: 0;
max-width: 100%;
}
#topbar::-webkit-scrollbar {
  height: 0;
}
.tb-swipe-host {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  gap: 8px;
}
.tb-swipe {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  max-width: 100%;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
#tb-swipe.is-overflow { cursor: grab; }
#tb-swipe.is-fade-left.is-fade-right {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent);
}
#tb-swipe.is-fade-right:not(.is-fade-left) {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 16px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 16px), transparent);
}
#tb-swipe.is-fade-left:not(.is-fade-right) {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px);
  mask-image: linear-gradient(90deg, transparent, #000 16px);
}
#tb-swipe.is-dragging { cursor: grabbing; user-select: none; }
.tb-swipe::-webkit-scrollbar { display: none; height: 0; }
.tb-pin {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
}
.tb-slide { display: contents; }
.tb-swipe-dots { display: none; }
.tb-pills-wrap {
  flex: 0 0 auto;
  min-width: 0;
  margin-left: 0;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
#topbar > * {
position: relative;
z-index: 1;
}
.sb-person-pop {
  position: fixed;
  z-index: 420;
  max-height: 280px;
  overflow: auto;
  padding: 6px 6px 4px;
  background: var(--sidebar-aurora-base);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.35);
  color: rgba(255,255,255,0.9);
}
.sb-person-pop[hidden] { display: none !important; }
.sb-person-pop::-webkit-scrollbar { width: 8px; }
.sb-person-pop::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.18); border-radius: 8px; }
.sb-person-label {
  padding: 4px 8px 2px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.sb-person-note {
  padding: 4px 8px 6px;
  font-size: 10px;
  line-height: 1.35;
  color: rgba(255,255,255,0.45);
}
.sb-person-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 8px;
  row-gap: 1px;
  text-align: left;
  padding: 7px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(255,255,255,0.9);
  cursor: pointer;
}
.sb-person-row:hover { background: rgba(255,255,255,0.08); }
.sb-person-row.is-on,
.sb-person-row.is-on:hover { background: rgba(255,255,255,0.14); }
.sb-person-name {
  grid-column: 1;
  font-size: 13px;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sb-person-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: #dc2626;
  box-shadow: 0 0 0 2px rgba(220,38,38,0.28);
  vertical-align: 1px;
}
.sb-person-camp,
.sb-person-out,
.sb-person-meta {
  grid-column: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sb-person-camp,
.sb-person-out {
  font-size: 10px;
  font-weight: 650;
  color: rgba(255,255,255,0.62);
}
.sb-person-meta {
  font-size: 11px;
  color: rgba(255,255,255,0.42);
}
.sb-person-open {
  grid-column: 2;
  grid-row: 1 / span 4;
  align-self: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: rgba(255,255,255,0.82);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  padding: 3px 8px;
}
.tb-hamburger {
width: 34px; height: 34px;
display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4.5px;
border-radius: var(--radius-xs);
color: var(--text-2);
transition: var(--transition);
flex-shrink: 0;
}
.tb-hamburger:hover { background: var(--bg-3); color: var(--text); }
.tb-hamburger span {
display: block; width: 15px; height: 1.5px;
background: currentColor; border-radius: 2px;
transition: var(--transition);
}
.tb-logo {
position: relative;
display: flex;
align-items: stretch;
margin-right: 8px;
flex-shrink: 0;
z-index: 1;
min-height: 0;
max-height: 40px;
border-radius: 0;
overflow: visible;
background: none;
isolation: isolate;
border: none;
box-shadow: none;
}
.tb-logo-aurora { display: none; }
.tb-logo.is-box {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 1px 10px rgba(15, 23, 42, 0.08);
}
.tb-logo.is-box .tb-logo-aurora { display: block; }
.tb-logo-inner {
position: relative;
z-index: 1;
display: flex;
align-items: center;
gap: var(--logo-gap, 6px);
padding: 4px 10px 4px 6px;
}
.tb-logo-text {
display: flex;
align-items: center;
line-height: 1.2;
}
.tb-logo-mark {
width: auto;
height: auto;
flex-shrink: 0;
background: none;
border: none;
border-radius: 0;
display: flex;
align-items: center;
justify-content: center;
color: #0f172a;
box-shadow: none;
}
.tb-logo-name {
font-size: 16px;
font-weight: 800;
letter-spacing: -0.4px;
color: #0f172a;
text-shadow: none;
margin: 0;
}
.tb-logo-face.is-brand { font-feature-settings: "locl" 0; }
.tb-logo-one { color: var(--logo-one, #2563eb); }
.tb-logo-one:empty { display: none; }
[data-theme="dark"] .tb-logo.is-one-dark .tb-logo-one { color: var(--logo-one-dark); }
.tb-logo.is-text .tb-logo-name,
.tb-logo.is-text .tb-logo-mark { color: var(--logo-text); }
[data-theme="dark"] .tb-logo.is-text:not(.is-text-dark) .tb-logo-name,
[data-theme="dark"] .tb-logo.is-text:not(.is-text-dark) .tb-logo-mark { color: #f8fafc; }
[data-theme="dark"] .tb-logo.is-text-dark .tb-logo-name,
[data-theme="dark"] .tb-logo.is-text-dark .tb-logo-mark { color: var(--logo-text-dark); }
.tb-logo-faces { display: grid; align-items: center; max-width: 220px; }
.tb-logo-face { grid-area: 1 / 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-logo-face.is-note { opacity: 0; }
.tb-logo-faces.is-swap .tb-logo-face.is-brand { animation: mbLogoFaceA var(--logo-swap, 12s) ease-in-out infinite; }
.tb-logo-faces.is-swap .tb-logo-face.is-note { animation: mbLogoFaceB var(--logo-swap, 12s) ease-in-out infinite; }
#logo-set-preview .tb-logo-faces,
.login-brand-name .tb-logo-faces { max-width: 360px; }
@keyframes mbLogoFaceA {
  0%, 42% { opacity: 1; }
  50%, 92% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes mbLogoFaceB {
  0%, 42% { opacity: 0; }
  50%, 92% { opacity: 1; }
  100% { opacity: 0; }
}
.tb-logo-eye { fill: var(--logo-eye-l, currentColor); }
.tb-logo-eye--r { fill: var(--logo-eye-r, #2563eb); }
[data-theme="dark"] .tb-logo .tb-logo-eye { fill: var(--logo-eye-l-dark, currentColor); }
[data-theme="dark"] .tb-logo .tb-logo-eye--r { fill: var(--logo-eye-r-dark, var(--logo-eye-r, #2563eb)); }
.tb-logo {
  --logo-al-a-use: var(--logo-al-a, #7dd3fc);
  --logo-al-b-use: var(--logo-al-b, #818cf8);
  --logo-ar-a-use: var(--logo-ar-a, #38bdf8);
  --logo-ar-b-use: var(--logo-ar-b, #2563eb);
}
[data-theme="dark"] .tb-logo {
  --logo-al-a-use: var(--logo-al-a-dark, var(--logo-al-a, #7dd3fc));
  --logo-al-b-use: var(--logo-al-b-dark, var(--logo-al-b, #818cf8));
  --logo-ar-a-use: var(--logo-ar-a-dark, var(--logo-ar-a, #38bdf8));
  --logo-ar-b-use: var(--logo-ar-b-dark, var(--logo-ar-b, #2563eb));
}
.tb-logo.is-blink .tb-logo-eye {
  transform-box: fill-box;
  transform-origin: center;
  animation-name: mbLogoBlink;
  animation-duration: var(--logo-blink, 5.4s);
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-delay: 0s;
}
.tb-logo.is-blink.is-blink-alt .tb-logo-eye--r {
  animation-name: mbLogoBlinkAlt;
  animation-delay: 0s;
}
.tb-logo.is-blink-left:not(.is-aurora-r) .tb-logo-eye--r,
.tb-logo.is-blink-right:not(.is-aurora-l) .tb-logo-eye--l { animation: none; }
.tb-logo.is-aurora-l:not(.is-blink) .tb-logo-eye--l,
.tb-logo.is-blink-right.is-aurora-l .tb-logo-eye--l {
  animation: mbLogoEyeAuroraL 5.5s ease-in-out infinite;
}
.tb-logo.is-aurora-r:not(.is-blink) .tb-logo-eye--r,
.tb-logo.is-blink-left.is-aurora-r .tb-logo-eye--r {
  animation: mbLogoEyeAuroraR 5.5s ease-in-out infinite;
}
.tb-logo.is-blink.is-aurora-l .tb-logo-eye--l {
  animation-name: mbLogoBlink, mbLogoEyeAuroraL;
  animation-duration: var(--logo-blink, 5.4s), 5.5s;
  animation-timing-function: ease-in-out, ease-in-out;
  animation-iteration-count: infinite, infinite;
  animation-delay: 0s, 0s;
}
.tb-logo.is-blink.is-blink-right.is-aurora-l .tb-logo-eye--l {
  animation-name: mbLogoEyeAuroraL;
  animation-duration: 5.5s;
  animation-delay: 0s;
}
.tb-logo.is-blink.is-aurora-r .tb-logo-eye--r {
  animation-name: mbLogoBlink, mbLogoEyeAuroraR;
  animation-duration: var(--logo-blink, 5.4s), 5.5s;
  animation-timing-function: ease-in-out, ease-in-out;
  animation-iteration-count: infinite, infinite;
  animation-delay: 0s, 0s;
}
.tb-logo.is-blink.is-blink-alt.is-aurora-r .tb-logo-eye--r {
  animation-name: mbLogoBlinkAlt, mbLogoEyeAuroraR;
  animation-delay: 0s, 0s;
}
.tb-logo.is-blink.is-blink-left.is-aurora-r .tb-logo-eye--r {
  animation-name: mbLogoEyeAuroraR;
  animation-duration: 5.5s;
  animation-delay: 0s;
}
@keyframes mbLogoBlink {
  0%, 46%, 54%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.08); }
}
@keyframes mbLogoBlinkAlt {
  0%, 96%, 100% { transform: scaleY(1); }
  4% { transform: scaleY(0.08); }
}
@keyframes mbLogoEyeAuroraL {
  0%, 100% { fill: var(--logo-al-a-use, #7dd3fc); }
  50% { fill: var(--logo-al-b-use, #818cf8); }
}
@keyframes mbLogoEyeAuroraR {
  0%, 100% { fill: var(--logo-ar-a-use, #38bdf8); }
  50% { fill: var(--logo-ar-b-use, #2563eb); }
}
[data-theme="dark"] .tb-logo.is-box {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: none;
  background: rgba(255, 255, 255, 0.06);
}
[data-theme="dark"] .tb-logo-name { color: #f8fafc; }
[data-theme="dark"] .tb-uname { color: #f8fafc; }
[data-theme="dark"] .tb-urole { color: #cbd5e1; }
.tb-test-flag[hidden] { display: none !important; }
.tb-test-flag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #92400e;
  background: rgba(234, 179, 8, 0.22);
  border: 1px solid rgba(234, 179, 8, 0.55);
  flex-shrink: 0;
}
[data-theme="dark"] .tb-test-flag { color: #fde68a; }
[data-theme="dark"] .tb-logo-mark {
  background: none;
  border-color: transparent;
  color: #f8fafc;
}
#tb-pills { display: contents; }
.pill-camp { order: 1; }
.tb-takvim { order: 2; }
.pill-ping { order: 3; }
.pill-bal { order: 4; }
.tb-theme { order: 5; }
.tb-test-flag { order: 6; }
#lang-btn { order: 7; }
#tb-notif-btn { order: 8; }
.tb-user { order: 9; }
.tb-pills-wrap:not(.is-today-open) #tb-results:not(:hover) .tb-res:not(.tb-res-sum) {
  width: 0; min-width: 0; padding: 0; margin: 0; opacity: 0; overflow: hidden; pointer-events: none;
}
.tb-live-cycle { display: none !important; }
.tb-pills-wrap.is-today-open .tb-today-cycle,
#tb-results:hover .tb-today-cycle { display: none; }
.tb-live-k {
  display: none;
  font-style: normal;
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0;
}
.tb-pills-wrap.is-live-letter .tb-live-k { display: inline; }
.tb-pills-wrap.is-live-letter .tb-live { padding: 0 2px; gap: 0; }
.tb-pills-wrap.is-live-letter .tb-live-n { min-width: 12px; padding: 0 1px; }
.tb-pills-wrap.is-live-letter .tb-live-num,
.tb-pills-wrap.is-live-letter .tb-live-sum { display: none; }
#topbar.is-tb-tight .pill-ping,
#topbar.is-tb-tight .pill-bal,
#topbar.is-tb-tight .pill-camp,
#topbar.is-tb-tight .tb-theme,
#topbar.is-tb-tight #aria-live { display: none !important; }
button.tb-pill { color: inherit; font-size: 12px; }
button.tb-pill.is-open { box-shadow: inset 0 0 0 2px var(--accent); }
.tb-pill {
display: flex; align-items: center; justify-content: center; gap: 5px;
box-sizing: border-box;
background: var(--bg-3);
border: 1px solid var(--border);
border-radius: 16px;
padding: 0 7px;
white-space: nowrap; flex-shrink: 0;
font-size: 12px;
line-height: 1;
max-width: 160px;
}
@media (max-width: 1280px) {
  .tb-pill-lbl { display: none; }
  .tb-pill { padding: 0 8px; max-width: none; }
}
.tb-pill-val {
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}
.tb-pill-dot {
width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
}
.tb-pill-val { font-family: var(--mono); font-weight: 600; font-size: 12px; color: var(--text); }
.tb-pill-lbl { color: var(--text-3); font-size: 11px; }
.tb-pill-ico {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
}
.tb-pill-ico svg,
.tb-icon-btn svg {
  display: block;
}
@media (max-width: 1200px) {
  .tb-pill-lbl { display: none; }
}
button.tb-pill.pill-ping {
  appearance: none;
  cursor: pointer;
  height: 32px;
  gap: 5px;
  padding: 0 8px;
  border: 1px solid var(--border);
  background: var(--bg-3);
}
.pill-ping .tb-pill-dot { background: var(--green); box-shadow: 0 0 5px var(--green); }
.pill-ping .tb-pill-val { color: var(--green); }
.pill-ping.is-mid .tb-pill-dot { background: #d97706; box-shadow: 0 0 5px #d97706; }
.pill-ping.is-mid .tb-pill-val { color: #b45309; }
.pill-ping.is-slow .tb-pill-dot { background: #dc2626; box-shadow: 0 0 5px #dc2626; }
.pill-ping.is-slow .tb-pill-val { color: #b91c1c; }
.tb-ping-pop {
  position: fixed;
  z-index: 400;
  width: 280px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-2);
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
}
.tb-ping-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.tb-ping-hd b { font-size: 14px; }
.tb-ping-hd span { font-size: 12px; font-weight: 800; color: #166534; }
.tb-ping-hd span.is-mid { color: #b45309; }
.tb-ping-hd span.is-slow { color: #b91c1c; }
.tb-ping-now { margin: 8px 0 4px; font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.5px; }
.tb-ping-now small { margin-left: 4px; font-size: 13px; font-weight: 700; color: var(--text-3); }
.tb-ping-meter { height: 8px; border-radius: 99px; background: var(--bg-3); overflow: hidden; }
.tb-ping-meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: #16a34a; transition: width .35s ease; }
.tb-ping-meter i.is-mid { background: #d97706; }
.tb-ping-meter i.is-slow { background: #dc2626; }
.tb-ping-hint { margin: 8px 0 10px; font-size: 12px; color: var(--text-3); }
.tb-ping-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.tb-ping-stats div { padding: 6px 4px; border-radius: 8px; background: var(--bg-3); text-align: center; }
.tb-ping-stats small { display: block; font-size: 10px; font-weight: 700; color: var(--text-3); }
.tb-ping-stats b { font-size: 13px; font-variant-numeric: tabular-nums; }
.tb-ping-go {
  width: 100%;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: #14532d;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.tb-ping-go:disabled { opacity: .6; cursor: default; }
.tb-camp-pop {
  position: fixed;
  z-index: 400;
  width: 260px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-2);
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
}
.tb-camp-kicker { font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.tb-camp-name { margin-top: 4px; font-size: 15px; font-weight: 800; line-height: 1.3; }
.tb-camp-meta { margin-top: 6px; font-size: 12px; font-weight: 700; color: #166534; }
.tb-camp-sub { margin-top: 4px; font-size: 12px; color: var(--text-2); }
.pill-call .tb-pill-dot { background: #4CAF50; animation: blink 2s infinite; }
.pill-call .tb-pill-val { color: #2E7D32; }
.pill-ready .tb-pill-dot { background: #FFB74D; }
.pill-ready .tb-pill-val { color: #E65100; }
.pill-wrap .tb-pill-dot { background: #00BCD4; }
.pill-wrap .tb-pill-val { color: #00838F; }
.pill-break .tb-pill-dot { background: #7E57C2; }
.pill-break .tb-pill-val { color: #5E35B1; }
.pill-off .tb-pill-dot { background: #9E9E9E; }
.pill-off .tb-pill-val { color: #616161; }
.tb-live,
.tb-results,
.tb-pill,
.tb-icon-btn.tb-mesai,
button.tb-pill.tb-takvim,
.tb-icon-btn.tb-theme,
.aria-live {
  box-sizing: border-box;
  height: 32px;
  min-height: 32px;
  max-height: 32px;
}
.tb-live {
  display: inline-flex; align-items: center; justify-content: center; padding: 0 8px; gap: 0;
  border-radius: 16px; border: 1px solid var(--border); background: var(--bg-3);
  color: inherit; cursor: pointer; flex: none;
}
.tb-live.is-open { box-shadow: inset 0 0 0 2px var(--accent); }
.tb-live-n, .tb-live-sum, .tb-live-cycle, .tb-today-cycle {
  position: relative; z-index: 0;
  display: inline-flex; align-items: center; justify-content: center;
  height: 24px; min-width: 18px; padding: 0 5px; font-family: var(--mono); font-weight: 700;
  font-size: 12px; line-height: 1; font-variant-numeric: tabular-nums; text-align: center;
}
.tb-live-cycle, .tb-today-cycle { color: var(--ink, var(--c, currentColor)); }
.tb-live-n::before, .tb-live-cycle::before, .tb-today-cycle::before {
  content: ""; position: absolute; left: 50%; top: 50%; z-index: -1;
  width: 5px; height: 5px; margin: -7px 0 0 -8px; border-radius: 50%;
  background: var(--c, currentColor); pointer-events: none;
}
.tb-live-n::before, .tb-live-cycle::before { animation: tb-pulse 2s ease-in-out infinite; }
.tb-today-cycle::before { opacity: .85; }
.tb-live-n.is-call { color: #2E7D32; --c: #4CAF50; }
.tb-live-n.is-ready { color: #E65100; --c: #FFB74D; }
.tb-live-n.is-wrap { color: #00838F; --c: #00BCD4; }
.tb-live-n.is-break { color: #5E35B1; --c: #7E57C2; }
.tb-live-n.is-off { color: #757575; --c: #9E9E9E; }
.tb-live-sum {
  margin: 0; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; background: var(--bg-2); color: var(--text);
}
[data-theme="dark"] .tb-live-n.is-call { color: #81C784; }
[data-theme="dark"] .tb-live-n.is-ready { color: #FFB74D; }
[data-theme="dark"] .tb-live-n.is-wrap { color: #4DD0E1; }
[data-theme="dark"] .tb-live-n.is-break { color: #B39DDB; }
[data-theme="dark"] .tb-live-n.is-off { color: #E0E0E0; }
@keyframes tb-pulse {
  0%, 100% { opacity: .35; transform: scale(.8); }
  50% { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .tb-live-n::before { animation: none; opacity: .55; transform: none; }
}
.tb-results {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  padding: 0 8px; border-radius: 16px;
  border: 1px solid var(--border); background: var(--bg-3);
}
#tb-results[hidden],
#tb-results .tb-res[hidden] { display: none !important; }
button.tb-res {
  position: relative; z-index: 0;
  min-width: 18px; height: 24px; padding: 0 5px; border: 0; border-radius: 0;
  background: none; color: var(--ink, var(--c, #334155));
  font-family: var(--mono); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
button.tb-res.tb-res-sum {
  margin: 0; height: 24px;
  border-radius: 12px; background: var(--bg-2); color: var(--text);
}
button.tb-res.is-open { box-shadow: inset 0 0 0 2px var(--accent); }
.tb-res-panel {
  position: fixed; z-index: 410; width: 248px; padding: 10px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 18px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .16);
}
.tb-res-panel.is-team {
  width: min(460px, calc(100vw - 16px));
  max-height: min(78vh, 640px);
  overflow: auto;
  padding: 12px;
}
.tb-res-tools { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.tb-res-nav { display: flex; align-items: center; gap: 6px; }
.tb-res-nav .tb-res-seg { flex: 1; }
.tb-res-seg {
  display: flex; padding: 2px; gap: 2px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--bg-3);
}
.tb-res-seg button {
  flex: 1; border: 0; background: transparent; color: var(--text-2);
  font: inherit; font-size: 12px; font-weight: 700; line-height: 1;
  padding: 7px 8px; border-radius: 999px; cursor: pointer;
}
.tb-res-seg button.is-on { background: var(--accent); color: #fff; }
.tb-res-step {
  width: 32px; height: 32px; flex: none; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg-3); color: var(--text);
  font-size: 18px; font-weight: 700; line-height: 1; cursor: pointer;
}
.tb-res-sample {
  display: inline-flex; align-items: center; margin-left: 6px; padding: 1px 6px;
  border-radius: 999px; background: color-mix(in srgb, var(--accent) 16%, var(--bg-3));
  color: var(--accent); font-style: normal; font-size: 10px; font-weight: 800;
  letter-spacing: .03em; vertical-align: 1px;
}
.tb-res-kicker {
  margin: 12px 2px 6px;
  font-size: 11px; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; color: var(--text-3);
}
.tb-res-day { display: block; margin-top: 2px; font-size: 11px; font-weight: 700; color: var(--text-3); }
.tb-res-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tb-res-table-wrap {
  overflow: auto; max-height: 240px; margin-top: 12px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--bg-2);
}
.tb-res-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.tb-res-table th, .tb-res-table td {
  padding: 7px 8px; text-align: right; white-space: nowrap;
  font-variant-numeric: tabular-nums; border-bottom: 1px solid var(--border);
}
.tb-res-table th:first-child, .tb-res-table td:first-child {
  text-align: left; position: sticky; left: 0; background: var(--bg-2); max-width: 140px;
  overflow: hidden; text-overflow: ellipsis;
}
.tb-res-table thead th {
  position: sticky; top: 0; z-index: 1; background: var(--bg-3);
  font-size: 10px; font-weight: 800; color: var(--text-3);
}
.tb-res-table thead th:first-child { z-index: 2; }
.tb-res-table tfoot td { font-weight: 800; background: var(--bg-3); border-bottom: 0; }
.tb-res-table td.is-zero { color: var(--text-3); font-weight: 600; }
.tb-res-dot {
  width: 8px; height: 8px; border-radius: 50%; display: inline-block;
  background: var(--c, var(--text-3)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c, #64748b) 18%, transparent);
}
.tb-res-table td.tb-res-empty {
  position: static; max-width: none; text-align: center;
  padding: 16px 8px; color: var(--text-3); font-size: 12px; font-weight: 700;
}
.tb-res-month { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.tb-res-month div {
  min-width: 0; padding: 8px 8px 7px; border-radius: 12px;
  background: color-mix(in srgb, var(--c, #64748b) 12%, var(--bg-3));
}
.tb-res-month b {
  display: block; font-size: 16px; font-weight: 800; line-height: 1.1;
  font-variant-numeric: tabular-nums; color: var(--ink, var(--text));
}
.tb-res-month span {
  display: block; margin-top: 3px; font-size: 11px; font-weight: 700; color: var(--text-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tb-res-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 2px 4px 8px; font-size: 12px; font-weight: 800; color: var(--text);
}
.tb-res-head b {
  min-width: 28px; height: 22px; padding: 0 8px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-3); color: var(--text); font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.tb-res-list { display: flex; flex-direction: column; gap: 4px; }
.tb-res-row {
  display: flex; align-items: center; gap: 10px; width: 100%; height: 40px;
  border: 0; color: inherit; font: inherit; cursor: pointer; text-align: left;
  padding: 0 10px 0 6px; border-radius: 12px;
  background: color-mix(in srgb, var(--c, #64748b) 14%, var(--bg-3));
}
button.tb-res-row:hover { filter: brightness(.97); }
div.tb-res-row { cursor: default; }
.tb-res-row .tb-res-num {
  width: 28px; height: 28px; border-radius: 9px; flex: none;
  display: grid; place-items: center;
  background: var(--bg-2); color: var(--ink, var(--c, var(--text)));
  font-family: var(--mono); font-size: 13px; font-weight: 800;
  font-variant-numeric: tabular-nums;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c, #64748b) 50%, transparent);
}
.tb-res-row span {
  flex: 1; min-width: 0; font-size: 13px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tb-chip-pop {
  position: fixed; z-index: 400; width: min(340px, calc(100vw - 16px));
  max-height: 320px; overflow: auto; padding: 10px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow);
}
.tb-chip-pop.is-board {
  width: min(560px, calc(100vw - 16px));
  max-height: min(520px, calc(100vh - 80px));
  padding: 12px;
}
.tb-live-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 8px; }
.tb-live-tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  border: 0; border-radius: 10px; padding: 8px 10px; cursor: pointer; text-align: left;
  background: color-mix(in srgb, var(--tone, #64748b) 14%, var(--bg-3));
  color: var(--text);
}
.tb-live-tile em { font-style: normal; font-size: 10px; font-weight: 800; color: var(--text-3); }
.tb-live-tile b { font-size: 18px; font-weight: 800; line-height: 1; color: var(--tone, var(--text)); font-variant-numeric: tabular-nums; }
.tb-live-tile.is-on { box-shadow: inset 0 0 0 1.5px var(--tone, var(--text)); }
.tb-live-people { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--border); padding-top: 8px; }
.tb-live-people .tb-live-line {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) .72fr .78fr minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 10px;
}
.tb-chip-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 2px 8px; }
.tb-chip-head strong { font-size: 13px; }
.tb-chip-head span { font-size: 11px; color: var(--text-3); font-weight: 700; }
.tb-chip-empty { font-size: 12px; color: var(--text-3); padding: 8px 4px 4px; }
button.tb-chip-row, .tb-chip-row {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  width: 100%; text-align: left; border: 0; background: transparent;
  padding: 8px; border-radius: 10px; color: inherit; font: inherit;
}
button.tb-chip-row { cursor: pointer; }
button.tb-chip-row:hover { background: var(--bg-3); }
.tb-chip-row b { font-size: 13px; font-weight: 800; }
.tb-chip-row small { color: var(--text-3); font-size: 11px; font-weight: 600; }
.tb-chip-row i {
  width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px;
  background: var(--dot, #94a3b8); vertical-align: 1px;
}
.tb-chip-row.is-call i { box-shadow: 0 0 0 3px color-mix(in srgb, var(--dot) 28%, transparent); }
.pill-total .tb-pill-dot { background: var(--text-2); }
.pill-total .tb-pill-val { color: var(--text); }
[data-theme="dark"] .pill-call .tb-pill-val { color: #81C784; }
[data-theme="dark"] .pill-ready .tb-pill-val { color: #FFB74D; }
[data-theme="dark"] .pill-wrap .tb-pill-val { color: #4DD0E1; }
[data-theme="dark"] .pill-break .tb-pill-val { color: #B39DDB; }
[data-theme="dark"] .pill-off .tb-pill-val { color: #E0E0E0; }
button.tb-pill.pill-bal {
  appearance: none;
  cursor: pointer;
  gap: 6px;
  max-width: 156px;
  padding: 0 10px 0 6px;
  border: 1px solid var(--border);
  background: var(--bg-3);
  color: var(--text);
}
.pill-bal-mark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  background: color-mix(in srgb, currentColor 16%, transparent);
}
.pill-bal .tb-pill-val,
.pill-bal .pill-bal-mark { color: inherit; }
.pill-bal .tb-pill-val {
  max-width: 118px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
button.tb-pill.pill-bal.is-ok {
  background: #dcfce7;
  border-color: #16a34a;
  color: #166534;
}
button.tb-pill.pill-bal.is-warn {
  background: #ffedd5;
  border-color: #ea580c;
  color: #c2410c;
}
button.tb-pill.pill-bal.is-low { border-style: solid; }
button.tb-pill.pill-bal.is-neg {
  --bal-rest: #fee2e2;
  --bal-ink: #991b1b;
  border-color: #dc2626;
  animation: balNeg 1.05s ease-in-out infinite;
}
@keyframes balNeg {
  0%, 100% {
    background: var(--bal-rest);
    color: var(--bal-ink);
    box-shadow: 0 0 0 transparent;
  }
  50% {
    background: #dc2626;
    color: #fff;
    box-shadow: 0 0 16px rgba(220, 38, 38, .85);
  }
}
[data-theme="dark"] button.tb-pill.pill-bal.is-ok {
  background: rgba(22, 163, 74, .24);
  border-color: #22c55e;
  color: #86efac;
}
[data-theme="dark"] button.tb-pill.pill-bal.is-warn {
  background: rgba(234, 88, 12, .24);
  border-color: #fb923c;
  color: #fdba74;
}
#tb-bal-pop {
  position: fixed;
  z-index: 400;
  width: 280px;
  padding: 14px 14px 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-2);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
}
.tb-bal-pop[hidden] { display: none !important; }
.tb-bal-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-3);
}
.tb-bal-today {
  margin-top: 2px;
  font-size: 26px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  line-height: 1.15;
}
.tb-bal-sub { margin-top: 4px; font-size: 12px; color: var(--text-2); }
.tb-bal-rows { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.tb-bal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 10px;
  border-radius: 10px;
  background: var(--bg-3);
  font-size: 12px;
  color: var(--text-2);
}
.tb-bal-row b { color: var(--text); font-variant-numeric: tabular-nums; font-size: 13px; }
.tb-bal-note { margin: 10px 0 0; font-size: 11px; line-height: 1.4; color: var(--text-3); }
.tb-bal-empty { font-size: 13px; color: var(--text-2); }
[data-theme="dark"] .live-card,
[data-theme="dark"] .live-line,
[data-theme="dark"] .sup-card { --ink: #f8fafc; }
[data-theme="dark"] .live-card--on_call,
[data-theme="dark"] .live-line--on_call,
[data-theme="dark"] .sup-card--on_call { --tone-a: #2E7D32; --tone-b: #0d3311; }
[data-theme="dark"] .live-card--ready,
[data-theme="dark"] .live-line--ready,
[data-theme="dark"] .sup-card--ready { --tone-a: #E65100; --tone-b: #7a2a00; }
[data-theme="dark"] .live-card--wrapping,
[data-theme="dark"] .live-line--wrapping,
[data-theme="dark"] .sup-card--wrapping { --tone-a: #00838F; --tone-b: #04363a; }
[data-theme="dark"] .live-card--break,
[data-theme="dark"] .live-line--break,
[data-theme="dark"] .sup-card--break { --tone-a: #5E35B1; --tone-b: #24124f; }
[data-theme="dark"] .live-card--offline,
[data-theme="dark"] .live-line--offline,
[data-theme="dark"] .sup-card--offline { --tone-a: #546170; --tone-b: #1c2430; }
[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea { color: var(--text); }
[data-theme="dark"] option,
[data-theme="dark"] optgroup { background: #1a1e2a; color: #f4f6fb; }
@keyframes blink {
0%,100% { opacity:1; box-shadow:0 0 4px #16a34a; }
50%      { opacity:.5; box-shadow:0 0 10px #16a34a; }
}
/* Topbar right */
.tb-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 0;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  height: 32px;
  position: relative;
}
.tb-icon-btn.tb-mesai {
  position: relative;
  overflow: hidden;
  width: auto;
  min-width: 0;
  height: 32px;
  padding: 0 8px;
  gap: 5px;
  justify-content: flex-start;
  flex: none;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  border-radius: 16px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  box-sizing: border-box;
  color: var(--text);
}
.tb-mesai-rot {
  position: relative;
  z-index: 1;
  display: grid;
  overflow: hidden;
  align-items: center;
  min-width: 0;
}
#tb-mesai-rot {
  display: grid;
  line-height: 1;
  justify-items: center;
}
#tb-mesai-rot > span {
  grid-area: 1 / 1;
  justify-self: center;
  width: max-content;
  max-width: 168px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1;
  text-align: center;
  display: block !important;
  transform: translateX(110%);
  opacity: 0;
  transition: transform .45s ease, opacity .45s ease;
}
#tb-mesai-rot > span.is-on { transform: none; opacity: 1; }
#tb-mesai-rot > span.is-out { transform: translateX(-110%); opacity: 0; }
#tb-mesai-rot > span > i {
  display: inline-block;
  font-style: normal;
  white-space: nowrap;
  font-weight: inherit;
  color: inherit;
}
#tb-mesai-rot > span.is-on > i.is-slide {
  animation: mbNameSlide ease-in-out infinite alternate;
}
#tb-mesai-rot > span[data-k="range"] { font-weight: 700; }
#tb-mesai-rot > span[data-k="left"] {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  color: var(--accent);
}
@media (prefers-reduced-motion: reduce) {
  #tb-mesai-rot > span { transition: none; }
}
.tb-mesai-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(to top, var(--accent) 0 3px, color-mix(in srgb, var(--accent) 20%, transparent) 3px);
  pointer-events: none;
  transition: width .8s linear;
}
.tb-mesai > svg, #tb-mesai-label, #tb-mesai-left { position: relative; z-index: 1; }
button.tb-icon-btn.tb-mesai.is-break-soon {
  color: #166534 !important;
  box-shadow: inset 0 0 0 2px #22c55e, 0 0 12px rgba(34, 197, 94, .55) !important;
}
[data-theme="dark"] button.tb-icon-btn.tb-mesai.is-break-soon {
  color: #f0fdf4 !important;
}
[data-theme="dark"] .tb-mesai.is-break-soon .tb-mesai-fill {
  background: color-mix(in srgb, #14532d 78%, #0b1220);
}
.tb-mesai.is-break-soon .tb-mesai-fill { background: color-mix(in srgb, #22c55e 45%, transparent); }
@media (min-width: 769px) {
  .tb-pills-wrap:not(.is-mesai-open) .tb-icon-btn.tb-mesai.is-break-soon:not(:hover) {
    width: auto !important;
    min-width: 32px;
    padding: 0 8px;
  }
  .tb-pills-wrap:not(.is-mesai-open) .tb-icon-btn.tb-mesai.is-break-soon:not(:hover) #tb-mesai-label {
    display: block !important;
    width: auto;
    max-width: 128px;
  }
}
.tb-mesai.is-due { animation: mesaiDue 1s ease-in-out infinite; }
.tb-mesai.is-due .tb-mesai-fill { background: color-mix(in srgb, var(--accent) 58%, transparent); }
@keyframes mesaiDue {
  0%, 100% { box-shadow: inset 0 0 0 0 transparent; }
  50% { box-shadow: inset 0 0 0 1px var(--accent), 0 0 14px color-mix(in srgb, var(--accent) 75%, transparent); }
}
.tb-mesai-pop {
  position: fixed;
  z-index: 400;
  width: 380px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-2);
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
}
.tb-mesai-days { display: flex; gap: 4px; margin-bottom: 14px; }
.tb-mesai-day {
  flex: 1;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-3);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.tb-mesai-day.is-on { color: var(--text-2); }
.tb-mesai-day.is-today { box-shadow: inset 0 -2px 0 var(--accent); }
.tb-mesai-day.is-pick { background: var(--accent); color: #fff; border-color: var(--accent); }
.tb-mesai-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tb-mesai-head b { font-size: 16px; }
.tb-mesai-next { margin-left: auto; text-align: right; }
.tb-mesai-next small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .02em; color: var(--text-3); }
.tb-mesai-next span { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tb-mesai-track { position: relative; height: 16px; margin: 14px 0 8px; border-radius: 99px; background: var(--bg-3); }
.tb-mesai-work { position: absolute; top: 0; bottom: 0; border-radius: 99px; background: color-mix(in srgb, #d4a24a 28%, var(--bg-3)); }
.tb-mesai-work.is-done { background: #d4a24a; }
.tb-mesai-work.is-live { background: linear-gradient(90deg, #d4a24a, #f3dfb0); }
.tb-mesai-gap { position: absolute; top: 3px; bottom: 3px; border-radius: 99px; background: color-mix(in srgb, #16a34a 55%, var(--bg-2)); }
.tb-mesai-gap.is-done { background: #15803d; }
.tb-mesai-gap.is-live { background: #22c55e; box-shadow: 0 0 0 3px color-mix(in srgb, #22c55e 35%, transparent); }
.tb-mesai-now { position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%; background: var(--text); border: 2px solid var(--bg-2); box-shadow: 0 0 0 3px color-mix(in srgb, #d4a24a 55%, transparent); transform: translate(-50%, -50%); z-index: 2; }
.tb-mesai-stages { display: flex; gap: 4px; margin: 0 0 12px; overflow: auto; }
.tb-mesai-stage { flex: 1 0 58px; min-width: 0; padding: 6px 4px; border-radius: 8px; background: var(--bg-3); text-align: center; font-size: 10px; font-weight: 700; color: var(--text-3); }
.tb-mesai-stage b { display: block; margin-top: 1px; font-size: 11px; color: var(--text); font-variant-numeric: tabular-nums; }
.tb-mesai-stage.is-done { opacity: .5; }
.tb-mesai-stage.is-next, .tb-mesai-stage.is-live { background: #fff7ed; color: #9a3412; box-shadow: inset 0 0 0 1px #fdba74; }
.tb-mesai-stage.is-live { background: #ffedd5; }
.tb-mesai-stage.is-break { background: #ecfdf3; color: #166534; }
.tb-mesai-stage.is-break b { color: #14532d; }
.tb-mesai-stage.is-break.is-next,
.tb-mesai-stage.is-break.is-live { background: #dcfce7; color: #14532d; box-shadow: inset 0 0 0 1px #4ade80; }
[data-theme="dark"] .tb-mesai-stage.is-next,
[data-theme="dark"] .tb-mesai-stage.is-live { background: rgba(234, 88, 12, .22); color: #fdba74; }
[data-theme="dark"] .tb-mesai-stage.is-break,
[data-theme="dark"] .tb-mesai-stage.is-break.is-next,
[data-theme="dark"] .tb-mesai-stage.is-break.is-live,
[data-theme="dark"] .tb-mesai-card,
[data-theme="dark"] .tb-mesai-card.is-next,
[data-theme="dark"] .tb-mesai-card.is-live { background: rgba(22, 163, 74, .2); color: #86efac; }
.tb-mesai-sub { font-size: 12px; color: var(--text-2); margin-bottom: 10px; }
.tb-mesai-kicker { font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.tb-mesai-empty { font-size: 12px; color: var(--text-3); padding: 8px 0 2px; }
.tb-mesai-card { display: flex; align-items: center; gap: 10px; margin-top: 6px; padding: 8px 10px; border-radius: 10px; background: #f0fdf4; box-shadow: inset 0 0 0 1px #86efac; }
.tb-mesai-card i { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: #dcfce7; color: #166534; font-style: normal; font-size: 11px; font-weight: 800; }
.tb-mesai-card span { font-size: 13px; font-weight: 700; color: #14532d; }
.tb-mesai-card b { margin-left: auto; font-size: 13px; font-variant-numeric: tabular-nums; color: #166534; }
.tb-mesai-card.is-next { box-shadow: inset 0 0 0 1.5px #22c55e; }
.tb-mesai-card.is-live { background: #dcfce7; }
.tb-mesai-card.is-done { opacity: .55; }
.mesai-plan-days { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.mesai-plan-day { min-width: 46px; }
.mesai-plan-day.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.mesai-plan-break { padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; background: var(--bg-3); }
button.tb-pill.tb-takvim {
  gap: 6px;
  height: 32px;
  padding: 0 12px 0 8px;
  border-radius: 16px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.tb-takvim .tb-pill-lbl {
  display: inline;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}
button.tb-pill.pill-camp {
  gap: 8px;
  min-width: 76px;
  padding: 0 14px 0 8px;
  max-width: none;
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #312e81;
}
.pill-camp-mark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: #4f46e5;
  color: #fff;
}
.pill-camp .tb-pill-val {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #312e81;
}
@keyframes mbNameSlide {
  0%, 15% { transform: translateX(0); }
  85%, 100% { transform: translateX(var(--slide, 0px)); }
}
.pill-camp .tb-pill-val.is-slide { text-overflow: clip; }
.pill-camp .tb-pill-val.is-slide > i {
  display: inline-block;
  font-style: normal;
  font-weight: inherit;
  white-space: nowrap;
  animation: mbNameSlide ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .pill-camp .tb-pill-val.is-slide > i { animation: none; }
}
button.tb-pill.pill-camp.is-ok {
  background: #dcfce7;
  border-color: #16a34a;
  color: #166534;
  box-shadow: 0 0 12px rgba(22, 163, 74, .45);
}
button.tb-pill.pill-camp.is-ok .pill-camp-mark { background: #16a34a; }
button.tb-pill.pill-camp.is-ok .tb-pill-val { color: #166534; }
button.tb-pill.pill-camp.is-wrong {
  animation: campWrong 1.1s ease-in-out infinite;
}
button.tb-pill.pill-camp.is-wrong .pill-camp-mark { background: #dc2626; }
@keyframes campWrong {
  0%, 100% { background: #fee2e2; border-color: #dc2626; color: #991b1b; box-shadow: 0 0 0 transparent; }
  50% { background: #dc2626; border-color: #dc2626; color: #fff; box-shadow: 0 0 14px rgba(220, 38, 38, .8); }
}
button.tb-pill.pill-camp.is-wrong .tb-pill-val { color: inherit; }
[data-theme="dark"] button.tb-pill.pill-camp {
  background: rgba(79, 70, 229, .22);
  border-color: #6366f1;
  color: #e0e7ff;
}
[data-theme="dark"] .pill-camp .tb-pill-val { color: #e0e7ff; }
[data-theme="dark"] button.tb-pill.pill-camp.is-ok {
  background: rgba(22, 163, 74, .24);
  border-color: #22c55e;
  color: #86efac;
}
[data-theme="dark"] button.tb-pill.pill-camp.is-ok .tb-pill-val { color: #86efac; }
.tb-uname, .tb-urole {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 1280px) {
  .tb-logo-name { display: none; }
  .tb-logo { margin-right: 0; }
  .tb-logo-inner { padding: 4px; gap: 0; }
}
@media (max-width: 1100px) {
  .tb-urole { display: none; }
  .tb-uname { max-width: 88px; }
}
.tb-mascot-anchor {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  align-self: center;
  border-radius: 12px;
  pointer-events: none;
}
.tb-mascot-anchor.is-off {
  width: 0;
  height: 0;
  flex-basis: 0;
  margin: 0;
  overflow: hidden;
}
#tb-notif-btn { position: relative; }
#tb-notif-btn #tb-notif-badge {
  top: 1px;
  right: 1px;
}
.notif-center-head {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.notif-center-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  white-space: nowrap;
}
.notif-center-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}
.notif-center-tools .form-input { flex: 1; min-width: 0; max-width: none; }
.notif-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg-2);
  z-index: 1;
}
.notif-cats:empty { display: none; }
.notif-chip {
  border: 1px solid var(--border);
  background: var(--bg-3);
  color: var(--text-2);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  cursor: pointer;
}
.notif-chip.is-on {
  background: #2563eb;
  color: #fff;
  border-color: transparent;
}
.notif-list { padding: 10px; display: flex; flex-direction: column; gap: 10px; }
.notif-sec { display: flex; flex-direction: column; gap: 6px; }
.notif-sec-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-3);
  letter-spacing: .03em;
}
#notif-clear-all { color: #dc2626; white-space: nowrap; }
.ops-agent-only { display: none; }
#notif-settings-card.is-agent .ops-firm-only,
#notif-settings-card.is-agent .ops-agent-row-hide { display: none !important; }
#notif-settings-card.is-agent .ops-agent-only { display: block; }
.notif-sec-tools { display: flex; align-items: center; gap: 2px; }
.notif-move {
  border: 0;
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  padding: 0 3px;
}
.notif-move:disabled { opacity: .35; cursor: default; }
.notif-move:not(:disabled):hover { color: var(--text, #111); }
.notif-clear, .notif-del {
  border: 0;
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
  font-weight: 700;
}
.notif-clear { font-size: 11px; }
.notif-clear:hover, .notif-del:hover { color: #dc2626; }
.notif-card { padding: 8px 10px; background: var(--bg-3); border-radius: 8px; }
.notif-card-top { display: flex; gap: 8px; align-items: flex-start; }
.notif-card-title { flex: 1; font-size: 12px; font-weight: 700; }
.notif-card-meta { font-size: 10px; color: var(--text-3); white-space: nowrap; }
.notif-card-body { font-size: 11px; margin-top: 3px; color: inherit; white-space: pre-line; }
.notif-del { font-size: 16px; line-height: 1; padding: 0 2px; }
/* Üst bar + dialer slot arasında gezen global maskot */
.global-mascot {
  position: fixed;
  z-index: 130;
  left: 0;
  top: 0;
  /* 0×0 kutu abs. balonun width: max-content hesabını bozup tek harf sütunu yapıyordu */
  width: 1px;
  height: 1px;
  overflow: visible;
  pointer-events: none;
  opacity: 0;
  /* Konum (--gm-wx/y) anında; süzülme yok */
  transition: opacity 0.2s ease;
  --mascot-call-heat: 0;
}
.global-mascot.global-mascot--dragging {
  transition: none !important;
}
.global-mascot.global-mascot--placed {
  opacity: 1;
}
.global-mascot:not(.global-mascot--placed) .cust-empty-mascot {
  pointer-events: none;
}
.global-mascot .cust-empty-mascot {
  position: absolute;
  left: 0;
  top: 0;
  margin: 0;
  touch-action: none;
  transform:
    translate(calc(-50% + var(--gm-wx, 0px)), calc(-50% + var(--gm-wy, 0px)))
    scale(var(--mascot-scale, 1));
  transform-origin: center center;
  filter:
    saturate(calc(1 + var(--mascot-call-heat, 0) * 0.45))
    hue-rotate(calc(var(--mascot-call-heat, 0) * 48deg));
  pointer-events: auto;
  cursor: grab;
  animation: mascot-idle-float 3.2s ease-in-out infinite;
  /* Dialer kartındaki 0.5s transform geçişi balonu geride bırakıyordu. */
  transition: none;
}
.global-mascot.global-mascot--dragging .cust-empty-mascot {
  cursor: grabbing;
  animation: none;
}
.global-mascot.global-mascot--custom {
  transition: none;
}
.global-mascot-info {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(18px, -18px);
  min-width: 280px;
  max-width: min(420px, calc(100vw - 24px));
  padding: 12px 13px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background:
    radial-gradient(120% 100% at 10% 0%, rgba(155, 103, 255, 0.28), rgba(20, 24, 36, 0.92)),
    linear-gradient(145deg, rgba(12, 16, 26, 0.92), rgba(18, 24, 38, 0.9));
  color: #f8f9ff;
  box-shadow: 0 14px 40px rgba(10, 8, 20, 0.45), 0 0 0 1px rgba(168, 85, 247, 0.22) inset;
  backdrop-filter: blur(6px);
  pointer-events: auto;
}
.global-mascot-info-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}
.global-mascot-info-tabs {
  display: flex;
  gap: 6px;
  margin: 8px 0 10px;
}
.global-mascot-info-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.global-mascot-info-actions .btn {
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.92);
}
.global-mascot-tab {
  flex: 1 1 0;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.9);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.15s ease;
}
.global-mascot-tab:hover { background: rgba(255,255,255,0.1); }
.global-mascot-tab.active {
  background: rgba(168, 85, 247, 0.22);
  border-color: rgba(168, 85, 247, 0.32);
}
.global-mascot-pane { animation: mimi-pane-in 0.18s ease; }
@keyframes mimi-pane-in { from { opacity: 0; transform: translateY(2px); } to { opacity: 1; transform: translateY(0); } }
.global-mascot-info-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  margin-bottom: 5px;
}
.global-mascot-info-row span { opacity: 0.82; }
.global-mascot-info-row strong { font-weight: 700; }
.global-mascot-info-note {
  font-size: 11px;
  line-height: 1.4;
  margin-top: 8px;
  opacity: 0.9;
}
.sb-mascot-anchor {
  width: 64px;
  height: 64px;
  margin: 0 0 8px;
  opacity: 0;
  pointer-events: none;
}
.global-mascot.global-mascot--topbar .cust-empty-mascot {
  animation: none;
  transform: translate(calc(-50% + var(--gm-wx, 0px)), calc(-50% + var(--gm-wy, 0px)))
    scale(calc(var(--mascot-scale, 1) * 0.62));
}
#sidebar.collapsed .sb-mascot-anchor {
  width: 36px;
  height: 36px;
  margin: 0 auto 4px;
}
#sidebar.collapsed .sb-footer {
  min-height: 52px;
  justify-content: center;
  padding: 6px 4px;
}
.global-mascot-morph {
  position: absolute;
  left: 0;
  top: 0;
  width: 72px;
  height: 72px;
  margin: -36px 0 0 -36px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.4);
  transition: opacity 0.28s ease, transform 0.35s cubic-bezier(0.33, 1, 0.68, 1);
  font-size: 26px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
.global-mascot--notif-morph .global-mascot-morph {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.global-mascot--notif-morph .cust-empty-mascot {
  opacity: 0.15;
  transform: translate(-50%, -50%) scale(0.25);
}
.global-mascot--notif-morph.global-mascot--notif-open .cust-empty-mascot {
  opacity: 1;
  transform: translate(-50%, -50%) scale(0.55);
}
.global-mascot--notif-morph.global-mascot--notif-open .global-mascot-morph {
  opacity: 0;
  transform: translate(-50%, -50%) scale(1.25);
}
.global-mascot .cust-empty-bubble.global-mascot-bubble {
  position: absolute;
  left: 50%;
  top: 50%;
  margin-top: 0;
  /* Gezinirken balon maskotla aynı karede kalsın; transform geçişi geride bırakıyordu. */
  transition: opacity 0.35s ease;
  transform: translate(
    calc(-50% + var(--gm-wx, 0px) + var(--bubble-shift-x, 0px)),
    calc(-50% + var(--gm-wy, 0px) + 52px)
  );
  /* vw tabanı; genişlik 0×0 kapsayıcıya bağlı kalmasın */
  width: auto;
  min-width: min(200px, calc(100vw - 32px));
  max-width: min(300px, calc(100vw - 24px));
  box-sizing: border-box;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  padding: 10px 14px;
  z-index: 5;
  text-align: center;
}
.global-mascot .cust-empty-bubble.global-mascot-bubble.cust-empty-bubble--pop {
  opacity: 1;
  transform: translate(
    calc(-50% + var(--gm-wx, 0px) + var(--bubble-shift-x, 0px)),
    calc(-50% + var(--gm-wy, 0px) + 52px)
  ) scale(1);
}
.global-mascot.global-mascot--topbar .cust-empty-bubble.global-mascot-bubble,
.global-mascot.global-mascot--topbar .cust-empty-bubble.global-mascot-bubble.cust-empty-bubble--pop {
  left: 34px;
  top: 0;
  min-width: 0;
  width: max-content;
  max-width: 200px;
  text-align: left;
  pointer-events: none;
  transform: translate(var(--gm-wx, 0px), calc(-42% + var(--gm-wy, 0px))) scale(1);
}
.global-mascot.global-mascot--sidebar .cust-empty-bubble.global-mascot-bubble,
.global-mascot.global-mascot--sidebar .cust-empty-bubble.global-mascot-bubble.cust-empty-bubble--pop {
  left: 0;
  top: -8px;
  width: 196px;
  max-width: 196px;
  text-align: left;
  transform: translate(calc(-12px + var(--gm-wx, 0px)), calc(-100% + var(--gm-wy, 0px))) scale(1);
}
.global-mascot.global-mascot--muted .cust-empty-mascot {
  transform: translate(calc(-50% + var(--gm-wx, 0px)), calc(-50% + var(--gm-wy, 0px))) scale(0.5);
  animation: none !important;
  opacity: 1;
}
.global-mascot.global-mascot--muted .global-mascot-info,
.global-mascot.global-mascot--muted .cust-empty-bubble {
  display: none !important;
}
.global-mascot.global-mascot--muted.global-mascot--aria .cust-empty-bubble {
  display: block !important;
}
/* Balon maskotun açık tarafında durur; kenarda kesilmez, maskotun üstünü kapatmaz. */
.global-mascot .cust-empty-bubble.global-mascot-bubble.cust-empty-bubble--docked,
.global-mascot.global-mascot--topbar .cust-empty-bubble.global-mascot-bubble.cust-empty-bubble--docked,
.global-mascot.global-mascot--sidebar .cust-empty-bubble.global-mascot-bubble.cust-empty-bubble--docked,
.global-mascot .cust-empty-bubble.global-mascot-bubble.cust-empty-bubble--docked.cust-empty-bubble--pop,
.global-mascot.global-mascot--topbar .cust-empty-bubble.global-mascot-bubble.cust-empty-bubble--docked.cust-empty-bubble--pop,
.global-mascot.global-mascot--sidebar .cust-empty-bubble.global-mascot-bubble.cust-empty-bubble--docked.cust-empty-bubble--pop {
  position: fixed;
  left: var(--bubble-left, 8px);
  top: var(--bubble-top, 8px);
  right: auto;
  bottom: auto;
  margin: 0;
  width: max-content;
  min-width: 0;
  max-width: var(--bubble-max-w, 240px);
  transform: none;
  text-align: left;
  pointer-events: none;
  z-index: 6;
}
.global-mascot.global-mascot--peek-chat {
  left: auto !important;
  top: auto !important;
  right: max(72px, 12vw);
  bottom: max(16px, 2.5vh);
  transform: none;
}
.global-mascot.global-mascot--peek-chat .cust-empty-mascot {
  left: auto;
  top: auto;
  margin: 0;
  transform: scale(var(--mascot-scale, 1));
}
.global-mascot.global-mascot--peek-chat .cust-empty-mascot-eyes {
  transform: translateX(5px);
}
.global-mascot.global-mascot--peek-chat .cust-empty-eye::after {
  transform: translate(-42%, -34%);
}
.global-mascot.global-mascot--peek-notif {
  left: auto !important;
  top: max(52px, var(--topbar-h, 54px)) !important;
  right: 52px;
  transform: none;
}
.global-mascot.global-mascot--peek-notif .cust-empty-mascot {
  left: auto;
  top: auto;
  margin: 0;
  transform: scale(var(--mascot-scale, 1));
}
.global-mascot.global-mascot--peek-notif .cust-empty-eye::after {
  transform: translate(-30%, -62%);
}
.global-mascot.global-mascot--celebrate .cust-empty-mascot {
  animation: mascot-celebrate-bounce 0.7s ease-in-out 3;
}
.global-mascot.global-mascot--muted.global-mascot--celebrate .cust-empty-mascot,
.global-mascot.global-mascot--muted.global-mascot--sad .cust-empty-mascot {
  animation: none !important;
}
.global-mascot.global-mascot--sad .cust-empty-mascot {
  animation: mascot-sad-sway 1.7s ease-in-out infinite;
  filter: saturate(0.72) brightness(0.9);
}
.global-mascot.global-mascot--sad .cust-empty-mascot-eyes {
  transform: translateY(2px) scaleY(0.78);
}
@keyframes mascot-idle-float {
  0%, 100% {
    transform: translate(calc(-50% + var(--gm-wx, 0px)), calc(-50% + var(--gm-wy, 0px)))
      scale(var(--mascot-scale, 1)) rotate(-1.2deg);
  }
  50% {
    transform: translate(calc(-50% + var(--gm-wx, 0px)), calc(-50% - 4px + var(--gm-wy, 0px)))
      scale(calc(var(--mascot-scale, 1) * 1.02)) rotate(1.4deg);
  }
}
@keyframes mascot-celebrate-bounce {
  0%, 100% {
    transform: translate(calc(-50% + var(--gm-wx, 0px)), calc(-50% + var(--gm-wy, 0px)))
      scale(var(--mascot-scale, 1));
  }
  25% {
    transform: translate(calc(-50% + var(--gm-wx, 0px)), calc(-50% - 10px + var(--gm-wy, 0px)))
      scale(calc(var(--mascot-scale, 1) * 1.1));
  }
  60% {
    transform: translate(calc(-50% + var(--gm-wx, 0px)), calc(-50% + var(--gm-wy, 0px)))
      scale(calc(var(--mascot-scale, 1) * 0.95));
  }
}
@keyframes mascot-sad-sway {
  0%, 100% {
    transform: translate(calc(-50% + var(--gm-wx, 0px)), calc(-50% + var(--gm-wy, 0px)))
      scale(var(--mascot-scale, 1)) rotate(-3deg);
  }
  50% {
    transform: translate(calc(-50% + var(--gm-wx, 0px)), calc(-50% + 3px + var(--gm-wy, 0px)))
      scale(calc(var(--mascot-scale, 1) * 0.97)) rotate(3deg);
  }
}
.tb-icon-btn {
width: 32px; height: 32px;
display: flex; align-items: center; justify-content: center;
border-radius: 8px;
color: var(--text-2);
transition: var(--transition);
font-size: 12px;
font-weight: 700;
font-family: var(--mono);
line-height: 1;
padding: 0;
flex-shrink: 0;
box-sizing: border-box;
}
.tb-icon-btn > span {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.tb-icon-btn:hover { background: var(--bg-3); color: var(--text); }
.tb-user {
display: flex; align-items: center; gap: 7px;
height: 32px;
box-sizing: border-box;
background: var(--bg-3);
border: 1px solid var(--border);
border-radius: 16px;
padding: 0 10px 0 3px;
transition: var(--transition);
flex-shrink: 0;
}
.tb-user:hover { border-color: var(--border-2); }
.tb-avatar {
width: 26px; height: 26px; border-radius: 50%;
background: var(--bg-2);
border: 1px solid var(--border);
display: flex; align-items: center; justify-content: center;
font-size: 11px; font-weight: 700; color: var(--text);
line-height: 1;
flex-shrink: 0;
padding: 0;
}
@media (max-width: 900px) {
  .tb-user {
    width: 32px;
    min-width: 32px;
    height: 32px;
    padding: 0;
    gap: 0;
    justify-content: center;
    border-radius: 8px;
  }
  .tb-user > div:last-child { display: none; }
  .tb-user .tb-avatar {
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
  }
}
.tb-uname { font-size: 12px; font-weight: 600; line-height: 1.15; }
.tb-urole { font-size: 9px; color: var(--text-3); line-height: 1.15; }
/* ── BODY ── */
#body {
  display: flex;
  flex: 1;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  position: relative;
  align-items: stretch;
}
/* ── SIDEBAR ── */
#sidebar {
width: var(--sidebar-w);
min-width: var(--sidebar-w);
background: var(--sidebar-aurora-base);
border-right: none;
display: flex; flex-direction: column;
overflow: hidden;
z-index: 90;
position: relative;
transition: width var(--transition), min-width var(--transition), transform var(--transition);
box-shadow: 4px 0 24px rgba(0,0,0,0.15);
}
.sidebar-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: manipulation;
}
/* Aurora altta (z-index:0), menü üstte — sb-top-strip kaldırıldı; yanlış seçici aurorayı bozuyordu */
#sidebar > *:not(.fluid-aurora--sidebar) {
position: relative;
z-index: 1;
}
[data-theme="dark"] #sidebar { background: var(--sidebar-aurora-base); }
#sidebar.collapsed { width: 56px; min-width: 56px; }
#sidebar.collapsed .sb-label,
#sidebar.collapsed .sb-group-btn,
#sidebar.collapsed .tb-logo-name,
#sidebar.collapsed .sb-item span:not(.sb-item-icon):not(.sb-badge),
#sidebar.collapsed .sb-badge,
#sidebar.collapsed .sb-ver,
#sidebar.collapsed .sb-footer-text { display: none; }
#sidebar.collapsed .sb-item { justify-content: center; padding: 10px; }
#sidebar.collapsed .sb-item-icon { width: 22px; height: 22px; }
#sidebar.collapsed .sb-section { padding: 6px 4px; }
#sidebar-overlay {
display: none; position: absolute; inset: 0;
background: #00000040; z-index: 89;
backdrop-filter: blur(2px);
}
#sidebar-overlay.show { display: block; }
@media (max-width: 1024px) {
#sidebar {
position: fixed;
top: var(--topbar-h);
left: calc(-1 * min(var(--sidebar-w), 86vw));
bottom: 0;
height: auto;
max-height: none;
width: min(var(--sidebar-w), 86vw);
min-width: 0;
transform: none;
z-index: 210;
box-shadow: var(--shadow-md);
transition: left var(--transition);
pointer-events: none;
}
#sidebar.open {
left: 0;
transform: none;
pointer-events: auto;
}
#sidebar.collapsed:not(.open) {
transform: none;
left: calc(-1 * min(var(--sidebar-w), 86vw));
width: min(var(--sidebar-w), 86vw);
min-width: 0;
}
#sidebar-overlay {
position: fixed;
top: var(--topbar-h);
right: 0;
bottom: 0;
left: 0;
z-index: 200;
backdrop-filter: none;
-webkit-backdrop-filter: none;
}
#topbar { z-index: 220; }
#topbar > .tb-hamburger {
z-index: 3;
width: 44px;
height: 44px;
touch-action: manipulation;
}
.sb-item, .sb-group-btn { touch-action: manipulation; }
}
.sb-section { padding: 8px; }
.sb-group + .sb-group { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 4px; padding-top: 4px; }
.sb-group.is-empty { display: none; }
.sb-group-btn {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; background: none; border: none; cursor: pointer;
  font-size: 9px; font-weight: 700; color: rgba(255,255,255,0.72);
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 10px 14px 4px;
}
.sb-group-btn:hover { color: #fff; }
#sidebar.is-nav-edit .sb-group.is-empty { display: block; }
#sidebar.is-nav-edit .sb-group.is-collapsed .sb-sub { display: flex; }
#sidebar.is-nav-edit .sb-group-btn,
#sidebar.is-nav-edit .sb-sub .sb-item { cursor: grab; }
#sidebar.is-nav-edit .sb-sub .sb-item::after {
  content: "";
  width: 8px;
  height: 12px;
  margin-left: 8px;
  flex: 0 0 auto;
  opacity: 0.75;
  background-image: radial-gradient(currentColor 1.1px, transparent 1.3px);
  background-size: 4px 4px;
}
#sidebar.is-nav-edit .sb-group { outline: 1px dashed rgba(255,255,255,0.28); outline-offset: -2px; border-radius: 8px; }
#sidebar.is-nav-edit .is-nav-dragging { opacity: 0.45; }
.sb-chevron { opacity: 0.7; transition: transform 0.15s ease; }
.sb-group.is-collapsed .sb-chevron { transform: rotate(-90deg); }
.sb-group.is-collapsed .sb-sub { display: none; }
.sb-sub { display: flex; flex-direction: column; }
.sb-sub .sb-item { padding-left: 18px; }
#sidebar.collapsed .sb-group.is-collapsed .sb-sub { display: flex; }
#sidebar.collapsed .sb-sub .sb-item { padding-left: 10px; }
.sb-label {
font-size: 9px; font-weight: 700; color: rgba(255,255,255,0.72);
letter-spacing: 1.5px; text-transform: uppercase;
padding: 12px 14px 4px;
}
.sb-item {
display: flex; align-items: center; gap: 10px;
padding: 9px 12px; border-radius: var(--radius-sm);
color: rgba(255,255,255,0.86); cursor: pointer;
transition: var(--transition); width: 100%;
text-align: left; position: relative;
font-size: 13px; font-weight: 500;
white-space: nowrap;
}
.sb-item:hover { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.9); }
.sb-item.active {
background: rgba(255,255,255,0.14);
color: #fff;
box-shadow: none;
}
.sb-item.active .sb-item-icon { opacity: 1; }
.sb-item-icon {
width: 18px; height: 18px;
display:flex; align-items:center; justify-content:center;
flex-shrink:0; opacity: 0.7;
transition: opacity var(--transition);
}
.sb-item:hover .sb-item-icon { opacity: 1; }

/* Dialer nav call indicator (blink green while on call) */
.sb-item.dialer-calling .sb-item-icon,
.sb-item.dialer-calling .sb-item-icon svg,
.sb-item.dialer-calling .sb-item-icon i {
  color: var(--green) !important;
  opacity: 1 !important;
  animation: dialer-nav-blink 1s ease-in-out infinite;
}
@keyframes dialer-nav-blink {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(22,163,74,0)); opacity: 1; }
  50% { filter: drop-shadow(0 0 7px rgba(22,163,74,0.65)); opacity: 0.35; }
}
.sb-badge {
margin-left: auto; background: var(--accent); color: white;
font-size: 10px; font-weight: 700; padding: 1px 6px;
border-radius: 10px; font-family: var(--mono);
}
.sb-item.active .sb-badge { background: rgba(255,255,255,0.25); }
.sb-badge.sb-badge--open,
.sb-item.active .sb-badge.sb-badge--open { background: #dc2626; color: #fff; }
.sb-badge--open[hidden] { display: none !important; }
.sb-divider { height: 1px; background: rgba(255,255,255,0.08); margin: 4px 10px; }
.sb-footer {
  margin-top: auto;
  padding: 10px 12px 8px;
  border-top: 1px solid rgba(255,255,255,0.08);
  min-height: 88px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  gap: 6px;
}
.sb-foot-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; width: 100%; }
.sb-nav-search-wrap { position: relative; width: 100%; }
.sb-nav-search {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-radius: 8px;
  padding: 7px 58px 7px 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
}
.sb-nav-kbd {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: rgba(255,255,255,0.62);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  padding: 1px 4px;
  line-height: 1.4;
}
.sb-nav-search:not(:placeholder-shown) + .sb-nav-kbd { display: none; }
.sb-nav-search::placeholder { color: rgba(255,255,255,0.55); }
.sb-nav-search:focus { outline: none; border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.12); }
.sb-nav-empty { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.72); }
.sb-nav-empty[hidden] { display: none !important; }
#sidebar.is-nav-search .sb-item.is-nav-miss { display: none !important; }
#sidebar.is-nav-search .sb-group.is-nav-miss,
#sidebar.is-nav-search .sb-section.is-nav-miss { display: none !important; }
#sidebar.is-nav-search .sb-divider { display: none; }
#sidebar.is-nav-search .sb-group:not(.is-nav-miss) .sb-sub { display: flex; }
#sidebar.collapsed .sb-nav-search,
#sidebar.collapsed .sb-nav-empty,
#sidebar.collapsed .sb-nav-kbd,
#sidebar.collapsed .sb-person-pop { display: none !important; }
.sb-ver { font-size: 10px; color: rgba(255,255,255,0.68); font-family: var(--mono); }
/* Sidebar header logo */
/* Sidebar içinde tb-logo olursa (koyu zemin) */
#sidebar .tb-logo-name { color: var(--brand-chrome-fg) !important; }
#sidebar .tb-logo-mark {
  color: var(--brand-chrome-fg) !important;
  background: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
}
#sidebar .tb-hamburger { color: rgba(255,255,255,0.82); }
#sidebar .tb-hamburger:hover { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.9); }
#sidebar .tb-hamburger span { background: currentColor; }
/* ── MAIN ── */
#main {
flex: 1;
min-height: 0;
min-width: 0;
overflow: hidden;
position: relative;
display: flex; flex-direction: column;
}
@media (max-width: 1024px) { #main { padding: 0; min-width: 0; } }
/* ============================================================
PAGES
============================================================ */
.page {
display: none; flex-direction: column; gap: 20px;
min-width: 0;
position: absolute; inset: 0;
overflow-y: auto; overflow-x: hidden;
padding: 24px;
z-index: 1;
pointer-events: none;
visibility: hidden;
-webkit-overflow-scrolling: touch;
overscroll-behavior: contain;
}
.page.active {
display: flex;
pointer-events: auto;
visibility: visible;
}
#page-geocon.page { padding: 0; gap: 0; overflow: hidden; }
.tour-board { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.tour-tabs, .tour-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tour-tabs { margin: 0 0 14px; padding: 4px; border-radius: 14px; background: var(--bg-3); }
.tour-tab {
  border: 0;
  background: transparent;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
}
.tour-tab.is-on { background: var(--bg-2); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.callin-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 4px; border-radius: 14px; background: var(--bg-3); width: max-content; max-width: 100%; }
.callin-tab { border: 0; background: transparent; color: var(--text-2); font-size: 13px; font-weight: 700; line-height: 1; padding: 8px 14px; border-radius: 10px; cursor: pointer; }
.callin-tab.is-on { background: var(--bg-2); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.ai-staff-grid { display: flex; flex-direction: column; gap: 14px; max-width: 880px; }
.ai-note { margin: 0; font-size: 12px; line-height: 1.5; color: var(--text-3); }
.ai-note-warn { color: #b45309; font-weight: 700; }
.ai-card { display: flex; flex-direction: column; gap: 14px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--bg-2); box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.ai-card-hd { display: flex; align-items: center; gap: 10px; }
.ai-card-title { display: flex; align-items: center; gap: 8px; flex: 1; font-size: 15px; font-weight: 800; }
.ai-state { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.ai-state.is-ok { background: var(--green-soft); color: var(--green); }
.ai-state.is-wait { background: #d9770618; color: #b45309; }
.ai-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-size: 12px; font-weight: 800; white-space: nowrap; }
.ai-badge.is-sales { background: var(--green-soft); color: var(--green); }
.ai-name { flex: 1; min-width: 0; padding: 6px 8px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--text); font: inherit; font-size: 15px; font-weight: 800; }
.ai-name:hover, .ai-name:focus { border-color: var(--border); background: var(--bg); outline: none; }
.ai-del { width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--text-3); cursor: pointer; }
.ai-del:hover { background: var(--bg-3); color: var(--red); }
.ai-sec { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid var(--border); }
.ai-sec-t { font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); }
.ai-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.ai-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ai-field > label { font-size: 12px; font-weight: 700; color: var(--text-2); }
.ai-field .form-input { width: 100%; }
.ai-field.is-wide { grid-column: 1 / -1; }
.ai-field textarea.form-input { resize: vertical; line-height: 1.5; }
.ai-narrow { width: 120px; }
.ai-hint { font-size: 11px; line-height: 1.45; color: var(--text-3); }
.ai-tokens-lab { font-size: 12px; font-weight: 700; color: var(--text-2); }
.ai-pills, .ai-token-row, .ai-switches { display: flex; flex-wrap: wrap; gap: 6px; }
.ai-switches { gap: 10px 22px; }
.ai-pill { position: relative; cursor: pointer; }
.ai-pill input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.ai-pill span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg); color: var(--text-2); font-size: 12px; font-weight: 700; transition: background .12s, border-color .12s, color .12s; }
.ai-pill:hover span { border-color: var(--accent); }
.ai-pill input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); }
.ai-pill input:checked + span::before { content: '\2713'; font-weight: 900; }
.ai-pill input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.ai-token { display: inline-flex; align-items: baseline; gap: 6px; padding: 4px 10px; border: 1px dashed var(--border); border-radius: 8px; background: var(--bg); color: var(--text-2); font-size: 12px; cursor: pointer; }
.ai-token b { font-weight: 700; }
.ai-token code { font-family: ui-monospace, Consolas, monospace; font-size: 10px; opacity: .65; }
.ai-token:hover { border-style: solid; border-color: var(--accent); color: var(--accent-text); }
.ai-switch { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; cursor: pointer; }
.ai-switch input { position: absolute; width: 0; height: 0; opacity: 0; }
.ai-switch i { position: relative; flex: none; width: 36px; height: 20px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-3); transition: background .15s, border-color .15s; }
.ai-switch i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--text-3); transition: transform .15s, background .15s; }
.ai-switch input:checked + i { border-color: var(--accent); background: var(--accent); }
.ai-switch input:checked + i::after { transform: translateX(16px); background: #fff; }
.ai-switch input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
.ai-auto { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border: 1px dashed var(--border); border-radius: 12px; }
.ai-auto-body { display: flex; flex-direction: column; gap: 12px; transition: opacity .15s; }
.ai-auto.is-off .ai-auto-body { opacity: .5; }
.ai-hours { display: flex; align-items: center; gap: 8px; }
.ai-hours .form-input { flex: 1; min-width: 0; }
.ai-bar { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-2); box-shadow: 0 -4px 16px rgba(0,0,0,.06); }
.ai-bar-add { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 640px) { .ai-grid { grid-template-columns: 1fr; } }
.ai-callin { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.ai-callin-card { width: min(480px, 100%); background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.aria-sheet {
  margin-top: 4px;
  padding: 14px 16px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg-2);
}
.aria-ask { margin: 0; font-size: 16px; font-weight: 800; letter-spacing: -.02em; color: var(--text); }
.aria-day-title { margin: 4px 0 0; font-size: 13px; font-weight: 800; color: var(--text); }
.aria-run { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 12px; }
.aria-run-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; border: 1px solid var(--border); border-radius: 18px; background: var(--bg-2); }
.aria-run-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.aria-job-switch { display: flex; flex-wrap: wrap; gap: 6px; }
.aria-job {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 5px 12px 5px 5px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-3);
  cursor: pointer;
  user-select: none;
}
.aria-job:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); color: var(--text); }
.aria-job input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--text) 18%, var(--border));
  background: var(--bg-3);
  display: grid;
  place-content: center;
  flex: none;
  cursor: pointer;
}
.aria-job input::before {
  content: "";
  width: 8px;
  height: 5px;
  margin-top: -2px;
  border: solid #fff;
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg);
  opacity: 0;
}
.aria-job:has(input:checked) {
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 12%, var(--bg));
  border-color: color-mix(in srgb, var(--accent) 48%, var(--border));
}
.aria-job input:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.aria-job input:checked::before { opacity: 1; }
.aria-job input:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }
.aria-run-card .tour-help[hidden] { display: none; }
.aria-run-card .tour-help { margin: 0; }
.tour-check-flat { width: 100%; background: transparent; border: 0; padding: 0; }
@media (max-width: 860px) { .aria-run { grid-template-columns: 1fr; } }
.tour-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-3);
}
.tour-switch-btn {
  border: 0;
  background: transparent;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
}
.tour-switch-btn:hover { color: var(--text); }
#tour-mode-off.is-on { background: var(--text); color: var(--bg); }
#tour-mode-on.is-on { background: var(--accent); color: #fff; }
.aria-orb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex: none;
  background:
    radial-gradient(circle at 32% 28%, #fff 0 2px, transparent 3px),
    radial-gradient(circle at 40% 36%, #93c5fd, var(--accent) 46%, #1e3a8a);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}
.aria-status {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 12px;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border));
  border-radius: 18px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 7%, var(--bg-2)), var(--bg-2));
}
.aria-status .aria-orb { width: 22px; height: 22px; margin-top: 1px; }
.aria-status-body { min-width: 0; flex: 1; }
.aria-status-head { display: flex; align-items: center; gap: 8px; min-height: 24px; }
.aria-status-kicker {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--text);
}
.aria-status-mode {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
}
.aria-status-mode.is-on { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.aria-status-mode.is-off { background: var(--bg-3); color: var(--text-3); }
.aria-looking { font-size: 12px; font-weight: 700; color: var(--accent); }
.aria-looking[hidden] { display: none; }
.aria-now[hidden] { display: none; }
.aria-status-line {
  margin: 8px 0 0;
  padding: 10px 12px;
  border-radius: 14px 14px 14px 6px;
  background: var(--bg-3);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
}
#page-tour.is-aria-on .aria-orb { animation: aria-breathe 2.6s ease-in-out infinite; }
#page-tour:not(.is-aria-on) .aria-status {
  border-color: var(--border);
  background: var(--bg-2);
}
#page-tour:not(.is-aria-on) .aria-status .aria-orb {
  background: var(--text-3);
  box-shadow: none;
}
.tour-kicker { margin: 14px 0 8px; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.aria-days { display: flex; gap: 6px; overflow: auto; margin: 0 0 4px; padding-bottom: 2px; }
.aria-day {
  flex: 0 0 auto;
  min-width: 72px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-3);
  color: var(--text-2);
  text-align: left;
  cursor: pointer;
}
.aria-day b { display: block; font-size: 13px; color: var(--text); }
.aria-day span { display: block; margin-top: 2px; font-size: 11px; color: var(--text-3); }
.aria-day.is-pick { border-color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); background: var(--bg-2); }
.tour-fill { height: 4px; margin-top: 8px; border-radius: 99px; background: var(--bg); overflow: hidden; }
.tour-fill > span { display: block; height: 100%; background: var(--accent); }
.aria-pop {
  position: fixed;
  z-index: 400;
  width: 340px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--border));
  border-radius: 20px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, var(--bg-2)), var(--bg-2) 72px);
  box-shadow: 0 22px 50px rgba(0,0,0,.2);
}
.aria-pop[hidden] { display: none !important; }
.aria-pop-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.aria-pop-who { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; letter-spacing: -.02em; }
.aria-pop-mode {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 999px;
}
.aria-pop-earlier { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.aria-pop-earlier > span { font-size: 11px; font-weight: 800; color: var(--text-3); }
.aria-pop-earlier p {
  margin: 0;
  padding: 6px 8px;
  border-radius: 10px 10px 10px 4px;
  background: var(--bg);
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-2);
}
.aria-pop-earlier b { font-family: var(--mono); font-size: 10px; font-weight: 700; color: var(--text-3); margin-right: 6px; }
.aria-pop-mode.is-on { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.aria-pop-mode.is-off { background: var(--bg-3); color: var(--text-3); }
.aria-pop.is-live { border-color: color-mix(in srgb, var(--accent) 42%, var(--border)); }
.aria-pop.is-off { background: var(--bg-2); border-color: var(--border); }
.aria-pop.is-off .aria-orb { background: var(--text-3); box-shadow: none; animation: none; }
.aria-pop.is-live .aria-orb { animation: aria-breathe 2.6s ease-in-out infinite; }
.aria-now-card {
  position: relative;
  overflow: hidden;
  margin-top: 12px;
  padding: 12px 12px 11px;
  border-radius: 16px;
  background: var(--bg-3);
}
.aria-pop.is-live .aria-now-card {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 12%, var(--bg-3)), var(--bg-3));
}
.aria-now-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
}
.aria-now-kicker b { font-weight: 800; }
.aria-pop.is-off .aria-now-kicker { color: var(--text-3); }
.aria-ping {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 45%, transparent);
  animation: aria-ping 1.8s ease-out infinite;
}
.aria-pop.is-off .aria-ping { animation: none; box-shadow: none; }
.aria-pop.is-looking .aria-ping { animation-duration: .85s; }
.aria-pop.is-looking .aria-now-card::after {
  content: "";
  position: absolute;
  left: -20%;
  top: 0;
  width: 40%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: aria-scan 1.15s ease-in-out infinite;
}
.aria-pop-jobs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.aria-pop .aria-job { align-items: center; padding: 7px 12px 7px 7px; }
.aria-job-copy { display: flex; flex-direction: column; gap: 1px; line-height: 1.15; }
.aria-job-copy b { font-size: 12px; }
.aria-job-copy small { font-size: 10px; font-weight: 700; color: var(--text-3); }
.aria-pop.is-live .aria-job.is-doing {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
}
.aria-pop.is-live .aria-job.is-doing small { color: var(--accent); }
.aria-pop .aria-job.is-wait { opacity: .7; }
.aria-pop-switch { padding: 2px; }
.aria-pop-switch .tour-switch-btn { padding: 5px 10px; font-size: 11px; }
.aria-pop-switch .tour-switch-btn.is-off-side.is-on { background: var(--text); color: var(--bg); }
.aria-pop-switch .tour-switch-btn.is-on-side.is-on { background: var(--accent); color: #fff; }
.aria-pop-job { margin: 8px 0 0; font-size: 12px; line-height: 1.45; color: var(--text-2); }
.aria-pop-line {
  margin: 7px 0 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.4;
  color: var(--text);
  animation: aria-arrive .32s ease;
}
.aria-pop-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.aria-pop-chips span {
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.aria-pop-meta { margin-top: 8px; font-size: 12px; color: var(--text-2); }
.aria-pop-go {
  margin-top: 12px;
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 12px;
  cursor: pointer;
}
.aria-pop-go:hover { filter: brightness(1.05); }
.tour-pane { display: none; }
.tour-pane.is-on { display: flex; flex-direction: column; gap: 10px; }
.aria-sheet .tour-grid { display: flex; flex-direction: column; }
.tour-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.aria-sheet .tour-field,
.aria-sheet .tour-check {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 16px;
  row-gap: 2px;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
}
.aria-sheet .tour-grid > :last-child { border-bottom: 0; }
.aria-sheet .tour-field .tour-name { grid-column: 1; grid-row: 1; }
.aria-sheet .tour-field .tour-help { grid-column: 1; grid-row: 2; }
.aria-sheet .tour-field .form-input { grid-column: 2; grid-row: 1 / span 2; width: 220px; max-width: 46vw; justify-self: end; }
.aria-sheet #tour-kuyruk { width: 280px; max-width: 70vw; }
.aria-sheet .tour-actions { margin-top: 12px; }
@media (max-width: 640px) {
  .aria-sheet .tour-field,
  .aria-sheet .tour-check { grid-template-columns: 1fr; }
  .aria-sheet .tour-field .form-input { grid-column: 1; grid-row: auto; width: 100%; max-width: none; justify-self: stretch; }
  .aria-sheet .tour-check > input { grid-column: 1; grid-row: auto; width: auto; justify-self: start; }
}
.aria-sheet .tour-check .tour-copy { grid-column: 1; }
.aria-sheet .tour-check > input { grid-column: 2; grid-row: 1; align-self: center; width: auto; }
.tour-field, .tour-check { display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-3); font-size: 12px; color: var(--text-2); }
.tour-check { flex-direction: row; align-items: flex-start; justify-content: space-between; gap: 12px; }
.tour-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tour-name { font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.35; }
.tour-help { font-size: 12px; font-weight: 500; line-height: 1.45; color: var(--text-3); }
.tour-field.is-off, .tour-check.is-off { opacity: .45; }
.tour-span { grid-column: 1 / -1; }
.aria-live {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0 10px 0 8px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-3);
  color: var(--text);
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1;
  cursor: pointer;
  flex: none;
}
.aria-live:not(.is-pasif) {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  background: color-mix(in srgb, var(--accent) 10%, var(--bg-3));
}
.aria-live:not(.is-pasif) .aria-orb { animation: aria-breathe 2.6s ease-in-out infinite; }
.aria-live.is-looking .aria-orb,
#page-tour.is-aria-looking .aria-status .aria-orb { animation-duration: .9s; }
.aria-live.is-open { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 65%, transparent); }
.aria-live:not(.is-pasif):hover { background: color-mix(in srgb, var(--accent) 16%, var(--bg-3)); }
.aria-live.is-pasif:hover { background: var(--bg-2); }
.aria-live-name { font-weight: 800; }
.aria-live-facts {
  display: none;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-2);
}
.aria-live.is-on .aria-live-facts { display: inline-flex; }
.aria-live-camp {
  max-width: 64px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.aria-live-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
}
.aria-live.is-pasif .aria-live-n { background: var(--text-3); }
.aria-live-day:empty,
.aria-live-camp:empty,
.aria-live-n:empty { display: none; }
.aria-live.is-on .aria-live-facts::before {
  content: "";
  width: 1px;
  height: 12px;
  margin-right: 7px;
  background: var(--border);
}
.aria-live.is-on .aria-live-day:not(:empty) + .aria-live-camp::before {
  content: "·";
  margin: 0 5px;
  color: var(--text-3);
  font-weight: 500;
}
.aria-live.is-pasif { color: var(--text-3); }
.aria-live.is-pasif .aria-orb { background: var(--text-3); box-shadow: none; animation: none; }
.aria-live[hidden] { display: none; }
@keyframes aria-breathe {
  0%, 100% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
  50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 8%, transparent); }
}
@keyframes aria-ping {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 55%, transparent); }
  70% { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
@keyframes aria-arrive {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}
@keyframes aria-scan {
  0% { transform: translateX(0); opacity: 0; }
  25% { opacity: 1; }
  100% { transform: translateX(280%); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .aria-orb, .aria-live.is-on:not(.is-pasif) .aria-orb, #page-tour.is-aria-on .aria-orb,
  .aria-ping, .aria-pop-line, .aria-pop.is-looking .aria-now-card::after, .aria-pop.is-live .aria-orb { animation: none; }
}
.aria-log {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-2);
}
.aria-log[hidden] { display: none; }
.aria-log-kicker { margin: 0; font-size: 13px; font-weight: 800; color: var(--text); }
.aria-log-empty { margin: 0; font-size: 13px; line-height: 1.45; color: var(--text-3); }
.aria-log-line { display: flex; gap: 10px; align-items: flex-start; margin: 0; }
.aria-log-text {
  padding: 8px 10px;
  border-radius: 12px 12px 12px 4px;
  background: var(--bg-3);
  font-size: 13px;
  line-height: 1.45;
  color: var(--text);
}
.aria-log-at { flex: none; width: 40px; font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--text-3); padding-top: 8px; }
.tour-yakin[hidden], .tour-geri[hidden] { display: none; }
#tour-geri-who:not([hidden]) { display: contents; }
.tour-check { flex-direction: row; align-items: flex-start; justify-content: space-between; gap: 12px; }
.tour-check > input { margin-top: 2px; flex: none; }
.aria-run-card .tour-check { width: 100%; background: transparent; border: 0; padding: 0; }
.tour-pane .tour-grid { counter-reset: tourq; }
.tour-pane .tour-name::before { counter-increment: tourq; content: counter(tourq) ". "; color: var(--accent); font-weight: 800; }
.tour-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.tour-note { font-size: 12px; color: var(--text-2); margin: 0; }
.tour-row { border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; background: var(--bg-3, var(--bg-1)); }
.tour-row.is-pick {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
  background: color-mix(in srgb, var(--accent) 8%, var(--bg-2));
  box-shadow: inset 3px 0 0 var(--accent);
}
.tour-row b { font-size: 13px; }
.tour-meta { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.tour-tag { display: inline-block; margin-left: 6px; font-size: 10px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.tour-tag.is-bad { color: #b91c1c; }
.tour-tag.is-mid { color: #b45309; }
.tour-tag.is-ok { color: #15803d; }
.tour-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
[data-theme="dark"] .tour-tag.is-bad { color: #fecaca; }
[data-theme="dark"] .tour-tag.is-mid { color: #fde68a; }
[data-theme="dark"] .tour-tag.is-ok { color: #bbf7d0; }
.geocon-frame { flex: 1; width: 100%; min-height: 0; border: 0; background: #0e1324; }
#m-upload-q.is-geocon .upload-area { display: none; }
@media (max-width: 1024px) { .page { padding: 14px; } }
.page-hdr {
display: flex; align-items: flex-start; justify-content: space-between;
gap: 12px; flex-wrap: wrap;
min-width: 0;
}
.page-hdr > * { min-width: 0; max-width: 100%; }
.page-hdr-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-left:auto; max-width: 100%; }
.page-title { font-size: 22px; font-weight: 800; letter-spacing: -0.6px; }
.page-hdr .form-input { max-width: min(220px, 100%); }
.page-sub { font-size: 13px; color: var(--text-3); margin-top: 3px; }
/* ============================================================
COMPONENTS
============================================================ */
/* Buttons */
.btn {
display: inline-flex; align-items: center; gap: 6px;
padding: 8px 16px; border-radius: var(--radius-sm);
font-size: 13px; font-weight: 600;
transition: var(--transition); cursor: pointer; white-space: nowrap;
border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-2); box-shadow: 0 4px 12px var(--accent-soft); }
.btn-ghost { background: transparent; border-color: var(--border-2); color: var(--text-2); }
.btn-ghost:hover { background: var(--bg-3); color: var(--text); }
.btn-danger { background: var(--red-soft); border-color: #dc262625; color: var(--red); }
.btn-danger:hover { background: #dc262622; }
.btn-success { background: var(--green-soft); border-color: #16a34a25; color: var(--green); }
.btn-sm { padding: 5px 11px; font-size: 12px; }
.btn-xs { padding: 3px 8px; font-size: 11px; border-radius: var(--radius-xs); }
.btn-icon {
width: 32px; height: 32px; padding: 0; border-radius: var(--radius-sm);
display: flex; align-items: center; justify-content: center;
background: var(--bg-3); border: 1px solid var(--border);
color: var(--text-2); transition: var(--transition);
}
.btn-icon:hover { background: var(--bg-4); color: var(--text); border-color: var(--border-2); }
/* Card */
.card {
background: var(--bg-2); border: 1px solid var(--border);
border-radius: var(--radius); padding: 20px;
box-shadow: var(--shadow);
min-width: 0;
max-width: 100%;
}
.card-hdr { display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; gap:8px; }
#camp-detail .card-hdr > div:first-child { min-width:0; flex:1; overflow:hidden; }
.card-title { font-size: 14px; font-weight: 700; }
.card-sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }
/* Stats grid */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap:12px; }
.stat-card {
background: var(--bg-2); border: 1px solid var(--border);
border-radius: var(--radius); padding: 16px 18px;
box-shadow: var(--shadow);
}
.stat-lbl { font-size: 11px; color: var(--text-3); font-weight: 600; text-transform:uppercase; letter-spacing:.5px; margin-bottom:8px; }
.stat-val { font-size: 26px; font-weight: 800; font-family: var(--mono); line-height:1; }
.stat-meta { font-size: 11px; color: var(--text-3); margin-top:4px; }
.stat-delta { font-size:11px; font-weight:700; margin-top:2px; min-height:14px; }
.stat-delta.up { color:#15803d; }
.stat-delta.down { color:#b91c1c; }
.stat-delta.flat { color:var(--text-3); font-weight:600; }
#page-dashboard[data-dash-role="field"] .stats-grid,
#page-dashboard[data-dash-role="field"] .dash-row[data-dash-row="analytics"],
#page-dashboard[data-dash-role="field"] .dash-row[data-dash-row="trend"],
#page-dashboard[data-dash-role="field"] .dash-row[data-dash-row="live"],
#page-dashboard[data-dash-role="field"] .dash-row[data-dash-row="jobs"],
#page-dashboard[data-dash-role="agent"] .dash-row[data-dash-row="live"],
#page-dashboard[data-dash-role="qc"] .dash-row[data-dash-row="live"],
#page-dashboard[data-dash-role="qc"] #dash-stat-cost { display:none !important; }
.dash-agent-day { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:0 0 14px; }
.dash-agent-day[hidden] { display:none !important; }
.dash-day-card { margin:0; min-width:0; display:flex; flex-direction:column; padding:14px 16px; }
.dash-day-card .card-title { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:8px; }
.dash-day-list { display:flex; flex-direction:column; min-height:72px; }
.dash-day-row { display:flex; align-items:center; justify-content:space-between; gap:8px; width:100%; text-align:left; background:transparent; border:0; border-bottom:1px solid var(--border); padding:7px 0; font:inherit; color:inherit; cursor:pointer; }
.dash-day-row:hover { background:var(--bg-3); margin:0 -6px; padding-left:6px; padding-right:6px; border-radius:8px; }
.dash-day-name { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; font-weight:700; display:flex; align-items:center; }
.dash-day-row b { font-size:11px; font-weight:700; color:var(--text-2); font-variant-numeric:tabular-nums; flex:0 0 auto; }
.dash-day-empty { font-size:12px; color:var(--text-3); padding:8px 0; }
.dash-day-foot { display:flex; justify-content:space-between; align-items:center; gap:8px; margin-top:8px; }
.dash-day-note { font-size:10px; color:var(--text-3); }
.dash-day-more { border:0; background:transparent; color:var(--text-2); font:inherit; font-size:11px; font-weight:700; cursor:pointer; padding:0; }
.dash-day-dot { width:7px; height:7px; border-radius:50%; background:#dc2626; display:inline-block; margin-right:6px; flex:0 0 7px; }
@media (max-width: 860px) { .dash-agent-day { grid-template-columns:1fr; } }
.dash-brief { display:flex; flex-direction:column; gap:12px; min-width:0; }
.dash-brief-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:14px; row-gap:14px; align-items:stretch; }
.dash-brief-col { display:grid; grid-template-rows:subgrid; row-gap:14px; min-width:0; }
.dash-brief-wide { display:flex; flex-direction:column; gap:14px; }
.dash-brief-card { min-width:0; height:auto; min-height:100%; padding:14px 16px; margin:0; display:flex; flex-direction:column; }
.dash-brief-body { flex:1; }
.dash-brief-card .card-title { display:flex; align-items:center; gap:8px; margin-bottom:12px; }
.dash-brief-card .card-title > span { min-width:0; }
button.dash-card-handle {
  width:22px; height:22px; padding:0; flex:0 0 22px;
  border:1px dashed var(--border); border-radius:6px;
  background:var(--bg-3); color:var(--text-3);
  display:grid; place-items:center; cursor:grab;
}
button.dash-card-handle i { font-size:14px; line-height:1; pointer-events:none; }
button.dash-card-handle:active { cursor:grabbing; }
.dash-brief-card.is-dragging { opacity:.45; }
.dash-brief-card.is-drop { outline:2px solid var(--accent); outline-offset:2px; }
.dash-brief-card.is-drop-before { box-shadow:inset 0 3px 0 var(--accent); }
.dash-brief-col.is-drop, .dash-brief-wide.is-drop { outline:2px dashed var(--accent); outline-offset:4px; border-radius:12px; }
.dash-span { width:100%; }
.dash-rings { display:flex; justify-content:space-around; gap:8px; }
.dash-ring { flex:1; min-width:0; text-align:center; }
.dash-ring em { display:block; font-style:normal; font-size:12px; font-weight:700; color:var(--text-2); }
.dash-ring-face { width:92px; height:92px; margin:0 auto 6px; border-radius:50%; background:conic-gradient(var(--c) calc(var(--p) * 1%), color-mix(in srgb, var(--c) 16%, var(--bg-3)) 0); display:grid; place-items:center; }
.dash-ring-face > span { width:66px; height:66px; border-radius:50%; background:var(--bg-2); display:flex; flex-direction:column; align-items:center; justify-content:center; }
.dash-ring-face b { font-size:14px; line-height:1.1; }
.dash-ring-face small { font-size:10px; color:var(--text-3); font-weight:700; }
.dash-donut-wrap { display:flex; align-items:center; gap:16px; }
.dash-donut { width:148px; height:148px; border-radius:50%; display:grid; place-items:center; flex-shrink:0; }
.dash-donut > span { width:96px; height:96px; border-radius:50%; background:var(--bg-2); display:grid; place-items:center; font-size:26px; font-weight:800; }
.dash-legend { list-style:none; margin:0; padding:0; flex:1; min-width:0; }
.dash-legend li { display:flex; align-items:center; gap:8px; font-size:12px; padding:3px 0; }
.dash-legend i { width:9px; height:9px; border-radius:50%; flex-shrink:0; }
.dash-legend span { flex:1; min-width:0; }
.dash-legend b { font-variant-numeric:tabular-nums; }
.dash-camps { display:flex; flex-direction:column; gap:10px; }
.dash-camps-scroll {
  max-height:230px;
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  padding-right:4px;
}
.dash-camp { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:2px 8px; width:100%; text-align:left; border:0; background:transparent; padding:0; cursor:pointer; color:inherit; font:inherit; }
.dash-camp-name { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; font-weight:700; border:0; background:transparent; padding:0; color:inherit; font-family:inherit; text-align:left; cursor:pointer; }
.dash-camp-meta { grid-column:1 / -1; display:flex; align-items:center; justify-content:space-between; gap:8px; }
.dash-speed { display:inline-flex; align-items:center; gap:6px; font-size:11px; font-weight:700; color:var(--text-3); }
.dash-speed select { border:1px solid var(--border); background:var(--bg-3); color:var(--text); border-radius:8px; padding:2px 8px; font-weight:800; }
.dash-camp b { font-variant-numeric:tabular-nums; font-size:13px; }
.dash-camp small { grid-column:1 / -1; color:var(--text-3); font-size:11px; }
.dash-meter { grid-column:1 / -1; height:8px; border-radius:99px; background:var(--bg-3); overflow:hidden; }
.dash-meter i { display:block; height:100%; border-radius:99px; }
@media (max-width: 860px) { .dash-brief-grid { grid-template-columns:1fr; } .dash-donut-wrap { flex-direction:column; align-items:flex-start; } }
.dash-brief-scope { font-size:12px; font-weight:700; color:var(--text); margin:0 0 2px; }
.dash-goal-line { display:flex; justify-content:space-between; gap:8px; font-size:12px; font-weight:700; margin-bottom:4px; }
.dash-goal { height:8px; border-radius:99px; background:var(--bg-3); overflow:hidden; margin-bottom:10px; }
.dash-goal > span { display:block; height:100%; background:var(--accent); border-radius:99px; }
.dash-mini-row { display:flex; justify-content:space-between; gap:10px; align-items:center; font-size:12px; padding:7px 0; border-bottom:1px solid var(--border); }
.dash-mini-row > span:first-child { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dash-mini-row:last-child { border-bottom:0; }
.dash-mini-row b { font-variant-numeric:tabular-nums; }
.dash-bar { height:8px; border-radius:99px; background:var(--bg-3); overflow:hidden; flex:1; min-width:48px; }
.dash-bar > span { display:block; height:100%; background:var(--accent); }
.dash-pace { display:flex; flex-wrap:wrap; gap:8px; }
.dash-pace span { padding:6px 10px; border-radius:999px; background:var(--bg-3); font-size:12px; font-weight:700; }
.dash-mini-row.is-link { cursor:pointer; }
.dash-mini-row.is-link:hover { background:var(--bg-3); margin:0 -6px; padding-left:6px; padding-right:6px; border-radius:8px; }
.dash-alerts { display:flex; flex-direction:column; gap:6px; }
.dash-alert {
  display:flex; align-items:center; gap:2px; width:100%; min-width:0;
  border:1px solid color-mix(in srgb, #e11d48 28%, var(--border));
  background:color-mix(in srgb, #e11d48 8%, var(--bg-2));
  color:#9f1239; border-radius:10px; font-size:12px; font-weight:700;
}
[data-theme="dark"] .dash-alert {
  color:#fecdd3;
  background:color-mix(in srgb, #fb7185 14%, var(--bg-2));
  border-color:color-mix(in srgb, #fb7185 38%, var(--border));
}
.dash-alert-go {
  flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
  text-align:left; border:0; background:transparent; color:inherit; font:inherit; font-weight:700;
  padding:8px 4px 8px 12px; cursor:pointer;
}
div.dash-alert-go { cursor:default; }
.dash-alert-x {
  flex:none; width:28px; height:28px; margin-right:4px; border:0; border-radius:8px;
  background:transparent; color:inherit; cursor:pointer; display:grid; place-items:center; font-size:14px;
}
.dash-alert-x:hover { background:color-mix(in srgb, currentColor 14%, transparent); }
.dash-next-split { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media (max-width: 720px) { .dash-next-split { grid-template-columns:1fr; } }
.dash-live-pills { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 12px; }
.dash-live-pill {
  display:inline-flex; align-items:center; gap:8px; min-height:36px; padding:0 14px; border-radius:10px; color:#fff; font-size:13px; font-weight:700;
  background:
    linear-gradient(155deg, color-mix(in srgb, #fff 34%, transparent), transparent 58%),
    linear-gradient(115deg, var(--pill), color-mix(in srgb, #000 18%, var(--pill)));
}
.dash-live-pill b { font-weight:800; }
.dash-live-pill--open { --pill:#2563eb; }
.dash-live-pill--ring { --pill:#16a34a; }
.dash-live-pill--target { --pill:#dc2626; }
.dash-live-pill--wait { --pill:#f97316; }
.dash-live-pill--pool { --pill:#0891b2; }
.stat-blue .stat-val   { color: var(--accent); }
.stat-green .stat-val  { color: var(--green); }
.stat-yellow .stat-val { color: var(--yellow); }
.stat-red .stat-val    { color: var(--red); }
.stat-purple .stat-val { color: var(--purple); }
/* Özet — zaman sekmeleri */
.dash-range-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}
.dash-range-btn {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text-2);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.dash-range-btn:hover {
  background: var(--bg-3);
  color: var(--text);
}
.dash-range-btn.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}
/* Özet — analiz grid */
.dash-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
}
.dash-row.is-off { display: none; }
.dash-row > :not(.dash-row-handle) {
  flex: 1;
  min-width: 0;
}
.dash-row-handle {
  flex: 0 0 28px;
  width: 28px;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: var(--bg-2);
  color: var(--text-3);
  cursor: grab;
  padding: 0;
}
.dash-row-handle:active { cursor: grabbing; }
#page-dashboard:not(.is-arranging) .dash-row-handle,
#page-dashboard:not(.is-arranging) .dash-card-handle,
#page-dashboard:not(.is-arranging) #dash-reset-rows { display: none; }
.dash-row.is-dragging { opacity: 0.45; }
.dash-row.is-drop {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 12px;
}
.dash-analytics-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 12px;
  margin-bottom: 0;
}
.dash-analytics-grid > .card {
  min-width: 0;
}
@media (max-width: 960px) {
  .dash-analytics-grid { grid-template-columns: 1fr; }
}
.dash-chart-box {
  height: 260px;
  position: relative;
  padding: 0 4px 8px;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}
.dash-trend-chart-wrap {
  height: 240px;
  position: relative;
  padding: 0 4px 8px;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}
#dash-chart-card {
  min-width: 0;
}

/* Muhasebe */
.muh-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.muh-badge.ok { background: rgba(22,163,74,.14); color: var(--green); }
.muh-badge.warn { background: rgba(217,119,6,.14); color: var(--yellow); }
.muh-badge.err { background: rgba(220,38,38,.14); color: var(--red); }
/* Table */
.tbl-wrap { overflow-x: auto; max-width: 100%; min-width: 0; scrollbar-width: thin; }
.page > * { min-width: 0; max-width: 100%; }
table { width:100%; border-collapse:collapse; }
th {
text-align:left; font-size:11px; font-weight:700; color:var(--text-3);
letter-spacing:.2px;
padding: 8px 12px; border-bottom: 1px solid var(--border);
white-space: nowrap; background: var(--bg-3);
}
th:first-child { border-radius: var(--radius-sm) 0 0 0; }
th:last-child  { border-radius: 0 var(--radius-sm) 0 0; }
td { padding: 11px 12px; border-bottom: 1px solid var(--border); font-size:13px; color:var(--text); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg-3); }
.td-mono { font-family: var(--mono); font-size:12px; }
/* Badge */
.badge {
display:inline-flex; align-items:center; gap:4px;
padding: 2px 8px; border-radius: 20px; font-size:11px; font-weight:600;
}
.badge-green  { background: var(--green-soft);  color: var(--green);  }
.badge-yellow { background: var(--yellow-soft); color: var(--yellow); }
.badge-red    { background: var(--red-soft);    color: var(--red);    }
.badge-blue   { background: var(--accent-soft); color: var(--accent); }
.badge-gray   { background: var(--bg-4);        color: var(--text-3); }
.badge-purple { background: var(--purple-soft); color: var(--purple); }
/* Progress */
.prog-wrap { background: var(--bg-4); border-radius: 4px; height: 5px; overflow:hidden; }
.prog-fill  { height:100%; border-radius:4px; background: var(--accent); transition: width .5s ease; }
/* Form */
.form-row { display:flex; flex-direction:column; gap:5px; }
.form-label { font-size:12px; color:var(--text-2); font-weight:600; }
.form-input {
background: var(--input-bg); border: 1px solid var(--border);
border-radius: var(--radius-sm); color: var(--text);
padding: 8px 12px; font-size:13px; transition: var(--transition); width:100%;
}
.form-input:focus { outline:none; border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-soft); }
.form-input::placeholder { color: var(--text-3); }
/* Maskot ayar kaydırıcıları */
#page-settings .settings-mascot-slider.form-input {
  width: 100%;
  max-width: 280px;
  height: 28px;
  padding: 6px 0;
  background: transparent;
  border: none;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
#page-settings .settings-mascot-slider.form-input::-webkit-slider-runnable-track {
  height: 6px;
  background: var(--bg-4);
  border-radius: 999px;
}
#page-settings .settings-mascot-slider.form-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 0 0 2px var(--bg-2);
}
#page-settings .settings-mascot-slider.form-input::-moz-range-track {
  height: 6px;
  background: var(--bg-4);
  border-radius: 999px;
}
#page-settings .settings-mascot-slider.form-input::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 0 0 2px var(--bg-2);
}
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
@media(max-width:480px) { .form-grid { grid-template-columns:1fr; } }
/* Speed slider */
.speed-row { display:flex; align-items:center; gap:10px; }
.speed-row input[type=range] {
flex:1; -webkit-appearance:none; height:4px;
background: var(--bg-4); border-radius:4px; outline:none;
}
.speed-row input[type=range]::-webkit-slider-thumb {
-webkit-appearance:none; width:16px; height:16px;
border-radius:50%; background: var(--accent); cursor:pointer;
box-shadow: 0 0 6px var(--accent-soft);
}
.speed-val { font-family:var(--mono); font-size:15px; font-weight:700; color:var(--accent); min-width:22px; text-align:center; }
/* Modal */
.modal-overlay {
display:none; position:fixed; inset:0;
background:#00000055; backdrop-filter:blur(4px);
z-index:1300; align-items:center; justify-content:center; padding:16px;
}
.modal-overlay.open { display:flex; }
#m-system-dialog { z-index: 4000; }
.modal {
background:var(--bg-2); border:1px solid var(--border-2);
border-radius:var(--radius); padding:24px;
width:100%; max-width:480px; max-height:90vh;
overflow-y:auto; display:flex; flex-direction:column; gap:16px;
box-shadow:var(--shadow-md); animation: modal-pop .18s ease;
}
@keyframes modal-pop {
from { opacity:0; transform:translateY(-12px) scale(.97); }
to   { opacity:1; transform:none; }
}
.modal-hdr { display:flex; align-items:center; justify-content:space-between; }
.modal-title { font-size:16px; font-weight:800; letter-spacing:-.3px; }
.modal-close {
width:28px; height:28px; border-radius:6px;
background:var(--bg-3); color:var(--text-2);
display:flex; align-items:center; justify-content:center;
font-size:14px; transition:var(--transition);
}
.modal-close:hover { background:var(--bg-4); color:var(--text); }
.modal-footer { display:flex; justify-content:flex-end; gap:8px; margin-top:4px; }
/* Upload */
.upload-area {
border: 2px dashed var(--border-2); border-radius:var(--radius);
padding:28px; text-align:center; cursor:pointer; transition:var(--transition);
}
.upload-area:hover, .upload-area.drag { border-color:var(--accent); background:var(--accent-soft); }
#uq-addr-box { display:flex; flex-direction:column; gap:8px; margin-top:10px; }
#uq-addr-box[hidden] { display:none !important; }
.uq-addr-hint { font-size:11px; color:var(--text-2); line-height:1.4; }
.uq-addr-bulk { display:flex; flex-wrap:wrap; gap:6px; }
.uq-addr-list { display:flex; flex-direction:column; gap:6px; max-height:240px; overflow:auto; }
.uq-addr-card { border:1px solid var(--border); background:var(--bg-3); border-radius:8px; padding:8px 10px; }
.uq-addr-card strong { display:block; font-size:12px; margin-bottom:4px; color:var(--text); }
.uq-addr-card p { margin:0; font-size:11px; color:var(--text-2); line-height:1.35; }
.uq-addr-choices { display:flex; flex-wrap:wrap; gap:10px; margin-top:6px; font-size:12px; font-weight:700; color:var(--text); }
.uq-addr-choices label { display:flex; align-items:center; gap:4px; cursor:pointer; }
.upload-icon { font-size:28px; margin-bottom:8px; }
.upload-text { font-size:13px; color:var(--text-2); font-weight:500; }
.upload-sub  { font-size:11px; color:var(--text-3); margin-top:3px; }
/* Toast */
#toast {
position:fixed; bottom:20px; right:20px; z-index:1405;
display:flex; flex-direction:column; align-items:flex-end; justify-content:flex-end; gap:8px;
width:min(420px, calc(100vw - 24px)); pointer-events:none;
background:none; border:none; box-shadow:none; padding:0;
}
.toast-item {
background:var(--bg-2); border:1px solid var(--border-2);
border-radius:var(--radius-sm); padding:11px 16px;
font-size:13px; font-weight:500; color:var(--text);
box-shadow:var(--shadow-md); max-width:100%;
overflow-wrap:anywhere; pointer-events:none;
transform:translateY(12px); opacity:0;
transition:transform .25s ease, opacity .25s ease;
}
.toast-item.show { transform:translateY(0); opacity:1; }
.toast-item.ok  { border-left:3px solid var(--green); }
.toast-item.warn { border-left:3px solid #d97706; }
.toast-item.err { border-left:3px solid var(--red); }
/* Agent tags */
.agent-tag {
display:inline-flex; align-items:center; gap:5px;
background:var(--bg-3); border:1px solid var(--border);
border-radius:20px; padding:3px 8px 3px 5px; font-size:12px; color:var(--text-2);
}
.agent-tag .av {
width:18px; height:18px; border-radius:50%;
background: var(--accent); color:white;
display:flex; align-items:center; justify-content:center;
font-size:8px; font-weight:700;
}
.agent-tag .rm {
width:14px; height:14px; border-radius:50%;
display:flex; align-items:center; justify-content:center;
font-size:10px; color:var(--text-3); transition:var(--transition);
}
.agent-tag .rm:hover { background:var(--red-soft); color:var(--red); }
/* ============================================================
LOGIN PAGE
============================================================ */
/* ── Login Page ─────────────────────────────────── */
#page-login {
  position:fixed; inset:0; z-index:500; overflow:hidden;
  display:flex; align-items:center; justify-content:center;
  background:#0b1736;
}
[data-theme="dark"] #page-login { background:#0f172a; }
#page-login > *:not(.fluid-aurora) {
  position: relative;
  z-index: 1;
}
.login-stage {
  width:min(400px, calc(100% - 32px));
  display:flex; flex-direction:column; gap:22px;
}
.login-lockup { display:flex; align-items:center; gap:14px; color:#fff; padding:0 4px; }
.login-logo-svg {
  width:auto; height:auto; border-radius:0;
  background:none; display:flex; align-items:center; justify-content:center;
  border:none; color:#fff;
}
.login-stage .tb-logo {
  max-height:none; margin:0; overflow:visible;
  border:none; box-shadow:none; background:none; border-radius:0;
}
.login-stage .tb-logo.is-box { overflow:visible; border:none; box-shadow:none; background:none; }
.login-stage .tb-logo-aurora { display:none; }
.login-stage .tb-logo-mark { color:#fff; }
.login-stage .tb-logo-eye { stroke:none; }
.login-stage .tb-logo-eye--l { fill:#fff; }
.login-stage .tb-logo-eye--r { fill:#2563eb; }
.login-stage .login-logo-svg svg { width:64px; height:64px; filter:none; }
.login-brand-name, .login-brand-sub { text-shadow:none; }
.login-brand-name { font-size:32px; font-weight:800; letter-spacing:-1px; margin:0; color:#fff; text-shadow:none; }
.login-lockup .tb-logo-one { color:#2563eb; }
.login-version {
  text-align:center; font-size:11px; color:#fff;
}
@media (prefers-reduced-motion: reduce) {
  .fluid-aurora--login::before,
  .fluid-aurora--login::after,
  .fluid-aurora--logo::before,
  .fluid-aurora--logo::after,
  .tb-logo-eye,
  .tb-logo-face,
  .fluid-aurora--sidebar::before,
  .fluid-aurora--sidebar::after,
  .fluid-aurora--chat-fab::before,
  .fluid-aurora--chat-fab::after,
  .cust-avatar--fluid::before {
    animation: none !important;
  }
  .team-chat-fab--unread {
    animation: none !important;
  }
}
.login-card {
  --login-x: 28px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 22px;
  padding: 0;
  width: 100%;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  animation: modal-pop .3s ease;
}
[data-theme="dark"] .login-card {
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.login-card-body { background: var(--bg-2); padding: 28px var(--login-x) 16px; }
.login-window {
  position: relative;
  background: transparent;
  padding: 0 var(--login-x);
}
.login-window-fill {
  position: absolute;
  inset: 0;
  background: var(--bg-2);
  pointer-events: none;
  --hole: calc(100% - (var(--login-x) * 2));
  -webkit-mask-image:
    linear-gradient(#000, #000),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='46' preserveAspectRatio='none'%3E%3Crect width='360' height='46' rx='12' ry='12' fill='%23000'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%, var(--hole) 46px;
  -webkit-mask-position: center, center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-composite: xor;
  mask-image:
    linear-gradient(#000, #000),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='46' preserveAspectRatio='none'%3E%3Crect width='360' height='46' rx='12' ry='12' fill='%23000'/%3E%3C/svg%3E");
  mask-size: 100% 100%, var(--hole) 46px;
  mask-position: center, center;
  mask-repeat: no-repeat;
  mask-composite: exclude;
}
.login-card-foot { background: var(--bg-2); padding: 14px var(--login-x) 20px; }
.login-fields { display:flex; flex-direction:column; gap:14px; }
.login-field { position:relative; }
.login-field .form-input {
  height:46px; padding:0 14px 0 40px;
  background:var(--bg); border-radius:12px; font-size:14px;
}
.login-field .form-input[type="password"],
.login-field .form-input[type="text"] { padding-right:44px; }
.login-field-icon {
  position:absolute; left:13px; top:50%; transform:translateY(-50%);
  color:var(--text-3); pointer-events:none;
}
.login-eye {
  position:absolute; right:6px; top:50%; transform:translateY(-50%);
  width:32px; height:32px; border:none; border-radius:8px;
  background:none; color:var(--text-3); cursor:pointer;
  display:flex; align-items:center; justify-content:center; padding:0;
}
.login-eye:hover { background:var(--bg-3); color:var(--text); }
.login-btn {
  position: relative;
  z-index: 1;
  background: transparent;
  color: #fff;
  height: 46px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  width: 100%;
  transition: var(--transition);
  letter-spacing: -.2px;
  border: none;
  cursor: pointer;
}
.login-btn:hover { background: rgba(255,255,255,0.1); }
.login-demo { font-size: 12px; color: var(--text-3); text-align: center; margin-top: 0; }
.login-lang {
  display:flex; justify-content:center; gap:4px;
  width:fit-content; margin:2px auto 0; padding:4px;
  border:1px solid var(--border); border-radius:999px; background:var(--bg);
}
.login-lang-btn {
  border:none; background:transparent; color:var(--text-3);
  font-size:12px; font-weight:700; letter-spacing:0.04em;
  padding:6px 14px; border-radius:999px; cursor:pointer;
}
.login-lang-btn:hover { color:var(--text); }
html[lang="tr"] .login-lang-tr,
html[lang="de"] .login-lang-de {
  background:var(--bg-2); color:var(--text);
  box-shadow:0 1px 2px rgba(15, 23, 42, 0.08);
}
.login-error { font-size:12px; color:var(--red); text-align:center; display:none; }
@media (max-width:700px), (max-height:740px) {
  .login-stage { gap:16px; }
  .login-stage .login-logo-svg svg { width:52px; height:52px; }
  .login-brand-name { font-size:26px; }
  .login-card { --login-x: 18px; border-radius: 18px; padding: 0; }
  .login-card-body { padding: 22px var(--login-x) 12px; }
  .login-card-foot { padding: 12px var(--login-x) 16px; }
}
/* ============================================================
DASHBOARD
============================================================ */
.live-layout-seg {
  display:inline-flex; padding:2px; gap:2px;
  border:1px solid var(--border); border-radius:999px; background:var(--bg-3);
}
.live-layout-btn {
  border:0; background:transparent; color:var(--text-2);
  font-size:12px; font-weight:700; padding:5px 11px; border-radius:999px; cursor:pointer;
}
.live-layout-btn.is-on { background:var(--accent); color:#fff; }
.live-filters { display:flex; gap:8px; overflow-x:auto; padding-bottom:8px; }
.live-filter {
  flex:0 0 auto; display:inline-flex; align-items:center; gap:8px;
  padding:6px 11px 6px 8px; border-radius:999px;
  border:1px solid var(--border); background:var(--bg-2); color:var(--text);
  font-size:12px; font-weight:700; cursor:pointer;
}
.live-filter .dot { width:9px; height:9px; border-radius:50%; background:var(--dot, #64748b); flex:0 0 auto; }
.live-filter.inactive { opacity:0.42; }
.live-filter--all.is-all { background:var(--accent); color:#fff; border-color:var(--accent); }
.live-grad-hint { font-size:11px; color:var(--text-3); line-height:1.45; margin-top:4px; }
.live-grad-list { display:flex; flex-direction:column; gap:8px; margin-top:8px; }
.live-grad-row { display:grid; grid-template-columns:108px 42px 42px minmax(80px,1fr); gap:8px; align-items:center; }
.live-grad-row > span:first-child { font-size:12px; font-weight:700; }
.live-grad-row input[type="color"] {
  width:42px; height:32px; padding:2px; border:1px solid var(--border);
  border-radius:8px; background:var(--bg-2); cursor:pointer;
}
.live-grad-preview { height:28px; border-radius:8px; }
.live-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:8px; }
.live-card,
.live-line,
.sup-card {
  --tone-a: #bdbdbd;
  --tone-b: #424242;
  --ink: #fff;
  --live-age: 0;
  background:
    linear-gradient(105deg, color-mix(in srgb, #fff 22%, transparent), transparent 58%),
    linear-gradient(90deg, var(--tone-a), color-mix(in srgb, var(--tone-b) calc(var(--live-age) * 100%), var(--tone-a)));
  color: #fff;
  border: 0;
  transition: background-color .6s linear, color .6s linear;
}
.live-card--on_call, .live-line--on_call, .sup-card--on_call { --tone-a: #81C784; --tone-b: #1B5E20; }
.live-card--ready, .live-line--ready, .sup-card--ready { --tone-a: #FFB74D; --tone-b: #E65100; }
.live-card--wrapping, .live-line--wrapping, .sup-card--wrapping { --tone-a: #4DD0E1; --tone-b: #006064; }
.live-card--break, .live-line--break, .sup-card--break { --tone-a: #7E57C2; --tone-b: #311B92; }
.live-card--offline, .live-line--offline, .sup-card--offline { --tone-a: #BDBDBD; --tone-b: #424242; }
.live-card {
  border:0; border-radius:12px; padding:12px;
  display:flex; flex-direction:column; gap:8px; min-width:0;
  box-shadow:0 8px 18px rgba(40, 30, 10, 0.08);
}
.live-card:hover { box-shadow:0 12px 24px rgba(40, 30, 10, 0.16); }
.live-card--enter { animation:live-card-in 0.35s cubic-bezier(0.33, 1, 0.68, 1); }
@keyframes live-card-in {
  from { opacity:0; transform:translateY(8px) scale(0.96); }
  to { opacity:1; transform:none; }
}
.live-card-top { display:flex; align-items:center; gap:10px; min-width:0; }
.live-av {
  width:34px; height:34px; border-radius:50%;
  background:color-mix(in srgb, var(--ink) 12%, transparent);
  color:inherit; border:1px solid transparent;
  display:flex; align-items:center; justify-content:center;
  font-size:13px; font-weight:700; flex-shrink:0;
}
.live-name { font-size:13px; font-weight:700; line-height:1.2; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:inherit; }
.live-status { font-size:11px; font-weight:700; color:inherit; opacity:0.92; margin-top:2px; }
.live-dur { margin-left:auto; font-family:var(--mono); font-size:12px; font-weight:700; color:inherit; white-space:nowrap; }
.live-facts { display:grid; gap:4px; margin:0; }
.live-facts div { display:flex; justify-content:space-between; gap:10px; font-size:12px; min-width:0; }
.live-facts dt { color:inherit; opacity:0.78; font-weight:600; flex-shrink:0; }
.live-facts dd { margin:0; color:inherit; text-align:right; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.live-actions { display:flex; justify-content:flex-end; align-items:center; }
.live-more {
  width:28px; height:28px; padding:0; border-radius:8px; cursor:pointer;
  display:inline-flex; align-items:center; justify-content:center;
  border:1px solid color-mix(in srgb, var(--ink) 28%, transparent);
  background:color-mix(in srgb, var(--ink) 12%, transparent);
  color:inherit;
}
.live-more:hover, .live-more.is-on { background:color-mix(in srgb, var(--ink) 24%, transparent); }
.live-menu {
  position:fixed; z-index:420; min-width:168px; padding:6px;
  border-radius:12px; background:var(--bg); color:var(--text);
  border:1px solid var(--border); box-shadow:0 14px 32px rgba(20, 16, 8, 0.18);
  display:flex; flex-direction:column; gap:2px;
}
.live-menu button {
  height:32px; border:0; background:transparent; color:inherit; cursor:pointer;
  text-align:left; padding:0 10px; border-radius:8px; font-size:13px; font-weight:700;
}
.live-menu button:hover { background:var(--bg-2); }
.live-menu-gap { height:1px; margin:4px 6px; background:var(--border); }
.live-rows { display:flex; flex-direction:column; gap:6px; min-width:760px; }
.live-rows-head, .live-line {
  display:grid;
  grid-template-columns: 1.3fr .8fr .75fr 1.15fr 1fr 1fr;
  gap:8px; align-items:center; padding:8px 10px;
}
.live-rows--act .live-rows-head,
.live-rows--act .live-line,
.live-rows-head--act {
  grid-template-columns: 1.15fr .7fr .7fr 1fr .9fr .9fr auto;
}
.live-rows-head { font-size:11px; font-weight:700; color:var(--text-3); padding-bottom:2px; }
.live-line { border-radius:10px; min-width:0; }
.live-line .live-status { margin-top:0; }
.live-line .live-dur { margin-left:0; }
.live-line-who { display:flex; align-items:center; gap:8px; min-width:0; }
.live-line-clip { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; font-weight:600; }
tr.live-line { display:table-row; border-radius:0; }
tr.live-line td {
  color: inherit;
  background: color-mix(in srgb, var(--tone-b) calc(var(--live-age) * 100%), var(--tone-a));
  border-bottom-color: color-mix(in srgb, var(--ink) 16%, transparent);
}
#live-agents { overflow-x: auto; }
/* ============================================================
CAMPAIGNS
============================================================ */
.camp-view-seg {
  display:inline-flex; padding:2px; gap:2px;
  border:1px solid var(--border); border-radius:999px; background:var(--bg-3);
}
.camp-view-btn {
  border:0; background:transparent; color:var(--text-2);
  font-size:12px; font-weight:700; padding:5px 11px; border-radius:999px; cursor:pointer;
}
.camp-view-btn.is-on { background:var(--accent); color:#fff; }
.camp-search { width:220px; font-size:12px; padding:6px 10px; }
.camp-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(300px,100%),1fr)); gap:14px; min-width:0; }
.camp-grid--rows { display:block; }
.camp-rows-wrap { overflow-x:auto; border:1px solid var(--border); border-radius:var(--radius); background:var(--bg-2); }
.camp-rows { width:100%; border-collapse:collapse; font-size:12px; }
.spend-cards { display:flex; gap:10px; flex-wrap:wrap; margin:0 0 12px; }
.spend-card { min-width:140px; padding:10px 12px; border:1px solid var(--border); border-radius:var(--radius); background:var(--bg-2); }
.spend-card small { display:block; color:var(--text-3); font-size:11px; margin-bottom:4px; }
.spend-card b { font-variant-numeric:tabular-nums; font-weight:650; }
.spend-num { text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; }
.spend-rate { font-weight:650; }
.spend-amt { display:block; margin-top:2px; font-size:11px; color:var(--text-3); }
.camp-rows th {
  text-align:left; font-size:11px; font-weight:700; color:var(--text-3);
  padding:8px 10px; border-bottom:1px solid var(--border); white-space:nowrap; background:var(--bg-3);
  vertical-align:top;
}
.camp-sort-label { display:inline-flex; align-items:center; gap:4px; }
.camp-rows th.num .camp-sort-label { width:100%; justify-content:flex-end; }
.camp-sort { display:inline-flex; flex-direction:column; line-height:1; }
.camp-sort-btn {
  border:0; background:transparent; color:var(--text-3); cursor:pointer;
  width:14px; height:11px; padding:0; display:flex; align-items:center; justify-content:center;
}
.camp-sort-btn i { font-size:10px; }
.camp-sort-btn.is-on { color:var(--accent); }
.camp-col-filter {
  display:block; width:100%; min-width:72px; margin-top:6px; box-sizing:border-box;
  font-size:12px; font-weight:500; text-align:left; padding:4px 6px;
  border:1px solid var(--border); border-radius:6px; background:var(--bg-1); color:var(--text);
}
.camp-rows th.num .camp-col-filter { text-align:left; }
.camp-filter-empty td { text-align:center; color:var(--text-3); padding:28px 10px; }
.camp-rows td { padding:8px 10px; border-bottom:1px solid var(--border); vertical-align:middle; white-space:nowrap; }
.camp-rows tr:last-child td { border-bottom:0; }
.camp-row { cursor:pointer; }
.camp-row:hover td { background:var(--bg-3); }
#page-queues .camp-row.is-paused td { background: rgba(100, 116, 139, 0.14); color: var(--text-2); }
#page-queues .camp-row.is-paused td:first-child { box-shadow: inset 3px 0 0 #94a3b8; }
#page-queues .camp-row.is-paused:hover td { background: rgba(100, 116, 139, 0.22); }
[data-theme="dark"] #page-queues .camp-row.is-paused td { background: rgba(148, 163, 184, 0.12); }
[data-theme="dark"] #page-queues .camp-row.is-paused:hover td { background: rgba(148, 163, 184, 0.2); }
.queue-menu-pop {
  position: fixed; z-index: 420; display: flex; flex-direction: column; gap: 4px;
  min-width: 168px; padding: 6px; background: var(--bg-1);
  border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-md);
}
.queue-menu-pop button {
  text-align: left; border: 0; border-radius: 7px; padding: 7px 10px;
  font-size: 12px; font-weight: 700; cursor: pointer; color: #fff;
}
.queue-menu-pop .qm-ops { background: #2563eb; }
.queue-menu-pop .qm-up { background: #38bdf8; color: #0f172a; }
.queue-menu-pop .qm-name { background: #7c3aed; }
.queue-menu-pop .qm-pause { background: #f59e0b; color: #1c1917; }
.queue-menu-pop .qm-set { background: #16a34a; }
.queue-menu-pop .qm-people { background: #0d9488; }
.queue-menu-pop .qm-del { background: #dc2626; }
.hold-file { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; }
.hold-file input[type="file"] {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.hold-file-name {
  font-size: 12px; font-weight: 600; color: var(--text-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px;
}
.hold-mode { display: flex; gap: 6px; flex-wrap: wrap; }
.hold-mode-btn {
  border: 1px solid var(--border); background: var(--bg-1); color: var(--text-2);
  border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 700; cursor: pointer;
}
.hold-mode-btn.is-on { background: var(--accent); color: #fff; border-color: transparent; }
.hold-global {
  margin-bottom: 12px; padding: 12px; border: 1px solid var(--border);
  border-radius: 12px; background: var(--bg-2);
  display: flex; flex-direction: column; gap: 8px;
}
.hold-stack { display: flex; flex-direction: column; gap: 8px; }
.hold-stack[hidden] { display: none !important; }
.camp-row.sel td { background:var(--accent-soft); }
.camp-row.sel td:first-child { box-shadow:inset 3px 0 0 var(--accent); }
.camp-row-name {
  display:inline-block; max-width:260px; overflow:hidden; text-overflow:ellipsis;
  white-space:nowrap; vertical-align:bottom; font-weight:800;
}
.camp-row-desc { display:block; max-width:240px; overflow:hidden; text-overflow:ellipsis; font-size:11px; font-weight:500; color:var(--text-3); }
.camp-rows .num { font-family:var(--mono); font-weight:700; text-align:right; }
.camp-rows th.num { text-align:right; }
.camp-row-actions { display:flex; gap:4px; justify-content:flex-end; }
.camp-card {
background:var(--bg-2); border:1px solid var(--border);
border-radius:var(--radius); padding:18px;
cursor:pointer; transition:var(--transition);
display:flex; flex-direction:column; gap:14px;
box-shadow:var(--shadow);
min-width:0; overflow:hidden;
}
.camp-card-head { display:flex; align-items:flex-start; justify-content:space-between; gap:8px; min-width:0; }
.camp-card-main { flex:1; min-width:0; overflow:hidden; }
.camp-name, .camp-did, .camp-card .queue-sub, .camp-row-name {
  display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:100%;
}
.camp-row-name { max-width: 220px; }
.camp-name.is-slide, .camp-row-name.is-slide { text-overflow: clip; }
.camp-name.is-slide > i, .camp-row-name.is-slide > i {
  display: inline-block;
  font-style: normal;
  font-weight: inherit;
  white-space: nowrap;
  animation: mbNameSlide ease-in-out infinite;
}
.camp-card.is-empty { background:rgba(245,158,11,.14); box-shadow:inset 3px 0 0 #f59e0b; }
.camp-row.is-empty td { background:rgba(245,158,11,.12); }
.camp-kpi-val.is-hot, .camp-rows td.is-hot { color:var(--yellow); }
.camp-firm { display:block; font-size:11px; font-weight:700; color:var(--text-2); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.camp-card:hover { border-color:var(--border-2); transform:translateY(-1px); box-shadow:var(--shadow-md); }
.camp-card.sel { border-color:var(--accent); background:var(--accent-soft); }
.camp-name { font-size:15px; font-weight:800; letter-spacing:-.3px; }
.camp-did  { font-size:11px; color:var(--text-3); font-family:var(--mono); margin-top:2px; }
.camp-kpi  { display:grid; grid-template-columns:repeat(3,1fr); gap:6px; }
.camp-kpi-item { text-align:center; }
.camp-kpi-val { font-size:18px; font-weight:800; font-family:var(--mono); line-height:1; }
.camp-kpi-lbl { font-size:10px; color:var(--text-3); margin-top:2px; }
.queue-row {
display:flex; align-items:center; gap:10px; flex-wrap:wrap;
padding:9px 12px; border-radius:var(--radius-sm);
background:var(--bg-3); border:1px solid var(--border);
}
.queue-name { flex:1; font-size:13px; font-weight:600; min-width:120px; }
.queue-sub { font-size:11px; color:var(--text-3); margin-top:2px; }
.queue-actions { display:flex; gap:4px; flex-shrink:0; flex-wrap:wrap; }
#cd-queues .camp-rows-wrap { margin-top:2px; }
#cd-queues .queue-actions { max-width:460px; }
.queue-rename-input { flex:1; min-width:0; font-size:12px; padding:3px 7px; }
.qops { width:100%; border-collapse:collapse; }
.qops th, .qops td { padding:8px 6px; border-bottom:1px solid var(--border); font-size:12px; vertical-align:middle; }
.qops th { font-size:11px; color:var(--text-3); font-weight:700; text-align:left; }
.qops tr.is-queue td { background:var(--accent-soft); }
.qops input[type=range] { width:88px; vertical-align:middle; }
.qops-filters { display:flex; gap:8px; flex-wrap:wrap; align-items:end; margin-bottom:12px; }
.cd-identity { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:16px; }
.cd-identity-wide { grid-column:1 / -1; }
@media (max-width: 720px) {
  .cd-identity { grid-template-columns:1fr; }
}
.queue-cnt  { font-size:12px; color:var(--text-3); font-family:var(--mono); }
.mb-euro-date { position:relative; display:inline-flex; max-width:100%; vertical-align:middle; min-width:0; }
.mb-euro-date > input[type="date"],
.mb-euro-date > input[type="time"],
.mb-euro-date > input[type="datetime-local"] { color:transparent; }
.mb-euro-date__face {
  position:absolute; inset:1px 2.1rem 1px 0.55rem; z-index:1;
  border:0; margin:0; padding:0; background:transparent; color:var(--text);
  font:inherit; font-size:inherit; min-width:0;
}
.mb-euro-date > input::-webkit-calendar-picker-indicator { position:relative; z-index:2; cursor:pointer; }
.unfinalized-head.is-hot {
  background: rgba(245, 158, 11, .2);
  border-radius: 8px;
  box-shadow: inset 3px 0 0 #f59e0b;
  padding-top: 6px;
  padding-bottom: 6px;
  padding-left: 8px;
}
.unfinalized-head #unfinalized-calls-count { color: var(--text-3); }
.unfinalized-head.is-hot #unfinalized-calls-count { color: var(--yellow); }
.firmdesk { display: flex; flex-direction: column; gap: 14px; }
.firmdesk-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.firmdesk-card { padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-2); }
.firmdesk-card small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--text-3); }
.firmdesk-card b { display: block; margin-top: 6px; font-size: 22px; font-variant-numeric: tabular-nums; }
.firmdesk-card span { display: block; margin-top: 4px; font-size: 12px; color: var(--text-2); }
.firmdesk-card.is-due { border-color: #fdba74; background: #fff7ed; }
[data-theme="dark"] .firmdesk-card.is-due { background: rgba(234, 88, 12, .16); }
.firmdesk-table { width: 100%; border-collapse: collapse; }
.firmdesk-table th, .firmdesk-table td { padding: 10px 8px; border-bottom: 1px solid var(--border); text-align: left; font-size: 13px; }
.firmdesk-table th { font-size: 11px; color: var(--text-3); font-weight: 800; }
.firmdesk-note { font-size: 12px; color: var(--text-2); }
@media (max-width: 900px) { .firmdesk-grid { grid-template-columns: 1fr 1fr; } }
