/* =============================================================================
   FLOWORK OS — NANO-MODULAR COMPONENT: SIDEBAR_SESSIONS.CSS
   Author: Flowork OS Sovereign Architect & Awenk Audico
   Co-authored-by: Flowork OS <agent@floworkos.com>
   ============================================================================= */

/* =============================================================================
   CANVAS LAYOUT & DRFLOW SIDEBAR: CRT "TV RUSAK" V-SYNC TRACKING ROLL
   ========================================================================== */
.canvas-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
  position: relative;
  padding: 12px 20px 16px 20px;
  gap: 16px;
  clip-path: none !important;
  -webkit-clip-path: none !important;
  transition: all 0.3s ease;
}

/* 1. Sidebar Frame: Authentic Interlaced CRT Scanlines */
.sidebar-dock {
  width: var(--sidebar-width, 268px);
  min-width: var(--sidebar-min-width, 180px);
  max-width: var(--sidebar-max-width, 650px);
  background-color: rgba(4, 8, 16, 0.25) !important;
  background-image: 
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.35) 0px,
      rgba(0, 0, 0, 0.35) 1.5px,
      transparent 1.5px,
      transparent 3px
    ) !important;
  border: 1px solid rgba(0, 229, 255, 0.22) !important;
  border-radius: 14px !important;
  box-shadow: 
    4px 0 25px rgba(0, 0, 0, 0.4),
    inset -1px 0 0 rgba(0, 229, 255, 0.15) !important;
  position: relative !important;
  overflow: hidden !important;
  flex-shrink: 0;
  height: 100%;
  transform: none !important;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 0.25s ease;
  z-index: 25;
  display: flex;
  flex-direction: column;
}

/* 2. Single Up-Down CRT "TV Rusak" Rolling Tracking Bar */
.sidebar-dock::before {
  content: "" !important;
  display: none !important;
  animation: none !important;
}

/* 3. CRT "TV Rusak" Jitter & Tracking Flicker Animation (Ke Atas Ke Bawah) */
@keyframes flw-tv-rusak-updown {
  0% {
    top: -20px;
    opacity: 0.35;
    filter: brightness(1);
    transform: scaleX(1);
  }
  18% {
    opacity: 0.85;
    filter: brightness(1.2);
  }
  34% {
    top: 36%;
    opacity: 0.7;
    filter: brightness(1);
    transform: scaleX(1);
  }
  35.5% {
    top: 38%;
    opacity: 1;
    filter: brightness(2.2) contrast(1.6);
    transform: scaleX(1.05) translateX(3px);
  }
  37% {
    top: 36.8%;
    opacity: 0.75;
    filter: brightness(1.1);
    transform: scaleX(1) translateX(0);
  }
  58% {
    top: 62%;
    opacity: 0.8;
    filter: brightness(1.15);
  }
  71% {
    top: 76%;
    opacity: 0.65;
    filter: brightness(1);
    transform: scaleX(1);
  }
  72.5% {
    top: 74.8%;
    opacity: 1;
    filter: brightness(2.4);
    transform: scaleX(0.96) translateX(-3px);
  }
  74% {
    top: 77%;
    opacity: 0.75;
    filter: brightness(1.15);
    transform: scaleX(1) translateX(0);
  }
  88% {
    opacity: 0.9;
    filter: brightness(1.3);
  }
  100% {
    top: calc(100% + 15px);
    opacity: 0.35;
    filter: brightness(1);
    transform: scaleX(1);
  }
}

