/**
 * GAIAI V3 — Executive Chat Cockpit (Yönetici Kumanda Merkezi)
 * Standart: ChatGPT / Gemini Advanced / Claude Artifacts Standartları
 * Yerleşim: 840px Simetrik & Kompakt, Yüzen Kapsül Giriş, Tam CRUD
 */


/* ==========================================================================
   0. Retina & Hardware-Accelerated SVG Icon Design System (Raycast / Linear Standard)
   ========================================================================== */
svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  shape-rendering: geometricPrecision;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  vertical-align: middle;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  transition: color 0.18s ease, stroke 0.18s ease, fill 0.18s ease, transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), filter 0.18s ease;
}

/* Base Icon Containers */
.icon,
.btn-icon,
.header-icon-btn,
.capsule-icon-btn,
.todo-icon-btn,
.btn-scroll-bottom-icon,
.action-btn-icon,
.session-item-icon,
.search-icon-inside,
.tool-pill-icon,
.callout-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-sizing: border-box;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  transition: color 0.18s ease, stroke 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), filter 0.18s ease, box-shadow 0.18s ease;
}

/* Raycast / Linear Precision Hover Lighting (Emerald & Cyan Glows) */
.icon:hover svg,
.btn-icon:hover svg,
.header-icon-btn:hover svg,
.capsule-icon-btn:hover svg,
.todo-icon-btn:hover svg,
.action-btn-icon:hover svg,
.btn-scroll-bottom:hover .btn-scroll-bottom-icon svg,
.session-action-btn:hover svg {
  filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.45));
}

.engine-segment-btn:hover svg,
.tool-accordion-card:hover .tool-pill-icon svg,
.subagent-live-chip:hover svg,
.callout-card:hover .callout-icon svg,
.btn-cyan-glow:hover svg {
  filter: drop-shadow(0 0 6px rgba(6, 182, 212, 0.45));
}

/* ==========================================================================
   Icon Size Hierarchy (Raycast / Linear Precision)
   ========================================================================== */
/* 1. Mikro İkonlar (13-14px) */
.icon-micro,
.icon-xs,
.search-icon-inside svg,
.btn-scroll-bottom-icon svg,
.session-item-actions svg,
.session-action-btn svg,
.session-item-icon svg,
.claude-icon svg,
.native-cli-icon svg,
.session-pin-indicator svg,
.subagent-report-icon svg,
.search-input-icon svg,
.todo-file-indicator .file-icon svg,
.todo-session-chip svg {
  width: 13.5px;
  height: 13.5px;
  max-width: 14px;
  max-height: 14px;
  min-width: 13px;
  min-height: 13px;
  flex-shrink: 0;
}

/* 2. Buton İkonları (16-18px) */
.icon-btn,
.icon-sm,
.icon-md,
.btn-icon svg,
.header-icon-btn svg,
.capsule-icon-btn svg,
.todo-icon-btn svg,
.todo-drawer-action-btn svg,
.action-btn-icon svg,
.capsule-mic-btn svg,
.btn-scroll-bottom svg,
.chat-action-btn svg {
  width: 16px;
  height: 16px;
  max-width: 18px;
  max-height: 18px;
  min-width: 16px;
  min-height: 16px;
  flex-shrink: 0;
}

/* 3. Kart & Modal İkonları (20-22px) */
.icon-card,
.icon-modal,
.icon-lg,
.icon-xl,
.empty-state-icon svg,
.booting-center-icon svg,
.search-initial-icon svg,
.todo-empty-icon svg,
.canvas-dropzone-icon svg,
.attachment-chip-icon-box svg,
.chat-pdf-icon-badge svg,
.chat-file-icon-badge svg,
.lightbox-file-icon svg {
  width: 21px;
  height: 21px;
  max-width: 22px;
  max-height: 22px;
  min-width: 20px;
  min-height: 20px;
  flex-shrink: 0;
}

/* ==========================================================================
   1. Ana Kapsayıcı ve Yerleşim (Executive Container & Layout)
   ========================================================================== */
.founder-cockpit-container {
  display: flex;
  height: 100%;
  width: 100%;
  background-color: #09090b;
  color: #f4f4f5;
  overflow: hidden;
  position: relative;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ==========================================================================
   2. Sol Panel (Sidebar - 260px / Katlanabilir)
   ========================================================================== */
.cockpit-sidebar,
#cockpit-sidebar {
  width: 260px;
  min-width: 260px;
  max-width: 260px;
  height: 100%;
  background: rgba(11, 14, 20, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), margin-left 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  z-index: 60;
  box-sizing: border-box;
  overflow: visible !important;
}

.cockpit-sidebar.collapsed {
  margin-left: -260px;
  overflow: hidden !important;
}

/* Sidebar Üst Kısım */
.sidebar-header-box,
.sidebar-header {
  padding: 10px 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
  box-sizing: border-box;
  position: relative;
  z-index: 120;
  overflow: visible !important;
}

/* Segmented Engine Switcher (Linear/Raycast Minimal Standard) */
.sidebar-engine-segmented-switcher {
  display: flex;
  align-items: center;
  gap: 3px;
  width: 100%;
  padding: 2.5px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 7px;
  box-sizing: border-box;
  overflow: hidden;
  overflow-x: hidden !important;
}

.engine-segment-btn {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 27px;
  padding: 0 6px;
  border-radius: 5px;
  border: 1px solid transparent;
  background: transparent;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  outline: none;
  white-space: nowrap;
}

.engine-segment-btn:hover {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.05);
}

.engine-segment-btn.active[data-engine="agy"] {
  background: rgba(99, 102, 241, 0.16);
  border-color: rgba(99, 102, 241, 0.42);
  color: #c7d2fe;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3), 0 0 10px rgba(99, 102, 241, 0.18);
}

.engine-segment-btn.active[data-engine="claude"] {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.42);
  color: #fde68a;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3), 0 0 10px rgba(245, 158, 11, 0.18);
}

.engine-segment-icon {
  font-size: 11px;
  line-height: 1;
}

.engine-segment-label {
  letter-spacing: 0.2px;
}

/* Sidebar Model Picker (Glassmorphic Container & Crisp Native Dark Select) */
.sidebar-model-picker-wrap {
  width: 100%;
  position: relative;
  box-sizing: border-box;
}

.sidebar-model-select {
  width: 100%;
  height: 32px;
  padding: 0 28px 0 10px;
  background-color: rgba(255, 255, 255, 0.04);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 11px 11px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 7px;
  color: #e2e8f0;
  font-size: 11.5px;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  transition: all 0.15s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-sizing: border-box;
}

.sidebar-model-select:hover {
  background-color: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.sidebar-model-select:focus {
  border-color: rgba(99, 102, 241, 0.55);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
  background-color: rgba(15, 23, 42, 0.95);
  color: #ffffff;
}

.sidebar-model-select optgroup {
  background-color: #0b0f19;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 6px 4px;
}

.sidebar-model-select option {
  background-color: #0f172a;
  color: #f1f5f9;
  font-size: 11.5px;
  font-weight: 500;
  padding: 6px 8px;
}

/* [+ Yeni Sohbet] Butonu - Linear/Raycast Minimal */
.sidebar-new-chat-row {
  display: flex;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 1300;
  overflow: visible !important;
}

.btn-new-chat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 34px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 7px;
  color: #f8fafc;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  box-sizing: border-box;
}

.btn-new-chat:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.btn-new-chat:active {
  transform: scale(0.985);
  background: rgba(255, 255, 255, 0.08);
}

.btn-new-chat.menu-open {
  background: rgba(99, 102, 241, 0.16);
  border-color: rgba(99, 102, 241, 0.45);
  color: #ffffff;
}

/* WO-21B: 2-Option Yeni Sohbet Popover & Searchable Session Picker */
.new-session-popover {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1350;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(99, 102, 241, 0.32);
  border-radius: 10px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.05);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  white-space: normal !important;
  box-sizing: border-box;
  animation: fadeInScale 0.14s cubic-bezier(0.16, 1, 0.3, 1);
}

.new-session-popover.mode-picker {
  right: auto;
  width: 340px;
  min-width: 320px;
  max-width: min(380px, 92vw);
  box-sizing: border-box;
}

.new-session-option-card {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  width: 100%;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  color: #f8fafc;
  text-align: left;
  cursor: pointer;
  white-space: normal !important;
  box-sizing: border-box;
  overflow: visible;
  transition: all 0.15s ease;
}

.new-session-option-card:hover {
  background: rgba(99, 102, 241, 0.14);
  border-color: rgba(99, 102, 241, 0.42);
  transform: translateY(-1px);
}

.new-session-option-card.handoff:hover {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.42);
}

.new-session-option-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  background: rgba(99, 102, 241, 0.16);
  border: 1px solid rgba(99, 102, 241, 0.32);
}

.new-session-option-icon.handoff {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.32);
}

.new-session-option-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
  white-space: normal !important;
  box-sizing: border-box;
}

.new-session-option-title {
  font-size: 12px;
  font-weight: 600;
  color: #f8fafc;
  line-height: 1.25;
  white-space: normal !important;
  overflow-wrap: break-word;
  word-break: break-word;
  box-sizing: border-box;
}

.new-session-option-desc {
  font-size: 10.5px;
  color: #94a3b8;
  line-height: 1.35;
  white-space: normal !important;
  overflow-wrap: break-word;
  word-break: break-word;
  box-sizing: border-box;
}

.new-session-popover-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 4px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-handoff-back {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
}

.btn-handoff-back:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.new-session-popover-title {
  font-size: 11.5px;
  font-weight: 600;
  color: #e2e8f0;
}

.handoff-picker-search-wrap {
  padding: 2px 0;
}

.handoff-session-search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 6px 9px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f8fafc;
  font-size: 11.5px;
  outline: none;
}

.handoff-session-search-input:focus {
  border-color: rgba(99, 102, 241, 0.65);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.18);
}

.handoff-session-list {
  max-height: 210px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 2px 0;
}

.handoff-session-option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 8px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: all 0.12s ease;
}

.handoff-session-option-row:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.handoff-session-option-row.selected {
  background: rgba(99, 102, 241, 0.16);
  border-color: rgba(99, 102, 241, 0.55);
}

.handoff-option-row-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  min-width: 0;
}

.handoff-option-title-line {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.handoff-option-radio {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1.5px solid rgba(148, 163, 184, 0.6);
  flex-shrink: 0;
  position: relative;
}

.handoff-option-radio.checked {
  border-color: #818cf8;
  background: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
}

.handoff-option-title {
  font-size: 11.5px;
  font-weight: 600;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.handoff-option-meta-line {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: #94a3b8;
  padding-left: 17px;
}

.handoff-option-short-id {
  font-family: 'JetBrains Mono', monospace;
  color: #64748b;
}

.handoff-picker-empty {
  padding: 14px 8px;
  text-align: center;
  font-size: 11px;
  color: #94a3b8;
}

.handoff-picker-footer {
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-confirm-handoff-launch {
  width: 100%;
  padding: 8px 10px;
  border-radius: 7px;
  background: linear-gradient(135deg, #4f46e5 0%, #059669 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: normal !important;
  box-sizing: border-box;
  transition: all 0.15s ease;
}

.btn-confirm-handoff-launch:hover:not(:disabled) {
  filter: brightness(1.1);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
}

.btn-confirm-handoff-launch:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* WO-21B: 4-Stage Assembly-Line "Bekleme Salonu" (Waiting Lounge) */
.handoff-waiting-lounge-container {
  margin: 12px auto 16px;
  max-width: 820px;
  width: calc(100% - 28px);
  z-index: 15;
}

.handoff-waiting-lounge-container:not(.is-collapsed) {
  position: sticky;
  top: 12px;
  z-index: 60;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.handoff-waiting-lounge-card {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.86));
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.handoff-waiting-lounge-container.is-ready .handoff-waiting-lounge-card {
  border-color: rgba(16, 185, 129, 0.45);
}

.handoff-waiting-lounge-container.is-failed .handoff-waiting-lounge-card {
  border-color: rgba(239, 68, 68, 0.5);
}

.handoff-lounge-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.handoff-lounge-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.handoff-lounge-icon {
  font-size: 18px;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(99, 102, 241, 0.16);
  border: 1px solid rgba(99, 102, 241, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
}

.handoff-lounge-title {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  color: #f8fafc;
}

.handoff-lounge-subtitle {
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 2px;
}

.handoff-source-id-chip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
  color: #cbd5e1;
}

.handoff-assembly-line {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

@media (max-width: 768px) {
  .handoff-assembly-line {
    grid-template-columns: 1fr;
  }
}

.handoff-stage-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: all 0.2s ease;
}

.handoff-stage-item.active {
  background: rgba(99, 102, 241, 0.14);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.18);
}

.handoff-stage-item.completed {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.35);
}

.handoff-stage-item.failed {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.45);
}

.handoff-stage-indicator {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}

.handoff-stage-item.completed .handoff-stage-indicator {
  background: #10b981;
  color: #052e16;
}

.handoff-stage-item.active .handoff-stage-indicator {
  background: rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
}

.handoff-stage-item.failed .handoff-stage-indicator {
  background: #ef4444;
  color: #ffffff;
}

.handoff-step-spinner {
  width: 11px;
  height: 11px;
  border: 2px solid rgba(165, 180, 252, 0.3);
  border-top-color: #818cf8;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.handoff-stage-title {
  font-size: 11.5px;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.25;
}

.handoff-stage-desc {
  font-size: 10px;
  color: #94a3b8;
  margin-top: 2px;
  line-height: 1.3;
}

.handoff-lounge-live-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.25);
  font-size: 11.5px;
  color: #cbd5e1;
}

.handoff-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #818cf8;
  flex-shrink: 0;
}

.handoff-live-dot.pulsing {
  animation: pulse 1.4s infinite;
}

.handoff-live-dot.ready {
  background: #10b981;
}

.handoff-live-dot.failed {
  background: #ef4444;
}

.handoff-lounge-error-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-handoff-retry,
.btn-handoff-cancel,
.btn-handoff-collapse,
.btn-handoff-expand-lounge {
  padding: 6px 11px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
}

.btn-handoff-retry {
  background: rgba(99, 102, 241, 0.22);
  border-color: rgba(99, 102, 241, 0.5);
}

.handoff-ready-compact-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.38);
  color: #e2e8f0;
  font-size: 12px;
}

.handoff-compact-ready-tag {
  color: #34d399;
  font-weight: 600;
}

.handoff-bootstrap-bubble {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.22), rgba(16, 185, 129, 0.18)) !important;
  border: 1px solid rgba(99, 102, 241, 0.42) !important;
  padding: 8px 13px !important;
  border-radius: 10px !important;
}

.handoff-bootstrap-badge-text {
  font-size: 12.5px;
  font-weight: 600;
  color: #f8fafc;
}

.capsule-textarea.is-handoff-locked {
  opacity: 0.72;
  cursor: not-allowed;
}

/* Header Engine Switcher Pill */
.cockpit-engine-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 600;
  color: #e2e8f0;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  white-space: nowrap !important;
  flex-shrink: 0;
  box-sizing: border-box;
}

.cockpit-engine-pill .engine-pill-text {
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
  line-height: 1;
}

.cockpit-engine-pill:hover,
.cockpit-engine-pill.open {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(99, 102, 241, 0.45);
  color: #ffffff;
}

.engine-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.engine-pill-dot.badge-agy { background: #f59e0b; box-shadow: 0 0 6px rgba(245, 158, 11, 0.6); }
.engine-pill-dot.badge-agy-anthropic { background: #d97706; box-shadow: 0 0 6px rgba(217, 119, 6, 0.6); }
.engine-pill-dot.badge-agy-oss { background: #10b981; box-shadow: 0 0 6px rgba(16, 185, 129, 0.6); }
.engine-pill-dot.badge-claude-deepseek { background: #a855f7; box-shadow: 0 0 6px rgba(168, 85, 247, 0.6); }
.engine-pill-dot.badge-claude-meta { background: #3b82f6; box-shadow: 0 0 6px rgba(59, 130, 246, 0.6); }
.engine-pill-dot.badge-claude-nvidia { background: #76b900; box-shadow: 0 0 6px rgba(118, 185, 0, 0.65); }

/* Header Engine Popover */
.header-engine-popover {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 270px;
  max-width: 320px;
  max-height: 340px;
  background: #0c101c;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 6px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(99, 102, 241, 0.25);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: engineDropdownFade 0.12s ease-out;
  box-sizing: border-box;
}

@keyframes engineDropdownFade {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.engine-popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 2px;
  flex-shrink: 0;
}

.engine-popover-title {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.engine-popover-badge {
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.engine-popover-badge.badge-agy {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.engine-popover-badge.badge-claude {
  background: rgba(168, 85, 247, 0.15);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.engine-popover-scroll-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: calc(340px - 44px);
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.engine-popover-scroll-body::-webkit-scrollbar {
  width: 5px;
}
.engine-popover-scroll-body::-webkit-scrollbar-track {
  background: transparent;
}
.engine-popover-scroll-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 3px;
}
.engine-popover-scroll-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.32);
}

.engine-popover-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 4px;
}

.engine-popover-group:last-child {
  margin-bottom: 0;
}

.engine-popover-group-label {
  font-size: 9.5px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 4px 8px 2px;
}

.engine-popover-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.engine-item-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.header-engine-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  padding: 6px 10px;
  border-radius: 6px;
  background: transparent;
  border: 1px solid transparent;
  color: #cbd5e1;
  font-size: 11.5px;
  cursor: pointer;
  transition: all 0.12s ease;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
}

.header-engine-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.header-engine-item.active {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.35);
  color: #ffffff;
  font-weight: 600;
}

.engine-item-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.engine-item-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.engine-item-title {
  font-size: 12px;
  font-weight: 600;
  color: #f8fafc;
  line-height: 1.25;
}

.engine-item-desc {
  font-size: 10.5px;
  color: #94a3b8;
  line-height: 1.25;
  margin-top: 1px;
}

.engine-check {
  font-size: 12px;
  font-weight: 700;
  color: #818cf8;
  margin-left: 4px;
}

/* ==========================================================================
   Duo-Tier Segmented Filter Tabs (Linear / Cursor / Raycast Standard)
   ========================================================================== */
.sidebar-filter-tabs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  box-sizing: border-box;
}

.sidebar-filter-row {
  display: flex;
  gap: 4px;
  width: 100%;
  box-sizing: border-box;
}

.sidebar-filter-row.filter-row-primary .sidebar-tab-btn {
  flex: 1;
  min-width: 0;
  height: 27px;
}

.sidebar-filter-row.filter-row-engines .sidebar-tab-btn {
  flex: 1;
  min-width: 0;
  height: 25px;
}

.sidebar-tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 550;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  outline: none;
  box-sizing: border-box;
  user-select: none;
}

.sidebar-tab-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #f1f5f9;
  border-color: rgba(255, 255, 255, 0.12);
}

.tab-label {
  font-size: 10.5px;
  letter-spacing: -0.01em;
}

.tab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  opacity: 0.9;
}

.claude-mini-icon {
  color: #f59e0b;
}

/* Sayı Rozetleri (Micro-Pill Badges) */
.tab-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 15px;
  padding: 0 4px;
  font-size: 9.5px;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  transition: all 0.15s ease;
}

.tab-count-badge.badge-live {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

/* Aktif Sekme Durumları (Glow & Aksan Vurguları) */
.sidebar-tab-btn.active[data-tab="all"] {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.sidebar-tab-btn.active[data-tab="all"] .tab-count-badge {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.sidebar-tab-btn.active[data-tab="live"] {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.38);
  color: #6ee7b7;
  box-shadow: 0 1px 4px rgba(16, 185, 129, 0.15);
}

.sidebar-tab-btn.active[data-tab="live"] .tab-count-badge {
  background: rgba(16, 185, 129, 0.3);
  color: #a7f3d0;
}

.sidebar-tab-btn.active[data-tab="agy"] {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.38);
  color: #c7d2fe;
  box-shadow: 0 1px 4px rgba(99, 102, 241, 0.15);
}

.sidebar-tab-btn.active[data-tab="agy"] .tab-count-badge {
  background: rgba(99, 102, 241, 0.3);
  color: #e0e7ff;
}

.sidebar-tab-btn.active[data-tab="claude"] {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.38);
  color: #fde68a;
  box-shadow: 0 1px 4px rgba(245, 158, 11, 0.15);
}

.sidebar-tab-btn.active[data-tab="claude"] .tab-count-badge {
  background: rgba(245, 158, 11, 0.28);
  color: #fef3c7;
}

.sidebar-tab-btn.active[data-tab="cockpit"] {
  background: rgba(14, 165, 233, 0.14);
  border-color: rgba(14, 165, 233, 0.38);
  color: #bae6fd;
  box-shadow: 0 1px 4px rgba(14, 165, 233, 0.15);
}

.sidebar-tab-btn.active[data-tab="cockpit"] .tab-count-badge {
  background: rgba(14, 165, 233, 0.28);
  color: #e0f2fe;
}

.btn-new-chat-left {
  display: flex;
  align-items: center;
  gap: 7px;
}

.shortcut-kbd {
  font-size: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  padding: 1.5px 5px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  color: #94a3b8;
  letter-spacing: 0.3px;
}

/* Arama Kutusu */
.sidebar-search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden !important;
}

