.btn-primary {
  background: #ffffff;
  color: #000000;
  border: none;
  padding: 11px 22px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
  font-family: 'SYN', sans-serif;
}

.btn-primary:hover { background: rgba(255, 255, 255, 0.9); }
.btn-primary:active { transform: scale(0.95); }

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-normal);
  padding: 11px 22px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
  font-family: 'SYN', sans-serif;
  display: flex;
  align-items: center;
  gap: 7px;
}

.btn-secondary:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--border-strong); }
.btn-secondary:active { transform: scale(0.95); }
.btn-secondary img { width: 15px; height: 15px; filter: brightness(0) invert(1); }

.btn-floating {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  -webkit-user-select: none;
  flex-shrink: 0;
}

.btn-floating:hover { background: rgba(255, 255, 255, 0.06); border-color: var(--border-normal); }
.btn-floating:active { transform: scale(0.95); }
.btn-floating img { width: 20px; height: 20px; filter: brightness(0) invert(1); }

.search-box-wrap { width: 100%; max-width: 620px; position: relative; }

.search-box {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 40px;
  padding: 14px 54px 14px 50px;
  font-family: 'SYN', sans-serif;
  font-size: 16px;
  color: var(--text-primary);
  outline: none;
  transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: text;
  -webkit-user-select: text;
}

.search-box::placeholder { color: var(--text-tertiary); }
.search-box:focus { background: rgba(255, 255, 255, 0.08); border-color: var(--border-normal); }

.search-icon-left {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
  opacity: 0.45;
}

.search-clear {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  transition: background 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  -webkit-user-select: none;
}

.search-clear:hover { background: rgba(255, 255, 255, 0.08); }
.search-clear:active { transform: translateY(-50%) scale(0.9); }
.search-clear img { width: 13px; height: 13px; filter: brightness(0) invert(1); }

.results-search-wrap {
  position: relative;
  flex: 1;
  max-width: 580px;
}

.results-search-box {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 40px;
  padding: 10px 42px 10px 42px;
  font-family: 'SYN', sans-serif;
  font-size: 15px;
  color: var(--text-primary);
  outline: none;
  transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: text;
  -webkit-user-select: text;
}

.results-search-box::placeholder { color: var(--text-tertiary); }
.results-search-box:focus { background: rgba(255, 255, 255, 0.08); border-color: var(--border-normal); }

.results-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
  opacity: 0.45;
}

.results-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  transition: background 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  -webkit-user-select: none;
}

.results-clear:hover { background: rgba(255, 255, 255, 0.08); }
.results-clear:active { transform: translateY(-50%) scale(0.9); }
.results-clear img { width: 12px; height: 12px; filter: brightness(0) invert(1); }

.ai-snippet {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(62, 145, 255, 0.2);
  border-radius: 20px;
  padding: 20px 22px;
  margin-bottom: 18px;
  display: none;
  transition: border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-snippet:hover { border-color: rgba(62, 145, 255, 0.35); }

.ai-snippet-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  user-select: none;
  -webkit-user-select: none;
}

.ai-snippet-header img {
  width: 15px;
  height: 15px;
  filter: brightness(0) saturate(100%) invert(50%) sepia(80%) saturate(500%) hue-rotate(195deg) brightness(110%);
}

.ai-snippet-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-primary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.ai-snippet-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.72;
  user-select: text;
  -webkit-user-select: text;
}

.ai-snippet-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  user-select: none;
  -webkit-user-select: none;
}

.ai-usage-badge {
  font-size: 11px;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 5px;
}

.ai-usage-badge img {
  width: 12px;
  height: 12px;
  filter: brightness(0) invert(1);
  opacity: 0.35;
}

.avatar-ring {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--border-normal);
  background: rgba(62, 145, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-primary);
  cursor: pointer;
  transition: border-color 0.2s;
  user-select: none;
  -webkit-user-select: none;
}

.avatar-ring:hover { border-color: var(--accent-primary); }

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  background: rgba(62, 145, 255, 0.1);
  border: 1px solid rgba(62, 145, 255, 0.2);
  border-radius: 20px;
  font-size: 12px;
  color: var(--accent-primary);
  user-select: none;
  -webkit-user-select: none;
}

.tag-chip img {
  width: 11px;
  height: 11px;
  filter: brightness(0) saturate(100%) invert(50%) sepia(80%) saturate(500%) hue-rotate(195deg) brightness(110%);
}

.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: syn-shimmer 1.4s infinite;
  border-radius: 8px;
}

@keyframes syn-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-card {
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 4px;
}

.sk-line { height: 10px; margin-bottom: 8px; border-radius: 4px; }
