.profile-overview-compact {
  position: fixed;
  z-index: 25;
  display: grid;
  grid-template-columns: 38px minmax(100px, 1fr) minmax(0, 2fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.profile-overview-compact[hidden],
.profile-overview-compact [hidden] { display: none; }

.profile-overview-compact .profile-overview-avatar {
  width: 38px;
  height: 38px;
  min-width: 38px;
  font-size: 0.875rem;
}

.profile-overview-identity { min-width: 0; }
.profile-overview-identity strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.9375rem;
}
.profile-overview-availability {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.8125rem;
}
.profile-overview-tags {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  margin: 0;
  scrollbar-width: thin;
}
.profile-overview-tags > span { flex-shrink: 0; }
.profile-overview-expand {
  grid-column: 4;
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.8125rem;
  cursor: pointer;
}
.profile-overview-expand:hover { border-color: var(--accent-2); }
.profile-overview-expand:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }

.profile-availability-value { color: var(--accent-2); font-size: 0.875rem; margin: 12px 0 0; }
.profile-availability-editor { display: grid; justify-items: start; gap: 8px; margin-top: 16px; }
.profile-availability-editor select { max-width: 100%; min-height: 44px; padding: 8px 12px; color: var(--text); background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; font: inherit; }
.profile-availability-editor select:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.profile-availability-editor small { color: var(--muted); }
.profile-availability-value[hidden], .profile-availability-editor[hidden] { display: none; }

@media (max-width: 640px) {
  .profile-overview-compact {
    grid-template-columns: 32px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 8px 10px;
  }
  .profile-overview-compact .profile-overview-avatar { width: 32px; height: 32px; min-width: 32px; }
  .profile-overview-tags { grid-column: 1 / -1; grid-row: 2; }
  .profile-overview-expand { grid-column: 3; grid-row: 1; max-width: 108px; }
}