.sidebar-search-input {
  width: 100%;
  height: 30px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 0 10px 0 28px;
  color: #f1f5f9;
  font-size: 11.5px;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

.sidebar-search-input::placeholder {
  color: #64748b;
  font-size: 11.5px;
}

.sidebar-search-input:focus {
  border-color: rgba(99, 102, 241, 0.5);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

.search-icon-inside {
  position: absolute;
  left: 8px;
  color: #64748b;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Minimalist Sıralama Çubuğu (Sort Bar) */
.sidebar-sort-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden !important;
}

.sort-select-wrapper {
  flex: 1;
  min-width: 0;
  position: relative;
  display: flex;
  align-items: center;
}

.sidebar-sort-select {
  width: 100%;
  height: 26px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 5px;
  padding: 0 20px 0 6px;
  color: #94a3b8;
  font-size: 10.5px;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 5px center;
  background-size: 10px;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.sidebar-sort-select:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background-color: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
}

.sidebar-sort-select:focus {
  border-color: rgba(99, 102, 241, 0.4);
}

.sidebar-sort-select option {
  background: #11141c;
  color: #f1f5f9;
  padding: 6px;
}

.btn-sort-order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  padding: 0 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 5px;
  color: #94a3b8;
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  gap: 3px;
  transition: all 0.15s ease;
  user-select: none;
  flex-shrink: 0;
}

.btn-sort-order:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-sort-order:active {
  transform: scale(0.96);
}

.btn-sort-order .sort-order-icon {
  font-size: 11px;
  font-weight: 700;
  color: #818cf8;
}

.btn-sort-order .sort-order-label {
  font-size: 10px;
  color: #cbd5e1;
}

/* Zaman Gruplu Oturum Ağacı */
.sidebar-tree-container,
.sidebar-session-list {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden !important;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
}

.sidebar-tree-container::-webkit-scrollbar,
.sidebar-session-list::-webkit-scrollbar {
  width: 4px;
}
.sidebar-tree-container::-webkit-scrollbar-thumb,
.sidebar-session-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
}
.sidebar-tree-container::-webkit-scrollbar-thumb:hover,
.sidebar-session-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.16);
}

.session-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  overflow: visible;
  box-sizing: border-box;
}

.session-group-header {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  padding: 4px 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.session-item-row,
.session-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 5px 8px;
  border-radius: 6px;
  cursor: pointer;
  color: #94a3b8;
  font-size: 12px;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
  position: relative;
  border: 1px solid transparent;
  gap: 6px;
  box-sizing: border-box;
  width: 100%;
  overflow: visible;
}

.session-item-row.menu-open,
.session-item.menu-open {
  overflow: visible !important;
  z-index: 100 !important;
}

.session-item-row:hover,
.session-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #f1f5f9;
  border-color: rgba(255, 255, 255, 0.06);
}

.session-item-row.active,
.session-item.active {
  background: rgba(16, 185, 129, 0.08);
  color: #ffffff;
  font-weight: 500;
  border-color: rgba(16, 185, 129, 0.28);
  box-shadow: inset 2px 0 0 #10b981;
}

.session-item-row.is-native.active,
.session-item.is-native.active {
  background: rgba(16, 185, 129, 0.09);
  border-color: rgba(16, 185, 129, 0.32);
  box-shadow: inset 2px 0 0 #10b981;
}

.session-item-row.is-agy.active,
.session-item.is-agy.active {
  background: rgba(99, 102, 241, 0.09);
  border-color: rgba(99, 102, 241, 0.32);
  box-shadow: inset 2px 0 0 #818cf8;
}

.session-item-row.is-claude.active,
.session-item.is-claude.active {
  background: rgba(245, 158, 11, 0.09);
  border-color: rgba(245, 158, 11, 0.32);
  box-shadow: inset 2px 0 0 #f59e0b;
}

.session-item-row.is-claude.is-meta.active,
.session-item.is-claude.is-meta.active {
  background: rgba(59, 130, 246, 0.09);
  border-color: rgba(59, 130, 246, 0.32);
  box-shadow: inset 2px 0 0 #3b82f6;
}

.session-item-left {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.session-item-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.session-item-icon {
  flex-shrink: 0;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.session-item-row.active .session-item-icon,
.session-item.active .session-item-icon {
  color: #10b981;
}
.session-item-row.is-agy.active .session-item-icon {
  color: #818cf8;
}
.session-item-row.is-claude.active .session-item-icon {
  color: #f59e0b;
}

.native-cli-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  font-size: 10px;
  font-weight: 700;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.12);
  flex-shrink: 0;
}

.session-item-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  gap: 1.5px;
  overflow: hidden;
  box-sizing: border-box;
  padding-right: 36px;
}

.session-item-title-line {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  width: 100%;
  overflow: hidden;
}

.session-item-title,
.session-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 500;
  color: #e2e8f0;
  line-height: 1.25;
}

.session-item-row.active .session-item-title,
.session-item.active .session-item-title,
.session-item-row.active .session-title,
.session-item.active .session-title {
  color: #ffffff;
  font-weight: 600;
}

.session-native-pill {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 8.5px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  line-height: 1.2;
}

/* Dual Engine Rozetleri & İkonları (Linear/Raycast Standardı) */
.session-badge,
.session-engine-badge {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 8.5px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  line-height: 1.2;
  white-space: nowrap;
}

/* Rozetler: AGY (mavi/mor), Claude (turuncu/amber) */
.session-badge.badge-agy,
.session-engine-badge.badge-agy,
.badge-agy {
  background: rgba(99, 102, 241, 0.16);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.35);
}

.session-badge.badge-claude-deepseek,
.session-engine-badge.badge-claude-deepseek,
.badge-claude-deepseek {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.session-badge.badge-claude-meta,
.session-engine-badge.badge-claude-meta,
.badge-claude-meta {
  background: rgba(59, 130, 246, 0.16);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.session-badge.badge-claude-nvidia,
.session-engine-badge.badge-claude-nvidia,
.badge-claude-nvidia {
  background: rgba(118, 185, 0, 0.18);
  color: #76b900;
  border: 1px solid rgba(118, 185, 0, 0.42);
}

.session-item-row.is-claude.is-nvidia.active,
.session-item.is-claude.is-nvidia.active {
  background: rgba(118, 185, 0, 0.11);
  border-color: rgba(118, 185, 0, 0.38);
  box-shadow: inset 2px 0 0 #76b900;
}

/* WhatsApp Hot-Switch Badge & Buttons */
.session-badge.session-wp-badge {
  background: rgba(37, 211, 102, 0.15);
  color: #25d366;
  border: 1px solid rgba(37, 211, 102, 0.45);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  box-shadow: 0 0 6px rgba(37, 211, 102, 0.2);
}

.session-badge.session-wp-badge.active {
  background: rgba(37, 211, 102, 0.24);
  color: #25d366;
  border-color: rgba(37, 211, 102, 0.7);
  animation: wpGlowPulse 2.5s infinite;
}

@keyframes wpGlowPulse {
  0%, 100% { box-shadow: 0 0 6px rgba(37, 211, 102, 0.25); }
  50% { box-shadow: 0 0 14px rgba(37, 211, 102, 0.6); }
}

.session-item-row.is-wp-bound {
  border-left: 2px solid #25d366 !important;
}

.header-wp-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
  flex-shrink: 0;
  box-sizing: border-box;
}

.header-wp-btn:hover {
  background: rgba(37, 211, 102, 0.1);
  color: #25d366;
  border-color: rgba(37, 211, 102, 0.4);
}

.header-wp-btn.is-bound {
  background: rgba(37, 211, 102, 0.16);
  color: #25d366;
  border: 1px solid rgba(37, 211, 102, 0.5);
  box-shadow: 0 0 10px rgba(37, 211, 102, 0.25);
}

.header-wp-btn.is-bound:hover {
  background: rgba(37, 211, 102, 0.26);
  box-shadow: 0 0 14px rgba(37, 211, 102, 0.45);
}

.header-wp-btn .wp-icon-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.header-wp-btn .wp-bound-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 0 6px rgba(37, 211, 102, 0.85);
  flex-shrink: 0;
}

.header-wp-btn .wp-icon-wrapper svg {
  display: block;
}

.dropdown-item.wp-active {
  color: #25d366 !important;
  font-weight: 600;
}

.claude-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
  color: #fbbf24;
}

.session-item-meta-line {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  width: 100%;
  line-height: 1.2;
}

.session-meta-id {
  color: #64748b;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  display: block;
}

.session-item-row.active .session-meta-id,
.session-item.active .session-meta-id {
  color: #94a3b8;
}

.session-pin-indicator {
  flex-shrink: 0;
  color: #fbbf24;
  display: inline-flex;
  font-size: 10px;
}

.sidebar-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 12px;
  color: #64748b;
  font-size: 11.5px;
  text-align: center;
  gap: 4px;
}

/* Floating Actions Pill - Zero Layout Shift, Soft Transition (opacity 0 -> 1) */
.session-item-actions {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 2px;
  border-radius: 6px;
  background: rgba(14, 18, 26, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  z-index: 10;
}

.session-item-row:hover .session-item-actions,
.session-item:hover .session-item-actions,
.session-item-row.menu-open .session-item-actions,
.session-item.menu-open .session-item-actions {
  opacity: 1;
  pointer-events: auto;
}

.session-action-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #94a3b8;
  border-radius: 4px;
  cursor: pointer;
  padding: 0;
  transition: all 0.12s ease;
  flex-shrink: 0;
}

.session-action-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.session-action-btn.is-pinned {
  color: #fbbf24;
}

.session-action-btn-danger:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

/* Hover / 3 Nokta Menüsü Dropdown (Raycast / Linear Standardı) */
.session-context-dropdown {
  position: absolute;
  top: 100%;
  right: 8px;
  min-width: 140px;
  background: rgba(18, 22, 32, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  padding: 4px;
  gap: 2px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform-origin: top right;
  animation: sessionDropdownFadeIn 0.12s cubic-bezier(0.16, 1, 0.3, 1);
}

.session-context-dropdown.dropdown-dropup {
  top: auto;
  bottom: 100%;
  transform-origin: bottom right;
}

@keyframes sessionDropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  font-size: 11.5px;
  color: #cbd5e1;
  border-radius: 5px;
  cursor: pointer;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  transition: all 0.1s ease;
  user-select: none;
  white-space: nowrap;
}

.dropdown-item svg {
  flex-shrink: 0;
}

.dropdown-item:hover {
  background: rgba(99, 102, 241, 0.18);
  color: #ffffff;
}

.dropdown-item.danger:hover {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
}

/* Sidebar Alt Bilgi (Footer) */
.sidebar-footer-box,
.sidebar-footer {
  padding: 10px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(11, 14, 20, 0.98);
  flex-shrink: 0;
  box-sizing: border-box;
  overflow-x: hidden !important;
}

.btn-purge-chats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 26px;
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.10);
  border-radius: 5px;
  color: #71717a;
  font-size: 10.5px;
  cursor: pointer;
  transition: all 0.12s ease;
  box-sizing: border-box;
}

.btn-purge-chats:hover {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.founder-identity-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 7px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 7px;
  box-sizing: border-box;
  overflow: hidden;
}

.founder-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.founder-meta {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.founder-name {
  font-size: 11px;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.founder-role {
  font-size: 9.5px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* ==========================================================================
   3. Merkezi Çalışma Alanı (Cockpit Main Stage)
   ========================================================================== */
.cockpit-main-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  position: relative;
  overflow: hidden;
  background: #09090b;
}

/* ==========================================================================
   3. Üst Kontrol Barı (Top Header Bar) — Ultra-Clean Linear / Cursor Standardı
   ========================================================================== */
.cockpit-top-bar {
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  background: #0b0d13 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  gap: 12px;
  flex-shrink: 0;
  z-index: 1200 !important;
  position: relative;
  overflow: visible;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
  box-sizing: border-box;
}

/* --- SOL BÖLÜM: Sidebar Toggle [◧], Oturum Başlığı + Inline Edit [✏️], Model Rozeti --- */
.top-bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
  overflow: visible;
}

/* Ortak Kompakt İkon Butonu (Linear Standardı) */
.header-icon-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  cursor: pointer;
  transition: color 0.18s ease, stroke 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), filter 0.18s ease;
  flex-shrink: 0;
  padding: 0;
}

.header-icon-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
  filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.45));
}

.header-icon-btn:hover svg {
  transform: scale(1.06);
}

.header-icon-btn.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.sidebar-toggle-btn {
  /* Inherits from .header-icon-btn */
}

/* Kompakt Model Rozeti */
.header-model-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.03);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 2.5px 7px;
  border-radius: 5px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
  user-select: none;
}

.header-model-badge:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
}

.header-model-icon {
  flex-shrink: 0;
}

/* Oturum Başlığı & Yerinde Düzenleme (Inline Edit) */
.header-title-container {
  display: flex;
  align-items: center;
  min-width: 0;
  max-width: 320px;
}

.header-title-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 6px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.15s ease;
  min-width: 0;
}

.header-title-wrapper:hover {
  background: rgba(255, 255, 255, 0.05);
}

.header-title-text {
  font-size: 13px;
  font-weight: 500;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
  letter-spacing: -0.01em;
}

.header-title-edit-btn {
  opacity: 0;
  background: none;
  border: none;
  padding: 2px;
  color: #94a3b8;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  transition: all 0.15s ease;
}

.header-title-wrapper:hover .header-title-edit-btn {
  opacity: 0.6;
}

.header-title-edit-btn:hover {
  opacity: 1 !important;
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.1);
}

.header-title-edit-form {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.header-title-input {
  height: 26px;
  padding: 0 8px;
  font-size: 13px;
  font-weight: 500;
  color: #ffffff;
  background: #18181b;
  border: 1px solid rgba(99, 102, 241, 0.6);
  border-radius: 4px;
  outline: none;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
  min-width: 140px;
  max-width: 260px;
  box-sizing: border-box;
}

.header-title-btn-save,
.header-title-btn-cancel {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.12s ease;
}

.header-title-btn-save {
  background: #10b981;
  color: #ffffff;
}

.header-title-btn-save:hover {
  background: #059669;
}

.header-title-btn-cancel {
  background: rgba(255, 255, 255, 0.08);
  color: #a1a1aa;
}

.header-title-btn-cancel:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

/* --- ORTA BÖLÜM: Ferah, Boş ve Minimalist (Linear / Cursor Standardı) --- */
.top-bar-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
}

/* Geriye dönük uyumluluk ve Dropdown içi Telemetri stilleri */
.header-telemetry-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
  background: rgba(16, 185, 129, 0.08);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 3px 8px;
  border-radius: 5px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  outline: none;
  user-select: none;
}

.header-telemetry-badge:hover {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}

.header-telemetry-badge.copied {
  background: rgba(16, 185, 129, 0.22) !important;
  border-color: #10b981 !important;
  color: #a7f3d0 !important;
}

.telemetry-bolt {
  font-size: 11px;
}

.header-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 5px;
  white-space: nowrap;
  user-select: none;
  transition: all 0.2s ease;
}

.header-status-indicator.ready {
  background: rgba(16, 185, 129, 0.08);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.header-status-indicator.running {
  background: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-indicator-dot.emerald-glow {
  background-color: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.8);
}

.status-indicator-dot.pulse-spinner {
  background-color: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.9);
  animation: statusPulse 1.2s infinite ease-in-out;
}

@keyframes statusPulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

/* --- SAĞ BÖLÜM: [WhatsApp] + [Devir Al] + [Artifact] + [TODO] + [+ Yeni] (⌘K) + [•••] --- */
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.header-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 10px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 7px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  flex-shrink: 0;
  box-sizing: border-box;
}

.header-action-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

/* [🔄 Devir Al] Header Butonu & Popover */
.header-handoff-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.header-handoff-btn {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.28);
  color: #c7d2fe;
}

.header-handoff-btn:hover,
.header-handoff-btn.active {
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(99, 102, 241, 0.52);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.25);
}

.header-handoff-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 380px;
  max-width: min(380px, 92vw);
  z-index: 1500 !important;
  background: #0c101c !important;
  border: 1px solid rgba(99, 102, 241, 0.42);
  border-radius: 11px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.88), 0 0 0 1px rgba(255, 255, 255, 0.08);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  white-space: normal !important;
  box-sizing: border-box;
  animation: headerDropdownFadeIn 0.14s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-handoff-popover-head {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-handoff-popover-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #f8fafc;
}

.header-handoff-popover-sub {
  font-size: 11px;
  line-height: 1.38;
  color: #94a3b8;
}

.header-handoff-popover-footer {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-confirm-in-session-handoff {
  width: 100%;
  height: 32px;
  padding: 0 12px;
  border-radius: 7px;
  background: linear-gradient(135deg, #4f46e5 0%, #059669 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.btn-confirm-in-session-handoff:hover:not(:disabled) {
  filter: brightness(1.1);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
}

.btn-confirm-new-session-handoff {
  width: 100%;
  height: 30px;
  padding: 0 12px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.btn-confirm-new-session-handoff:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.btn-confirm-in-session-handoff:disabled,
.btn-confirm-new-session-handoff:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* [📋 Plan / Rapor] Artifact Butonu & Dropdown */
.header-artifacts-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.header-artifacts-btn {
  background: rgba(99, 102, 241, 0.10);
  border: 1px solid rgba(99, 102, 241, 0.28);
  color: #c7d2fe;
}

.header-artifacts-btn:hover {
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(99, 102, 241, 0.48);
  color: #ffffff;
}

.artifacts-badge-count {
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.28);
  color: #e0e7ff;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
}

.header-artifacts-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 250px;
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  z-index: 1200;
  flex-direction: column;
  gap: 4px;
}

/* [📋 9/10] Minimalist TODO Rozet Butonu */
.header-todo-toggle-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #cbd5e1;
  padding: 0 8px;
  gap: 5px;
}

.header-todo-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.header-todo-toggle-btn.active {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
}

.todo-badge-counter {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  font-size: 10.5px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  line-height: 1.2;
}

.todo-badge-complete {
  color: #34d399 !important;
  background: rgba(16, 185, 129, 0.15) !important;
}

/* [+ Yeni] (⌘K) Butonu */
.header-new-chat-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
}

.header-new-chat-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.header-new-chat-btn.primary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  box-shadow: none;
}

.header-new-chat-btn.primary:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.22);
}

.header-kbd {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  font-size: 9px;
  font-weight: 600;
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.3);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  line-height: 1;
  margin-left: 1px;
}

/* Header Live Status (Açık/Gizli) Switch Butonu (Geriye Dönük Uyumluluk) */
.header-live-status-toggle-btn {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #c7d2fe;
}

.header-live-status-toggle-btn:hover {
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(99, 102, 241, 0.45);
  color: #ffffff;
}

.header-live-status-toggle-btn.active {
  background: rgba(99, 102, 241, 0.14);
  border-color: rgba(99, 102, 241, 0.38);
  color: #a5b4fc;
}

.header-live-status-toggle-btn.hidden-mode {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
  color: #71717a;
}

.header-live-status-toggle-btn .live-status-bolt {
  font-size: 11px;
  color: #818cf8;
  display: inline-flex;
  align-items: center;
}

.header-live-status-toggle-btn.hidden-mode .live-status-bolt {
  color: #71717a;
  opacity: 0.6;
}

/* Header More Menu Dropdown (Linear / Cursor Dark Standardı) */
.header-dropdown-wrap {
  position: relative;
  display: inline-flex;
}

.header-dropdown-menu {
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  min-width: 220px;
  background: #111216;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04);
  padding: 4px;
  z-index: 1000;
  flex-direction: column;
  gap: 1px;
  animation: headerDropdownFadeIn 0.12s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-dropdown-item.header-telemetry-item {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  font-size: 11px;
  color: #34d399;
}

.header-dropdown-item.header-telemetry-item:hover {
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
}

.header-dropdown-item.header-telemetry-item.copied {
  background: rgba(16, 185, 129, 0.2) !important;
  color: #a7f3d0 !important;
}
@keyframes headerDropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.header-dropdown-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  height: 32px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 500;
  color: #d4d4d8;
  border: none;
  background: transparent;
  border-radius: 5px;
  cursor: pointer;
  text-align: left;
  transition: all 0.12s ease;
  user-select: none;
  box-sizing: border-box;
}

.header-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.header-dropdown-item.danger {
  color: #f87171;
}

.header-dropdown-item.danger:hover {
  background: rgba(239, 68, 68, 0.14);
  color: #fca5a5;
}

.header-dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 4px 2px;
}

/* ==========================================================================
   4. Merkezi Konuşma Tuvali (840px Simetrik & Kompakt)
   ========================================================================== */
.conversation-scroll-wrapper {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow-anchor: auto !important;
  overscroll-behavior-y: contain;
  scroll-behavior: auto;
}

.conversation-scroll-wrapper::-webkit-scrollbar {
  width: 6px;
}
.conversation-scroll-wrapper::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.conversation-canvas {
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
  padding: 18px 20px 140px;
  padding-top: 18px !important;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-sizing: border-box;
  flex: 1;
}

/* Karşılama Ekranı (Yeni Oturum Durumu) */
.welcome-screen-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 50px 16px 30px;
  margin: auto 0;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.welcome-emblem {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.25) 100%);
  border: 1px solid rgba(99, 102, 241, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a5b4fc;
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.25);
  margin-bottom: 18px;
}

.welcome-title {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.welcome-subtitle {
  font-size: 13.5px;
  color: #71717a;
  max-width: 480px;
  line-height: 1.5;
}

/* 4 Hızlı Eylem Kartı (Prompt Starters Grid) */
.quick-starters-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 720px;
  margin-top: 32px;
}

