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

/* =============================================================================
   TOAST NOTIFICATION (FUTURISTIC FLOATING HUD CAPSULE — BOTTOM CENTER)
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 8px;
  z-index: 100000;
  pointer-events: none;
}

.toast-item {
  background: rgba(4, 10, 22, 0.94) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(0, 229, 255, 0.45) !important;
  border-radius: 9999px !important;
  padding: 8px 20px 8px 16px !important;
  font-size: 12px !important;
  font-family: var(--font-stack) !important;
  font-weight: 600 !important;
  color: #f8fafc !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 16px rgba(0, 229, 255, 0.25) !important;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  animation: toastHudSlideUp 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  pointer-events: auto;
  cursor: pointer;
  white-space: nowrap;
  max-width: 90vw;
}

.toast-item .pulse-beacon {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00e5ff;
  box-shadow: 0 0 8px #00e5ff;
  flex-shrink: 0;
}

.toast-item.error {
  border-color: rgba(239, 68, 68, 0.6) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 16px rgba(239, 68, 68, 0.3) !important;
}

.toast-item.error .pulse-beacon {
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
}

#flowork-core-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(14px) scale(0.96);
  z-index: 100001;
  background: rgba(4, 10, 22, 0.94) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(0, 229, 255, 0.45) !important;
  border-radius: 9999px !important;
  padding: 8px 22px !important;
  font-size: 12px !important;
  font-family: var(--font-stack) !important;
  font-weight: 600 !important;
  color: #f8fafc !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 16px rgba(0, 229, 255, 0.25) !important;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

#flowork-core-toast.visible {
  opacity: 1 !important;
  transform: translateX(-50%) translateY(0) scale(1) !important;
  pointer-events: auto !important;
}

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

/* ==========================================================================
   CANVAS COPILOT / STOREFRONT STYLES
   ========================================================================== */
.btn-copilot-sync {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-copilot-sync:hover {
  background: rgba(16, 185, 129, 0.28);
  border-color: #34d399;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.pebble-tag.tag-hash {
  font-family: monospace;
  background: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pebble-tag.tag-status-installed {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.pebble-tag.tag-status-update {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.45);
  animation: pulseBeacon 2s infinite ease-in-out;
}

.btn-pebble-install {
  padding: 6px 18px;
  background: rgba(16, 185, 129, 0.08) !important;
  border: 1px solid rgba(16, 185, 129, 0.45) !important;
  border-radius: 9999px;
  color: #10b981 !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(16, 185, 129, 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-install:hover {
  background: rgba(16, 185, 129, 0.22) !important;
  border-color: #34d399 !important;
  color: #ffffff !important;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.5) !important;
  transform: translateY(-1px);
}

.btn-pebble-uninstall {
  padding: 6px 14px;
  background: rgba(239, 68, 68, 0.06) !important;
  border: 1px solid rgba(239, 68, 68, 0.35) !important;
  border-radius: 9999px;
  color: #f87171 !important;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-pebble-uninstall:hover {
  background: rgba(239, 68, 68, 0.2) !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.4) !important;
  transform: translateY(-1px);
}

.btn-pebble-update {
  padding: 6px 16px;
  background: rgba(245, 158, 11, 0.08) !important;
  border: 1px solid rgba(245, 158, 11, 0.45) !important;
  border-radius: 9999px;
  color: #f59e0b !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(245, 158, 11, 0.15) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-pebble-update:hover {
  background: rgba(245, 158, 11, 0.22) !important;
  border-color: #fbbf24 !important;
  color: #ffffff !important;
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.5) !important;
  transform: translateY(-1px);
}

/* ==========================================================================
   SOVEREIGN AUTH PROFILE & TIER CAPSULES (Cyber-Bubblegum Noir)
   ========================================================================== */
.user-profile-capsule {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(22, 17, 34, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  padding: 4px 6px 4px 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  backdrop-filter: none;
}

.user-tier-pill {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 9999px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.tier-enterprise {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22) 0%, rgba(217, 119, 6, 0.12) 100%);
  border-color: rgba(245, 158, 11, 0.55);
  color: #fbbf24;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.25);
}

.tier-pro {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.22) 0%, rgba(14, 116, 144, 0.12) 100%);
  border-color: rgba(6, 182, 212, 0.5);
  color: #22d3ee;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.2);
}

.tier-premium {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22) 0%, rgba(4, 120, 87, 0.12) 100%);
  border-color: rgba(16, 185, 129, 0.5);
  color: #34d399;
}

.tier-community,
.tier-free {
  background: rgba(148, 163, 184, 0.14);
  border-color: rgba(148, 163, 184, 0.35);
  color: #cbd5e1;
}

.user-identity-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 4px;
}

.user-avatar-badge {
  font-size: 14px;
}

.user-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.user-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.user-role-label {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.btn-topbar-logout {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #f87171;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-topbar-logout svg {
  width: 13px;
  height: 13px;
}

.btn-topbar-logout:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: #ef4444;
  color: #fff;
  transform: scale(1.08);
}

.btn-topbar-login {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-topbar-login:hover {
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 6px 22px rgba(239, 68, 68, 0.6);
}

/* ==========================================================================
   FAIL-CLOSED SOVEREIGN GATE OVERLAY MODAL
   ========================================================================== */
.sovereign-gate-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 4, 11, 0.92);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.gate-card {
  position: relative;
  background: rgba(18, 14, 27, 0.96);
  border: 1.5px solid rgba(239, 68, 68, 0.4);
  border-radius: 28px;
  padding: 36px 32px;
  width: 100%;
  max-width: 480px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(239, 68, 68, 0.18);
  overflow: hidden;
}

.gate-glow-crest {
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ef4444, transparent);
  box-shadow: 0 0 15px #ef4444;
}

.gate-icon-halo {
  width: 68px;
  height: 68px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.25) 0%, rgba(185, 28, 28, 0.15) 100%);
  border: 1px solid rgba(239, 68, 68, 0.45);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.35);
}

.gate-icon-halo svg {
  width: 32px;
  height: 32px;
  stroke: #f87171;
}

.gate-brand-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 3px 12px;
  border-radius: 9999px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  margin-bottom: 12px;
}

.gate-title {
  font-size: 21px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.02em;
  margin: 0 0 8px 0;
}

.gate-subtitle {
  font-size: 13px;
  line-height: 1.55;
  color: #94a3b8;
  margin: 0 0 24px 0;
}

.gate-subtitle strong {
  color: #f1f5f9;
}

.gate-btn-sso {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 48px;
  background: rgba(239, 68, 68, 0.16) !important;
  color: #ffffff !important;
  border: 1px solid rgba(239, 68, 68, 0.45) !important;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.25) !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.gate-btn-sso:hover {
  transform: translateY(-2px) scale(1.02);
  background: rgba(239, 68, 68, 0.28) !important;
  border-color: #ef4444 !important;
  box-shadow: 0 0 28px rgba(239, 68, 68, 0.5) !important;
}

.gate-btn-icon {
  font-size: 16px;
}

.gate-divider {
  margin: 22px 0 16px;
  border-top: 1px solid rgba(0, 229, 255, 0.14) !important;
  position: relative;
}

