:root {
  --color-surface-base: #162036;
  --color-surface-raised: #202c48;
  --color-surface-overlay: #2c3959;
}

body {
  background-color: #162036;
  color: #e2e8f0;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.55) transparent;
}
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, 0.55); border-radius: 999px; }
::-webkit-scrollbar-track { background: transparent; }

.panel {
  background-color: #202c48;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  background-color: #2563eb;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  box-shadow: 0 10px 15px -3px rgba(22, 36, 86, 0.4), 0 4px 6px -4px rgba(22, 36, 86, 0.4);
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.btn-primary:hover:not(:disabled) {
  background-color: #3b82f6;
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.05);
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #e2e8f0;
  transition: all 0.15s ease;
}

.btn-secondary:hover:not(:disabled) {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.icon-btn {
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  color: #94a3b8;
  transition: all 0.15s ease;
}

.icon-btn:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

/* T-Rex Neon Liquid Progress Bar & Full-Track Shimmer */
@keyframes laserFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes fullTrackSweep {
  0% { left: -35%; }
  100% { left: 105%; }
}

.cyber-progress-track {
  position: relative;
  background: rgba(10, 16, 30, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.75);
  overflow: hidden;
}

.cyber-progress-track::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -35%;
  width: 35%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  animation: fullTrackSweep 1.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
}

.cyber-progress-fill {
  position: relative;
  background: linear-gradient(90deg, #2563eb, #06b6d4, #3b82f6, #10b981);
  background-size: 300% 100%;
  animation: laserFlow 3s ease infinite;
  box-shadow: 0 0 18px rgba(6, 182, 212, 0.65), 0 0 6px rgba(59, 130, 246, 0.9);
  transition: width 0.18s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: visible;
}

.cyber-progress-fill::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -2px;
  bottom: -1px;
  width: 10px;
  background: #ffffff;
  border-radius: 9999px;
  box-shadow: 0 0 12px 3px #38bdf8, 0 0 20px 6px #2563eb;
}
:root {
  --color-surface-base: #162036;
  --color-surface-raised: #202c48;
  --color-surface-overlay: #2c3959;
}

/* GLOBAL CLICK-AND-HOLD SELECTION RULE:
   Normal clicks will NEVER accidentally highlight text anywhere on the site.
   Holding mouse/touch down for 350ms activates `.hold-selectable` so the user can select & copy text! */
body, body * {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

input, textarea, [contenteditable="true"], .hold-selectable, .hold-selectable * {
  -webkit-user-select: text !important;
  user-select: text !important;
}

body {
  background-color: #162036;
  color: #e2e8f0;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.55) transparent;
}
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, 0.55); border-radius: 999px; }
::-webkit-scrollbar-track { background: transparent; }

.panel {
  background-color: #202c48;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
}

.input {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(22, 32, 54, 0.6);
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  color: #ffffff;
  transition: all 0.15s ease;
}

.input:focus {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
  outline: none;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  background-color: #2563eb;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  box-shadow: 0 10px 15px -3px rgba(22, 36, 86, 0.4), 0 4px 6px -4px rgba(22, 36, 86, 0.4);
  transition: background-color 0.15s ease;
}

.btn-primary:hover:not(:disabled) { background-color: #3b82f6; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.05);
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #e2e8f0;
  transition: all 0.15s ease;
}

.btn-secondary:hover:not(:disabled) {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #cbd5e1;
  transition: all 0.15s ease;
}

.btn-ghost:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.icon-btn {
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  color: #94a3b8;
  transition: all 0.15s ease;
}

.icon-btn:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.fm-row[data-context-target="true"],
.fm-row[data-selected="true"] {
  background-color: rgba(59, 130, 246, 0.1) !important;
}

/* Neon Liquid Progress Bar */
@keyframes laserFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes fullTrackSweep {
  0% { left: -35%; }
  100% { left: 105%; }
}

.cyber-progress-track {
  position: relative;
  background: rgba(10, 16, 30, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.75);
  overflow: hidden;
}

.cyber-progress-track::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -35%;
  width: 35%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  animation: fullTrackSweep 1.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
}

.cyber-progress-fill {
  position: relative;
  background: linear-gradient(90deg, #2563eb, #06b6d4, #3b82f6, #10b981);
  background-size: 300% 100%;
  animation: laserFlow 3s ease infinite;
  box-shadow: 0 0 18px rgba(6, 182, 212, 0.65), 0 0 6px rgba(59, 130, 246, 0.9);
  transition: width 0.18s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: visible;
}

.cyber-progress-fill::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -2px;
  bottom: -1px;
  width: 10px;
  background: #ffffff;
  border-radius: 9999px;
  box-shadow: 0 0 12px 3px #38bdf8, 0 0 20px 6px #2563eb;
}