.starter-action-card {
  background: rgba(18, 19, 25, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
  transition: all 0.16s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.starter-action-card:hover {
  background: rgba(24, 25, 34, 0.95);
  border-color: rgba(99, 102, 241, 0.38);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4), 0 0 12px rgba(99, 102, 241, 0.15);
  transform: translateY(-1px);
}

.starter-card-title {
  font-size: 13px;
  font-weight: 600;
  color: #f4f4f5;
  display: flex;
  align-items: center;
  gap: 8px;
}

.starter-card-desc {
  font-size: 11.5px;
  color: #71717a;
  line-height: 1.4;
}

/* ==========================================================================
   Zero-FOUC Loading Skeleton (Obsidian Glassmorphism Shimmer)
   ========================================================================== */
.chat-canvas-loading-skeleton {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
  padding: 16px 0;
  pointer-events: none;
}

.skeleton-message-row {
  display: flex;
  gap: 14px;
  width: 100%;
}

.skeleton-message-row.user {
  justify-content: flex-end;
}

.skeleton-message-row.agent {
  justify-content: flex-start;
}

.skeleton-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.skeleton-content-box {
  flex: 1;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skeleton-meta-line {
  width: 140px;
  height: 12px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
  margin-bottom: 2px;
}

.skeleton-bubble {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px 16px 16px 4px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 85%;
  max-width: 640px;
  box-sizing: border-box;
}

.skeleton-text-line {
  height: 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.skeleton-text-line.line-full { width: 100%; }
.skeleton-text-line.line-lg { width: 85%; }
.skeleton-text-line.line-md { width: 60%; }
.skeleton-text-line.line-sm { width: 38%; }

.skeleton-user-bubble {
  width: 48%;
  max-width: 360px;
  height: 52px;
  border-radius: 16px 16px 4px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0 16px;
}

/* Shimmer Animation */
.skeleton-avatar::after,
.skeleton-meta-line::after,
.skeleton-text-line::after,
.skeleton-user-bubble::after,
.skeleton-bubble::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.03) 30%,
    rgba(255, 255, 255, 0.07) 50%,
    rgba(255, 255, 255, 0.03) 70%,
    transparent 100%
  );
  animation: skeletonShimmer 1.8s infinite ease-in-out;
  transform: translateX(-100%);
}

@keyframes skeletonShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Mesaj Balonları */
.chat-message-row {
  display: flex;
  gap: 14px;
  width: 100%;
  animation: none !important;
}

.chat-message-row.animate-in,
.chat-message-row.new-incoming {
  animation: messageSlideIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.conversation-canvas.is-initial-load .chat-message-row,
.chat-message-row.no-anim {
  animation: none !important;
  transform: none !important;
  transition: none !important;
}

.conversation-canvas.is-initial-load .first-greeting-chips-wrap {
  animation: none !important;
  transform: none !important;
}

@keyframes messageSlideIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-message-row.user-row {
  justify-content: flex-end;
}

.chat-message-row.user-row .message-bubble-body {
  background: #27272a;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px 16px 4px 16px;
  padding: 12px 18px;
  max-width: 80%;
  color: #f8fafc;
  font-size: 14.5px;
  line-height: 1.6;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  -webkit-font-smoothing: antialiased;
}

.chat-message-row.agent-row {
  justify-content: flex-start;
}

.agent-avatar-col {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.35);
  margin-top: 2px;
}

.agent-content-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.agent-header-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #94a3b8;
}

.agent-author-name {
  font-weight: 600;
  color: #ffffff;
}

.agent-subagent-tag {
  font-size: 10.5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  padding: 1px 7px;
  border-radius: 4px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.32);
  color: #a5b4fc;
}

.message-bubble-body {
  font-size: 14.5px;
  line-height: 1.65;
  color: #f1f5f9;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
  user-select: text !important;
  -webkit-user-select: text !important;
  cursor: text;
}

/* Zengin Markdown Paragrafları & Başlıkları */
.chat-p {
  margin: 0 0 12px 0;
  line-height: 1.65;
  color: #f1f5f9;
}
.chat-p:last-child {
  margin-bottom: 0;
}

.chat-h2 {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin: 18px 0 8px 0;
  letter-spacing: -0.015em;
}

.chat-h3 {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin: 14px 0 6px 0;
  letter-spacing: -0.01em;
}

.chat-h4 {
  font-size: 14.5px;
  font-weight: 600;
  color: #f8fafc;
  margin: 12px 0 4px 0;
}

.chat-h5 {
  font-size: 13.5px;
  font-weight: 600;
  color: #cbd5e1;
  margin: 10px 0 4px 0;
}

.message-bubble-body strong {
  color: #ffffff;
  font-weight: 600;
}

.message-bubble-body em {
  color: #e2e8f0;
}

/* ==========================================================================
   Linear / Raycast / Vercel Standartlarında Native Web UI Markdown Çıktı Mimarisi
   ========================================================================== */

.cockpit-bubble {
  position: relative;
  font-size: 14.5px;
  line-height: 1.65;
  color: #f1f5f9;
  -webkit-font-smoothing: antialiased;
}

/* 1. Lüks SaaS Veri Izgarası (Data Grid & Tables) */
.cockpit-bubble .markdown-table-wrapper,
.message-bubble-body .markdown-table-wrapper {
  width: 100%;
  max-width: 100%;
  max-height: 320px;
  overflow-y: auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 10px 0;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 14, 22, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  box-sizing: border-box;
}

.table-compact-header {
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.table-row-count-badge {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  color: #34d399;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 4px;
  padding: 1px 6px;
  font-weight: 500;
}

.cockpit-bubble .markdown-table-wrapper::-webkit-scrollbar,
.message-bubble-body .markdown-table-wrapper::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

.cockpit-bubble .markdown-table-wrapper::-webkit-scrollbar-thumb,
.message-bubble-body .markdown-table-wrapper::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

.cockpit-bubble table,
.cockpit-bubble .markdown-data-table,
.message-bubble-body table,
.message-bubble-body .markdown-data-table {
  width: 100%;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0;
  font-size: 12.5px;
  background: transparent;
  border: none;
}

.cockpit-bubble table th,
.cockpit-bubble .markdown-data-table th,
.message-bubble-body table th,
.message-bubble-body .markdown-data-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 8px 12px;
  text-align: left;
  background: #0d1017;
  font-weight: 600;
  color: #94a3b8;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.cockpit-bubble table td,
.cockpit-bubble .markdown-data-table td,
.message-bubble-body table td,
.message-bubble-body .markdown-data-table td {
  padding: 7px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  line-height: 1.45;
  vertical-align: middle;
}

.cockpit-bubble table tr:last-child td,
.cockpit-bubble .markdown-data-table tr:last-child td,
.message-bubble-body table tr:last-child td,
.message-bubble-body .markdown-data-table tr:last-child td {
  border-bottom: none;
}

.cockpit-bubble table tbody tr,
.message-bubble-body table tbody tr {
  transition: background-color 0.15s ease;
}

.cockpit-bubble table tbody tr:nth-child(even),
.message-bubble-body table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.015);
}

.cockpit-bubble table tbody tr:hover td,
.cockpit-bubble .markdown-data-table tbody tr:hover td,
.message-bubble-body table tbody tr:hover td,
.message-bubble-body .markdown-data-table tbody tr:hover td {
  background: rgba(16, 185, 129, 0.04);
}

/* 2. Linear / GitHub Stili Cam Efektli & Parlak Şeritli Çağrı Kartları (Callouts) */
.cockpit-bubble blockquote,
.cockpit-bubble .chat-blockquote,
.message-bubble-body blockquote,
.message-bubble-body .chat-blockquote {
  position: relative;
  border-left: 3.5px solid #6366f1;
  background: rgba(99, 102, 241, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 0 10px 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 12px 18px;
  margin: 14px 0;
  color: #cbd5e1;
  font-style: normal;
  line-height: 1.6;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), inset 1px 0 0 rgba(99, 102, 241, 0.25);
}

.cockpit-bubble blockquote::before,
.cockpit-bubble .chat-blockquote::before,
.message-bubble-body blockquote::before,
.message-bubble-body .chat-blockquote::before {
  content: "";
  position: absolute;
  top: 0;
  left: -3.5px;
  bottom: 0;
  width: 3.5px;
  background: #6366f1;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.7);
  border-radius: 2px 0 0 2px;
}

.cockpit-bubble .callout-card,
.message-bubble-body .callout-card {
  padding: 14px 18px;
  border-radius: 0 10px 10px 0;
}

.cockpit-bubble .callout-header,
.message-bubble-body .callout-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cockpit-bubble .callout-body,
.message-bubble-body .callout-body {
  font-size: 13.5px;
  line-height: 1.6;
  color: #e2e8f0;
}

/* Callout Note */
.cockpit-bubble .callout-note,
.message-bubble-body .callout-note {
  border-left-color: #38bdf8;
  background: rgba(56, 189, 248, 0.06);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), inset 1px 0 0 rgba(56, 189, 248, 0.25);
}
.cockpit-bubble .callout-note::before,
.message-bubble-body .callout-note::before {
  background: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.75);
}
.cockpit-bubble .callout-note .callout-header,
.message-bubble-body .callout-note .callout-header {
  color: #38bdf8;
}

/* Callout Tip */
.cockpit-bubble .callout-tip,
.message-bubble-body .callout-tip {
  border-left-color: #10b981;
  background: rgba(16, 185, 129, 0.06);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), inset 1px 0 0 rgba(16, 185, 129, 0.25);
}
.cockpit-bubble .callout-tip::before,
.message-bubble-body .callout-tip::before {
  background: #10b981;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.75);
}
.cockpit-bubble .callout-tip .callout-header,
.message-bubble-body .callout-tip .callout-header {
  color: #34d399;
}

/* Callout Important */
.cockpit-bubble .callout-important,
.message-bubble-body .callout-important {
  border-left-color: #a855f7;
  background: rgba(168, 85, 247, 0.07);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), inset 1px 0 0 rgba(168, 85, 247, 0.25);
}
.cockpit-bubble .callout-important::before,
.message-bubble-body .callout-important::before {
  background: #a855f7;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.8);
}
.cockpit-bubble .callout-important .callout-header,
.message-bubble-body .callout-important .callout-header {
  color: #c084fc;
}

/* Callout Warning */
.cockpit-bubble .callout-warning,
.message-bubble-body .callout-warning {
  border-left-color: #f59e0b;
  background: rgba(245, 158, 11, 0.07);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), inset 1px 0 0 rgba(245, 158, 11, 0.25);
}
.cockpit-bubble .callout-warning::before,
.message-bubble-body .callout-warning::before {
  background: #f59e0b;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.75);
}
.cockpit-bubble .callout-warning .callout-header,
.message-bubble-body .callout-warning .callout-header {
  color: #fbbf24;
}

/* Callout Caution */
.cockpit-bubble .callout-caution,
.message-bubble-body .callout-caution {
  border-left-color: #ef4444;
  background: rgba(239, 68, 68, 0.07);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), inset 1px 0 0 rgba(239, 68, 68, 0.25);
}
.cockpit-bubble .callout-caution::before,
.message-bubble-body .callout-caution::before {
  background: #ef4444;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.8);
}
.cockpit-bubble .callout-caution .callout-header,
.message-bubble-body .callout-caution .callout-header {
  color: #f87171;
}

/* 3. Status Rozetleri (Status Badges & Pills) */
.cockpit-bubble .status-badge,
.cockpit-bubble .badge,
.message-bubble-body .status-badge,
.message-bubble-body .badge,
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2.5px 9px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.02em;
  white-space: nowrap;
  vertical-align: middle;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.cockpit-bubble .status-badge.badge-success,
.message-bubble-body .status-badge.badge-success,
.status-badge.badge-success {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.28);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.12);
}

.cockpit-bubble .status-badge.badge-warning,
.message-bubble-body .status-badge.badge-warning,
.status-badge.badge-warning {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.28);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.12);
}

.cockpit-bubble .status-badge.badge-error,
.message-bubble-body .status-badge.badge-error,
.status-badge.badge-error {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.28);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.12);
}

.cockpit-bubble .status-badge.badge-info,
.message-bubble-body .status-badge.badge-info,
.status-badge.badge-info {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.28);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.12);
}

.cockpit-bubble .status-badge.badge-purple,
.message-bubble-body .status-badge.badge-purple,
.status-badge.badge-purple {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.28);
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.12);
}

/* 4. Native UI Düğmesi/Etiketi Hissi Veren Inline Kodlar */
.cockpit-bubble code,
.cockpit-bubble .chat-inline-code,
.message-bubble-body code:not(.tool-body-pre code):not(.code-block-content code),
.message-bubble-body .chat-inline-code,
.shortcut-kbd {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 2px 7px;
  border-radius: 5px;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12.5px;
  color: #38bdf8;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  font-weight: 500;
  display: inline-block;
  line-height: 1.35;
}

/* 5. Yapısal Görev Checklist & Pipeline Adımları */
.cockpit-bubble .task-list,
.message-bubble-body .task-list {
  list-style: none;
  padding-left: 0;
  margin: 10px 0 14px 4px;
}

.cockpit-bubble .task-list-item,
.message-bubble-body .task-list-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 7px;
  line-height: 1.55;
  color: #f1f5f9;
}

.cockpit-bubble .task-list-item .native-task-checkbox,
.message-bubble-body .task-list-item .native-task-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 17px;
  height: 17px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  cursor: default;
  margin-top: 3px;
  position: relative;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.cockpit-bubble .task-list-item .native-task-checkbox:checked,
.message-bubble-body .task-list-item .native-task-checkbox:checked {
  background: #6366f1;
  border-color: #818cf8;
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.45);
}

.cockpit-bubble .task-list-item .native-task-checkbox:checked::after,
.message-bubble-body .task-list-item .native-task-checkbox:checked::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
}

.cockpit-bubble .task-list-item.task-checked .task-text,
.message-bubble-body .task-list-item.task-checked .task-text {
  color: #94a3b8;
  text-decoration: line-through;
}

.chat-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin: 16px 0;
}

.chat-link {
  color: #818cf8;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.12s ease;
}
.chat-link:hover {
  color: #a5b4fc;
}

.chat-ul, .chat-ol {
  margin: 8px 0 14px 22px;
  padding: 0;
  color: #f1f5f9;
}

.chat-ul li, .chat-ol li {
  margin-bottom: 6px;
  line-height: 1.6;
}
.chat-ul li:last-child, .chat-ol li:last-child {
  margin-bottom: 0;
}

/* Sözdizimi Vurgulu Kod Kutuları */
.code-block-card {
  margin: 14px 0;
  max-width: 100%;
  background: #0d0e14;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  box-sizing: border-box;
}

.code-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  background: #0f1118;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11px;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #818cf8;
  position: sticky;
  top: 0;
  z-index: 2;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.code-lang-label {
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 10px;
}

.btn-code-copy {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #a1a1aa;
  cursor: pointer;
  font-size: 11px;
  font-family: 'Inter', -apple-system, sans-serif;
  padding: 3px 8px;
  border-radius: 5px;
  transition: all 0.15s ease;
}

.btn-code-copy:hover {
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(99, 102, 241, 0.4);
  color: #ffffff;
}

.btn-code-copy.copied {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.code-block-content {
  padding: 12px 14px;
  margin: 0;
  max-height: 380px;
  overflow-y: auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  line-height: 1.55;
  color: #e4e4e7;
  box-sizing: border-box;
}

.code-block-content::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

.code-block-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 3px;
}

.code-block-content::-webkit-scrollbar-track {
  background: transparent;
}

/* ==========================================================================
   Linear / Raycast Standard Progressive Disclosure Hap Rozeti (.tool-disclosure-pill)
   Varsayılan: 100% Kapalı, Tek Satır (28px), Sıfır Görsel Gürültü
   ========================================================================== */
.tool-disclosure-wrapper,
.live-status-card,
.tool-accordion-card {
  margin: 4px 0;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  overflow: hidden;
  box-sizing: border-box;
  transition: border-color 0.15s ease, background 0.15s ease;
  width: 100%;
  max-width: 100%;
}

.tool-disclosure-wrapper:hover,
.live-status-card:hover,
.tool-accordion-card:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.14);
}

.tool-disclosure-wrapper.open,
.live-status-card.open,
.tool-accordion-card.open {
  background: #090a0f;
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* TAVİZSİZ KAPALILIK GARANTİSİ: .open sınıfı yoksa ASLA görünemez (thinking-accordion-card:not(.collapsed) hariç) */
.tool-disclosure-wrapper:not(.open):not(.thinking-accordion-card) .tool-disclosure-drawer,
.tool-disclosure-wrapper.collapsed .tool-disclosure-drawer,
.live-status-card:not(.open):not(.thinking-accordion-card) .live-status-expanded,
.live-status-card.collapsed .live-status-expanded,
.live-status-group-card:not(.open) .live-status-expanded,
.live-status-group-card.collapsed .live-status-expanded,
.tool-accordion-card:not(.open):not(.thinking-accordion-card) .tool-accordion-body,
.tool-accordion-card.collapsed .tool-accordion-body,
.subagent-report-card:not(.open) .subagent-report-body,
.subagent-report-card.collapsed .subagent-report-body,
.subagent-report-card:not(.open) .subagent-report-expanded,
.subagent-report-card.collapsed .subagent-report-expanded {
  max-height: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

/* Yalnızca Araç İcrası İçeren Satırlar (Kaba Balon Yerine Minimalist Sıra) */
.chat-message-row.tool-only-row {
  display: flex;
  width: 100%;
  margin: 3px 0;
  padding: 0 0 0 48px;
  box-sizing: border-box;
}

.tool-only-container {
  width: 100%;
  max-width: 100%;
}

/* Optional Live Status Filter: only compacts completed historical tool pills when explicitly toggled off */
.hide-command-pills .tool-disclosure-wrapper.collapsed:not(.running) {
  display: none !important;
}

/* Canlı Çalışan CLI / Alt Ajan Araç Rozeti (Raycast / Linear Pulse) */
.tool-disclosure-wrapper.running {
  background: rgba(245, 158, 11, 0.08) !important;
  border-color: rgba(245, 158, 11, 0.35) !important;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.12);
}

.tool-disclosure-wrapper.running .tool-pill-dot {
  display: inline-block;
  animation: toolPulse 1.2s infinite ease-in-out;
}

@keyframes toolPulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.chat-message-row.live-execution-row {
  margin-top: 4px;
  margin-bottom: 4px;
}

.chat-message-row.live-execution-row .agent-subagent-tag.live-tag {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.3);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* 1. Tek Satırlık Kompakt Durum Hap Rozeti (.tool-disclosure-pill) */
.tool-disclosure-pill,
.live-status-pill,
.tool-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 10px;
  min-height: 28px;
  height: 28px;
  background: transparent;
  cursor: pointer;
  user-select: none;
  transition: background 0.12s ease;
  gap: 8px;
  box-sizing: border-box;
}

.tool-disclosure-pill:hover,
.live-status-pill:hover,
.tool-accordion-header:hover {
  background: rgba(255, 255, 255, 0.035);
}

.tool-pill-left,
.live-status-header,
.tool-header-left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  color: #e4e4e7;
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tool-pill-dot {
  font-size: 10px;
  line-height: 1;
  flex-shrink: 0;
}

.thinking-pill-icon {
  width: auto;
  height: auto;
  background: transparent !important;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
  flex-shrink: 0;
}

.tool-pill-label {
  font-size: 11px;
  font-weight: 500;
  color: #e4e4e7;
  white-space: nowrap;
}

.tool-header-cmd {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  color: #818cf8;
  background: rgba(99, 102, 241, 0.1);
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid rgba(99, 102, 241, 0.2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}

.tool-pill-right,
.live-status-actions,
.tool-header-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.tool-pill-toggle-btn,
.live-status-toggle-btn,
.tool-toggle-text {
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  color: #818cf8;
  cursor: pointer;
  white-space: nowrap;
  padding: 0;
  transition: color 0.12s ease;
}

.tool-pill-toggle-btn:hover,
.live-status-toggle-btn:hover,
.tool-toggle-text:hover {
  color: #a5b4fc;
}

/* 2. Açık Görünüm & Akıcı Açılma Animasyonu (.tool-disclosure-drawer / .tool-accordion-body) */
.tool-disclosure-drawer,
.live-status-expanded,
.tool-accordion-body {
  background: #08090e;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  max-height: 280px;
  overflow-y: auto;
  overflow-x: auto;
  transition: max-height 0.22s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.18s ease;
}

.live-status-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.live-status-toolbar-title {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
}

.live-status-copy-btn,
.btn-tool-copy {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(99, 102, 241, 0.12);
  color: #c7d2fe;
  border: 1px solid rgba(99, 102, 241, 0.25);
  cursor: pointer;
  transition: all 0.15s ease;
}

.live-status-copy-btn:hover,
.btn-tool-copy:hover {
  background: rgba(99, 102, 241, 0.25);
  color: #ffffff;
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.2);
}

.live-status-body {
  padding: 10px 14px;
  background: #08090e;
  overflow-x: auto;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

.live-status-pre,
.tool-body-pre {
  margin: 0;
  padding: 0;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  line-height: 1.55;
  color: #cbd5e1;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* --- Çoklu Komut Gruplama (Smart Batch Progressive Disclosure Pill) --- */
.live-status-group-card,
.live-stepper-card {
  margin: 4px 0;
  background: rgba(14, 18, 27, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
  box-sizing: border-box;
}

.live-status-group-card:hover,
.live-stepper-card:hover {
  background: rgba(16, 185, 129, 0.035);
  border-color: rgba(16, 185, 129, 0.3);
}

.live-status-group-card.open,
.live-stepper-card.open {
  background: #090c14;
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.live-status-group-card.running,
.live-stepper-card.running {
  border-color: rgba(6, 182, 212, 0.35);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.12);
}

.live-status-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 10px;
  min-height: 28px;
  height: 28px;
  background: transparent;
  cursor: pointer;
  user-select: none;
  transition: background 0.12s ease;
  gap: 8px;
  box-sizing: border-box;
}

.live-status-group-header:hover {
  background: rgba(255, 255, 255, 0.035);
}

.live-status-group-header.open {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(16, 185, 129, 0.05);
}

.live-status-group-body {
  padding: 8px 10px;
}

.live-status-stepper-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.live-status-stepper-item {
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 5px;
  overflow: hidden;
  transition: border-color 0.12s ease, background 0.12s ease;
}

.live-status-stepper-item:hover {
  border-color: rgba(16, 185, 129, 0.28);
  background: rgba(16, 185, 129, 0.025);
}

.live-status-stepper-item.has-step-error {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.02);
}

.stepper-item-header {
  display: flex;
  align-items: center;
  padding: 5px 8px;
  font-size: 11px;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}

.stepper-step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  border-radius: 3px;
  flex-shrink: 0;
}