.gate-divider span {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  background: transparent !important;
  backdrop-filter: none;
  padding: 0 12px;
  font-size: 10px;
  font-weight: 700;
  color: rgba(148, 163, 184, 0.5) !important;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
}

.gate-manual-box {
  text-align: left;
  margin-top: 4px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.gate-manual-box label {
  font-size: 10.5px;
  font-weight: 600;
  color: rgba(148, 163, 184, 0.6);
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

.gate-input-row {
  display: flex;
  gap: 8px;
}

.gate-input-row input {
  flex: 1;
  background: rgba(3, 7, 18, 0.45) !important;
  border: 1px solid rgba(0, 229, 255, 0.22) !important;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12px;
  color: #f1f5f9;
  outline: none;
  font-family: var(--font-mono);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.gate-input-row input:focus {
  border-color: #00e5ff !important;
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.3) !important;
}

.gate-btn-verify {
  background: rgba(0, 229, 255, 0.12) !important;
  border: 1px solid rgba(0, 229, 255, 0.35) !important;
  border-radius: 10px;
  color: #00e5ff !important;
  font-size: 12px;
  font-weight: 700;
  padding: 0 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: var(--font-mono);
}

.gate-btn-verify:hover {
  background: rgba(0, 229, 255, 0.25) !important;
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.4) !important;
  color: #fff !important;
}

.gate-status-msg {
  margin-top: 16px;
  font-size: 12px;
  min-height: 18px;
  color: #fbbf24;
  font-weight: 600;
}

.gate-card-footer {
  margin-top: 18px;
  font-size: 11px;
  color: #475569;
}

/* ==========================================================================
   SYNC DRIVE BOTTOM DOCK CAPSULE (Cyber-Bubblegum Noir)
   ========================================================================== */
.syncdrive-capsule-card {
  background: radial-gradient(120% 120% at 50% 0%, #2a1642 0%, #150d24 100%);
  border: 1.5px solid rgba(0, 229, 255, 0.25);
  border-radius: 20px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4), 0 0 12px rgba(0, 229, 255, 0.1);
  user-select: none;
}

.syncdrive-capsule-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 229, 255, 0.55);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55), 0 0 18px rgba(0, 229, 255, 0.25);
}

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

.syncdrive-icon-wrap {
  position: relative;
  width: 28px;
  height: 28px;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00e5ff;
  flex-shrink: 0;
}

.syncdrive-icon-wrap .pulse-beacon {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #05ffa1;
  box-shadow: 0 0 8px #05ffa1;
}

.syncdrive-title-wrap {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.syncdrive-title {
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.syncdrive-meta {
  font-size: 10px;
  color: #00e5ff;
  font-weight: 600;
}

.syncdrive-progress-track {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 6px;
}

.syncdrive-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #00e5ff 0%, #b042ff 100%);
  border-radius: 9999px;
  transition: width 0.3s ease;
}

.syncdrive-stats-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9.5px;
  color: #bda3c7;
  font-weight: 600;
}

.syncdrive-tier-badge {
  background: rgba(5, 255, 161, 0.12);
  border: 1px solid rgba(5, 255, 161, 0.3);
  color: #05ffa1;
  padding: 1px 6px;
  border-radius: 9999px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* ==========================================================================
   SYNC DRIVE MODAL (Cyber-Bubblegum Noir)
   ========================================================================== */
.syncdrive-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 14, 0.78);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.syncdrive-modal-card {
  background: rgba(6, 12, 24, 0.92) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(0, 229, 255, 0.4) !important;
  border-radius: 16px;
  width: 100%;
  max-width: 760px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(0, 229, 255, 0.2);
  overflow: hidden;
  animation: slideInCapsule 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.syncdrive-modal-header {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.syncdrive-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.syncdrive-modal-icon {
  font-size: 26px;
}

.syncdrive-modal-title {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.3px;
}

.syncdrive-modal-subtitle {
  font-size: 11.5px;
  color: #bda3c7;
  margin: 2px 0 0;
}

.btn-syncdrive-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f5edf8;
  font-size: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-syncdrive-close:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #ff8b8b;
  transform: scale(1.1);
}

.syncdrive-modal-body {
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.syncdrive-activity-banner {
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: 14px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  color: #00e5ff;
}

.syncdrive-activity-banner.active {
  background: rgba(255, 59, 136, 0.15);
  border-color: rgba(255, 59, 136, 0.45);
  color: #ff3b88;
}

.syncdrive-pool-overview {
  background: rgba(12, 7, 22, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 18px 20px;
}

.pool-stats-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 12px;
}

.pool-stat-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #9d78a6;
  text-transform: uppercase;
  display: block;
}

.pool-stat-value {
  font-size: 22px;
  font-weight: 800;
  color: #00e5ff;
  letter-spacing: -0.5px;
}

.pool-stat-free {
  font-size: 18px;
  font-weight: 800;
  color: #05ffa1;
}

.syncdrive-pool-bar-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 10px;
}

.syncdrive-pool-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #00e5ff 0%, #b042ff 50%, #ff3b88 100%);
  border-radius: 9999px;
  transition: width 0.4s ease;
}

.pool-meta-hint {
  font-size: 11px;
  color: #bda3c7;
}

.pool-meta-hint strong {
  color: #ff3b88;
}

.syncdrive-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.syncdrive-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.syncdrive-section-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #f5edf8;
  margin: 0;
}

.syncdrive-section-desc {
  font-size: 11px;
  color: #9d78a6;
  margin: 2px 0 0;
}

.btn-syncdrive-action-primary {
  background: linear-gradient(90deg, #00e5ff 0%, #b042ff 100%);
  border: none;
  border-radius: 9999px;
  padding: 7px 18px;
  font-size: 11.5px;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 229, 255, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-syncdrive-action-primary:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 6px 20px rgba(0, 229, 255, 0.5);
}

.btn-syncdrive-action-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  padding: 6px 16px;
  font-size: 11.5px;
  font-weight: 700;
  color: #f5edf8;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-syncdrive-action-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #00e5ff;
  color: #00e5ff;
}