.sidebar-dock.collapsed {
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateX(-30px) scale(0.96);
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

/* ==========================================================================
   LAYOUT RESIZERS (Interactive Splitters • Cyber-Bubblegum Glow)
   ========================================================================== */
.layout-resizer {
  width: 14px;
  height: 100%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: col-resize;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  z-index: 30;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.layout-resizer.collapsed,
.sidebar-dock.collapsed + .resizer-left,
.resizer-right:has(+ .rightbar-chat.collapsed) {
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
  display: none !important;
}

/* Wide hit area */
.layout-resizer::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -4px;
  right: -4px;
  border-radius: 9999px;
  background: transparent;
  transition: background 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.layout-resizer:hover::before,
.layout-resizer.is-active::before {
  background: radial-gradient(ellipse at center, rgba(255, 59, 136, 0.14) 0%, transparent 80%);
}

/* Aerodynamic grip knob */
.resizer-knob {
  width: 4px;
  height: 42px;
  border-radius: 9999px;
  background: rgba(255, 92, 157, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  position: relative;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.resizer-knob::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2px;
  height: 14px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.35);
  transition: all 0.22s ease;
}

.layout-resizer:hover .resizer-knob {
  width: 5px;
  height: 62px;
  background: var(--bubble-pink);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 14px var(--bubble-pink), 0 0 4px #ffffff;
}

.layout-resizer:hover .resizer-knob::after {
  height: 22px;
  background: #ffffff;
}

.layout-resizer.is-active .resizer-knob {
  width: 6px;
  height: 80px;
  background: var(--bubble-pink);
  border-color: #ffffff;
  box-shadow: 0 0 22px var(--bubble-pink-glow), 0 0 8px #ffffff;
}

.layout-resizer.is-active .resizer-knob::after {
  height: 28px;
  background: #ffffff;
}

/* Global resizing mode */
body.is-resizing,
body.is-resizing * {
  user-select: none !important;
  -webkit-user-select: none !important;
  cursor: col-resize !important;
}

body.is-resizing iframe {
  pointer-events: none !important;
}

body.is-resizing .sidebar-dock,
body.is-resizing .rightbar-chat,
body.is-resizing .workbench-main,
body.is-resizing .layout-resizer {
  transition: none !important;
}

/* Ambient Top Reflection Crest */
.dock-glow-crest {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 90px;
  background: radial-gradient(ellipse, rgba(255, 59, 136, 0.28) 0%, rgba(0, 229, 255, 0.12) 50%, transparent 75%);
  border-radius: 9999px;
  pointer-events: none;
  z-index: 1;
}

/* Inner Ergonomic Pod Content */
.dock-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.dock-inner::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.sidebar-dock.collapsed .dock-inner {
  transform: translateX(-20px);
  opacity: 0;
}

/* Organic Pill Category Chips (Stark HUD) */
.dock-category-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.25);
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 10px;
  align-self: flex-start;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.category-chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background-color: #00e5ff;
  box-shadow: 0 0 8px #00e5ff;
}

.category-chip-dot.beacon-cyan {
  background-color: #00e5ff;
  box-shadow: 0 0 8px #00e5ff;
}

.category-chip-dot.beacon-grape {
  background-color: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
}

.category-chip-text {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.3px;
  color: #38bdf8;
  font-family: var(--font-mono);
}

/* Fallback for backward compatibility */
.dock-category-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #38bdf8;
  padding: 0 10px;
  margin-bottom: 8px;
  font-family: var(--font-mono);
}

/* Fluid Pill Navigation Items (DRFLOW Cyber Hover & Active) */
.dock-pill-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  position: relative;
}

.dock-pill-item:hover {
  background: rgba(0, 229, 255, 0.08);
  border-color: rgba(0, 229, 255, 0.35);
  color: #ffffff;
  transform: translateX(3px);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.2), inset 0 0 6px rgba(0, 229, 255, 0.1);
}

.dock-pill-item.active {
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.22) 0%, rgba(2, 132, 199, 0.12) 100%);
  color: #ffffff;
  border: 1px solid rgba(0, 229, 255, 0.6);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.3), inset 0 0 10px rgba(0, 229, 255, 0.15);
}

.dock-pill-item.active::after {
  content: '';
  position: absolute;
  right: 12px;
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background-color: #00e5ff;
  box-shadow: 0 0 10px #00e5ff;
}

.dock-item-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.2);
  display: grid;
  place-items: center;
  font-size: 13px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.dock-pill-item:hover .dock-item-icon {
  background: rgba(0, 229, 255, 0.25);
  border-color: #00e5ff;
  transform: scale(1.08);
}

.dock-pill-item.active .dock-item-icon {
  background: rgba(0, 229, 255, 0.35);
  border-color: #00e5ff;
  color: #ffffff;
}

.dock-item-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.dock-plugins-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.dock-plugins-nav::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.dock-bottom-pane {
  margin-top: auto;
  padding-top: 16px;
}

/* Organic Pebble Capsule Card (Stark HUD) */
.hotplug-capsule-card {
  background: radial-gradient(circle at 50% 0%, #0c2340 0%, #030712 100%);
  border: 1px solid rgba(0, 229, 255, 0.28);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.hotplug-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.hotplug-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-main);
  font-family: var(--font-mono);
}

.hotplug-caption {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.45;
}

.hotplug-caption code {
  color: #00e5ff;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.25);
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 9999px;
}

/* ==========================================================================
   WORKBENCH & TAB CAPSULES (MR.FLOW SOVEREIGN CLEAN CODE CANVAS)
   ========================================================================== */
.workbench-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(4, 10, 22, 0.22) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-radius: 14px;
  border: 1px solid rgba(0, 229, 255, 0.22) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 0 24px rgba(0, 229, 255, 0.02) !important;
  position: relative;
  transform: none !important;
  transition: border-color 0.25s ease;
  margin-top: 10px;
  margin-bottom: 10px;
  height: calc(100% - 20px);
}

/* ==========================================================================
   WORKBENCH COLLAPSED & FULL CHAT EXPANSION SYSTEM
   ========================================================================== */
