/* emoji.css — 简单不侵入，全部命名空间 .y-emoji-* */
.y-emoji-panel {
  position: relative;
  width: 100%;
  max-width: 560px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  overflow: hidden;
  display: none;
  z-index: 1000;
}
.y-emoji-panel.y-open { display: block; }

.y-emoji-header {
  display: flex;
  gap: 8px;
  padding: 8px;
  border-bottom: 1px solid #f1f5f9;
  background: #f8fafc;
}
.y-emoji-tab {
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  color: #334155;
}
.y-emoji-tab.y-active { background: #e2e8f0; }

.y-emoji-body {
  max-height: 220px;
  overflow: auto;
  padding: 8px;
}
.y-emoji-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
}
@media (max-width: 480px) {
  .y-emoji-grid { grid-template-columns: repeat(8, 1fr); }
}

.y-emoji-item {
  font-size: 20px;
  line-height: 38px;
  text-align: center;
  border-radius: 8px;
  cursor: pointer;
  transition: transform .05s ease;
}
.y-emoji-item:hover { transform: scale(1.1); background: #f1f5f9; }

.y-emoji-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px;
  border-top: 1px solid #f1f5f9;
  background: #fafafa;
  font-size: 12px;
  color: #64748b;
}

.y-emoji-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
}
.y-emoji-trigger:hover { background: #f8fafc; }
