/* ==========================================================================
   TRADELOCKER HUB CAROUSEL & STACKED VERTICAL TIMELINE STYLES
   ========================================================================== */

/* Top View Switcher in Header */
.view-mode-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 3px;
  gap: 2px;
  margin-left: 12px;
}
.view-mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted, #94a3b8);
  text-decoration: none;
  transition: all 0.2s ease;
}
.view-mode-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}
.view-mode-btn.active {
  background: #3898ec;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(56, 152, 236, 0.35);
}

/* --- Carousel Main Card --- */
.tl-carousel-hub {
  position: relative;
  background: rgba(14, 18, 27, 0.88);
  border: 1px solid #1c2638;
  border-radius: 16px;
  margin-bottom: 28px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
}

/* --- Carousel Header Bar --- */
.tl-carousel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #0b0f17;
  border-bottom: 1px solid #1a2334;
  gap: 16px;
  flex-wrap: wrap;
}

.tl-carousel-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tl-carousel-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(56, 152, 236, 0.15);
  border: 1px solid rgba(56, 152, 236, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3898ec;
}
.tl-carousel-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tl-carousel-sub {
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 1px;
}

/* --- Carousel Navigation Tabs (Center) --- */
.tl-carousel-tabs {
  display: flex;
  align-items: center;
  background: #070a10;
  border: 1px solid #1c2638;
  border-radius: 10px;
  padding: 4px;
  gap: 4px;
}
.tl-carousel-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.tl-carousel-tab:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.04);
}
.tl-carousel-tab.active {
  background: #1c2844;
  color: #3898ec;
  border: 1px solid #29406b;
  box-shadow: 0 2px 8px rgba(56, 152, 236, 0.2);
}
.tl-tab-badge {
  background: #ff4d61;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
}
.tl-tab-badge.blue {
  background: #2563eb;
}

/* --- Carousel Controls (Right) --- */
.tl-carousel-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tl-nav-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #0f1523;
  border: 1px solid #1c2638;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  transition: all 0.15s ease;
}
.tl-nav-btn:hover {
  color: #ffffff;
  background: #1c2638;
  border-color: #3898ec;
}
.tl-slide-counter {
  font-size: 0.74rem;
  font-weight: 600;
  color: #64748b;
  min-width: 48px;
  text-align: center;
}
.tl-dots-group {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: 4px;
}
.tl-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1e293b;
  cursor: pointer;
  transition: all 0.2s ease;
}
.tl-dot.active {
  width: 16px;
  border-radius: 4px;
  background: #3898ec;
  box-shadow: 0 0 8px rgba(56, 152, 236, 0.6);
}

/* --- Carousel Track & Slides --- */
.tl-carousel-viewport {
  width: 100%;
  height: 640px;
  max-height: 640px;
  overflow: hidden;
  position: relative;
  background: #080c14;
}
.tl-carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.tl-carousel-slide {
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  height: 640px;
  max-height: 640px;
  flex-shrink: 0;
  box-sizing: border-box;
  padding: 0;
  overflow: hidden;
}

/* --- SLIDE 1: Embedded Terminal & Studio --- */
.tl-embedded-studio-wrap {
  width: 100%;
  height: 640px;
  background: #080c14;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.tl-embedded-studio-wrap .tl-modal-topbar {
  flex-shrink: 0;
  height: 44px;
}
.tl-embedded-studio-wrap .tl-modal-body {
  height: calc(640px - 44px) !important;
  flex: 1 1 auto;
}

