.spotlight { position: fixed; inset: 0; z-index: 9500; }
.spotlight[hidden] { display: none; }
.spotlight-backdrop {
  position: absolute; inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  animation: spotlight-fade 150ms ease;
}
@keyframes spotlight-fade {
  from { opacity: 0; } to { opacity: 1; }
}
.spotlight-panel {
  position: absolute; left: 50%; top: 10vh;
  transform: translateX(-50%);
  width: 640px; max-width: calc(100vw - 32px);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 60px -12px rgba(15, 23, 42, 0.45);
  overflow: hidden;
  animation: spotlight-pop 180ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes spotlight-pop {
  from { opacity: 0; transform: translateX(-50%) translateY(-12px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.spotlight-input-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid #f1f5f9;
}
.spotlight-icon { color: #94a3b8; flex-shrink: 0; }
.spotlight-input-row input {
  flex: 1; border: 0; outline: 0;
  font-size: 17px;
  background: transparent;
  color: #0f172a;
  font-family: inherit;
}
.spotlight-input-row input::placeholder { color: #94a3b8; }
.spotlight-kbd, kbd {
  display: inline-block;
  padding: 2px 6px;
  font-size: 11px;
  font-family: inherit;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  color: #64748b;
  box-shadow: 0 1px 0 #e2e8f0;
}

.spotlight-results {
  max-height: 60vh;
  overflow-y: auto;
  padding: 6px 0;
}
.spotlight-results.is-loading { opacity: 0.6; }

.spotlight-group + .spotlight-group { border-top: 1px solid #f1f5f9; margin-top: 4px; padding-top: 4px; }
.spotlight-group-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  padding: 8px 18px 4px;
}

.spotlight-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 18px;
  text-decoration: none;
  color: #0f172a;
  font-size: 14px;
  cursor: pointer;
  transition: background 100ms;
}
.spotlight-item.is-active,
.spotlight-item:hover {
  background: #f1f5f9;
}
.spotlight-item-main { flex: 1; min-width: 0; }
.spotlight-item-title { font-weight: 500; display: block; }
.spotlight-item-sub { font-size: 12px; color: #64748b; display: block; margin-top: 1px; }
.spotlight-item-tag {
  display: inline-block;
  background: #eef2ff;
  color: #4f46e5;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 6px;
  font-weight: 600;
}
.spotlight-item-meta {
  font-size: 12px;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
}

.spotlight-empty {
  padding: 32px 24px;
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.6;
}

.spotlight-hint {
  display: flex; gap: 14px;
  padding: 8px 18px;
  border-top: 1px solid #f1f5f9;
  font-size: 11px;
  color: #94a3b8;
  background: #fafbfc;
}
.spotlight-hint kbd { padding: 1px 5px; font-size: 10px; margin-right: 3px; }

.spotlight-trigger {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px 6px 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 8px;
  color: #94a3b8;
  cursor: pointer;
  font-size: 13px;
  transition: all 150ms;
  min-width: 200px;
}
.spotlight-trigger:hover { border-color: #cbd5e1; color: #64748b; }
.spotlight-trigger-text { flex: 1; text-align: left; }
.spotlight-trigger-kbd {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 3px;
  color: #64748b;
}

@media (max-width: 640px) {
  .spotlight-panel { top: 0; left: 0; right: 0; transform: none; width: 100%; max-width: 100%; border-radius: 0; height: 100%; }
  .spotlight-results { max-height: none; flex: 1; }
  .spotlight-trigger { min-width: 0; padding: 6px 10px; }
  .spotlight-trigger-text, .spotlight-trigger-kbd { display: none; }
}
