/* FieldBase Live Session Inspector Effects Layer - Rev 1.6.8.4.72
   Cosmetic-only overlay for dev diagnostics cards. No data collection or authority changes. */
:root {
  --lsi-neon-green: #22c55e;
  --lsi-neon-yellow: #facc15;
  --lsi-neon-red: #ef4444;
  --lsi-neon-blue: #38bdf8;
  --lsi-neon-purple: #a78bfa;
  --lsi-panel-dark: rgba(2, 6, 23, .72);
}
.live-card {
  position: relative;
  overflow: hidden;
}
.live-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 8%, rgba(56,189,248,.16), transparent 26%),
    radial-gradient(circle at 92% 12%, rgba(34,197,94,.09), transparent 24%),
    linear-gradient(135deg, rgba(15,23,42,.08), transparent 55%);
  opacity: .9;
}
.live-card-head,
.live-card-body { position: relative; z-index: 1; }
.lsi-light-strip {
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 8px;
}
.lsi-led {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.32);
  background: #475569;
  box-shadow: inset 0 0 5px rgba(255,255,255,.25), 0 0 10px rgba(148,163,184,.22);
}
.lsi-led.green { background: var(--lsi-neon-green); box-shadow: 0 0 16px rgba(34,197,94,.9), inset 0 0 6px rgba(255,255,255,.45); }
.lsi-led.yellow { background: var(--lsi-neon-yellow); box-shadow: 0 0 16px rgba(250,204,21,.82), inset 0 0 6px rgba(255,255,255,.45); }
.lsi-led.red { background: var(--lsi-neon-red); box-shadow: 0 0 16px rgba(239,68,68,.85), inset 0 0 6px rgba(255,255,255,.42); }
.lsi-led.blue { background: var(--lsi-neon-blue); box-shadow: 0 0 16px rgba(56,189,248,.82), inset 0 0 6px rgba(255,255,255,.42); }
.lsi-led.pulse { animation: lsiPulse 1.25s ease-in-out 3; }
.lsi-led.scan { animation: lsiScan 950ms ease-in-out 3 alternate; }
.lsi-led.breathe { animation: lsiBreathe 2.4s ease-in-out infinite; }
@keyframes lsiPulse { 0%,100% { transform: scale(.92); opacity:.65; } 50% { transform: scale(1.25); opacity:1; } }
@keyframes lsiScan { from { filter: brightness(.75); } to { filter: brightness(1.55); } }
@keyframes lsiBreathe { 0%,100% { filter: brightness(.92); transform: scale(.96); } 50% { filter: brightness(1.35); transform: scale(1.08); } }
.lsi-tech-console {
  margin: 14px 0;
  border: 1px solid rgba(56,189,248,.25);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(15,23,42,.94), rgba(2,6,23,.88)),
    repeating-linear-gradient(0deg, rgba(56,189,248,.04) 0, rgba(56,189,248,.04) 1px, transparent 1px, transparent 5px);
  box-shadow: 0 0 30px rgba(14,165,233,.15), inset 0 0 20px rgba(34,211,238,.05);
  overflow: hidden;
}
.lsi-console-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(56,189,248,.18);
  color: #e0f2fe;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.lsi-console-head span:last-child { color: #67e8f9; }