/* --- SLIDE 2: Recent Signal Executions & Timeline Deck --- */
.tl-slide-content-pad {
  padding: 16px 20px;
  height: 100%;
  max-height: 640px;
  box-sizing: border-box;
  overflow: hidden;
}
.tl-timeline-deck-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}
.tl-timeline-title-area {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tl-timeline-deck-title {
  font-size: 0.90rem;
  font-weight: 700;
  color: #f1f5f9;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
}
.tl-timeline-count-badge {
  background: rgba(56, 152, 236, 0.15);
  border: 1px solid rgba(56, 152, 236, 0.3);
  color: #3898ec;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
}
.tl-timeline-filters {
  display: flex;
  gap: 6px;
}
.tl-filter-pill {
  background: #0f1523;
  border: 1px solid #1c2638;
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.tl-filter-pill:hover,
.tl-filter-pill.active {
  background: #1c2844;
  color: #3898ec;
  border-color: #2b3d63;
}

/* Layout Switcher Removed - Only Seamless Interactive is Active */

/* Base Trades Feed Container */
.tl-trades-feed {
  height: 544px;
  max-height: 544px;
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
  box-sizing: border-box;
}

/* ==========================================================================
   SPLIT DETAIL ENGINE: 3 SUB-VARIATIONS
   ========================================================================== */

/* VARIATION 1: Side-by-Side (Classic Split) */
.tl-trades-feed.layout-side-by-side {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 12px;
  height: 544px;
  max-height: 544px;
  overflow: hidden;
}

/* VARIATION 1: Classic Side-by-Side (50% / 50% technical stream) */
.tl-trades-feed.layout-side-by-side-classic {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 12px;
  height: 544px;
  max-height: 544px;
  overflow: hidden;
}
.tl-trades-feed.layout-side-by-side-classic .tl-split-right-workstation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

/* VARIATION 2: Telegram Web Replica Split (45% / 55%) */
.tl-trades-feed.layout-side-by-side-replica,
.tl-trades-feed.layout-side-by-side {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 12px;
  height: 544px;
  max-height: 544px;
  overflow: hidden;
}
.tl-trades-feed.layout-side-by-side-replica .tl-split-right-workstation,
.tl-trades-feed.layout-side-by-side .tl-split-right-workstation {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 12px;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

/* VARIATION 3: Pro Side-by-Side (40% / 60% with Telemetry Bar) */
.tl-trades-feed.layout-side-by-side-pro {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 12px;
  height: 544px;
  max-height: 544px;
  overflow: hidden;
}
.tl-trades-feed.layout-side-by-side-pro .tl-split-right-workstation {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  gap: 12px;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

/* VARIATION 1: Side-by-Side (Dual Panes) & VARIATION 2: Seamless Interactive */
.tl-trades-feed.layout-side-by-side-split,
.tl-trades-feed.layout-side-by-side-seamless {
  display: grid;
  grid-template-columns: 275px 1fr;
  gap: 14px;
  height: 560px;
  max-height: 560px;
  overflow: hidden;
}
.tl-split-detail-workstation {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
.tl-split-detail-workstation.no-intel-bar {
  gap: 0;
}
.tl-detail-panes-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
}
.tl-detail-panes-row.full-height {
  height: 100%;
}

/* VARIATION 2: Side-by-Side (Seamless Interactive) - NO Detail Pane Boxes */
.tl-seamless-workstation {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
.tl-seamless-panes-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  flex: 1 1 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}
.tl-seamless-col {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: transparent;
  border: none;
}
.tl-seamless-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 10px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 10px;
  flex-shrink: 0;
  gap: 8px;
}
.tl-seamless-col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tl-seamless-col-body {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: #202b3d transparent;
}
.tl-seamless-col-body::-webkit-scrollbar {
  width: 5px;
}
.tl-seamless-col-body::-webkit-scrollbar-thumb {
  background: #202b3d;
  border-radius: 3px;
}
.tl-seamless-col-body.centered-mode,
.tl-detail-pane-scroll.centered-mode {
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Mode Switch Pills: All Messages vs 1 at a Time (Center) */
.tl-tg-mode-switch-pills {
  display: inline-flex;
  align-items: center;
  background: #080c14;
  border: 1px solid #1a2538;
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
}
.tl-tg-mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid transparent;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.tl-tg-mode-btn:hover {
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.04);
}
.tl-tg-mode-btn.active {
  background: #142036;
  border-color: #223452;
  color: #3898ec;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* Center-Aligned Single Focused Message Canvas */
.tl-tg-center-canvas {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: auto 0;
  width: 100%;
  padding: 10px 8px;
  box-sizing: border-box;
  gap: 12px;
  animation: tlFadeIn 0.2s ease-out;
}
.tl-tg-focus-nav-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.tl-tg-focus-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.68rem;
  color: #94a3b8;
  background: rgba(56, 152, 236, 0.08);
  border: 1px solid rgba(56, 152, 236, 0.25);
  padding: 3px 12px;
  border-radius: 20px;
}
.tl-tg-focus-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3898ec;
  box-shadow: 0 0 6px #3898ec;
  animation: tl-pulse-ring 2s infinite;
}
.tl-tg-focus-badge strong {
  color: #38d39f;
  font-weight: 700;
}
.tl-tg-focus-count {
  font-size: 0.62rem;
  color: #64748b;
  font-family: monospace;
  padding-left: 6px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}
.tl-tg-msg-card.tl-tg-msg-card-centered {
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  border-color: #243550;
  background: #090e1a;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5), 0 0 1px rgba(56, 152, 236, 0.4);
}
.tl-tg-msg-card.tl-tg-msg-card-centered .tl-tg-raw-bubble {
  max-height: 230px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #202b3d transparent;
}
.tl-tg-msg-card.tl-tg-msg-card-centered .tl-tg-raw-bubble::-webkit-scrollbar {
  width: 4px;
}
.tl-tg-msg-card.tl-tg-msg-card-centered .tl-tg-raw-bubble::-webkit-scrollbar-thumb {
  background: #202b3d;
  border-radius: 2px;
}
.tl-tg-center-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.64rem;
  color: #64748b;
  text-align: center;
}
.animate-fade-in {
  animation: tlFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes tlFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Interactive Milestone Steps (Clickable with Selected State, No Hover Jumps) */
.tl-milestone-step {
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  transform: none !important;
  transition: none !important;
}
.tl-milestone-step:hover {
  transform: none !important;
}
.tl-milestone-step:hover .tl-milestone-step-content {
  border-color: #2b3e60;
  background: rgba(14, 21, 35, 0.9);
  transform: none !important;
}
.tl-milestone-step.selected-milestone .tl-milestone-step-content {
  border-color: #3898ec;
  background: rgba(16, 26, 44, 0.95);
  box-shadow: none;
}
.tl-milestone-step.selected-milestone .tl-milestone-step-node {
  border-color: #3898ec;
  color: #3898ec;
  background: #090e17;
  transform: none !important;
  box-shadow: none !important;
}
.tl-tg-msg-card.selected-msg {
  border-color: #3898ec;
  box-shadow: 0 0 14px rgba(56, 152, 236, 0.25);
}

/* Linked Telegram Stream (Classic Technical Feed) */
.tl-tg-chat-stream {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 4px;
}
.tl-tg-msg-card {
  background: #0b101c;
  border: 1px solid #19253b;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.15s ease;
}
.tl-tg-msg-card:hover {
  border-color: #2b3d63;
}
.tl-tg-msg-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.tl-tg-msg-id-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(34, 158, 217, 0.14);
  border: 1px solid rgba(34, 158, 217, 0.35);
  color: #38bdf8;
  font-family: 'SF Mono', Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}
.tl-tg-tag {
  font-size: 0.63rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 4px;
}
.tl-tg-tag.entry {
  background: rgba(56, 211, 159, 0.15);
  color: #38d39f;
  border: 1px solid rgba(56, 211, 159, 0.3);
}
.tl-tg-tag.take_partial_be,
.tl-tg-tag.partial {
  background: rgba(56, 152, 236, 0.15);
  color: #3898ec;
  border: 1px solid rgba(56, 152, 236, 0.3);
}
.tl-tg-tag.winner_secured,
.tl-tg-tag.winner {
  background: rgba(234, 179, 8, 0.15);
  color: #eab308;
  border: 1px solid rgba(234, 179, 8, 0.3);
}
.tl-tg-tag.stop_hit,
.tl-tg-tag.stop {
  background: rgba(255, 77, 97, 0.15);
  color: #ff4d61;
  border: 1px solid rgba(255, 77, 97, 0.3);
}
.tl-tg-msg-date {
  font-size: 0.67rem;
  color: #64748b;
  font-family: monospace;
}
.tl-tg-raw-bubble {
  font-family: 'SF Mono', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.72rem;
  line-height: 1.48;
  color: #e2e8f0;
  background: #060910;
  border: 1px solid #141c2c;
  padding: 8px 10px;
  border-radius: 6px;
  white-space: pre-wrap;
  word-break: break-word;
}
.tl-tg-bot-action-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 500;
  color: #94a3b8;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.02);
  border-left: 2px solid #3898ec;
  border-radius: 0 4px 4px 0;
}
.tl-tg-bot-action-row svg {
  color: #3898ec;
  flex-shrink: 0;
}