.syncdrive-accounts-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.syncdrive-account-card {
  background: rgba(25, 15, 38, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.account-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.account-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.15);
  border: 1px solid rgba(0, 229, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #00e5ff;
  font-size: 13px;
  flex-shrink: 0;
}

.account-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.account-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.account-email {
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-quota-sub {
  font-size: 10.5px;
  color: #bda3c7;
}

.account-priority-badge {
  font-size: 9.5px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 9999px;
  background: rgba(176, 66, 255, 0.15);
  border: 1px solid rgba(176, 66, 255, 0.35);
  color: #c084fc;
  white-space: nowrap;
}

.btn-account-unlink {
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-account-unlink:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
}

.syncdrive-folders-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.syncdrive-folder-row {
  background: rgba(15, 9, 24, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.folder-path-txt {
  color: #f5edf8;
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.btn-folder-del {
  background: transparent;
  border: none;
  color: #f87171;
  font-size: 16px;
  cursor: pointer;
  padding: 0 4px;
}

.syncdrive-files-table-wrap {
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 14px;
  background: rgba(0, 229, 255, 0.03);
}

.syncdrive-files-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
}

.syncdrive-files-table th {
  text-align: left;
  padding: 10px 14px;
  color: #00e5ff;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-bottom: 1px solid rgba(0, 229, 255, 0.2);
  background: rgba(0, 229, 255, 0.08);
  position: sticky;
  top: 0;
}

.syncdrive-files-table td {
  padding: 8px 14px;
  color: #f5edf8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.btn-action-restore {
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.3);
  color: #00e5ff;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  margin-right: 6px;
}

.btn-action-restore:hover {
  background: rgba(0, 229, 255, 0.25);
}

.btn-action-open {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f5edf8;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 10.5px;
  text-decoration: none;
}

.btn-action-open:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   SOVEREIGN WORKSPACE CAPSULE & MODAL
   ========================================================================== */
.workspace-capsule-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.workspace-capsule-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 9999px;
  padding: 4px 10px;
  cursor: pointer;
  color: #f1f5f9;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: none;
  min-width: 0;
}

.workspace-capsule-btn:hover {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}

.ws-icon {
  font-size: 13px;
}

.ws-label {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #38bdf8;
  font-weight: 700;
  font-size: 11.5px;
}

.ws-caret {
  color: #94a3b8;
  transition: transform 0.2s ease;
}

.workspace-capsule-wrap.open .ws-caret {
  transform: rotate(180deg);
}

.workspace-dropdown-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 280px;
  background: rgba(15, 12, 28, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 24px rgba(56, 189, 248, 0.15);
  backdrop-filter: none;
  z-index: 9999;
  overflow: hidden;
  animation: fadeIn 0.15s ease-out;
}

.ws-dropdown-list {
  max-height: 340px;
  overflow-y: auto;
  padding: 8px;
}

.ws-active-card {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 8px;
}

.ws-active-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.ws-active-tag {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #94a3b8;
}

.ws-active-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ws-active-path {
  font-size: 10.5px;
  color: #94a3b8;
  font-family: var(--font-mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
}

.ws-dropdown-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 6px;
}

.ws-dropdown-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.ws-dropdown-action-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.35);
  color: #ffffff;
}

.ws-btn-danger {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.25);
  color: #f87171;
  margin-bottom: 6px;
}

.ws-btn-danger:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  color: #ffffff;
}

.ws-section-subtitle {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #64748b;
  margin: 6px 4px 4px;
}

.ws-other-list {
  max-height: 140px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ws-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.15s ease;
}

.ws-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.ws-item-left {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.ws-item-icon {
  font-size: 12px;
}

.ws-item-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

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

.ws-item-path {
  font-size: 9.5px;
  color: #64748b;
  font-family: var(--font-mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ws-item-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
}

.ws-btn-mini-switch {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.12s ease;
}

.ws-btn-mini-switch:hover {
  background: #38bdf8;
  color: #0b0716;
}

.ws-btn-mini-delete {
  background: transparent;
  border: none;
  font-size: 11px;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  opacity: 0.6;
  transition: all 0.12s ease;
}

.ws-btn-mini-delete:hover {
  opacity: 1;
  background: rgba(239, 68, 68, 0.2);
}

.ws-badge-active {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  padding: 1px 6px;
  border-radius: 9999px;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.ws-dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 6px 0;
}

/* Modal Styling */
.sovereign-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 3, 10, 0.75);
  backdrop-filter: none;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease-out;
}

.sovereign-modal-card {
  position: relative;
  background: rgba(4, 10, 22, 0.75) !important;
  backdrop-filter: none saturate(180%) !important;
  -webkit-backdrop-filter: none saturate(180%) !important;
  border: 1.5px solid rgba(0, 229, 255, 0.35) !important;
  border-radius: 26px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 40px rgba(0, 229, 255, 0.15);
  overflow: hidden;
}

.modal-glow-crest {
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #38bdf8, #a855f7, transparent);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px 24px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.modal-title-wrap {
  display: flex;
  gap: 12px;
  align-items: center;
}

.modal-badge-icon {
  font-size: 26px;
}

.modal-title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
}

.modal-subtitle {
  margin: 3px 0 0;
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.4;
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 20px;
  color: #94a3b8;
  cursor: pointer;
  line-height: 1;
}

.modal-close-btn:hover {
  color: #ffffff;
}

.modal-body-form {
  padding: 20px 24px 24px;
}

.modal-field-group {
  margin-bottom: 16px;
}

.modal-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.modal-text-input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(0, 229, 255, 0.04) !important;
  border: 1px solid rgba(0, 229, 255, 0.22) !important;
  border-radius: 12px;
  padding: 9px 14px;
  color: #ffffff;
  font-size: 13px;
  outline: none;
  transition: all 0.15s ease;
}

.modal-text-input:focus {
  border-color: #00e5ff !important;
  background: rgba(0, 229, 255, 0.08) !important;
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.25) !important;
}

.modal-input-action-row {
  display: flex;
  gap: 8px;
}

.btn-modal-action-browse {
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  color: #f1f5f9;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.btn-modal-action-browse:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
}

.modal-field-hint {
  display: block;
  font-size: 11px;
  color: #64748b;
  margin-top: 5px;
}

.sacred-seeder-preview-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 20px;
}

.seeder-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10.5px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.seeder-badge {
  font-size: 9.5px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 1px 6px;
  border-radius: 9999px;
  font-weight: 700;
}

.seeder-chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.seeder-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 3px 8px;
  color: #cbd5e1;
}

.chip-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.dot-cyan { background: #38bdf8; }
.dot-purple { background: #a855f7; }
.dot-pink { background: #ec4899; }
.dot-amber { background: #f59e0b; }
.dot-green { background: #10b981; }

.modal-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.btn-modal-cancel {
  padding: 9px 18px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-modal-cancel:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.btn-modal-submit {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  background: linear-gradient(135deg, #38bdf8 0%, #a855f7 100%);
  border: none;
  border-radius: 12px;
  color: #0b0716;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.35);
  transition: all 0.15s ease;
}

.btn-modal-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.5);
}

/* Schedule Modal Styles */
.sched-modal-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
}

.sched-tab-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sched-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.sched-tab-btn.active {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.3);
}

.sched-tab-count-badge {
  font-size: 10px;
  font-weight: 800;
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  padding: 1px 6px;
  border-radius: 9999px;
}

.sched-mode-segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 4px;
}

.sched-mode-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.sched-mode-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

.sched-mode-btn.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.12);
}

.sched-mode-btn-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sched-mode-btn-icon {
  font-size: 20px;
}

.sched-mode-btn-text {
  display: flex;
  flex-direction: column;
}

.sched-mode-btn-title {
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
}

.sched-mode-btn-sub {
  font-size: 10px;
  color: #94a3b8;
  margin-top: 1px;
}

.sched-cadence-section {
  margin-top: 12px;
}

.sched-preset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.sched-chip-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sched-chip-pill:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.sched-chip-pill.active {
  background: rgba(56, 189, 248, 0.18);
  border-color: #38bdf8;
  color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

.sched-custom-time-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.sched-custom-recurrence-wrap {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 10px;
}

.sched-recurrence-builder-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.sched-builder-label {
  font-size: 11.5px;
  color: #94a3b8;
  font-weight: 700;
  white-space: nowrap;
}

.modal-select-input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 9px 12px;
  color: #ffffff;
  font-size: 12px;
  outline: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.modal-select-input:focus {
  border-color: #38bdf8;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}

.modal-select-input option {
  background: #160e26;
  color: #ffffff;
}

.sched-advanced-cron-accordion {
  margin-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.07);
  padding-top: 6px;
}

.sched-accordion-toggle {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  transition: color 0.15s ease;
}

.sched-accordion-toggle:hover {
  color: #cbd5e1;
}

.sched-mono-font {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
}

.sched-execution-summary-box {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.08) 0%, rgba(168, 85, 247, 0.08) 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 12px;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 6px;
}