.workbench-main.collapsed {
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  flex: 0 0 0% !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  border-width: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
  display: none !important;
}

/* Full Chat: Rightbar chat expands to 100% width */
.canvas-layout.full-chat .rightbar-chat,
.workbench-main.collapsed ~ .rightbar-chat {
  flex: 1 1 100% !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  border-radius: 14px;
  box-shadow: 0 0 32px rgba(0, 0, 0, 0.6) !important;
}

/* Hide resizers in Full Chat */
.canvas-layout.full-chat .resizer-right,
.canvas-layout.full-chat .rightbar-resizer,
.workbench-main.collapsed ~ .resizer-right,
.workbench-main.collapsed + .resizer-right {
  display: none !important;
  width: 0 !important;
  min-width: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Tab Strip Quick Action Button */
.tab-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(0, 229, 255, 0.22);
  border-radius: 6px;
  color: #94a3b8;
  font-family: var(--font-mono);
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  margin-left: auto;
}

.tab-action-btn:hover {
  background: rgba(255, 59, 136, 0.15);
  border-color: rgba(255, 59, 136, 0.5);
  color: #ff3b88;
  box-shadow: 0 0 12px rgba(255, 59, 136, 0.25);
  transform: translateY(-1px);
}

.tab-action-btn svg {
  pointer-events: none;
}

/* Comfortable wide reading column in Full Chat mode (Claude / ChatGPT standard) */
.canvas-layout.full-chat .rightbar-chat-messages > * {
  max-width: 1040px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.canvas-layout.full-chat .rightbar-chat-footer .chat-input-box,
.canvas-layout.full-chat .rightbar-chat-footer .fl-queue-card,
.canvas-layout.full-chat .rightbar-chat-footer .chat-input-hints-row {
  max-width: 1040px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.canvas-layout.full-chat .rightbar-chat-footer .fl-loop-sys-bar {
  max-width: 1040px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.canvas-layout.full-chat .fl-top-status-bar,
.canvas-layout.full-chat .fl-pinned-prompt-bar {
  max-width: 1040px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.chat-btn-action.is-active {
  color: #00e5ff !important;
  border-color: rgba(0, 229, 255, 0.5) !important;
  background: rgba(0, 229, 255, 0.16) !important;
}

.tab-strip {
  height: 44px;
  background: transparent !important;
  border-bottom: 1px solid rgba(0, 229, 255, 0.18) !important;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 8px;
  overflow-x: auto;
  flex-shrink: 0;
}

.tab-capsule {
  height: 32px;
  padding: 0 14px;
  border-radius: 6px 6px 0 0;
  background: transparent !important;
  border: 1px solid transparent !important;
  border-bottom: none !important;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
  max-width: 220px;
  min-width: 0;
  overflow: hidden;
}

.tab-label {
  display: inline-block;
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.tab-capsule:hover {
  background-color: rgba(0, 229, 255, 0.05) !important;
  color: #e2e8f0;
}

/* Active Tab: Cyber Top-Laser Card */
.tab-capsule.active {
  background: rgba(0, 229, 255, 0.08) !important;
  border: 1px solid rgba(0, 229, 255, 0.35) !important;
  border-bottom: 2px solid #00e5ff !important;
  border-top: 1px solid rgba(0, 229, 255, 0.6) !important;
  color: #00e5ff !important;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.25) !important;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.6) !important;
}

.tab-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 9999px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-left: 4px;
  transition: all 0.15s ease;
}

.tab-capsule:not(.active) .tab-close-btn {
  color: #64748b;
}

.tab-close-btn:hover {
  background-color: rgba(239, 68, 68, 0.35);
  color: #ffffff;
}

/* ==========================================================================
   VIEWPORT STAGE
   ========================================================================== */
.viewport-stage {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.view-panel {
  position: absolute;
  inset: 0;
  display: none;
  content-visibility: hidden;
  overflow-y: auto;
  padding: 28px 36px;
}

.view-panel:has(.plugin-iframe),
.view-panel.view-panel-plugin {
  padding: 0 !important;
  overflow: hidden !important;
}

.view-panel.active {
  display: block;
  content-visibility: visible;
}

.plugin-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background-color: transparent;
}

/* ==========================================================================
   AERODYNAMIC COCKPIT HERO (Velvet Bubblegum AeroPod)
   ========================================================================== */
.canvas-aeropod {
  position: relative;
  background: rgba(4, 12, 28, 0.22) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(0, 229, 255, 0.22) !important;
  border-radius: 14px;
  padding: 24px 28px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35), inset 0 0 20px rgba(0, 229, 255, 0.03) !important;
  margin-bottom: 24px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.canvas-aeropod:hover {
  border-color: rgba(0, 229, 255, 0.4) !important;
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.12) !important;
}

.aeropod-glow-accent {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.15) 0%, rgba(56, 189, 248, 0.05) 50%, transparent 70%);
  pointer-events: none;
}

.aeropod-meta-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #00e5ff;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.35);
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.aeropod-title {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f8fafc;
  text-shadow: 0 0 16px rgba(0, 229, 255, 0.35);
  margin-bottom: 8px;
}

.aeropod-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.55;
  margin-bottom: 20px;
}