/* Left Signal Cards Roster (Positioned under vertical timeline icons) */
.tl-split-signals-list {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  height: 100%;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: #202b3d transparent;
}
.tl-split-signals-list::-webkit-scrollbar {
  width: 5px;
}
.tl-split-signals-list::-webkit-scrollbar-thumb {
  background: #202b3d;
  border-radius: 3px;
}

.tl-split-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0b0f17;
  border: 1px solid #1a2334;
  border-radius: 8px;
  padding: 9px 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.tl-split-card:hover {
  background: #0e1422;
  border-color: #2b3d63;
}
.tl-split-card.active {
  background: #10182b;
  border-color: #3898ec;
  box-shadow: 0 0 12px rgba(56, 152, 236, 0.2);
}
.tl-split-card-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tl-split-card-pair {
  font-size: 0.84rem;
  font-weight: 700;
  color: #ffffff;
}
.tl-split-card-time {
  font-size: 0.67rem;
  color: #64748b;
}
.tl-split-card-right {
  display: flex;
  align-items: center;
  gap: 6px;
}
.tl-msg-count-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.65rem;
  font-weight: 700;
  color: #3898ec;
  background: rgba(56, 152, 236, 0.12);
  border: 1px solid rgba(56, 152, 236, 0.25);
  padding: 2px 6px;
  border-radius: 10px;
}