.sched-summary-icon {
  font-size: 16px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.5));
}

.sched-summary-text {
  font-size: 11.5px;
  color: #e2e8f0;
  line-height: 1.4;
}

.sched-summary-text strong {
  color: #38bdf8;
  font-weight: 800;
}

.sched-prompt-ideas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.sched-idea-label {
  font-size: 10px;
  color: #64748b;
  font-weight: 700;
}

.sched-idea-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 10.5px;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sched-idea-pill:hover {
  background: rgba(168, 85, 247, 0.15);
  border-color: #a855f7;
  color: #ffffff;
}

.sched-jobs-list {
  max-height: 290px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 2px;
}

.sched-job-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.15s ease;
}

.sched-job-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.sched-job-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.sched-job-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.sched-job-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.sched-job-prompt {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sched-job-meta {
  font-size: 10.5px;
  color: #94a3b8;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.sched-job-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.sched-status-badge {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 9999px;
  letter-spacing: 0.03em;
}

.sched-status-active {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.2);
}

.sched-status-completed {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.sched-status-cancelled {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.sched-btn-cancel {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sched-btn-cancel:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #ffffff;
  border-color: #ef4444;
}

.sched-btn-edit {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sched-btn-edit:hover {
  background: rgba(56, 189, 248, 0.28);
  color: #ffffff;
  border-color: #38bdf8;
}

.sched-btn-delete {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #f87171;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

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

/* ==========================================================================
   ⚡ AUTONOMOUS TRIGGER & AUTOMATION HUB STYLES (CHRONO + AMBIENT WATCHERS)
   ========================================================================== */
.sched-mode-segmented.mode-three {
  grid-template-columns: 1fr 1fr 1fr;
}

.trig-hub-badge-pulse {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 7px;
  height: 7px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: trigPulse 1.8s infinite;
}

@keyframes trigPulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 1; box-shadow: 0 0 12px #34d399; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.trig-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 14px 0 8px 0;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 4px;
}

.trig-section-title:first-child {
  margin-top: 0;
}

.trig-watcher-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

.trig-watcher-item:hover {
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.trig-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 9999px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.trig-status-running {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.trig-status-running::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 6px #34d399;
  animation: trigPulse 1.5s infinite;
}

.trig-status-idle {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.trig-btn-test {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.trig-btn-test:hover {
  background: rgba(56, 189, 248, 0.28);
  color: #ffffff;
  border-color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.trig-btn-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #c084fc;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.trig-btn-toggle:hover {
  background: rgba(168, 85, 247, 0.28);
  color: #ffffff;
  border-color: #c084fc;
}

.trig-telemetry-box {
  margin-top: 10px;
  margin-bottom: 12px;
  background: #090d16;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 10px;
  padding: 10px 14px;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  color: #e2e8f0;
  max-height: 180px;
  overflow-y: auto;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6);
}

.trig-store-search-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.trig-store-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}

.trig-store-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trig-store-card:hover {
  border-color: rgba(168, 85, 247, 0.4);
  background: rgba(26, 32, 53, 0.8);
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.12);
}

.trig-store-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.trig-store-card-title {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.trig-store-card-desc {
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.4;
}

.trig-store-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.trig-btn-install {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2) 0%, rgba(168, 85, 247, 0.2) 100%);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.trig-btn-install:hover {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.4) 0%, rgba(168, 85, 247, 0.4) 100%);
  color: #ffffff;
  border-color: #38bdf8;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.35);
}

.trig-btn-installed {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  cursor: default;
}

/* ==========================================================================
   ROUTER SWITCHBOARD & AI GATEWAY CONTROLLER (DRFLOW MATRIX SPEC)
   ========================================================================== */
.topbar-router-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 9999px;
  background-color: rgba(7, 23, 44, 0.85);
  border: 1px solid rgba(0, 229, 255, 0.35);
  font-size: 11px;
  color: #38bdf8;
  font-family: var(--font-mono);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), inset 0 0 8px rgba(0, 229, 255, 0.08);
}

.topbar-router-pill:hover {
  background-color: rgba(12, 35, 64, 0.95);
  border-color: #00e5ff;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.35);
  transform: translateY(-1px);
}

.router-pill-title {
  color: #ffffff;
  font-weight: 800;
}

.router-pill-model {
  color: #00e5ff;
  font-size: 10px;
  background: rgba(0, 229, 255, 0.12);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid rgba(0, 229, 255, 0.25);
}

.router-telemetry-banner {
  background: rgba(3, 9, 20, 0.9);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-left: 3.5px solid #00e5ff;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.router-telemetry-metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.router-telemetry-lbl {
  font-size: 9px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.router-telemetry-val {
  font-weight: 800;
  color: #00e5ff;
}

.router-deck-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.router-deck-card {
  background: rgba(7, 19, 34, 0.85);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 14px;
  padding: 14px;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.router-deck-card:hover {
  border-color: #00e5ff;
  background: rgba(12, 35, 64, 0.95);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.25);
  transform: translateY(-2px);
}

.router-deck-card.active {
  border-color: #00e5ff;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.15) 0%, rgba(7, 23, 44, 0.95) 100%);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.3), inset 0 0 10px rgba(0, 229, 255, 0.15);
}

.router-deck-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.router-deck-name {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 800;
  color: #ffffff;
}

.router-deck-status {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 9999px;
  background: rgba(0, 229, 255, 0.15);
  color: #00e5ff;
  border: 1px solid rgba(0, 229, 255, 0.3);
}

.router-deck-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.45;
}

.router-model-btn {
  background: rgba(7, 19, 34, 0.85);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.router-model-btn:hover {
  border-color: #00e5ff;
  background: rgba(12, 35, 64, 0.95);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.25);
  transform: translateY(-1px);
}

.router-model-btn.active {
  border-color: #00e5ff;
  border-top: 2.5px solid #00e5ff;
  background: linear-gradient(180deg, rgba(0, 229, 255, 0.16) 0%, rgba(7, 23, 44, 0.95) 100%);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.3);
}

.router-model-btn-name {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 800;
  color: #ffffff;
}

.router-model-btn.active .router-model-btn-name {
  color: #00e5ff;
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
}

.router-model-btn-desc {
  font-size: 9.5px;
  color: #64748b;
  font-family: var(--font-mono);
}

.router-account-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.25);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #e0f2fe;
}