.stepper-tool-tag {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.stepper-tool-tag.tag-run {
  background: rgba(6, 182, 212, 0.12);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.28);
}

.stepper-tool-tag.tag-view {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.28);
}

.stepper-tool-tag.tag-edit {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.28);
}

.stepper-tool-tag.tag-swarm {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.28);
}

.stepper-tool-tag.tag-workspace {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.28);
}

.stepper-tool-name {
  color: #e4e4e7;
  font-weight: 500;
  white-space: nowrap;
}

.stepper-cmd {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.04);
  padding: 1px 6px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}

.stepper-spacer {
  flex: 1;
}

.stepper-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
}

.stepper-badge.status-ok {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: #34d399;
}

.stepper-badge.status-running {
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: #22d3ee;
}

.stepper-badge.status-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.stepper-caret {
  font-size: 8.5px;
  color: #71717a;
  margin-left: 2px;
}

.stepper-item-output {
  background: #050609;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.stepper-output-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.stepper-output-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
}

.stepper-pre {
  margin: 0;
  padding: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  line-height: 1.5;
  color: #94a3b8;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  max-height: 180px;
  overflow-y: auto;
}

/* ==========================================================================
   Katlanabilir & Kompakt Alt Ajan Rapor Kapsülü (.subagent-report-pill & .subagent-report-card)
   ========================================================================== */
.subagent-report-row {
  width: 100%;
  display: flex;
  margin: 3px 0;
  box-sizing: border-box;
}

.subagent-report-card {
  width: 100%;
  margin: 2px 0;
  background: rgba(139, 92, 246, 0.03);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.15s ease, background 0.15s ease;
  box-sizing: border-box;
}

.subagent-report-card:hover {
  background: rgba(139, 92, 246, 0.06);
  border-color: rgba(139, 92, 246, 0.3);
}

.subagent-report-card.open {
  background: #07080d;
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.subagent-report-card.agent-mesh-card {
  background: rgba(6, 182, 212, 0.05);
  border: 1px solid rgba(6, 182, 212, 0.35);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.08);
}
.subagent-report-card.agent-mesh-card:hover {
  background: rgba(6, 182, 212, 0.09);
  border-color: rgba(6, 182, 212, 0.6);
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.16);
}
.subagent-report-card.agent-mesh-card.open {
  background: #060c14;
  border-color: #06b6d4;
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.22);
}

/* 1. Tek Satırlık Kompakt Kapsül (.subagent-report-pill) */
.subagent-report-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 10px;
  min-height: 28px;
  height: 28px;
  background: transparent;
  cursor: pointer;
  user-select: none;
  transition: background 0.12s ease;
  gap: 8px;
  box-sizing: border-box;
}

.subagent-report-pill:hover {
  background: rgba(139, 92, 246, 0.08);
}

.subagent-report-header-left {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  color: #e4e4e7;
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.subagent-report-icon {
  font-size: 12px;
  color: #c084fc;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.subagent-report-badge {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.25);
  color: #c084fc;
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 600;
  text-transform: uppercase;
}

.subagent-report-title {
  color: #f1f5f9;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}

.subagent-report-meta {
  color: #71717a;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.subagent-report-header-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.subagent-report-toggle-btn {
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  color: #c084fc;
  cursor: pointer;
  white-space: nowrap;
  padding: 0;
  transition: color 0.12s ease;
}

.subagent-report-toggle-btn:hover,
.subagent-report-pill:hover .subagent-report-toggle-btn {
  color: #e9d5ff;
}

/* Linear Dispatch & Handoff Inline Badges */
.chat-dispatch-badge,
.chat-handoff-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px;
  margin: 2px 3px 2px 0;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 4px;
  font-size: 11px;
  line-height: 1.3;
  color: #c7d2fe;
  vertical-align: middle;
}

.chat-dispatch-badge .dispatch-badge-icon,
.chat-handoff-badge .handoff-badge-icon {
  font-size: 10px;
}

.chat-dispatch-badge .dispatch-badge-target {
  color: #ffffff;
  font-weight: 600;
}

.chat-dispatch-badge .dispatch-badge-arrow {
  color: #818cf8;
  font-size: 10px;
}

.chat-dispatch-badge .dispatch-badge-task {
  color: #cbd5e1;
}

.chat-handoff-badge {
  background: rgba(168, 85, 247, 0.08);
  border-color: rgba(168, 85, 247, 0.2);
  color: #e9d5ff;
}

/* 2. Açık Görünüm & Gövde (.subagent-report-body / .subagent-report-expanded) */
.subagent-report-expanded,
.subagent-report-body {
  background: #07080c;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  max-height: 280px;
  overflow-y: auto;
  transition: max-height 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.subagent-report-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.subagent-report-toolbar-title {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #a855f7;
  font-weight: 600;
}

.subagent-report-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.25);
  color: #e9d5ff;
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.subagent-report-copy-btn:hover {
  background: rgba(168, 85, 247, 0.22);
  border-color: rgba(168, 85, 247, 0.45);
  color: #ffffff;
}

.subagent-report-content-pre {
  padding: 10px 12px;
  margin: 0;
}

.subagent-report-pre {
  margin: 0;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  line-height: 1.55;
  color: #cbd5e1;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 260px;
  overflow-y: auto;
  overflow-x: auto;
}

.subagent-report-pre::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

.subagent-report-pre::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.25);
  border-radius: 3px;
}

/* Chat Virtualization & Scroll Preservation Styles */
.load-older-messages-container {
  display: flex;
  justify-content: center;
  margin: 12px 0;
}

.btn-load-older-messages {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 500;
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 20px;
  padding: 5px 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-load-older-messages:hover {
  background: rgba(99, 102, 241, 0.2);
  color: #ffffff;
}

/* Mesaj Eylem Butonları */
.message-actions-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  opacity: 0.75;
  transition: opacity 0.15s ease;
}

.chat-message-row:hover .message-actions-bar {
  opacity: 1;
}

.msg-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 8px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
  color: #71717a;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.12s ease;
}

.msg-action-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #e4e4e7;
  border-color: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Yüzen 'En Alta Git' Butonu (.btn-scroll-bottom) — Modern Glassmorphism
   ========================================================================== */
.btn-scroll-bottom {
  position: absolute;
  bottom: 96px;
  right: max(24px, calc((100% - 840px) / 2 + 16px));
  z-index: 45;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 14px;
  background: rgba(15, 17, 23, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  color: #e2e8f0;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 1px rgba(255, 255, 255, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.94);
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.25s ease,
              background 0.2s ease,
              border-color 0.2s ease,
              box-shadow 0.2s ease,
              color 0.2s ease;
  user-select: none;
}

.btn-scroll-bottom.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.btn-scroll-bottom:hover {
  background: rgba(24, 27, 38, 0.9);
  border-color: rgba(99, 102, 241, 0.55);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6), 0 0 18px rgba(99, 102, 241, 0.35);
  color: #ffffff;
}

.btn-scroll-bottom:hover .btn-scroll-bottom-icon {
  transform: translateY(2px);
  color: #a5b4fc;
  filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.45));
}

.btn-scroll-bottom:active {
  transform: translateY(2px) scale(0.97);
}

.btn-scroll-bottom-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #818cf8;
  transition: color 0.18s ease, stroke 0.18s ease, transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), filter 0.18s ease;
}

.btn-scroll-bottom-icon svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  shape-rendering: geometricPrecision;
}

.btn-scroll-bottom-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.btn-scroll-bottom.has-unread {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.5);
  color: #34d399;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55), 0 0 16px rgba(16, 185, 129, 0.35);
  animation: pulse-unread-badge 2s infinite ease-in-out;
}

.btn-scroll-bottom.has-unread .btn-scroll-bottom-icon {
  color: #10b981;
  filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.6));
}

.btn-scroll-bottom.has-unread:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: rgba(16, 185, 129, 0.75);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6), 0 0 22px rgba(16, 185, 129, 0.55);
  color: #ecfdf5;
}

@keyframes pulse-unread-badge {
  0%, 100% {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55), 0 0 12px rgba(16, 185, 129, 0.25);
    border-color: rgba(16, 185, 129, 0.45);
  }
  50% {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55), 0 0 22px rgba(16, 185, 129, 0.6);
    border-color: rgba(16, 185, 129, 0.85);
  }
}

/* ==========================================================================
   DOM Message Virtualization: Daha Eski Mesajlar Barı (.dom-window-load-bar)
   ========================================================================== */
.dom-window-load-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 16px 16px;
  margin-bottom: 8px;
}

.btn-dom-load-earlier {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 16px;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 20px;
  color: #94a3b8;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35), 0 0 12px rgba(99, 102, 241, 0.08);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.btn-dom-load-earlier:hover {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(99, 102, 241, 0.55);
  color: #f1f5f9;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45), 0 0 16px rgba(99, 102, 241, 0.25);
  transform: translateY(-1px);
}

.btn-dom-load-earlier:active {
  transform: translateY(1px);
}

.btn-dom-load-earlier svg {
  flex-shrink: 0;
  color: #818cf8;
  transition: transform 0.2s ease, color 0.2s ease;
}

.btn-dom-load-earlier:hover svg {
  color: #a5b4fc;
  transform: translateY(-2px);
}

/* ==========================================================================
   5. Yüzen Alt Giriş Konsolu (Floating Capsule)
   ========================================================================== */
.floating-capsule-wrapper {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  pointer-events: none;
  z-index: 40;
}

.floating-capsule {
  pointer-events: auto;
  width: 100%;
  max-width: 840px;
  background: rgba(18, 19, 26, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 1px rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  overflow: visible;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}

.floating-capsule:focus-within {
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.75), 0 0 20px rgba(99, 102, 241, 0.2);
}

/* Dosya Eki Önizleme Çubuğu */
.capsule-attachment-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px;
  background: rgba(99, 102, 241, 0.12);
  border-bottom: 1px solid rgba(99, 102, 241, 0.2);
  font-size: 11px;
  color: #a5b4fc;
  border-radius: 20px 20px 0 0;
}

.capsule-input-row {
  display: flex;
  align-items: flex-end;
  padding: 8px 12px;
  gap: 8px;
}

.capsule-left-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-bottom: 2px;
}

.capsule-icon-btn {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #71717a;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.18s ease, stroke 0.18s ease, background 0.18s ease, transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), filter 0.18s ease;
}

.capsule-icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.45));
}

.capsule-icon-btn:hover svg {
  transform: scale(1.06);
}

.capsule-textarea-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}

.capsule-textarea {
  width: 100%;
  min-height: 24px;
  max-height: 140px;
  resize: none;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 13.5px;
  line-height: 1.5;
  font-family: inherit;
  padding: 5px 0;
  box-sizing: border-box;
}

.capsule-textarea::placeholder {
  color: #52525b;
}

.capsule-right-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 2px;
}

/* Canlı Ses / WebRTC Mikrofon Butonu */
.capsule-mic-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #a1a1aa;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.capsule-mic-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.capsule-mic-btn.recording {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.6);
  color: #ef4444;
  animation: micGlow 1.5s infinite;
}

@keyframes micGlow {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Gönder Butonu */
.capsule-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #4f46e5;
  border: none;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 10px rgba(79, 70, 229, 0.4);
}

.capsule-send-btn:hover {
  background: #6366f1;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.5);
  transform: scale(1.04);
}

.capsule-send-btn:disabled {
  background: rgba(255, 255, 255, 0.08);
  color: #52525b;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.capsule-send-btn.is-stop-mode,
.cockpit-force-unlock-btn.is-stop-mode {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.55) !important;
  cursor: pointer !important;
  animation: stopPulseGlow 1.6s infinite ease-in-out;
}

.capsule-send-btn.is-stop-mode:hover,
.cockpit-force-unlock-btn.is-stop-mode:hover {
  background: linear-gradient(135deg, #f87171 0%, #ef4444 100%) !important;
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.75) !important;
  transform: scale(1.06);
}

@keyframes stopPulseGlow {
  0%, 100% { box-shadow: 0 0 10px rgba(239, 68, 68, 0.45); }
  50% { box-shadow: 0 0 18px rgba(239, 68, 68, 0.85); }
}

.floating-prompt-capsule.is-thread-locked {
  border-color: rgba(99, 102, 241, 0.38);
}

/* Slash Komutları Dropdown Menüsü */
.slash-dropdown-menu {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 12px;
  background: #161720;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7);
  z-index: 100;
  min-width: 280px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.slash-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.12s ease;
}

.slash-item:hover, .slash-item.selected {
  background: rgba(99, 102, 241, 0.18);
}

.slash-cmd {
  font-family: ui-monospace, monospace;
  font-weight: 700;
  font-size: 12px;
  color: #a5b4fc;
}

.slash-desc {
  font-size: 11.5px;
  color: #71717a;
}

/* ==========================================================================
   6. Mobil ve Responsive (100dvh, Drawer & Ergonomi)
   ========================================================================== */
@media (max-width: 768px) {
  #cockpit-view {
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
  }

  .founder-cockpit-container {
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
  }

  .cockpit-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    height: 100dvh;
    max-height: 100dvh;
    z-index: 250;
    transform: translateX(-100%);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.85);
    overflow-x: hidden !important;
  }

  .cockpit-sidebar.open {
    transform: translateX(0);
  }

  .mobile-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 240;
  }

  .cockpit-main-stage {
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
  }

  .conversation-scroll-wrapper {
    height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .quick-starters-grid {
    grid-template-columns: 1fr;
  }

  .cockpit-top-bar {
    padding: 0 8px;
    gap: 6px;
  }

  .top-bar-left {
    gap: 6px;
    flex: 1;
    min-width: 0;
  }

  .sidebar-toggle-btn {
    flex-shrink: 0;
  }

  .header-model-badge {
    display: none;
  }

  .cockpit-engine-pill {
    max-width: 140px;
    padding: 3px 6px;
    gap: 4px;
    flex-shrink: 1;
  }

  .cockpit-engine-pill .engine-pill-text {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header-engine-popover {
    position: fixed;
    top: 52px;
    left: 8px;
    right: 8px;
    width: auto;
    min-width: 0;
    max-width: calc(100vw - 16px);
    max-height: min(340px, 70dvh);
    z-index: 1300;
  }

  .engine-popover-scroll-body {
    max-height: calc(min(340px, 70dvh) - 44px);
  }

  .sidebar-model-select {
    height: 36px;
    font-size: 12px;
  }

  .header-title-text {
    max-width: 130px;
    font-size: 12.5px;
  }

  .header-title-input {
    max-width: 140px;
    font-size: 12px;
  }

  .top-bar-center {
    display: none;
  }

  .top-bar-right {
    gap: 6px;
    flex-shrink: 0;
  }

  .header-action-btn .header-action-text {
    display: none;
  }

  .header-action-btn {
    padding: 0 8px;
  }

  .header-kbd {
    display: none;
  }

  .first-greeting-chips-wrap {
    padding-left: 0 !important;
  }

  .btn-scroll-bottom {
    bottom: calc(76px + env(keyboard-inset-height, 0px));
    right: 16px;
    padding: 7px 12px;
    font-size: 11px;
    gap: 6px;
  }

  .btn-scroll-bottom-icon svg {
    width: 13px;
    height: 13px;
  }

  .floating-capsule-wrapper {
    bottom: max(10px, env(keyboard-inset-height, 0px));
    padding: 0 8px;
    z-index: 100;
  }

  .floating-capsule {
    border-radius: 16px;
  }

  .conversation-canvas {
    padding: 16px 12px calc(120px + env(keyboard-inset-height, 0px));
    overflow-x: hidden;
  }

  /* Mobile Ergonomic Touch Targets (Linear / Raycast Standard >= 36px) */
  .header-icon-btn,
  .btn-icon,
  .capsule-icon-btn,
  .todo-icon-btn,
  .todo-drawer-action-btn,
  .action-btn-icon,
  .session-action-btn,
  .session-item-actions button {
    min-width: 36px !important;
    min-height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .session-item-actions {
    gap: 6px;
  }
}

/* Live Action Bar / Orb (Cursor & Claude Desktop Standartı) */
.live-action-bar-container {
  display: flex;
  align-items: center;
  margin: 12px 0 16px 0;
  padding: 0 4px;
  animation: liveActionBarFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.live-action-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 9999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), 0 0 12px rgba(99, 102, 241, 0.15);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  user-select: none;
}

.live-action-orb {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8, 0 0 16px rgba(56, 189, 248, 0.6);
  animation: orbPulse 1.6s infinite ease-in-out;
  flex-shrink: 0;
  display: inline-block;
}

@keyframes orbPulse {
  0%, 100% {
    transform: scale(0.85);
    opacity: 0.7;
    box-shadow: 0 0 4px #38bdf8;
  }
  50% {
    transform: scale(1.25);
    opacity: 1;
    box-shadow: 0 0 12px #38bdf8, 0 0 20px rgba(56, 189, 248, 0.8);
  }
}

.live-action-text {
  font-size: 12.5px;
  font-weight: 500;
  color: #e2e8f0;
  letter-spacing: 0.2px;
}

.live-action-timer {
  font-size: 11.5px;
  font-weight: 500;
  color: #818cf8;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.3px;
  padding-left: 2px;
}

@keyframes liveActionBarFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Düşünme / Yükleniyor Göstergesi (Real API Thinking State) */
.thinking-row {
  opacity: 0.95;
  animation: messageSlideIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.thinking-bubble {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 12px;
  width: fit-content;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.thinking-bubble .thinking-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #818cf8;
  animation: thinkingPulse 1.4s infinite ease-in-out both;
}

.thinking-bubble .thinking-dot:nth-child(1) { animation-delay: -0.32s; }
.thinking-bubble .thinking-dot:nth-child(2) { animation-delay: -0.16s; }

/* Thinking Accordion Card Icon Reset (Eliminates 6x6px purple dot collision) */
.thinking-accordion-card .thinking-dot,
.thinking-accordion-card .thinking-pill-icon {
  width: auto !important;
  height: auto !important;
  background: transparent !important;
  border-radius: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
  animation: none !important;
}

@keyframes thinkingPulse {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1.1); opacity: 1; }
}

.cockpit-live-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(129, 140, 248, 0.25);
  border-radius: 10px;
  color: #c7d2fe;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  margin-bottom: 4px;
  animation: fadeIn 0.2s ease-in-out;
}

.live-status-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #818cf8;
  box-shadow: 0 0 10px #818cf8;
  animation: liveStatusPulsate 1.5s infinite ease-in-out;
  display: inline-block;
  flex-shrink: 0;
}

@keyframes liveStatusPulsate {
  0% { transform: scale(0.8); opacity: 0.5; box-shadow: 0 0 4px #818cf8; }
  50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 12px #818cf8; }
  100% { transform: scale(0.8); opacity: 0.5; box-shadow: 0 0 4px #818cf8; }
}

.live-status-bubble-text {
  font-size: 12px;
  color: #a5b4fc;
  font-weight: 500;
  margin-left: 6px;
  letter-spacing: 0.2px;
}

.chat-message-row.error-row .message-bubble-body {
  border-color: rgba(239, 68, 68, 0.4) !important;
  background: rgba(239, 68, 68, 0.08) !important;
  color: #fca5a5 !important;
}

/* ==========================================================================
   7. Ajan & CLI Booting Radar Stilleri (High-Tech Prewarm State)
   ========================================================================== */
.agent-booting-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
  width: 100%;
  padding: 40px 20px;
  box-sizing: border-box;
}

.agent-booting-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 480px;
  width: 100%;
  padding: 38px 30px;
  background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.14) 0%, rgba(13, 14, 19, 0.96) 80%);
  border: 1px solid rgba(99, 102, 241, 0.32);
  border-radius: 20px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7), 0 0 35px rgba(99, 102, 241, 0.18);
  text-align: center;
  backdrop-filter: blur(14px);
  animation: bootingCardFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes bootingCardFadeIn {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.booting-radar {
  position: relative;
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.booting-scanner-sweep {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, transparent 270deg, rgba(99, 102, 241, 0.45) 360deg);
  animation: radarSweep 2.2s linear infinite;
  pointer-events: none;
}

@keyframes radarSweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.booting-center-icon {
  position: relative;
  z-index: 2;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 0 26px rgba(99, 102, 241, 0.7);
}

.booting-pulse-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1.5px solid rgba(99, 102, 241, 0.6);
  pointer-events: none;
}

