/* Classic Lab — Hybrid Autopilot: the combined DDA + Treasury control */
#hybrid-host {
  display: block;
  margin: 0 0 14px;
}

.hy-card {
  position: relative;
  border: 1px solid rgba(150, 130, 255, 0.4);
  border-radius: 14px;
  padding: 16px 18px;
  background:
    radial-gradient(
      120% 140% at 0% 0%,
      rgba(140, 110, 255, 0.18),
      transparent 60%
    ),
    radial-gradient(
      120% 140% at 100% 0%,
      rgba(0, 220, 200, 0.12),
      transparent 55%
    ),
    linear-gradient(180deg, rgba(16, 18, 42, 0.94), rgba(11, 13, 30, 0.94));
  box-shadow: 0 6px 26px rgba(0, 0, 0, 0.38);
  overflow: hidden;
}
.hy-card.hy-on {
  border-color: rgba(120, 230, 200, 0.6);
  box-shadow:
    0 0 0 1px rgba(120, 230, 200, 0.25),
    0 8px 30px rgba(40, 60, 90, 0.4);
}

.hy-top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.hy-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #0a0618;
  background: linear-gradient(90deg, #b18cff, #00e6c0);
  padding: 3px 9px;
  border-radius: 999px;
}
.hy-title {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #f1ecff;
}
.hy-state {
  margin-left: auto;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #b6abda;
  border: 1px solid rgba(180, 170, 230, 0.3);
  padding: 3px 9px;
  border-radius: 999px;
}
.hy-card.hy-on .hy-state {
  color: #061614;
  background: #00e6c0;
  border-color: transparent;
}

.hy-blurb {
  margin: 10px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: #cdc7ec;
}
.hy-blurb b {
  color: #f1ecff;
}

.hy-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.hy-engage {
  appearance: none;
  border: none;
  cursor: pointer;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.03em;
  color: #0a0618;
  background: linear-gradient(90deg, #b18cff, #00e6c0);
  padding: 11px 18px;
  border-radius: 11px;
  transition:
    transform 0.08s ease,
    filter 0.15s ease;
}
.hy-engage:hover {
  filter: brightness(1.06);
}
.hy-engage:active {
  transform: translateY(1px);
}
.hy-card.hy-on .hy-engage {
  background: linear-gradient(90deg, #ff7a7a, #ff4d6d);
  color: #16060a;
}

.hy-vps {
  appearance: none;
  cursor: pointer;
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: #f1ecff;
  background: rgba(40, 30, 70, 0.7);
  border: 1px solid rgba(180, 150, 255, 0.45);
  padding: 9px 14px;
  border-radius: 10px;
  margin-left: auto;
  transition:
    border-color 0.12s ease,
    filter 0.15s ease;
}
.hy-vps:hover {
  border-color: rgba(180, 150, 255, 0.85);
  filter: brightness(1.05);
}

.hy-ticks {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.hy-ticks-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #9a90c0;
  margin-right: 2px;
}
.hy-tick {
  appearance: none;
  cursor: pointer;
  border: 1px solid rgba(170, 155, 230, 0.32);
  background: rgba(24, 26, 50, 0.7);
  color: #cdc7ec;
  font-weight: 700;
  font-size: 12.5px;
  padding: 7px 11px;
  border-radius: 9px;
  transition:
    border-color 0.12s ease,
    background 0.12s ease,
    color 0.12s ease;
}
.hy-tick:hover {
  border-color: rgba(150, 130, 255, 0.7);
}
.hy-tick.on {
  background: linear-gradient(
    90deg,
    rgba(150, 130, 255, 0.95),
    rgba(0, 230, 192, 0.95)
  );
  color: #0a0618;
  border-color: transparent;
}

.hy-status {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
  min-height: 26px;
}
.hy-chip {
  font-size: 12px;
  font-weight: 600;
  color: #cdc7ec;
  background: rgba(26, 28, 54, 0.85);
  border: 1px solid rgba(170, 155, 230, 0.22);
  padding: 4px 9px;
  border-radius: 999px;
}
.hy-chip.live {
  color: #061614;
  background: #00e6c0;
  border-color: transparent;
}
.hy-chip.warn {
  color: #1a0d04;
  background: #ffb454;
  border-color: transparent;
}
.hy-chip.off {
  color: #9a90c0;
}

/* live ensemble component grid */
.hy-ens {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.hy-comp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: #aab; /* muted = not computed this tick */
  background: rgba(20, 22, 44, 0.7);
  border: 1px solid rgba(150, 140, 200, 0.18);
  padding: 4px 9px;
  border-radius: 8px;
}
.hy-comp.live {
  color: #e9fffa;
  border-color: rgba(0, 230, 192, 0.45);
  background: rgba(10, 40, 38, 0.55);
}
.hy-comp .hy-dot {
  color: #00e6c0;
  font-size: 9px;
  line-height: 1;
}
.hy-comp-label {
  opacity: 0.85;
}
.hy-comp-val {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #f1ecff;
}

.hy-fine {
  margin: 12px 0 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: #9a90c0;
}

/* locked / paywall state */
.hy-lock-note {
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: #ffd28a;
}
.hy-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.hy-btn {
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 10px;
}
.hy-go {
  color: #0a0618;
  background: linear-gradient(90deg, #b18cff, #00e6c0);
}
.hy-ghost {
  color: #cdc7ec;
  border: 1px solid rgba(170, 155, 230, 0.32);
}
