.global-student-search { position: relative; }
.global-student-search .search-area { min-width: 340px; }
.global-student-search input[type="search"]::-webkit-search-cancel-button { cursor: pointer; }

.gss-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 1060;
  width: 440px; max-width: calc(100vw - 24px); max-height: 70vh; overflow-y: auto;
  background: #fff; border-radius: 14px; border: 1px solid #e5e7eb;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .18); padding: 6px;
  animation: gss-in .16s ease-out;
}
@keyframes gss-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.gss-item {
  display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px;
  color: #1f2937; text-decoration: none;
}
.gss-item:hover, .gss-item.active { background: #eef2ff; color: #1f2937; }
.gss-avatar {
  width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; overflow: hidden;
  display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--primary, #6366f1), #8b5cf6);
}
.gss-avatar img { width: 100%; height: 100%; object-fit: cover; }
.gss-text { display: flex; flex-direction: column; min-width: 0; }
.gss-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gss-ids { font-size: 12.5px; color: #4b5563; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.gss-place { font-size: 12px; color: #6b7280; }
.gss-item mark { background: #fde68a; color: inherit; padding: 0 1px; border-radius: 3px; }
.gss-status {
  margin-left: 6px; font-size: 10.5px; font-weight: 600; padding: 1px 7px; border-radius: 10px;
  background: #f1f5f9; color: #475569; vertical-align: middle;
}
.gss-status-graduated { background: #dcfce7; color: #166534; }
.gss-status-discontinued { background: #fee2e2; color: #991b1b; }
.gss-status-failed { background: #fef3c7; color: #92400e; }

.gss-all {
  display: flex; justify-content: space-between; margin-top: 4px; padding: 9px 10px; border-top: 1px solid #f1f5f9;
  font-size: 13px; font-weight: 600; color: var(--primary, #4f46e5); text-decoration: none; border-radius: 0 0 10px 10px;
}
.gss-all:hover { background: #f8fafc; }
.gss-empty { padding: 12px; font-size: 13px; color: #6b7280; }
.gss-spinner {
  display: inline-block; width: 12px; height: 12px; margin-right: 8px; vertical-align: -1px;
  border: 2px solid #c7d2fe; border-top-color: var(--primary, #4f46e5); border-radius: 50%;
  animation: gss-spin .7s linear infinite;
}
@keyframes gss-spin { to { transform: rotate(360deg); } }
@media (max-width: 767px) {
  .global-student-search .search-area { min-width: 0; }
}