.booting-pulse-ring.ring-1 {
  animation: bootingPulse 2.4s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.booting-pulse-ring.ring-2 {
  animation: bootingPulse 2.4s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  animation-delay: 0.8s;
}

.booting-pulse-ring.ring-3 {
  animation: bootingPulse 2.4s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  animation-delay: 1.6s;
}

@keyframes bootingPulse {
  0% { transform: scale(0.65); opacity: 0.85; border-color: rgba(99, 102, 241, 0.7); }
  100% { transform: scale(1.65); opacity: 0; border-color: rgba(129, 140, 248, 0); }
}

.booting-title {
  margin: 0 0 6px 0;
  font-size: 17.5px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.booting-subtitle {
  margin: 0 0 24px 0;
  font-size: 13px;
  color: #a1a1aa;
  line-height: 1.5;
}

.booting-steps-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.booting-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  font-size: 12.5px;
  transition: all 0.2s ease;
}

.booting-step.active {
  border-color: rgba(99, 102, 241, 0.35);
  background: rgba(99, 102, 241, 0.06);
}

.booting-step-icon {
  margin-right: 8px;
  font-size: 14px;
}

.booting-step-text {
  flex: 1;
  text-align: left;
  color: #e4e4e7;
  font-weight: 500;
}

.booting-step-status {
  font-size: 11px;
  font-weight: 600;
  color: #34d399;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.25);
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   8. İlk Karşılama Çipleri (First Greeting Action Chips)
   ========================================================================== */
.first-greeting-chips-wrap {
  margin-top: 14px;
  padding-left: 48px; /* Avatar 34px + gap 14px tam hizası */
  animation: messageSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.first-greeting-chips-title {
  font-size: 11px;
  font-weight: 600;
  color: #818cf8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.first-greeting-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.starter-action-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  background: rgba(22, 24, 34, 0.9);
  border: 1px solid rgba(99, 102, 241, 0.28);
  border-radius: 20px;
  color: #f1f5f9;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  user-select: none;
}

.starter-action-chip:hover {
  background: rgba(99, 102, 241, 0.22);
  border-color: rgba(99, 102, 241, 0.55);
  color: #ffffff;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.starter-action-chip:active {
  transform: translateY(0);
}

/* ==========================================================================
   10. Prod-Ready Dosya Yükleme, Önizleme ve Zengin Ek Kartları (Rich Attachments)
   ========================================================================== */

/* Konuşma Alanı ve Dropzone Konumlandırması */
.conversation-scroll-wrapper {
  position: relative;
}

.canvas-dropzone-overlay {
  position: absolute;
  inset: 12px;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.canvas-dropzone-overlay.visible {
  display: flex;
}

.canvas-dropzone-content {
  background: rgba(15, 17, 26, 0.95);
  border: 2px dashed #818cf8;
  border-radius: 16px;
  padding: 36px 44px;
  text-align: center;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.75), 0 0 28px rgba(99, 102, 241, 0.35);
  animation: dropzonePulse 1.6s infinite ease-in-out;
}

.canvas-dropzone-icon {
  margin-bottom: 12px;
}

.canvas-dropzone-title {
  font-size: 16px;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 4px;
}

.canvas-dropzone-sub {
  font-size: 13px;
  color: #94a3b8;
}

/* Sürükleme Anında Giriş Kapsülü */
.floating-capsule.drag-active {
  border-color: #818cf8 !important;
  border-style: dashed !important;
  background: rgba(99, 102, 241, 0.14) !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.8), 0 0 28px rgba(99, 102, 241, 0.45) !important;
  transform: scale(1.01);
}

/* Anlık Canlı Yükleme Göstergesi (Live Upload Indicator) */
.capsule-upload-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 16px;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.18) 0%, rgba(168, 85, 247, 0.15) 100%);
  border-bottom: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 20px 20px 0 0;
  animation: slideDownIndicator 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.upload-indicator-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #818cf8;
}

.upload-indicator-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.upload-indicator-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
}

.upload-status-label {
  color: #818cf8;
  font-weight: 600;
}

.upload-filename {
  color: #f1f5f9;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 320px;
}

.upload-percent-text {
  color: #a5b4fc;
  font-family: monospace;
  font-size: 11px;
  margin-left: auto;
}

.upload-progress-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.upload-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1 0%, #a855f7 100%);
  border-radius: 2px;
  transition: width 0.15s ease-out;
}

/* ==========================================================================
   Linear / Raycast Style Chat Attachment Preview Bar & Chips
   ========================================================================== */
.chat-attachment-preview-bar,
.pending-attachments-staging {
  padding: 10px 14px;
  background: rgba(18, 18, 24, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: previewBarSlideIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes previewBarSlideIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-attachment-preview-bar-wrapper {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.pending-staging-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  color: #a5b4fc;
}

.pending-clear-all-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 11px;
  cursor: pointer;
  transition: color 0.15s ease;
  padding: 0;
}

.pending-clear-all-btn:hover {
  color: #f87171;
  text-decoration: underline;
}

.pending-attachments-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 140px;
  overflow-y: auto;
}

/* Linear / Raycast Glassmorphism Attachment Chip */
.attachment-chip,
.pending-attachment-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 6px 6px;
  background: rgba(30, 32, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  max-width: 280px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.attachment-chip:hover,
.pending-attachment-card:hover {
  border-color: rgba(99, 102, 241, 0.45);
  background: rgba(38, 40, 54, 0.95);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.18);
  transform: translateY(-1px);
}

.attachment-chip.uploading,
.pending-attachment-card.uploading {
  border-color: rgba(99, 102, 241, 0.35);
  background: rgba(24, 25, 36, 0.92);
}

/* Thumbnail Box */
.attachment-chip-thumb,
.pending-thumb-box {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.attachment-chip-thumb img,
.attachment-chip-thumb-img,
.pending-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Document & File Type Badges */
.attachment-chip-icon-box {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
}

.attachment-chip-icon-box.pdf,
.pending-pdf-badge-icon {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.9) 0%, rgba(185, 28, 28, 0.95) 100%);
  color: #ffffff;
}

.attachment-chip-icon-box.sheet {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.9) 0%, rgba(5, 150, 105, 0.95) 100%);
  color: #ffffff;
}

.attachment-chip-icon-box.doc {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.9) 0%, rgba(29, 78, 216, 0.95) 100%);
  color: #ffffff;
}

.attachment-chip-icon-box.code {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.9) 0%, rgba(14, 116, 144, 0.95) 100%);
  color: #ffffff;
}

.attachment-chip-icon-box.zip {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.9) 0%, rgba(180, 83, 9, 0.95) 100%);
  color: #ffffff;
}

.attachment-chip-icon-box.generic,
.pending-file-badge-icon {
  background: linear-gradient(135deg, rgba(100, 116, 139, 0.9) 0%, rgba(51, 65, 85, 0.95) 100%);
  color: #ffffff;
}

.attachment-chip-emoji {
  font-size: 14px;
  line-height: 1;
}

.attachment-chip-tag {
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Info Box */
.attachment-chip-info,
.pending-info-box {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  gap: 2px;
}

.attachment-chip-header-line {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.attachment-chip-name,
.pending-file-name {
  font-size: 11.5px;
  font-weight: 500;
  color: #f1f5f9;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 145px;
  line-height: 1.3;
}

.attachment-chip-size,
.pending-file-size {
  font-size: 10px;
  color: #94a3b8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.attachment-chip-spinner {
  width: 10px;
  height: 10px;
  border: 1.5px solid rgba(165, 180, 252, 0.3);
  border-top-color: #a5b4fc;
  border-radius: 50%;
  animation: att-chip-spin 0.8s linear infinite;
  flex-shrink: 0;
}

@keyframes att-chip-spin {
  to { transform: rotate(360deg); }
}

/* Remove '✕' Button */
.attachment-chip-remove,
.pending-remove-btn {
  background: none;
  border: none;
  color: #71717a;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.15s ease;
  flex-shrink: 0;
  padding: 0;
  margin-left: 2px;
}

.attachment-chip-remove:hover,
.pending-remove-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

/* Mesaj İçi Ek Izgarası (Message Attachments Grid) */
.chat-attachments-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
  width: 100%;
  max-width: 100%;
}

/* 1. Görsel Kartı (Image Card) */
.chat-attachment-image-card {
  width: 100%;
  max-width: 380px;
  background: rgba(22, 23, 30, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-attachment-image-card:hover {
  border-color: rgba(129, 140, 248, 0.55);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.25);
  transform: translateY(-1.5px);
}

.chat-img-thumb-container {
  position: relative;
  width: 100%;
  max-height: 240px;
  overflow: hidden;
  cursor: zoom-in;
  background: #0c0d12;
}

.chat-img-preview {
  width: 100%;
  height: auto;
  max-height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-img-thumb-container:hover .chat-img-preview {
  transform: scale(1.03);
}

.chat-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.65) 100%);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.chat-img-thumb-container:hover .chat-img-overlay {
  opacity: 1;
}

.chat-img-zoom-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 500;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.chat-img-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(16, 17, 22, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  gap: 10px;
}

.chat-img-meta-left {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.chat-img-filename {
  font-size: 12px;
  font-weight: 500;
  color: #f1f5f9;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-img-filesize {
  font-size: 10.5px;
  color: #94a3b8;
  font-family: monospace;
}

.chat-attachment-btn-download {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 500;
  color: #e2e8f0;
  text-decoration: none;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.chat-attachment-btn-download:hover {
  background: rgba(99, 102, 241, 0.25);
  border-color: rgba(99, 102, 241, 0.5);
  color: #ffffff;
}

/* 2. PDF Kartı (PDF Card) */
.chat-attachment-pdf-card {
  width: 100%;
  max-width: 480px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.09) 0%, rgba(20, 21, 28, 0.95) 100%);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-attachment-pdf-card:hover {
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 8px 26px rgba(239, 68, 68, 0.2);
  transform: translateY(-1.5px);
}

.chat-pdf-icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(239, 68, 68, 0.35);
}

.pdf-tag-label {
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-top: 1px;
}

.chat-pdf-info-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.chat-pdf-name {
  font-size: 13px;
  font-weight: 600;
  color: #f1f5f9;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-pdf-submeta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  margin-top: 2px;
}

.chat-pdf-size {
  color: #94a3b8;
  font-family: monospace;
}

.chat-pdf-badge-tag {
  padding: 1px 6px;
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  color: #f87171;
}

.chat-pdf-actions-col {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.chat-card-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 500;
  color: #f1f5f9;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-card-action-btn.btn-preview-pdf {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.chat-card-action-btn.btn-preview-pdf:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: rgba(239, 68, 68, 0.6);
  color: #ffffff;
  transform: translateY(-1px);
}

.chat-card-action-btn.btn-download-file:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transform: translateY(-1px);
}

/* 3. Diğer Dosyalar Kartı (Generic File Card) */
.chat-attachment-file-card {
  width: 100%;
  max-width: 480px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(20, 21, 28, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-attachment-file-card:hover {
  border-color: rgba(129, 140, 248, 0.45);
  box-shadow: 0 8px 26px rgba(99, 102, 241, 0.18);
  transform: translateY(-1.5px);
}

.chat-file-icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.file-ext-pill {
  font-size: 8px;
  font-weight: 800;
  font-family: monospace;
  letter-spacing: 0.5px;
  color: #a5b4fc;
  margin-top: 1px;
}

.chat-file-info-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.chat-file-name {
  font-size: 13px;
  font-weight: 600;
  color: #f1f5f9;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-file-submeta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  margin-top: 2px;
}

.chat-file-size {
  color: #94a3b8;
  font-family: monospace;
}

.chat-file-type-desc {
  padding: 1px 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  font-size: 10px;
  color: #cbd5e1;
}

.chat-file-actions-col {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.chat-card-action-btn.btn-view-text {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.35);
  color: #c7d2fe;
}

.chat-card-action-btn.btn-view-text:hover {
  background: rgba(99, 102, 241, 0.3);
  border-color: rgba(99, 102, 241, 0.6);
  color: #ffffff;
  transform: translateY(-1px);
}

/* ==========================================================================
   11. Prod-Ready Modal Pencereleri (Lightbox, PDF, Text/Code Viewer)
   ========================================================================== */

/* Ortak Modal Arka Planı (Modal Backdrop) */
.cockpit-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalBackdropFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 1. Lightbox Modal */
.cockpit-lightbox-backdrop {
  background: rgba(5, 5, 8, 0.94);
  backdrop-filter: blur(16px);
  flex-direction: column;
  overflow: hidden;
}

.cockpit-lightbox-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: rgba(14, 15, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 10;
}

.cockpit-lightbox-fileinfo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f1f5f9;
  font-size: 13px;
  font-weight: 500;
  min-width: 0;
}

.lightbox-file-icon {
  font-size: 16px;
}

.lightbox-file-name {
  max-width: 340px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lightbox-file-size {
  color: #94a3b8;
  font-family: monospace;
  font-size: 11.5px;
}

.cockpit-lightbox-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lightbox-tool-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #f1f5f9;
  cursor: pointer;
  transition: all 0.15s ease;
}

.lightbox-tool-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.lightbox-zoom-label {
  width: auto;
  padding: 0 10px;
  font-family: monospace;
  font-size: 11.5px;
  font-weight: 600;
}

.lightbox-ctrl-sep {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.15);
  margin: 0 4px;
}

.lightbox-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #4f46e5;
  border: 1px solid #6366f1;
  border-radius: 8px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.4);
}

.lightbox-action-btn:hover {
  background: #4338ca;
  border-color: #818cf8;
  transform: translateY(-1px);
}

.lightbox-close-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.15s ease;
}

.lightbox-close-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.5);
  color: #ef4444;
}

.cockpit-lightbox-viewport {
  position: absolute;
  inset: 56px 0 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: grab;
}

.cockpit-lightbox-stage {
  position: relative;
  max-width: 90vw;
  max-height: 84vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cockpit-lightbox-img {
  max-width: 90vw;
  max-height: 84vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8);
  user-select: none;
  transition: transform 0.12s ease-out;
}

/* 2. PDF Viewer Modal */
.cockpit-pdf-backdrop {
  background: rgba(5, 5, 8, 0.88);
  backdrop-filter: blur(14px);
  padding: 24px;
}

.cockpit-pdf-window {
  width: 92vw;
  max-width: 1180px;
  height: 90vh;
  max-height: 920px;
  background: #12131a;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  box-shadow: 0 32px 72px rgba(0, 0, 0, 0.85), 0 0 32px rgba(239, 68, 68, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalWindowPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.cockpit-pdf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(18, 19, 26, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 12px;
}

.cockpit-pdf-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.pdf-modal-badge {
  padding: 2px 7px;
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.pdf-modal-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #f1f5f9;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 480px;
}

.pdf-modal-size {
  font-size: 11.5px;
  color: #94a3b8;
  font-family: monospace;
}

.cockpit-pdf-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.pdf-modal-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #f1f5f9;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pdf-modal-action-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.pdf-modal-action-btn.pdf-btn-dl {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.pdf-modal-action-btn.pdf-btn-dl:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: rgba(239, 68, 68, 0.6);
  color: #ffffff;
}

.pdf-modal-close-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pdf-modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.5);
  color: #ef4444;
}

.cockpit-pdf-body {
  flex: 1;
  position: relative;
  background: #181920;
  overflow: hidden;
}

.cockpit-pdf-frame {
  width: 100%;
  height: 100%;
  border: none;
  background: #1e1f26;
}

/* 3. Text / Code Viewer Modal */
.cockpit-text-backdrop {
  background: rgba(5, 5, 8, 0.88);
  backdrop-filter: blur(14px);
  padding: 24px;
}

.cockpit-text-window {
  width: 88vw;
  max-width: 980px;
  height: 84vh;
  max-height: 840px;
  background: #12131a;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  box-shadow: 0 32px 72px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalWindowPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.cockpit-text-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(18, 19, 26, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 12px;
}

.cockpit-text-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.text-modal-badge {
  padding: 2px 7px;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #c7d2fe;
  font-size: 10.5px;
  font-weight: 700;
  border-radius: 6px;
  font-family: monospace;
}

.text-modal-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #f1f5f9;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 480px;
}

.text-modal-size {
  font-size: 11.5px;
  color: #94a3b8;
  font-family: monospace;
}

.cockpit-text-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.text-modal-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #f1f5f9;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.text-modal-action-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.text-modal-close-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.15s ease;
}

.text-modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.5);
  color: #ef4444;
}

.cockpit-text-body {
  flex: 1;
  padding: 18px 22px;
  overflow-y: auto;
  background: #0c0d12;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  line-height: 1.6;
  color: #e2e8f0;
}

.text-modal-pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.text-modal-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 100%;
  color: #94a3b8;
  font-size: 13px;
}

.text-modal-error {
  padding: 20px;
  color: #f87171;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  margin: 20px;
}

/* Animasyonlar */
@keyframes modalBackdropFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalWindowPop {
  from { opacity: 0; transform: scale(0.95) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes dropzonePulse {
  0%, 100% { border-color: #818cf8; box-shadow: 0 16px 48px rgba(0, 0, 0, 0.75), 0 0 24px rgba(99, 102, 241, 0.35); }
  50% { border-color: #a855f7; box-shadow: 0 16px 48px rgba(0, 0, 0, 0.75), 0 0 36px rgba(168, 85, 247, 0.5); }
}

@keyframes slideDownIndicator {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Text Selection & Universal Copying Ergonomics
   ========================================================================== */
::selection {
  background: rgba(99, 102, 241, 0.45) !important;
  color: #ffffff !important;
}

::-moz-selection {
  background: rgba(99, 102, 241, 0.45) !important;
  color: #ffffff !important;
}

/* Explicit text selection across all conversation containers & markdown elements */
.cockpit-canvas,
.conversation-scroll-wrapper,
.chat-messages-container,
.chat-message-row,
.agent-content-col,
.user-msg-col,
.message-bubble-body,
.chat-p,
.chat-h1,
.chat-h2,
.chat-h3,
.chat-h4,
.chat-h5,
.chat-blockquote,
.chat-ul,
.chat-ol,
.chat-li,
.chat-table,
.chat-table th,
.chat-table td,
.code-block-card,
.code-block-content,
.code-block-card pre,
.code-block-card code,
.code-inline,
.tool-accordion-body,
.tool-body-pre,
.tool-body-pre code,
.text-modal-pre,
.text-modal-pre code,
.capsule-textarea {
  user-select: text !important;
  -webkit-user-select: text !important;
}

/* Clear text cursor indication */
.message-bubble-body,
.chat-p,
.chat-h1,
.chat-h2,
.chat-h3,
.chat-h4,
.chat-h5,
.chat-blockquote,
.chat-table td,
.code-block-content,
.code-block-card code,
.code-inline,
.tool-body-pre,
.tool-body-pre code,
.text-modal-pre,
.text-modal-pre code {
  cursor: text;
}

/* Prevent accidental text selection on interactive action buttons */
.msg-action-btn,
.btn-code-copy,
.chat-card-action-btn,
.starter-action-card,
.starter-action-chip,
.tool-accordion-header,
.cli-session-badge,
.cockpit-top-bar,
.cockpit-sidebar {
  user-select: none;
  -webkit-user-select: none;
}

/* Copied feedback state for msg action button */
.msg-action-btn.copied {
  color: #34d399 !important;
  background: rgba(16, 185, 129, 0.15) !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
}

/* ==========================================================================
   Lazy Infinite Scroll Spinner (Önceki Mesajlar Yükleniyor)
   ========================================================================== */
.lazy-loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 18px;
  margin: 10px auto 16px auto;
  max-width: 280px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(129, 140, 248, 0.35);
  border-radius: 9999px;
  color: #c7d2fe;
  font-size: 12.5px;
  font-weight: 500;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), 0 0 12px rgba(99, 102, 241, 0.2);
  animation: fadeInSpinner 0.2s ease-out;
  user-select: none;
  pointer-events: none;
  z-index: 10;
}

.lazy-loading-spinner .spinner-icon {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(129, 140, 248, 0.3);
  border-top-color: #818cf8;
  border-radius: 50%;
  animation: spinSpinner 0.75s linear infinite;
  display: inline-block;
  flex-shrink: 0;
}

@keyframes spinSpinner {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes fadeInSpinner {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   10. Native Brain TODO Live Sync & Drawer Module (.founder-todo-drawer)
   Architecture: Zero-Mock Real-Time Mission Control Board (WO-26B)
   Design Standard: Linear × Palantir × Raycast Obsidian Dark Glass UI
   ========================================================================== */

/* Header TODO Toggle Button & Badge */
.header-todo-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.header-todo-toggle-btn:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.35);
  color: #f1f5f9;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
}

.header-todo-toggle-btn.active {
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(129, 140, 248, 0.5);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.25);
}

.header-todo-toggle-btn.has-inprogress {
  border-color: rgba(245, 158, 11, 0.38);
}

.todo-btn-live-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
  animation: todoLivePulseAnim 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes todoLivePulseAnim {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(1.25); }
}

.todo-badge-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 10px;
  min-width: 22px;
  line-height: 1.3;
  transition: all 0.2s ease;
}

.todo-badge-counter.todo-badge-complete {
  background: rgba(16, 185, 129, 0.28);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.6);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.25);
}

/* Slide-over Drawer Panel (480px Executive Mission Control Width) */
.founder-todo-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 480px;
  max-width: 100vw;
  background: rgba(8, 11, 18, 0.97);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-left: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: none;
  display: flex;
  flex-direction: column;
  z-index: 9999;
  transform: translateX(105%);
  will-change: transform, opacity;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, visibility 0.2s;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.founder-todo-drawer.open {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  box-shadow: -16px 0 44px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* Backdrop (Yarı Saydam Karartma) */
.todo-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.todo-drawer-backdrop.open,
.todo-drawer-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Drawer Inner Container */
.todo-drawer-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Drawer Header */
.todo-drawer-header {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(13, 16, 25, 0.85);
  flex-shrink: 0;
}

.todo-drawer-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.todo-drawer-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.todo-header-icon {
  font-size: 15px;
  line-height: 1;
  flex-shrink: 0;
}

.todo-drawer-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #f8fafc;
  margin: 0;
  letter-spacing: -0.015em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.todo-drawer-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #94a3b8;
  flex-wrap: wrap;
}

.todo-session-title-chip {
  font-weight: 500;
  color: #cbd5e1;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.todo-session-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10.5px;
  color: #cbd5e1;
  flex-shrink: 0;
}

.todo-live-dot,
.todo-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

.todo-live-dot.active-pulse {
  background: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
  animation: todoLivePulseAnim 1.4s ease-in-out infinite;
}

.todo-meta-divider {
  color: rgba(255, 255, 255, 0.18);
}

.todo-update-chip,
.todo-mode-chip {
  font-size: 11px;
  color: #94a3b8;
}