/* Generic Detail Pane Box */
.tl-detail-pane-box {
  background: #080c14;
  border: 1px solid #151d2c;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
  min-height: 0;
}
.tl-detail-pane-header {
  padding: 8px 12px;
  background: #0b101b;
  border-bottom: 1px solid #162033;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.tl-detail-pane-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tl-detail-pane-scroll {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: #202b3d transparent;
}
.tl-detail-pane-scroll::-webkit-scrollbar {
  width: 5px;
}
.tl-detail-pane-scroll::-webkit-scrollbar-thumb {
  background: #202b3d;
  border-radius: 3px;
}

/* ==========================================================================
   STRUCTURED MILESTONES STEPPER (ZERO DOTS, CLEAN SPEC GRID)
   ========================================================================== */
.tl-milestone-stepper {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 32px;
  width: 100%;
  box-sizing: border-box;
}
.tl-milestone-stepper::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 12px;
  left: 11px;
  width: 2px;
  background: #1e293b;
  border-radius: 2px;
}
.tl-milestone-step {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
}
.tl-milestone-step-node {
  position: absolute;
  left: -30px;
  top: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #090e17;
  border: 1.5px solid #2a374f;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-sizing: border-box;
  transform: none !important;
  box-shadow: none !important;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.tl-milestone-step.completed .tl-milestone-step-node {
  border: 1.5px solid #10b981;
  background: #090e17;
  color: #10b981;
  box-shadow: none !important;
  transform: none !important;
}
.tl-milestone-step.active .tl-milestone-step-node {
  border: 1.5px solid #3898ec;
  background: #090e17;
  color: #3898ec;
  box-shadow: none !important;
  transform: none !important;
  animation: none !important;
}
.tl-milestone-step.winner .tl-milestone-step-node {
  border: 1.5px solid #f59e0b;
  background: #090e17;
  color: #f59e0b;
  box-shadow: none !important;
  transform: none !important;
}
.tl-milestone-step.stop-hit .tl-milestone-step-node {
  border: 1.5px solid #ef4444;
  background: #090e17;
  color: #ef4444;
  box-shadow: none !important;
  transform: none !important;
}
.tl-milestone-step.pending .tl-milestone-step-node {
  border: 1.5px dashed #475569;
  background: #090e17;
  color: #64748b;
  box-shadow: none !important;
  transform: none !important;
}

.tl-node-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 6px #ffffff;
}

/* Milestone Step Content Card */
.tl-milestone-step-content {
  background: rgba(11, 16, 27, 0.7);
  border: 1px solid #1a253a;
  border-radius: 8px;
  padding: 9px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  backdrop-filter: blur(4px);
  transition: all 0.15s ease;
}
.tl-milestone-step-content:hover {
  border-color: #2b3e60;
  background: rgba(13, 19, 32, 0.85);
}

/* Step Header */
.tl-milestone-step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.tl-step-badge {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 4px;
}
.tl-step-badge.opened {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.tl-step-badge.partial {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}
.tl-step-badge.winner {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.35);
}
.tl-step-badge.stop {
  background: rgba(248, 113, 113, 0.15);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.3);
}
.tl-step-badge.pending {
  background: rgba(100, 116, 139, 0.12);
  color: #94a3b8;
  border: 1px dashed rgba(100, 116, 139, 0.25);
}
.tl-step-time {
  font-size: 0.66rem;
  color: #64748b;
  font-family: monospace;
}
.tl-step-title {
  font-size: 0.79rem;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.35;
}

/* Sleek Horizontal Micro-Parameter Chips */
.tl-step-param-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  margin-top: 2px;
}
.tl-param-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.67rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 5px;
  background: #080c14;
  border: 1px solid #172132;
  color: #cbd5e1;
}
.tl-param-chip.sl {
  border-color: rgba(248, 113, 113, 0.25);
  background: rgba(248, 113, 113, 0.06);
  color: #fca5a5;
}
.tl-param-chip.tp {
  border-color: rgba(52, 211, 153, 0.25);
  background: rgba(52, 211, 153, 0.06);
  color: #6ee7b7;
}
.tl-param-chip.be {
  border-color: rgba(56, 189, 248, 0.25);
  background: rgba(56, 189, 248, 0.06);
  color: #7dd3fc;
}
.tl-param-chip.order {
  border-color: rgba(167, 139, 250, 0.25);
  background: rgba(167, 139, 250, 0.06);
  color: #c4b5fd;
}
.tl-param-chip.lot {
  border-color: rgba(251, 191, 36, 0.25);
  background: rgba(251, 191, 36, 0.06);
  color: #fde047;
}
.tl-param-chip.default {
  border-color: #1e293b;
  background: rgba(30, 41, 59, 0.4);
  color: #cbd5e1;
}