.router-account-chip.active {
  background: rgba(0, 229, 255, 0.2);
  border-color: #00e5ff;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

.router-account-chip.cooldown {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

/* ==========================================================================
   SOVEREIGN TOKEN ROUTER v2.16 MESH (DRFLOW MULTI-ACCOUNT DECK)
   ========================================================================== */
.sovereign-token-router-card {
  width: 92%;
  max-width: 840px;
  max-height: 90vh;
  background: rgba(4, 10, 22, 0.78) !important;
  backdrop-filter: none saturate(180%) !important;
  -webkit-backdrop-filter: none saturate(180%) !important;
  border: 1.5px solid rgba(0, 229, 255, 0.35) !important;
  border-radius: 16px;
  box-shadow: 0 0 35px rgba(0, 229, 255, 0.25), 0 25px 60px rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
  padding: 22px 24px;
  position: relative;
  overflow: hidden;
  animation: modalScaleIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.str-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.str-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.str-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(14, 165, 233, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

.str-title-wrap {
  display: flex;
  flex-direction: column;
}

.str-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.str-title {
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #ffffff;
  margin: 0;
  font-family: var(--font-sans);
}

.str-badge {
  font-size: 9.5px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #38bdf8;
  background: rgba(14, 165, 233, 0.2);
  border: 1px solid rgba(14, 165, 233, 0.45);
  padding: 2px 8px;
  border-radius: 9999px;
  letter-spacing: 0.05em;
}

.str-subtitle {
  font-size: 11.5px;
  color: #94a3b8;
  margin: 3px 0 0 0;
  font-weight: 500;
}

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

.str-close-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ffffff;
}

/* 4 Metrics Grid */
.str-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.str-metric-card {
  background: rgba(0, 229, 255, 0.04) !important;
  border: 1px solid rgba(0, 229, 255, 0.22) !important;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.str-metric-lbl {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #94a3b8;
  text-transform: uppercase;
}

.str-metric-val {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.str-metric-highlight {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
}

.str-metric-sub {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 600;
}

.str-metric-green {
  font-size: 12.5px;
  font-weight: 700;
  color: #10b981;
  font-family: var(--font-mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.str-strategy-select {
  background: rgba(0, 229, 255, 0.05) !important;
  border: 1px solid rgba(0, 229, 255, 0.25) !important;
  color: #38bdf8;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  padding: 3px 6px;
  width: 100%;
  cursor: pointer;
  outline: none;
}

/* Action Row */
.str-action-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}

.str-btn-add-acc {
  background: linear-gradient(135deg, #0284c7 0%, #00e5ff 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 12px;
  border-radius: 9999px;
  padding: 8px 18px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(0, 229, 255, 0.35);
  transition: all 0.15s ease;
}

.str-btn-add-acc:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 229, 255, 0.5);
}

.str-btn-refresh-pool {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-weight: 600;
  font-size: 11.5px;
  border-radius: 9999px;
  padding: 6px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.str-btn-refresh-pool:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

/* Filter Row */
.str-filter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
}

.str-filter-pills {
  display: flex;
  gap: 6px;
}

.str-filter-pill {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.str-filter-pill:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.str-filter-pill.active {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(2, 132, 199, 0.4);
}

.str-search-box {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 229, 255, 0.03) !important;
  border: 1px solid rgba(0, 229, 255, 0.2) !important;
  border-radius: 9999px;
  padding: 4px 12px;
  width: 220px;
}

.str-search-box input {
  background: transparent;
  border: none;
  outline: none;
  font-size: 11px;
  color: #ffffff;
  width: 100%;
}

.str-search-box input::placeholder {
  color: #64748b;
}

/* Accounts List */
.str-accounts-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}

.str-account-row {
  background: rgba(0, 229, 255, 0.03) !important;
  border: 1px solid rgba(0, 229, 255, 0.18) !important;
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.15s ease;
}

.str-account-row:hover {
  background: rgba(0, 229, 255, 0.08) !important;
  border-color: rgba(0, 229, 255, 0.45) !important;
}

.str-account-row.is-active {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.06);
}

.str-acc-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.str-acc-index {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #64748b;
  width: 24px;
}

.str-acc-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #ffffff;
  font-size: 13px;
}

.str-acc-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.str-acc-email-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.str-acc-email {
  font-size: 12.5px;
  font-weight: 700;
  color: #f1f5f9;
}

.str-acc-badge {
  font-size: 9px;
  font-weight: 800;
  font-family: var(--font-mono);
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.str-acc-badge.ready {
  background: rgba(100, 116, 139, 0.2);
  color: #94a3b8;
  border: 1px solid rgba(100, 116, 139, 0.35);
}

.str-acc-badge.active {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.str-acc-badge.limit {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.str-acc-meta {
  font-size: 10.5px;
  color: #64748b;
  font-family: var(--font-mono);
}

.str-acc-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.str-btn-make-active {
  background: rgba(2, 132, 199, 0.15);
  border: 1px solid #0284c7;
  color: #38bdf8;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.str-btn-make-active:hover {
  background: #0284c7;
  color: #ffffff;
}

.str-btn-make-active.current-active {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10b981;
  color: #10b981;
  cursor: default;
}

.str-btn-test {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

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

.str-btn-delete {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #f87171;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.str-btn-delete:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #ffffff;
}

/* Footer */
.str-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--font-mono);
  font-size: 11px;
  color: #94a3b8;
}

.str-footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.str-footer-ping {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

.str-footer strong {
  color: #ffffff;
}

/* ==========================================================================
   MR. FLOW — FULL-SCREEN 3D SOVEREIGN NEURAL LAUNCHER & VOCAL ENGINE
   ========================================================================== */
.sovereign-gate-backdrop {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: #030712 !important;
  z-index: 999999 !important;
  display: flex;
  flex-direction: column;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.sovereign-gate-backdrop.gate-hidden,
.sovereign-gate-backdrop.hidden,
.sovereign-gate-backdrop[style*="display: none"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

/* Fullscreen Topbar Header */
.mrflow-full-topbar {
  height: 56px;
  width: 100%;
  padding: 0 24px;
  background: rgba(7, 23, 44, 0.95);
  border-bottom: 1px solid rgba(0, 229, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  z-index: 10;
}

.mrflow-full-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mrflow-live-beacon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00e5ff;
  box-shadow: 0 0 10px #00e5ff;
  animation: beaconPulse 1.8s ease-in-out infinite;
}

.mrflow-brand-name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #00e5ff;
  font-family: var(--font-mono);
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.4);
}

.mrflow-brand-sub {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
}

.mrflow-full-telemetry {
  display: flex;
  align-items: center;
  gap: 16px;
}

.telemetry-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(3, 7, 18, 0.6);
  border: 1px solid rgba(0, 229, 255, 0.2);
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  font-family: var(--font-mono);
}

.telemetry-dot.pulse-cyan {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00e5ff;
  box-shadow: 0 0 8px #00e5ff;
  animation: beaconPulse 1.8s infinite;
}

.telemetry-dot.pulse-green {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.mrflow-full-topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-mrflow-sound-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.3);
  color: #00e5ff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-mrflow-sound-toggle:hover {
  background: rgba(0, 229, 255, 0.2);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.35);
}

.btn-mrflow-topbar-proceed {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border-radius: 20px;
  background: rgba(12, 35, 64, 0.85);
  border: 1px solid rgba(0, 229, 255, 0.4);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-mrflow-topbar-proceed:hover {
  background: rgba(0, 229, 255, 0.2);
  border-color: #00e5ff;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.35);
}

/* Fullscreen Body */
.mrflow-full-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100vh !important;
  overflow: hidden;
  position: relative;
}

/* Left / Center Massive Frameless 3D Stage */
.mrflow-full-stage {
  flex: 1 1 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0 32px 30px 32px;
  background: radial-gradient(circle at 50% 45%, #0d2847 0%, #030712 82%);
  overflow: hidden;
}

.mrflow-stage-backdrop-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(0, 229, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 229, 255, 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.6;
  z-index: 0;
}

/* Frameless Boundless 3D Stage Wrap */
.mrflow-full-3d-wrap {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
  display: block !important;
  z-index: 1;
}

.mrflow-3d-canvas {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  opacity: 1 !important;
  cursor: grab;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

.mrflow-3d-canvas:active {
  cursor: grabbing;
}

.mrflow-stage-scanline {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0, 229, 255, 0.012) 3px,
    rgba(0, 229, 255, 0.012) 4px
  );
  z-index: 2;
}

.mrflow-full-waveform-box {
  width: 100%;
  max-width: 680px;
  height: 38px;
  background: rgba(3, 7, 18, 0.8);
  border: 1px solid rgba(0, 229, 255, 0.28);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 229, 255, 0.1);
  z-index: 10;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.mrflow-full-waveform-box canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.mrflow-full-transcript-box {
  width: 100%;
  max-width: 680px;
  background: rgba(7, 23, 44, 0.9);
  border: 1px solid rgba(0, 229, 255, 0.32);
  border-radius: 12px;
  padding: 12px 24px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8), 0 0 24px rgba(0, 229, 255, 0.15);
  z-index: 10;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.mrflow-full-transcript-box .transcript-text {
  font-size: 14px;
  line-height: 1.5;
  color: #f8fafc;
  font-style: italic;
  font-family: var(--font-stack);
  letter-spacing: 0.02em;
}

/* ==========================================================================
   HOLOGRAPHIC HUD WINGS (RADAR & MATRIX TELEMETRY STREAM)
   ========================================================================== */

/* Top-Left Subtle Coordinate HUD Pill */
.mrflow-stage-coord-hud {
  position: absolute;
  top: 20px;
  left: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  background: transparent !important;
  border: none !important;
  color: rgba(0, 229, 255, 0.45);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  z-index: 10;
  pointer-events: none;
  box-shadow: none !important;
}

.coord-beacon {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.6);
  box-shadow: none;
  animation: beaconPulse 1.8s ease-in-out infinite;
}

/* Left HUD Wing Container */
.mrflow-stage-left-hud {
  position: absolute;
  left: 32px;
  top: 60px;
  bottom: 32px;
  width: 290px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  z-index: 10;
  pointer-events: none;
}

/* Frameless Translucent HUD Panel (Agak Samar, Tanpa Kotak) */
.mrflow-hud-panel {
  pointer-events: auto;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  position: relative;
  overflow: visible;
}

/* Remove Box Corner Brackets */
.mrflow-hud-panel::before,
.mrflow-hud-panel::after {
  display: none !important;
}

.hud-panel-header {
  padding: 2px 0 6px 0 !important;
  background: transparent !important;
  border-bottom: none !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hud-header-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(56, 189, 248, 0.45) !important;
  text-shadow: none !important;
}

.hud-header-status {
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(74, 222, 128, 0.45) !important;
  letter-spacing: 0.05em;
}

.hud-pulse-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.5) !important;
  box-shadow: none !important;
  animation: beaconPulse 1.8s ease-in-out infinite;
}