.lsi-console-lines {
  display: grid;
  gap: 7px;
  padding: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .78rem;
  color: #bfdbfe;
}
.lsi-console-line {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  gap: 8px;
  align-items: center;
  opacity: 0;
  transform: translateY(4px);
  animation: lsiLineIn .32s ease forwards;
}
.lsi-console-line:nth-child(2) { animation-delay: .12s; }
.lsi-console-line:nth-child(3) { animation-delay: .24s; }
.lsi-console-line:nth-child(4) { animation-delay: .36s; }
.lsi-console-line:nth-child(5) { animation-delay: .48s; }
.lsi-console-line strong { color: #f8fafc; }
.lsi-console-line em { color: #93c5fd; font-style: normal; }
@keyframes lsiLineIn { to { opacity: 1; transform: translateY(0); } }
.lsi-progress-stack {
  display: grid;
  gap: 8px;
  padding: 0 12px 12px;
}
.lsi-progress-row { display: grid; gap: 5px; }
.lsi-progress-row span { color: #93a4bb; font-size: .72rem; font-weight: 800; }
.lsi-progress-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(148,163,184,.16);
  overflow: hidden;
  border: 1px solid rgba(148,163,184,.12);
}
.lsi-progress-track i {
  display: block;
  height: 100%;
  width: 10%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--lsi-neon-blue), var(--lsi-neon-green));
  box-shadow: 0 0 18px rgba(34,211,238,.45);
  animation: lsiLoad 1.65s ease-out forwards;
}
.lsi-progress-row:nth-child(2) .lsi-progress-track i { animation-duration: 2.05s; background: linear-gradient(90deg, var(--lsi-neon-purple), var(--lsi-neon-blue)); }
.lsi-progress-row:nth-child(3) .lsi-progress-track i { animation-duration: 2.35s; background: linear-gradient(90deg, #f59e0b, var(--lsi-neon-green)); }
@keyframes lsiLoad { from { width: 8%; } to { width: var(--lsi-progress, 100%); } }
.lsi-mini-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 4px;
}
.lsi-mini-metric {
  border: 1px solid rgba(148,163,184,.16);
  background: rgba(2,6,23,.36);
  border-radius: 14px;
  padding: 10px;
  display: grid;
  gap: 6px;
}
.lsi-mini-metric span { display: flex; align-items: center; gap: 7px; color: #9fb1c9; font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.lsi-mini-metric strong { color: #eaf2ff; font-size: .95rem; }
.lsi-shutdown .lsi-console-line { color: #fde68a; }
.lsi-shutdown .lsi-progress-track i { background: linear-gradient(90deg, var(--lsi-neon-yellow), var(--lsi-neon-red)); }
.live-card.is-collapsed .lsi-tech-console,
.live-card.is-collapsed .lsi-mini-metrics { display: none; }
.live-card.is-collapsed .lsi-light-strip { margin-top: 4px; }

.lsi-tech-console.lsi-stable .lsi-console-line { opacity: 1; transform: none; animation: none; }
.lsi-tech-console.lsi-stable .lsi-progress-track i { animation: none; width: var(--lsi-progress, 100%); }
.lsi-tech-console.lsi-stable .lsi-led.breathe { animation: lsiBreathe 2.4s ease-in-out infinite; opacity: 1; }
.lsi-tech-console.lsi-disconnected .lsi-led.breathe { animation: none; opacity: .82; transform: none; }
.lsi-tech-console.lsi-booting .lsi-console-line { opacity: 0; }

@media (max-width: 760px) {
  .lsi-mini-metrics { grid-template-columns: 1fr; }
  .lsi-console-line { grid-template-columns: 14px 1fr; }
  .lsi-console-line em { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
  .lsi-led, .lsi-console-line, .lsi-progress-track i { animation: none !important; opacity: 1; transform: none; }
}

.lsi-disconnected { opacity: .88; border-color: rgba(239,68,68,.24); box-shadow: inset 0 0 16px rgba(239,68,68,.05); }
.lsi-disconnected .lsi-console-head span:last-child { color: #fca5a5; }
.lsi-disconnected .lsi-progress-track i { animation: none; width: var(--lsi-progress, 0%); background: linear-gradient(90deg, rgba(250,204,21,.65), rgba(239,68,68,.75)); box-shadow: 0 0 12px rgba(239,68,68,.25); }
.lsi-shutdown .lsi-progress-track i { animation: lsiDrain 1.15s ease-out forwards; }
@keyframes lsiDrain { from { width: 100%; } to { width: var(--lsi-progress, 10%); } }
