/* =============================================================================
   FLOWORK OS — HYPER-SPEED NEURAL BRAIN & TERMINAL STREAM ENGINE
   File: styles/chat_thinking.css
   Author: Flowork OS Sovereign Architecture
   Co-authored-by: Flowork OS <agent@floworkos.com>
   ============================================================================= */

/* Active Thinking Container in Assistant Chat Message */
.chat-thinking-area:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.chat-thinking-area {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-bottom: 2px;
}

/* Hyper-Speed Thinking Card */
.fl-thinking-card {
  position: relative;
  width: 100%;
  background: rgba(4, 10, 20, 0.88);
  border: 1px solid rgba(0, 229, 255, 0.32);
  border-radius: 9px;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.55), inset 0 0 16px rgba(0, 229, 255, 0.06);
  padding: 10px 12px;
  overflow: hidden;
  font-family: var(--font-mono, monospace);
  animation: flThinkingFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  box-sizing: border-box;
}

.fl-thinking-card:hover {
  border-color: rgba(0, 229, 255, 0.5);
  box-shadow: 0 4px 28px rgba(0, 229, 255, 0.15), inset 0 0 20px rgba(0, 229, 255, 0.09);
}

/* Header Top Row */
.fl-thinking-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(0, 229, 255, 0.12);
}

.fl-thinking-top-left {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.fl-thinking-tag {
  font-size: 10px;
  font-weight: 700;
  color: #00e5ff;
  letter-spacing: 0.8px;
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.45);
}

.fl-thinking-top-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.fl-thinking-speed-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 12px;
  background: rgba(0, 255, 178, 0.08);
  border: 1px solid rgba(0, 255, 178, 0.3);
  font-size: 9.5px;
  color: #00ffb2;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.fl-thinking-timer-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 12px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.3);
  font-size: 9.5px;
  color: #38bdf8;
  font-weight: 600;
}

.fl-thinking-spinner {
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 229, 255, 0.2);
  border-top-color: #00e5ff;
  animation: flSpin 0.6s linear infinite;
  display: inline-block;
}

/* Main Body: Brain Graphic + Fast Terminal Stream */
.fl-thinking-body-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
  height: 105px;
  min-height: 105px;
  margin-bottom: 8px;
}

/* Brain Stage Box */
.fl-thinking-brain-pod {
  width: 90px;
  min-width: 90px;
  max-width: 90px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 14, 0.6);
  border: 1px solid rgba(0, 229, 255, 0.15);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}

.fl-cyber-brain-svg {
  width: 72px;
  height: 72px;
  overflow: visible;
  filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.45));
}

.fl-brain-outline {
  animation: flBrainPulse 1.8s ease-in-out infinite alternate;
}

.fl-brain-circuit {
  animation: flCircuitDash 2.5s linear infinite;
}

.fl-synapse-node {
  animation: flSynapseFire 1.2s ease-in-out infinite alternate;
  transform-origin: center;
}

.fl-synapse-node.syn-1 { animation-delay: 0.1s; }
.fl-synapse-node.syn-2 { animation-delay: 0.3s; }
.fl-synapse-node.syn-3 { animation-delay: 0.5s; }
.fl-synapse-node.syn-4 { animation-delay: 0.2s; }
.fl-synapse-node.syn-5 { animation-delay: 0.4s; }
.fl-synapse-node.syn-6 { animation-delay: 0.6s; }
.fl-synapse-node.syn-center {
  animation: flCenterCorePulse 0.9s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 4px #00f2fe);
}

.fl-brain-scan-laser {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00e5ff, #c084fc, transparent);
  box-shadow: 0 0 6px #00e5ff;
  animation: flBrainScanBeam 2s ease-in-out infinite alternate;
}

.fl-brain-pod-label {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #38bdf8;
  margin-top: 2px;
  text-shadow: 0 0 6px rgba(0, 229, 255, 0.5);
}

/* Terminal Log Viewport */
.fl-thinking-terminal-viewport {
  flex: 1;
  min-width: 0;
  height: 100%;
  background: rgba(2, 6, 12, 0.85);
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: 6px;
  padding: 5px 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
}

.fl-thinking-terminal-viewport::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 229, 255, 0.03) 50%, transparent 50%);
  background-size: 100% 3px;
  pointer-events: none;
  opacity: 0.6;
}

.fl-thinking-log-stream {
  display: flex;
  flex-direction: column;
  gap: 2.5px;
  overflow: hidden;
}

.fl-thinking-log-line {
  font-size: 9px;
  line-height: 1.35;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 4px;
  animation: flLineAppear 0.08s ease-out forwards;
}

.fl-thinking-log-bullet {
  color: #00e5ff;
  font-weight: 700;
  font-size: 9px;
  flex-shrink: 0;
}