/* Radar Widget */
.mrflow-radar-panel {
  padding: 0 !important;
}

.radar-viewport {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
}

#mrflow-radar-canvas {
  width: 170px;
  height: 170px;
  display: block;
}

.radar-telemetry-overlay {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 4px 0 0 0 !important;
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(148, 163, 184, 0.4) !important;
}

.radar-stat-item strong {
  color: rgba(0, 229, 255, 0.6) !important;
}

/* Matrix Log Stream */
.mrflow-matrix-log-panel {
  flex: 1 1 auto;
  max-height: 250px;
  display: flex;
  flex-direction: column;
}

.matrix-log-feed {
  padding: 4px 0 !important;
  flex: 1 1 auto;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 9.5px;
  line-height: 1.55;
  color: rgba(148, 163, 184, 0.45) !important;
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: transparent !important;
  border: none !important;
}

.matrix-log-line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: fadeInLog 0.25s ease-out;
}

.matrix-log-time {
  color: rgba(0, 229, 255, 0.35) !important;
  margin-right: 5px;
}

.matrix-log-tag {
  color: rgba(56, 189, 248, 0.55) !important;
  font-weight: 600;
  margin-right: 4px;
}

.matrix-log-val {
  color: rgba(226, 232, 240, 0.5) !important;
}

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

/* Top-Right Subtle Runtime HUD Pill */
.mrflow-stage-mesh-hud {
  position: absolute;
  top: 20px;
  right: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  background: transparent !important;
  border: none !important;
  color: rgba(0, 229, 255, 0.45);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  z-index: 10;
  pointer-events: none;
  box-shadow: none !important;
}

.mesh-beacon {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.6);
  box-shadow: none;
  animation: beaconPulse 2s ease-in-out infinite;
}

/* Corner Reticles Hidden (No Box/Bracket Effect) */
.mrflow-hud-corner {
  display: none !important;
}

/* Right HUD Wing Container */
.mrflow-stage-right-hud {
  position: absolute;
  right: 32px;
  top: 60px;
  bottom: 32px;
  width: 290px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  z-index: 10;
  pointer-events: none;
}

/* Telemetry & Arc Gauge Panel */
.mrflow-telemetry-panel {
  padding: 0 !important;
}

.status-nominal {
  color: rgba(56, 189, 248, 0.5) !important;
  font-weight: 600;
}

.telemetry-gauge-grid {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 4px 0 2px 0 !important;
}

.arc-gauge-wrap {
  position: relative;
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.arc-gauge-svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.gauge-track {
  fill: none;
  stroke: rgba(0, 229, 255, 0.07);
  stroke-width: 5;
}

.gauge-fill {
  fill: none;
  stroke: rgba(0, 229, 255, 0.65);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 238.76;
  stroke-dashoffset: 12;
  filter: none !important;
  transition: stroke-dashoffset 0.5s ease;
}

.arc-gauge-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.gauge-val {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: rgba(248, 250, 252, 0.75) !important;
  line-height: 1.1;
  text-shadow: none !important;
}

.gauge-unit {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 600;
  color: rgba(148, 163, 184, 0.4) !important;
  letter-spacing: 0.08em;
}

.telemetry-stat-list {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.telemetry-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 9.5px;
  padding: 1px 0;
  border-bottom: 1px dashed rgba(0, 229, 255, 0.04) !important;
}

.stat-name {
  color: rgba(148, 163, 184, 0.45) !important;
  letter-spacing: 0.04em;
}

.stat-value {
  font-weight: 600;
  letter-spacing: 0.03em;
  opacity: 0.65;
}
.stat-value.text-cyan { color: #00e5ff; }
.stat-value.text-green { color: #4ade80; }
.stat-value.text-purple { color: #c084fc; }

.telemetry-bars-row {
  padding: 4px 0 !important;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.telemetry-mini-bar-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mini-bar-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: rgba(148, 163, 184, 0.45) !important;
}

.mini-bar-track {
  width: 100%;
  height: 3px;
  background: rgba(0, 229, 255, 0.06) !important;
  border-radius: 2px;
  overflow: hidden;
}

.mini-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.4s ease;
}

.fill-synapse {
  width: 82%;
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.7), rgba(56, 189, 248, 0.7));
  box-shadow: none !important;
}

.fill-bandwidth {
  width: 94%;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.7), rgba(129, 140, 248, 0.7));
  box-shadow: none !important;
}