.todo-mode-chip.live-sync {
  color: #34d399;
  font-weight: 600;
}

.todo-drawer-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.todo-icon-btn,
.todo-drawer-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 0;
  font-size: 12px;
  font-weight: 500;
  border-radius: 7px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  outline: none;
}

.todo-icon-btn.active {
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(129, 140, 248, 0.45);
  color: #e0e7ff;
}

.todo-icon-btn:hover,
.todo-drawer-action-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
}

#btn-close-todo-drawer,
.todo-icon-btn.close-btn,
.todo-drawer-action-btn.close-btn,
.todo-drawer-action-btn.btn-drawer-close {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  cursor: pointer;
  color: #94a3b8;
}

#btn-close-todo-drawer:hover,
.todo-icon-btn.close-btn:hover,
.todo-drawer-action-btn.close-btn:hover,
.todo-drawer-action-btn.btn-drawer-close:hover {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fecaca;
}

.action-btn-icon.spinning {
  display: inline-block;
  animation: spinTodo 0.75s linear infinite;
}

@keyframes spinTodo {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Section 1: Top Progress & Filter Bar */
.todo-stats-bar {
  padding: 12px 18px 10px 18px;
  background: rgba(11, 14, 22, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.todo-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #94a3b8;
}

.todo-progress-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.todo-progress-label {
  font-weight: 600;
  color: #f1f5f9;
  font-size: 12px;
}

.todo-progress-ratio {
  font-size: 11.5px;
  color: #94a3b8;
}

.todo-progress-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.todo-progress-active-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fcd34d;
}

.todo-progress-percent {
  color: #10b981;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12.5px;
}

/* Segmented Progress Track */
.todo-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  overflow: hidden;
  display: flex;
}

.todo-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #06b6d4);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.35);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.todo-progress-fill-active {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.45);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: todoLivePulseAnim 1.8s ease-in-out infinite;
}

/* Interactive Filter Pills */
.todo-filter-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 1px;
}

.todo-filter-bar::-webkit-scrollbar {
  display: none;
}

.todo-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #94a3b8;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.todo-filter-pill:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #f1f5f9;
  border-color: rgba(255, 255, 255, 0.14);
}

.todo-filter-pill.active {
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(129, 140, 248, 0.5);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

.todo-filter-pill.has-active-work:not(.active) {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.32);
  color: #fde68a;
}

.todo-filter-pill.has-active-work.active {
  background: rgba(245, 158, 11, 0.22);
  border-color: rgba(251, 191, 36, 0.6);
  color: #fffbeb;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.25);
}

.todo-filter-count {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10.5px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
}

/* Section 2: Quick Add Task Bar (#todo-quick-add-form) */
.todo-quick-add-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: rgba(9, 12, 19, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.todo-quick-add-input {
  flex: 1;
  height: 32px;
  padding: 0 11px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #f8fafc;
  font-size: 12px;
  outline: none;
  transition: all 0.15s ease;
}

.todo-quick-add-input::placeholder {
  color: #64748b;
}

.todo-quick-add-input:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

.todo-quick-add-btn {
  height: 32px;
  padding: 0 12px;
  border-radius: 7px;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(129, 140, 248, 0.4);
  color: #e0e7ff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.todo-quick-add-btn:hover {
  background: rgba(99, 102, 241, 0.32);
  border-color: rgba(129, 140, 248, 0.65);
  color: #ffffff;
}

/* Tabs Navigation (Board vs Raw Markdown) */
.todo-tabs-nav {
  padding: 6px 18px;
  display: flex;
  gap: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(11, 13, 19, 0.6);
  flex-shrink: 0;
}

.todo-tab-btn {
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 500;
  border-radius: 5px;
  border: 1px solid transparent;
  background: transparent;
  color: #8892b0;
  cursor: pointer;
  transition: all 0.15s ease;
}

.todo-tab-btn:hover {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.04);
}

.todo-tab-btn.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Drawer Content Body */
.todo-drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Section 3: "🔥 Şu An İcrada" Live Spotlight Card */
.todo-live-spotlight {
  border-radius: 10px;
  padding: 11px 13px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(16, 185, 129, 0.07));
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.32);
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.todo-spotlight-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.todo-spotlight-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fcd34d;
}

.todo-spotlight-count {
  font-size: 11px;
  font-weight: 600;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.18);
  padding: 1px 7px;
  border-radius: 999px;
}

.todo-spotlight-items {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.todo-spotlight-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(10, 14, 23, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.15s ease;
}

.todo-spotlight-item:hover {
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(15, 20, 32, 0.9);
}

.todo-spotlight-item-top {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: #f8fafc;
}

.todo-spotlight-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.todo-spotlight-step-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fde68a;
}

/* Section 4: Hierarchical Work-Order Cards (.todo-wo-card) */
.todo-wo-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.todo-wo-card {
  border-radius: 10px;
  background: rgba(16, 20, 31, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.todo-wo-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.todo-wo-card.in-progress {
  background: rgba(19, 23, 36, 0.92);
  border-color: rgba(245, 158, 11, 0.34);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3), inset 2px 0 0 #f59e0b;
}

.todo-wo-card.completed {
  background: rgba(13, 17, 26, 0.55);
  border-color: rgba(16, 185, 129, 0.16);
}

.todo-wo-card.pending {
  background: rgba(16, 20, 31, 0.82);
  border-color: rgba(99, 102, 241, 0.22);
}

.todo-wo-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  cursor: pointer;
  user-select: none;
  transition: background 0.14s ease;
}

.todo-wo-header:hover {
  background: rgba(255, 255, 255, 0.03);
}

.todo-wo-header-left {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
  flex: 1;
}

/* Interactive Toggle Checkbox Button */
.todo-toggle-check-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: transparent;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 1px;
  padding: 0;
  transition: all 0.15s ease;
}

.todo-toggle-check-btn:hover {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.14);
  transform: scale(1.06);
}

.todo-toggle-check-btn.completed {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.55);
  color: #34d399;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.2);
}

.todo-toggle-check-btn.in_progress,
.todo-toggle-check-btn.in-progress {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.5);
  color: #fbbf24;
}

.todo-wo-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.todo-wo-title-line {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.todo-wo-code-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(99, 102, 241, 0.16);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #a5b4fc;
  flex-shrink: 0;
}

.todo-wo-code-badge.in_progress,
.todo-wo-code-badge.in-progress {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.42);
  color: #fcd34d;
}

.todo-wo-code-badge.completed {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.32);
  color: #6ee7b7;
}

.todo-wo-headline {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.42;
  color: #f8fafc;
  word-break: break-word;
}

.todo-wo-card.completed .todo-wo-headline {
  color: #94a3b8;
}

.todo-wo-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-top: 1px;
}

.todo-wo-step-pill {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  white-space: nowrap;
}

.todo-wo-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}

.todo-wo-status-badge.in_progress,
.todo-wo-status-badge.in-progress {
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.36);
  color: #fcd34d;
}

.todo-wo-status-badge.completed {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: #34d399;
}

.todo-wo-status-badge.pending {
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.24);
  color: #cbd5e1;
}

.todo-wo-chevron {
  font-size: 11px;
  color: #64748b;
  transition: transform 0.18s ease, color 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}

.todo-wo-chevron.open {
  transform: rotate(180deg);
  color: #cbd5e1;
}

/* Card Body & Subtasks */
.todo-wo-body {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(9, 12, 19, 0.65);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.todo-subtask-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.todo-subtask-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.14s ease;
}

.todo-subtask-row:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.11);
}

.todo-subtask-row.in_progress,
.todo-subtask-row.in-progress {
  background: rgba(245, 158, 11, 0.06);
  border-color: rgba(245, 158, 11, 0.28);
}

.todo-subtask-row.completed {
  background: rgba(16, 185, 129, 0.025);
  border-color: rgba(16, 185, 129, 0.12);
}

.todo-subtask-main {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  flex: 1;
}

.todo-subtask-top {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.todo-step-code-badge {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
}

.todo-step-code-badge.in_progress,
.todo-step-code-badge.in-progress {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fcd34d;
}

.todo-step-code-badge.completed {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

.todo-step-role-tag {
  font-size: 10.5px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #7dd3fc;
}

.todo-step-title {
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.42;
  color: #f1f5f9;
  word-break: break-word;
}

.todo-subtask-row.completed .todo-step-title {
  color: #94a3b8;
}

/* Module Chips */
.todo-module-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 1px;
}

.todo-module-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 6px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10.5px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #cbd5e1;
}

/* Expandable Step Details (<details class="todo-step-details">) */
.todo-step-details {
  margin-top: 2px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.todo-step-details-summary {
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.todo-step-details-summary::-webkit-details-marker {
  display: none;
}

.todo-step-details-summary:hover {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.03);
}

.todo-step-details-list {
  margin: 0;
  padding: 6px 10px 8px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11.5px;
  line-height: 1.45;
  color: #cbd5e1;
}

.todo-step-details-list li code,
.todo-wo-headline code,
.todo-step-title code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10.5px;
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 4px;
  border-radius: 3px;
  color: #e2e8f0;
}

/* Section 5: Dedicated Subagents Section (.todo-subagents-section) */
.todo-subagents-section {
  margin-top: 12px;
  border-radius: 10px;
  background: rgba(14, 18, 28, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.todo-subagents-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  cursor: pointer;
  user-select: none;
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.02);
}

.todo-subagents-header:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #f8fafc;
}

.todo-subagents-grid {
  padding: 8px 10px 10px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.todo-subagent-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
}

.todo-subagent-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.todo-subagent-role {
  font-weight: 500;
  color: #e2e8f0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Legacy Compat Classes for test_live_brain_todo_ui.py */
.todo-checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.todo-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.todo-item.completed {
  opacity: 0.72;
  background: rgba(16, 185, 129, 0.02);
  border-color: rgba(16, 185, 129, 0.08);
}

.todo-item.pending {
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(255, 255, 255, 0.08);
}

.todo-badge-done {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  font-size: 10px;
  border: 1px solid rgba(16, 185, 129, 0.45);
}

.todo-badge-pending {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.todo-phase-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  font-size: 9.5px;
  font-weight: 700;
  border-radius: 4px;
  background: rgba(99, 102, 241, 0.14);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.28);
}

.todo-loading-state,
.todo-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 16px;
  color: #94a3b8;
  gap: 10px;
  flex: 1;
}

.todo-empty-icon {
  font-size: 28px;
}

.todo-empty-state h4 {
  font-size: 13.5px;
  font-weight: 600;
  color: #f1f5f9;
  margin: 0;
}

.todo-empty-state p {
  font-size: 12px;
  color: #94a3b8;
  margin: 0;
  max-width: 320px;
  line-height: 1.5;
}

.todo-empty-hint {
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  font-size: 11.5px;
  color: #cbd5e1;
}

.todo-spinner {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(99, 102, 241, 0.2);
  border-top-color: #6366f1;
  border-radius: 50%;
  animation: spinTodo 0.75s linear infinite;
}

/* Raw Markdown Pre */
.todo-raw-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11.5px;
  line-height: 1.55;
  color: #cbd5e1;
  background: #090a10;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow-x: auto;
  white-space: pre-wrap;
  margin: 0;
}

/* Drawer Footer */
.todo-drawer-footer {
  padding: 10px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(10, 11, 17, 0.9);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-shrink: 0;
  font-size: 11px;
}

.todo-file-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  color: #94a3b8;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.15s ease;
}

.todo-file-indicator:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #f1f5f9;
}

.todo-zero-mock-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #10b981;
  font-weight: 600;
  white-space: nowrap;
}

.todo-zero-mock-badge .live-dot {
  color: #10b981;
  font-size: 8px;
}

/* Mobil Uyumluluk (< 520px) */
@media (max-width: 520px) {
  .founder-todo-drawer {
    width: 100vw;
    max-width: 100vw;
    border-left: none;
  }
}

/* ==========================================================================
   11. FTS5 Tam Metin Arama Modalı (.cockpit-search-window) & GPU Acceleration
   Design Standard: Linear / Raycast Command Palette Standardı
   ========================================================================== */
.cockpit-search-backdrop {
  z-index: 1200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10vh;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: searchBackdropFade 0.15s ease-out;
}

@keyframes searchBackdropFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.cockpit-search-window {
  width: 620px;
  max-width: 92vw;
  max-height: 75vh;
  background: #0f1016;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  animation: searchWindowScale 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes searchWindowScale {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.cockpit-search-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.search-input-icon {
  color: #818cf8;
  flex-shrink: 0;
}

.cockpit-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #f1f5f9;
  font-size: 14px;
  font-family: inherit;
  font-weight: 500;
}

.cockpit-search-input::placeholder {
  color: #64748b;
}

.cockpit-search-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cockpit-search-kbd {
  font-size: 10px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  padding: 2px 6px;
  color: #94a3b8;
  font-family: ui-monospace, monospace;
}

.cockpit-search-close-btn {
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  font-size: 14px;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color 0.12s ease;
}

.cockpit-search-close-btn:hover {
  color: #f1f5f9;
}

.cockpit-search-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  max-height: calc(75vh - 65px);
}

.search-state-message {
  padding: 32px 20px;
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.search-initial-icon {
  font-size: 28px;
  opacity: 0.6;
}

.search-hint-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.search-hint-tag {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.14s ease;
}

.search-hint-tag:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.5);
  color: #fff;
}

.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.search-results-meta {
  font-size: 11px;
  color: #64748b;
  padding: 4px 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.search-result-item {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.14s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.search-result-item:hover,
.search-result-item:focus {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(99, 102, 241, 0.35);
  transform: translateY(-1px);
  outline: none;
}

.search-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.search-item-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.search-cli-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.search-role-badge {
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  flex-shrink: 0;
}

.search-item-session-title {
  font-size: 12px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-item-time {
  font-size: 10px;
  color: #64748b;
  flex-shrink: 0;
  font-family: ui-monospace, monospace;
}

.search-item-snippet {
  font-size: 12.5px;
  color: #cbd5e1;
  line-height: 1.5;
  word-break: break-word;
}

.search-term-highlight {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.18);
  padding: 0 2px;
  border-radius: 2px;
  font-weight: 600;
}

.msg-highlight-pulse {
  animation: highlightPulse 2.5s ease-out;
}

@keyframes highlightPulse {
  0% { box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.8), 0 0 18px rgba(99, 102, 241, 0.5); }
  50% { box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.4), 0 0 10px rgba(99, 102, 241, 0.2); }
  100% { box-shadow: none; }
}