.aeropod-stats-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.stat-capsule {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 229, 255, 0.03) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(0, 229, 255, 0.22);
  border-radius: 6px;
  padding: 6px 14px;
}

.stat-val {
  font-size: 14px;
  font-weight: 800;
  color: #00e5ff;
  font-family: var(--font-mono);
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

.stat-name {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
}

/* ==========================================================================
   CATALOG CONTROL ROW & CAPSULE PILLS
   ========================================================================== */
.catalog-control-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.category-capsule-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.category-pill {
  background: rgba(0, 229, 255, 0.03) !important;
  border: 1px solid rgba(0, 229, 255, 0.2) !important;
  border-radius: 6px;
  padding: 5px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-pill:hover {
  background: rgba(0, 229, 255, 0.12) !important;
  color: #00e5ff;
  border-color: rgba(0, 229, 255, 0.45) !important;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.2);
  transform: translateY(-1px);
}

.category-pill.active {
  background: rgba(0, 229, 255, 0.15) !important;
  color: #00e5ff !important;
  border: 1px solid #00e5ff !important;
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.3) !important;
}

.catalog-counter-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  background: rgba(0, 229, 255, 0.03);
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid rgba(0, 229, 255, 0.2);
}

/* ==========================================================================
   PEBBLE PODS GRID (Translucent Optical HUD Cards - Zero Lag)
   ========================================================================== */
.pebble-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.pebble-card {
  position: relative;
  background: rgba(0, 229, 255, 0.012) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(0, 229, 255, 0.16) !important;
  border-radius: 10px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: none !important;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
  overflow: hidden;
  min-width: 0;
}

/* Optical Gaze Target Reticle Brackets (┌ ┐ └ ┘) */
.pebble-card::before,
.pebble-card::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  pointer-events: none;
  opacity: 0.5;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.pebble-card::before {
  top: 0;
  left: 0;
  border-top: 1.5px solid #00e5ff;
  border-left: 1.5px solid #00e5ff;
}

.pebble-card::after {
  bottom: 0;
  right: 0;
  border-bottom: 1.5px solid #00e5ff;
  border-right: 1.5px solid #00e5ff;
}

.pebble-card:hover {
  transform: translateY(-2px) scale(1.008);
  background: rgba(0, 229, 255, 0.045) !important;
  border-color: rgba(0, 229, 255, 0.55) !important;
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.18) !important;
}

.pebble-card:hover::before,
.pebble-card:hover::after {
  opacity: 1;
  border-color: #00e5ff;
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.8);
}

.pebble-header {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  overflow: hidden;
}

.pebble-glyph-circle {
  width: 42px;
  height: 42px;
  background: rgba(0, 229, 255, 0.05) !important;
  border: 1px solid rgba(0, 229, 255, 0.35) !important;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: inset 0 0 10px rgba(0, 229, 255, 0.1), 0 0 12px rgba(0, 229, 255, 0.15) !important;
}

.pebble-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.pebble-title {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
  max-width: 100%;
}

.pebble-tags {
  display: flex;
  gap: 6px;
  align-items: center;
  max-width: 100%;
  overflow: hidden;
}

.pebble-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--text-dim);
  background: rgba(0, 229, 255, 0.04);
  padding: 1px 7px;
  border-radius: 4px;
  border: 1px solid rgba(0, 229, 255, 0.2);
  white-space: nowrap;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}

.pebble-tag.tag-hash {
  font-family: var(--font-mono);
  max-width: 85px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-shrink: 1;
}

.pebble-description {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  flex: 1;
  max-height: 38px;
}

.pebble-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 229, 255, 0.15);
}

.pebble-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-dim);
}

.pebble-beacon-dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background-color: var(--text-dim);
}

.pebble-beacon-dot.active {
  background-color: #00e5ff;
  box-shadow: 0 0 8px #00e5ff;
}

.btn-pebble-launch {
  padding: 6px 18px;
  background: rgba(0, 229, 255, 0.08) !important;
  border: 1px solid rgba(0, 229, 255, 0.45) !important;
  border-radius: 9999px;
  color: #00e5ff !important;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.15) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-pebble-launch:hover {
  background: rgba(0, 229, 255, 0.22) !important;
  border-color: #00e5ff !important;
  color: #ffffff !important;
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.5) !important;
  transform: translateY(-1px);
}

/* ==========================================================================