.tl-param-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}
.tl-param-dot.sl { background: #f87171; box-shadow: 0 0 4px #f87171; }
.tl-param-dot.tp { background: #34d399; box-shadow: 0 0 4px #34d399; }
.tl-param-dot.be { background: #38bdf8; box-shadow: 0 0 4px #38bdf8; }
.tl-param-dot.order { background: #a78bfa; }
.tl-param-dot.lot { background: #fbbf24; }
.tl-param-dot.default { background: #94a3b8; }

.tl-param-chip-lbl {
  color: #64748b;
  font-size: 0.60rem;
  text-transform: uppercase;
  font-weight: 700;
}
.tl-param-chip-val {
  font-family: monospace;
  font-weight: 700;
}

.tl-step-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.69rem;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 5px;
  padding: 4px 8px;
  margin-top: 2px;
}
.tl-step-note svg {
  color: #3898ec;
  flex-shrink: 0;
}

/* Top Milestone Ribbon (Used in Chat Focus variation) */
.tl-milestone-ribbon {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #0b101c;
  border: 1px solid #162033;
  border-radius: 8px;
  overflow-x: auto;
  flex-shrink: 0;
}
.tl-ribbon-step-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.70rem;
  font-weight: 600;
  color: #94a3b8;
  white-space: nowrap;
}
.tl-ribbon-step-item.active {
  color: #3898ec;
  font-weight: 700;
}
.tl-ribbon-step-item.completed {
  color: #38d39f;
}
.tl-ribbon-arrow {
  color: #475569;
  font-size: 0.70rem;
}

/* ==========================================================================
   AUTHENTIC TELEGRAM WEB REPLICA CHAT STYLES
   ========================================================================== */
.tl-tg-replica-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: #0e1621;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

/* Telegram Channel Top Header Bar */
.tl-tg-app-header {
  height: 48px;
  background: #17212b;
  border-bottom: 1px solid #101921;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  flex-shrink: 0;
  z-index: 5;
}
.tl-tg-app-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tl-tg-channel-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2AABEE 0%, #229ED9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}
.tl-tg-channel-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.tl-tg-channel-title {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.01em;
}
.tl-tg-verified-icon {
  color: #2AABEE;
  flex-shrink: 0;
}
.tl-tg-channel-subtitle {
  font-size: 0.67rem;
  color: #7f91a4;
}

/* Header Right Actions & View Mode Switcher */
.tl-tg-app-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tl-tg-view-toggle {
  display: flex;
  align-items: center;
  background: #0e1621;
  border: 1px solid #242f3d;
  border-radius: 6px;
  padding: 2px;
}
.tl-tg-view-btn {
  background: transparent;
  border: none;
  color: #7f91a4;
  font-size: 0.67rem;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}
.tl-tg-view-btn:hover {
  color: #ffffff;
}
.tl-tg-view-btn.active {
  background: #2b5278;
  color: #ffffff;
}

/* Telegram Chat Messages Canvas with Wallpaper */
.tl-tg-chat-canvas {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background-color: #0e1621;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(36, 47, 61, 0.4) 0%, transparent 20%),
    radial-gradient(circle at 80% 80%, rgba(43, 82, 120, 0.25) 0%, transparent 25%),
    linear-gradient(rgba(14, 22, 33, 0.94), rgba(14, 22, 33, 0.94));
  scrollbar-width: thin;
  scrollbar-color: #242f3d transparent;
}
.tl-tg-chat-canvas::-webkit-scrollbar {
  width: 5px;
}
.tl-tg-chat-canvas::-webkit-scrollbar-thumb {
  background: #242f3d;
  border-radius: 3px;
}

/* Telegram Date Divider */
.tl-tg-date-divider {
  align-self: center;
  background: rgba(14, 22, 33, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #7f91a4;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 12px;
  backdrop-filter: blur(4px);
  margin: 4px 0;
}

/* Telegram Speech Bubble */
.tl-tg-bubble-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-width: 90%;
  align-self: flex-start;
}
.tl-tg-bubble {
  background: #182533;
  border-radius: 12px 12px 12px 3px;
  padding: 8px 12px 6px 12px;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tl-tg-bubble-sender-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 4px;
}
.tl-tg-sender-author {
  font-size: 0.76rem;
  font-weight: 700;
  color: #5ea6e0;
  display: flex;
  align-items: center;
  gap: 5px;
}
.tl-tg-bubble-msgid {
  font-family: 'SF Mono', Consolas, monospace;
  font-size: 0.65rem;
  font-weight: 700;
  color: #4fa4e6;
  background: rgba(79, 164, 230, 0.12);
  border: 1px solid rgba(79, 164, 230, 0.25);
  padding: 1px 5px;
  border-radius: 4px;
}
.tl-tg-forward-note {
  font-size: 0.68rem;
  color: #7f91a4;
  display: flex;
  align-items: center;
  gap: 4px;
  font-style: italic;
}

/* Telegram Message Text Body */
.tl-tg-bubble-text {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.80rem;
  line-height: 1.48;
  color: #f5f5f5;
  white-space: pre-wrap;
  word-break: break-word;
  padding: 2px 0 4px 0;
}
.tl-tg-bubble-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: -2px;
}
.tl-tg-bubble-time {
  font-size: 0.64rem;
  color: #7f91a4;
}
.tl-tg-read-checkmarks {
  color: #5ea6e0;
  font-size: 0.70rem;
  letter-spacing: -2px;
  font-weight: 900;
}

/* Telegram Reactions Row */
.tl-tg-reactions-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 1px;
}
.tl-tg-reaction-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 2px 7px;
  font-size: 0.68rem;
  font-weight: 600;
  color: #e1e3e6;
  display: flex;
  align-items: center;
  gap: 3px;
  cursor: default;
}

/* Telegram Service Message (Execution Tag) */
.tl-tg-service-message {
  align-self: center;
  background: rgba(14, 22, 33, 0.85);
  border: 1px solid rgba(56, 152, 236, 0.25);
  color: #94a3b8;
  font-size: 0.68rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 2px 0 4px 0;
}
.tl-tg-service-message svg {
  color: #3898ec;
}
.tl-tg-service-message strong {
  color: #3898ec;
}

/* Technical View Card Styles */
.tl-tech-chat-view {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tl-tech-msg-card {
  background: #0b101c;
  border: 1px solid #19253b;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tl-tech-msg-card:hover {
  border-color: #253757;
}
.tl-tech-msg-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.tl-tech-raw-bubble {
  font-family: 'SF Mono', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.71rem;
  line-height: 1.45;
  color: #e2e8f0;
  background: #060910;
  border: 1px solid #141c2c;
  padding: 8px 10px;
  border-radius: 6px;
  white-space: pre-wrap;
  word-break: break-word;
}
.tl-tech-action-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 500;
  color: #94a3b8;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.02);
  border-left: 2px solid #3898ec;
  border-radius: 0 4px 4px 0;
}


/* Original Single-Card Legacy Classes for Backward Compatibility */
.tl-signal-card {
  background: #0b0f17;
  border: 1px solid #1a2334;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.2s ease;
  flex-shrink: 0 !important;
  min-height: 58px;
  width: 100%;
  box-sizing: border-box;
}
.tl-signal-card:hover {
  border-color: #2b3c5a;
  background: #0e1320;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
.tl-signal-card.expanded {
  border-color: #3898ec;
  background: #0b0f17;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}

.tl-signal-card-main {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  gap: 14px;
}
.tl-signal-left-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tl-signal-side-badge {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.tl-signal-side-badge.sell {
  background: rgba(255, 77, 97, 0.15);
  color: #ff4d61;
  border: 1px solid rgba(255, 77, 97, 0.3);
}
.tl-signal-side-badge.buy {
  background: rgba(56, 211, 159, 0.15);
  color: #38d39f;
  border: 1px solid rgba(56, 211, 159, 0.3);
}

.tl-signal-pair-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tl-signal-pair-name {
  font-size: 0.90rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tl-signal-datetime {
  font-size: 0.70rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tl-signal-datetime svg {
  color: #475569;
}

.tl-signal-middle-params {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.78rem;
}
.tl-param-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.tl-param-label {
  font-size: 0.64rem;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 600;
}
.tl-param-value {
  font-weight: 700;
  color: #cbd5e1;
}

.tl-signal-right-action {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tl-status-chip {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}
.tl-status-chip.open {
  background: rgba(56, 152, 236, 0.15);
  color: #3898ec;
  border: 1px solid rgba(56, 152, 236, 0.3);
}
.tl-status-chip.closed {
  background: rgba(100, 116, 139, 0.2);
  color: #94a3b8;
  border: 1px solid rgba(100, 116, 139, 0.3);
}
.tl-status-chip.winner {
  background: rgba(56, 211, 159, 0.15);
  color: #38d39f;
  border: 1px solid rgba(56, 211, 159, 0.3);
}
.tl-timeline-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #0f1523;
  border: 1px solid #1c2638;
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.tl-signal-card.expanded .tl-timeline-toggle-btn {
  background: #1c2844;
  color: #3898ec;
  border-color: #3898ec;
}
.tl-timeline-toggle-btn svg {
  transition: transform 0.2s ease;
}
.tl-signal-card.expanded .tl-timeline-toggle-btn svg {
  transform: rotate(180deg);
}

/* --- Stacked Vertical Timeline Drawer --- */
.tl-timeline-drawer {
  display: none;
  background: #080c14;
  border-top: 1px solid #151d2c;
  padding: 16px 20px 20px 20px;
}
.tl-signal-card.expanded .tl-timeline-drawer {
  display: block;
}

.tl-vertical-timeline {
  position: relative;
  padding-left: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.tl-vertical-timeline::before {
  content: '';
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 9px;
  width: 2px;
  background: #1a2334;
}

.tl-timeline-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tl-timeline-step-node {
  position: absolute;
  left: -28px;
  top: 1px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #0b0f17;
  border: 2px solid #2a374f;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.tl-timeline-step-node::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #64748b;
}

/* Step Node States */
.tl-timeline-step.completed .tl-timeline-step-node {
  border-color: #38d39f;
  background: #081a14;
}
.tl-timeline-step.completed .tl-timeline-step-node::after {
  background: #38d39f;
  box-shadow: 0 0 6px rgba(56, 211, 159, 0.8);
}

.tl-timeline-step.active .tl-timeline-step-node {
  border-color: #3898ec;
  background: #0a192f;
  animation: tl-pulse-ring 2s infinite;
}
.tl-timeline-step.active .tl-timeline-step-node::after {
  background: #3898ec;
  box-shadow: 0 0 8px rgba(56, 152, 236, 0.9);
}

.tl-timeline-step.stop-hit .tl-timeline-step-node {
  border-color: #ff4d61;
  background: #1f0b0e;
}
.tl-timeline-step.stop-hit .tl-timeline-step-node::after {
  background: #ff4d61;
  box-shadow: 0 0 6px rgba(255, 77, 97, 0.8);
}

.tl-timeline-step.pending .tl-timeline-step-node {
  border-style: dashed;
  border-color: #2b3548;
}
.tl-timeline-step.pending .tl-timeline-step-node::after {
  background: #334155;
}

@keyframes tl-pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(56, 152, 236, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(56, 152, 236, 0); }
  100% { box-shadow: 0 0 0 0 rgba(56, 152, 236, 0); }
}

.tl-timeline-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tl-step-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tl-step-time {
  font-size: 0.70rem;
  color: #64748b;
  font-family: monospace;
}
.tl-step-details {
  font-size: 0.74rem;
  color: #94a3b8;
  line-height: 1.4;
  background: rgba(15, 23, 42, 0.6);
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #1a2334;
  margin-top: 2px;
}

/* --- SLIDE 3: Embedded Configure Account --- */
.tl-embedded-config-card {
  background: #080c14;
  border: 1px solid #1c2638;
  border-radius: 12px;
  padding: 24px;
}
.tl-config-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 768px) {
  .tl-config-grid-2col {
    grid-template-columns: 1fr;
  }
}
.tl-cfg-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tl-cfg-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: #94a3b8;
}
.tl-cfg-sub {
  font-size: 0.68rem;
  color: #64748b;
}
.tl-cfg-input, .tl-cfg-select {
  background: #0c1017;
  border: 1px solid #1c2638;
  border-radius: 6px;
  color: #ffffff;
  padding: 8px 12px;
  font-size: 0.82rem;
  outline: none;
  transition: border-color 0.15s ease;
}
.tl-cfg-input:focus, .tl-cfg-select:focus {
  border-color: #3898ec;
}
.tl-config-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #1a2334;
  flex-wrap: wrap;
  gap: 12px;
}

/* --- SLIDE 4: Automation Cockpit Stats Grid --- */
.tl-slide-cockpit-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
@media (max-width: 768px) {
  .tl-slide-cockpit-stats {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   V1: WORKSTATION (ORDER DESK & SIGNAL STATION SIDE-BY-SIDE AT ONCE)
   ========================================================================== */
.tl-2p-v1 {
  display: none;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: #080c14;
}
.tl-2p-v1.active {
  display: flex !important;
}

.tl-v1-station-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  background: #0b0f17;
  border-bottom: 1px solid #1a2233;
  flex-shrink: 0;
}

.tl-v1-dual-grid {
  display: grid;
  grid-template-columns: minmax(360px, 420px) 1fr;
  gap: 12px;
  padding: 12px 16px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  box-sizing: border-box;
  background: #080c14;
}

.tl-v1-col {
  background: #0d121c;
  border: 1px solid #1a2336;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: #232f45 transparent;
}
.tl-v1-col::-webkit-scrollbar {
  width: 5px;
}
.tl-v1-col::-webkit-scrollbar-track {
  background: transparent;
}
.tl-v1-col::-webkit-scrollbar-thumb {
  background: #232f45;
  border-radius: 3px;
}

.tl-pane-section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #3898ec;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-bottom: 6px;
  border-bottom: 1px solid #172030;
}

.tl-sym-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tl-sym-flag {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  vertical-align: middle;
  flex-shrink: 0;
}

.tl-sym-flag img,
.tl-sym-flag .chakra-image {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  display: inline-block;
  vertical-align: middle;
}

/* -------------------------------------------------------------------------- */
/* Multi-Account Manager Direct Layout (Slide 3)                             */
/* -------------------------------------------------------------------------- */
.tl-slide-content-pad.tl-multi-account-layout {
  display: flex;
  flex-direction: row;
  gap: 16px;
  height: 100%;
  max-height: 640px;
  box-sizing: border-box;
  padding: 16px 20px;
  overflow: hidden;
}

@media (max-width: 900px) {
  .tl-slide-content-pad.tl-multi-account-layout {
    flex-direction: column;
    overflow-y: auto;
  }
}

/* Left Profiles Sidebar */
.tl-profiles-sidebar {
  display: flex;
  flex-direction: column;
  width: 250px;
  min-width: 250px;
  max-width: 250px;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  background: #0b0f17;
  border: 1px solid #1a2334;
  border-radius: 10px;
  padding: 14px;
  box-sizing: border-box;
  overflow: hidden;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .tl-profiles-sidebar {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 220px;
  }
}

.tl-profiles-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid #1a2334;
  flex-shrink: 0;
}

.tl-profiles-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tl-profiles-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  margin: 10px 0;
  scrollbar-width: thin;
  scrollbar-color: #232f45 transparent;
}
.tl-profiles-list::-webkit-scrollbar {
  width: 5px;
}
.tl-profiles-list::-webkit-scrollbar-thumb {
  background: #232f45;
  border-radius: 3px;
}

.tl-profile-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  flex-shrink: 0;
}

.tl-profile-item:hover {
  background: #162032;
  border-color: #334155;
  transform: translateY(-1px);
}

.tl-profile-item.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(14, 165, 233, 0.12));
  border-color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.15);
}