/* GPU Hardware Acceleration for Header & Accordions (Linear / Cursor Standard) */
.cockpit-top-bar,
.header-action-btn,
.cockpit-engine-pill,
.header-dropdown-menu,
.tool-disclosure-wrapper,
.tool-accordion-card,
.live-status-card {
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.header-dropdown-menu {
  will-change: opacity, transform;
  transform-origin: top right;
  transition: opacity 0.16s cubic-bezier(0.16, 1, 0.3, 1), transform 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}

.tool-disclosure-drawer,
.live-status-expanded,
.tool-accordion-body {
  will-change: max-height, opacity;
  transition: max-height 0.22s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.18s ease;
}

/* ==========================================================================
   Full-Duplex Dual-CLI Live Integration: Thinking Card & Swarm Stepper Styles
   ========================================================================== */
.thinking-accordion-card {
  border-color: rgba(168, 85, 247, 0.22) !important;
  background: rgba(168, 85, 247, 0.04) !important;
  transition: opacity 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.thinking-accordion-card.collapsed:not(.running) {
  opacity: 0.86;
}

.thinking-accordion-card.collapsed:not(.running):hover,
.thinking-accordion-card:hover {
  opacity: 1;
  border-color: rgba(168, 85, 247, 0.4) !important;
  background: rgba(168, 85, 247, 0.08) !important;
}

.thinking-accordion-card.open,
.thinking-accordion-card:not(.collapsed) {
  opacity: 1;
  background: rgba(15, 10, 28, 0.95) !important;
  border-color: rgba(168, 85, 247, 0.5) !important;
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.15) !important;
}

/* Açık / Kapalı Geçiş Garantisi (.thinking-accordion-card) */
.thinking-accordion-card.open .live-status-expanded,
.thinking-accordion-card:not(.collapsed) .live-status-expanded,
.thinking-accordion-card.open .thinking-body,
.thinking-accordion-card:not(.collapsed) .thinking-body,
.thinking-accordion-card.open .tool-accordion-body,
.thinking-accordion-card:not(.collapsed) .tool-accordion-body {
  display: block;
  max-height: 360px !important;
  opacity: 1 !important;
  overflow-y: auto !important;
  pointer-events: auto !important;
}

.thinking-accordion-card.collapsed .live-status-expanded,
.thinking-accordion-card.collapsed .thinking-body,
.thinking-accordion-card.collapsed .tool-accordion-body {
  max-height: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin: 0 !important;
  border: none !important;
  pointer-events: none !important;
}

.thinking-accordion-card .thinking-label {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.thinking-accordion-card:not(.running) .thinking-pill-icon,
.thinking-accordion-card:not(.running) .thinking-dot,
.thinking-accordion-card:not(.running) .tool-pill-dot {
  animation: none !important;
}

.thinking-accordion-card.running .thinking-pill-icon,
.thinking-accordion-card.running .thinking-dot,
.thinking-accordion-card.running .tool-pill-dot {
  animation: pulsePurple 1.2s infinite ease-in-out !important;
}

@keyframes pulsePurple {
  0% { transform: scale(0.96); opacity: 0.65; }
  50% { transform: scale(1.04); opacity: 1; filter: drop-shadow(0 0 6px rgba(192, 132, 252, 0.8)); }
  100% { transform: scale(0.96); opacity: 0.65; }
}

/* Okunaklı Bilişsel Düşünce Tipografisi & Yapısal Düşünce Gövdesi (WO-9) */
.thinking-structured-body,
.thinking-body-pre {
  border-left: 2px solid rgba(168, 85, 247, 0.4);
  padding: 10px 14px;
  margin: 4px 0 6px 8px;
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, 'Inter', sans-serif);
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(226, 232, 240, 0.86);
  background: rgba(15, 23, 42, 0.45);
  border-radius: 0 8px 8px 0;
  max-height: 340px;
  overflow-y: auto;
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.thinking-body-pre code {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.thinking-step-item {
  margin-bottom: 6px;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.thinking-step-item:last-child {
  margin-bottom: 0;
}

.thinking-step-bullet {
  color: #c084fc;
  font-weight: 600;
  margin-right: 6px;
  user-select: none;
}

.thinking-headline-preview {
  color: rgba(196, 181, 253, 0.85);
  font-weight: 400;
  font-size: 11.5px;
  font-style: italic;
  margin-left: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 420px;
}

.thinking-meta-badge {
  font-size: 10.5px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.14);
  color: #c4b5fd;
  border: 1px solid rgba(168, 85, 247, 0.25);
  margin-left: auto;
  flex-shrink: 0;
}

/* Süreç Kümesi & Nihai Yanıt Hiyerarşisi (WO-10) */
.agent-process-telemetry-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  margin-bottom: 10px;
}

.agent-process-telemetry-stack + .message-markdown-content,
.message-bubble-body .message-markdown-content {
  margin-top: 4px;
}

/* ==========================================================================
   SUBAGENTS LIVE PROGRESS DECK — Obsidian Glassmorphism & GPU Acceleration
   Linear / Raycast / Cursor Standard
   ========================================================================== */

/* 1. Deck Container */
.subagents-live-progress-deck {
  width: 100%;
  margin: 10px 0 12px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  contain: layout paint;
  will-change: transform, opacity;
  animation: deckSlideIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes deckSlideIn {
  0% { transform: translateY(6px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* Yüzen kapsül üstü güverte dock'u */
.subagents-capsule-deck-dock {
  width: 100%;
  max-width: 840px;
  pointer-events: auto;
  box-sizing: border-box;
  margin-bottom: 8px;
  will-change: transform, opacity;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.subagents-live-progress-deck.is-floating-deck {
  margin: 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(13, 16, 26, 0.92);
  border: 1px solid rgba(99, 102, 241, 0.28);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.75), 0 0 24px rgba(99, 102, 241, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: floatingDeckSlideUp 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes floatingDeckSlideUp {
  0% { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* 2. Deck Header */
.subagents-deck-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 2px 4px;
  user-select: none;
}

.subagents-deck-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #818cf8;
}

.subagents-deck-icon {
  color: #818cf8;
  filter: drop-shadow(0 0 6px rgba(129, 140, 248, 0.6));
}

.subagents-deck-count {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #c7d2fe;
}

.subagents-deck-count.all-done {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.32);
  color: #6ee7b7;
}

.subagents-deck-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.subagents-deck-ping-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6366f1;
}

.subagents-deck-ping-dot.pulsing {
  animation: deckPingDot 1.5s infinite ease-in-out;
}

@keyframes deckPingDot {
  0% { transform: scale(0.85); opacity: 0.5; box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.8); }
  50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 0 5px rgba(99, 102, 241, 0); }
  100% { transform: scale(0.85); opacity: 0.5; box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

.subagents-deck-sla {
  font-size: 10px;
  color: #94a3b8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* 3. Deck Grid */
.subagents-deck-grid {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

/* 4. Obsidian Glassmorphism Progress Card */
.subagent-progress-card {
  position: relative;
  overflow: hidden;
  background: rgba(18, 22, 34, 0.85);
  border: 1px solid rgba(99, 102, 241, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 11px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  will-change: transform, opacity;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.18s ease,
              box-shadow 0.18s ease;
}

.subagent-progress-card:hover {
  border-color: rgba(99, 102, 241, 0.45);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.55), 0 0 14px rgba(99, 102, 241, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.subagent-progress-card.is-running {
  border-color: rgba(99, 102, 241, 0.32);
}

.subagent-progress-card.is-inspecting {
  border-color: rgba(59, 130, 246, 0.32);
}

/* Tamamlanan Kart — Zarif Yeşil Onay & Sakin Obsidian */
.subagent-progress-card.is-completed {
  background: rgba(14, 24, 28, 0.82);
  border-color: rgba(16, 185, 129, 0.22);
}

.subagent-progress-card.is-completed:hover {
  border-color: rgba(16, 185, 129, 0.42);
  box-shadow: 0 10px 24px -4px rgba(0, 0, 0, 0.5), 0 0 12px rgba(16, 185, 129, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

/* 5. Card Header */
.subagent-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s ease;
}

.subagent-card-header:hover {
  background-color: rgba(255, 255, 255, 0.025);
}

.subagent-card-role-col {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
  margin-right: 8px;
}

.subagent-card-icon {
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 5px rgba(99, 102, 241, 0.5));
}

.subagent-card-role {
  font-size: 12.5px;
  font-weight: 600;
  color: #f8fafc;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.subagent-card-badge-col {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* 6. Live Pulse Status Badges */
.subagent-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5.5px;
  padding: 2.5px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.02em;
}

.subagent-status-badge.status-running {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.subagent-status-badge.status-inspecting {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #60a5fa;
}

.subagent-status-badge.status-completed {
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #10b981;
}

.subagent-status-badge.status-errored {
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
}

.subagent-badge-pulse-dot {
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  display: inline-block;
  will-change: transform, box-shadow;
}

.status-running .subagent-badge-pulse-dot {
  background: #10b981;
  animation: liveAgentPulseGreen 1.6s infinite ease-in-out;
}

.status-inspecting .subagent-badge-pulse-dot {
  background: #3b82f6;
  animation: liveAgentPulseBlue 1.6s infinite ease-in-out;
}

@keyframes liveAgentPulseGreen {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  50% { transform: scale(1.18); box-shadow: 0 0 0 5px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes liveAgentPulseBlue {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); }
  50% { transform: scale(1.18); box-shadow: 0 0 0 5px rgba(59, 130, 246, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

.subagent-check-icon {
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1;
  color: #10b981;
  margin-right: 1px;
}

/* 7. Collapsible Toggle Button */
.subagent-card-toggle-btn {
  background: none;
  border: none;
  padding: 3px;
  color: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.subagent-card-toggle-btn:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.06);
}

.subagent-chevron-icon {
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.subagent-progress-card.collapsed .subagent-chevron-icon {
  transform: rotate(-90deg);
}

/* 8. Anlık Eylem Satırı & Card Body */
.subagent-card-body {
  overflow-x: hidden;
  overflow-y: auto;
  max-height: 260px;
  opacity: 1;
  will-change: max-height, opacity;
  transition: max-height 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.18s ease;
}

.subagent-progress-card.collapsed .subagent-card-body {
  max-height: 0;
  opacity: 0;
}

.subagent-card-action-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 12px 8px 12px;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(10, 14, 23, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.subagent-action-prefix {
  color: #818cf8;
  font-family: monospace;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1;
}

.subagent-action-text {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11.5px;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

/* 9. Minimalist İnce İlerleme Barı (3px Glow & Shimmer) */
.subagent-progress-bar-wrap {
  position: relative;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.subagent-progress-bar-fill {
  height: 3px;
  width: 100%;
}

.subagent-progress-bar-fill.running,
.subagent-progress-bar-fill.inspecting {
  background: linear-gradient(90deg, #6366f1 0%, #06b6d4 50%, #6366f1 100%);
  background-size: 200% 100%;
  animation: subagentProgressShimmer 2.2s linear infinite;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.7);
}

.subagent-progress-bar-fill.completed {
  background: linear-gradient(90deg, #10b981, #059669);
  animation: none;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.subagent-progress-bar-fill.errored {
  background: #ef4444;
  animation: none;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

@keyframes subagentProgressShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Legacy Geriye Dönük Uyumluluk */
.subagents-status-container {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.subagent-live-chip {
  transition: all 0.15s ease;
}

.subagent-live-chip:hover {
  background: rgba(99, 102, 241, 0.22) !important;
  border-color: rgba(99, 102, 241, 0.45) !important;
}

/* ==========================================================================
   SESSION LIST & LIVE ENGINE TELEMETRY (RAYCAST / LINEAR / VERCEL DARK CYBER)
   ========================================================================== */

@keyframes pulse-live-neon {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.7);
    opacity: 0.9;
  }
  70% {
    transform: scale(1.15);
    box-shadow: 0 0 8px 3px rgba(6, 182, 212, 0);
    opacity: 1;
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(6, 182, 212, 0);
    opacity: 0.9;
  }
}

.session-live-pulse-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #06b6d4;
  margin-right: 5px;
  vertical-align: middle;
  flex-shrink: 0;
  box-shadow: 0 0 6px #06b6d4;
  animation: pulse-live-neon 1.8s infinite cubic-bezier(0.45, 0, 0.55, 1);
}

.tab-live-pulse {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  margin-right: 4px;
  vertical-align: middle;
  box-shadow: 0 0 5px #10b981;
  animation: pulse-live-neon 2s infinite ease-in-out;
}

.session-project-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-todo-pill {
  display: inline-flex;
  align-items: center;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.session-todo-pill.done {
  color: #34d399;
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.25);
}

.badge-claude-anthropic {
  background: rgba(168, 85, 247, 0.16);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

/* ==========================================================================
   12. Session CRUD UI: Inline Rename, Confirmation Modals & Toast Engine
   Linear / Raycast Dark Cyber Architecture Standard
   ========================================================================== */

/* Inline Session Title Rename Input */
.session-rename-input {
  width: 100%;
  max-width: 220px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid #6366f1;
  border-radius: 4px;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 500;
  padding: 1px 6px;
  outline: none;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
  line-height: 1.4;
}

.session-rename-input:focus {
  border-color: #818cf8;
  box-shadow: 0 0 0 2px rgba(129, 140, 248, 0.35);
}

.session-rename-input.shake-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.35) !important;
  animation: sessionRenameShake 0.35s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes sessionRenameShake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}

/* Clickable Pin Indicator */
.session-pin-indicator {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px;
  border-radius: 3px;
  transition: color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.session-pin-indicator:hover {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  transform: scale(1.1);
}

/* Glassmorphism Confirmation Modal (Zero Native Confirm) */
.cockpit-confirm-backdrop {
  background: rgba(5, 7, 12, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100000;
}

.cockpit-confirm-card {
  width: 90%;
  max-width: 420px;
  background: #0f131d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 22px 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  animation: confirmCardPop 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes confirmCardPop {
  from { opacity: 0; transform: scale(0.95) translateY(6px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.confirm-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.confirm-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.confirm-card-icon.danger {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.confirm-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #f8fafc;
}

.confirm-card-body {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 20px;
  word-break: break-word;
}

.confirm-card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.btn-confirm-cancel {
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-confirm-cancel:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.btn-confirm-danger {
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  background: #dc2626;
  border: 1px solid #ef4444;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
}

.btn-confirm-danger:hover {
  background: #ef4444;
}

.btn-confirm-primary {
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  background: #4f46e5;
  border: 1px solid #6366f1;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.4);
}

.btn-confirm-primary:hover {
  background: #6366f1;
}

/* Native Cockpit Toast Container & Badges */
.cockpit-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100001;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.cockpit-toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 19, 29, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 9px 15px;
  font-size: 12.5px;
  color: #f8fafc;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: cockpitToastSlideIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.cockpit-toast.fade-out {
  opacity: 0;
  transform: translateY(6px);
}

.cockpit-toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cockpit-toast.toast-success .cockpit-toast-icon {
  color: #34d399;
}

.cockpit-toast.toast-error .cockpit-toast-icon {
  color: #f87171;
}

.cockpit-toast.toast-info .cockpit-toast-icon {
  color: #38bdf8;
}

@keyframes cockpitToastSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Korumalı / Devre Dışı Bırakılmış Menü Elemanı */
.dropdown-item.is-disabled,
.dropdown-item:disabled {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
  color: #64748b !important;
  background: transparent !important;
  pointer-events: auto !important; /* Tooltip ve uyarı tıklamasının çalışması için */
}

.dropdown-item.is-disabled svg,
.dropdown-item:disabled svg {
  stroke: #64748b !important;
}

/* ==========================================================================
   Model Hot-Swap, Raycast/Linear Popover & In-Chat Transition Badge Styles
   ========================================================================== */

/* In-Chat System Transition Event Pill */
.chat-message-row.system-transition-row {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 14px 0 !important;
  width: 100% !important;
  padding: 0 16px !important;
  box-sizing: border-box !important;
}

.system-transition-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  border-radius: 9999px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.22);
  color: #c7d2fe;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.2px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  animation: transitionPillFade 0.2s ease-out;
}

@keyframes transitionPillFade {
  from { opacity: 0; transform: translateY(4px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.system-transition-pill .transition-pill-icon {
  color: #fbbf24;
  font-size: 11px;
}

.system-transition-pill .transition-pill-time {
  color: rgba(199, 210, 254, 0.45);
  font-size: 10px;
  margin-left: 4px;
}

/* Raycast / Linear Popover Provider Tabs */
.popover-provider-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  padding: 2px 4px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
}

.popover-tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.12s ease;
  white-space: nowrap;
}

.popover-tab-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #f1f5f9;
}

.popover-tab-btn.active {
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(99, 102, 241, 0.4);
  color: #e0e7ff;
}

/* Popover Quick Search Input */
.popover-search-wrap {
  padding: 4px 4px 6px;
  flex-shrink: 0;
}

.popover-search-input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 5px 8px;
  color: #f8fafc;
  font-size: 11px;
  outline: none;
  transition: border-color 0.12s ease;
}

.popover-search-input:focus {
  border-color: rgba(99, 102, 241, 0.6);
  background: rgba(15, 23, 42, 0.9);
}

.popover-search-input::placeholder {
  color: #64748b;
  font-size: 10.5px;
}

/* Effort Level Pills in Popover */
.popover-effort-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
}

.popover-effort-pill {
  padding: 1.5px 5px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.1s ease;
}

.popover-effort-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.popover-effort-pill.active {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.5);
  color: #fbbf24;
}

/* Sidebar Effort Selector in New Chat Modal/Section */
.sidebar-effort-picker {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
}

.sidebar-effort-btn {
  flex: 1;
  padding: 4px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  text-align: center;
  transition: all 0.12s ease;
}

.sidebar-effort-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
}

.sidebar-effort-btn.active {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.45);
  color: #e0e7ff;
}

/* ==========================================================================
   Non-Stacking Transient Model Switch Toast & Transition Row Suppression
   ========================================================================== */
.chat-message-row.system-transition-row,
.system-transition-row {
  display: none !important;
}

.cockpit-model-toast {
  position: fixed;
  top: 64px;
  right: 24px;
  z-index: 10000;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(99, 102, 241, 0.45);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55), 0 0 16px rgba(99, 102, 241, 0.22);
  color: #f8fafc;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  pointer-events: none;
  user-select: none;
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 0.26s cubic-bezier(0.16, 1, 0.3, 1), transform 0.26s cubic-bezier(0.16, 1, 0.3, 1);
  animation: cockpit-model-toast-in 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.cockpit-model-toast.fade-out {
  opacity: 0;
  transform: translateY(-8px) scale(0.97);
}

@keyframes cockpit-model-toast-in {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ==========================================================================
   WO-A1 & WO-A2: Zero-CLS Single Collapsible Subagent Swarm Deck & TODO Pinning
   ========================================================================== */
#subagents-capsule-deck-dock,
.subagents-live-progress-deck.is-floating-deck {
  display: none !important;
}

.agent-process-telemetry-stack,
.subagents-live-progress-deck,
.subagent-swarm-deck,
.subagent-progress-card,
.subagent-card-header,
.subagent-card-body {
  animation: none !important;
}

.subagents-live-progress-deck .subagents-deck-header {
  cursor: pointer;
  user-select: none;
}

.subagents-live-progress-deck.collapsed .subagents-deck-grid {
  display: none !important;
}

.subagents-deck-toggle-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  cursor: pointer;
  margin-left: 6px;
}

.subagents-deck-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
}

.subagent-wo-todo-box {
  margin-top: 6px;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(99, 102, 241, 0.2);
  font-size: 11px;
  color: #cbd5e1;
}

.subagent-wo-todo-title {
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #a5b4fc;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.subagent-wo-todo-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.subagent-wo-todo-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.35;
}

.subagent-wo-todo-item.done {
  color: #86efac;
}

.subagent-wo-todo-item.running {
  color: #fde047;
}

/* ==========================================================================
   P100 V4 — COGNITIVE IA, MINI TOOL BADGES, SUBAGENT MARKDOWN & FILE MODAL
   ========================================================================== */

/* 1. Unified Process Telemetry Stack (Thinking + Stepper + Subagents) */
.agent-process-telemetry-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.42);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.agent-process-telemetry-stack:empty {
  display: none !important;
}

/* 2. Mini Tool Badges inside Collapsed Stepper Header (WO-F2.2) */
.stepper-mini-tools-strip {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-left: 6px;
}

.stepper-mini-tool-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 10.5px;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  background: rgba(30, 41, 59, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #cbd5e1;
  line-height: 1.3;
  white-space: nowrap;
}

.stepper-mini-tool-chip.running {
  border-color: rgba(250, 204, 21, 0.45);
  color: #fef08a;
  background: rgba(113, 63, 18, 0.35);
}

.stepper-mini-tool-chip.error {
  border-color: rgba(248, 113, 113, 0.45);
  color: #fecaca;
  background: rgba(127, 29, 29, 0.35);
}

.stepper-mini-tool-more {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 600;
  padding: 0 3px;
}

/* 3. Structured Subagent Report Cards & Role Badges (WO-F4) */
.subagent-verified-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  margin-left: 6px;
  flex-shrink: 0;
}

.subagent-id-chip {
  display: inline-flex;
  align-items: center;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  background: rgba(99, 102, 241, 0.14);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.28);
  margin-right: 4px;
}

.subagent-report-content-body.subagent-report-markdown {
  padding: 12px 14px;
  max-height: 540px;
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.55;
  color: #e2e8f0;
  background: rgba(9, 13, 24, 0.75);
  border-radius: 0 0 8px 8px;
}

/* 4. Ordered List Continuity & Nested Unordered Lists (UI-04) */
.message-markdown-content ol.md-list-ol {
  list-style-type: decimal;
  padding-left: 22px;
  margin: 8px 0;
}

.message-markdown-content ul.md-list-ul,
.message-markdown-content ul.md-nested-ul {
  list-style-type: disc;
  padding-left: 20px;
  margin: 6px 0;
}

.message-markdown-content ol.md-list-ol > li {
  margin-bottom: 6px;
}

/* 5. Native Interactive File & Conversation Chips (WO-F5.1) */
.native-file-chip,
.native-conv-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  margin: 1px 2px;
  border-radius: 6px;
  font-size: 12px;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 500;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #93c5fd;
  cursor: pointer;
  transition: all 0.15s ease;
  vertical-align: baseline;
  line-height: 1.35;
}

.native-file-chip:hover,
.native-conv-chip:hover {
  background: rgba(59, 130, 246, 0.22);
  border-color: rgba(96, 165, 250, 0.65);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.native-chip-icon {
  font-size: 11px;
  line-height: 1;
}

.native-chip-line {
  font-size: 10.5px;
  padding: 0 4px;
  border-radius: 3px;
  background: rgba(99, 102, 241, 0.25);
  color: #c7d2fe;
}

/* 6. Header Plan / Rapor Artifacts Quick-Action Button (WO-F5.2) */
.header-artifacts-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  background: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(99, 102, 241, 0.38);
  color: #c7d2fe;
  cursor: pointer;
  transition: all 0.15s ease;
}

.header-artifacts-btn:hover {
  background: rgba(99, 102, 241, 0.28);
  border-color: rgba(129, 140, 248, 0.65);
  color: #ffffff;
}

.artifacts-badge-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(99, 102, 241, 0.45);
  color: #ffffff;
}

/* 7. In-App File & Plan Preview Modal (WO-F5.3) */
.cockpit-file-preview-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(2, 6, 23, 0.76);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.cockpit-file-preview-window {
  width: min(1040px, 94vw);
  max-height: 88vh;
  background: #0b1120;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.file-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  gap: 12px;
}

.file-preview-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.file-preview-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #f8fafc;
  font-family: 'JetBrains Mono', monospace;
}

.file-preview-line-chip {
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.file-preview-path-sub {
  font-size: 11px;
  color: #64748b;
  font-family: 'JetBrains Mono', monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 460px;
}

.file-preview-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.file-preview-btn {
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #e2e8f0;
  cursor: pointer;
}

.file-preview-btn:hover {
  background: rgba(51, 65, 85, 0.95);
  color: #ffffff;
}

.file-preview-btn.close-btn {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.file-preview-artifacts-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(15, 23, 42, 0.65);
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  overflow-x: auto;
}

.artifacts-bar-label {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  margin-right: 4px;
  white-space: nowrap;
}

.artifact-tab-pill {
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11.5px;
  font-family: 'JetBrains Mono', monospace;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
  cursor: pointer;
  white-space: nowrap;
}

.artifact-tab-pill.active,
.artifact-tab-pill:hover {
  background: rgba(99, 102, 241, 0.25);
  border-color: rgba(129, 140, 248, 0.6);
  color: #ffffff;
}

.file-preview-body {
  padding: 18px 20px;
  overflow-y: auto;
  flex: 1;
  color: #e2e8f0;
  font-size: 13.5px;
  line-height: 1.6;
}

.file-preview-code-pre {
  margin: 0;
  padding: 14px;
  border-radius: 8px;
  background: #060a12;
  border: 1px solid rgba(148, 163, 184, 0.16);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.5;
  overflow-x: auto;
  color: #e2e8f0;
}

/* ==========================================================================
   GAIAI Multi-Tenant Auth Portal, Profile Switcher & RBAC Permissions Matrix
   ========================================================================== */

.gaiai-auth-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99980;
  background: rgba(5, 7, 13, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: gaiaiFadeIn 0.16s ease-out;
}

@keyframes gaiaiFadeIn {
  from { opacity: 0; transform: scale(0.985); }
  to { opacity: 1; transform: scale(1); }
}

.gaiai-profile-menu-card {
  width: 100%;
  max-width: 580px;
  background: #0b0c0e;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  color: #f7f8f8;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.gaiai-profile-menu-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  background: #08090a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.gaiai-profile-active-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gaiai-profile-avatar {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #111316;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gaiai-profile-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gaiai-profile-email-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.gaiai-profile-email {
  font-size: 14px;
  font-weight: 600;
  color: #f7f8f8;
  letter-spacing: -0.01em;
}

.gaiai-role-pill {
  font-size: 10.5px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 5px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.05);
  color: #d0d6e0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.gaiai-oauth-verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 5px;
  background: rgba(16, 185, 129, 0.08);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.24);
}

.gaiai-oauth-verified-pill .oauth-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

.gaiai-profile-sub {
  font-size: 12px;
  color: #8a8f98;
  line-height: 1.4;
}

.gaiai-modal-close-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #8a8f98;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.gaiai-modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #f7f8f8;
}

.gaiai-profile-menu-body {
  padding: 18px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gaiai-menu-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gaiai-menu-section-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8a8f98;
}

.gaiai-linear-oauth-box {
  background: #101216;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px 14px;
}

.gaiai-linear-oauth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.gaiai-linear-oauth-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 220px;
}

.gaiai-linear-oauth-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #f7f8f8;
}

.gaiai-linear-oauth-desc {
  font-size: 11.5px;
  color: #8a8f98;
  line-height: 1.4;
}

.gaiai-linear-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 6px;
  background: #f7f8f8;
  border: 1px solid #ffffff;
  color: #08090a;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.gaiai-linear-btn-secondary:hover {
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(255, 255, 255, 0.14);
}

.gaiai-profile-switch-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gaiai-profile-switch-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 8px;
  background: #101216;
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #f7f8f8;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}

.gaiai-profile-switch-item:hover {
  background: #15181d;
  border-color: rgba(255, 255, 255, 0.16);
}

.gaiai-profile-switch-item.active {
  background: #14171c;
  border-color: rgba(255, 255, 255, 0.22);
}

.switch-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.switch-item-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #64748b;
  flex-shrink: 0;
}

.switch-item-status-dot.verified {
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.switch-item-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.switch-item-text strong {
  font-size: 13px;
  font-weight: 500;
  color: #f7f8f8;
}

.switch-item-text small {
  font-size: 11.5px;
  color: #8a8f98;
}

.switch-item-badge {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
  color: #d0d6e0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.gaiai-profile-switch-item.active .switch-item-badge {
  background: rgba(16, 185, 129, 0.1);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.25);
}

.gaiai-permissions-matrix-section {
  padding: 12px 14px;
  border-radius: 8px;
  background: #101216;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.gaiai-menu-section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.gaiai-perm-email-select {
  background: #08090a;
  color: #f7f8f8;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  padding: 4px 9px;
  font-size: 11.5px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

.gaiai-perm-grid-label {
  font-size: 11px;
  color: #8a8f98;
  font-weight: 500;
}

.gaiai-perm-checkbox-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.gaiai-perm-checkbox-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 7px;
  background: #08090b;
  border: 1px solid rgba(255, 255, 255, 0.11);
  font-size: 12.5px;
  color: #e2e8f0;
  cursor: pointer;
  user-select: none;
}

.gaiai-perm-checkbox-chip input[type="checkbox"] {
  accent-color: #10b981;
  width: 14px;
  height: 14px;
}

.gaiai-perm-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  gap: 10px;
  flex-wrap: wrap;
}

.gaiai-perm-status-msg {
  font-size: 12.5px;
  color: #6ee7b7;
  font-weight: 500;
}

.gaiai-btn-save-perms {
  background: #f8fafc;
  color: #08090b;
  border: 1px solid #ffffff;
  border-radius: 7px;
  min-height: 38px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.gaiai-btn-save-perms:hover {
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(255, 255, 255, 0.16);
}

.gaiai-profile-menu-footer {
  padding: 14px 20px;
  background: #08090b;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.gaiai-btn-open-showcase {
  width: 100%;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: #ecfdf5;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.gaiai-btn-open-showcase:hover {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.42);
}

/* ==========================================================================
   LINEAR.APP / STRIPE / VERCEL TIER ENTERPRISE GOOGLE OAUTH 2.0 PORTAL
   (DESIGN.md v3.0 Mandatory Typography, Contrast, Hit Targets & Responsive)
   ========================================================================== */

.gaiai-landing-portal-root.gaiai-linear-auth-root {
  position: fixed;
  inset: 0;
  z-index: 99990;
  background: radial-gradient(ellipse 80% 50% at 50% -15%, rgba(255, 255, 255, 0.06), transparent), #08090b;
  color: #f8fafc;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0;
}

.gaiai-linear-topbar {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
}

.gaiai-linear-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gaiai-linear-brand-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f8fafc;
}

.gaiai-linear-brand-sep {
  color: rgba(255, 255, 255, 0.25);
  font-size: 14px;
}

.gaiai-linear-brand-sub {
  font-size: 13px;
  color: #cbd5e1;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

.gaiai-linear-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.gaiai-linear-ghost-btn {
  min-height: 36px;
  padding: 7px 14px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.gaiai-linear-ghost-btn:hover {
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
}

.gaiai-linear-icon-close {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.gaiai-linear-icon-close:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
}

.gaiai-landing-split-container.gaiai-linear-split {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 28px 32px 44px;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 40px;
  align-items: start;
  box-sizing: border-box;
}

.gaiai-linear-spec-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.gaiai-linear-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #6ee7b7;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

.gaiai-linear-eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
  flex-shrink: 0;
}

.gaiai-linear-headline {
  font-size: clamp(24px, 2.2vw, 31px);
  line-height: 1.20;
  font-weight: 700;
  letter-spacing: -0.028em;
  color: #f8fafc;
  margin: 0;
}

.gaiai-linear-lead {
  font-size: 14.5px;
  line-height: 1.60;
  color: #cbd5e1;
  margin: 0;
  max-width: 66ch;
}

.gaiai-linear-meta-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
  color: #94a3b8;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  padding-top: 4px;
}

.gaiai-linear-card-col {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.gaiai-linear-auth-card {
  width: 100%;
  max-width: 540px;
  padding: 24px 26px;
  border-radius: 12px;
  background: #0d0f14;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
}

.gaiai-linear-card-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.gaiai-linear-card-title {
  margin: 0;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.022em;
  color: #f8fafc;
}

.gaiai-linear-card-subtitle {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: #cbd5e1;
}

.gaiai-linear-primary-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gaiai-linear-google-btn {
  width: 100%;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #ffffff;
  color: #08090b;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
}

.gaiai-linear-google-btn:hover {
  background: #ffffff;
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.18);
  transform: translateY(-0.5px);
}

.gaiai-linear-secondary-oauth-btn {
  width: 100%;
  min-height: 42px;
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.11);
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.gaiai-linear-secondary-oauth-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.20);
  color: #ffffff;
}