/* Vector Gyro Reticle Panel */
.mrflow-vector-panel {
  padding: 0 !important;
}

.vector-viewport {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
}

#mrflow-vector-canvas {
  width: 220px;
  height: 120px;
  display: block;
}

.vector-readouts {
  display: flex;
  justify-content: space-around;
  width: 100%;
  padding-top: 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(148, 163, 184, 0.4) !important;
}

.vec-axis strong {
  color: rgba(0, 229, 255, 0.6) !important;
}

@media (max-width: 1100px) {
  .mrflow-stage-right-hud {
    display: none !important;
  }
  .mrflow-stage-mesh-hud {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .mrflow-stage-left-hud {
    display: none !important;
  }
  .mrflow-stage-coord-hud {
    display: none !important;
  }
}

/* Right Side Full Console (Frameless & Holographic Translucent HUD) */
.mrflow-full-console {
  width: 440px;
  flex-shrink: 0;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-left: none !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
  position: relative;
  overflow-y: auto;
  box-shadow: none !important;
  z-index: 10;
}

.btn-mrflow-stage-sound {
  position: absolute;
  top: 18px;
  right: 24px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: transparent !important;
  border: 1px solid rgba(0, 229, 255, 0.22) !important;
  color: rgba(56, 189, 248, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 25;
  transition: all 0.2s ease;
}

.btn-mrflow-stage-sound:hover {
  border-color: #00e5ff !important;
  color: #00e5ff;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.3);
}

.btn-mrflow-stage-close {
  position: absolute;
  top: 18px;
  right: 64px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: transparent !important;
  border: 1px solid rgba(0, 229, 255, 0.22) !important;
  color: rgba(148, 163, 184, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 25;
  transition: all 0.2s ease;
}

.btn-mrflow-stage-close:hover {
  border-color: #ef4444 !important;
  color: #ef4444;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.35);
}

.mrflow-console-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.mrflow-bypass-action-row {
  margin-top: 14px;
}

.btn-gate-bypass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 18px;
  background: rgba(12, 35, 64, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 10px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-gate-bypass:hover {
  color: #ffffff;
  border-color: #00e5ff;
  background: rgba(0, 229, 255, 0.15);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.25);
}

.gate-dissolve {
  opacity: 0 !important;
  transform: scale(1.03) !important;
  transition: opacity 0.45s ease, transform 0.45s ease !important;
  pointer-events: none;
}

.topbar-mrflow-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.3);
  color: #00e5ff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.topbar-mrflow-btn:hover {
  background: rgba(0, 229, 255, 0.18);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.35);
  border-color: #00e5ff;
}

.mrflow-mini-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00e5ff;
  box-shadow: 0 0 6px #00e5ff;
  animation: beaconPulse 1.8s ease-in-out infinite;
}

@media (max-width: 950px) {
  .mrflow-full-body {
    flex-direction: column;
    overflow-y: auto;
  }
  .mrflow-full-stage {
    min-height: 480px;
  }
  .mrflow-full-console {
    width: 100%;
    border-left: none;
    border-top: 1px solid rgba(0, 229, 255, 0.22);
  }
}

/* ==========================================================================
   DYNAMIC CHAT DOCKING SYSTEM: LEFT / RIGHT WORKSPACE SWITCH
   ========================================================================== */
.canvas-layout.chat-dock-left .rightbar-chat {
  order: 1 !important;
  box-shadow: 6px 0 24px rgba(0, 0, 0, 0.45) !important;
}

.canvas-layout.chat-dock-left .resizer-right,
.canvas-layout.chat-dock-left .rightbar-resizer {
  order: 2 !important;
}

.canvas-layout.chat-dock-left .workbench-main {
  order: 3 !important;
}

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

/* ==========================================================================
   SOVEREIGN INTERACTIVE CONSULTATION WIZARD (ask_question PAGINATION)
   ========================================================================== */
.ask-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 12px;
  margin-bottom: 4px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.ask-page-counter-badge {
  font-size: 12px;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.02em;
  font-family: var(--font-mono, monospace);
}

.ask-pagination-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.ask-page-pill {
  min-width: 32px;
  height: 30px;
  padding: 0 9px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(30, 41, 59, 0.65);
  color: #94a3b8;
  user-select: none;
}

.ask-page-pill:hover {
  border-color: rgba(56, 189, 248, 0.5);
  color: #ffffff;
  background: rgba(30, 41, 59, 0.9);
}

.ask-page-pill.active {
  background: linear-gradient(135deg, #0284c7, #0369a1) !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.45) !important;
  transform: scale(1.06);
}

.ask-page-pill.is-answered:not(.active) {
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  background: rgba(14, 165, 233, 0.12);
}

.ask-question-page {
  animation: askPageFadeIn 0.22s ease-out;
}

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


/* ==========================================================================
   SOVEREIGN ANTIGRAVITY MULTI-ACCOUNT CONNECTOR & AI MATRIX STYLES
   ========================================================================== */
/* --- RECOVERED CONNECTOR BLOCK STEP 2297 --- */
.btn-promo-desktop:hover {
  background: #334155;
  border-color: #64748b;
  color: #ffffff;
}

/* =============================================================================
   ANTIGRAVITY MULTI-ACCOUNT CONNECTOR MODAL STYLES
   ============================================================================= */
.connector-count-badge {
  font-size: 10px;
  font-weight: 800;
  background: rgba(0, 229, 255, 0.2);
  color: #00e5ff;
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid rgba(0, 229, 255, 0.35);
  margin-left: 2px;
}

.connector-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 14, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.connector-modal-card {
  background: rgba(6, 12, 24, 0.95) !important;
  border: 1px solid rgba(0, 229, 255, 0.45) !important;
  border-radius: 18px;
  width: 100%;
  max-width: 820px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(0, 229, 255, 0.22);
  overflow: hidden;
  animation: slideInCapsule 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.connector-modal-header {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.connector-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.connector-modal-icon {
  font-size: 26px;
}

.connector-modal-title {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.3px;
}

.connector-modal-subtitle {
  font-size: 11.5px;
  color: #94a3b8;
  margin: 2px 0 0;
}

.btn-connector-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f8fafc;
  font-size: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-connector-close:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #ff8b8b;
  transform: scale(1.1);
}

.connector-modal-body {
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.connector-pool-overview {
  background: rgba(12, 18, 32, 0.75);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 16px;
  padding: 16px 20px;
}

.connector-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.connector-toolbar-left {
  display: flex;
  gap: 10px;
  align-items: center;
}

.connector-toolbar-right {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn-connector-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-add-account {
  background: rgba(0, 229, 255, 0.15);
  border: 1px solid rgba(0, 229, 255, 0.4);
  color: #00e5ff;
}

.btn-add-account:hover {
  background: rgba(0, 229, 255, 0.28);
  border-color: #00e5ff;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.3);
  transform: translateY(-1px);
}

.btn-sync-cloud {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
}

.btn-sync-cloud:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.3);
  transform: translateY(-1px);
}

.connector-mode-label {
  font-size: 11.5px;
  color: #94a3b8;
  font-weight: 600;
}

.connector-mode-select {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(0, 229, 255, 0.25);
  color: #f8fafc;
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.connector-accounts-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.connector-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.5px;
}

.connector-accounts-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.connector-account-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  transition: all 0.2s ease;
}

.connector-account-card:hover {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(0, 229, 255, 0.3);
}

.connector-account-card.active-account {
  border-color: rgba(0, 229, 255, 0.6);
  background: rgba(0, 229, 255, 0.06);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.1);
}