.tl-profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.tl-profile-dot {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid #0f172a;
}
.tl-profile-dot.online { background: #10b981; }
.tl-profile-dot.dry-run { background: #f59e0b; }
.tl-profile-dot.offline { background: #64748b; }

.tl-profile-info {
  flex: 1;
  min-width: 0;
}

.tl-profile-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.tl-profile-meta {
  font-size: 0.68rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.tl-btn-add-profile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 12px;
  background: rgba(14, 165, 233, 0.08);
  border: 1px dashed rgba(56, 189, 248, 0.4);
  border-radius: 8px;
  color: #38bdf8;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-top: auto;
}

.tl-btn-add-profile:hover {
  background: rgba(14, 165, 233, 0.18);
  border-color: #38bdf8;
  color: #ffffff;
}

/* Main Right Account Editor Panel */
.tl-account-editor-panel {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  background: #0b0f17;
  border: 1px solid #1a2334;
  border-radius: 10px;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 900px) {
  .tl-account-editor-panel {
    height: auto;
    flex: 1 0 auto;
  }
}

.tl-editor-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid #1a2334;
  background: #0d121c;
  flex-shrink: 0;
  gap: 12px;
}

.tl-editor-banner-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tl-editor-avatar-lg {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  color: #ffffff;
  font-size: 1.0rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
  flex-shrink: 0;
}

.tl-editor-title-box h4 {
  font-size: 0.94rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tl-editor-title-box span {
  font-size: 0.70rem;
  color: #64748b;
}

.tl-btn-delete-profile {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tl-btn-delete-profile:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #ffffff;
}

/* Scrollable Form Body with Thin Scrollbar */
.tl-editor-scrollable-body {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px 18px;
  scrollbar-width: thin;
  scrollbar-color: #232f45 transparent;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tl-editor-scrollable-body::-webkit-scrollbar {
  width: 6px;
}
.tl-editor-scrollable-body::-webkit-scrollbar-track {
  background: transparent;
}
.tl-editor-scrollable-body::-webkit-scrollbar-thumb {
  background: #232f45;
  border-radius: 3px;
}
.tl-editor-scrollable-body::-webkit-scrollbar-thumb:hover {
  background: #3898ec;
}

/* Fixed Bottom Action Row */
.tl-account-editor-panel .tl-config-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-top: 1px solid #1a2334;
  background: #080c14;
  flex-shrink: 0;
  gap: 12px;
  margin-top: 0 !important;
}