.gaiai-linear-scope-box {
  padding: 14px 16px;
  border-radius: 10px;
  background: #08090b;
  border: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gaiai-linear-scope-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.gaiai-linear-scope-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #cbd5e1;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

.gaiai-linear-scope-badge {
  padding: 3px 9px;
  border-radius: 5px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.32);
  color: #6ee7b7;
  font-size: 12px;
  font-weight: 600;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  cursor: pointer;
}

.gaiai-linear-scope-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gaiai-linear-scope-group-title {
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
}

.gaiai-linear-scope-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.gaiai-scope-pill {
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 12px;
  font-weight: 500;
  color: #e2e8f0;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

.gaiai-scope-pill.is-active-pill {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.28);
  color: #ecfdf5;
}

.gaiai-linear-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

.gaiai-linear-divider::before,
.gaiai-linear-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.gaiai-linear-session-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gaiai-linear-session-item {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border-radius: 9px;
  background: #13161f;
  border: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.gaiai-linear-session-item:hover {
  background: #191d28;
  border-color: rgba(255, 255, 255, 0.20);
}

.gaiai-linear-session-item.is-current-session {
  border-color: rgba(16, 185, 129, 0.42);
  background: rgba(16, 185, 129, 0.07);
}

.session-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.session-status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #64748b;
  flex-shrink: 0;
}

.session-status-indicator.is-verified {
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.55);
}

.session-item-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.session-item-email-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.session-item-email-row strong {
  font-size: 14px;
  font-weight: 600;
  color: #f8fafc;
}

.session-item-tag {
  font-size: 12px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  padding: 2px 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.11);
}

.session-item-tag.tag-oauth {
  background: rgba(16, 185, 129, 0.10);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.28);
}

.session-item-meta small {
  font-size: 12.5px;
  color: #b4bcd0;
  line-height: 1.45;
  white-space: normal;
}

.session-item-arrow {
  font-size: 12.5px;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  flex-shrink: 0;
}

.gaiai-linear-left-guide-header {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #cbd5e1;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.gaiai-linear-consent-package-banner {
  padding: 12px 14px;
  border-radius: 9px;
  background: #0d0f14;
  border: 1px solid rgba(16, 185, 129, 0.30);
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.consent-package-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.consent-package-title {
  font-size: 14px;
  font-weight: 600;
  color: #f8fafc;
  letter-spacing: -0.01em;
}

.consent-package-subtitle {
  margin: 0;
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.5;
}

.gaiai-linear-consent-guide-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 6px;
  max-height: 460px;
  overflow-y: auto;
  padding-right: 4px;
}

.gaiai-linear-consent-guide-item {
  padding: 11px 13px;
  border-radius: 9px;
  background: #13161f;
  border: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.gaiai-linear-consent-guide-item:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: #171b26;
}

.gaiai-linear-consent-guide-item[data-mcp-module="system_mcp"] {
  grid-column: 1 / -1;
}

.consent-guide-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.consent-guide-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #f8fafc;
  letter-spacing: -0.01em;
}

.consent-guide-status {
  font-size: 12px;
  font-weight: 600;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  padding: 2px 8px;
  border-radius: 5px;
  background: rgba(16, 185, 129, 0.10);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.28);
  white-space: nowrap;
}

.consent-guide-desc {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.50;
  color: #b4bcd0;
}

.gaiai-linear-active-status-banner {
  padding: 14px 16px;
  border-radius: 10px;
  background: #08090b;
  border: 1px solid rgba(255, 255, 255, 0.11);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gaiai-linear-active-status-banner.is-authenticated-banner {
  border-color: rgba(16, 185, 129, 0.36);
  background: rgba(16, 185, 129, 0.06);
}

.status-banner-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.status-banner-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #cbd5e1;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

.status-banner-vault {
  font-size: 12px;
  font-weight: 500;
  color: #e2e8f0;
  padding: 2px 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.11);
}

.status-banner-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.status-banner-email-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status-banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #64748b;
}

.status-banner-dot.verified {
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.status-banner-email {
  font-size: 15px;
  font-weight: 650;
  color: #f8fafc;
}

.status-banner-role {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.status-banner-sub {
  font-size: 13px;
  line-height: 1.48;
  color: #6ee7b7;
  font-weight: 500;
}

.gaiai-linear-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 9px;
  background: #08090b;
  border: 1px solid rgba(255, 255, 255, 0.09);
  flex-wrap: wrap;
}

.linear-step-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: #e2e8f0;
  font-weight: 500;
}

.linear-step-item .step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.38);
  color: #6ee7b7;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  flex-shrink: 0;
}

.linear-step-arrow {
  color: #94a3b8;
  font-size: 13px;
}

.gaiai-linear-privacy-note {
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 12.5px;
  line-height: 1.5;
  color: #cbd5e1;
}

/* ==========================================================================
   LINEAR.APP STANDARD FULL-PAGE PRODUCT LANDING PAGE (WO-2)
   ========================================================================== */
.gaiai-landing-portal-root.is-linear-product-landing {
  background: radial-gradient(ellipse 90% 45% at 50% -10%, rgba(99, 102, 241, 0.16), rgba(8, 9, 11, 0) 70%), #08090b;
  color: #f8fafc;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* 1. Sabit Cam Üst Navigasyon (Linear Sticky Glass Navbar — height: 64px) */
.gaiai-linear-navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 64px;
  width: 100%;
  background: rgba(8, 9, 11, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.gaiai-linear-navbar-inner {
  width: 100%;
  max-width: 1280px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap;
}

.gaiai-linear-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap;
}

.gaiai-linear-brand-badge {
  font-size: 12px;
  font-weight: 500;
  color: #b4bcd0;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  margin-left: 4px;
  white-space: nowrap;
}

.gaiai-linear-nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.gaiai-linear-nav-link {
  font-size: 13.5px;
  font-weight: 500;
  color: #b4bcd0;
  text-decoration: none;
  transition: color 0.15s ease;
  white-space: nowrap;
}

.gaiai-linear-nav-link:hover {
  color: #f8fafc;
}

.gaiai-linear-navbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.gaiai-linear-verified-pill-btn {
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.11);
  border: 1px solid rgba(16, 185, 129, 0.34);
  color: #ecfdf5;
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.gaiai-linear-verified-pill-btn:hover {
  background: rgba(16, 185, 129, 0.20);
  border-color: rgba(16, 185, 129, 0.55);
  transform: translateY(-0.5px);
}

.verified-green-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.75);
  flex-shrink: 0;
}

.gaiai-linear-nav-cta-btn {
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #ffffff;
  color: #08090b;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.gaiai-linear-nav-cta-btn:hover {
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.2);
}

/* Main Landing Content Container */
.gaiai-linear-landing-main {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px 72px;
  display: flex;
  flex-direction: column;
  gap: 64px;
  box-sizing: border-box;
}

/* 2. Bölüm 1 — Linear Hero Alanı (Centered High-Impact Hero Section) */
.gaiai-linear-hero-section {
  position: relative;
  padding: 58px 0 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
}

.gaiai-linear-hero-glow {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: min(860px, 92vw);
  height: 260px;
  background: radial-gradient(ellipse at center, rgba(129, 140, 248, 0.18) 0%, rgba(56, 189, 248, 0.06) 45%, rgba(8, 9, 11, 0) 75%);
  pointer-events: none;
  z-index: 0;
}

.gaiai-linear-hero-eyebrow {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-size: 12.5px;
  font-weight: 500;
  flex-wrap: wrap;
  justify-content: center;
}

.eyebrow-sparkle {
  color: #818cf8;
  font-size: 13px;
}

.eyebrow-pill-tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.34);
  color: #6ee7b7;
  font-size: 12px;
  font-weight: 600;
}

.gaiai-linear-hero-headline {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 960px;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.10;
  font-weight: 700;
  letter-spacing: -0.035em;
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 65%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #f8fafc;
}

.gaiai-linear-hero-subtitle {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 700px;
  font-size: 17px;
  line-height: 1.62;
  color: #b4bcd0;
  font-weight: 400;
}

.gaiai-linear-hero-cta-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.gaiai-linear-instant-verified-btn {
  min-height: 48px;
  padding: 8px 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.16) 0%, rgba(15, 23, 42, 0.92) 100%);
  border: 1px solid rgba(16, 185, 129, 0.48);
  color: #f8fafc;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.15);
  text-align: left;
}

.gaiai-linear-instant-verified-btn:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.26) 0%, rgba(15, 23, 42, 0.96) 100%);
  border-color: rgba(16, 185, 129, 0.75);
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(16, 185, 129, 0.24);
}

.instant-bolt-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.instant-btn-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.instant-btn-text strong {
  font-size: 14px;
  font-weight: 600;
  color: #f8fafc;
}

.instant-btn-text small {
  font-size: 12px;
  color: #6ee7b7;
  font-weight: 500;
}

.instant-arrow {
  font-size: 15px;
  font-weight: 700;
  color: #6ee7b7;
}

.gaiai-linear-hero-google-btn {
  min-height: 48px;
  padding: 10px 22px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #ffffff;
  color: #08090b;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.16s ease;
  box-shadow: 0 6px 22px rgba(255, 255, 255, 0.12);
}

.gaiai-linear-hero-google-btn:hover {
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(255, 255, 255, 0.22);
}

.gaiai-linear-persistent-consent-pill {
  position: relative;
  z-index: 1;
  max-width: 780px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: #cbd5e1;
  font-size: 12.5px;
  line-height: 1.5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.gaiai-linear-persistent-consent-pill strong {
  color: #6ee7b7;
}

/* 3. Bölüm 2 — 3B Perspektif Canlı Kokpit & Sürü Önizleme Çerçevesi (Linear App Mockup) */
.gaiai-linear-preview-section {
  width: 100%;
}

.gaiai-linear-preview-frame {
  width: 100%;
  border-radius: 14px;
  background: linear-gradient(180deg, #10131a 0%, #0a0c10 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.10);
  overflow: hidden;
}

.preview-window-topbar {
  min-height: 44px;
  padding: 8px 16px;
  background: rgba(15, 18, 25, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.preview-window-dots {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.win-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.win-dot.dot-close { background: #ef4444; }
.win-dot.dot-min { background: #f59e0b; }
.win-dot.dot-max { background: #10b981; }

.preview-window-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: #cbd5e1;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

.preview-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.7);
}

.preview-window-badges {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.preview-chip {
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

.preview-chip.chip-emerald {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.32);
  color: #6ee7b7;
}

.preview-chip.chip-indigo {
  background: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #c7d2fe;
}

.preview-window-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr;
  gap: 16px;
  padding: 20px;
}

.preview-col {
  background: rgba(13, 15, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.preview-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.preview-col-tag {
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  font-size: 12px;
}

.preview-channel-card,
.preview-swarm-node {
  padding: 10px 12px;
  border-radius: 8px;
  background: #131722;
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.preview-channel-card.is-active-channel {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.06);
}

.preview-channel-top,
.swarm-node-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.preview-channel-top strong,
.swarm-node-top strong {
  font-size: 13px;
  font-weight: 600;
  color: #f8fafc;
}

.preview-channel-card p,
.preview-swarm-node small {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: #b4bcd0;
}

.channel-badge-emerald,
.node-status-online,
.node-status-verified {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
}

.channel-badge-indigo {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(99, 102, 241, 0.14);
  color: #c7d2fe;
}

.channel-badge-amber {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.14);
  color: #fcd34d;
}

.preview-telemetry-stack {
  padding: 12px;
  border-radius: 8px;
  background: #131722;
  border: 1px solid rgba(99, 102, 241, 0.28);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.preview-telemetry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  color: #e2e8f0;
}

.telemetry-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #818cf8;
  box-shadow: 0 0 8px rgba(129, 140, 248, 0.8);
  flex-shrink: 0;
}

.telemetry-duration {
  font-size: 12px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  color: #6ee7b7;
}

.preview-todo-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.preview-todo-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #e2e8f0;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
}

.todo-check {
  color: #10b981;
  font-weight: 700;
}

.preview-exec-summary {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-size: 12.5px;
  line-height: 1.45;
  color: #d1fae5;
}

/* 4. Bölüm 3 — 6'lı Linear Bento Özellik Izgarası (3x2 Bento Grid) */
.gaiai-linear-bento-section {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.gaiai-linear-section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.section-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #818cf8;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

.section-title {
  margin: 0;
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 700;
  letter-spacing: -0.028em;
  color: #f8fafc;
}

.section-desc {
  margin: 0;
  max-width: 660px;
  font-size: 15px;
  line-height: 1.6;
  color: #b4bcd0;
}

.gaiai-linear-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.gaiai-linear-bento-card {
  padding: 22px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(20, 23, 32, 0.9) 0%, rgba(12, 14, 19, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.gaiai-linear-bento-card:hover {
  border-color: rgba(129, 140, 248, 0.40);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

.bento-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.bento-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bento-badge {
  font-size: 12px;
  font-weight: 600;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  color: #94a3b8;
}

.bento-title {
  margin: 0;
  font-size: 16.5px;
  font-weight: 650;
  letter-spacing: -0.015em;
  color: #f8fafc;
}

.bento-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.58;
  color: #b4bcd0;
}

/* 5. Bölüm 3.5 — Kalıcı Google Workspace & Güvenlik Mimarisi */
.gaiai-linear-security-section {
  width: 100%;
}

.gaiai-linear-security-card {
  padding: 28px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(16, 20, 28, 0.94) 0%, rgba(10, 12, 17, 0.98) 100%);
  border: 1px solid rgba(16, 185, 129, 0.28);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.security-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.security-card-title {
  margin: 6px 0 8px;
  font-size: 22px;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.02em;
}

.security-card-sub {
  margin: 0;
  max-width: 820px;
  font-size: 14px;
  line-height: 1.6;
  color: #cbd5e1;
}

.security-permanent-badge {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.38);
  color: #6ee7b7;
  font-size: 12.5px;
  font-weight: 600;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  white-space: nowrap;
}

.gaiai-linear-module-ribbon {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gaiai-linear-saved-accounts-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

/* 6. Bölüm 4 — Alt Çağrı (Bottom CTA) & Kurumsal Footer */
.gaiai-linear-bottom-cta-footer {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.bottom-cta-box {
  padding: 32px 28px;
  border-radius: 14px;
  background: radial-gradient(ellipse at top, rgba(99, 102, 241, 0.14), rgba(13, 15, 20, 0.96) 70%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.bottom-cta-title {
  margin: 0;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.02em;
}

.bottom-cta-sub {
  margin: 0;
  font-size: 14.5px;
  color: #b4bcd0;
}

.bottom-cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.bottom-footer-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: #94a3b8;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

/* ==========================================================================
   DESIGN.md SECTION 7: RESPONSIVE DESKTOP-TO-MOBILE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1080px) {
  .gaiai-landing-split-container.gaiai-linear-split {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 20px 20px 36px;
  }

  .gaiai-linear-auth-card {
    max-width: 100%;
  }

  .preview-window-grid {
    grid-template-columns: 1fr;
  }

  .gaiai-linear-bento-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gaiai-linear-saved-accounts-strip {
    grid-template-columns: 1fr;
  }

  .gaiai-linear-nav-links {
    display: none;
  }
}

@media (max-width: 767px) {
  .gaiai-linear-topbar,
  .gaiai-linear-navbar {
    height: auto;
    min-height: 60px;
    padding: 10px 14px;
    max-width: 100vw;
    box-sizing: border-box;
  }

  .gaiai-linear-navbar-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    max-width: 100%;
  }

  .gaiai-linear-navbar-actions {
    width: 100%;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: stretch;
  }

  .gaiai-linear-verified-pill-btn,
  .gaiai-linear-nav-cta-btn {
    width: 100%;
    min-height: 44px;
    justify-content: center;
    white-space: normal;
    text-align: center;
    box-sizing: border-box;
  }

  .gaiai-linear-landing-main {
    padding: 0 14px 48px;
    gap: 36px;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  .gaiai-linear-hero-section {
    padding: 28px 0 8px;
    max-width: 100%;
  }

  .gaiai-linear-hero-headline {
    font-size: 28px;
    line-height: 1.16;
    word-break: break-word;
  }

  .gaiai-linear-hero-subtitle {
    font-size: 15px;
  }

  .gaiai-linear-hero-cta-row,
  .bottom-cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .gaiai-linear-instant-verified-btn,
  .gaiai-linear-hero-google-btn {
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    justify-content: center;
    box-sizing: border-box;
  }

  .gaiai-linear-persistent-consent-pill {
    border-radius: 12px;
    flex-direction: column;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
  }

  .gaiai-linear-preview-frame,
  .gaiai-linear-security-card,
  .bottom-cta-box {
    max-width: 100%;
    padding: 16px 14px;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .preview-window-topbar {
    padding: 10px 12px;
  }

  .preview-window-title {
    white-space: normal;
    word-break: break-word;
  }

  .preview-window-grid {
    padding: 12px;
    gap: 12px;
  }

  .security-card-sub code {
    word-break: break-all;
  }

  .gaiai-linear-session-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .gaiai-linear-bento-grid {
    grid-template-columns: 1fr;
  }

  .gaiai-landing-split-container.gaiai-linear-split {
    padding: 16px 14px 32px;
    gap: 22px;
  }

  .gaiai-linear-consent-guide-list {
    grid-template-columns: 1fr;
    max-height: none;
  }

  .gaiai-linear-auth-card {
    padding: 18px 16px;
  }

  .gaiai-linear-google-btn,
  .gaiai-linear-secondary-oauth-btn,
  .gaiai-linear-ghost-btn {
    min-height: 44px;
    width: 100%;
    justify-content: center;
  }

  .gaiai-profile-menu-card {
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
    max-height: 92vh !important;
  }
}

/* ==========================================================================
   STEALTH SYSTEM UPDATE & SOHBET KORUMA (WO-SYS-UPDATE-UI)
   System update tagları ve gizli mesajlar ana sohbette asla görünmez/alan kaplamaz.
   ========================================================================== */
.system-update-message,
.system-update-row,
[data-is-system-update="true"],
.chat-message-row:empty,
.message-bubble-body:empty,
#chat-messages-container > :empty,
.chat-messages-container > :empty {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  border: none !important;
}

.todo-item.in-progress {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.06);
}

.header-artifact-menu-item:hover {
  background: rgba(99, 102, 241, 0.16) !important;
}

.todo-file-indicator:hover {
  color: #a5b4fc !important;
  text-decoration: underline;
}