.fl-thinking-log-line.real-thought {
  color: #f1f5f9;
  font-weight: 600;
  background: rgba(192, 132, 252, 0.12);
  border-left: 2px solid #c084fc;
  padding-left: 3px;
  border-radius: 2px;
}

/* Status Message Row at Bottom */
.fl-thinking-status-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: #cbd5e1;
  line-height: 1.4;
  min-height: 16px;
  overflow: hidden;
}

.fl-thinking-status-dot {
  color: #00e5ff;
  font-size: 7px;
  animation: flDotBlink 1.2s ease-in-out infinite;
  flex-shrink: 0;
}

.fl-thinking-status-text {
  color: #cbd5e1;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Laser Scanning Beam at Bottom */
.fl-thinking-laser-track {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1.5px;
  background: rgba(0, 229, 255, 0.1);
  overflow: hidden;
}

.fl-thinking-laser-beam {
  position: absolute;
  top: 0;
  height: 100%;
  width: 35%;
  background: linear-gradient(90deg, transparent, #00e5ff, #c084fc, transparent);
  animation: flLaserSweep 1.6s ease-in-out infinite;
}

/* Keyframes */
@keyframes flBrainPulse {
  0% { filter: drop-shadow(0 0 3px #00e5ff); opacity: 0.85; }
  100% { filter: drop-shadow(0 0 9px #00f2fe); opacity: 1; }
}

@keyframes flCircuitDash {
  to { stroke-dashoffset: -20; }
}

@keyframes flSynapseFire {
  0% { transform: scale(0.8); opacity: 0.4; }
  100% { transform: scale(1.5); opacity: 1; filter: drop-shadow(0 0 6px #00e5ff); }
}

@keyframes flCenterCorePulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  100% { transform: scale(1.6); opacity: 1; filter: drop-shadow(0 0 8px #00f2fe); }
}

@keyframes flBrainScanBeam {
  0% { top: 0%; opacity: 0.4; }
  100% { top: 96%; opacity: 0.9; }
}

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

@keyframes flLaserSweep {
  0% { left: -35%; }
  100% { left: 100%; }
}

@keyframes flDotBlink {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

@keyframes flSpin {
  to { transform: rotate(360deg); }
}

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

/* =============================================================================
   HOLOGRAPHIC WALL PAINTER ("NGECAT TEMBOK" IN-PLACE CHART CONSTRUCTOR)
   Sleek laser roller sweeps across and directly reveals the chart in-place.
   Seamlessly integrates with the chat body without detached clunky boxes.
   ============================================================================= */

.fl-holo-paint-slot {
  position: relative;
  width: 100%;
  height: 148px;
  background: radial-gradient(ellipse at 50% 50%, rgba(0, 229, 255, 0.05) 0%, rgba(5, 10, 24, 0.6) 100%);
  border: 1px solid rgba(0, 242, 254, 0.2);
  border-radius: 12px;
  overflow: hidden;
  margin: 10px 0;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 0 15px rgba(0, 242, 254, 0.04);
  font-family: var(--font-mono, monospace);
  animation: flPaintSlotFadeIn 0.25s ease-out forwards;
  box-sizing: border-box;
}

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

/* Wall Painter Laser Blade & Trailing Wet-Photon Wash */
.fl-paint-roller-track {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.fl-paint-roller-blade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #00f2fe;
  box-shadow: 0 0 14px #00f2fe, 0 0 28px rgba(0, 242, 254, 0.9), -20px 0 45px rgba(0, 242, 254, 0.4);
  animation: flPaintWallSweep 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  z-index: 3;
}

.fl-paint-roller-blade::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 80px;
  background: linear-gradient(90deg, rgba(0, 242, 254, 0) 0%, rgba(0, 242, 254, 0.18) 75%, rgba(0, 242, 254, 0.45) 100%);
  pointer-events: none;
}

@keyframes flPaintWallSweep {
  0% { left: -10%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: 110%; opacity: 0; }
}

/* Shimmering Ghost Wireframe beneath the Paint Roller */
.fl-paint-surface {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.fl-paint-grid {
  position: absolute;
  inset: 0;
  background-size: 20px 20px;
  background-image: 
    linear-gradient(to right, rgba(0, 229, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 229, 255, 0.04) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 95%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 95%);
}

.fl-paint-wireframe-ghost {
  width: 90%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.65;
  filter: drop-shadow(0 0 6px rgba(0, 242, 254, 0.35));
}

.fl-paint-wireframe-ghost svg {
  width: 100%;
  height: 100%;
  max-width: 280px;
}

/* Minimal HUD Caption Bar */
.fl-paint-caption-bar {
  position: absolute;
  bottom: 8px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 4;
  font-size: 10px;
}

.fl-paint-caption-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.fl-paint-glow-dot {
  color: #00f2fe;
  font-size: 9px;
  animation: flDotBlink 1s ease-in-out infinite;
  text-shadow: 0 0 6px #00f2fe;
}

.fl-paint-tag {
  font-weight: 700;
  color: #00f2fe;
  letter-spacing: 0.6px;
  text-shadow: 0 0 6px rgba(0, 242, 254, 0.4);
}

.fl-paint-title {
  color: #94a3b8;
  font-size: 10px;
  letter-spacing: 0.3px;
}

.fl-paint-telemetry {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #c084fc;
  font-weight: 600;
  font-size: 9px;
  letter-spacing: 0.5px;
}

.fl-paint-pulse-ring {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c084fc;
  box-shadow: 0 0 6px #c084fc;
  animation: flPulseRing 1.2s infinite;
}

@keyframes flPulseRing {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
}

/* Smooth Transformation Transition into Chart */
.fl-holo-paint-slot.is-revealing .fl-paint-roller-blade {
  animation: flPaintFinalSweep 0.18s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes flPaintFinalSweep {
  0% { left: 0%; opacity: 1; }
  100% { left: 110%; opacity: 0; }
}

.tactical-chart-card.fl-paint-revealed {
  animation: flChartRevealFade 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes flChartRevealFade {
  0% { opacity: 0; transform: scale(0.98); filter: blur(2px); }
  100% { opacity: 1; transform: scale(1); filter: blur(0); }
}

/* =============================================================================
   THINKING ARSENAL BAR (PINNED SKILLS & MOUNTED/ACTIVE TOOLS IN THINKING CARD)
   ============================================================================= */

.fl-thinking-arsenal-bar {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 7px 12px;
  margin-bottom: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
  background: rgba(6, 14, 28, 0.85);
  border: 1px solid rgba(0, 229, 255, 0.24);
  border-radius: 20px;
  font-family: var(--font-mono, monospace);
}

.fl-thinking-arsenal-bar.is-persisted {
  width: auto;
  margin: 6px 10px 4px 10px;
  background: rgba(4, 10, 22, 0.72);
}

.fl-thinking-arsenal-row {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  flex-wrap: wrap;
}

.fl-ta-label {
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #94a3b8;
  min-width: 88px;
  flex-shrink: 0;
  text-transform: uppercase;
  padding-top: 2px;
}

.fl-thinking-arsenal-row.skills-row .fl-ta-label {
  color: #d8b4fe;
}

.fl-thinking-arsenal-row.tools-row .fl-ta-label {
  color: #38bdf8;
}

.fl-ta-chips {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.fl-ta-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.18s ease;
}

.fl-ta-chip.skill {
  background: rgba(192, 132, 252, 0.16);
  border: 1px solid rgba(192, 132, 252, 0.5);
  color: #e9d5ff;
  box-shadow: 0 0 8px rgba(192, 132, 252, 0.22);
}

.fl-ta-chip.tool.is-running {
  background: rgba(0, 229, 255, 0.18);
  border: 1px solid #00e5ff;
  color: #00e5ff;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.35);
  animation: flDotBlink 0.9s ease-in-out infinite;
}

.fl-ta-chip.tool.is-locked {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #34d399;
}

.fl-ta-chip.idle {
  background: rgba(148, 163, 184, 0.08);
  border: 1px dashed rgba(148, 163, 184, 0.25);
  color: #64748b;
  font-weight: 600;
}

.fl-thought-arsenal-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 6px;
  border-radius: 10px;
  background: rgba(192, 132, 252, 0.14);
  border: 1px solid rgba(192, 132, 252, 0.4);
  color: #d8b4fe;
  font-size: 9px;
  font-weight: 700;
  margin-left: 6px;
  flex-shrink: 0;
  white-space: nowrap;
}

/* =============================================================================
   MULTI-OS LIVE LOOP SYSTEM TELEMETRY BAR (ABOVE CHAT INPUT DURING LOOPING)
   Strictly hidden when idle; appears above .chat-input-box ONLY during loop.
   ============================================================================= */

.fl-loop-sys-bar {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  max-width: min(100%, 1040px);
  min-width: 0;
  margin: 0 auto 6px auto;
  padding: 5px 12px;
  background: radial-gradient(circle at 50% 0%, rgba(0, 229, 255, 0.14), rgba(6, 12, 26, 0.92) 75%);
  border: 1px solid rgba(0, 229, 255, 0.28);
  border-radius: 999px;
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.6), inset 0 0 14px rgba(0, 229, 255, 0.08);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  font-family: var(--font-mono, monospace);
  font-size: 9px;
  color: #cbd5e1;
  box-sizing: border-box;
  flex-wrap: wrap;
  overflow: hidden;
  animation: flThinkingFadeIn 0.18s ease-out forwards;
}

.fl-lsb-left,
.fl-lsb-right {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
}

.fl-lsb-right::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.45);
  box-shadow: 0 0 6px rgba(0, 229, 255, 0.5);
  margin-right: 2px;
}

.fl-lsb-os-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2.5px 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.18), rgba(56, 189, 248, 0.12));
  border: 1px solid rgba(0, 229, 255, 0.35);
  color: #7dd3fc;
  font-weight: 800;
  font-size: 8.5px;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.fl-lsb-metric {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(12, 20, 38, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.2);
  padding: 2.5px 9px;
  border-radius: 999px;
  min-width: 0;
}

.fl-lsb-label {
  font-weight: 800;
  color: #94a3b8;
  font-size: 8.5px;
  letter-spacing: 0.4px;
}

.fl-lsb-bar {
  width: 34px;
  height: 5px;
  background: rgba(30, 41, 59, 0.9);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.fl-lsb-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.35s ease, background 0.3s ease;
}

.fl-lsb-fill.cpu {
  background: linear-gradient(90deg, #00e5ff, #00ffb2);
  box-shadow: 0 0 6px rgba(0, 229, 255, 0.6);
}

.fl-lsb-fill.ram {
  background: linear-gradient(90deg, #38bdf8, #c084fc);
  box-shadow: 0 0 6px rgba(192, 132, 252, 0.5);
}

.fl-lsb-fill.warn {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.fl-lsb-fill.crit {
  background: linear-gradient(90deg, #ef4444, #f87171);
}

.fl-lsb-val {
  font-weight: 700;
  color: #f1f5f9;
  font-size: 8.5px;
  white-space: nowrap;
}

.fl-lsb-rss-pill {
  padding: 2.5px 9px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.32);
  color: #6ee7b7;
  font-weight: 700;
  font-size: 8.5px;
  white-space: nowrap;
}

.fl-lsb-arsenal-pill {
  padding: 2.5px 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.18), rgba(56, 189, 248, 0.14));
  border: 1px solid rgba(192, 132, 252, 0.38);
  color: #e9d5ff;
  font-weight: 700;
  font-size: 8.5px;
  white-space: nowrap;
}

.fl-lsb-loop-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2.5px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.42);
  color: #34d399;
  font-weight: 800;
  font-size: 8.5px;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.fl-lsb-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00ffb2;
  box-shadow: 0 0 6px #00ffb2;
  animation: flDotBlink 0.8s ease-in-out infinite;
}

/* =============================================================================
   MANDATORY TOOL REASON HUD BANNER (DISPLAYED ON EVERY TOOL CALL)
   ============================================================================= */

.fl-live-reason-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  flex: 0 0 100%;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(192, 132, 252, 0.16) 0%, rgba(0, 229, 255, 0.1) 100%);
  border: 1px solid rgba(192, 132, 252, 0.35);
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  line-height: 1.38;
  color: #f8fafc;
  box-sizing: border-box;
  overflow: hidden;
  z-index: 6;
  position: relative;
}

.fl-lrb-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1.5px 8px;
  border-radius: 999px;
  background: rgba(192, 132, 252, 0.24);
  border: 1px solid rgba(192, 132, 252, 0.55);
  color: #e9d5ff;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  flex-shrink: 0;
  text-shadow: 0 0 6px rgba(192, 132, 252, 0.45);
}

.fl-lrb-text {
  color: #f1f5f9;
  font-weight: 600;
  flex: 1;
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fl-tool-reason-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 7px;
  border-radius: 10px;
  background: rgba(192, 132, 252, 0.12);
  border: 1px solid rgba(192, 132, 252, 0.35);
  color: #d8b4fe;
  font-family: var(--font-mono, monospace);
  font-size: 9px;
  font-weight: 600;
  max-width: 140px;
  min-width: 0;
  flex-shrink: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-left: 4px;
}

.fl-tool-reason-box {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 6px 10px;
  margin-bottom: 6px;
  background: rgba(192, 132, 252, 0.1);
  border: 1px solid rgba(192, 132, 252, 0.3);
  border-left: 3px solid #c084fc;
  border-radius: 6px;
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  color: #e2e8f0;
  line-height: 1.4;
  overflow: hidden;
}

.fl-trb-lbl {
  color: #d8b4fe;
  font-weight: 800;
  flex-shrink: 0;
}

.fl-trb-txt {
  color: #f8fafc;
  font-weight: 500;
  flex: 1;
  min-width: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
}