.connector-acc-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.connector-acc-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.3);
  display: grid;
  place-items: center;
  font-size: 16px;
}

.connector-acc-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.connector-acc-email {
  font-size: 13px;
  font-weight: 700;
  color: #f8fafc;
}

.connector-acc-subtext {
  font-size: 11px;
  color: #64748b;
  display: flex;
  gap: 10px;
  align-items: center;
}

.connector-status-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  text-transform: uppercase;
}

.status-badge-active {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.status-badge-cooldown {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

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

.connector-acc-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-acc-action {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.btn-acc-active {
  background: rgba(0, 229, 255, 0.18);
  border-color: rgba(0, 229, 255, 0.5);
  color: #00e5ff;
}

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

.connector-empty-state {
  padding: 36px 20px;
  text-align: center;
  background: rgba(15, 23, 42, 0.4);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 14px;
}

.connector-empty-state span {
  font-size: 32px;
  display: block;
  margin-bottom: 8px;
}

.connector-empty-state p {
  font-size: 13px;
  color: #94a3b8;
  margin: 0 0 14px;
}

.btn-connector-subaction {
  background: rgba(0, 229, 255, 0.15);
  border: 1px solid rgba(0, 229, 255, 0.35);
  color: #00e5ff;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-connector-subaction:hover {
  background: rgba(0, 229, 255, 0.28);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.3);
}

/* --- RECOVERED CONNECTOR BLOCK STEP 3091 --- */
.btn-connector-subaction:hover {
  background: rgba(0, 229, 255, 0.28);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.3);
}

/* ── Connector Modal Active AI Engine Matrix Selector ── */
.connector-provider-selector-wrap {
  background: rgba(12, 18, 32, 0.75);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.connector-provider-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.connector-provider-title {
  font-size: 11px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #94a3b8;
  letter-spacing: 0.08em;
}

.connector-provider-active-pill {
  font-size: 9px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(0, 229, 255, 0.15);
  color: #00e5ff;
  border: 1px solid rgba(0, 229, 255, 0.35);
  letter-spacing: 0.06em;
}

.connector-provider-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.connector-provider-card {
  background: rgba(16, 24, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.connector-provider-card:hover {
  background: rgba(24, 34, 60, 0.8);
  border-color: rgba(0, 229, 255, 0.4);
  transform: translateY(-2px);
}

.connector-provider-card.active {
  background: rgba(0, 229, 255, 0.1) !important;
  border-color: #00e5ff !important;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.25);
}

.card-provider-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-provider-icon {
  font-size: 20px;
}

.card-provider-badge {
  font-size: 8.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.connector-provider-card.active .card-provider-badge {
  background: rgba(0, 229, 255, 0.2);
  color: #00e5ff;
  border-color: rgba(0, 229, 255, 0.4);
}

.card-provider-name {
  font-size: 13px;
  font-weight: 700;
  color: #f8fafc;
}

.connector-provider-card.active .card-provider-name {
  color: #00e5ff;
}

.card-provider-desc {
  font-size: 10.5px;
  color: #94a3b8;
  line-height: 1.4;
  flex: 1;
}

.card-provider-status {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  margin-top: 4px;
}

.connector-provider-card.active .card-provider-status {
  color: #10b981;
}

.chat-model-provider-icon {
  font-size: 11px;
  margin-right: 4px;
}

/* --- RECOVERED CONNECTOR BLOCK STEP 3307 --- */
.chat-model-provider-icon {
  font-size: 11px;
  margin-right: 4px;
}

/* ── Connector Modal Dynamic Provider Panels ── */
.connector-provider-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: fadeInPanel 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.connector-config-box, .connector-models-management-box {
  background: rgba(12, 18, 32, 0.75);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.connector-config-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.connector-config-title {
  font-size: 11px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #94a3b8;
  letter-spacing: 0.08em;
}

.connector-config-subtitle {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

.connector-config-field-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.connector-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.connector-input-wrap:focus-within {
  border-color: #00e5ff;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.2);
}

.connector-input-prefix {
  font-size: 9px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #00e5ff;
  background: rgba(0, 229, 255, 0.1);
  padding: 8px 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  letter-spacing: 0.06em;
}

.connector-text-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 8px 12px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: #f8fafc;
}

.connector-text-input::placeholder {
  color: #475569;
}

.connector-field-hint {
  font-size: 10.5px;
  color: #64748b;
  margin: 0;
}

.connector-field-hint code {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  padding: 1px 5px;
  border-radius: 4px;
}

.btn-test-conn {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #10b981;
  padding: 8px 16px;
}

.btn-test-conn:hover {
  background: rgba(16, 185, 129, 0.25);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
}

.connector-endpoint-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
}

.connector-endpoint-status.online {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.connector-endpoint-status.offline {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.connector-endpoint-status .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.connector-add-model-row {
  display: flex;
  gap: 10px;
}

.connector-add-model-row .connector-text-input {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 8px 14px;
}

.connector-add-model-row .connector-text-input:focus {
  border-color: #00e5ff;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.2);
}

.connector-chips-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  padding: 4px 0;
}

.connector-model-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 8px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: #f1f5f9;
  transition: all 0.2s ease;
}

.connector-model-chip:hover {
  border-color: #00e5ff;
  background: rgba(0, 229, 255, 0.08);
}

.connector-model-chip.routed {
  border-color: rgba(139, 92, 246, 0.4);
  background: rgba(139, 92, 246, 0.08);
}

.connector-model-chip-tag {
  font-size: 8.5px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(0, 229, 255, 0.2);
  color: #00e5ff;
}

.connector-model-chip.routed .connector-model-chip-tag {
  background: rgba(139, 92, 246, 0.25);
  color: #c084fc;
}

.connector-chip-remove {
  background: none;
  border: none;
  color: #64748b;
  font-size: 13px;
  cursor: pointer;
  padding: 0 2px;
  display: inline-flex;
  align-items: center;
  transition: color 0.15s ease;
}

.connector-chip-remove:hover {
  color: #ef4444;
}

.connector-panel-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}

.btn-connector-save {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.2) 0%, rgba(99, 102, 241, 0.2) 100%);
  border: 1px solid #00e5ff;
  color: #00e5ff;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-connector-save:hover {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.35) 0%, rgba(99, 102, 241, 0.35) 100%);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
  transform: translateY(-1px);
}


