/* ── Ekip sohbeti (sağ alt FAB + panel) ── */
.team-chat-root {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 200;
  pointer-events: none;
}
.team-chat-root > * {
  pointer-events: auto;
}
.team-chat-fab-stack {
  position: relative;
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}
.team-chat-fab-stack > * {
  pointer-events: auto;
}
.team-chat-fab-pop {
  position: relative;
  max-width: min(280px, calc(100vw - 100px));
  padding: 0;
  margin: 0;
  border: none;
  cursor: pointer;
  background: transparent;
  text-align: left;
  transform: translateX(18px) scale(0.88);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
  filter: drop-shadow(0 6px 20px rgba(15, 23, 42, 0.18));
}
.team-chat-fab-pop--show {
  transform: translateX(0) scale(1);
  opacity: 1;
}
.team-chat-fab-pop-inner {
  padding: 11px 14px 12px;
  border-radius: 14px 16px 12px 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(12px);
}
.team-chat-fab-pop-from {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
  letter-spacing: 0.01em;
}
.team-chat-fab-pop-text {
  font-size: 11px;
  color: #475569;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
[data-theme="dark"] .team-chat-fab-pop-inner {
  background: rgba(34, 39, 52, 0.95);
  border-color: rgba(255, 255, 255, 0.12);
}
[data-theme="dark"] .team-chat-fab-pop-from {
  color: #e8eaf2;
}
[data-theme="dark"] .team-chat-fab-pop-text {
  color: #a8b0c4;
}
.team-chat-fab-stack--pulse {
  animation: team-chat-stack-breathe 1.15s ease-in-out 2;
}
@keyframes team-chat-stack-breathe {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  45% {
    transform: translateY(-3px) scale(1.03);
  }
}
.team-chat-fab--notify {
  animation: team-chat-fab-notify-morph 1s cubic-bezier(0.34, 1.2, 0.64, 1) 2;
}
@keyframes team-chat-fab-notify-morph {
  0% {
    transform: scale(1);
    border-radius: 18px 22px 20px 16px;
  }
  35% {
    transform: scale(1.12);
    border-radius: 22px 14px 20px 22px;
  }
  70% {
    transform: scale(1.06);
    border-radius: 16px 22px 18px 20px;
  }
  100% {
    transform: scale(1);
    border-radius: 18px 22px 20px 16px;
  }
}
.team-chat-fab {
  position: relative;
  width: 56px;
  height: 52px;
  border-radius: 18px 22px 20px 16px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.12);
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  transition: border-radius 0.45s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.team-chat-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.16);
}
.team-chat-fab--unread {
  border-radius: 22px 16px 24px 18px;
  animation: team-chat-fab-morph 4s ease-in-out infinite;
}
.team-chat-fab--ping {
  animation: team-chat-fab-ping 0.55s ease;
}
@keyframes team-chat-fab-morph {
  0%,
  100% {
    border-radius: 18px 22px 20px 16px;
  }
  33% {
    border-radius: 22px 17px 18px 21px;
  }
  66% {
    border-radius: 16px 20px 22px 19px;
  }
}
@keyframes team-chat-fab-ping {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1);
  }
}
.team-chat-fab-aurora.fluid-aurora {
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.fluid-aurora--chat-fab::before {
  background: conic-gradient(
    from 125deg at 30% 28%,
    rgba(255, 255, 255, 0.95) 0deg,
    rgba(220, 228, 240, 0.75) 95deg,
    rgba(255, 255, 255, 0.9) 185deg,
    rgba(200, 212, 230, 0.65) 270deg,
    rgba(255, 255, 255, 0.95) 360deg
  );
  animation: fluid-spin 18s linear infinite;
  filter: blur(14px);
  opacity: 0.85;
  width: 180%;
  height: 160%;
  left: -42%;
  top: -28%;
}
.fluid-aurora--chat-fab::after {
  background: conic-gradient(
    from 300deg at 72% 62%,
    rgba(180, 195, 215, 0.5) 0deg,
    rgba(255, 255, 255, 0.75) 120deg,
    rgba(210, 220, 235, 0.55) 240deg,
    rgba(180, 195, 215, 0.5) 360deg
  );
  animation: fluid-spin-rev 22s linear infinite;
  filter: blur(12px);
  opacity: 0.65;
  width: 160%;
  height: 160%;
  left: -32%;
  top: -36%;
}
.team-chat-fab-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
}
[data-theme="dark"] .team-chat-fab {
  background: rgba(30, 35, 48, 0.92);
  border-color: rgba(255, 255, 255, 0.1);
}
@media (max-width: 630px) {
  .global-mascot .cust-empty-bubble { display: none; }
  .team-chat-fab { width: 44px; height: 44px; }
}
[data-theme="dark"] .team-chat-fab-inner { color: #e8eaf2; }
[data-theme="dark"] .fluid-aurora--chat-fab::before,
[data-theme="dark"] .fluid-aurora--chat-fab::after {
  opacity: 0.28;
  filter: brightness(0.28) saturate(0.4);
}
.team-chat-badge {
  position: absolute;
  top: 6px;
  right: 8px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: none;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
}
.team-chat-panel {
  position: absolute;
  right: 0;
  bottom: 64px;
  width: min(440px, calc(100vw - 36px));
  height: min(560px, calc(100vh - 100px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  background: color-mix(in srgb, var(--bg-2) 78%, transparent);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--text) 4%, transparent),
    0 24px 56px rgba(15, 23, 42, 0.14),
    0 4px 14px rgba(15, 23, 42, 0.06);
  transform-origin: 100% 100%;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  pointer-events: none;
  transition:
    opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.team-chat-panel.team-chat-panel--open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
[data-theme="dark"] .team-chat-panel {
  background: color-mix(in srgb, var(--bg-2) 88%, transparent);
  box-shadow:
    0 0 0 1px color-mix(in srgb, #fff 6%, transparent),
    0 28px 64px rgba(0, 0, 0, 0.45),
    0 6px 18px rgba(0, 0, 0, 0.28);
}
.team-chat-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--bg-3) 92%, transparent) 0%,
    color-mix(in srgb, var(--bg-2) 55%, transparent) 100%
  );
}
.team-chat-head-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}
.team-chat-panel-title {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--text) 0%, var(--text-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.team-chat-mode-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 65%, transparent);
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
.team-chat-mode-pill {
  border: none;
  background: transparent;
  color: var(--text-3);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition:
    color 0.18s,
    background 0.18s,
    box-shadow 0.18s;
}
.team-chat-mode-pill:hover {
  color: var(--text-2);
}
.team-chat-mode-pill.active {
  color: var(--accent-text);
  background: var(--accent-soft);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--text) 6%, transparent);
}
.team-chat-close-btn {
  border-radius: 10px;
  flex-shrink: 0;
}
.team-chat-panel-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  position: relative;
}
.team-chat-firm-layout {
  flex: 1;
  display: flex;
  min-height: 0;
}
.team-chat-groups-col {
  width: 124px;
  flex-shrink: 0;
  border-right: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
  display: flex;
  flex-direction: column;
  background: color-mix(in srgb, var(--bg) 40%, transparent);
}
.team-chat-groups-toolbar {
  padding: 8px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.team-chat-btn-new,
.team-chat-btn-quick {
  width: 100%;
  justify-content: center;
}
.team-chat-group-list {
  flex: 1;
  overflow-y: auto;
  padding: 6px 8px 10px;
  scrollbar-width: thin;
}
.team-chat-group-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 9px;
  margin-bottom: 5px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  font-size: 11px;
  font-weight: 650;
  color: var(--text-2);
  cursor: pointer;
  transition:
    background 0.16s,
    border-color 0.16s,
    box-shadow 0.16s;
}
.team-chat-group-item:hover {
  background: color-mix(in srgb, var(--bg-3) 80%, transparent);
  border-color: color-mix(in srgb, var(--border) 50%, transparent);
}
.team-chat-group-item.active {
  background: linear-gradient(135deg, var(--accent-soft), color-mix(in srgb, var(--accent-soft) 70%, var(--bg-2)));
  border-color: color-mix(in srgb, var(--accent-text) 22%, transparent);
  color: var(--accent-text);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--text) 5%, transparent);
}
.team-chat-main-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--bg) 25%, transparent) 0%,
    transparent 120px
  );
}
.team-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  scrollbar-width: thin;
}
.team-chat-daysep {
  display: flex;
  justify-content: center;
  margin: 14px 0 10px;
}
.team-chat-daysep span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-3);
  padding: 4px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-3) 75%, transparent);
  border: 1px solid color-mix(in srgb, var(--border) 55%, transparent);
}
.team-chat-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  color: var(--text-3);
  padding: 24px 16px;
}
.team-chat-empty .ph {
  font-size: 40px;
  opacity: 0.35;
}
.team-chat-empty p {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}
.team-chat-row {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 8px;
  max-width: 94%;
}
.team-chat-row.mine {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.team-chat-avatar {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent-text);
  background: linear-gradient(145deg, var(--accent-soft), color-mix(in srgb, var(--accent-soft) 40%, var(--bg-3)));
  border: 1px solid color-mix(in srgb, var(--accent-text) 18%, transparent);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--text) 8%, transparent);
}
.team-chat-bubble-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.team-chat-row.mine .team-chat-bubble-wrap {
  align-items: flex-end;
}
.team-chat-meta {
  font-size: 10px;
  color: var(--text-3);
  margin-bottom: 4px;
  padding: 0 2px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.team-chat-name {
  font-weight: 700;
  color: var(--text-2);
}
.team-chat-time {
  font-variant-numeric: tabular-nums;
  opacity: 0.85;
}
.team-chat-bubble {
  background: color-mix(in srgb, var(--bg-3) 92%, transparent);
  border: 1px solid color-mix(in srgb, var(--border) 65%, transparent);
  border-radius: 14px 14px 14px 6px;
  padding: 9px 12px;
  font-size: 13px;
  line-height: 1.45;
  word-break: break-word;
  box-shadow: 0 2px 10px color-mix(in srgb, var(--text) 4%, transparent);
}
.team-chat-row.mine .team-chat-bubble {
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--accent-soft) 95%, transparent),
    color-mix(in srgb, var(--accent-soft) 65%, var(--bg-3))
  );
  border-color: color-mix(in srgb, var(--accent-text) 15%, transparent);
  border-radius: 14px 14px 6px 14px;
  box-shadow: 0 2px 12px color-mix(in srgb, var(--accent-text) 12%, transparent);
}
.team-chat-bubble-txt {
  white-space: pre-wrap;
}
.team-chat-img {
  max-width: 220px;
  max-height: 180px;
  border-radius: 10px;
  display: block;
}
.team-chat-caption {
  margin-top: 6px;
  font-size: 12px;
  opacity: 0.9;
}
.team-chat-audio {
  width: 220px;
  height: 32px;
}
.team-chat-filelink {
  color: var(--accent-text);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.team-chat-compose-wrap {
  flex-shrink: 0;
}
.team-chat-compose {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  background: color-mix(in srgb, var(--bg-3) 55%, transparent);
  backdrop-filter: blur(8px);
}
.team-chat-input {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  transition:
    border-color 0.18s,
    box-shadow 0.18s;
}
.team-chat-input:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--accent-text) 35%, var(--border));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-soft) 90%, transparent);
}
.team-chat-send-btn {
  border-radius: 10px;
  padding-left: 12px;
  padding-right: 12px;
}
.team-chat-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  background: color-mix(in srgb, var(--bg-2) 85%, transparent);
  color: var(--text-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition:
    background 0.16s,
    color 0.16s,
    border-color 0.16s,
    transform 0.12s;
}
.team-chat-icon-btn:hover {
  background: var(--bg-3);
  color: var(--text);
  border-color: var(--border);
}
.team-chat-icon-btn:active {
  transform: scale(0.96);
}
.team-chat-icon-btn.recording {
  background: rgba(239, 68, 68, 0.15);
  color: #c00;
  border-color: rgba(239, 68, 68, 0.4);
}
.team-chat-muted {
  color: var(--text-3);
  font-size: 12px;
}
.team-chat-global-feed {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0 12px 12px;
}
.team-chat-global-hint {
  font-size: 11px;
  color: var(--text-3);
  padding: 10px 10px 12px;
  line-height: 1.45;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  border-radius: 12px;
  margin: 10px 0 8px;
  background: color-mix(in srgb, var(--accent-soft) 35%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-text) 12%, transparent);
}
.team-chat-global-hint .ph {
  flex-shrink: 0;
  margin-top: 1px;
  opacity: 0.85;
}
.team-chat-global-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 6px;
  scrollbar-width: thin;
}
.team-chat-global-card {
  width: 100%;
  text-align: left;
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  border-radius: 14px;
  padding: 10px 12px;
  background: color-mix(in srgb, var(--bg-3) 55%, transparent);
  cursor: pointer;
  transition:
    background 0.18s,
    border-color 0.18s,
    box-shadow 0.18s,
    transform 0.14s;
}
.team-chat-global-card:hover {
  background: color-mix(in srgb, var(--bg-3) 88%, transparent);
  border-color: color-mix(in srgb, var(--accent-text) 22%, transparent);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--text) 6%, transparent);
  transform: translateY(-1px);
}
.team-chat-global-card-top {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}
.team-chat-pill {
  font-size: 10px;
  font-weight: 750;
  padding: 3px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
  color: var(--text-2);
}
.team-chat-pill--soft {
  font-weight: 650;
  opacity: 0.92;
}
.team-chat-global-card-mid {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}
.team-chat-global-from {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}
.team-chat-global-time {
  font-size: 10px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.team-chat-global-snippet {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.team-chat-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.team-chat-modal-card {
  width: 100%;
  max-width: 400px;
  background: color-mix(in srgb, var(--bg-2) 94%, transparent);
  border: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--text) 4%, transparent),
    0 24px 48px rgba(15, 23, 42, 0.2);
  backdrop-filter: blur(12px);
}
.team-chat-modal-card--wide {
  max-width: 440px;
}
.team-chat-member-pick {
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.team-chat-members-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
  margin-bottom: 12px;
  padding-right: 4px;
}
.team-chat-member-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 11px;
  border: 1px solid color-mix(in srgb, var(--border) 65%, transparent);
  background: color-mix(in srgb, var(--bg-3) 45%, transparent);
  font-size: 13px;
}
.team-chat-member-row > span:first-child {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  color: var(--text);
}
.team-chat-member-rm {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, #ef4444 35%, var(--border));
  background: color-mix(in srgb, #ef4444 10%, transparent);
  color: #b91c1c;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.team-chat-member-rm:hover {
  background: color-mix(in srgb, #ef4444 16%, transparent);
}
[data-theme="dark"] .team-chat-member-rm {
  color: #fca5a5;
}
.team-chat-cb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
}
